passfd module, part 3.
[gnulib.git] / ChangeLog
1 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
2             Bruno Haible  <bruno@clisp.org>
3
4         passfd module, part 3.
5         * lib/passfd.h (recvfd): Add a flags argument.
6         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
7         (recvfd): Add a flags argument.
8         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
9         exists.
10         * modules/passfd (Depends-on): Add cloexec.
11         Suggested by Eric Blake.
12
13 2011-03-13  Bruno Haible  <bruno@clisp.org>
14
15         passfd module, part 2, tweaks.
16         * modules/passfd (Files): Reorder.
17         (Depends-on): Remove errno.
18         (Include): Remove <sys/socket.h>, <sys/un.h>.
19         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
20         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
21         specification header. Include <sys/socket.h> always. Don't include
22         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
23         (sendfd): Clarify that it sets errno when it fails.
24         (recvfd): Fix specification.
25
26 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
27
28         passfd module, part 2.
29         * modules/passfd: New file.
30         * lib/passfd.h: New file.
31         * lib/passfd.c: New file.
32
33 2011-03-12  Bruno Haible  <bruno@clisp.org>
34
35         wcswidth, mbswidth: Avoid integer overflow.
36         * lib/wcswidth.c: Include <limits.h>.
37         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
38         * lib/mbswidth.c: Include <limits.h>.
39         (mbsnwidth): Avoid 'int' overflow.
40         Reported by Jim Meyering.
41
42 2011-03-12  Bruno Haible  <bruno@clisp.org>
43
44         futimens, utimensat: Avoid endless recursion on Solaris 10.
45         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
46         Solaris.
47         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
48         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
49
50 2011-03-11  Jim Meyering  <meyering@redhat.com>
51
52         maint.mk: relax a regexp to accommodate other formatting styles
53         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
54         between "ngettext" and the following "(".
55
56 2011-03-11  Pádraig Brady <P@draigBrady.com>
57
58         maint.mk: suppress a false positive warning
59         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
60         diagnostics are marked with ngettext.
61
62 2011-03-10  Eric Blake  <eblake@redhat.com>
63
64         wchar: add explicit dependencies, for Tru64
65         * modules/mbmemcasecoll (Depends-on): Add wchar.
66         * modules/mbtowc (Depends-on): Likewise.
67         * modules/vasnprintf (Depends-on): Likewise.
68         * modules/unistdio/u-printf-args (Depends-on): Likewise.
69         * modules/wctomb (Depends-on): Likewise.
70         Reported by Peter O'Gorman.
71
72 2011-03-08  Bruno Haible  <bruno@clisp.org>
73
74         passfd module, part 1, tweaks.
75         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
76         Improve indentation. Improve AC_MSG_CHECKING messages.
77         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
78         gl_SOCKET_FAMILIES.
79
80 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
81
82         passfd module, part 1.
83         * m4/afunix.m4: New file.
84         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
85         sockets.
86
87 2011-03-08  Bruno Haible  <bruno@clisp.org>
88
89         regex-quote: New API.
90         * lib/regex-quote.h: Include <stdbool.h>.
91         (struct regex_quote_spec): New type.
92         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
93         New declarations.
94         (regex_quote_length, regex_quote_copy, regex_quote): Take a
95         'const struct regex_quote_spec *' argument.
96         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
97         (pcre_special): New constant.
98         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
99         New functions.
100         (regex_quote_length, regex_quote_copy, regex_quote): Take a
101         'const struct regex_quote_spec *' argument.
102         * modules/regex-quote (Depends-on): Add stdbool.
103         * tests/test-regex-quote.c (check): Update for new API. Add test for
104         anchored results.
105         * NEWS: Mention the API change.
106         Reported by Reuben Thomas and Eric Blake.
107
108 2011-03-06  Bruno Haible  <bruno@clisp.org>
109
110         regex-quote: Fix creation of POSIX extended regular expressions.
111         * lib/regex-quote.c (ere_special): Add grouping and alternation
112         operators.
113
114 2011-03-05  Bruno Haible  <bruno@clisp.org>
115
116         doc: Improve doc regarding autopoint vs. gnulib.
117         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
118         disable autopoint while running autoreconf.
119         Suggested by Ralf Wildenhues.
120
121 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
122
123         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
124         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
125
126 2011-03-03  Bruce Korb  <bkorb@gnu.org>
127
128         parse-duration: remove xalloc.h dependency
129         * lib/parse-duration.c (parse_period): handle NULL return from
130         strdup instead of calling xstrdup().
131         * modules/parse-duration: remove "xalloc" dependency
132
133 2011-03-03  Matthew Booth  <mbooth@redhat.com>
134
135         bootstrap: honor m4_base when running aclocal
136         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
137
138 2011-03-02  Jim Meyering  <meyering@redhat.com>
139
140         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
141         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
142         on request from Matt Booth.
143
144 2011-03-01  Eric Blake  <eblake@redhat.com>
145
146         test-link: work on Hurd
147         * tests/test-link.h (test_link): Hurd rejects linking directories
148         with EISDIR instead of the POSIX-mandated EPERM.
149
150 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
151
152         stdio: simplify by moving files to printf-posix, sigpipe
153         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
154         since this symbol is needed only if printf is replaced.
155         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
156         Require gl_ASM_SYMBOL_PREFIX.
157         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
158         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
159         (Depends-on): Add 'raise'.
160         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
161         * modules/stdio (Files): Remove lib/stdio-write.c,
162         m4/asm-underscore.m4.
163         (Depends-on): Remove 'raise'.
164
165         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
166         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
167         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
168         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
169
170 2011-02-28  Bruno Haible  <bruno@clisp.org>
171
172         localcharset: Assume ANSI C behaviour of free().
173         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
174         calling free().
175         Suggested by Simon Josefsson <simon@josefsson.org>.
176
177 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
178             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
179             Bruno Haible  <bruno@clisp.org>  (tiny change)
180
181         On Cygwin, use /proc file system instead of win32 API.
182         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
183         Win32 file names.
184         (DllMain): Simplify by removing Cygwin specific code.
185         (find_shared_library_fullname): Use Linux specific implementation also
186         for Cygwin.
187         (get_shared_library_fullname): Update accordingly.
188         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
189         Win32 file names.
190         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
191         Cygwin specific code.
192
193 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
194             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
195
196         Fix OpenMP flag detection for various Fortran compilers.
197         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
198         OpenMP-conditional compilation construct, to force compile
199         failure with missing OpenMP flag.
200         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
201
202 2011-02-25  Eric Blake  <eblake@redhat.com>
203
204         strstr: expand test coverage
205         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
206         compilation.
207         * tests/test-memmem.c (main): Duplicate tests.
208         * tests/test-strcasestr.c (main): Likewise.
209         * tests/test-c-strcasestr.c (main): Likewise.
210
211 2011-02-25  Jim Meyering  <meyering@redhat.com>
212
213         maint.mk: detect missing-NL-at-EOF, too
214         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
215         it also detects when a file lacks a newline at EOF.
216         (require_exactly_one_NL_at_EOF_): Renamed from
217         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
218         since people may well have .x-sc_... file names tied to the
219         existing name.  Suggested by Eric Blake.
220
221 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
222
223         dirname: move m4/dos.m4 functionality into lib/dosname.h
224
225         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
226         extracts symbols from it, puts them into config.h; but it's much
227         easier to use the symbols directly.  filename.h already does this,
228         but it disagrees with dos.m4 in some respects.  This patch
229         introduces a different include file dosname.h that packages up
230         dos.m4, and then later we can work on merging filename.h and
231         dosname.h.  Applications that need only the easy-to-configure
232         symbols should consider including dosname.h rather than dirname.h.
233         * NEWS: Mention incompatible changes.
234         * m4/dos.m4: Remove.
235         * lib/dosname.h, modules/dosname: New files.
236         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
237         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
238         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
239         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
240         Include dosname.h, not dirname.h.
241         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
242         Include dosname.h, for definitions of symbols like ISSLASH
243         that used to be in config.h.
244         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
245         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
246         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
247         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
248         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
249         * modules/rmdir (Files): Likewise.
250         * modules/stat (Files): Likewise.
251         * modules/unlink (Files): Likewise.
252         * modules/dirname-lgpl (Depends-on): Add dosname.
253         * modules/lstat (Depends-on): Likewise.
254         * modules/openat (Depends-on): Likewise.
255         * modules/rmdir (Depends-on): Likewise.
256         * modules/savewd (Depends-on): Likewise.
257         * modules/stat (Depends-on): Likewise.
258         * modules/unlink (Depends-on): Likewise.
259         * modules/openat (Depends-on): Remove dirname-lgpl.
260         * modules/savewd (Depends-on): Likewise.
261         * tests/test-dirname.c: Do not use removed symbols like
262         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
263         the remaining symbols, e.g., ISSLASH ('\\').
264
265 2011-02-25  Eric Blake  <eblake@redhat.com>
266
267         strstr: revert patches that introduced bug and pessimization
268         * lib/str-two-way.h: Add another reference.
269         (two_way_short_needle, two_way_long_needle): Revert changes from
270         2011-02-24; they pessimize search speed.
271         (critical_factorization): Partially revert changes from
272         2010-06-22; they violate the requirement that the left half of the
273         needle be smaller than the period of the needle.
274
275 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
276
277         filenamecat: remove unnecessary dependency on dirname-lgpl
278         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
279         is no direct dependency, just an indirect one via filenamecat-lgpl.
280
281         remove: remove unnecessary use of m4/dos.m4
282         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
283         * modules/remove (FILES): Remove m4/dos.m4.
284
285         * lib/openat-proc.c: Don't include dirname.h; not needed.
286
287         backupfile: remove unnecessary use of m4/dos.m4
288         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
289         of its symbols are used by the backupfile code.  backupfile.c does
290         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
291         for the rare case of programs that want all their backup file
292         names to live within 8+3 limits, and dos.m4 doesn't address that.
293         * modules/backupfile (Files): Remove m4/dos.m4.
294
295 2011-02-24  Jim Meyering  <meyering@redhat.com>
296
297         strstr: fix a bug whereby strstr would mistakenly return NULL
298         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
299         in period calculation.
300         (two_way_long_needle): Likewise.
301         The original problem was reported by Mike Stump in
302         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
303         Ralf Wildenhues provided the short needle and haystack.
304         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
305         Add a more involved test to trigger the bug in two_way_long_needle.
306
307 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
308
309         gnulib-tool: remove use of bold display in help screen
310         * gnulib-tool (func_usage): Do not use bold display anymore in the
311         help screen.  That was just meant to be a temporary emphasis for a
312         backward-incompatible change.
313
314 2011-02-23  Bruno Haible  <bruno@clisp.org>
315
316         Fix misindentation of preprocessor directives.
317         * lib/argp-namefrob.h: Reindent preprocessor directives.
318         * lib/getopt_int.h (struct _getopt_data): Likewise.
319         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
320         * lib/vasnprintf.c (decode_long_double): Likewise.
321         * tests/test-argmatch.c: Insert blank lines, for clarity.
322         * tests/test-exclude.c: Likewise.
323
324 2011-02-22  Bruno Haible  <bruno@clisp.org>
325
326         ioctl: Fix for MacOS X in 64-bit mode.
327         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
328         value.
329         Suggested by Eric Blake.
330         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
331
332 2011-02-22  Jim Meyering  <meyering@redhat.com>
333
334         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
335         * Makefile (sc_cpp_indent_check): Don't limit the check to files
336         in lib/.
337
338 2011-02-22  Eric Blake  <eblake@redhat.com>
339
340         maint: avoid any CDPATH issue
341         * Makefile (sc_cpp_indent_check): Anchor cd argument.
342
343         maint: adjust cpp indentation for my modules, as well
344         * Makefile (sc_cpp_indent_check): Add my name.
345         * lib/fbufmode.c: Filter through cppi.
346         * lib/fpurge.c: Likewise.
347         * lib/freadable.c: Likewise.
348         * lib/freading.c: Likewise.
349         * lib/fwritable.c: Likewise.
350         * lib/fwriting.c: Likewise.
351         * lib/sigaction.c: Likewise.
352
353 2011-02-22  Jim Meyering  <meyering@redhat.com>
354
355         maint: adjust cpp indentation to reflect nesting depth
356         I.e., in a block of code that begins with an unnested "#if",
357         put one space between the "#" in column 1 and following token.
358         For example,
359         -#include <sys/vfs.h>
360         +# include <sys/vfs.h>
361         Do this only in .c files that are part of a module I maintain.
362         * lib/linkat.c: Filter through cppi.
363         * lib/nanosleep.c: Likewise.
364         * lib/openat.c: Likewise.
365         * lib/openat-die.c: Likewise.
366         * lib/dup3.c: Likewise.
367         * lib/fchownat.c: Likewise.
368         * lib/flock.c: Likewise.
369         * lib/fsync.c: Likewise.
370         * lib/fts.c: Likewise.
371         * lib/getpass.c: Likewise.
372         * lib/gettimeofday.c: Likewise.
373         * lib/userspec.c: Likewise.
374         * Makefile (sc_cpp_indent_check): New rule, to check this.
375
376 2011-02-22  Bruno Haible  <bruno@clisp.org>
377
378         New module 'wctomb'.
379         * lib/stdlib.in.h (wctomb): New declaration.
380         * lib/wctomb.c: New file.
381         * lib/wctomb-impl.h: New file.
382         * m4/wctomb.m4: New file.
383         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
384         REPLACE_WCTOMB.
385         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
386         REPLACE_WCTOMB.
387         * modules/wctomb: New file.
388         * tests/test-stdlib-c++.cc: Test signature of wctomb.
389         * doc/posix-functions/wctomb.texi: Mention the new module.
390         * modules/wctob (Depends-on): Add wctomb.
391
392 2011-02-22  Bruno Haible  <bruno@clisp.org>
393
394         New module 'mbtowc'.
395         * lib/stdlib.in.h (mbtowc): New declaration.
396         * lib/mbtowc.c: New file.
397         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
398         * m4/mbtowc.m4: New file.
399         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
400         REPLACE_MBTOWC.
401         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
402         REPLACE_MBTOWC.
403         * modules/mbtowc: New file.
404         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
405         * doc/posix-functions/mbtowc.texi: Mention the new module.
406         * modules/btowc (Depends-on): Add mbtowc.
407
408 2011-02-22  Bruno Haible  <bruno@clisp.org>
409
410         wcrtomb: Add more tests for native Windows platforms.
411         * tests/test-wcrtomb-w32-1.sh: New file.
412         * tests/test-wcrtomb-w32-2.sh: New file.
413         * tests/test-wcrtomb-w32-3.sh: New file.
414         * tests/test-wcrtomb-w32-4.sh: New file.
415         * tests/test-wcrtomb-w32-5.sh: New file.
416         * tests/test-wcrtomb-w32.c: New file.
417         * modules/wcrtomb-tests (Files): Add them.
418         (Makefile.am): Arrange to run these tests.
419         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
420         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
421
422 2011-02-20  Bruno Haible  <bruno@clisp.org>
423
424         wcrtomb: Enhance test.
425         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
426
427 2011-02-20  Bruno Haible  <bruno@clisp.org>
428
429         mbrtowc: Tiny optimization.
430         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
431
432 2011-02-20  Jim Meyering  <meyering@redhat.com>
433
434         test-exclude.c: remove unmatched #endif
435         * tests/test-exclude.c: Remove stray #endif, left over from
436         the change of a week ago.
437
438 2011-02-19  Jim Meyering  <meyering@redhat.com>
439
440         git-version-gen: skip "-dirty" check when appropriate
441         * build-aux/git-version-gen: Don't run any git commands when the
442         version string comes from .tarball-version.  Prior to this, we
443         would run git update-index --refresh even from a just-unpacked
444         tarball directory, and that could affect a .git/ directory in a
445         parent of the build directory.  Reported by Mike Frysinger.
446
447 2011-02-19  Bruno Haible  <bruno@clisp.org>
448
449         unictype/property-byname: Reduce the size of the 'data' segment.
450         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
451
452 2011-02-19  Bruno Haible  <bruno@clisp.org>
453
454         unictype/scripts: Reduce the size of the 'data' segment.
455         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
456         '%pic'.
457         * lib/unictype/scripts_byname.gperf: Regenerated.
458
459 2011-02-19  Bruno Haible  <bruno@clisp.org>
460
461         stdint: Update documentation.
462         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
463
464 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
465
466         stdint: omit redundant check for wchar.h
467         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
468         always tests whether wchar.h exists, so remove the now-redundant test.
469
470 2011-02-18  Bruno Haible  <bruno@clisp.org>
471
472         stdint: Cut dependency to module 'wchar'.
473         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
474         include the necessary prerequisites.
475         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
476         * modules/stdint (Depends-on): Remove wchar.
477         (Makefile.am): Substitute HAVE_WCHAR_H.
478         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
479
480 2011-02-18  Eric Blake  <eblake@redhat.com>
481
482         longlong: skip, rather than fail, on cross-compilation
483         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
484         when cross-compiling; regression from 2011-02-16.
485
486 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
487
488         * NEWS: Mention 2011-02-08 change to stdlib.
489
490 2011-02-17  Bruno Haible  <bruno@clisp.org>
491
492         getloadavg: Add comments about platforms.
493         * m4/getloadavg.m4: Add comment.
494         * lib/getloadavg.c: Likewise.
495
496 2011-02-17  Bruno Haible  <bruno@clisp.org>
497
498         getloadavg: Fix link error on Solaris 2.6.
499         * modules/getloadavg (Link): New section.
500         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
501         linking test-getloadavg.
502         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
503         getloadavg.
504
505 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
506
507         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
508         It was 'int', but this doesn't match the IRIX 6.5 manual.
509         Suggested by Bruno Haible in
510         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
511
512 2011-02-17  Bruno Haible  <bruno@clisp.org>
513
514         havelib: Fix comments.
515         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
516         change.
517
518 2011-02-17  Bruno Haible  <bruno@clisp.org>
519
520         havelib: Update config.rpath.
521         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
522
523 2011-02-17  Bruno Haible  <bruno@clisp.org>
524
525         getloadavg test: Add some plausibility checks.
526         * tests/test-getloadavg.c (check_avg): Print a warning when the value
527         is improbable.
528
529 2011-02-16  Eric Blake  <eblake@redhat.com>
530
531         maintainer-makefile: make syntax-check a no-op from tarballs
532         * top/maint.mk (no-vc-detected): New rule.
533         (local-checks-available): Use it to avoid hanging if someone tries
534         'make syntax-check' from a tarball.  Also append to any non-syntax
535         checks already defined in cfg.mk.
536
537 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
538
539         longlong: tune, particularly for common case of c99
540
541         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
542         or running anything if c99, or if unsigned long long int does not
543         work.  In either case, we know the answer without further tests.
544         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
545         it at most once, and use its results for both long long int and
546         unsigned long long int.  This is more likely to be efficient in
547         the common case where the program wants to check for both long
548         long int and unsigned long long int.
549         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
550         since the answer is already known.
551
552 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
553
554         getloadavg: set errno
555         * lib/getloadavg.c: Set errno when returning -1.  If no other
556         error number looks appropriate, set it to ENOSYS if the getloadavg
557         looks like it can't possibly ever work, ENOTSUP otherwise.
558         Suggested by Bruno Haible in
559         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
560
561         getloadavg: trim unused parts and speed up 'configure'
562         * NEWS: Document this.
563         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
564         always compiled if getloadavg is absent.
565         Move test code to ...
566         * tests/test-getloadavg.c: New file, containing previous
567         contents of test from lib/getloadavg.c.  It also contains
568         suggestions by Bruno Haible in
569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
570         * modules/getloadavg-tests: New file.
571         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
572         Do tests in the same order as they're needed for getloadavg.c.
573         Omit setgid-related tests that generate symbols KMEM_GROUP,
574         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
575         Do only the tests that are needed to see whether the system has
576         getloadavg, moving the other tests into ...
577         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
578         NLIST_NAME_UNION; nobody should be using it.  Do not define
579         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
580         relevant, as the user of this module shouldn't care how getloadavg
581         is implemented.
582
583         getloadavg: omit unused var
584         * lib/getloadavg.c (getloadavg): Omit unused local variable.
585
586 2011-02-15  Jim Meyering  <meyering@redhat.com>
587
588         doc: update users.txt
589         * users.txt: Update iwhd's URL.
590
591 2011-02-13  Bruno Haible  <bruno@clisp.org>
592
593         Consistent macro naming for macros that use GCC __attribute__.
594         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
595         _ATTRIBUTE_NONNULL_.
596         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
597         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
598         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
599         ATTRIBUTE_DEPRECATED.
600         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
601         ATTRIBUTE_NORETURN.
602         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
603         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
604         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
605         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
606         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
607         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
608         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
609         ATTRIBUTE_SENTINEL.
610         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
611         ATTRIBUTE_RETURN_CHECK.
612         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
613         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
614         ATTRIBUTE_NORETURN.
615         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
616         Reported by Paul Eggert.
617
618 2011-02-13  Bruno Haible  <bruno@clisp.org>
619
620         Don't interfere with a program's definition of __attribute__.
621         * lib/argp.h (__attribute__): Remove definition.
622         (_GL_ATTRIBUTE_FORMAT): New macro.
623         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
624         * lib/argp-fmtstream.h (__attribute__): Remove definition.
625         (_GL_ATTRIBUTE_FORMAT): New macro.
626         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
627         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
628         GCC 3 or newer.
629         * lib/error.h (__attribute__): Remove definition.
630         (_GL_ATTRIBUTE_FORMAT): New macro.
631         (error, error_at_line): Use it.
632         * lib/hash.h (__attribute__): Remove definition.
633         (ATTRIBUTE_WUR): Update definition. Define always.
634         * lib/openat.h (__attribute__): Remove definition.
635         (ATTRIBUTE_NORETURN): Update definition. Define always.
636         * lib/sigpipe-die.h (__attribute__): Remove definition.
637         (ATTRIBUTE_NORETURN): Update definition. Define always.
638         * lib/vasnprintf.h (__attribute__): Remove definition.
639         (_GL_ATTRIBUTE_FORMAT): New macro.
640         (asnprintf, vasnprintf): Use it.
641         * lib/xalloc.h (__attribute__): Remove definition.
642         (ATTRIBUTE_NORETURN): Update definition. Define always.
643         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
644         * lib/xmemdup0.h (__attribute__): Remove definition.
645         (ATTRIBUTE_NORETURN): Update definition. Define always.
646         * lib/xprintf.h (__attribute__): Remove definition.
647         (_GL_ATTRIBUTE_FORMAT): New macro.
648         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
649         * lib/xstrtol.h (__attribute__): Remove definition.
650         (ATTRIBUTE_NORETURN): Update definition. Define always.
651         * lib/xvasprintf.h (__attribute__): Remove definition.
652         (_GL_ATTRIBUTE_FORMAT): New macro.
653         (xasprintf, xvasprintf): Use it.
654         * tests/test-argmatch.c (__attribute__): Remove definition.
655         (ATTRIBUTE_NORETURN): Update definition. Define always.
656         * tests/test-exclude.c (__attribute__): Remove definition.
657         (ATTRIBUTE_NORETURN): Update definition. Define always.
658         Reported by Paul Eggert.
659
660 2011-02-13  Bruno Haible  <bruno@clisp.org>
661
662         mbrtowc: Add more tests for native Windows platforms.
663         * tests/test-mbrtowc-w32-1.sh: New file.
664         * tests/test-mbrtowc-w32-2.sh: New file.
665         * tests/test-mbrtowc-w32-3.sh: New file.
666         * tests/test-mbrtowc-w32-4.sh: New file.
667         * tests/test-mbrtowc-w32-5.sh: New file.
668         * tests/test-mbrtowc-w32.c: New file.
669         * modules/mbrtowc-tests (Files): Add them.
670         (Makefile.am): Arrange to run these tests.
671         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
672         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
673
674 2011-02-13  Bruno Haible  <bruno@clisp.org>
675
676         mbrtowc: Work around native Windows bug.
677         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
678         guess when no suitable locale for testing was found.
679         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
680
681 2011-02-13  Bruno Haible  <bruno@clisp.org>
682
683         mbsinit: Work around mingw bug.
684         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
685         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
686         Windows.
687         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
688
689 2011-02-13  Bruno Haible  <bruno@clisp.org>
690
691         mbsinit: Don't crash for a NULL argument.
692         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
693         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
694
695 2011-02-13  Bruno Haible  <bruno@clisp.org>
696
697         Don't interfere with a program's definition of __attribute__.
698         * lib/stdio.in.h (__attribute__): Remove definition.
699         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
700         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
701         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
702         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
703         * lib/string.in.h (__attribute__): Remove definition.
704         Reported by Paul Eggert.
705
706 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
707
708         stdlib: don't get in the way of non-GCC __attribute__
709         See thread starting at
710         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
711         Revert previous stdlib change, installing the following instead:
712         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
713         to get in the way of a non-GCC compiler that supports __attribute__.
714         (_GL_ATTRIBUTE_RETURN): New macro.
715         (_Exit): Use it instead of __attribute__.
716
717 2011-02-12  Bruno Haible  <bruno@clisp.org>
718
719         quotearg test: Avoid test failure on mingw.
720         * tests/test-quotearg.sh: Convert the locale identifier from native
721         Windows syntax to Unix syntax.
722
723 2011-02-12  Bruno Haible  <bruno@clisp.org>
724
725         setlocale: Prefer gnulib's override over libintl's override.
726         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
727         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
728         GNULIB_defined_setlocale is set.
729
730 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
731
732         stdlib: support non-GCC __attribute__
733
734         Fix a serious and tricky problem encountered when attempting to
735         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
736         5.5, but it crashed due to memory corruption on Solaris 10 with
737         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
738         bits that are otherwise zero.  This tagging is optional inside
739         Emacs but is preferred and is used when __attribute__ ((__aligned
740         (8))) works, as it does with both recent-enough GCC and with Sun C
741         5.11.  However, Sun C 5.11 is not GCC and does not #define
742         __GNUC__ and __GNUC_MINOR__.
743
744         When I added the getloadavg module to Emacs, it brought in
745         stdlib.in.h, which contained this fragment:
746
747            #ifndef __attribute__
748            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
749            #  define __attribute__(Spec)   /* empty */
750            # endif
751            #endif
752
753         When files that include <stdlib.h> were compiled with Sun C 5.11,
754         the above code disabled __attribute__ ((__aligned (8))), which
755         caused variables to not be properly aligned, which eventually led
756         to the pointer corruption mentioned above.  (This was a bit hard
757         to diagnose, unfortunately.)
758
759         Several "#define __attribute__(X) /* empty */" code snippets need
760         to be eradicated from Gnulib to work with non-GCC compilers that
761         support __attribute__.  The Autoconf way to do this is to test for
762         each kind of attribute that we want support for, and selectively
763         enable that in source code.
764
765         Fix this problem just for stdlib.h, by adding a test for the
766         __noreturn__ attribute, and change stdlib.in.h to use that test
767         when needed.  This technique can be easily generalized to the
768         other *.in.h files and attributes, and a similar technique can be
769         used for *.h and *.c files.  This patch is enough to solve the
770         problem for Emacs + getloadavg, and I thought I'd publish it for
771         feedback before undertaking further, similar fixes in other
772         modules.
773
774         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
775         because it's not needed for stdlib.h.  It merely substitutes the
776         value directly into stdlib.h.  We may well need to #define it, or
777         similar symbols, for other modules, but it's nice to also have an
778         option to not #define it for applications like Emacs that do not
779         need it.
780
781         * lib/stdlib.in.h (__attribute__): Do not #define.
782         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
783         be defined only if the _Exit module is also used.
784         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
785         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
786         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
787         platforms.
788         * modules/_Exit (Files): Add m4/attribute.m4.
789         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
790         * m4/attribute.m4: New file.
791
792 2011-02-12  Bruno Haible  <bruno@clisp.org>
793
794         wcsrtombs: Work around bug on native Windows.
795         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
796         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
797         instead of len.
798         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
799
800 2011-02-12  Bruno Haible  <bruno@clisp.org>
801
802         mbsrtowcs: Work around bug on native Windows.
803         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
804         against mingw bug.
805         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
806
807 2011-02-12  Bruno Haible  <bruno@clisp.org>
808
809         Avoid setlocale bugs in tests.
810         * modules/btowc (Dependencies): Add setlocale.
811         * modules/c-strcase (Dependencies): Likewise.
812         * modules/mbmemcasecmp (Dependencies): Likewise.
813         * modules/mbmemcasecoll (Dependencies): Likewise.
814         * modules/mbrtowc (Dependencies): Likewise.
815         * modules/mbscasecmp (Dependencies): Likewise.
816         * modules/mbscasestr (Dependencies): Likewise.
817         * modules/mbschr (Dependencies): Likewise.
818         * modules/mbscspn (Dependencies): Likewise.
819         * modules/mbsinit (Dependencies): Likewise.
820         * modules/mbsncasecmp (Dependencies): Likewise.
821         * modules/mbsnrtowcs (Dependencies): Likewise.
822         * modules/mbspbrk (Dependencies): Likewise.
823         * modules/mbspcasecmp (Dependencies): Likewise.
824         * modules/mbsrchr (Dependencies): Likewise.
825         * modules/mbsrtowcs (Dependencies): Likewise.
826         * modules/mbsspn (Dependencies): Likewise.
827         * modules/mbsstr (Dependencies): Likewise.
828         * modules/nl_langinfo (Dependencies): Likewise.
829         * modules/quotearg (Dependencies): Likewise.
830         * modules/unicase/locale-language (Dependencies): Likewise.
831         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
832         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
833         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
834         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
835         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
836         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
837         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
838         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
839         * modules/vasnprintf-posix (Dependencies): Likewise.
840         * modules/wcrtomb (Dependencies): Likewise.
841         * modules/wcsnrtombs (Dependencies): Likewise.
842         * modules/wcsrtombs (Dependencies): Likewise.
843
844 2011-02-12  Bruno Haible  <bruno@clisp.org>
845
846         setlocale: Workaround native Windows bug.
847         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
848         succeeds but sets LC_CTYPE to "C", report a failure.
849         * tests/test-setlocale2.sh: New file.
850         * tests/test-setlocale2.c: New file.
851         * modules/setlocale-tests (Files): Add the new files.
852         (Makefile.am): Enable test-setlocale2.sh test.
853         * doc/posix-functions/setlocale.texi: Mention workaround.
854
855 2011-02-11  Bruno Haible  <bruno@clisp.org>
856
857         Tests for module 'setlocale'.
858         * modules/setlocale-tests: New file.
859         * tests/test-setlocale1.sh: New file.
860         * tests/test-setlocale1.c: New file.
861
862         New module 'setlocale'.
863         * lib/locale.in.h (setlocale): New declaration.
864         * lib/setlocale.c: New file, based on
865         gettext/gettext-runtime/intl/setlocale.c.
866         * m4/setlocale.m4: New file.
867         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
868         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
869         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
870         REPLACE_SETLOCALE.
871         * modules/setlocale: New file.
872         * tests/test-locale-c++.cc: Test the declaration of setlocale.
873         * doc/posix-functions/setlocale.texi: Mention the new module.
874
875 2011-02-11  Bruno Haible  <bruno@clisp.org>
876
877         Prepare for locale dependent tests on mingw.
878         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
879         because it has the wrong locale encoding.
880         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
881         French_France.1252 instead of "fr".
882         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
883         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
884         because it has the wrong locale encoding.
885         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
886         native Windows, try Turkish_Turkey.65001.
887         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
888         Chinese_China.54936.
889
890         Prepare for locale dependent tests on mingw.
891         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
892         differently.
893         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
894         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
895         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
896         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
897
898 2011-02-11  Eric Blake  <eblake@redhat.com>
899
900         strptime: avoid compiler warnings
901         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
902         compiler warnings about dead code.
903         Reported by Daniel P. Berrange.
904
905 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
906
907         doc: update users.txt
908         * users.txt: Add rcs.
909
910 2011-02-10  John W. Eaton  <jwe@gnu.org>
911
912         doc: update users.txt
913         * users.txt: Add octave.
914
915 2011-02-10  Jim Meyering  <meyering@redhat.com>
916
917         doc: update users.txt
918         * users.txt: Add iwhd.
919
920 2011-02-09  Bruno Haible  <bruno@clisp.org>
921
922         gnulib-tool: Make copyright notice adjustment more robust.
923         * gnulib-tool (func_import): In sed_transform_main_lib_file,
924         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
925         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
926         License".
927         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
928
929 2011-02-06  Bruno Haible  <bruno@clisp.org>
930
931         New module 'towctrans'.
932         * modules/towctrans: New file.
933         * lib/wctype.in.h (towctrans): New declaration.
934         * lib/towctrans.c: New file.
935         * lib/towctrans-impl.h: New file.
936         * m4/towctrans.m4: New file.
937         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
938         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
939         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
940         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
941         * doc/posix-functions/towctrans.texi: Mention the new module.
942
943 2011-02-06  Bruno Haible  <bruno@clisp.org>
944
945         New module 'wctrans'.
946         * modules/wctrans: New file.
947         * lib/wctype.in.h (wctrans): New declaration.
948         * lib/wctrans.c: New file.
949         * lib/wctrans-impl.h: New file.
950         * m4/wctrans.m4: New file.
951         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
952         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
953         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
954         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
955         * doc/posix-functions/wctrans.texi: Mention the new module.
956
957 2011-02-06  Bruno Haible  <bruno@clisp.org>
958
959         New module 'iswctype'.
960         * modules/iswctype: New file.
961         * lib/wctype.in.h (iswctype): New declaration.
962         * lib/iswctype.c: New file.
963         * lib/iswctype-impl.h: New file.
964         * m4/iswctype.m4: New file.
965         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
966         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
967         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
968         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
969         * doc/posix-functions/iswctype.texi: Mention the new module and the
970         HP-UX 11.00 problem.
971
972 2011-02-06  Bruno Haible  <bruno@clisp.org>
973
974         New module 'wctype'.
975         * modules/wctype: Change to represent the wctype() substitute.
976         * lib/wctype.in.h (wctype): New declaration.
977         * lib/wctype.c: New file.
978         * lib/wctype-impl.h: New file.
979         * m4/wctype.m4: New file.
980         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
981         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
982         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
983         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
984         * doc/posix-functions/wctype.texi: Mention the new module and the
985         HP-UX 11.00 problem.
986
987 2011-02-06  Bruno Haible  <bruno@clisp.org>
988
989         wctype-h: Ensure wctype_t and wctrans_t are defined.
990         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
991         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
992         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
993         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
994         HAVE_WCTRANS_T.
995         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
996
997 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
998
999         flock: fix license typo
1000
1001         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
1002         omitted.
1003
1004 2011-02-08  Bruno Haible  <bruno@clisp.org>
1005
1006         Split large sed scripts, for HP-UX sed.
1007         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
1008         to avoid HP-UX limit of 99 commands, in the near future.
1009         * modules/stdlib (Makefile.am): Likewise.
1010         * modules/unistd (Makefile.am): Likewise.
1011         * modules/wchar (Makefile.am): Likewise.
1012         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1013         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
1014         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
1015
1016 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1017             Bruno Haible  <bruno@clisp.org>
1018
1019         stdlib: improve random_r modularization
1020         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
1021         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
1022         you also need the random_r module to get this material right.
1023         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
1024         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
1025         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
1026
1027 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1028
1029         stdlib: don't depend on stdint
1030         * lib/stdlib.in.h: Don't include <stdint.h> merely because
1031         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
1032         be independent of whether stdint.h is needed.
1033         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
1034         here, instead of ...
1035         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
1036         struct random_data should be using the random_r module, not just
1037         the stdlib module (which wouldn't make sense: what package needs
1038         just struct random_data without also needing random_r?).
1039         * modules/stdlib (Depends-on): Remove stdint.
1040
1041         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
1042         See the thread rooted at
1043         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
1044         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
1045         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
1046         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
1047         __VMS)); previously it was always included (via fcntl--.h).
1048         (getloadavg): Do not use c_strtod.  Instead, approximate it by
1049         hand; this is good enough for load averages.  Also, do not use
1050         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
1051         flags directly if available and don't bother otherwise.  (Packages
1052         that need the extra reliability should use the modules that define
1053         these flags on older platforms that lack them.)
1054         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
1055         fcntl-safer.
1056
1057 2011-02-08  Jim Meyering  <meyering@redhat.com>
1058
1059         di-set.h, ino-map.h: add multiple-inclusion guard
1060         Technically, the guard is required only for ino-map.h, due to its
1061         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
1062         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
1063         * lib/ino-map.h: Likewise.
1064
1065 2011-02-06  Bruno Haible  <bruno@clisp.org>
1066
1067         iswblank: Ensure declaration on glibc systems.
1068         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
1069         * modules/iswblank (Dependencies): Add 'extensions'.
1070         * doc/posix-functions/iswblank.texi: Document the glibc problem.
1071
1072 2011-02-06  Bruno Haible  <bruno@clisp.org>
1073
1074         New module 'iswblank'.
1075         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
1076         * modules/iswblank: New file.
1077         * modules/wctype-h (Files): Remove lib/iswblank.c.
1078         (Makefile.am): Substitute GNULIB_ISWBLANK.
1079         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
1080         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
1081         (gl_WCTYPE_H_DEFAULTS): New macro.
1082         (gl_WCTYPE_H): Require it. Remove iswblank related code.
1083         * modules/iswblank-tests: New file.
1084         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
1085         * tests/test-wctype-h.c (main): Remove iswblank tests.
1086         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
1087         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
1088         of 'wctype-h'.
1089         * NEWS: Mention the change.
1090         * modules/mbchar (Depends-on): Add iswblank.
1091
1092 2011-02-08  Bruno Haible  <bruno@clisp.org>
1093
1094         di-set tests: Refactor.
1095         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
1096         unnecessary includes.
1097         (ASSERT): Remove macro.
1098         (main): Make C90 compliant by avoiding variable declaration after
1099         statement.
1100         * modules/di-set-tests (Files): Add tests/macros.h.
1101
1102 2011-02-08  Bruno Haible  <bruno@clisp.org>
1103
1104         ino-map tests: Refactor.
1105         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
1106         unnecessary includes.
1107         (ASSERT): Remove macro.
1108         (main): Make C90 compliant by avoiding variable declaration after
1109         statement.
1110         * modules/ino-map-tests (Files): Add tests/macros.h.
1111
1112 2011-02-08  Jim Meyering  <meyering@redhat.com>
1113
1114         di-set: add "const" to a cast
1115         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
1116         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
1117
1118 2011-02-06  Bruno Haible  <bruno@clisp.org>
1119
1120         Rename module 'wctype' to 'wctype-h'.
1121         * modules/wctype-h: Renamed from modules/wctype.
1122         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
1123         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
1124         (Files, Depends-on, Makefile.am): Update.
1125         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
1126         (Files, Makefile.am): Update.
1127         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
1128         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
1129         * doc/posix-headers/wctype.texi: Update.
1130         * doc/posix-functions/iswalnum.texi: Update.
1131         * doc/posix-functions/iswalpha.texi: Update.
1132         * doc/posix-functions/iswblank.texi: Update.
1133         * doc/posix-functions/iswcntrl.texi: Update.
1134         * doc/posix-functions/iswdigit.texi: Update.
1135         * doc/posix-functions/iswgraph.texi: Update.
1136         * doc/posix-functions/iswlower.texi: Update.
1137         * doc/posix-functions/iswprint.texi: Update.
1138         * doc/posix-functions/iswpunct.texi: Update.
1139         * doc/posix-functions/iswspace.texi: Update.
1140         * doc/posix-functions/iswupper.texi: Update.
1141         * doc/posix-functions/iswxdigit.texi: Update.
1142         * doc/posix-functions/towlower.texi: Update.
1143         * doc/posix-functions/towupper.texi: Update.
1144         * NEWS: Mention the change.
1145         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
1146         * modules/mbchar (Dependencies): Likewise.
1147         * modules/mbswidth (Dependencies): Likewise.
1148         * modules/quotearg (Dependencies): Likewise.
1149         * modules/regex (Dependencies): Likewise.
1150         * modules/wcscasecmp (Dependencies): Likewise.
1151         * modules/wcsncasecmp (Dependencies): Likewise.
1152         * modules/wcwidth (Dependencies): Likewise.
1153
1154 2011-02-06  Bruno Haible  <bruno@clisp.org>
1155
1156         New module 'wcswidth'.
1157         * modules/wcswidth: New file.
1158         * lib/wchar.in.h (wcswidth): New declaration.
1159         * lib/wcswidth.c: New file.
1160         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
1161         * m4/wcswidth.m4: New file.
1162         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
1163         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
1164         REPLACE_WCSWIDTH.
1165         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
1166         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
1167         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
1168         * doc/posix-functions/wcswidth.texi: Mention the new module.
1169
1170 2011-02-06  Bruno Haible  <bruno@clisp.org>
1171
1172         New module 'wcstok'.
1173         * modules/wcstok: New file.
1174         * lib/wchar.in.h (wcstok): New declaration.
1175         * lib/wcstok.c: New file.
1176         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
1177         * m4/wcstok.m4: New file.
1178         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
1179         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
1180         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
1181         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
1182         * doc/posix-functions/wcstok.texi: Mention the new module.
1183
1184 2011-02-06  Bruno Haible  <bruno@clisp.org>
1185
1186         New module 'wcsstr'.
1187         * modules/wcsstr: New file.
1188         * lib/wchar.in.h (wcsstr): New declaration.
1189         * lib/wcsstr.c: New file.
1190         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
1191         * m4/wcsstr.m4: New file.
1192         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
1193         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
1194         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
1195         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
1196         * doc/posix-functions/wcsstr.texi: Mention the new module.
1197
1198 2011-02-06  Bruno Haible  <bruno@clisp.org>
1199
1200         New module 'wcspbrk'.
1201         * modules/wcspbrk: New file.
1202         * lib/wchar.in.h (wcspbrk): New declaration.
1203         * lib/wcspbrk.c: New file.
1204         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
1205         * m4/wcspbrk.m4: New file.
1206         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
1207         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
1208         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
1209         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
1210         * doc/posix-functions/wcspbrk.texi: Mention the new module.
1211
1212 2011-02-06  Bruno Haible  <bruno@clisp.org>
1213
1214         New module 'wcsspn'.
1215         * modules/wcsspn: New file.
1216         * lib/wchar.in.h (wcsspn): New declaration.
1217         * lib/wcsspn.c: New file.
1218         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
1219         * m4/wcsspn.m4: New file.
1220         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
1221         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
1222         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
1223         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
1224         * doc/posix-functions/wcsspn.texi: Mention the new module.
1225
1226 2011-02-06  Bruno Haible  <bruno@clisp.org>
1227
1228         New module 'wcscspn'.
1229         * modules/wcscspn: New file.
1230         * lib/wchar.in.h (wcscspn): New declaration.
1231         * lib/wcscspn.c: New file.
1232         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
1233         * m4/wcscspn.m4: New file.
1234         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
1235         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
1236         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
1237         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
1238         * doc/posix-functions/wcscspn.texi: Mention the new module.
1239
1240 2011-02-06  Bruno Haible  <bruno@clisp.org>
1241
1242         New module 'wcsrchr'.
1243         * modules/wcsrchr: New file.
1244         * lib/wchar.in.h (wcsrchr): New declaration.
1245         * lib/wcsrchr.c: New file.
1246         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
1247         * m4/wcsrchr.m4: New file.
1248         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
1249         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
1250         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
1251         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
1252         * doc/posix-functions/wcsrchr.texi: Mention the new module.
1253
1254 2011-02-06  Bruno Haible  <bruno@clisp.org>
1255
1256         New module 'wcschr'.
1257         * modules/wcschr: New file.
1258         * lib/wchar.in.h (wcschr): New declaration.
1259         * lib/wcschr.c: New file.
1260         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
1261         * m4/wcschr.m4: New file.
1262         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
1263         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
1264         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
1265         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
1266         * doc/posix-functions/wcschr.texi: Mention the new module.
1267
1268 2011-02-06  Bruno Haible  <bruno@clisp.org>
1269
1270         New module 'wcsdup'.
1271         * modules/wcsdup: New file.
1272         * lib/wchar.in.h (wcsdup): New declaration.
1273         * lib/wcsdup.c: New file.
1274         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
1275         * m4/wcsdup.m4: New file.
1276         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
1277         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
1278         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
1279         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
1280         * doc/posix-functions/wcsdup.texi: Mention the new module.
1281
1282 2011-02-06  Bruno Haible  <bruno@clisp.org>
1283
1284         New module 'wcsxfrm'.
1285         * modules/wcsxfrm: New file.
1286         * lib/wchar.in.h (wcsxfrm): New declaration.
1287         * lib/wcsxfrm.c: New file.
1288         * lib/wcsxfrm-impl.h: New file.
1289         * m4/wcsxfrm.m4: New file.
1290         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
1291         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
1292         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
1293         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
1294         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
1295
1296 2011-02-06  Bruno Haible  <bruno@clisp.org>
1297
1298         New module 'wcscoll'.
1299         * modules/wcscoll: New file.
1300         * lib/wchar.in.h (wcscoll): New declaration.
1301         * lib/wcscoll.c: New file.
1302         * lib/wcscoll-impl.h: New file.
1303         * m4/wcscoll.m4: New file.
1304         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
1305         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
1306         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
1307         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
1308         * doc/posix-functions/wcscoll.texi: Mention the new module.
1309
1310 2011-02-06  Bruno Haible  <bruno@clisp.org>
1311
1312         New module 'wcsncasecmp'.
1313         * modules/wcsncasecmp: New file.
1314         * lib/wchar.in.h (wcsncasecmp): New declaration.
1315         * lib/wcsncasecmp.c: New file.
1316         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
1317         * m4/wcsncasecmp.m4: New file.
1318         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
1319         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
1320         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
1321         HAVE_WCSNCASECMP.
1322         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
1323         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
1324
1325 2011-02-06  Bruno Haible  <bruno@clisp.org>
1326
1327         New module 'wcscasecmp'.
1328         * modules/wcscasecmp: New file.
1329         * lib/wchar.in.h (wcscasecmp): New declaration.
1330         * lib/wcscasecmp.c: New file.
1331         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
1332         * m4/wcscasecmp.m4: New file.
1333         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
1334         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
1335         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
1336         HAVE_WCSCASECMP.
1337         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
1338         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
1339
1340 2011-02-05  Bruno Haible  <bruno@clisp.org>
1341
1342         New module 'wcsncmp'.
1343         * modules/wcsncmp: New file.
1344         * lib/wchar.in.h (wcsncmp): New declaration.
1345         * lib/wcsncmp.c: New file.
1346         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
1347         * m4/wcsncmp.m4: New file.
1348         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
1349         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
1350         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
1351         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
1352         * doc/posix-functions/wcsncmp.texi: Mention the new module.
1353
1354 2011-02-05  Bruno Haible  <bruno@clisp.org>
1355
1356         New module 'wcscmp'.
1357         * modules/wcscmp: New file.
1358         * lib/wchar.in.h (wcscmp): New declaration.
1359         * lib/wcscmp.c: New file.
1360         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
1361         * m4/wcscmp.m4: New file.
1362         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
1363         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
1364         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
1365         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
1366         * doc/posix-functions/wcscmp.texi: Mention the new module.
1367
1368 2011-02-05  Bruno Haible  <bruno@clisp.org>
1369
1370         New module 'wcsncat'.
1371         * modules/wcsncat: New file.
1372         * lib/wchar.in.h (wcsncat): New declaration.
1373         * lib/wcsncat.c: New file.
1374         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
1375         * m4/wcsncat.m4: New file.
1376         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
1377         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
1378         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
1379         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
1380         * doc/posix-functions/wcsncat.texi: Mention the new module.
1381
1382 2011-02-05  Bruno Haible  <bruno@clisp.org>
1383
1384         New module 'wcscat'.
1385         * modules/wcscat: New file.
1386         * lib/wchar.in.h (wcscat): New declaration.
1387         * lib/wcscat.c: New file.
1388         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
1389         * m4/wcscat.m4: New file.
1390         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
1391         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
1392         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
1393         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
1394         * doc/posix-functions/wcscat.texi: Mention the new module.
1395
1396 2011-02-05  Bruno Haible  <bruno@clisp.org>
1397
1398         New module 'wcpncpy'.
1399         * modules/wcpncpy: New file.
1400         * lib/wchar.in.h (wcpncpy): New declaration.
1401         * lib/wcpncpy.c: New file.
1402         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
1403         * m4/wcpncpy.m4: New file.
1404         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
1405         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
1406         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
1407         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
1408         * doc/posix-functions/wcpncpy.texi: Mention the new module.
1409
1410 2011-02-05  Bruno Haible  <bruno@clisp.org>
1411
1412         New module 'wcsncpy'.
1413         * modules/wcsncpy: New file.
1414         * lib/wchar.in.h (wcsncpy): New declaration.
1415         * lib/wcsncpy.c: New file.
1416         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
1417         * m4/wcsncpy.m4: New file.
1418         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
1419         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
1420         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
1421         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
1422         * doc/posix-functions/wcsncpy.texi: Mention the new module.
1423
1424 2011-02-05  Bruno Haible  <bruno@clisp.org>
1425
1426         New module 'wcpcpy'.
1427         * modules/wcpcpy: New file.
1428         * lib/wchar.in.h (wcpcpy): New declaration.
1429         * lib/wcpcpy.c: New file.
1430         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
1431         * m4/wcpcpy.m4: New file.
1432         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
1433         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
1434         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
1435         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
1436         * doc/posix-functions/wcpcpy.texi: Mention the new module.
1437
1438 2011-02-05  Bruno Haible  <bruno@clisp.org>
1439
1440         New module 'wcscpy'.
1441         * modules/wcscpy: New file.
1442         * lib/wchar.in.h (wcscpy): New declaration.
1443         * lib/wcscpy.c: New file.
1444         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
1445         * m4/wcscpy.m4: New file.
1446         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
1447         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
1448         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
1449         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
1450         * doc/posix-functions/wcscpy.texi: Mention the new module.
1451
1452 2011-02-05  Bruno Haible  <bruno@clisp.org>
1453
1454         New module 'wcsnlen'.
1455         * modules/wcsnlen: New file.
1456         * lib/wchar.in.h (wcsnlen): New declaration.
1457         * lib/wcsnlen.c: New file.
1458         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
1459         * m4/wcsnlen.m4: New file.
1460         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
1461         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
1462         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
1463         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
1464         * doc/posix-functions/wcsnlen.texi: Mention the new module.
1465
1466 2011-02-05  Bruno Haible  <bruno@clisp.org>
1467
1468         New module 'wcslen'.
1469         * modules/wcslen: New file.
1470         * lib/wchar.in.h (wcslen): New declaration.
1471         * lib/wcslen.c: New file.
1472         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
1473         * m4/wcslen.m4: New file.
1474         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
1475         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
1476         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
1477         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
1478         * doc/posix-functions/wcslen.texi: Mention the new module.
1479
1480 2011-02-05  Bruno Haible  <bruno@clisp.org>
1481
1482         New module 'wmemset'.
1483         * modules/wmemset: New file.
1484         * lib/wchar.in.h (wmemset): New declaration.
1485         * lib/wmemset.c: New file.
1486         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
1487         * m4/wmemset.m4: New file.
1488         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
1489         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
1490         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
1491         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
1492         * doc/posix-functions/wmemset.texi: Mention the new module.
1493
1494 2011-02-05  Bruno Haible  <bruno@clisp.org>
1495
1496         New module 'wmemmove'.
1497         * modules/wmemmove: New file.
1498         * lib/wchar.in.h (wmemmove): New declaration.
1499         * lib/wmemmove.c: New file.
1500         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
1501         * m4/wmemmove.m4: New file.
1502         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
1503         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
1504         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
1505         HAVE_WMEMMOVE.
1506         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
1507         * doc/posix-functions/wmemmove.texi: Mention the new module.
1508
1509 2011-02-05  Bruno Haible  <bruno@clisp.org>
1510
1511         New module 'wmemcpy'.
1512         * modules/wmemcpy: New file.
1513         * lib/wchar.in.h (wmemcpy): New declaration.
1514         * lib/wmemcpy.c: New file.
1515         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
1516         * m4/wmemcpy.m4: New file.
1517         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
1518         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
1519         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
1520         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
1521         * doc/posix-functions/wmemcpy.texi: Mention the new module.
1522
1523 2011-02-05  Bruno Haible  <bruno@clisp.org>
1524
1525         New module 'wmemcmp'.
1526         * modules/wmemcmp: New file.
1527         * lib/wchar.in.h (wmemcmp): New declaration.
1528         * lib/wmemcmp.c: New file.
1529         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
1530         * m4/wmemcmp.m4: New file.
1531         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
1532         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
1533         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
1534         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
1535         * doc/posix-functions/wmemcmp.texi: Mention the new module.
1536
1537 2011-02-07  Jim Meyering  <meyering@redhat.com>
1538
1539         di-set, ino-map: new modules, from coreutils
1540         * lib/di-set.c: New file.
1541         * lib/di-set.h: Likewise.
1542         * lib/ino-map.c: Likewise.
1543         * lib/ino-map.h: Likewise.
1544         * modules/di-set: Likewise.
1545         * modules/di-set-tests: Likewise.
1546         * modules/ino-map: Likewise.
1547         * modules/ino-map-tests: Likewise.
1548         * tests/test-di-set.c: Likewise.
1549         * tests/test-ino-map.c: Likewise.
1550
1551 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1552
1553         getloadavg: merge minor changes from Emacs
1554
1555         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
1556         (getloadavg): Use memset, not bzero.
1557
1558         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
1559         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
1560         clash (bug#86).
1561
1562 2010-11-14  Bruno Haible  <bruno@clisp.org>
1563
1564         Allow multiple gnulib generated replacements to coexist.
1565         * lib/getopt.in.h (struct option): Avoid identical redefinition.
1566         * lib/inttypes.in.h (imaxdiv_t): Likewise.
1567         * lib/langinfo.in.h (nl_item): Likewise.
1568         * lib/math.in.h (_NaN, NAN): Likewise.
1569         * lib/netdb.in.h (struct addrinfo): Likewise.
1570         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
1571         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
1572         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
1573         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
1574         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
1575         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
1576         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
1577         pthread_mutexattr_init, pthread_mutexattr_settype,
1578         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
1579         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
1580         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
1581         pthread_spin_trylock, pthread_spin_unlock): Likewise.
1582         * lib/sched.in.h (struct sched_param): Likewise.
1583         * lib/se-selinux.in.h (security_class_t, security_context_t,
1584         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
1585         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
1586         lsetfilecon, fsetfilecon, security_check_context,
1587         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
1588         Likewise.
1589         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
1590         Likewise.
1591         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
1592         _gl_function_taking_int_returning_void_t, union sigval,
1593         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
1594         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
1595         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
1596         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
1597         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
1598         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
1599         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
1600         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
1601         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
1602         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
1603         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
1604         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
1605         socklen_t, rpl_fd_isset): Likewise.
1606         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
1607         * lib/sys_time.in.h (struct timeval): Likewise.
1608         * lib/sys_times.in.h (struct tms): Likewise.
1609         * lib/sys_utsname.in.h (struct utsname):
1610         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
1611         * lib/unistd.in.h (getpagesize): Likewise.
1612         * lib/wchar.in.h (mbstate_t): Likewise.
1613         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
1614         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
1615         towlower, towupper): Likewise.
1616         Reported by Sam Steingold <sds@gnu.org>.
1617
1618 2011-02-05  Eric Blake  <eblake@redhat.com>
1619
1620         unsetenv: work around Haiku issues
1621         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
1622         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
1623
1624 2010-12-30  Bruce Korb  <bkorb@gnu.org>
1625
1626         libposix: avoid calling error() within libposix
1627         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
1628         is defined.
1629
1630 2011-02-05  Eric Blake  <eblake@redhat.com>
1631
1632         strerror_r-posix: port to cygwin
1633         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
1634         implementation.
1635         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
1636         * tests/test-strerror_r.c (main): Fix test.
1637         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
1638         issue.
1639
1640 2011-02-05  Bruno Haible  <bruno@clisp.org>
1641
1642         New module 'wmemchr'.
1643         * modules/wmemchr: New file.
1644         * lib/wchar.in.h (wmemchr): New declaration.
1645         * lib/wmemchr.c: New file.
1646         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
1647         * m4/wmemchr.m4: New file.
1648         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
1649         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
1650         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
1651         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
1652         * doc/posix-functions/wmemchr.texi: Mention the new module.
1653
1654 2011-02-04  Eric Blake  <eblake@redhat.com>
1655
1656         fdopendir: detect FreeBSD bug
1657         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
1658         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
1659
1660 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1661
1662         stdbool: do not define HAVE_STDBOOL_H
1663         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
1664         AC_HEADER_STDBOOL.  All uses changed.  Do not define
1665         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
1666         imported from the latest Autoconf git.  It was motivated by Emacs,
1667         which uses gnulib but does not need HAVE_STDBOOL_H.
1668
1669 2011-02-04  Bruno Haible  <bruno@clisp.org>
1670
1671         wcsnrtombs: Prepare for new module wwcsnrtombs.
1672         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
1673         * lib/wcsnrtombs.c: Include it.
1674         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
1675
1676         wcsrtombs: Prepare for new module wwcsrtombs.
1677         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
1678         * lib/wcsrtombs.c: Include it.
1679         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
1680
1681         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
1682         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
1683         * lib/mbsnrtowcs.c: Include it.
1684         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
1685
1686         mbsrtowcs: Prepare for new module mbsrtowwcs.
1687         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
1688         * lib/mbsrtowcs.c: Include it.
1689         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
1690
1691 2011-02-04  Bruno Haible  <bruno@clisp.org>
1692
1693         vasnprintf: Reduce use of malloc for small format strings.
1694         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
1695         (arguments): Add room for the first 7 arguments.
1696         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
1697         (char_directives, u8_directives, u16_directives, u32_directives): Add
1698         room for the first 7 directives.
1699         * lib/printf-parse.c: Include <string.h>.
1700         (PRINTF_PARSE): Change memory handling code so that it uses the first
1701         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
1702         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
1703         Reported by Pádraig Brady <P@draigbrady.com>.
1704
1705 2011-01-31  Eric Blake  <eblake@redhat.com>
1706
1707         dup2: work around Haiku bug
1708         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
1709         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
1710         * doc/posix-functions/dup2.texi (dup2): Document the bug.
1711         * tests/test-dup2.c (main): Enhance test.
1712
1713 2011-01-31  Simon Josefsson  <simon@josefsson.org>
1714
1715         doc: off_t is not available in eglibc 2.11.2 stdio.h.
1716         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
1717         declared by eglibc 2.11.2.
1718         * lib/stdio.in.h: Likewise.
1719
1720 2011-01-31  Eric Blake  <eblake@redhat.com>
1721
1722         ignore-value: add missing test dependency
1723         * tests/test-ignore-value.c: Revert previous change; stdio.h
1724         provides off_t.
1725         * modules/ignore-value-tests (Depends-on): Add missing dependency.
1726
1727 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1728
1729         mktime: clarify long_int width checking
1730         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
1731         the top level, to make it clearer that the assumption about
1732         long_int width is being checked.  See
1733         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
1734
1735 2011-01-30  Simon Josefsson  <simon@josefsson.org>
1736
1737         ignore-value: Fix self-test.
1738         * tests/test-ignore-value.c: Include sys/types.h for off_t.
1739
1740 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
1741
1742         TYPE_MAXIMUM: avoid theoretically undefined behavior
1743         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
1744         negative number, which the C Standard says has undefined behavior.
1745         In practice this is not a problem, but might as well do it by the book.
1746         Reported by Rich Felker and Eric Blake; see
1747         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
1748         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
1749         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
1750         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
1751         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
1752         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1753         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
1754
1755         mktime: #undef mktime before #defining it
1756         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
1757
1758         mktime: systematically normalize tm_isdst comparisons
1759         * lib/mktime.c (isdst_differ): New function.
1760         (__mktime_internal): Use it systematically for all isdst comparisons.
1761         This completes the fix for libc BZ #6723, and removes the need for
1762         normalizing tm_isdst.  See
1763         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
1764         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
1765
1766         mktime: fix some integer overflow issues and sidestep the rest
1767
1768         This was prompted by a bug report by Benjamin Lindner for MinGW
1769         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
1770         His bug is due to signed integer overflow (0 - INT_MIN), and I
1771         I scanned through mktime.c looking for other integer overflow
1772         problems, fixing all the bugs I found.
1773
1774         Although the C Standard says the resulting code is still not safe
1775         in the presence of integer overflow, in practice it should be good
1776         enough for all real-world two's-complement implementations, except
1777         for debugging environments that deliberately trap on integer
1778         overflow (e.g., gcc -ftrapv).
1779
1780         * lib/mktime.c (WRAPV): New macro.
1781         (SHR): Also check that long_int and time_t shift right in the
1782         usual way, before using the fast-but-unportable method.
1783         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
1784         used.  The code already assumed two's complement, so there's
1785         no need to test for alternatives.  All uses removed.
1786         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
1787         the C standard.  Problem reported by Rich Felker in
1788         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
1789         (twos_complement_arithmetic): Also check long_int and time_t.
1790         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
1791         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
1792         (__mktime_internal): Avoid integer overflow with unary subtraction
1793         in two instances where -1 - X is an adequate replacement for -X,
1794         since the calculations are approximate.
1795
1796 2011-01-29  Eric Blake  <eblake@redhat.com>
1797
1798         mktime: avoid infinite loop
1799         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
1800         type; behavior is still undefined but portable to all known targets.
1801         Reported by Rich Felker.
1802
1803 2011-01-29  Simon Josefsson  <simon@josefsson.org>
1804
1805         rename, unlink, same-inode: Relicense.
1806         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
1807         * modules/unlink (License): Likewise.
1808         * modules/same-inode (License): Likewise.
1809
1810 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
1811
1812         mktime: avoid problems on NetBSD 5 / i386
1813         * lib/mktime.c (long_int): New type.  This works around a problem
1814         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
1815         but time_t is 64 bits, and where I expect the existing code is
1816         wrong in some cases.
1817         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
1818         (ydhms_diff): Bring back the compile-time check for wide-enough
1819         year and yday.
1820
1821         mktime: fix misspelling in comment
1822         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
1823         This merges all recent glibc changes of importance.
1824
1825 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1826
1827         move-if-change: cope with concurrent mv of identical file.
1828         * build-aux/move-if-change (CMPPROG): Accept environment
1829         variable as an override for `cmp'.
1830         (usage): Document CMPPROG.
1831         Adjust comparison to drop stdout.  Cope with failure of mv if
1832         the target file exists and is identical to the source, for
1833         parallel builds.
1834         Report from H.J. Lu against binutils in PR binutils/12283.
1835
1836 2011-01-28  Bruce Korb  <bkorb@gnu.org>
1837
1838         * users.txt: Mention sharutils.
1839
1840 2011-01-28  Simon Josefsson  <simon@josefsson.org>
1841
1842         * users.txt: Mention OATH Toolkit.
1843
1844 2011-01-27  Bruno Haible  <bruno@clisp.org>
1845
1846         Prepare for supporting FreeBSD 10.
1847         * build-aux/config.libpath: Remove handling of freebsd1*.
1848
1849 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
1850
1851         Prepare for supporting FreeBSD 10.
1852         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
1853         match FreeBSD 10.0.
1854
1855 2011-01-27  Bruno Haible  <bruno@clisp.org>
1856
1857         vma-iter, get-rusage-as: Add OpenBSD support.
1858         * modules/vma-iter (configure.ac): Test for mquery.
1859         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
1860         * lib/vma-iter.c: Include <sys/mman.h>.
1861         (vma_iterate): Add an implementation based on mquery().
1862         * lib/resource-ext.h (get_rusage_as): Update comments.
1863         * lib/get-rusage-as.c: Likewise.
1864         * lib/get-rusage-data.c: Likewise.
1865
1866 2011-01-26  Karl Berry  <karl@gnu.org>
1867
1868         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
1869         variables to make it easier to override the makeinfo program used.
1870
1871 2011-01-26  Eric Blake  <eblake@redhat.com>
1872
1873         fcntl: work around Haiku F_DUPFD bugs
1874         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
1875         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
1876         cloexec bit on duplication.
1877         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
1878
1879 2011-01-26  Bruno Haible  <bruno@clisp.org>
1880
1881         Enable memory leak tests on AIX.
1882         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
1883         * tests/test-fprintf-posix3.c (main): Likewise.
1884
1885 2011-01-26  Bruno Haible  <bruno@clisp.org>
1886
1887         Tests for module 'get-rusage-data'.
1888         * modules/get-rusage-data-tests: New file.
1889         * tests/test-get-rusage-data.c: New file.
1890
1891         New module 'get-rusage-data'.
1892         * lib/resource-ext.h (get_rusage_data): New declaration.
1893         * lib/get-rusage-data.c: New file.
1894         * modules/get-rusage-data: New file.
1895
1896 2011-01-25  Bruno Haible  <bruno@clisp.org>
1897
1898         get-rusage-as: Allow for easier testing.
1899         * lib/resource-ext.h (get_rusage_as): Add comment.
1900         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
1901         (main): New function for interactive testing.
1902
1903 2011-01-25  Bruno Haible  <bruno@clisp.org>
1904
1905         vma-iter: Treat Haiku like BeOS.
1906         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
1907         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
1908
1909 2011-01-25  Eric Blake  <eblake@redhat.com>
1910
1911         c-stack: fix regression on cygwin when libsigsegv is present
1912         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
1913
1914 2011-01-24  Bruno Haible  <bruno@clisp.org>
1915
1916         vma-iter: Avoid empty intervals.
1917         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
1918         on an empty interval.
1919
1920 2011-01-24  Jim Meyering  <meyering@redhat.com>
1921
1922         u64: remove unnecessary #include
1923         * lib/u64.h: Don't include <stddef.h>.  It was not used.
1924
1925 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1926
1927         Allow the user to avoid the GNULIB_TEST_* macros.
1928         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
1929
1930 2011-01-23  Bruno Haible  <bruno@clisp.org>
1931
1932         New module 'vma-iter'.
1933         * lib/vma-iter.h: New file.
1934         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
1935         * modules/vma-iter: New file.
1936         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
1937         for get_rusage_as_via_iterator.
1938         (vma_iterate_callback): New function.
1939         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
1940         * modules/get-rusage-as (Depends-on): Add vma-iter.
1941
1942 2011-01-23  Bruno Haible  <bruno@clisp.org>
1943
1944         uninorm: Tweak includes.
1945         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
1946         Reported by Jim Meyering.
1947
1948 2011-01-23  Bruno Haible  <bruno@clisp.org>
1949
1950         get-rusage-as: Improve on NetBSD.
1951         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
1952         /proc, like on FreeBSD.
1953
1954 2011-01-23  Jim Meyering  <meyering@redhat.com>
1955
1956         xreadlink.h: remove unnecessary #include
1957         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
1958
1959         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
1960         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
1961
1962 2011-01-23  Bruno Haible  <bruno@clisp.org>
1963
1964         get-rusage-as: Fix bug.
1965         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
1966         original limit when aborting the first loop.
1967
1968 2011-01-23  Bruno Haible  <bruno@clisp.org>
1969
1970         wctype: Ensure valid C syntax.
1971         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
1972         unconditionally, instead of gl_NEXT_HEADERS conditionally.
1973
1974 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
1975
1976         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
1977         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
1978         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
1979         as they are needed only for configure's test case.
1980         This removes two unnecessary symbols from config.h.
1981
1982         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
1983         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
1984         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
1985         AC_CHECK_HEADERS_ONCE on a header that we also invoke
1986         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
1987         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
1988         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
1989         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
1990         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1991         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1992         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
1993         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1994         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1995         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1996         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
1997         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1998         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
1999         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
2000
2001 2011-01-21  Eric Blake  <eblake@redhat.com>
2002
2003         maintainer-makefile: work with older git for submodule check
2004         * top/maint.mk (public-submodule-commit): Rewrite to avoid
2005         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
2006         Reported by Matthias Bolte.
2007
2008         bootstrap: minor portability fixes
2009         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
2010         (usage): Omit leading capital and trailing . on help phrases, per
2011         GNU Coding Standards.
2012         (check_versions, top level): Prefix messages with script name.
2013
2014 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
2015
2016         bootstrap: support --no-git option
2017         * build-aux/bootstrap: Add --no-git option, to be used when
2018         --gnulib-srcdir points to the exact desired checkout.
2019
2020 2011-01-21  Eric Blake  <eblake@redhat.com>
2021
2022         strerror_r-posix: work with glibc 2.13
2023         * lib/strerror_r.c (strerror_r): Fix return type.
2024
2025 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2026             Bruno Haible  <bruno@clisp.org>
2027
2028         uN_strstr: New unit tests.
2029         * modules/unistr/u8-strstr-tests: New file.
2030         * modules/unistr/u16-strstr-tests: New file.
2031         * modules/unistr/u32-strstr-tests: New file.
2032         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
2033         * tests/unistr/test-u8-strstr.c: New file.
2034         * tests/unistr/test-u16-strstr.c: New file.
2035         * tests/unistr/test-u32-strstr.c: New file.
2036
2037 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2038             Bruno Haible  <bruno@clisp.org>
2039
2040         Make uN_strstr functions O(n) worst-case.
2041         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
2042         16-bit and 32-bit unit cases, use the unibyte algorithm from
2043         lib/mbsstr.c.
2044         * lib/unistr/u8-strstr.c: Include <string.h>.
2045         (UNIT_IS_UINT8_T): New macro.
2046         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
2047         (U_STRLEN, U_STRNLEN): New macros.
2048         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
2049         (U_STRLEN, U_STRNLEN): New macros.
2050         * modules/unistr/u8-strstr (Depends-on): Add strstr.
2051         (configure.ac): Update required libunistring version.
2052         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
2053         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
2054         malloca.
2055         (configure.ac): Update required libunistring version.
2056         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
2057         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
2058         malloca.
2059         (configure.ac): Update required libunistring version.
2060
2061 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2062             Bruno Haible  <bruno@clisp.org>
2063
2064         Prepare for faster uN_strstr functions.
2065         * lib/str-kmp.h: Support definable UNITs.
2066         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
2067         needle_len argument.
2068         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
2069         * lib/mbscasestr.c (mbscasestr): Likewise.
2070
2071 2011-01-21  Pádraig Brady <P@draigBrady.com>
2072
2073         malloca-tests: make faster by unsetting MALLOC_PERTURB_
2074         * tests/test-malloca.c (main): Unset the environment variable
2075         to greatly speed up the test.
2076         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
2077         * modules/malloca-tests: Depend on unsetenv.
2078
2079 2011-01-21  Pádraig Brady <P@draigBrady.com>
2080
2081         ignore-value: remove stdint dependency
2082         * lib/ignore-value.h: Remove <stdint.h>
2083         * modules/ignore-value: Remove stdint dependency.
2084
2085 2011-01-21  Jim Meyering  <meyering@redhat.com>
2086
2087         maint.mk: adjust variable name to be consistent with other gl_ vars
2088         * top/maint.mk (gl_public_submodule_commit): Rename the variable
2089         to be lower case.
2090
2091 2011-01-20  Jim Meyering  <meyering@redhat.com>
2092
2093         maint.mk: make "check" depend on public-submodule-commit by default
2094         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
2095
2096 2011-01-20  Bruno Haible  <bruno@clisp.org>
2097
2098         mbfile, mbiter: Complete change from 2008-12-21.
2099         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
2100         * m4/mbiter.m4 (gl_MBITER): Likewise.
2101
2102 2011-01-20  Jim Meyering  <meyering@redhat.com>
2103
2104         init.sh: insert space between each function name and "()"
2105         * tests/init.sh: Make it a little easier to see that a function's
2106         name is "warn_", and not "warn" when looking at the first part of
2107         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
2108
2109 2011-01-20  Jim Meyering  <meyering@redhat.com>
2110
2111         mountlist: clean up code formatting
2112         * lib/mountlist.c (read_file_system_list): Split a long line,
2113         correct bracing style, use NULL in place of "(struct statfs *)0",
2114         don't parenthesize return value, add spaces around "=" and after
2115         ";-in-for-stmt".
2116
2117 2011-01-14  Markus Duft <mduft@gentoo.org>
2118
2119         mountlist: add support for Interix
2120         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
2121         Apply statvfs to all entries of /dev/fs.
2122         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
2123         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
2124
2125 2011-01-20  Jim Meyering  <meyering@redhat.com>
2126
2127         maint.mk: improve the public-submodule-commit rule
2128         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
2129         to suppress printing of its commands... unless V=1.
2130         Add git submodule's --quiet option to suppress printing of e.g.,
2131         "Entering gnulib" output.
2132         "cd" into $(srcdir) before running git submodule.
2133
2134 2011-01-20  Bruno Haible  <bruno@clisp.org>
2135
2136         include_next: Fix bug introduced on 2011-01-18.
2137         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
2138         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
2139         ac_cv_header_... variable if the second argument is not 'check'.
2140         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
2141         gl_NEXT_HEADERS_INTERNAL.
2142
2143 2011-01-20  Bruno Haible  <bruno@clisp.org>
2144
2145         Allow the user to avoid the GNULIB_TEST_* macros.
2146         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
2147         Suggested by Paul Eggert.
2148
2149 2011-01-14  Jim Meyering  <meyering@redhat.com>
2150
2151         bootstrap: avoid failure when there is no .gitmodules file
2152         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
2153         has been assigned to, even when its value is the empty string.
2154         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
2155         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
2156         Reported by John W. Eaton <jwe@gnu.org>.
2157
2158 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
2159
2160         assume <ctype.h>, ..., <time.h> exist
2161         For years gnulib has been assuming the existence of the headers
2162         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
2163         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
2164         them, since they don't appear to be needed.
2165         * README (Portability guidelines): Document this.
2166         * lib/flock.c: Assume <fcntl.h> exists.
2167         * lib/regex_internal.h: Assume <locale.h> exists.
2168         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
2169         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
2170         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
2171         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
2172         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
2173         * m4/regex.m4 (gl_REGEX): Likewise.
2174         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
2175         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
2176         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
2177         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
2178         * tests/test-argp.c: Likewise.
2179         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
2180
2181         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
2182         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
2183         AA_APPLE_UNIVERSAL_BUILD.  See
2184         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
2185         * NEWS: Document this.
2186
2187 2011-01-19  Eric Blake  <eblake@redhat.com>
2188
2189         c-stack: assume stack overflow if SA_SIGINFO unsupported
2190         * lib/c-stack.c (SIGACTION_WORKS): Rename...
2191         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
2192         sigaction will work.
2193         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
2194         behavior match Linux.
2195         * tests/test-c-stack.c (main): Prefer NULL for pointers.
2196
2197         stdbool-tests: accomodate Haiku
2198         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
2199
2200         binary-io: fix O_TEXT on Haiku
2201         * modules/binary-io (Depends-on): Add fcntl-h.
2202         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
2203         than blindly undefining O_TEXT.
2204         Reported by Scott McCreary.
2205
2206 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
2207
2208         include_next: do not check for standard headers like stddef.h
2209
2210         I found this problem when modifying Emacs to use gnulib.
2211         I noticed that it added HAVE_STDDEF_H to config.h, even though
2212         gnulib always assumes <stddef.h> exists as per README and this
2213         symbol is unnecessary.
2214         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
2215         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
2216         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
2217         faster for headers like stddef.h that are known to exist.
2218         (gl_CHECK_NEXT_HEADERS): Use it.
2219         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
2220         rather than gl_CHECK_NEXT_HEADERS.
2221         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
2222         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
2223
2224 2011-01-18  Eric Blake  <eblake@redhat.com>
2225
2226         ansi-c++-opt: skip C++ dependency style if C++ is unused
2227         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
2228         tests when we know C++ compilation is not desired.
2229         Reported by Scott McCreary.
2230
2231 2011-01-18  Bruno Haible  <bruno@clisp.org>
2232
2233         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
2234         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
2235         (main): Perform test also when getrlimit and setrlimit don't exist or
2236         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
2237         limiting the address space size using setrlimit, compare the address
2238         space size before and after the the test.
2239         * tests/test-dprintf-posix2.c: Likewise.
2240         * tests/test-fprintf-posix3.sh: Update skip messages.
2241         * tests/test-dprintf-posix2.sh: Likewise.
2242         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
2243         * modules/dprintf-posix-tests (Depends-on): Likewise.
2244         Reported by Bruce Korb <bkorb@gnu.org> and
2245         Gary V. Vaughan <gary@gnu.org>.
2246
2247 2011-01-18  Bruno Haible  <bruno@clisp.org>
2248
2249         get-rusage-as: Improvement for Cygwin.
2250         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
2251         areas that are merely reserved.
2252
2253 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
2254
2255         strftime: remove dependencies on multibyte modules
2256
2257         strftime depended on mbrlen, mbsinit, and wchar, but these modules
2258         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
2259         only if __osf__ is defined, and I suspect OSF doesn't need these
2260         other modules.  If my guess is wrong, we'll need to come up with a
2261         variant of strftime that doesn't need the multibyte modules.
2262
2263         I discovered this problem when attempting modify Emacs to use the
2264         strftime module.  With the previous gnulib, this caused Emacs to
2265         need 31 new files, ranging from lib/config.charset to
2266         m4/wint_t.m4.  This was overkill and I expect would be offputting
2267         to the Emacs maintainers.  After this change, only 6 new files are
2268         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
2269         stdbool.m4, and tm_gmtoff.m4.
2270
2271         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
2272         Suggested by Bruno Haible in
2273         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
2274         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
2275         and do not check for wchar.h.
2276         * modules/strftime (Files): Remove m4/mbstate_t.m4.
2277         (Depends-on): Remove mbrlen, mbsinit, wchar.
2278
2279 2011-01-18  Bruno Haible  <bruno@clisp.org>
2280
2281         Tests for module 'get-rusage-as'.
2282         * modules/get-rusage-as-tests: New file.
2283         * tests/test-get-rusage-as.c: New file.
2284
2285         New module 'get-rusage-as'.
2286         * modules/get-rusage-as: New file.
2287         * lib/resource-ext.h: New file.
2288         * lib/get-rusage-as.c: New file.
2289
2290 2011-01-17  Eric Blake  <eblake@redhat.com>
2291
2292         sigaction: relax license from LGPLv3+ to LGPLv2+
2293         * modules/sigaction (License): Relax to LGPLv2+.
2294
2295 2011-01-14  Bruno Haible  <bruno@clisp.org>
2296
2297         filemode: Make function declarations usable in C++ mode.
2298         * lib/filemode.h: Enclose function declarations in extern "C" block.
2299         Reported by John W. Eaton <jwe@gnu.org>.
2300
2301 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
2302
2303         save-cwd: no longer include "xgetcwd.h"
2304         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
2305         This avoids a compilation failure in projects that use save-cwd
2306         without also using the xgetcwd module.
2307
2308 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
2309
2310         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
2311         This is so that a program like Emacs, which needs only dtoastr,
2312         does not have to bother with distributing and compiling ftoastr
2313         and ldtoastr.
2314         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
2315         * modules/dtoastr, modules/ldtoastr: New files.
2316         * modules/ftoastr: Now works just for 'float'.
2317         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
2318         (Makefile.am): Remove ftoastr.h (not needed and no effect),
2319         dtoastr.c, ldtoastr.c.
2320
2321 2011-01-11  Jim Meyering  <meyering@redhat.com>
2322
2323         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
2324         There is no need to work around the lack of the fchdir function,
2325         since gnulib can now provide a replacement when required.
2326         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
2327         * modules/save-cwd (Depends-on): Add fchdir.
2328
2329 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
2330
2331         openat, save-cwd: avoid xmalloc
2332
2333         This removes a direct (but undocumented) dependency of openat on
2334         xalloc, along with an indirect dependency via save-cwd.  It also
2335         removes a dependency of save-cwd on xgetcwd, and thereby
2336         indirectly on xalloc.  This change causes the openat substitute
2337         to fall back on save_cwd when memory is tight, and for save_cwd to
2338         fail instead of dying when memory is tight, but that's good enough.
2339         Problem and initial idea for fix reported by Bastien Roucaries in
2340         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
2341
2342         * lib/openat-proc.c: Include stdlib.h (for malloc), not
2343         xalloc.h (for xmalloc).
2344         (openat_proc_name): Use malloc, not xmalloc.
2345         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
2346         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
2347
2348         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
2349         This avoids heap allocation for file names whose lengths are in
2350         the range 512..1023, with the upper bound increasing to at most
2351         4031 depending on the platform's PATH_MAX.  (We do not want
2352         pathmax.h here as it might supply a non-constant PATH_MAX.)
2353         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
2354         Perhaps they should be moved to malloca.h?
2355         (OPENAT_BUFFER_SIZE): Use them.
2356
2357 2011-01-10  Bruno Haible  <bruno@clisp.org>
2358
2359         doc: Update users.txt.
2360         * users.txt: Add recutils.
2361
2362 2011-01-09  Karl Berry  <karl@gnu.org>
2363
2364         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
2365
2366         * doc/configmake.texi: New file.
2367         * doc/gnulib.texi: Include it.
2368         * modules/configmake: Move documentation from here.
2369
2370 2011-01-09  Bruno Haible  <bruno@clisp.org>
2371
2372         Update to Unicode 6.0.0.
2373         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
2374         (get_lbp): Update for Unicode 6.0.0.
2375         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
2376         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
2377         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
2378         U+11001, U+11038..U+11046. Remove U+06DE.
2379         (uc_width): Fix bounds of planes.
2380         * tests/uniwidth/test-uc_width2.sh: Same updates as in
2381         lib/uniwidth/width.c.
2382         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
2383         trailing whitespace removed.
2384         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
2385         without comments, but with the original copyright notice.
2386         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
2387         * lib/unicase/ignorable.h: Likewise.
2388         * lib/unicase/tocasefold.h: Likewise.
2389         * lib/unicase/tolower.h: Likewise.
2390         * lib/unicase/totitle.h: Likewise.
2391         * lib/unicase/toupper.h: Likewise.
2392         * lib/unictype/bidi_of.h: Likewise.
2393         * lib/unictype/blocks.h: Likewise.
2394         * lib/unictype/categ_C.h: Likewise.
2395         * lib/unictype/categ_Cn.h: Likewise.
2396         * lib/unictype/categ_L.h: Likewise.
2397         * lib/unictype/categ_Ll.h: Likewise.
2398         * lib/unictype/categ_Lm.h: Likewise.
2399         * lib/unictype/categ_Lo.h: Likewise.
2400         * lib/unictype/categ_Lu.h: Likewise.
2401         * lib/unictype/categ_M.h: Likewise.
2402         * lib/unictype/categ_Mc.h: Likewise.
2403         * lib/unictype/categ_Me.h: Likewise.
2404         * lib/unictype/categ_Mn.h: Likewise.
2405         * lib/unictype/categ_N.h: Likewise.
2406         * lib/unictype/categ_Nd.h: Likewise.
2407         * lib/unictype/categ_No.h: Likewise.
2408         * lib/unictype/categ_P.h: Likewise.
2409         * lib/unictype/categ_Po.h: Likewise.
2410         * lib/unictype/categ_S.h: Likewise.
2411         * lib/unictype/categ_Sc.h: Likewise.
2412         * lib/unictype/categ_Sk.h: Likewise.
2413         * lib/unictype/categ_Sm.h: Likewise.
2414         * lib/unictype/categ_So.h: Likewise.
2415         * lib/unictype/categ_of.h: Likewise.
2416         * lib/unictype/combining.h: Likewise.
2417         * lib/unictype/ctype_alnum.h: Likewise.
2418         * lib/unictype/ctype_alpha.h: Likewise.
2419         * lib/unictype/ctype_graph.h: Likewise.
2420         * lib/unictype/ctype_lower.h: Likewise.
2421         * lib/unictype/ctype_print.h: Likewise.
2422         * lib/unictype/ctype_punct.h: Likewise.
2423         * lib/unictype/ctype_upper.h: Likewise.
2424         * lib/unictype/decdigit.h: Likewise.
2425         * lib/unictype/digit.h: Likewise.
2426         * lib/unictype/numeric.h: Likewise.
2427         * lib/unictype/pr_alphabetic.h: Likewise.
2428         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
2429         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
2430         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
2431         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
2432         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
2433         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
2434         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
2435         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
2436         * lib/unictype/pr_case_ignorable.h: Likewise.
2437         * lib/unictype/pr_cased.h: Likewise.
2438         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
2439         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
2440         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
2441         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
2442         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
2443         * lib/unictype/pr_combining.h: Likewise.
2444         * lib/unictype/pr_composite.h: Likewise.
2445         * lib/unictype/pr_currency_symbol.h: Likewise.
2446         * lib/unictype/pr_decimal_digit.h: Likewise.
2447         * lib/unictype/pr_deprecated.h: Likewise.
2448         * lib/unictype/pr_format_control.h: Likewise.
2449         * lib/unictype/pr_grapheme_base.h: Likewise.
2450         * lib/unictype/pr_grapheme_extend.h: Likewise.
2451         * lib/unictype/pr_grapheme_link.h: Likewise.
2452         * lib/unictype/pr_id_continue.h: Likewise.
2453         * lib/unictype/pr_id_start.h: Likewise.
2454         * lib/unictype/pr_ideographic.h: Likewise.
2455         * lib/unictype/pr_lowercase.h: Likewise.
2456         * lib/unictype/pr_math.h: Likewise.
2457         * lib/unictype/pr_numeric.h: Likewise.
2458         * lib/unictype/pr_other_alphabetic.h: Likewise.
2459         * lib/unictype/pr_other_id_continue.h: Likewise.
2460         * lib/unictype/pr_other_math.h: Likewise.
2461         * lib/unictype/pr_punctuation.h: Likewise.
2462         * lib/unictype/pr_sentence_terminal.h: Likewise.
2463         * lib/unictype/pr_terminal_punctuation.h: Likewise.
2464         * lib/unictype/pr_unassigned_code_value.h: Likewise.
2465         * lib/unictype/pr_unified_ideograph.h: Likewise.
2466         * lib/unictype/pr_uppercase.h: Likewise.
2467         * lib/unictype/pr_xid_continue.h: Likewise.
2468         * lib/unictype/pr_xid_start.h: Likewise.
2469         * lib/unictype/scripts.h: Likewise.
2470         * lib/unictype/scripts_byname.gperf: Likewise.
2471         * lib/unictype/sy_java_ident.h: Likewise.
2472         * lib/unigbrk/gbrkprop.h: Likewise.
2473         * lib/unilbrk/lbrkprop1.h: Likewise.
2474         * lib/unilbrk/lbrkprop2.h: Likewise.
2475         * lib/uninorm/decomposition-table2.h: Likewise.
2476         * lib/uniwbrk/wbrkprop.h: Likewise.
2477         * tests/unicase/test-cased.c: Likewise.
2478         * tests/unicase/test-ignorable.c: Likewise.
2479         * tests/unicase/test-uc_tolower.c: Likewise.
2480         * tests/unicase/test-uc_totitle.c: Likewise.
2481         * tests/unicase/test-uc_toupper.c: Likewise.
2482         * tests/unictype/test-categ_C.c: Likewise.
2483         * tests/unictype/test-categ_Cn.c: Likewise.
2484         * tests/unictype/test-categ_L.c: Likewise.
2485         * tests/unictype/test-categ_Ll.c: Likewise.
2486         * tests/unictype/test-categ_Lm.c: Likewise.
2487         * tests/unictype/test-categ_Lo.c: Likewise.
2488         * tests/unictype/test-categ_Lu.c: Likewise.
2489         * tests/unictype/test-categ_M.c: Likewise.
2490         * tests/unictype/test-categ_Mc.c: Likewise.
2491         * tests/unictype/test-categ_Me.c: Likewise.
2492         * tests/unictype/test-categ_Mn.c: Likewise.
2493         * tests/unictype/test-categ_N.c: Likewise.
2494         * tests/unictype/test-categ_Nd.c: Likewise.
2495         * tests/unictype/test-categ_No.c: Likewise.
2496         * tests/unictype/test-categ_P.c: Likewise.
2497         * tests/unictype/test-categ_Po.c: Likewise.
2498         * tests/unictype/test-categ_S.c: Likewise.
2499         * tests/unictype/test-categ_Sc.c: Likewise.
2500         * tests/unictype/test-categ_Sk.c: Likewise.
2501         * tests/unictype/test-categ_Sm.c: Likewise.
2502         * tests/unictype/test-categ_So.c: Likewise.
2503         * tests/unictype/test-ctype_alnum.c: Likewise.
2504         * tests/unictype/test-ctype_alpha.c: Likewise.
2505         * tests/unictype/test-ctype_graph.c: Likewise.
2506         * tests/unictype/test-ctype_lower.c: Likewise.
2507         * tests/unictype/test-ctype_print.c: Likewise.
2508         * tests/unictype/test-ctype_punct.c: Likewise.
2509         * tests/unictype/test-ctype_upper.c: Likewise.
2510         * tests/unictype/test-decdigit.h: Likewise.
2511         * tests/unictype/test-digit.h: Likewise.
2512         * tests/unictype/test-numeric.h: Likewise.
2513         * tests/unictype/test-pr_alphabetic.c: Likewise.
2514         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
2515         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
2516         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
2517         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
2518         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
2519         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
2520         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
2521         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
2522         * tests/unictype/test-pr_case_ignorable.c: Likewise.
2523         * tests/unictype/test-pr_cased.c: Likewise.
2524         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
2525         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
2526         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
2527         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
2528         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
2529         * tests/unictype/test-pr_combining.c: Likewise.
2530         * tests/unictype/test-pr_composite.c: Likewise.
2531         * tests/unictype/test-pr_currency_symbol.c: Likewise.
2532         * tests/unictype/test-pr_decimal_digit.c: Likewise.
2533         * tests/unictype/test-pr_deprecated.c: Likewise.
2534         * tests/unictype/test-pr_format_control.c: Likewise.
2535         * tests/unictype/test-pr_grapheme_base.c: Likewise.
2536         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
2537         * tests/unictype/test-pr_grapheme_link.c: Likewise.
2538         * tests/unictype/test-pr_id_continue.c: Likewise.
2539         * tests/unictype/test-pr_id_start.c: Likewise.
2540         * tests/unictype/test-pr_ideographic.c: Likewise.
2541         * tests/unictype/test-pr_lowercase.c: Likewise.
2542         * tests/unictype/test-pr_math.c: Likewise.
2543         * tests/unictype/test-pr_numeric.c: Likewise.
2544         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
2545         * tests/unictype/test-pr_other_id_continue.c: Likewise.
2546         * tests/unictype/test-pr_other_math.c: Likewise.
2547         * tests/unictype/test-pr_punctuation.c: Likewise.
2548         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
2549         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
2550         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
2551         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
2552         * tests/unictype/test-pr_uppercase.c: Likewise.
2553         * tests/unictype/test-pr_xid_continue.c: Likewise.
2554         * tests/unictype/test-pr_xid_start.c: Likewise.
2555         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
2556         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
2557         changes.
2558         * lib/unictype/categ_Cc.h: Likewise.
2559         * lib/unictype/categ_Cf.h: Likewise.
2560         * lib/unictype/categ_Co.h: Likewise.
2561         * lib/unictype/categ_Cs.h: Likewise.
2562         * lib/unictype/categ_Lt.h: Likewise.
2563         * lib/unictype/categ_Nl.h: Likewise.
2564         * lib/unictype/categ_Pc.h: Likewise.
2565         * lib/unictype/categ_Pd.h: Likewise.
2566         * lib/unictype/categ_Pe.h: Likewise.
2567         * lib/unictype/categ_Pf.h: Likewise.
2568         * lib/unictype/categ_Pi.h: Likewise.
2569         * lib/unictype/categ_Ps.h: Likewise.
2570         * lib/unictype/categ_Z.h: Likewise.
2571         * lib/unictype/categ_Zl.h: Likewise.
2572         * lib/unictype/categ_Zp.h: Likewise.
2573         * lib/unictype/categ_Zs.h: Likewise.
2574         * lib/unictype/ctype_blank.h: Likewise.
2575         * lib/unictype/ctype_cntrl.h: Likewise.
2576         * lib/unictype/ctype_digit.h: Likewise.
2577         * lib/unictype/ctype_space.h: Likewise.
2578         * lib/unictype/ctype_xdigit.h: Likewise.
2579         * lib/unictype/mirror.h: Likewise.
2580         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
2581         * lib/unictype/pr_bidi_block_separator.h: Likewise.
2582         * lib/unictype/pr_bidi_common_separator.h: Likewise.
2583         * lib/unictype/pr_bidi_control.h: Likewise.
2584         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
2585         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
2586         * lib/unictype/pr_bidi_european_digit.h: Likewise.
2587         * lib/unictype/pr_bidi_pdf.h: Likewise.
2588         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
2589         * lib/unictype/pr_bidi_whitespace.h: Likewise.
2590         * lib/unictype/pr_dash.h: Likewise.
2591         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
2592         * lib/unictype/pr_diacritic.h: Likewise.
2593         * lib/unictype/pr_extender.h: Likewise.
2594         * lib/unictype/pr_hex_digit.h: Likewise.
2595         * lib/unictype/pr_hyphen.h: Likewise.
2596         * lib/unictype/pr_ids_binary_operator.h: Likewise.
2597         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
2598         * lib/unictype/pr_ignorable_control.h: Likewise.
2599         * lib/unictype/pr_iso_control.h: Likewise.
2600         * lib/unictype/pr_join_control.h: Likewise.
2601         * lib/unictype/pr_left_of_pair.h: Likewise.
2602         * lib/unictype/pr_line_separator.h: Likewise.
2603         * lib/unictype/pr_logical_order_exception.h: Likewise.
2604         * lib/unictype/pr_non_break.h: Likewise.
2605         * lib/unictype/pr_not_a_character.h: Likewise.
2606         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
2607         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
2608         * lib/unictype/pr_other_id_start.h: Likewise.
2609         * lib/unictype/pr_other_lowercase.h: Likewise.
2610         * lib/unictype/pr_other_uppercase.h: Likewise.
2611         * lib/unictype/pr_paired_punctuation.h: Likewise.
2612         * lib/unictype/pr_paragraph_separator.h: Likewise.
2613         * lib/unictype/pr_pattern_syntax.h: Likewise.
2614         * lib/unictype/pr_pattern_white_space.h: Likewise.
2615         * lib/unictype/pr_private_use.h: Likewise.
2616         * lib/unictype/pr_quotation_mark.h: Likewise.
2617         * lib/unictype/pr_radical.h: Likewise.
2618         * lib/unictype/pr_soft_dotted.h: Likewise.
2619         * lib/unictype/pr_space.h: Likewise.
2620         * lib/unictype/pr_titlecase.h: Likewise.
2621         * lib/unictype/pr_variation_selector.h: Likewise.
2622         * lib/unictype/pr_white_space.h: Likewise.
2623         * lib/unictype/pr_zero_width.h: Likewise.
2624         * lib/unictype/sy_c_ident.h: Likewise.
2625         * lib/unictype/sy_c_whitespace.h: Likewise.
2626         * lib/unictype/sy_java_whitespace.h: Likewise.
2627         * lib/uninorm/composition-table.gperf: Likewise.
2628         * lib/uninorm/decomposition-table1.h: Likewise.
2629         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
2630         LB8.
2631         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
2632         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
2633         * modules/unictype/*: Bump version number of expected libunistring
2634         version.
2635
2636 2011-01-09  Bruno Haible  <bruno@clisp.org>
2637
2638         Update to Unicode 5.2.0.
2639         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
2640         trailing whitespace removed.
2641
2642 2011-01-09  Bruno Haible  <bruno@clisp.org>
2643
2644         New Unicode character properties, from Unicode 5.2.0.
2645         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
2646         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
2647         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
2648         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
2649         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
2650         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
2651         uc_is_property_cased, uc_is_property_case_ignorable,
2652         uc_is_property_changes_when_lowercased,
2653         uc_is_property_changes_when_uppercased,
2654         uc_is_property_changes_when_titlecased,
2655         uc_is_property_changes_when_casefolded,
2656         uc_is_property_changes_when_casemapped): New declarations.
2657         * lib/unictype/pr_byname.gperf: Add the new properties.
2658         * modules/unictype/property-byname (Depends-on): Depend on the new
2659         properties modules.
2660         * modules/unictype/property-all (Depends-on): Likewise.
2661         * MODULES.html.sh (Unicode string functions): Add
2662         unictype/property-case-ignorable, unictype/property-cased,
2663         unictype/property-changes-when-casefolded,
2664         unictype/property-changes-when-casemapped,
2665         unictype/property-changes-when-lowercased,
2666         unictype/property-changes-when-titlecased,
2667         unictype/property-changes-when-uppercased.
2668
2669         New module 'unictype/property-changes-when-casemapped'.
2670         * modules/unictype/property-changes-when-casemapped: New file.
2671         * lib/unictype/pr_changes_when_casemapped.c: New file.
2672         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
2673         generated by gen-uni-tables.
2674         * modules/unictype/property-changes-when-casemapped-tests: New file.
2675         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
2676         automatically generated by gen-uni-tables.
2677
2678         New module 'unictype/property-changes-when-casefolded'.
2679         * modules/unictype/property-changes-when-casefolded: New file.
2680         * lib/unictype/pr_changes_when_casefolded.c: New file.
2681         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
2682         generated by gen-uni-tables.
2683         * modules/unictype/property-changes-when-casefolded-tests: New file.
2684         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
2685         automatically generated by gen-uni-tables.
2686
2687         New module 'unictype/property-changes-when-titlecased'.
2688         * modules/unictype/property-changes-when-titlecased: New file.
2689         * lib/unictype/pr_changes_when_titlecased.c: New file.
2690         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
2691         generated by gen-uni-tables.
2692         * modules/unictype/property-changes-when-titlecased-tests: New file.
2693         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
2694         automatically generated by gen-uni-tables.
2695
2696         New module 'unictype/property-changes-when-uppercased'.
2697         * modules/unictype/property-changes-when-uppercased: New file.
2698         * lib/unictype/pr_changes_when_uppercased.c: New file.
2699         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
2700         generated by gen-uni-tables.
2701         * modules/unictype/property-changes-when-uppercased-tests: New file.
2702         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
2703         automatically generated by gen-uni-tables.
2704
2705         New module 'unictype/property-changes-when-lowercased'.
2706         * modules/unictype/property-changes-when-lowercased: New file.
2707         * lib/unictype/pr_changes_when_lowercased.c: New file.
2708         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
2709         generated by gen-uni-tables.
2710         * modules/unictype/property-changes-when-lowercased-tests: New file.
2711         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
2712         automatically generated by gen-uni-tables.
2713
2714         New module 'unictype/property-case-ignorable'.
2715         * modules/unictype/property-case-ignorable: New file.
2716         * lib/unictype/pr_case_ignorable.c: New file.
2717         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
2718         by gen-uni-tables.
2719         * modules/unictype/property-case-ignorable-tests: New file.
2720         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
2721         generated by gen-uni-tables.
2722
2723         New module 'unictype/property-cased'.
2724         * modules/unictype/property-cased: New file.
2725         * lib/unictype/pr_cased.c: New file.
2726         * lib/unictype/pr_cased.h: New file, automatically generated by
2727         gen-uni-tables.
2728         * modules/unictype/property-cased-tests: New file.
2729         * tests/unictype/test-pr_cased.c: New file, automatically generated by
2730         gen-uni-tables.
2731
2732 2011-01-09  Bruno Haible  <bruno@clisp.org>
2733
2734         Update to Unicode 5.2.0.
2735         * lib/gen-uni-tables.c (output_predicate, output_category,
2736         output_combclass, output_bidi_category, output_decimal_digit_test,
2737         output_decimal_digit, output_digit_test, output_digit,
2738         output_numeric_test, output_numeric, output_mirror, output_scripts,
2739         output_scripts_byname, output_blocks, output_ident_category): Fix
2740         comment header.
2741         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
2742         get_wbp.
2743         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
2744         items.
2745         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
2746         Changes_When_Lowercased, Changes_When_Uppercased,
2747         Changes_When_Titlecased, Changes_When_Casefolded,
2748         Changes_When_Casemapped.
2749         (is_property_alphabetic, is_property_default_ignorable_code_point):
2750         Update for Unicode 5.2.0.
2751         (is_property_cased, is_property_case_ignorable,
2752         is_property_changes_when_lowercased,
2753         is_property_changes_when_uppercased,
2754         is_property_changes_when_titlecased,
2755         is_property_changes_when_casefolded,
2756         is_property_changes_when_casemapped): New functions.
2757         (output_properties): Output also the properties cased, case_ignorable,
2758         changes_when_lowercased, changes_when_uppercased,
2759         changes_when_titlecased, changes_when_casefolded,
2760         changes_when_casemapped.
2761         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
2762         Unicode TR#11 revision 17 -> 19.
2763         (LBP_CP): New enumeration value.
2764         (LBP_*): Adjust values accordingly.
2765         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
2766         TR#14 revision 22 -> 24.
2767         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
2768         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
2769         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
2770         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
2771         is_WBP_MIDLETTER.
2772         (output_composition_tables): Allow for 24 bits instead of 16 bits in
2773         the code1 and code2 of each composition rule.
2774         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
2775         * lib/unicase/ignorable.h: Likewise.
2776         * lib/unicase/tocasefold.h: Likewise.
2777         * lib/unicase/tolower.h: Likewise.
2778         * lib/unicase/totitle.h: Likewise.
2779         * lib/unicase/toupper.h: Likewise.
2780         * lib/unictype/bidi_of.h: Likewise.
2781         * lib/unictype/blocks.h: Likewise.
2782         * lib/unictype/categ_C.h: Likewise.
2783         * lib/unictype/categ_Cf.h: Likewise.
2784         * lib/unictype/categ_Cn.h: Likewise.
2785         * lib/unictype/categ_L.h: Likewise.
2786         * lib/unictype/categ_Ll.h: Likewise.
2787         * lib/unictype/categ_Lm.h: Likewise.
2788         * lib/unictype/categ_Lo.h: Likewise.
2789         * lib/unictype/categ_Lu.h: Likewise.
2790         * lib/unictype/categ_M.h: Likewise.
2791         * lib/unictype/categ_Mc.h: Likewise.
2792         * lib/unictype/categ_Mn.h: Likewise.
2793         * lib/unictype/categ_N.h: Likewise.
2794         * lib/unictype/categ_Nd.h: Likewise.
2795         * lib/unictype/categ_Nl.h: Likewise.
2796         * lib/unictype/categ_No.h: Likewise.
2797         * lib/unictype/categ_P.h: Likewise.
2798         * lib/unictype/categ_Pd.h: Likewise.
2799         * lib/unictype/categ_Po.h: Likewise.
2800         * lib/unictype/categ_S.h: Likewise.
2801         * lib/unictype/categ_Sc.h: Likewise.
2802         * lib/unictype/categ_So.h: Likewise.
2803         * lib/unictype/categ_of.h: Likewise.
2804         * lib/unictype/combining.h: Likewise.
2805         * lib/unictype/ctype_alnum.h: Likewise.
2806         * lib/unictype/ctype_alpha.h: Likewise.
2807         * lib/unictype/ctype_graph.h: Likewise.
2808         * lib/unictype/ctype_lower.h: Likewise.
2809         * lib/unictype/ctype_print.h: Likewise.
2810         * lib/unictype/ctype_punct.h: Likewise.
2811         * lib/unictype/ctype_upper.h: Likewise.
2812         * lib/unictype/decdigit.h: Likewise.
2813         * lib/unictype/digit.h: Likewise.
2814         * lib/unictype/numeric.h: Likewise.
2815         * lib/unictype/pr_alphabetic.h: Likewise.
2816         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
2817         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
2818         * lib/unictype/pr_bidi_european_digit.h: Likewise.
2819         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
2820         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
2821         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
2822         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
2823         * lib/unictype/pr_combining.h: Likewise.
2824         * lib/unictype/pr_composite.h: Likewise.
2825         * lib/unictype/pr_currency_symbol.h: Likewise.
2826         * lib/unictype/pr_dash.h: Likewise.
2827         * lib/unictype/pr_decimal_digit.h: Likewise.
2828         * lib/unictype/pr_deprecated.h: Likewise.
2829         * lib/unictype/pr_diacritic.h: Likewise.
2830         * lib/unictype/pr_extender.h: Likewise.
2831         * lib/unictype/pr_grapheme_base.h: Likewise.
2832         * lib/unictype/pr_grapheme_extend.h: Likewise.
2833         * lib/unictype/pr_grapheme_link.h: Likewise.
2834         * lib/unictype/pr_id_continue.h: Likewise.
2835         * lib/unictype/pr_id_start.h: Likewise.
2836         * lib/unictype/pr_ideographic.h: Likewise.
2837         * lib/unictype/pr_ignorable_control.h: Likewise.
2838         * lib/unictype/pr_logical_order_exception.h: Likewise.
2839         * lib/unictype/pr_lowercase.h: Likewise.
2840         * lib/unictype/pr_numeric.h: Likewise.
2841         * lib/unictype/pr_other_alphabetic.h: Likewise.
2842         * lib/unictype/pr_punctuation.h: Likewise.
2843         * lib/unictype/pr_sentence_terminal.h: Likewise.
2844         * lib/unictype/pr_terminal_punctuation.h: Likewise.
2845         * lib/unictype/pr_unassigned_code_value.h: Likewise.
2846         * lib/unictype/pr_unified_ideograph.h: Likewise.
2847         * lib/unictype/pr_uppercase.h: Likewise.
2848         * lib/unictype/pr_xid_continue.h: Likewise.
2849         * lib/unictype/pr_xid_start.h: Likewise.
2850         * lib/unictype/pr_zero_width.h: Likewise.
2851         * lib/unictype/scripts.h: Likewise.
2852         * lib/unictype/scripts_byname.gperf: Likewise.
2853         * lib/unictype/sy_java_ident.h: Likewise.
2854         * lib/unigbrk/gbrkprop.h: Likewise.
2855         * lib/unilbrk/lbrkprop1.h: Likewise.
2856         * lib/unilbrk/lbrkprop2.h: Likewise.
2857         * lib/unilbrk/lbrktables.h: Likewise.
2858         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
2859         LBP_CP. Implement rule LB30.
2860         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
2861         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
2862         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
2863         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
2864         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
2865         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
2866         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
2867         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
2868         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
2869         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
2870         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
2871         bits instead of 16 bits in the code1 and code2 of each composition
2872         rule.
2873         (uc_composition): Update for Unicode 5.2.0.
2874         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
2875         * lib/uninorm/decomposition-table2.h: Likewise.
2876         * lib/uniwbrk/wbrkprop.h: Likewise.
2877         * tests/unicase/test-cased.c: Likewise.
2878         * tests/unicase/test-ignorable.c: Likewise.
2879         * tests/unicase/test-uc_tolower.c: Likewise.
2880         * tests/unicase/test-uc_totitle.c: Likewise.
2881         * tests/unicase/test-uc_toupper.c: Likewise.
2882         * tests/unictype/test-categ_C.c: Likewise.
2883         * tests/unictype/test-categ_Cf.c: Likewise.
2884         * tests/unictype/test-categ_Cn.c: Likewise.
2885         * tests/unictype/test-categ_L.c: Likewise.
2886         * tests/unictype/test-categ_Ll.c: Likewise.
2887         * tests/unictype/test-categ_Lm.c: Likewise.
2888         * tests/unictype/test-categ_Lo.c: Likewise.
2889         * tests/unictype/test-categ_Lu.c: Likewise.
2890         * tests/unictype/test-categ_M.c: Likewise.
2891         * tests/unictype/test-categ_Mc.c: Likewise.
2892         * tests/unictype/test-categ_Mn.c: Likewise.
2893         * tests/unictype/test-categ_N.c: Likewise.
2894         * tests/unictype/test-categ_Nd.c: Likewise.
2895         * tests/unictype/test-categ_Nl.c: Likewise.
2896         * tests/unictype/test-categ_No.c: Likewise.
2897         * tests/unictype/test-categ_P.c: Likewise.
2898         * tests/unictype/test-categ_Pd.c: Likewise.
2899         * tests/unictype/test-categ_Po.c: Likewise.
2900         * tests/unictype/test-categ_S.c: Likewise.
2901         * tests/unictype/test-categ_Sc.c: Likewise.
2902         * tests/unictype/test-categ_So.c: Likewise.
2903         * tests/unictype/test-ctype_alnum.c: Likewise.
2904         * tests/unictype/test-ctype_alpha.c: Likewise.
2905         * tests/unictype/test-ctype_graph.c: Likewise.
2906         * tests/unictype/test-ctype_lower.c: Likewise.
2907         * tests/unictype/test-ctype_print.c: Likewise.
2908         * tests/unictype/test-ctype_punct.c: Likewise.
2909         * tests/unictype/test-ctype_upper.c: Likewise.
2910         * tests/unictype/test-decdigit.h: Likewise.
2911         * tests/unictype/test-digit.h: Likewise.
2912         * tests/unictype/test-numeric.h: Likewise.
2913         * tests/unictype/test-pr_alphabetic.c: Likewise.
2914         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
2915         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
2916         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
2917         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
2918         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
2919         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
2920         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
2921         * tests/unictype/test-pr_combining.c: Likewise.
2922         * tests/unictype/test-pr_composite.c: Likewise.
2923         * tests/unictype/test-pr_currency_symbol.c: Likewise.
2924         * tests/unictype/test-pr_dash.c: Likewise.
2925         * tests/unictype/test-pr_decimal_digit.c: Likewise.
2926         * tests/unictype/test-pr_deprecated.c: Likewise.
2927         * tests/unictype/test-pr_diacritic.c: Likewise.
2928         * tests/unictype/test-pr_extender.c: Likewise.
2929         * tests/unictype/test-pr_grapheme_base.c: Likewise.
2930         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
2931         * tests/unictype/test-pr_grapheme_link.c: Likewise.
2932         * tests/unictype/test-pr_id_continue.c: Likewise.
2933         * tests/unictype/test-pr_id_start.c: Likewise.
2934         * tests/unictype/test-pr_ideographic.c: Likewise.
2935         * tests/unictype/test-pr_ignorable_control.c: Likewise.
2936         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
2937         * tests/unictype/test-pr_lowercase.c: Likewise.
2938         * tests/unictype/test-pr_numeric.c: Likewise.
2939         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
2940         * tests/unictype/test-pr_punctuation.c: Likewise.
2941         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
2942         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
2943         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
2944         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
2945         * tests/unictype/test-pr_uppercase.c: Likewise.
2946         * tests/unictype/test-pr_xid_continue.c: Likewise.
2947         * tests/unictype/test-pr_xid_start.c: Likewise.
2948         * tests/unictype/test-pr_zero_width.c: Likewise.
2949         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
2950         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
2951         changed behaviour: line breaking is now disallowed between a letter
2952         or '=' and '('.
2953         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
2954         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
2955         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
2956         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
2957         * tests/uniwidth/test-uc_width2.sh: Same updates as in
2958         lib/uniwidth/width.c.
2959         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
2960         without comments, but with the original copyright notice.
2961         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
2962         changes.
2963         * lib/unictype/categ_Cc.h: Likewise.
2964         * lib/unictype/categ_Co.h: Likewise.
2965         * lib/unictype/categ_Cs.h: Likewise.
2966         * lib/unictype/categ_Lt.h: Likewise.
2967         * lib/unictype/categ_Me.h: Likewise.
2968         * lib/unictype/categ_Pc.h: Likewise.
2969         * lib/unictype/categ_Pe.h: Likewise.
2970         * lib/unictype/categ_Pf.h: Likewise.
2971         * lib/unictype/categ_Pi.h: Likewise.
2972         * lib/unictype/categ_Ps.h: Likewise.
2973         * lib/unictype/categ_Sk.h: Likewise.
2974         * lib/unictype/categ_Sm.h: Likewise.
2975         * lib/unictype/categ_Z.h: Likewise.
2976         * lib/unictype/categ_Zl.h: Likewise.
2977         * lib/unictype/categ_Zp.h: Likewise.
2978         * lib/unictype/categ_Zs.h: Likewise.
2979         * lib/unictype/ctype_blank.h: Likewise.
2980         * lib/unictype/ctype_cntrl.h: Likewise.
2981         * lib/unictype/ctype_digit.h: Likewise.
2982         * lib/unictype/ctype_space.h: Likewise.
2983         * lib/unictype/ctype_xdigit.h: Likewise.
2984         * lib/unictype/mirror.h: Likewise.
2985         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
2986         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
2987         * lib/unictype/pr_bidi_block_separator.h: Likewise.
2988         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
2989         * lib/unictype/pr_bidi_common_separator.h: Likewise.
2990         * lib/unictype/pr_bidi_control.h: Likewise.
2991         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
2992         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
2993         * lib/unictype/pr_bidi_pdf.h: Likewise.
2994         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
2995         * lib/unictype/pr_bidi_whitespace.h: Likewise.
2996         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
2997         * lib/unictype/pr_format_control.h: Likewise.
2998         * lib/unictype/pr_hex_digit.h: Likewise.
2999         * lib/unictype/pr_hyphen.h: Likewise.
3000         * lib/unictype/pr_ids_binary_operator.h: Likewise.
3001         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
3002         * lib/unictype/pr_iso_control.h: Likewise.
3003         * lib/unictype/pr_join_control.h: Likewise.
3004         * lib/unictype/pr_left_of_pair.h: Likewise.
3005         * lib/unictype/pr_line_separator.h: Likewise.
3006         * lib/unictype/pr_math.h: Likewise.
3007         * lib/unictype/pr_non_break.h: Likewise.
3008         * lib/unictype/pr_not_a_character.h: Likewise.
3009         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
3010         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
3011         * lib/unictype/pr_other_id_continue.h: Likewise.
3012         * lib/unictype/pr_other_id_start.h: Likewise.
3013         * lib/unictype/pr_other_lowercase.h: Likewise.
3014         * lib/unictype/pr_other_math.h: Likewise.
3015         * lib/unictype/pr_other_uppercase.h: Likewise.
3016         * lib/unictype/pr_paired_punctuation.h: Likewise.
3017         * lib/unictype/pr_paragraph_separator.h: Likewise.
3018         * lib/unictype/pr_pattern_syntax.h: Likewise.
3019         * lib/unictype/pr_pattern_white_space.h: Likewise.
3020         * lib/unictype/pr_private_use.h: Likewise.
3021         * lib/unictype/pr_quotation_mark.h: Likewise.
3022         * lib/unictype/pr_radical.h: Likewise.
3023         * lib/unictype/pr_soft_dotted.h: Likewise.
3024         * lib/unictype/pr_space.h: Likewise.
3025         * lib/unictype/pr_titlecase.h: Likewise.
3026         * lib/unictype/pr_variation_selector.h: Likewise.
3027         * lib/unictype/pr_white_space.h: Likewise.
3028         * lib/unictype/sy_c_ident.h: Likewise.
3029         * lib/unictype/sy_c_whitespace.h: Likewise.
3030         * lib/unictype/sy_java_whitespace.h: Likewise.
3031         * modules/uni*/*: Bump version number of expected libunistring version.
3032         Reported by Simon Josefsson.
3033
3034 2011-01-09  Karl Heuer  <kwzh@gnu.org>
3035
3036         useless-if-before-free: fix typo in --help and make the internal,
3037         automatic version date update process work once again.
3038         --help output contained a NUL character instead of the
3039         backslash-zero that was intended.  Also, the "must lie within
3040         the first 8 lines" line is on line 9, and hence not getting
3041         automatically updated.
3042         * build-aux/useless-if-before-free: Fix the former by adding a
3043         backslash, and the latter by condensing the three lines of what-it-does
3044         to a single line, leaving one line of slack for the future.
3045
3046 2011-01-09  Bruno Haible  <bruno@clisp.org>
3047
3048         uniwidth/width: Fix width of U+1D173..U+1D17A.
3049         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
3050         symbolic_width, output_width_property_test): New functions.
3051         (main): Invoke output_nonspacing_property, output_width_property_test.
3052         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
3053         U+1D173..U+1D17A.
3054         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
3055         1.
3056         * modules/uniwidth/*: Bump version number of expected libunistring
3057         version.
3058         * modules/unilbrk/*: Likewise.
3059
3060 2011-01-08  Bruno Haible  <bruno@clisp.org>
3061
3062         uninorm tests: Preserve copyright of Unicode data file.
3063         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
3064         Mention modifications.
3065
3066 2011-01-08  Bruno Haible  <bruno@clisp.org>
3067
3068         gen-uni-tables: Prepare for Unicode 5.2.0.
3069         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
3070         (debug_output_lbp, output_lbp): Update.
3071
3072 2011-01-08  Bruno Haible  <bruno@clisp.org>
3073
3074         unilbrk: Clarify gen-uni-tables.c code.
3075         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
3076         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
3077         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
3078
3079 2011-01-07  Bruno Haible  <bruno@clisp.org>
3080
3081         strtod: Restore errno when successfully parsing Infinity or NaN.
3082         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
3083         restore the original errno.
3084
3085 2011-01-07  Bruno Haible  <bruno@clisp.org>
3086
3087         remove test: Avoid failure on HP-UX 11.
3088         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
3089
3090 2011-01-07  Bruno Haible  <bruno@clisp.org>
3091
3092         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
3093         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
3094         error code.
3095
3096 2011-01-07  Pádraig Brady <P@draigBrady.com>
3097
3098         ignore-value: fixup comments, and add Eric Blake
3099         as an author since he rewrote the macros.
3100         * lib/ignore-value.h (ignore_value):  State that
3101         we now support aggregates.  Also specify exactly
3102         when the GCC warn_unused_result feature was added.
3103
3104 2011-01-06  Eric Blake  <eblake@redhat.com>
3105
3106         ignore-value: support aggregate types
3107         * lib/ignore-value.h (ignore_value): Provide separate gcc
3108         definition.
3109         * modules/ignore-value-tests: New test module.
3110         * tests/test-ignore-value.c: New test.
3111
3112         maint.mk: improve sc_prohibit_strcmp regex
3113         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
3114         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
3115         definition of STRNEQ.
3116
3117         signal: work around Haiku issue with SIGBUS
3118         * lib/siglist.h: Add comment.
3119         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
3120         strsignal's favoring of SIGSEGV.
3121         * tests/test-signal.c (main): Avoid test failure.
3122         * doc/posix-headers/signal.texi (signal.h): Document the issue.
3123         Reported by Scott McCreary.
3124
3125         maint.mk: add pre-release check to ensure submodule commits are public
3126         * top/maint.mk (public-submodule-commit): New rule.
3127         (submodule-checks): New variable.
3128         (alpha beta stable): Depend on the variable.
3129
3130 2011-01-05  Pádraig Brady <P@draigBrady.com>
3131         and Jim Meyering  <meyering@redhat.com>
3132
3133         ignore-value: make ignore_value more generic; deprecate ignore_ptr
3134         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
3135         (ATTRIBUTE_DEPRECATED): Define.
3136         (_ignore_case): New function.
3137         (ignore_value): New macro, to replace the old function.
3138         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
3139         * modules/ignore-value (Depends-on): Add stdint.
3140
3141 2011-01-04  Eric Blake  <eblake@redhat.com>
3142
3143         doc: regenerate INSTALL
3144         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
3145         @firstparagraphindent support, now that autoconf dropped it.
3146         (INSTALL_PRELUDE): Reinstate old macro.
3147         * doc/install.texi: Resync from autoconf.
3148         * doc/INSTALL: Reflect recent autoconf update.
3149         * doc/INSTALL.ISO: Likewise.
3150         * doc/INSTALL.UTF-8: Likewise.
3151         Reported by Karl Berry.
3152
3153 2011-01-04  Bruce Korb  <address@hidden>
3154
3155         git-version-gen: avoid a sub-shell
3156         * build-aux/git-version-gen: Redirect stderr in `...` via
3157         "exec 2>...", rather than via an added sub-shell.
3158
3159 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
3160
3161         git-version-gen: use (...) rather than sh -c '...'
3162         * build-aux/git-version-gen: Rather than hard-coding a shell's name
3163         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
3164
3165 2011-01-03  Jim Meyering  <meyering@redhat.com>
3166
3167         git-version-gen: convert leading TABs to spaces
3168         * build-aux/git-version-gen: Expand leading TABs.
3169
3170         git-version-gen: handle failed "git rev-list"
3171         * build-aux/git-version-gen: Rather than leaking a "fatal" error
3172         from git and proceeding as if it had succeeded but printed no SHA1
3173         checksums, suppress the diagnostic and handle the failure.
3174         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
3175
3176         git-version-gen: include command name in one more diagnostic
3177         * build-aux/git-version-gen: When the required .tarball-version file
3178         was missing or unreadable, you might see the diagnostic from "cat",
3179         but no trace of the name of the invoking script.  Now, you still see
3180         the diagnostic from cat, but also get one from "git-version-gen: ".
3181         Inspired by a patch from Bruce Korb.
3182
3183         update-copyright: adjust test to match changed code
3184         * tests/test-update-copyright.sh: Change test's expected output
3185         to match new actual output.
3186
3187 2011-01-02  Bruno Haible  <bruno@clisp.org>
3188
3189         getlogin_r: Avoid test failure on HP-UX 11.
3190         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
3191         ERANGE when the second argument is zero.
3192         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
3193         portability problem.
3194
3195 2011-01-02  Bruce Korb  <bkorb@gnu.org>
3196
3197         * build-aux/update-copyright: doc Simon's changes
3198
3199 2011-01-02  Simon Josefsson  <simon@josefsson.org>
3200
3201         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
3202         environment variable.
3203
3204 2011-01-02  Bruno Haible  <bruno@clisp.org>
3205
3206         unigbrk: Avoid gcc warnings.
3207         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
3208         unused variable.
3209         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
3210         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
3211         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
3212         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
3213         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
3214         Change type of first argument to 'const char *'.
3215         (main): Remove unused variable.
3216         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
3217         type of first argument to 'const char *'.
3218         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
3219         Likewise.
3220         (main): Change type of variable 's'.
3221         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
3222         to 'int'.
3223
3224 2011-01-02  Bruno Haible  <bruno@clisp.org>
3225
3226         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
3227         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
3228         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
3229         bug.
3230         * lib/pwrite.c: Undo 2010-12-31 patch.
3231         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
3232
3233 2011-01-02  Bruno Haible  <bruno@clisp.org>
3234
3235         pread: Fix test whether it works.
3236         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
3237
3238 2011-01-02  Bruno Haible  <bruno@clisp.org>
3239
3240         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
3241         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
3242         ends in "6". Don't require a specific month name. Try also the locale
3243         names found on HP-UX 11 and Solaris 7.
3244
3245 2011-01-02  Bruno Haible  <bruno@clisp.org>
3246
3247         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
3248         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
3249         C linkage.
3250         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
3251
3252 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
3253
3254         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
3255         for consistency, since the "cluster" term is not used elsewhere.
3256         * lib/unigbrk.in.h: Update name.
3257         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
3258         * lib/unigbrk/u16-grapheme-next.c: Update name.
3259         * lib/unigbrk/u16-grapheme-prev.c: Update name.
3260         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
3261         * lib/unigbrk/u32-grapheme-next.c: Update name.
3262         * lib/unigbrk/u32-grapheme-prev.c: Update name.
3263         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
3264         * lib/unigbrk/u8-grapheme-next.c: Update name.
3265         * lib/unigbrk/u8-grapheme-prev.c: Update name.
3266         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
3267         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
3268         Suggested by Bruno Haible.
3269
3270 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
3271
3272         Remove module 'u8-grapheme-len' as too redundant with
3273         'u8-grapheme-next'.
3274         * modules/unigbrk/u8-grapheme-len: Delete file.
3275         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
3276         * lib/unigbrk.in.h: Remove prototype for deleted function.
3277         * lib/unigbrk/u8-grapheme-len.c: Delete file.
3278         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
3279
3280         Remove module 'u16-grapheme-len' as too redundant with
3281         'u16-grapheme-next'.
3282         * modules/unigbrk/u16-grapheme-len: Delete file.
3283         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
3284         * lib/unigbrk.in.h: Remove prototype for deleted function.
3285         * lib/unigbrk/u16-grapheme-len.c: Delete file.
3286         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
3287
3288         Remove module 'u32-grapheme-len' as too redundant with
3289         'u32-grapheme-next'.
3290         * modules/unigbrk/u32-grapheme-len: Delete file.
3291         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
3292         * lib/unigbrk.in.h: Remove prototype for deleted function.
3293         * lib/unigbrk/u32-grapheme-len.c: Delete file.
3294         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
3295
3296         Suggested by Bruno Haible.
3297
3298 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
3299
3300         * unigbrk.in.h: Fix typo: "ben" => "been".
3301         Reported by Bruno Haible.
3302
3303 2011-01-01  Jim Meyering  <meyering@redhat.com>
3304
3305         maint: update almost all copyright ranges to include 2011
3306         Run the new "make update-copyright" rule.
3307
3308 2011-01-01  Jim Meyering  <meyering@redhat.com>
3309
3310         maint: update-copyright: exempt doc/INSTALL*
3311         * Makefile (update-copyright): Also exclude doc/INSTALL*,
3312         since they are generated.  Suggested by Bruno Haible.
3313
3314 2011-01-01  Jim Meyering  <meyering@redhat.com>
3315
3316         maint: refine the update-copyright rule
3317         * Makefile (update-copyright): Also exclude any file that includes
3318         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
3319         code that merely generates the comment.
3320
3321 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
3322
3323         New module 'u8-grapheme-len'.
3324         * modules/unigbrk/u8-grapheme-len: New file.
3325         * modules/unigbrk/u8-grapheme-len-tests: New file.
3326         * lib/unigbrk.in.h: Add prototype for new function.
3327         * lib/unigbrk/u8-grapheme-len.c: New file.
3328         * tests/unigbrk/test-u8-grapheme-len.c: New file.
3329
3330         New module 'u16-grapheme-len'.
3331         * modules/unigbrk/u16-grapheme-len: New file.
3332         * modules/unigbrk/u16-grapheme-len-tests: New file.
3333         * lib/unigbrk.in.h: Add prototype for new function.
3334         * lib/unigbrk/u16-grapheme-len.c: New file.
3335         * tests/unigbrk/test-u16-grapheme-len.c: New file.
3336
3337         New module 'u32-grapheme-len'.
3338         * modules/unigbrk/u32-grapheme-len: New file.
3339         * modules/unigbrk/u32-grapheme-len-tests: New file.
3340         * lib/unigbrk.in.h: Add prototype for new function.
3341         * lib/unigbrk/u32-grapheme-len.c: New file.
3342         * tests/unigbrk/test-u32-grapheme-len.c: New file.
3343
3344         New module 'u8-grapheme-next'.
3345         * modules/unigbrk/u8-grapheme-next: New file.
3346         * modules/unigbrk/u8-grapheme-next-tests: New file.
3347         * lib/unigbrk.in.h: Add prototype for new function.
3348         * lib/unigbrk/u8-grapheme-next.c: New file.
3349         * tests/unigbrk/test-u8-grapheme-next.c: New file.
3350
3351         New module 'u16-grapheme-next'.
3352         * modules/unigbrk/u16-grapheme-next: New file.
3353         * modules/unigbrk/u16-grapheme-next-tests: New file.
3354         * lib/unigbrk.in.h: Add prototype for new function.
3355         * lib/unigbrk/u16-grapheme-next.c: New file.
3356         * tests/unigbrk/test-u16-grapheme-next.c: New file.
3357
3358         New module 'u32-grapheme-next'.
3359         * modules/unigbrk/u32-grapheme-next: New file.
3360         * modules/unigbrk/u32-grapheme-next-tests: New file.
3361         * lib/unigbrk.in.h: Add prototype for new function.
3362         * lib/unigbrk/u32-grapheme-next.c: New file.
3363         * tests/unigbrk/test-u32-grapheme-next.c: New file.
3364
3365         New module 'u8-grapheme-prev'.
3366         * modules/unigbrk/u8-grapheme-prev: New file.
3367         * modules/unigbrk/u8-grapheme-prev-tests: New file.
3368         * lib/unigbrk.in.h: Add prototype for new function.
3369         * lib/unigbrk/u8-grapheme-prev.c: New file.
3370         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
3371
3372         New module 'u16-grapheme-prev'.
3373         * modules/unigbrk/u16-grapheme-prev: New file.
3374         * modules/unigbrk/u16-grapheme-prev-tests: New file.
3375         * lib/unigbrk.in.h: Add prototype for new function.
3376         * lib/unigbrk/u16-grapheme-prev.c: New file.
3377         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
3378
3379         New module 'u32-grapheme-prev'.
3380         * modules/unigbrk/u32-grapheme-prev: New file.
3381         * modules/unigbrk/u32-grapheme-prev-tests: New file.
3382         * lib/unigbrk.in.h: Add prototype for new function.
3383         * lib/unigbrk/u32-grapheme-prev.c: New file.
3384         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
3385
3386         New module 'u8-grapheme-breaks'.
3387         * modules/unigbrk/u8-grapheme-breaks: New file.
3388         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
3389         * lib/unigbrk.in.h: Add prototype for new function.
3390         * lib/unigbrk/u8-grapheme-breaks.c: New file.
3391         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
3392
3393         New module 'u16-grapheme-breaks'.
3394         * modules/unigbrk/u16-grapheme-breaks: New file.
3395         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
3396         * lib/unigbrk.in.h: Add prototype for new function.
3397         * lib/unigbrk/u16-grapheme-breaks.c: New file.
3398         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
3399
3400         New module 'u32-grapheme-breaks'.
3401         * modules/unigbrk/u32-grapheme-breaks: New file.
3402         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
3403         * lib/unigbrk.in.h: Add prototype for new function.
3404         * lib/unigbrk/u32-grapheme-breaks.c: New file.
3405         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
3406
3407         New module 'ulc-grapheme-breaks'.
3408         * modules/unigbrk/ulc-grapheme-breaks: New file.
3409         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
3410         * m4/locale-ar.m4: New file.
3411         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
3412         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
3413         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
3414
3415 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
3416
3417         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
3418         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
3419         modified how this file was generated before I initially submitted
3420         the module, but failed to regenerate it.  This meant that several
3421         of the level2 entries were wrong.
3422         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
3423         Remove the division-by-2 that is folded into the table now that
3424         gbrkprop.h has been regenerated properly.  Now -1 entries are
3425         handled correctly.
3426
3427         New module 'unigbrk/uc-gbrk-prop-tests'.
3428         * modules/unigbrk/uc-gbrk-prop-tests: New file.
3429         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
3430         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
3431         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
3432
3433 2011-01-01  Bruno Haible  <bruno@clisp.org>
3434
3435         Avoid use of hexadecimal escapes.
3436         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
3437         instead of hexadecimal escapes.
3438
3439 2011-01-01  Jim Meyering  <meyering@redhat.com>
3440
3441         maint: new rule to update copyright year ranges
3442         * Makefile (update-copyright): New rule.
3443
3444         maint: indent with TABs in Makefile
3445         * Makefile: Expand leading sequences of spaces to TABs
3446
3447         version-etc: update the copyright year it reports
3448         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
3449
3450 2010-12-31  Bruno Haible  <bruno@clisp.org>
3451
3452         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
3453         * lib/isfinite.c (zerof, zerod, zerol): New variables.
3454         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
3455         zero.
3456
3457 2010-12-31  Bruno Haible  <bruno@clisp.org>
3458
3459         pwrite: Work around HP-UX 11.11 bug.
3460         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
3461         works and set REPLACE_PWRITE if not.
3462         * lib/pwrite.c (pwrite): Add an implementation that uses the system
3463         function.
3464         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
3465
3466 2010-12-31  Bruno Haible  <bruno@clisp.org>
3467
3468         pread: Work around HP-UX 11 bugs.
3469         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
3470         and set REPLACE_PREAD if not.
3471         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
3472
3473 2010-12-31  Eric Blake  <eblake@redhat.com>
3474
3475         nl_langinfo: fix YESEXPR on Irix 6.5
3476         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
3477         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
3478         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
3479         it.
3480
3481 2010-12-31  Bruno Haible  <bruno@clisp.org>
3482
3483         iconv: Document HP-UX 11 bug.
3484         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
3485
3486 2010-12-31  Bruno Haible  <bruno@clisp.org>
3487
3488         ldexpl: Fix link error on HP-UX 11.
3489         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
3490         LDEXPL_LIBM, using $ISNANL_LIBM.
3491
3492 2010-12-31  Eric Blake  <eblake@redhat.com>
3493
3494         ftello: avoid compilation failure with SunStudio c89
3495         * lib/ftello.c (ftello): Use lseek, not llseek.
3496
3497         tests: avoid failing coreutils tests on cygwin
3498         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
3499         (create_exe_shims_): Return 0 when skipping.
3500
3501 2010-12-31  Bruno Haible  <bruno@clisp.org>
3502
3503         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
3504         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
3505
3506 2010-12-31  Bruno Haible  <bruno@clisp.org>
3507
3508         waitpid: Fix link error in C++ mode.
3509         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
3510
3511 2010-12-31  Bruno Haible  <bruno@clisp.org>
3512
3513         isnan: Use GCC built-ins when possible.
3514         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
3515         __builtin_isnan.
3516         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
3517         (isnan): Define using GCC built-ins for GCC >= 4.0.
3518
3519 2010-12-31  Bruno Haible  <bruno@clisp.org>
3520
3521         isnand: Fix mistake.
3522         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
3523         __builtin_isnand.
3524
3525 2010-12-31  Bruno Haible  <bruno@clisp.org>
3526
3527         open: Avoid C++ error on HP-UX 11.
3528         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
3529
3530 2010-12-31  Bruno Haible  <bruno@clisp.org>
3531
3532         time_r: Add missing declarations on HP-UX 11.
3533         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
3534         instead of HAVE_LOCALTIME_R.
3535         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
3536         HAVE_LOCALTIME_R always.
3537         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
3538         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
3539         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
3540         HAVE_LOCALTIME_R.
3541         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
3542         * doc/posix-functions/localtime_r.texi: Likewise.
3543
3544 2010-12-29  Eric Blake  <eblake@redhat.com>
3545
3546         mountlist: tweak previous commit
3547         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
3548         Reported by Paul Eggert.
3549
3550         mountlist: fix local drive detection on cygwin
3551         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
3552         that works for cygwin.
3553
3554 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
3555
3556         ftoastr, snprintf: ftoastr + snprintf module
3557         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
3558         since the snprintf module now should be good enough here.
3559         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
3560         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
3561         and gl_MODULE_INDICATOR([snprintf]), but the former enables
3562         GNULIB_SNPRINTF only for the test directory, and the latter
3563         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
3564         seems to suffice by itself.
3565
3566 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
3567
3568         alloca: one step towards thread-safety
3569         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
3570         need for a static variable.  All callers changed.  This does not
3571         make the alloca replacement thread-safe, but it's one step.
3572
3573         tests: minor indenting change
3574         * tests/init.sh: Sync from coreutils housekeeping patch
3575         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
3576         to keep lines within 80 columns.
3577
3578 2010-12-28  Jim Meyering  <meyering@redhat.com>
3579
3580         regex: don't infloop on persistent failing calloc
3581         * lib/regexec.c (build_trtable): Return failure indication upon
3582         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
3583         In glibc, this was fixed for version 2.13:
3584         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
3585
3586 2010-12-28  Bruno Haible  <bruno@clisp.org>
3587             Paul Eggert <eggert@cs.ucla.edu>
3588
3589         linkat: Make implementation robust against system behaviour variations.
3590         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
3591         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
3592         way, and to -2 if it needs a generic runtime test.
3593         * lib/linkat.c (solaris_optimized_link_immediate,
3594         solaris_optimized_link_follow): New functions.
3595         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
3596         (check_same_link): Use it.
3597
3598 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
3599
3600         New module 'unigbrk/base'.
3601         * modules/unigbrk/base: New file.
3602         * lib/unigbrk.in.h: New file.
3603
3604         New module 'unigbrk/uc-gbrk-prop'.
3605         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
3606         * modules/unigbrk/uc-gbrk-prop: New file.
3607         * lib/unigbrk/gbrkprop.h: New file.
3608         * lib/unigbrk/uc-gbrk-prop.c: New file.
3609
3610         New module 'unigbrk/uc-is-grapheme-break'.
3611         * modules/unigbrk/uc-is-grapheme-break: New file.
3612         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
3613         * lib/unigbrk/uc-is-grapheme-break.c: New file.
3614         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
3615         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
3616         * tests/unigbrk/GraphemeBreakTest.txt: New file.
3617
3618         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
3619
3620 2010-12-27  Bruno Haible  <bruno@clisp.org>
3621
3622         linkat test: Avoid failure on Solaris 11 2010-11.
3623         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
3624
3625 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
3626
3627         utimens: work around glibc rounding bug on more platforms
3628         * lib/utimens.c (fdutimens): Work around rounding bug even if
3629         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
3630         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
3631
3632 2010-12-27  Bruno Haible  <bruno@clisp.org>
3633
3634         select tests: Improve comments.
3635         * tests/test-select.c (do_select): Add comments.
3636
3637 2010-12-27  Bruno Haible  <bruno@clisp.org>
3638
3639         select tests: Safer way of handling timeout.
3640         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
3641         at every invocation.
3642
3643 2010-12-27  Bruno Haible  <bruno@clisp.org>
3644
3645         select tests: Use 'bool' where appropriate.
3646         * tests/test-select.c (connect_to_socket): Change argument type to
3647         'bool'.
3648
3649 2010-12-27  Bruno Haible  <bruno@clisp.org>
3650
3651         select tests: Use existing modules.
3652         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
3653         (configure.ac): Don't test for unistd.h.
3654         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
3655         declared in <unistd.h>.
3656
3657 2010-12-27  Bruno Haible  <bruno@clisp.org>
3658
3659         mbrtowc: Work around a Solaris 7 bug.
3660         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
3661         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
3662         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
3663         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
3664         MBRTOWC_NULL_ARG1_BUG.
3665         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
3666         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
3667         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
3668         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
3669
3670 2010-12-27  Jim Meyering  <meyering@redhat.com>
3671
3672         read-file.c: tweak syntax
3673         * lib/read-file.c (fread_file): Remove space after "*" in function
3674         definitions.
3675
3676 2010-12-27  Bruno Haible  <bruno@clisp.org>
3677
3678         times test: Avoid gcc warnings on OSF/1.
3679         * tests/test-times.c (main): Cast printf arguments from clock_t to
3680         'long int'.
3681
3682 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
3683
3684         utimens: work around glibc rounding bug on older Linux kernels
3685         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
3686         on Linux with a glibc whose utimes might not work, then work
3687         around a longstanding glibc bug involving rounding rather than
3688         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
3689         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
3690
3691 2010-12-26  Bruno Haible  <bruno@clisp.org>
3692
3693         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
3694         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
3695         _GL_CXXALIAS_SYS.
3696         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3697
3698 2010-12-26  Bruno Haible  <bruno@clisp.org>
3699
3700         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
3701         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
3702         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
3703         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
3704         looking for the declaration.
3705         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
3706         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
3707         problem.
3708         * doc/posix-functions/inet_pton.texi: Likewise.
3709
3710 2010-12-26  Bruno Haible  <bruno@clisp.org>
3711
3712         arpa_inet: Use the common idioms with C++ support.
3713         * lib/arpa_inet.in.h: Include c++defs.h.
3714         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
3715         support.
3716         * modules/arpa_inet (Depends-on): Add c++defs.
3717         (Makefile.am): Substitute the contents of c++defs.h.
3718         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
3719         * modules/arpa_inet-c++-tests: New file.
3720         * tests/test-arpa_inet-c++.cc: New file.
3721
3722 2010-12-25  Bruno Haible  <bruno@clisp.org>
3723
3724         Fix more C++ link errors on Solaris 8.
3725         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
3726         $(LIB_EACCESS).
3727         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
3728         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
3729         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
3730         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
3731         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
3732
3733 2010-12-25  Bruno Haible  <bruno@clisp.org>
3734
3735         printf-posix: Fix link error when a non-GCC compiler is used.
3736         * lib/stdio.in.h (printf): When not using GCC, override printf
3737         correctly.
3738         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3739
3740 2010-12-25  Bruno Haible  <bruno@clisp.org>
3741
3742         strerror_r-posix: Update doc.
3743         * doc/posix-functions/strerror_r.texi: Update doc about the return
3744         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
3745
3746 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
3747
3748         utimens: simplify the logic of the previous change
3749         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
3750         This should not affect whether the test succeeds or fails.
3751
3752         utimens: configure better on hosts with NFS clock skew
3753         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
3754         uses the clock of the local host.  It might use the clock of the
3755         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
3756         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
3757
3758 2010-12-25  Bruno Haible  <bruno@clisp.org>
3759
3760         ptsname test: Avoid failure on Solaris.
3761         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
3762         open a pseudo-terminal; don't use BSD-style ptys.
3763         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
3764
3765 2010-12-25  Bruno Haible  <bruno@clisp.org>
3766
3767         ptsname: Avoid ERANGE failure on some systems.
3768         * lib/ptsname.c (buffer): Increase size.
3769
3770 2010-12-25  Bruno Haible  <bruno@clisp.org>
3771
3772         rename, renameat: Avoid test failures at NFS mounted locations.
3773         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
3774         so that subsequent mkdir calls succeed.
3775
3776 2010-12-25  Bruno Haible  <bruno@clisp.org>
3777
3778         iswblank: Fix C++ link error on Solaris 8.
3779         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
3780         _GL_FUNCDECL_SYS.
3781
3782 2010-12-25  Bruno Haible  <bruno@clisp.org>
3783
3784         unistd: Fix C++ link error on Solaris 8.
3785         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
3786
3787 2010-12-25  Bruno Haible  <bruno@clisp.org>
3788
3789         readlink doc: Mention an old glibc bug.
3790         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
3791
3792 2010-12-25  Bruno Haible  <bruno@clisp.org>
3793
3794         fcntl-h: Fix for use of C++ on glibc systems.
3795         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
3796         also on glibc systems in C++ mode.
3797         Reported by Gary V. Vaughan <gary@gnu.org>.
3798
3799 2010-12-25  Bruno Haible  <bruno@clisp.org>
3800
3801         roundl-ieee: Make it work on OSF/1 5.1 with cc.
3802         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
3803
3804 2010-12-25  Bruno Haible  <bruno@clisp.org>
3805
3806         truncl-ieee: Make it work on OSF/1 5.1 with cc.
3807         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
3808         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
3809         test whether truncl works according to ISO C 99 with IEC 60559.
3810         * m4/truncl-ieee.m4: New file.
3811         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
3812         m4/signbit.m4.
3813         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
3814
3815 2010-12-25  Bruno Haible  <bruno@clisp.org>
3816
3817         ceill-ieee: Make it work on OSF/1 5.1 with cc.
3818         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
3819         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
3820         test whether ceill works according to ISO C 99 with IEC 60559.
3821         * m4/ceill-ieee.m4: New file.
3822         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
3823         m4/signbit.m4.
3824         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
3825
3826 2010-12-25  Bruno Haible  <bruno@clisp.org>
3827
3828         Ensure all prerequisites of <wchar.h> are included.
3829         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
3830         before <wchar.h>.
3831         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
3832         gl_MBRLEN_NUL_RETVAL): Likewise.
3833         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
3834         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
3835         AC_FUNC_MBRTOWC): Likewise.
3836         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3837         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
3838         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3839         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
3840         Likewise.
3841         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3842         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
3843         (gl_WCHAR_H): Improve comments.
3844         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
3845
3846 2010-12-25  Bruno Haible  <bruno@clisp.org>
3847
3848         strtok_r: Fix C syntax error in autoconf macro.
3849         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
3850         characters in test program.
3851
3852 2010-12-24  Bruno Haible  <bruno@clisp.org>
3853
3854         ceil, trunc, round: Fix gcc warnings.
3855         * lib/ceil.c (MIN): Undefine before redefining.
3856         * lib/trunc.c (MIN): Likewise.
3857         * lib/round.c (MIN): Likewise.
3858         Include <math.h> first.
3859
3860 2010-12-24  Bruno Haible  <bruno@clisp.org>
3861
3862         select tests: Avoid failures on OSF/1 5.1.
3863         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
3864         failure of closing the last socket; it may fail with ECONNRESET.
3865
3866 2010-12-24  Eric Blake  <eblake@redhat.com>
3867
3868         stdint: avoid HP-UX 10.20 preprocessor bug
3869         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
3870         than #if.
3871         * tests/test-floor2.c (main): Likewise.
3872         Reported by Peter O'Gorman.
3873
3874         pipe: make obsoletion transition easier
3875         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
3876         * modules/pipe (Files): Include revived file.
3877         (Include): Drop reference, to mirror getdate's behavior.
3878
3879 2010-12-24  Bruno Haible  <bruno@clisp.org>
3880
3881         sys_socket: Hide mismatch of declarations on NonStop Kernel.
3882         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
3883         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
3884         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3885
3886 2010-12-24  Bruno Haible  <bruno@clisp.org>
3887
3888         gethostname: Ensure declaration on NonStop Kernel.
3889         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
3890         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3891
3892 2010-12-24  Bruno Haible  <bruno@clisp.org>
3893
3894         sys_select: Ensure all necessary types on NonStop Kernel.
3895         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
3896         include <sys/time.h>.
3897         * doc/posix-headers/sys_select.texi: Mention that it's missing on
3898         NonStop Kernel.
3899         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3900
3901 2010-12-24  Bruno Haible  <bruno@clisp.org>
3902
3903         sys_select: Remove unneeded include.
3904         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
3905         have <sys/select.h>.
3906
3907 2010-12-24  Bruno Haible  <bruno@clisp.org>
3908
3909         gethostname: Provide a fallback for HOST_NAME_MAX.
3910         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
3911         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
3912         instead.
3913         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3914
3915 2010-12-24  Bruno Haible  <bruno@clisp.org>
3916
3917         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
3918         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
3919         (SA_RESTART): Likewise.
3920         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3921
3922 2010-12-24  Bruno Haible  <bruno@clisp.org>
3923
3924         signal: Define NSIG.
3925         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
3926         * tests/test-signal.c (nsig): New variable.
3927         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3928
3929 2010-12-24  Bruno Haible  <bruno@clisp.org>
3930
3931         rename, renameat: Avoid test failures on OSF/1 5.1.
3932         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
3933         alternative error codes.
3934         * tests/test-renameat.c (main): Likewise.
3935
3936 2010-12-24  Bruno Haible  <bruno@clisp.org>
3937
3938         *printf: Detect large precisions bug on Solaris 10/SPARC.
3939         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
3940         by Paul Eggert.
3941         * tests/test-snprintf-posix.h (test_function): Add this test code here
3942         too.
3943         * tests/test-sprintf-posix.h (test_function): Likewise.
3944         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3945         * tests/test-vasprintf-posix.c (test_function): Likewise.
3946         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
3947         around by gnulib.
3948         * doc/posix-functions/printf.texi: Likewise.
3949         * doc/posix-functions/snprintf.texi: Likewise.
3950         * doc/posix-functions/sprintf.texi: Likewise.
3951         * doc/posix-functions/vfprintf.texi: Likewise.
3952         * doc/posix-functions/vprintf.texi: Likewise.
3953         * doc/posix-functions/vsnprintf.texi: Likewise.
3954         * doc/posix-functions/vsprintf.texi: Likewise.
3955         * doc/posix-functions/dprintf.texi: Undo last commit.
3956         * doc/posix-functions/vdprintf.texi: Likewise.
3957
3958 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
3959
3960         tests: port test-fdutimensat.c to Solaris 8
3961         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
3962         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
3963         On Solaris 8, it fails with errno == ENOSYS, because there is no
3964         futimens (so it can't use the fd), and there is no lutimens (so it
3965         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
3966
3967         vsnprintf: make more consistent with snprintf; doc fixes
3968
3969         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
3970         the byte count return problem was promoted from the snprintf-posix
3971         to the snprintf module.
3972         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
3973         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
3974         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
3975         * tests/test-snprintf.c (main): Check the byte count returned.
3976         * tests/test-vsnprintf.c (main): Likewise.
3977
3978 2010-12-23  Eric Blake  <eblake@redhat.com>
3979
3980         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
3981         * modules/sigpipe (License): Relax license.
3982
3983 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
3984
3985         doc: document Solaris printf bug with large float precisions
3986         * doc/posix-functions/dprintf.texi (dprintf):
3987         * doc/posix-functions/fprintf.texi (fprintf):
3988         * doc/posix-functions/printf.texi (printf):
3989         * doc/posix-functions/snprintf.texi (snprintf):
3990         * doc/posix-functions/sprintf.texi (sprintf):
3991         * doc/posix-functions/vdprintf.texi (vdprintf):
3992         * doc/posix-functions/vfprintf.texi (vfprintf):
3993         * doc/posix-functions/vprintf.texi (vprintf):
3994         * doc/posix-functions/vsnprintf.texi (vsnprintf):
3995         * doc/posix-functions/vsprintf.texi (vsprintf):
3996         Mention that these functions mishandle large floating point
3997         precisions on Solaris 10.  The same bug is also present in Solaris
3998         8, and I assume earlier.  This causes "cd gnulib-tests; make
3999         check" to fail on Solaris 8 (and I assume, later) when building
4000         the latest coreutils, in test-vasprintf-posix's call to
4001         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
4002         the wide flavors (e.g., wprintf) so this patch just updates the
4003         documentation for the narrow ones.
4004
4005         test-posixtm.c: add two tests
4006         * tests/test-posixtm.c: Add two tests, to highlight the
4007         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
4008         around this bug; this is merely to document it.
4009
4010 2010-12-22  Bruno Haible  <bruno@clisp.org>
4011
4012         getlogin_r: Work around portability problem on OSF/1.
4013         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
4014         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
4015         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
4016         test for a truncated result.
4017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
4018         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
4019         * modules/getlogin_r (Depends-on): Add memchr.
4020         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
4021
4022 2010-12-22  Bruno Haible  <bruno@clisp.org>
4023
4024         ptsname: Avoid test failure on OSF/1 5.1.
4025         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
4026         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
4027         (same_slave): New function.
4028         (main): Use it to compare ptsname's result with the expected file name.
4029
4030 2010-12-22  Bruno Haible  <bruno@clisp.org>
4031
4032         Port extended stdio modules to HP NonStop Kernel.
4033         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
4034         macros.
4035         * lib/fbufmode.c: Update comments.
4036         * lib/fflush.c: Likewise.
4037         * lib/fpurge.c: Likewise.
4038         * lib/freadable.c: Likewise.
4039         * lib/freadahead.c: Likewise.
4040         * lib/freading.c: Likewise.
4041         * lib/freadptr.c: Likewise.
4042         * lib/freadseek.c: Likewise.
4043         * lib/fseeko.c: Likewise.
4044         * lib/fseterr.c: Likewise.
4045         * lib/fwritable.c: Likewise.
4046         * lib/fwriting.c: Likewise.
4047         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4048
4049 2010-12-22  Bruno Haible  <bruno@clisp.org>
4050
4051         ttyname_r: Work around bug on OSF/1 5.1.
4052         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
4053         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
4054         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
4055         present.
4056         * lib/ttyname_r.c (ttyname_r): Update comments.
4057
4058 2010-12-22  Bruno Haible  <bruno@clisp.org>
4059
4060         round: Implement result sign according to IEEE 754.
4061         * lib/round.c (MIN, MINUS_ZERO): New macros.
4062         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
4063         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
4064         * tests/test-round-ieee.c (main): Likewise.
4065         * tests/test-roundl-ieee.c (main): Likewise.
4066
4067         trunc: Implement result sign according to IEEE 754.
4068         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
4069         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
4070         * tests/test-trunc2.c: Include minus-zero.h.
4071         (MINUS_ZERO): New macro.
4072         (trunc_reference): Keep in sync with lib/trunc.c.
4073         * tests/test-truncf2.c: Include minus-zero.h.
4074         (MINUS_ZERO): New macro.
4075         (truncf_reference): Keep in sync with lib/trunc.c.
4076         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
4077         * tests/test-trunc-ieee.c (main): Likewise.
4078         * tests/test-truncl-ieee.c (main): Likewise.
4079
4080         ceil: Implement result sign according to IEEE 754.
4081         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
4082         (FUNC): Return -0.0 for -1 < x < 0.
4083         * tests/test-ceil2.c: Include minus-zero.h.
4084         (MINUS_ZERO): New macro.
4085         (ceil_reference): Keep in sync with lib/ceil.c.
4086         * tests/test-ceilf2.c: Include minus-zero.h.
4087         (MINUS_ZERO): New macro.
4088         (ceilf_reference): Keep in sync with lib/ceil.c.
4089         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
4090         * tests/test-ceil-ieee.c (main): Likewise.
4091         * tests/test-ceill-ieee.c (main): Likewise.
4092
4093         floor: Implement result sign according to IEEE 754.
4094         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
4095         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
4096         * tests/test-floorf2.c (floorf_reference): Likewise.
4097         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
4098         * tests/test-floor-ieee.c (main): Likewise.
4099         * tests/test-floorl-ieee.c (main): Likewise.
4100
4101 2010-12-22  Bruno Haible  <bruno@clisp.org>
4102
4103         getaddrinfo: Update doc.
4104         * doc/posix-functions/gai_strerror.texi: Return type is also different
4105         on AIX and HP-UX.
4106
4107 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
4108
4109         getaddrinfo, inet_ntop: Update doc for Solaris.
4110         * doc/posix-functions/gai_strerror.texi: Return type is also an
4111         issue on Solaris 9 and earlier.
4112         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
4113         on Solaris 10 and earlier.
4114
4115 2010-12-21  Bruno Haible  <bruno@clisp.org>
4116
4117         New module 'roundl-ieee'.
4118         * modules/roundl-ieee: New file.
4119         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
4120         test whether roundl works according to ISO C 99 with IEC 60559.
4121         * m4/roundl-ieee.m4: New file.
4122         * modules/roundl-ieee-tests: New file.
4123         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
4124         * tests/test-roundl.c (main): Remove signbit tests.
4125         * modules/roundl-tests (Depends-on): Remove signbit.
4126         * doc/posix-functions/roundl.texi: Mention the new module.
4127
4128 2010-12-21  Bruno Haible  <bruno@clisp.org>
4129
4130         New module 'truncl-ieee'.
4131         * modules/truncl-ieee: New file.
4132         * modules/truncl-ieee-tests: New file.
4133         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
4134         * tests/test-truncl.c (main): Remove signbit tests.
4135         * modules/truncl-tests (Depends-on): Remove signbit.
4136         * doc/posix-functions/truncl.texi: Mention the new module.
4137
4138 2010-12-21  Bruno Haible  <bruno@clisp.org>
4139
4140         New module 'ceill-ieee'.
4141         * modules/ceill-ieee: New file.
4142         * modules/ceill-ieee-tests: New file.
4143         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
4144         * tests/test-ceill.c (main): Remove signbit tests.
4145         * modules/ceill-tests (Depends-on): Remove signbit.
4146         * doc/posix-functions/ceill.texi: Mention the new module.
4147
4148 2010-12-21  Bruno Haible  <bruno@clisp.org>
4149
4150         New module 'floorl-ieee'.
4151         * modules/floorl-ieee: New file.
4152         * modules/floorl-ieee-tests: New file.
4153         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
4154         * tests/test-floorl.c (main): Remove signbit tests.
4155         * modules/floorl-tests (Depends-on): Remove signbit.
4156         * doc/posix-functions/floorl.texi: Mention the new module.
4157
4158 2010-12-21  Bruno Haible  <bruno@clisp.org>
4159
4160         New module 'round-ieee'.
4161         * modules/round-ieee: New file.
4162         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
4163         whether round works according to ISO C 99 with IEC 60559.
4164         * m4/round-ieee.m4: New file.
4165         * modules/round-ieee-tests: New file.
4166         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
4167         * tests/test-round1.c (main): Remove signbit tests.
4168         * modules/round-tests (Depends-on): Remove 'signbit'.
4169         * doc/posix-functions/round.texi: Mention the new module.
4170
4171 2010-12-21  Bruno Haible  <bruno@clisp.org>
4172
4173         New module 'trunc-ieee'.
4174         * modules/trunc-ieee: New file.
4175         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
4176         whether trunc works according to ISO C 99 with IEC 60559.
4177         * m4/trunc-ieee.m4: New file.
4178         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
4179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
4180         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
4181         * modules/trunc-ieee-tests: New file.
4182         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
4183         * tests/test-trunc1.c (main): Remove signbit tests.
4184         * modules/trunc-tests (Depends-on): Remove 'signbit'.
4185         * doc/posix-functions/trunc.texi: Mention the new module.
4186
4187 2010-12-21  Bruno Haible  <bruno@clisp.org>
4188
4189         New module 'ceil-ieee'.
4190         * modules/ceil-ieee: New file.
4191         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
4192         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
4193         ISO C 99 with IEC 60559.
4194         * m4/ceil-ieee.m4: New file.
4195         * modules/ceil (Files): Add lib/ceil.c.
4196         (Depends-on): Add 'float'.
4197         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
4198         * lib/math.in.h (ceil): New declaration.
4199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
4200         REPLACE_CEIL.
4201         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
4202         * modules/ceil-ieee-tests: New file.
4203         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
4204         * tests/test-math-c++.cc: Check the signature of 'ceil'.
4205         * doc/posix-functions/ceil.texi: Mention the new module.
4206
4207 2010-12-21  Bruno Haible  <bruno@clisp.org>
4208
4209         New module 'floor-ieee'.
4210         * modules/floor-ieee: New file.
4211         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
4212         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
4213         ISO C 99 with IEC 60559.
4214         * m4/floor-ieee.m4: New file.
4215         * modules/floor (Files): Add lib/floor.c.
4216         (Depends-on): Add 'float'.
4217         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
4218         * lib/math.in.h (floor): New declaration.
4219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
4220         REPLACE_FLOOR.
4221         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
4222         * modules/floor-ieee-tests: New file.
4223         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
4224         * tests/test-math-c++.cc: Check the signature of 'floor'.
4225         * doc/posix-functions/floor.texi: Mention the new module.
4226
4227 2010-12-21  Bruno Haible  <bruno@clisp.org>
4228
4229         New module 'roundf-ieee'.
4230         * modules/roundf-ieee: New file.
4231         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
4232         test whether roundf works according to ISO C 99 with IEC 60559.
4233         * m4/roundf-ieee.m4: New file.
4234         * modules/roundf-ieee-tests: New file.
4235         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
4236         * tests/test-roundf1.c (main): Remove signbit tests.
4237         * modules/roundf-tests (Depends-on): Remove 'signbit'.
4238         * doc/posix-functions/roundf.texi: Mention the new module.
4239
4240 2010-12-21  Bruno Haible  <bruno@clisp.org>
4241
4242         New module 'truncf-ieee'.
4243         * modules/truncf-ieee: New file.
4244         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
4245         test whether truncf works according to ISO C 99 with IEC 60559.
4246         * m4/truncf-ieee.m4: New file.
4247         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
4248         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
4249         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
4250         * modules/truncf-ieee-tests: New file.
4251         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
4252         * tests/test-truncf1.c (main): Remove signbit tests.
4253         * modules/truncf-tests (Depends-on): Remove 'signbit'.
4254         * doc/posix-functions/truncf.texi: Mention the new module.
4255
4256 2010-12-21  Bruno Haible  <bruno@clisp.org>
4257
4258         New module 'ceilf-ieee'.
4259         * modules/ceilf-ieee: New file.
4260         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
4261         test whether ceilf works according to ISO C 99 with IEC 60559.
4262         * m4/ceilf-ieee.m4: New file.
4263         * modules/ceilf-ieee-tests: New file.
4264         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
4265         * tests/test-ceilf1.c (main): Remove signbit tests.
4266         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
4267         * doc/posix-functions/ceilf.texi: Mention the new module.
4268
4269 2010-12-21  Bruno Haible  <bruno@clisp.org>
4270
4271         New module 'floorf-ieee'.
4272         * modules/floorf-ieee: New file.
4273         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
4274         test whether floorf works according to ISO C 99 with IEC 60559.
4275         * m4/floorf-ieee.m4: New file.
4276         * modules/floorf-ieee-tests: New file.
4277         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
4278         * tests/test-floorf1.c (main): Remove signbit tests.
4279         * modules/floorf-tests (Depends-on): Remove 'signbit'.
4280         * doc/posix-functions/floorf.texi: Mention the new module.
4281
4282 2010-12-21  Bruno Haible  <bruno@clisp.org>
4283
4284         Support for minus zero in autoconf macros.
4285         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
4286         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
4287         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
4288         * tests/minus-zero.h: Update comments.
4289
4290 2010-12-21  Bruno Haible  <bruno@clisp.org>
4291
4292         Tests for module 'ceil'.
4293         * modules/ceil-tests: New file.
4294         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
4295         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
4296
4297 2010-12-21  Bruno Haible  <bruno@clisp.org>
4298
4299         Tests for module 'floor'.
4300         * modules/floor-tests: New file.
4301         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
4302         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
4303
4304 2010-12-21  Bruno Haible  <bruno@clisp.org>
4305
4306         math: Fix indentation.
4307         * lib/math.in.h (floorf): Fix indentation.
4308
4309 2010-12-21  Bruno Haible  <bruno@clisp.org>
4310
4311         Fix cross-compilation guesses on Solaris.
4312         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
4313         not match "solaris2.10".
4314         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
4315         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
4316         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
4317
4318 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
4319
4320         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
4321         This fixes a problem observed with the latest coreutils snapshot
4322         that caused a test to fail on Solaris 8.  src/csplit.c's call
4323         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
4324         earlier, instead of returning the number of bytes that would have
4325         been generated; this causes csplit to incorrectly report memory
4326         exhaustion.
4327         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
4328         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
4329         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
4330         comments to match.
4331         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
4332         Fix typo in matching older versions of Solaris: "solaris2.10"
4333         is matched by the shell pattern "solaris2.[0-9]*".  This matters
4334         only for guessing while cross-compiling.
4335         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
4336
4337 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
4338
4339         ftoastr: fix comment again
4340         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
4341         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
4342         Also, simplify example a bit by using flags = 0.
4343
4344 2010-12-20  Bruno Haible  <bruno@clisp.org>
4345
4346         round*, trunc*: Update documentation regarding glibc.
4347         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
4348         * doc/posix-functions/round.texi: Likewise.
4349         * doc/posix-functions/roundl.texi: Likewise.
4350         * doc/posix-functions/truncf.texi: Likewise.
4351         * doc/posix-functions/trunc.texi: Likewise.
4352         * doc/posix-functions/truncl.texi: Likewise.
4353
4354 2010-12-20  Bruno Haible  <bruno@clisp.org>
4355
4356         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
4357         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
4358         * doc/posix-functions/round.texi: Likewise.
4359         * doc/posix-functions/roundl.texi: Likewise.
4360
4361 2010-12-20  Bruno Haible  <bruno@clisp.org>
4362
4363         ttyname_r: Add missing declaration on HP-UX 11.
4364         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
4365         HAVE_TTYNAME_R.
4366         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
4367         declared. Set HAVE_TTYNAME_R always.
4368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4369         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
4370         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
4371         HAVE_TTYNAME_R.
4372         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
4373
4374 2010-12-20  Bruno Haible  <bruno@clisp.org>
4375
4376         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
4377         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
4378         * doc/posix-functions/getlogin_r.texi: Likewise.
4379         * tests/test-getlogin.c: Include <errno.h>.
4380         (main): Avoid test failure on HP-UX 11.11.
4381         * tests/test-getlogin_r.c (main): Likewise.
4382
4383 2010-12-20  Bruno Haible  <bruno@clisp.org>
4384
4385         getlogin_r: Add missing declaration on HP-UX 11.
4386         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
4387         declared also when it exists as a function.
4388         * doc/posix-functions/getlogin_r.texi: Document this workaround.
4389
4390 2010-12-20  Bruno Haible  <bruno@clisp.org>
4391
4392         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
4393         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
4394         through wcrtomb.
4395
4396 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
4397
4398         ftoastr: fix comment
4399         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
4400         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
4401
4402 2010-12-19  Bruno Haible  <bruno@clisp.org>
4403
4404         isnan: Ensure it is a macro.
4405         * lib/math.in.h (isnan): Define as a macro if not already a macro.
4406         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
4407         Solaris.
4408
4409 2010-12-19  Bruno Haible  <bruno@clisp.org>
4410
4411         ldexpl test: Fix link error on OSF/1 5.1.
4412         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
4413
4414 2010-12-19  Bruno Haible  <bruno@clisp.org>
4415
4416         wctype: Make it work in C++ mode on OSF/1 5.1.
4417         * lib/wctype.in.h (iswblank): Declare but not define here.
4418         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
4419         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
4420         * modules/wctype (Files): Add lib/iswblank.c.
4421
4422 2010-12-19  Bruno Haible  <bruno@clisp.org>
4423
4424         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
4425         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
4426         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
4427
4428 2010-12-19  Bruno Haible  <bruno@clisp.org>
4429
4430         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
4431         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
4432         _POSIX_PII_SOCKET.
4433         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
4434         * doc/posix-functions/recvfrom.texi: Likewise.
4435         * doc/posix-functions/send.texi: Likewise.
4436         * doc/posix-functions/sendto.texi: Likewise.
4437
4438 2010-12-19  Bruno Haible  <bruno@clisp.org>
4439
4440         tcgetsid: Add missing declaration on OSF/1 5.1.
4441         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
4442         HAVE_TCGETSID.
4443         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
4444         Don't set HAVE_TCGETSID.
4445         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
4446         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
4447         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
4448         HAVE_TCGETSID.
4449         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
4450
4451 2010-12-19  Bruno Haible  <bruno@clisp.org>
4452
4453         stdio: Fix problem with popen() declaration on OSF/1 5.1.
4454         * lib/stdio.in.h: During the include_next statement, let recursive
4455         includes of this file include only the system header file.
4456
4457 2010-12-19  Bruno Haible  <bruno@clisp.org>
4458
4459         iconv_open: Fix regression from 2010-12-04.
4460         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
4461         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
4462
4463 2010-12-19  Bruno Haible  <bruno@clisp.org>
4464
4465         stdbool test: Avoid a gcc warning.
4466         * tests/test-stdbool.c (main): Fail if e1 is false.
4467         Reported by Jim Meyering.
4468
4469 2010-12-19  Jim Meyering  <meyering@redhat.com>
4470
4471         setenv: restore to working order
4472         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
4473         mistakenly removed.
4474         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
4475         HAVE_SETENV.
4476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
4477         HAVE_SETENV.
4478
4479 2010-12-19  Bruno Haible  <bruno@clisp.org>
4480
4481         Document some different function declarations on OSF/1 5.1.
4482         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
4483         * doc/posix-functions/inet_ntop.texi: Likewise.
4484         * doc/posix-functions/gethostname.texi: Likewise.
4485         * lib/unistd.in.h (gethostname): Update comment.
4486
4487 2010-12-19  Bruno Haible  <bruno@clisp.org>
4488
4489         doc: Mention vasprintf-posix module.
4490         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
4491         the 'vasprintf-posix' module.
4492         * doc/glibc-functions/vasprintf.texi: Likewise.
4493
4494 2010-12-19  Bruno Haible  <bruno@clisp.org>
4495
4496         unsetenv: Add missing declaration on OSF/1 5.1.
4497         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
4498         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
4499         Don't set HAVE_UNSETENV. In the test program, set _BSD.
4500         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
4501         not HAVE_UNSETENV.
4502         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
4503         HAVE_UNSETENV.
4504         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
4505
4506 2010-12-19  Bruno Haible  <bruno@clisp.org>
4507
4508         setenv: Add missing declaration on OSF/1 5.1.
4509         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
4510         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
4511         declared. Don't set HAVE_SETENV.
4512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
4513         not HAVE_SETENV.
4514         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
4515         HAVE_SETENV.
4516         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
4517
4518 2010-12-19  Bruno Haible  <bruno@clisp.org>
4519
4520         nl_langinfo tests: Avoid gcc warning.
4521         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
4522
4523 2010-12-19  Bruno Haible  <bruno@clisp.org>
4524
4525         mknod: Avoid error in C++ mode on OSF/1 with GCC.
4526         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
4527         _GL_CXXALIAS_SYS.
4528
4529 2010-12-19  Bruno Haible  <bruno@clisp.org>
4530
4531         stdbool: Relax test.
4532         * tests/test-stdbool.c (e): Don't require that casts from a variable's
4533         address to 'bool' work in static initializer, for compilers other than
4534         GCC.
4535
4536 2010-12-19  Bruno Haible  <bruno@clisp.org>
4537
4538         ftello: Add missing declaration on OSF/1 5.1.
4539         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
4540         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
4541         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
4542         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
4543         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
4544
4545 2010-12-19  Bruno Haible  <bruno@clisp.org>
4546
4547         fseeko: Add missing declaration on OSF/1 5.1.
4548         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
4549         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
4550         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
4551         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
4552         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
4553
4554 2010-12-19  Bruno Haible  <bruno@clisp.org>
4555
4556         fchdir: Add missing declaration on OSF/1 5.1.
4557         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
4558         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
4559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
4560         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
4561         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
4562
4563 2010-12-19  Bruno Haible  <bruno@clisp.org>
4564
4565         relocatable-prog-wrapper: Separate from relocatable-prog.
4566         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
4567         uninstall-relocwrapper rule here.
4568         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
4569         Reported by Ian Beckwith <ianb@erislabs.net>.
4570
4571 2010-12-19  Bruno Haible  <bruno@clisp.org>
4572
4573         unistr/u8-mbsnlen: Add missing dependency.
4574         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
4575         Reported by Ian Beckwith <ianb@erislabs.net>.
4576
4577 2010-12-19  Bruno Haible  <bruno@clisp.org>
4578
4579         iconv: Make it possible again to use this module without 'iconv-h'.
4580         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
4581         if it is not defined.
4582         Reported by Ian Beckwith <ianb@erislabs.net>.
4583
4584 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4585
4586         acl: port to Solaris 8 when copying from tmpfs to ufs
4587         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
4588         error number.  Problem observed on Solaris 8 with latest
4589         coreutils, with "mv A B", where A is on a tmpfs file system and B
4590         is on a ufs file system.  This caused coreutils' mv/part-symlink
4591         test to fail.
4592
4593         tests: set fail=0 at start
4594         * tests/init.sh (setup_): Move fail=0 initialization here ...
4595         (mktempd_): ... from here, so that tests can rely on fail being
4596         set to 0 initially.  This fixes a problem in coreutils; see:
4597         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
4598
4599 2010-12-18  Bruno Haible  <bruno@clisp.org>
4600
4601         memmem-simple: Stylistic changes.
4602         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
4603         Fix preprocessor directive indentation.
4604
4605 2010-12-15  Pádraig Brady <P@draigBrady.com>
4606
4607         memmem, memmem-simple: reorganize and expand empty needle check
4608         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
4609         functional checks to memmem-simple so that one has a fully functional
4610         memmem by using just this module.
4611         Restrict the performance only check to the memmem module.
4612         Also expand the empty needle check to ensure the correct
4613         pointer is returned, not just a non NULL pointer.
4614         * doc/glibc-functions/memmem.texi: Rearrange the portability
4615         documentation to correlate with the rearranged checks.
4616         Clarify exactly how the memmem and memmem-simple modules
4617         relate to each other.
4618
4619 2010-12-15  Pádraig Brady <P@draigBrady.com>
4620             Bruno Haible  <bruno@clisp.org>
4621
4622         Improve cross-compilation guesses for uClibc.
4623         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
4624         that uClibc does not have the glibc bug.
4625         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
4626         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
4627
4628 2010-12-14  Eric Blake  <eblake@redhat.com>
4629
4630         configmake: provide fallbacks for oldest supported autotools
4631         * m4/configmake.m4: New file.
4632         * modules/configmake (Files): Ship it.
4633         (configure.ac): Use it to guarantee fallbacks.
4634
4635 2010-12-13  Pádraig Brady <P@draigBrady.com>
4636
4637         read-file: Improve handling of large files
4638         * lib/read-file.c (fread_file): Minimize realloc()s
4639         for regular files, and better manage sizes around SIZE_MAX.
4640
4641 2010-12-13  Eric Blake  <eblake@redhat.com>
4642
4643         cloexec, fcntl: relax license
4644         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
4645         consent from all contributors.
4646         * modules/fcntl (License): Likewise.
4647
4648 2010-12-10  Bruno Haible  <bruno@clisp.org>
4649
4650         Tests for module 'pipe-posix'.
4651         * modules/pipe-posix-tests: New file.
4652         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
4653
4654 2010-12-10  Bruno Haible  <bruno@clisp.org>
4655
4656         pipe-posix: Make it work in C++ mode.
4657         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
4658         (pipe): Use common idiom, not a macro definition.
4659         * lib/pipe.c: New file.
4660         * m4/pipe.m4: New file.
4661         * modules/pipe-posix (Description): Enhance.
4662         (Files): Add lib/pipe.c, m4/pipe.m4.
4663         (configure.ac): Invoke gl_FUNC_PIPE.
4664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
4665         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
4666         * tests/test-unistd-c++.cc: Check the signature of pipe.
4667
4668 2010-12-10  Bruno Haible  <bruno@clisp.org>
4669
4670         Rename module 'pipe' to 'spawn-pipe'.
4671         * modules/spawn-pipe: New file, renamed from modules/pipe.
4672         (Files, configure.ac, Makefile.am): Update.
4673         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
4674         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
4675         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
4676         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
4677         "spawn-pipe.h" instead of "pipe.h".
4678         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
4679         to gl_SPAWN_PIPE.
4680         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
4681         (Files, Makefile.am): Update.
4682         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
4683         Update.
4684         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
4685         Include "spawn-pipe.h" instead of "pipe.h".
4686         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
4687         * lib/javacomp.c: Likewise.
4688         * lib/javaversion.c: Likewise.
4689         * lib/pipe-filter-gi.c: Likewise.
4690         * lib/pipe-filter-ii.c: Likewise.
4691         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
4692         * modules/javacomp (Depends-on): Likewise.
4693         * modules/javaversion (Depends-on): Likewise.
4694         * modules/pipe-filter-gi (Depends-on): Likewise.
4695         * modules/pipe-filter-ii (Depends-on): Likewise.
4696         * MODULES.html.sh (Executing programs): Update.
4697         * NEWS: Mention the change.
4698
4699 2010-12-10  Eric Blake  <eblake@redhat.com>
4700
4701         pipe-posix: new module
4702         * modules/pipe-posix: New file.
4703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
4704         (gl_UNISTD_H): Check for declaration.
4705         * modules/unistd (Makefile.am): Substitute it.
4706         * lib/unistd.in.h (pipe): Provide it for mingw.
4707         * doc/posix-functions/pipe.texi (pipe): Update documentation.
4708         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
4709
4710 2010-12-07  Bruno Haible  <bruno@clisp.org>
4711
4712         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
4713         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
4714         u8_strcmp_gnu.
4715         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
4716
4717 2010-12-06  Bruno Haible  <bruno@clisp.org>
4718
4719         Update internal documentation.
4720         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
4721
4722 2010-12-04  Bruno Haible  <bruno@clisp.org>
4723
4724         Put more information about failed tests into the test return codes.
4725         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
4726         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
4727         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
4728         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4729         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
4730         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
4731         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4732         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
4733         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
4734         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4735         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
4736         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4737         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4738         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4739         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
4740         returns a bit mask.
4741         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
4742         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
4743         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
4744         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
4745         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4746         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
4747         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
4748         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
4749         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
4750         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
4751         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
4752         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
4753         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
4754         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
4755         * m4/link.m4 (gl_FUNC_LINK): Likewise.
4756         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
4757         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
4758         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
4759         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
4760         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
4761         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4762         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
4763         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
4764         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4765         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
4766         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
4767         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
4768         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
4769         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
4770         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
4771         gl_PRINTF_PRECISION): Likewise.
4772         * m4/regex.m4 (gl_REGEX): Likewise.
4773         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
4774         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4775         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
4776         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4777         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
4778         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4779         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
4780         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
4781         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4782         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4783         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
4784         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
4785         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
4786         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4787         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4788         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4789         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
4790         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
4791         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4792         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
4793         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
4794         enumerated value.
4795         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
4796
4797 2010-12-04  Bruno Haible  <bruno@clisp.org>
4798
4799         Update for Solaris 11 2010-11.
4800         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
4801         Express, released in November 2010.
4802
4803 2010-12-04  Bruno Haible  <bruno@clisp.org>
4804
4805         nproc: Relax license.
4806         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
4807         and Paul Eggert.
4808         Requested by Ludovic Courtès <ludo@gnu.org>.
4809
4810 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
4811
4812         utimecmp: fine-grained src to nearby coarse-grained dest
4813
4814         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
4815         and the source is on a file system with higher-resolution time
4816         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
4817         not work, and the time stamps are close together, the algorithm to
4818         determine the exact resolution from the read-back mtime was buggy:
4819         it had a "!=" where it should have had an "==".  This bug has been
4820         in the code ever since it was introduced to gnulib.
4821         Problem reported by Dan Jacobson in
4822         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
4823
4824 2010-11-30  Bruno Haible  <bruno@clisp.org>
4825
4826         strerror_r-posix: Fix autoconf test.
4827         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
4828
4829 2010-11-28  Bruno Haible  <bruno@clisp.org>
4830             Paul Eggert  <eggert@cs.ucla.edu>
4831
4832         Tests for module 'getdomainname'.
4833         * modules/getdomainname-tests: New file.
4834         * tests/test-getdomainname.c: New file, based on
4835         tests/test-gethostname.c.
4836
4837 2010-11-28  Bruno Haible  <bruno@clisp.org>
4838             Paul Eggert  <eggert@cs.ucla.edu>
4839
4840         getdomainname: Use the system function when possible.
4841         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
4842         (getdomainname): Replace if needed. Provide the declaration if it is
4843         missing. Don't use _GL_CXXALIAS_SYS_CAST.
4844         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
4845         (getdomainname): When the system has getdomainname, call the system
4846         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
4847         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
4848         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
4849         found in libnsl. Look for the declaration also in <netdb.h>. Replace
4850         the function if its second argument is of type 'int' or if it is found
4851         in libnsl.
4852         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
4853         <sys/systeminfo.h> and sysinfo().
4854         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
4855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4856         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
4857         HAVE_GETDOMAINNAME.
4858         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
4859         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
4860         * doc/glibc-functions/getdomainname.texi: Document the problems with
4861         the getdomainname declaration.
4862
4863 2010-11-28  Bruno Haible  <bruno@clisp.org>
4864
4865         sys_socket: Ensure ss_family field on AIX.
4866         * lib/sys_socket.in.h (ss_family): New macro definition.
4867         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
4868         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
4869         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
4870         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
4871         * modules/sys_socket (Makefile.am): Substitute
4872         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
4873         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
4874
4875 2010-11-27  Bruno Haible  <bruno@clisp.org>
4876
4877         readline: Improve configure output.
4878         * m4/readline.m4 (gl_FUNC_READLINE): Make the
4879         "checking for readline..." result understandable.
4880
4881 2010-11-27  Bruno Haible  <bruno@clisp.org>
4882
4883         *printf-posix: Detect a bug on Solaris 10/x86.
4884         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
4885         for floating-point output.
4886         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
4887         directive.
4888         * tests/test-snprintf-posix.h (test_function): Likewise.
4889         * tests/test-sprintf-posix.h (test_function): Likewise.
4890         * tests/test-vasprintf-posix.c (test_function): Likewise.
4891         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
4892         * doc/posix-functions/printf.texi: Likewise.
4893         * doc/posix-functions/snprintf.texi: Likewise.
4894         * doc/posix-functions/sprintf.texi: Likewise.
4895         * doc/posix-functions/vfprintf.texi: Likewise.
4896         * doc/posix-functions/vprintf.texi: Likewise.
4897         * doc/posix-functions/vsnprintf.texi: Likewise.
4898         * doc/posix-functions/vsprintf.texi: Likewise.
4899         * doc/glibc-functions/obstack_printf.texi: Likewise.
4900         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4901
4902 2010-11-27  Bruno Haible  <bruno@clisp.org>
4903
4904         Fix link error when module libunistring-optional is in use.
4905         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
4906         * modules/striconveha-tests (Makefile.am): Likewise.
4907
4908 2010-11-27  Bruno Haible  <bruno@clisp.org>
4909
4910         regex: Mention link dependencies.
4911         * modules/regex (Link): New section.
4912         * modules/rpmatch (Link): Likewise.
4913         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
4914
4915 2010-11-27  Bruno Haible  <bruno@clisp.org>
4916
4917         ftoastr: Fix compilation error on Solaris.
4918         * lib/ftoastr.c: Include <config.h>.
4919
4920 2010-11-27  Bruno Haible  <bruno@clisp.org>
4921
4922         getloadavg: Update documentation.
4923         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
4924
4925 2010-11-27  Bruno Haible  <bruno@clisp.org>
4926
4927         sys_socket: Fix test whether the functions are declared.
4928         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
4929         not <sys/select.h>.
4930
4931 2010-11-27  Bruno Haible  <bruno@clisp.org>
4932
4933         getpass: Make sure to get system declaration on some platforms.
4934         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
4935         gl_USE_SYSTEM_EXTENSIONS.
4936         * modules/getpass (Depends-on): Add extensions.
4937
4938 2010-11-26  Bruno Haible  <bruno@clisp.org>
4939
4940         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
4941         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
4942         'iconv' module is present.
4943         (ICONV_CONST): New macro.
4944         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
4945         ICONV_CONST.
4946         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
4947         set ICONV_CONST.
4948         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
4949         here.
4950         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
4951         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
4952         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
4953         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
4954         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
4955         present.
4956
4957 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
4958
4959         ftoastr: comment fix
4960         * lib/ftoastr.c: "little" -> "little or no" in comment
4961
4962 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
4963
4964         stdint: port to GCC 4.3 + OSX + Octave
4965         On this platform, stdint.h is buggy and defines int64_t to long
4966         long int.  The replacement defined it to long int, causing
4967         problems with C++ style name mangling.  Instead, trust the system
4968         definition if INT64_MAX is defined, and likewise for the unsigned
4969         variant.   Problem reported by Jarno Rajahalme in
4970         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
4971         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
4972         and don't mess with int64_t and INT64_MAX in this case.
4973         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
4974
4975 2010-11-24  Bruno Haible  <bruno@clisp.org>
4976
4977         doc: Corrections regarding MacOS X 10.4 and 10.5.
4978         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
4979         MacOS X.
4980         Reported by Simon Josefsson.
4981
4982 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
4983
4984         Uninstall ".bin" files installed by relocwrapper.
4985         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
4986         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
4987         unless it is already there.
4988
4989 2010-11-21  Bruno Haible  <bruno@clisp.org>
4990
4991         Update for NetBSD 5.0.
4992         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
4993         NetBSD; the test fails on NetBSD 5.0.
4994         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
4995         about NetBSD.
4996
4997 2010-11-21  Bruno Haible  <bruno@clisp.org>
4998
4999         Update for HP-UX 11.23 and HP-UX 11.31.
5000         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
5001         HP-UX.
5002
5003 2010-11-21  Bruno Haible  <bruno@clisp.org>
5004
5005         Update for MacOS X 10.5.
5006         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
5007         MacOS X; the test fails on MacOS X 10.5.8.
5008         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
5009         about MacOS X.
5010
5011 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
5012
5013         bootstrap: add bootstrap_sync option.
5014         See discussion at
5015         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
5016         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
5017         * build-aux/bootstrap: Accept --bootstrap-sync to update
5018         bootstrap if it is not identical to the local gnulib's
5019         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
5020         enable this by default.  Accept --no-bootstrap-sync to disable
5021         it.
5022
5023 2010-11-20  Bruno Haible  <bruno@clisp.org>
5024
5025         Ensure that <features.h> is included before __GLIBC__ is tested.
5026         * lib/printf-parse.h: Include <features.h>.
5027         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
5028         Reported by Mike Frysinger <vapier@gentoo.org>.
5029
5030         Ensure that <features.h> is included before __GLIBC__ is tested.
5031         * lib/wchar.in.h: Include <features.h>.
5032         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
5033         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
5034         Reported by Mike Frysinger <vapier@gentoo.org>.
5035
5036         Ensure that <features.h> is included before __GLIBC__ is tested.
5037         * lib/arpa_inet.in.h: Include <features.h>.
5038         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
5039         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
5040         Reported by Mike Frysinger <vapier@gentoo.org>.
5041
5042         Ensure that <features.h> is included before __GLIBC__ is tested.
5043         * build-aux/link-warning.h: Include <features.h>.
5044         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
5045         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
5046         Reported by Mike Frysinger <vapier@gentoo.org>.
5047
5048         Ensure that <features.h> is included before __GLIBC__ is tested.
5049         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
5050         Reported by Mike Frysinger <vapier@gentoo.org>.
5051
5052 2010-11-20  Bruno Haible  <bruno@clisp.org>
5053
5054         memmem: Fix autoconf test.
5055         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
5056
5057 2010-11-20  Bruno Haible  <bruno@clisp.org>
5058
5059         Port to uClibc.
5060         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
5061         * lib/fcntl.in.h: Likewise.
5062         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
5063         * lib/mbrtowc.c (mbrtowc): Likewise.
5064         * lib/relocatable.c (find_shared_library_fullname): Likewise.
5065         * lib/strerror_r.c: Likewise.
5066         * lib/unistr/u8-strnlen.c: Likewise.
5067         * lib/vasnprintf.c (decimal_point_char): Likewise.
5068         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
5069         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
5070         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
5071         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
5072         * tests/test-sigaction.c (handler, main): Likewise.
5073         * lib/freading.h: Treat uClibc like a non-glibc platform.
5074         * lib/freading.c: Likewise.
5075         * lib/gettext.h: Likewise.
5076         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
5077         Likewise.
5078         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
5079         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
5080         * lib/propername.c (proper_name_utf8): Likewise.
5081         * lib/spawn.in.h: Likewise.
5082         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
5083         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
5084         mem_cd_iconveh_internal): Likewise.
5085         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
5086         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
5087         strstr, strcasestr): Likewise.
5088         * lib/unicodeio.c (unicode_to_mb): Likewise.
5089         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
5090         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
5091         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
5092         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
5093         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
5094         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
5095         * lib/unistr/u8-stpncpy.c: Likewise.
5096         * lib/vasnprintf.c (VASNPRINTF): Likewise.
5097         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
5098         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
5099         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5100         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
5101         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
5102         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
5103         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
5104         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
5105         Likewise.
5106         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
5107         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
5108         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
5109         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5110         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
5111         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5112         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5113         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5114         * tests/test-getopt.h (OPTIND_MIN): Likewise.
5115         * tests/test-striconveha.c (main): Likewise.
5116         * tests/test-vasnprintf-posix.c (test_function): Likewise.
5117         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
5118         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
5119         * doc/posix-functions/getline.texi: Likewise.
5120         Reported by Mike Frysinger <vapier@gentoo.org>.
5121
5122 2010-11-20  Bruno Haible  <bruno@clisp.org>
5123
5124         nproc: Fix condition.
5125         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
5126         HAVE_PTHREAD_AFFINITY_NP.
5127
5128 2010-11-20  Bruno Haible  <bruno@clisp.org>
5129
5130         Fix a comment.
5131         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
5132
5133 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
5134
5135         ftoastr: don't assume snprintf
5136         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
5137         Implement a subset of snprintf here, by using sprintf safely.
5138         * modules/ftoastr (Depends-on): Remove snprintf.
5139
5140 2010-11-19  Jim Meyering  <meyering@redhat.com>
5141
5142         test-rename.h: fix compilation failure
5143         * tests/test-rename.h (test_rename): Add omitted "}".
5144
5145 2010-11-17  Jim Meyering  <meyering@redhat.com>
5146
5147         maint.mk: add a URL discussing the no-@acronym policy
5148         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
5149
5150 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5151
5152         ftoastr: depend on snprintf, improve comments
5153         * lib/ftoastr.c: Also mention Loitsch's draft.
5154         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
5155         needed in the current implementation, but it might simplify
5156         speeding up the code later.
5157         * modules/ftoastr: Depend on snprintf; this improves portability.
5158         Suggested by Bruno Haible in the same email.
5159
5160         ftoastr: port to hosts lacking strtof and strtold
5161         Problem reported by Bruno Haible in
5162         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
5163         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
5164         environment and strtold (and presumably strtof) are not available.
5165         * modules/ftoastr (Files): Add m4/c-strtod.m4.
5166         (configure.ac): Require gl_C99_STRTOLD.
5167
5168 2010-11-18  Bruno Haible  <bruno@clisp.org>
5169
5170         c-strtold: Avoid link error on AIX 7.
5171         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
5172         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
5173         (gl_C_STRTOLD): Test whether strtold_l exists.
5174         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5175
5176 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5177
5178         intprops: new macro INT_BITS_STRLEN_BOUND
5179         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
5180         ftoastr.h.  This exposes an internal of intprops.h that was formerly
5181         not exposed.  Also, it uses a slightly tighter bound than before;
5182         though this makes no practical difference, we might as well be as
5183         tight as we easily can.
5184
5185         ftoastr: new module, for lossless conversion of floats to short strings
5186         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
5187         * modules/ftoastr: New files.
5188
5189 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
5190
5191         bootstrap: port to Solaris sed
5192         * build-aux/bootstrap (get_version): Port to Solaris sed.
5193         See Ralf Wildenhues's note in
5194         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
5195
5196 2010-11-14  Jim Meyering  <meyering@redhat.com>
5197
5198         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
5199         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
5200         and move definition closer to sole use.
5201
5202 2010-11-13  Jim Meyering  <meyering@redhat.com>
5203
5204         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
5205         Now we require at least autoconf-2.59, which means the work-around
5206         is no longer needed.
5207         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
5208         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5209         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
5210         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
5211         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
5212
5213 2010-11-13  Bruno Haible  <bruno@clisp.org>
5214
5215         rename, renameat: Avoid test failures at NFS mounted locations.
5216         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
5217         functions.
5218         (test_rename): Use assert_nonexistent.
5219         * tests/test-rename.c: Include <dirent.h>.
5220         * tests/test-renameat.c: Likewise.
5221         Reported by Gary V. Vaughan <gary@gnu.org>.
5222
5223         rename, renameat: Document Linux bug with NFS
5224         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
5225         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
5226         * doc/posix-functions/renameat.texi: Likewise.
5227         Suggested by Eric Blake.
5228
5229 2010-11-13  Bruno Haible  <bruno@clisp.org>
5230
5231         rename test: Add comments.
5232         * tests/test-rename.h (test_rename): Add structure and comments.
5233
5234 2010-11-13  Eric Blake  <eblake@redhat.com>
5235
5236         maintainer-makefile: cover a few more files
5237         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
5238         scripts generated within C files, for libvirt.
5239
5240 2010-11-13  Bruno Haible  <bruno@clisp.org>
5241
5242         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
5243         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
5244         character, return the number of bytes that belong together, not always
5245         1.
5246         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
5247         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
5248         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
5249         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
5250         number of bytes of an invalid character.
5251         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
5252         (main): Invoke it.
5253         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
5254         results.
5255         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
5256         malformed byte sequences.
5257         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
5258         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
5259         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
5260         Reported by Ben Pfaff and Paolo Bonzini.
5261
5262 2010-11-13  Bruno Haible  <bruno@clisp.org>
5263
5264         openat: Work around glibc bug with fchownat() and empty file names.
5265         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
5266         (gl_FUNC_FCHOWNAT): Invoke it.
5267         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
5268         * doc/posix-functions/fchownat.texi: Document the glibc bug.
5269         Reported by Gary V. Vaughan <gary@gnu.org>.
5270
5271 2010-11-13  Bruno Haible  <bruno@clisp.org>
5272
5273         openat: Ensure autoconf macro ordering.
5274         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
5275         gl_USE_SYSTEM_EXTENSIONS.
5276         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
5277
5278 2010-11-13  Bruno Haible  <bruno@clisp.org>
5279
5280         Update comments.
5281         * lib/unistr/u8-check.c: Update file name in comments.
5282         * lib/unistr/u8-mblen.c: Likewise.
5283         * lib/unistr/u8-prev.c: Likewise.
5284         * lib/unistr/u8-strmblen.c: Likewise.
5285         * lib/unistr/u8-strmbtouc.c: Likewise.
5286
5287 2010-11-13  Jim Meyering  <meyering@redhat.com>
5288
5289         tests: avoid test failure on Solaris 10 due to lack of PATH export
5290         * tests/test-update-copyright.sh: Don't forget to export PATH.
5291
5292         init.sh: ensure that IFS is defined, just in case...
5293         * tests/init.sh (setup_): Ensure that IFS is defined,
5294         so that saving and restoring it works as expected.  This
5295         appears to be useful at least for an old version of dash
5296         from a long time ago (RH 6).  See here for details:
5297         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
5298
5299         maint.mk: tighten "test a == b" check
5300         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
5301         test to files that contain something like #!/bin/sh.
5302         Without this, coreutils would get two false positives in
5303         the comments of C source files.
5304
5305 2010-11-12  Eric Blake  <eblake@redhat.com>
5306
5307         bootstrap: fix typo in previous attempt
5308         * build-aux/bootstrap (buildreq): Correct the grouping.
5309         Reported by Paul Eggert.
5310
5311         maintainer-makefile: prohibit test x == x
5312         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
5313         Based on a report by Matthias Bolte.
5314
5315         bootstrap: allow FreeBSD gzip
5316         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
5317         which has no '.' and goes to stderr.
5318         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
5319         Reported by Matthias Bolte.
5320
5321         maintainer-makefile: check for i18n setup
5322         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
5323         will likely work.
5324
5325 2010-11-12  Bruno Haible  <bruno@clisp.org>
5326
5327         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
5328         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
5329         * lib/nanosleep.c (nanosleep): Likewise.
5330
5331 2010-11-11  Bruno Haible  <bruno@clisp.org>
5332
5333         fcntl-h: Fix for use of C++ on glibc systems.
5334         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
5335         also on glibc systems in C++ mode.
5336         Reported by Gary V. Vaughan <gary@gnu.org>.
5337
5338 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
5339
5340         mknod: avoid false failure with dash
5341         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
5342
5343 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
5344
5345         unlink: Fix "is it should" typo in diagnostic.
5346         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
5347         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
5348
5349 2010-11-11  Bruno Haible  <bruno@clisp.org>
5350
5351         Tests for module 'strerror_r-posix'.
5352         * modules/strerror_r-posix-tests: New file.
5353         * tests/test-strerror_r.c: New file.
5354         * tests/test-string-c++.cc: Check the signature of strerror_r.
5355
5356         New module 'strerror_r-posix'.
5357         * lib/string.in.h (strerror_r): New declaration.
5358         * lib/strerror_r.c: New file.
5359         * m4/strerror_r.m4: New file.
5360         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
5361         of strerror_r.
5362         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
5363         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
5364         * modules/strerror_r-posix: New file.
5365         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
5366         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
5367         * doc/posix-functions/strerror_r.texi: Mention the new module and the
5368         portability problems.
5369
5370 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
5371
5372         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
5373         line is also considered for output. Quoted function name in shell
5374         command, so temporary files for functions like MyClass::operator()
5375         are removed correctly without errors.
5376
5377 2010-11-09  Bruno Haible  <bruno@clisp.org>
5378
5379         * doc/posix-functions/strerror.texi: List more failing platforms.
5380
5381         * doc/posix-functions/strerror.texi: Add a comment.
5382
5383 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
5384
5385         fdopendir: fix bug on MacOS X when low on file descriptors
5386
5387         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
5388         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
5389         All callers changed.
5390         (fdopendir): Invoke save_cwd at the top level, not after using
5391         multiple dup() calls to use up file descriptors.  Then retry
5392         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
5393         less than the maximum number of open file descriptors, because
5394         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
5395         on Mac OS X 10.6.4 for tar 1.24
5396         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
5397         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
5398         and for tar 1.25
5399         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
5400
5401 2010-11-07  Bruno Haible  <bruno@clisp.org>
5402
5403         vasnprintf: Support I flag on glibc systems.
5404         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
5405         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
5406         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
5407         snprintf function.
5408         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
5409         glibc systems.
5410         * tests/test-vasnprintf-posix3.c: New file.
5411         * modules/vasnprintf-posix-tests (Files): Add it.
5412         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
5413
5414 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
5415
5416         [html] Fix copy/paste bug: Use unique name for compiler warnings.
5417         * MODULES.html.sh: For compiler warnings, use name
5418         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
5419
5420 2010-11-05  Eric Blake  <eblake@redhat.com>
5421
5422         ceil, floor: avoid spurious failure with icc
5423         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
5424         [denormals-as-zero] when optimizing without -mieee-fp option.
5425         * tests/test-floorf2.c (floorf_reference): Likewise.
5426         * tests/test-ceilf1.c (dummy): New function.
5427         (main): Use it to outsmart icc's optimization.
5428         * tests/test-floorf1.c (dummy, main): Likewise.
5429
5430         tests: require working signbit
5431         * modules/ceilf-tests (Depends-on): Add signbit.
5432         * modules/ceill-tests (Depends-on): Likewise.
5433         * modules/floorf-tests (Depends-on): Likewise.
5434         * modules/floorl-tests (Depends-on): Likewise.
5435         * modules/round-tests (Depends-on): Likewise.
5436         * modules/roundf-tests (Depends-on): Likewise.
5437         * modules/roundl-tests (Depends-on): Likewise.
5438         * modules/trunc-tests (Depends-on): Likewise.
5439         * modules/truncf-tests (Depends-on): Likewise.
5440         * modules/truncl-tests (Depends-on): Likewise.
5441
5442         strtod: work around icc bug
5443         * lib/strtod.c (minus_zero): Define to working value.
5444         (strtod): Use it to avoid icc bug.
5445
5446         copysign: enhance tests
5447         * modules/copysign-tests (Files): Add minus-zero.h.
5448         * tests/test-copysign.c (main): Also test zeros.
5449
5450 2010-11-04  Eric Blake  <eblake@redhat.com>
5451
5452         ceil, floor, round, trunc: enhance tests of -0
5453         * tests/test-ceilf1.c (main): Ensure correct sign of result.
5454         * tests/test-ceill.c (main): Likewise.
5455         * tests/test-floorf1.c (main): Likewise.
5456         * tests/test-floorl.c (main): Likewise.
5457         * tests/test-round1.c (main): Likewise.
5458         * tests/test-roundf1.c (main): Likewise.
5459         * tests/test-roundl.c (main): Likewise.
5460         * tests/test-trunc1.c (main): Likewise.
5461         * tests/test-truncf1.c (main): Likewise.
5462         * tests/test-truncl.c (main): Likewise.
5463
5464 2010-11-04  Eric Blake  <eblake@redhat.com>
5465
5466         frexp, tests: work around ICC bug with -zero
5467         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
5468         works with more compilers.
5469         * tests/minus-zero.h: New file.
5470         * modules/ceilf-tests (Files): Include it.
5471         * modules/ceill-tests (Files): Likewise.
5472         * modules/floorf-tests (Files): Likewise.
5473         * modules/floorl-tests (Files): Likewise.
5474         * modules/frexp-nolibm-tests (Files): Likewise.
5475         * modules/frexp-tests (Files): Likewise.
5476         * modules/frexpl-nolibm-tests (Files): Likewise.
5477         * modules/frexpl-tests (Files): Likewise.
5478         * modules/isnan-tests (Files): Likewise.
5479         * modules/isnand-nolibm-tests (Files): Likewise.
5480         * modules/isnand-tests (Files): Likewise.
5481         * modules/isnanf-nolibm-tests (Files): Likewise.
5482         * modules/isnanf-tests (Files): Likewise.
5483         * modules/isnanl-nolibm-tests (Files): Likewise.
5484         * modules/isnanl-tests (Files): Likewise.
5485         * modules/round-tests (Files): Likewise.
5486         * modules/roundf-tests (Files): Likewise.
5487         * modules/roundl-tests (Files): Likewise.
5488         * modules/ldexpl-tests (Files): Likewise.
5489         * modules/signbit-tests (Files): Likewise.
5490         * modules/snprintf-posix-tests (Files): Likewise.
5491         * modules/sprintf-posix-tests (Files): Likewise.
5492         * modules/strtod-tests (Files): Likewise.
5493         * modules/trunc-tests (Files): Likewise.
5494         * modules/truncf-tests (Files): Likewise.
5495         * modules/truncl-tests (Files): Likewise.
5496         * modules/vsnprintf-posix-tests (Files): Likewise.
5497         * modules/vsprintf-posix-tests (Files): Likewise.
5498         * modules/vasnprintf-posix-tests (Files): Likewise.
5499         * modules/vasprintf-posix-tests (Files): Likewise.
5500         * tests/test-ceilf1.c (main): Use it.
5501         * tests/test-ceill.c (main): Likewise.
5502         * tests/test-floorf1.c (main): Likewise.
5503         * tests/test-floorl.c (main): Likewise.
5504         * tests/test-frexp.c (main): Likewise.
5505         * tests/test-frexpl.c (main): Likewise.
5506         * tests/test-isnan.c (main): Likewise.
5507         * tests/test-isnand.h (main): Likewise.
5508         * tests/test-isnanf.h (main): Likewise.
5509         * tests/test-isnanl.h (main): Likewise.
5510         * tests/test-ldexpl.c (main): Likewise.
5511         * tests/test-round.c (main): Likewise.
5512         * tests/test-roundf.c (main): Likewise.
5513         * tests/test-roundl.c (main): Likewise.
5514         * tests/test-signbit.c (test_signbitf, test_signbitd)
5515         (test_signbitl): Likewise.
5516         * tests/test-snprintf-posix.h (test_function): Likewise.
5517         * tests/test-sprintf-posix.h (test_function): Likewise.
5518         * tests/test-strtod.c (main): Likewise.
5519         * tests/test-trunc1.c (main): Likewise.
5520         * tests/test-truncf1.c (main): Likewise.
5521         * tests/test-truncl.c (main): Likewise.
5522
5523         isnanl: work around icc bug
5524         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
5525
5526 2010-11-03  Eric Blake  <eblake@redhat.com>
5527
5528         tests: fix compiler warnings
5529         * tests/test-getopt.h (test_getopt): Fix condition.
5530         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5531         * tests/test-pipe2.c (main): Likewise.
5532         * tests/test-quotearg-simple.c (main): Avoid icc warning.
5533
5534         utimens: fix broken m4 test
5535         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
5536
5537 2010-10-28  Bruno Haible  <bruno@clisp.org>
5538
5539         posix_spawn*, getdtablesize: Relax license.
5540         * modules/posix_spawn (License): Change to LGPLv2+.
5541         * modules/posix_spawnp (License): Likewise.
5542         * modules/posix_spawn-internal (License): Likewise.
5543         * modules/posix_spawnattr_init (License): Likewise.
5544         * modules/posix_spawnattr_getflags (License): Likewise.
5545         * modules/posix_spawnattr_setflags (License): Likewise.
5546         * modules/posix_spawnattr_getpgroup (License): Likewise.
5547         * modules/posix_spawnattr_setpgroup (License): Likewise.
5548         * modules/posix_spawnattr_getschedparam (License): Likewise.
5549         * modules/posix_spawnattr_setschedparam (License): Likewise.
5550         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
5551         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
5552         * modules/posix_spawnattr_getsigdefault (License): Likewise.
5553         * modules/posix_spawnattr_setsigdefault (License): Likewise.
5554         * modules/posix_spawnattr_getsigmask (License): Likewise.
5555         * modules/posix_spawnattr_setsigmask (License): Likewise.
5556         * modules/posix_spawnattr_destroy (License): Likewise.
5557         * modules/posix_spawn_file_actions_init (License): Likewise.
5558         * modules/posix_spawn_file_actions_addclose (License): Likewise.
5559         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
5560         * modules/posix_spawn_file_actions_addopen (License): Likewise.
5561         * modules/posix_spawn_file_actions_destroy (License): Likewise.
5562         * modules/getdtablesize (License): Likewise.
5563         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
5564
5565 2010-10-26  Bruno Haible  <bruno@clisp.org>
5566
5567         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
5568         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
5569         Cygwin and mingw.
5570         Suggested by Eric Blake.
5571
5572 2010-10-26  Bruno Haible  <bruno@clisp.org>
5573
5574         stdio: Work around compilation error due to renameat() on Solaris 10.
5575         * lib/stdio.in.h: Include <unistd.h> on Solaris.
5576         * lib/renameat.c: Don't include <unistd.h> here.
5577         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
5578         Reported by Paul Eggert and Eric Blake.
5579
5580 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
5581
5582         renameat: port to Solaris 10, which declares renameat in unistd.h
5583
5584         * lib/renameat.c: Include unistd.h before stdio.h, because
5585         Solaris 10 declares renameat in unistd.h.  Problem encountered
5586         when building GNU tar 1.24 on Solaris 10.
5587
5588 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
5589
5590         fdopendir: fix C89 compilation
5591         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
5592         compilers.
5593
5594 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
5595
5596         inttostr: simplify by removing unnecessary redundancy
5597         * lib/anytostr.c: Don't include verify.h.
5598         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
5599         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
5600         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
5601         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
5602         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
5603         Likewise.
5604         * modules/inttostr (Depends-on): Remove 'verify'.
5605
5606 2010-10-23  Bruno Haible  <bruno@clisp.org>
5607
5608         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
5609         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
5610         Reported by Eric Blake.
5611
5612 2010-10-23  Bruno Haible  <bruno@clisp.org>
5613
5614         Tests: Fix LOCALE_JA on MirBSD 10.
5615         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
5616         to an UTF-8 locale.
5617         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
5618         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5619         Reported by Eric Blake.
5620
5621 2010-10-21  Bruno Haible  <bruno@clisp.org>
5622
5623         nl_langinfo test: Avoid test failure on NetBSD 5.
5624         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
5625         Reported by Eric Blake.
5626
5627 2010-10-21  Eric Blake  <eblake@redhat.com>
5628
5629         c-stack: work around libsigsegv 2.8 bug
5630         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
5631         overflow on at least PowerPC64.
5632
5633 2010-10-17  Bruno Haible  <bruno@clisp.org>
5634
5635         userspec: Drop redundant file.
5636         * modules/userspec (Files): Remove lib/inttostr.h.
5637
5638 2010-10-17  Bruno Haible  <bruno@clisp.org>
5639
5640         nl_langinfo tests: Silence some warnings.
5641         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
5642         Reported by Jim Meyering.
5643
5644 2010-10-17  Bruno Haible  <bruno@clisp.org>
5645
5646         Make use of GCC's attribute __alloc_size__.
5647         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
5648         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
5649         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
5650         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
5651         __alloc_size__.
5652         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
5653         Suggested by Jim Meyering.
5654
5655 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
5656
5657         bootstrap: anchor .gitignore entries.
5658         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
5659         with...
5660         (insert_vc_ignore): ... this new function, which prepends `/' to
5661         all .gitignore entries before passing them to
5662         insert_sorted_if_absent.
5663
5664 2010-10-16  Bruno Haible  <bruno@clisp.org>
5665
5666         nextafter: Fix configure check.
5667         * modules/nextafter (configure.ac): Correct expected prototype.
5668
5669 2010-10-16  Bruno Haible  <bruno@clisp.org>
5670
5671         termios: Update documentation.
5672         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
5673
5674 2010-10-16  Bruno Haible  <bruno@clisp.org>
5675
5676         tests: Make them compile with TinyCC.
5677         * tests/test-strstr.c (main): Remove parentheses around array
5678         initializer.
5679
5680 2010-10-15  Eric Blake  <eblake@redhat.com>
5681
5682         ignore-value: make header idempotent
5683         * lib/ignore-value.h: Add double-inclusion guards.
5684         Reported by Stefan Berger.
5685
5686 2010-10-15  Jim Meyering  <meyering@redhat.com>
5687
5688         GNUmakefile: handle "stable" target, not "major"
5689         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
5690         lists in maint.mk and announce-gen.  Without this, "make stable"
5691         would fail to ensure that $(VERSION) is up to date.
5692
5693 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
5694
5695         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
5696         & co.
5697
5698 2010-10-14  Bruno Haible  <bruno@clisp.org>
5699
5700         vasnprintf: Don't set errno to 0.
5701         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
5702         block that sets it to 0.
5703         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
5704
5705 2010-10-14  Bruno Haible  <bruno@clisp.org>
5706
5707         socketlib: Fix.
5708         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
5709         gl_PREREQ_SYS_H_WINSOCK2.
5710         Reported by Ian Beckwith <ianb@erislabs.net>.
5711
5712 2010-10-13  Jim Meyering  <meyering@redhat.com>
5713
5714         test-select-stdin.c: avoid warn_unused_result warnings
5715         * tests/test-select-stdin.c: Include "macros.h".
5716         ASSERT that read and fflush succeed.
5717
5718 2010-10-13  Jim Meyering  <meyering@redhat.com>
5719
5720         git-version-gen: do require git-VC'd files in cwd
5721         * build-aux/git-version-gen: Reject a git version string
5722         if there are no commits associated with the current directory.
5723         This avoids an unlikely false-positive (unrelated dir whose parent
5724         repository also contains a tag matching v*), as pointed out
5725         by Giuseppe Scrivano in
5726         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
5727
5728 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
5729
5730         argv-iter: omit nonconforming declaration
5731         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
5732         enum arg_iter_err declaration, which doesn't conform to C99.
5733         Solaris 10 cc warns about this.
5734
5735 2010-10-13  Eric Blake  <eblake@redhat.com>
5736
5737         termios: fix compilation on mingw
5738         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
5739         (gl_TERMIOS_H): Adjust it on mingw.
5740         * modules/termios (Makefile.am): Substitute new key.
5741         * lib/termios.in.h (includes): Make include_next conditional.
5742         * doc/posix-headers/termios.texi (termios.h): Update
5743         documentation.
5744         Reported by Daniel P. Berrange.
5745
5746 2010-10-13  Jim Meyering  <meyering@redhat.com>
5747
5748         git-version-gen: don't require that .git/ be in the current dir
5749         * build-aux/git-version-gen: Adjust this script so that it works
5750         when run from any working directory beneath the top-level .git/-
5751         containing directory.  Inspired by a patch from Giuseppe Scrivano,
5752         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
5753
5754         test-select: avoid warn_unused_result warnings
5755         * tests/test-select.c: Include "macros.h".
5756         ASSERT that each call to read, write, and pipe succeeds.
5757         While not technically required, also check each "close".
5758         * modules/select-tests (Files): Add tests/macros.h.
5759
5760         test-symlinkat: remove declaration of unused local
5761         * tests/test-symlinkat.c (main): Remove unused local, "buf".
5762
5763         test-inttostr: avoid shadowing warnings
5764         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
5765         and use malloc rather than the stack for the same reason as
5766         mentioned in the comment justifying the other allocation.
5767
5768 2010-10-11  Bruno Haible  <bruno@clisp.org>
5769
5770         stdlib: Allow multiple gnulib generated replacements to coexist.
5771         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
5772         Reported by Sam Steingold <sds@gnu.org>.
5773
5774 2010-10-11  Jim Meyering  <meyering@redhat.com>
5775
5776         fix a documentation typo
5777         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
5778
5779 2010-10-11  Eric Blake  <eblake@redhat.com>
5780
5781         futimens: work around Solaris 11 bug
5782         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
5783         * tests/test-futimens.h (test_futimens): Enhance, rather than
5784         weaken test.
5785         * doc/posix-functions/futimens.texi (futimens): Document the bug.
5786
5787 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
5788
5789         Indentation.
5790         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
5791         higher-level operators more to the left.
5792
5793 2010-10-11  Jim Meyering  <meyering@redhat.com>
5794
5795         test-futimens: avoid unwarranted test failure on Solaris 5.11
5796         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
5797         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
5798         because it tries to dereference the NULL name argument.
5799
5800 2010-10-11  Bruno Haible  <bruno@clisp.org>
5801
5802         Indentation.
5803         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
5804         indentation.
5805
5806 2010-10-11  Jim Meyering  <meyering@redhat.com>
5807
5808         spawn.in.h: make indentation consistent with parentheses
5809         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
5810         Make indentation consistent with parentheses.
5811
5812 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
5813
5814         Fix mismatched parens in previous commit
5815         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
5816         parens.
5817
5818 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
5819
5820         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
5821
5822         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
5823         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
5824         * lib/malloca.c: Include "verify.h".
5825         (verify1): Remove, replacing with a verify call.
5826         * lib/relocwrapper.c (verify1): Likewise.
5827         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
5828         Likewise.
5829         * modules/malloca (Depends-on): Add 'verify'.
5830         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
5831         * modules/vasnprintf (Depends-on): Add 'verify'.
5832         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5833         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5834         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5835         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5836         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5837         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5838         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5839
5840         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
5841
5842         Formerly the style was sometimes 2*X - 1, because the C standard
5843         was wrongly thought to disallow ?: in integral constant expressions.
5844         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
5845         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
5846         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
5847         * lib/stdint.in.h (_verify_intmax_size): Likewise.
5848         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
5849         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
5850         verify that time_t cannot be floating.
5851
5852 2010-10-08  Eric Blake  <eblake@redhat.com>
5853
5854         time: enforce recent POSIX ruling that time_t is integral
5855         * lib/time.in.h (__time_t_must_be_integral): Detect any
5856         problematic systems, allowing the rest of gnulib to assume POSIX.
5857
5858 2010-10-08  Jim Meyering  <meyering@redhat.com>
5859
5860         fdopendir: fix a bug on systems lacking openat and /proc support
5861         OpenBSD 4.7 is one such system.  The most noticeable effect was
5862         failure of any application making nontrivial use of fts: rm, du,
5863         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
5864           ./rm: traversal failed: `a': Bad file descriptor
5865         Debugging that, you see that even though FD 6 was closed just
5866         prior to the opendir call in fd_clone_opendir, its resulting
5867         dir->dd_fd was 8, rather than the expected value of 6:
5868
5869         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
5870         93                close (fd);
5871         (gdb) n
5872         94                dir = fd_clone_opendir (dupfd);
5873         (gdb) n
5874         95                saved_errno = errno;
5875         (gdb) p dir->dd_fd
5876         $11 = 8
5877
5878         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
5879         The problem is that on OpenBSD, fd_clone_opendir has to resort
5880         to using the old-style save/restore CWD mechanism, due to its
5881         lack of openat/proc support, and *that* would steal the FD (6)
5882         that opendir was supposed to use.
5883
5884         The fix is to squirrel away the desired FD so that save_cwd uses a
5885         different one, and then free the dest FD right before calling opendir.
5886         That guarantees opendir will use the required file descriptor.
5887
5888         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
5889
5890 2010-10-08  Bruno Haible  <bruno@clisp.org>
5891
5892         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
5893         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
5894
5895 2010-10-08  Bruno Haible  <bruno@clisp.org>
5896
5897         nanosleep: Make replacement POSIX compliant.
5898         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
5899         is out of range.
5900         Reported by Jim Meyering.
5901
5902 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
5903
5904         bootstrap: add hook for altering gnulib.mk, for Bison
5905         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
5906         the Bison bootstrapping process can rewrite file names and variables
5907         in this file before later parts of 'bootstrap' use the file.
5908         Bison wants to include lib/gnulib.mk from the top-level makefile,
5909         so it needs the file names in this file to be relative to the top
5910         level, not relative to lib; plus it needs variable names to be
5911         rewritten.
5912         (slurp): Use the new function.
5913
5914         bootstrap: reformat for readability
5915         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
5916
5917 2010-10-08  Eric Blake  <eblake@redhat.com>
5918
5919         docs: update cygwin progress
5920         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
5921         1.7.7.
5922         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
5923         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
5924         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
5925         * doc/posix-functions/carg.texi (carg): Likewise.
5926         * doc/posix-functions/cargf.texi (cargf): Likewise.
5927         * doc/posix-functions/casin.texi (casin): Likewise.
5928         * doc/posix-functions/casinf.texi (casinf): Likewise.
5929         * doc/posix-functions/casinh.texi (casinh): Likewise.
5930         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
5931         * doc/posix-functions/catan.texi (catan): Likewise.
5932         * doc/posix-functions/catanf.texi (catanf): Likewise.
5933         * doc/posix-functions/catanh.texi (catanh): Likewise.
5934         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
5935         * doc/posix-functions/ccos.texi (ccos): Likewise.
5936         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
5937         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
5938         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
5939         * doc/posix-functions/cexp.texi (cexp): Likewise.
5940         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
5941         * doc/posix-functions/cimag.texi (cimag): Likewise.
5942         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
5943         * doc/posix-functions/clog.texi (clog): Likewise.
5944         * doc/posix-functions/clogf.texi (clogf): Likewise.
5945         * doc/posix-functions/conj.texi (conj): Likewise.
5946         * doc/posix-functions/conjf.texi (conjf): Likewise.
5947         * doc/posix-functions/cpow.texi (cpow): Likewise.
5948         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
5949         * doc/posix-functions/cproj.texi (cproj): Likewise.
5950         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
5951         * doc/posix-functions/creal.texi (creal): Likewise.
5952         * doc/posix-functions/crealf.texi (crealf): Likewise.
5953         * doc/posix-functions/csin.texi (csin): Likewise.
5954         * doc/posix-functions/csinf.texi (csinf): Likewise.
5955         * doc/posix-functions/csinh.texi (csinh): Likewise.
5956         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
5957         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
5958         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
5959         * doc/posix-functions/ctan.texi (ctan): Likewise.
5960         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
5961         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
5962         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
5963         * doc/posix-headers/complex.texi (complex.h): Likewise.
5964
5965 2010-10-07  Jim Meyering  <meyering@redhat.com>
5966
5967         parse-datetime: avoid compilation failure on OpenBSD 4.7
5968         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
5969         This works around a compilation failure on OpenBSD 4.7:
5970         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
5971
5972 2010-10-07  Eric Blake  <eblake@redhat.com>
5973
5974         docs: update cygwin progress
5975         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
5976         1.7.6.
5977         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
5978         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
5979         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
5980         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
5981         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
5982         Likewise.
5983         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
5984         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
5985         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
5986         Likewise.
5987         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
5988         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
5989         Likewise.
5990         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
5991         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
5992         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
5993         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
5994         Likewise.
5995         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
5996         Likewise.
5997         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
5998
5999         docs: update parse-datetime history
6000         * doc/parse-datetime.texi (Authors of parse_datetime): Better
6001         documentation of this function's history and alternatives.
6002
6003         cygwin: use more robust version check
6004         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
6005         exclude an eventual cygwin 1.9.1.
6006         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6007         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
6008         (gl_FUNC_STRCASESTR): Likewise.
6009         Reported by Bruno Haible.
6010
6011 2010-10-06  Bruno Haible  <bruno@clisp.org>
6012
6013         string, sys_select: Avoid #including large headers unless necessary.
6014         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
6015         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
6016         OSF/1, BeOS, Haiku.
6017         Reported by Jim Meyering.
6018
6019 2010-10-05  Eric Blake  <eblake@redhat.com>
6020
6021         memmem, strstr, strcasestr: fix bug with long periodic needle
6022         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
6023         periodic needle having false positive.
6024         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
6025         and cygwin 1.7.7.
6026         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
6027         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
6028         (gl_FUNC_STRCASESTR): Likewise.
6029         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6030         * tests/test-memmem.c (main): Expose the bug.
6031         * tests/test-strcasestr.c (main): Likewise.
6032         * tests/test-strstr.c (main): Likewise.
6033         * tests/test-c-strcasestr.c (main): Likewise.
6034         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
6035         * doc/posix-functions/strstr.texi (strstr): Likewise.
6036         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
6037         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
6038
6039 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
6040
6041         parse-datetime: do some more renaming
6042         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
6043         parse_datetime, not get_date.  Mention the renaming.
6044         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
6045         in comments.
6046         * m4/bison.m4: Likewise.
6047
6048 2010-10-05  Eric Blake  <eblake@redhat.com>
6049
6050         parse-datetime: better name than get_date
6051         * NEWS: Reword the deprecation notice.
6052         * modules/get_date: Rename to modules/parse-datetime.
6053         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
6054         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
6055         * lib/get_date.y: Rename to lib/parse-datetime.y.
6056         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
6057         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
6058         * doc/getdate.texi: Provide fallback wrapper.
6059         * lib/getdate.h: Move guts, and wrap...
6060         * lib/parse-datetime.h: ...new file.
6061         * lib/parse-datetime.y (get_date): Rename...
6062         (parse_datetime): ...to this.
6063         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
6064         (gl_PARSE_DATETIME): ...to this.
6065         * doc/posix-functions/getdate.texi (get_date): Provide fallback
6066         documentation.
6067         * modules/getdate (Files): Provide fallback docs and header.
6068         (Notice, Depends-on): Update references.
6069         * tests/test-parse-datetime.c: Likewise.
6070         * DEPENDENCIES: Likewise.
6071         * MODULES.html.sh (Date and time <time.h>): Likewise.
6072         * doc/parse-datetime.texi (Date input formats)
6073         (Authors of parse_datetime): Likewise.
6074         * modules/parse-datetime (Files, configure.ac, Makefile.am)
6075         (Include): Likewise.
6076         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
6077         * gnulib-tool: Likewise.
6078         * m4/bison.m4 (gl_BISON): Likewise.
6079         Suggested by Bruno Haible.
6080
6081 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
6082
6083         more ports to Solaris tr, which needs [] around ranges
6084         * gnulib-tool: Solaris tr needs [] around ranges.
6085         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6086         * tests/test-pipe-filter-gi1.c (main): Likewise.
6087         * tests/test-pipe-filter-ii1.c (main): Likewise.
6088
6089 2010-10-05  Eric Blake  <eblake@redhat.com>
6090
6091         bootstrap: fix Solaris regression
6092         * build-aux/bootstrap (check_versions): Solaris tr still needs []
6093         around ranges.
6094         Reported by Pádraig Brady.
6095
6096         bootstrap: work with pkg-config
6097         * build-aux/bootstrap (check_versions): Also transliterate - in
6098         prerequisite name.
6099         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
6100         prerequisites that were already found, to avoid confusion.
6101         Reported by Justin Clift.
6102
6103         faccessat: remove unused wrappers
6104         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
6105         presence of these wrappers dragged in -lgen on Solaris.
6106         Reported by Clemens Brogi; fix suggested by Paul Eggert.
6107
6108 2010-10-05  Jim Meyering  <meyering@redhat.com>
6109
6110         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
6111         * Makefile (sc_pragma_columns): New syntax-check rule.
6112
6113 2010-10-04  Bruno Haible  <bruno@clisp.org>
6114
6115         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
6116         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
6117         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
6118         Reported by Bruce Korb and Eric Blake.
6119
6120 2010-10-04  Bruno Haible  <bruno@clisp.org>
6121
6122         threadlib: Make option --with-libpth-prefix work.
6123         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
6124         use $LIBPTH, not just -lpth.
6125
6126 2010-10-04  Bruno Haible  <bruno@clisp.org>
6127
6128         Avoid line length limitation from HP NonStop system header files.
6129         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
6130         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
6131         * lib/ctype.in.h: Likewise.
6132         * lib/dirent.in.h: Likewise.
6133         * lib/errno.in.h: Likewise.
6134         * lib/fcntl.in.h: Likewise.
6135         * lib/float.in.h: Likewise.
6136         * lib/getopt.in.h: Likewise.
6137         * lib/iconv.in.h: Likewise.
6138         * lib/inttypes.in.h: Likewise.
6139         * lib/langinfo.in.h: Likewise.
6140         * lib/locale.in.h: Likewise.
6141         * lib/math.in.h: Likewise.
6142         * lib/netdb.in.h: Likewise.
6143         * lib/netinet_in.in.h: Likewise.
6144         * lib/poll.in.h: Likewise.
6145         * lib/pthread.in.h: Likewise.
6146         * lib/pty.in.h: Likewise.
6147         * lib/sched.in.h: Likewise.
6148         * lib/se-selinux.in.h: Likewise.
6149         * lib/search.in.h: Likewise.
6150         * lib/signal.in.h: Likewise.
6151         * lib/spawn.in.h: Likewise.
6152         * lib/stdarg.in.h: Likewise.
6153         * lib/stddef.in.h: Likewise.
6154         * lib/stdint.in.h: Likewise.
6155         * lib/stdio.in.h: Likewise.
6156         * lib/stdlib.in.h: Likewise.
6157         * lib/string.in.h: Likewise.
6158         * lib/strings.in.h: Likewise.
6159         * lib/sys_file.in.h: Likewise.
6160         * lib/sys_ioctl.in.h: Likewise.
6161         * lib/sys_select.in.h: Likewise.
6162         * lib/sys_socket.in.h: Likewise.
6163         * lib/sys_stat.in.h: Likewise.
6164         * lib/sys_time.in.h: Likewise.
6165         * lib/sys_times.in.h: Likewise.
6166         * lib/sys_utsname.in.h: Likewise.
6167         * lib/sys_wait.in.h: Likewise.
6168         * lib/sysexits.in.h: Likewise.
6169         * lib/termios.in.h: Likewise.
6170         * lib/time.in.h: Likewise.
6171         * lib/unistd.in.h: Likewise.
6172         * lib/wchar.in.h: Likewise.
6173         * lib/wctype.in.h: Likewise.
6174         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
6175         * modules/ctype (Makefile.am): Likewise.
6176         * modules/dirent (Makefile.am): Likewise.
6177         * modules/errno (Makefile.am): Likewise.
6178         * modules/fcntl-h (Makefile.am): Likewise.
6179         * modules/float (Makefile.am): Likewise.
6180         * modules/getopt-posix (Makefile.am): Likewise.
6181         * modules/iconv-h (Makefile.am): Likewise.
6182         * modules/inttypes (Makefile.am): Likewise.
6183         * modules/langinfo (Makefile.am): Likewise.
6184         * modules/locale (Makefile.am): Likewise.
6185         * modules/math (Makefile.am): Likewise.
6186         * modules/netdb (Makefile.am): Likewise.
6187         * modules/netinet_in (Makefile.am): Likewise.
6188         * modules/poll-h (Makefile.am): Likewise.
6189         * modules/pthread (Makefile.am): Likewise.
6190         * modules/pty (Makefile.am): Likewise.
6191         * modules/sched (Makefile.am): Likewise.
6192         * modules/search (Makefile.am): Likewise.
6193         * modules/selinux-h (Makefile.am): Likewise.
6194         * modules/signal (Makefile.am): Likewise.
6195         * modules/spawn (Makefile.am): Likewise.
6196         * modules/stdarg (Makefile.am): Likewise.
6197         * modules/stddef (Makefile.am): Likewise.
6198         * modules/stdint (Makefile.am): Likewise.
6199         * modules/stdio (Makefile.am): Likewise.
6200         * modules/stdlib (Makefile.am): Likewise.
6201         * modules/string (Makefile.am): Likewise.
6202         * modules/strings (Makefile.am): Likewise.
6203         * modules/sys_file (Makefile.am): Likewise.
6204         * modules/sys_ioctl (Makefile.am): Likewise.
6205         * modules/sys_select (Makefile.am): Likewise.
6206         * modules/sys_socket (Makefile.am): Likewise.
6207         * modules/sys_stat (Makefile.am): Likewise.
6208         * modules/sys_time (Makefile.am): Likewise.
6209         * modules/sys_times (Makefile.am): Likewise.
6210         * modules/sys_utsname (Makefile.am): Likewise.
6211         * modules/sys_wait (Makefile.am): Likewise.
6212         * modules/sysexits (Makefile.am): Likewise.
6213         * modules/termios (Makefile.am): Likewise.
6214         * modules/time (Makefile.am): Likewise.
6215         * modules/unistd (Makefile.am): Likewise.
6216         * modules/wchar (Makefile.am): Likewise.
6217         * modules/wctype (Makefile.am): Likewise.
6218
6219 2010-10-04  Bruno Haible  <bruno@clisp.org>
6220
6221         read-file tests: Avoid a test failure on NonStop Kernel.
6222         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
6223         a regular file.
6224         Reported by Joachim Schmitz <schmitz@hp.com>.
6225
6226 2010-10-03  Bruno Haible  <bruno@clisp.org>
6227
6228         gnulib-tool: Fixes for --create-testdir with --libtool.
6229         * gnulib-tool (func_get_automake_snippet): Don't augment
6230         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
6231         an executable.
6232         (func_create_testdir): Handle module 'alloca' like func_import.
6233         Reported by Bruce Korb <bruce.korb@gmail.com>.
6234
6235 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
6236
6237         Avoid some lines longer than 80 characters.
6238         * lib/stdint.in.h: Break long comment lines.
6239         * lib/math.in.h: Likewise.
6240         (_GL_NUM_UINT_WORDS): New macro, for readability.
6241         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
6242         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
6243         * lib/stdlib.in.h: Likewise.
6244         * lib/spawn.in.h: Likewise.
6245         * lib/sys_socket.in.h: Update an URL.
6246         * lib/sys_stat.in.h: Break long line.
6247
6248 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
6249
6250         Improve pmccabe2html.
6251         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
6252         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
6253         when the sources change. Remove the line in the HTML about "Used
6254         ranges" (which implied that there might be other unused ranges),
6255         rename "Resume" to "Summary" (easier to understand for more users).
6256         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
6257         styles, and some unnecessary blank lines.
6258
6259 2010-10-03  Bruno Haible  <bruno@clisp.org>
6260             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
6261
6262         acl: Add support for ACLs on NonStop Kernel.
6263         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
6264         Check whether the function aclsort() exists.
6265         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
6266         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
6267         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
6268         (acl_nontrivial [HAVE_ACLSORT]: New function.
6269         (file_has_acl): Implement for NonStop Kernel.
6270         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
6271         (qset_acl): Implement for NonStop Kernel.
6272         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
6273         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
6274         (main): Implement for NonStop Kernel.
6275         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
6276         Kernel. Handle this flavor.
6277         * tests/test-set-mode-acl.sh: Likewise.
6278         * tests/test-copy-acl.sh: Likewise.
6279         * tests/test-copy-file.sh: Likewise.
6280
6281 2010-10-03  Bruno Haible  <bruno@clisp.org>
6282
6283         Info about ACLs on NonStop Kernel.
6284         * doc/acl-resources.txt: Add info about NonStop Kernel.
6285         References by Joachim Schmitz <schmitz@hp.com>.
6286
6287 2010-10-02  Bruno Haible  <bruno@clisp.org>
6288
6289         Define missing EDQUOT on NonStop Kernel.
6290         * lib/errno.in.h (EDQUOT): Assign a value if missing.
6291         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
6292         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
6293         missing.
6294         * doc/posix-headers/errno.texi: Mention the NSK bug.
6295         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
6296         Reported by Joachim Schmitz <schmitz@hp.com>.
6297
6298 2010-10-02  Bruno Haible  <bruno@clisp.org>
6299
6300         Update doc for POSIX:2008.
6301         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
6302         Update URL of POSIX specification.
6303
6304 2010-10-02  Bruno Haible  <bruno@clisp.org>
6305
6306         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
6307         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
6308         from gnulib, not from Automake.
6309
6310 2010-10-02  Bruno Haible  <bruno@clisp.org>
6311
6312         New module 'system-posix'.
6313         * modules/system-posix: New file.
6314         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
6315         module is present.
6316         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6317         GNULIB_SYSTEM_POSIX.
6318         * modules/stdlib (Depends-on): Remove sys_wait.
6319         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
6320         * doc/posix-functions/system.texi: Mention the new module.
6321         * doc/posix-headers/stdlib.texi: Likewise.
6322         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
6323         define test_sys_wait_macros to a no-op.
6324         Reported by Sam Steingold <sds@gnu.org>.
6325
6326 2010-09-30  Bruno Haible  <bruno@clisp.org>
6327
6328         More renaming from 'getdate' to 'get_date'.
6329         * doc/get_date.texi: Renamed from doc/getdate.texi.
6330         * modules/get_date (Files): Update.
6331         * MODULES.html.sh (Date and time <time.h>): Update.
6332         * DEPENDENCIES: Update.
6333         * gnulib-tool: Update comment.
6334         * m4/bison.m4 (gl_BISON): Likewise.
6335         * m4/get_date.m4 (gl_GET_DATE): Likewise.
6336
6337 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
6338
6339         bootstrap: support ACLOCAL_FLAGS during aclocal
6340         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
6341         can add additional -I dir for third-party .m4 files.
6342
6343 2010-09-30  Eric Blake  <eblake@redhat.com>
6344
6345         bootstrap: use glibtoolize on MacOS
6346         * build-aux/bootstrap (check_versions): Convert libtool into
6347         libtoolize.
6348         (tool search): Move libtool check earlier, and look for
6349         glibtoolize for MacOS.
6350         (gnulib_tool_options): Auto-add --libtool when appropriate.
6351         Reported by Justin Clift.
6352
6353         poll: fix typo that broke test on MacOS
6354         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
6355         Reported by Justin Clift.
6356
6357         getdate: rename to get_date
6358         Note: getdate.h is not renamed, to minimize client impact.
6359         * modules/getdate: Mark obsolete.  Move old contents...
6360         * modules/get_date: ...to new module name.
6361         * modules/getdate-tests: Move...
6362         * modules/get_date-tests: ...here.
6363         * m4/getdate.m4: Move...
6364         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
6365         * lib/getdate.y: Move...
6366         * lib/get_date.y: ...here.
6367         * tests/test-getdate.c: Move...
6368         * tests/test-get_date.c: ...here.
6369         * doc/posix-functions/getdate.texi (getdate): Update name.
6370         * NEWS: Mention the change.
6371
6372 2010-09-29  Bruno Haible  <bruno@clisp.org>
6373
6374         Separate the module 'waitpid' from the module 'sys_wait'.
6375         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
6376         present.
6377         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
6378         gl_MODULE_INDICATOR_FOR_TESTS.
6379         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
6380         * modules/sys_wait (Depends-on): Remove waitpid.
6381         (Makefile.am): Substitute GNULIB_WAITPID.
6382         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
6383         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
6384         signature only if the 'waitpid' module is present.
6385         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
6386         * NEWS: Mention the change.
6387         * modules/grantpt (Depends-on): Add waitpid.
6388         * modules/wait-process (Depends-on): Likewise.
6389
6390 2010-09-29  Bruno Haible  <bruno@clisp.org>
6391
6392         More tests for module 'sys_wait'.
6393         * modules/sys_wait-c++-tests: New file.
6394         * tests/test-sys_wait-c++.cc: New file.
6395         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
6396         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
6397
6398 2010-09-29  Bruno Haible  <bruno@clisp.org>
6399
6400         New module 'waitpid'.
6401         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
6402         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
6403         Don't include <process.h>.
6404         (waitpid): Declare only, using modern idiom.
6405         * m4/waitpid.m4: New file.
6406         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
6407         * modules/waitpid: New file.
6408         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
6409         (Makefile.am): Update.
6410         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
6411
6412 2010-09-28  Bruno Haible  <bruno@clisp.org>
6413
6414         poll: Assume ANSI C.
6415         * lib/poll.c (poll): Use an ANSI C declaration.
6416
6417 2010-09-28  Bruno Haible  <bruno@clisp.org>
6418
6419         poll-h: Create poll.h on all platforms.
6420         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
6421         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
6422         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
6423         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
6424         (gl_REPLACE_POLL_H): Don't set POLL_H.
6425         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
6426         * modules/poll-h (Depends-on): Add include_next.
6427         (Makefile.am): Create poll.h unconditionally. Substitute also
6428         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
6429
6430 2010-09-28  Bruno Haible  <bruno@clisp.org>
6431
6432         Tests for module 'poll-h'.
6433         * modules/poll-h-c++-tests: New file.
6434         * tests/test-poll-h-c++.cc: New file.
6435
6436         Tests for module 'poll-h'.
6437         * modules/poll-h-tests: New file.
6438         * tests/test-poll-h.c: New file.
6439
6440 2010-09-28  Bruno Haible  <bruno@clisp.org>
6441
6442         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
6443         * modules/poll-h (Depends-on): Add 'extensions'.
6444
6445 2010-09-28  Bruno Haible  <bruno@clisp.org>
6446
6447         New module 'poll-h'.
6448         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
6449         (poll): Use modern idiom.
6450         * modules/poll-h: New file.
6451         * modules/poll (Files): Remove lib/poll.in.h.
6452         (Depends-on): Add poll-h.
6453         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
6454         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
6455         * m4/poll_h.m4: New file.
6456         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
6457         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
6458         and invoke gl_REPLACE_POLL_H.
6459         * lib/poll.c: Use common idiom.
6460         * tests/test-poll.c: Likewise.
6461         * doc/posix-headers/poll.texi: Mention the poll-h module.
6462         Suggested by Eric Blake.
6463
6464 2010-09-26  Bruno Haible  <bruno@clisp.org>
6465
6466         sys_wait: Implement WSTOPSIG.
6467         * lib/sys_wait.in.h (WSTOPSIG): New macro.
6468         Reported by Simon Josefsson.
6469
6470 2010-09-26  Simon Josefsson  <simon@josefsson.org>
6471
6472         stdlib, sys_wait: Avoid compilation error on mingw.
6473         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
6474
6475 2010-09-26  Bruno Haible  <bruno@clisp.org>
6476
6477         stdlib tests: Avoid code duplication.
6478         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
6479         * modules/sys_wait-tests (Files): Likewise.
6480         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
6481         * tests/test-stdlib.c: Include test-sys_wait.h.
6482         (main): Invoke test_sys_wait_macros.
6483         * tests/test-sys_wait.c: Include test-sys_wait.h.
6484         (main): Invoke test_sys_wait_macros.
6485
6486 2010-09-25  Simon Josefsson  <simon@josefsson.org>
6487
6488         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
6489         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
6490         sure Windows sockets are working before calling getaddrinfo.
6491         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
6492         * doc/gnulib.texi (Windows sockets): Fix typo.
6493
6494 2010-09-25  Bruno Haible  <bruno@clisp.org>
6495
6496         Tests for module 'regex-quote'.
6497         * modules/regex-quote-tests: New file.
6498         * tests/test-regex-quote.c: New file.
6499
6500         New module 'regex-quote'.
6501         * lib/regex-quote.h: New file.
6502         * lib/regex-quote.c: New file.
6503         * modules/regex-quote: New file.
6504         Suggested by Reuben Thomas <rrt@sc3d.org>.
6505
6506 2010-09-24  Bruno Haible  <bruno@clisp.org>
6507
6508         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
6509         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
6510
6511 2010-09-23  Bruno Haible  <bruno@clisp.org>
6512
6513         setenv: Relax license.
6514         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
6515         Blake.
6516         Requested by Eric Blake.
6517
6518 2010-09-22  Bruno Haible  <bruno@clisp.org>
6519
6520         termios: Relax license.
6521         * modules/termios (License): Change to LGPLv2+.
6522         Requested by Eric Blake.
6523
6524 2010-09-22  Bruno Haible  <bruno@clisp.org>
6525
6526         threadlib: Allow the package to change the default to 'no'.
6527         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
6528         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
6529         Reported by Paul Eggert.
6530
6531 2010-09-22  Pádraig Brady  <P@draigbrady.com>
6532             Bruno Haible  <bruno@clisp.org>
6533
6534         Fix endless loop in mbmemcasecoll.
6535         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
6536         byte.
6537         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
6538
6539 2010-09-22  Bruno Haible  <bruno@clisp.org>
6540
6541         Tests for module 'memcoll'.
6542         * modules/memcoll-tests: New file.
6543         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
6544
6545         memcoll, xmemcoll: Clarify size vs. length.
6546         * modules/memcoll.c (memcoll0): Clarify specification.
6547         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
6548         passed to collate_error.
6549
6550 2010-09-22  Bruno Haible  <bruno@clisp.org>
6551
6552         Tests for module 'memcasecmp'.
6553         * modules/memcasecmp-tests: New file.
6554         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
6555
6556 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
6557
6558         * lib/pthread.in.h: Add split double-inclusion guard, and include
6559         system <pthread.h> if there is one.  Use @@-style as in other
6560         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
6561         pthread.h doesn't.
6562         (pthread_mutexattr_destroy, pthread_mutexattr_init):
6563         (pthread_mutexattr_settype, pthread_mutex_trylock):
6564         New static inline functions, if there's no system <pthread.h>.
6565         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
6566         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
6567         Approximate with mutexes if the system lacks spinlocks, as in
6568         MacOS.
6569         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
6570         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
6571         @@-style.  Check for spinlocks separately.
6572         (gl_PTHREAD_DEFAULTS): New macro.
6573         * modules/pthread: Redo to use a more typical style for in.h files.
6574
6575 2010-09-21  Eric Blake  <eblake@redhat.com>
6576
6577         net_if: enhance tests
6578         * tests/test-net_if.c (main): Move signature checks earlier.
6579         Print failures to stderr.
6580         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
6581         Document the bug that we do not yet fix.
6582
6583 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
6584
6585         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
6586         about gnulib, not GSS.
6587
6588 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
6589
6590         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
6591         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
6592         for Emacs.
6593         * build-aux/pmccabe2html: Make Makefile.am example code more
6594         cut-and-paste friendly.
6595
6596 2010-09-21  Simon Josefsson  <simon@josefsson.org>
6597
6598         * tests/test-net_if.c: New file.
6599         * modules/net_if-tests: New file.
6600
6601 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
6602
6603         pthread: add pthread_spin_destroy
6604         * lib/pthread.in.h (pthread_spin_destroy): New function.
6605
6606 2010-09-19  Bruno Haible  <bruno@clisp.org>
6607
6608         gnulib-tool: Fix --help output.
6609         * gnulib-tool (func_usage): Fix help message.
6610         Reported by Reuben Thomas <rrt@sc3d.org>.
6611
6612 2010-09-18  Jim Meyering  <meyering@redhat.com>
6613
6614         maint.mk: avoid unexpanded \n in two diagnostics
6615         * top/maint.mk (sc_prohibit_always_true_header_tests):
6616         Don't use a literal \n in a halt=... assignment.  It would not be
6617         expanded, and the two \n bytes would appear in the diagnostic output
6618         rather than the desired newline.  Use halt=$$(printf ... instead.
6619         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
6620
6621 2010-09-18  Bruno Haible  <bruno@clisp.org>
6622
6623         netinet_in: Doc tweak.
6624         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
6625         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6626
6627 2010-09-18  Jim Meyering  <meyering@redhat.com>
6628
6629         init.sh: correct an outdated comment
6630         * tests/init.sh (create_exe_shims_):  s/function/alias/
6631
6632         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
6633         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
6634         a file named "*.exe" is removed between the glob expansion and the
6635         processing of that oddly named file.
6636
6637 2010-09-17  Eric Blake  <eblake@redhat.com>
6638
6639         mirbsd: add some more support
6640         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
6641         in BSD family.
6642         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
6643         devices as OpenBSD.
6644         * m4/host-os.m4 (mirbsd): Add MirBSD.
6645
6646         tests: fix unportable assumption on sys/wait.h
6647         * tests/test-sys_wait.c (main): Relax test.
6648         * tests/test-stdlib.c (main): Likewise.
6649
6650         init.sh: accomodate directory with no .exes
6651         * tests/init.sh: Accomodate directory containing only scripts.
6652
6653         tests: avoid compiler warning
6654         * tests/test-stdlib.c (main): Use the variable.
6655
6656         fdutimens, fdutimensat: update signature, again
6657         * lib/utimens.h (gl_futimens): Delete, and move signature...
6658         (fdutimens): ...here.
6659         (fdutimensat): Rearrange signature.
6660         (lutimensat): Rename variable for clarity.
6661         * lib/fdutimensat.c (fdutimensat): Update signature.
6662         * lib/utimens.c (fdutimens): Likewise.
6663         (gl_futimens): Delete.
6664         (utimens, lutimens): Update callers.
6665         * lib/futimens.c (futimens): Likewise.
6666         * tests/test-fdutimensat.c: Likewise.
6667         * tests/test-utimens.c: Likewise.
6668         * tests/test-futimens.h: Update comment.
6669         * NEWS: Mention this.
6670         Suggested by Paul Eggert.
6671
6672 2010-09-17  Bruno Haible  <bruno@clisp.org>
6673
6674         Take over the maintenance of some older macros from Autoconf.
6675         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
6676         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
6677         GNU Autoconf.
6678         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
6679         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
6680
6681 2010-09-17  Eric Blake  <eblake@redhat.com>
6682
6683         fdutimensat: drop atflag validation
6684         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
6685         with valid fd, to close a race scenario where futimens is
6686         unsupported and FILE was replaced by a symlink.
6687         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
6688         accordingly.
6689         Suggested by Paul Eggert.
6690
6691 2010-09-16  Bruno Haible  <bruno@clisp.org>
6692
6693         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
6694         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
6695
6696 2010-09-16  Bruno Haible  <bruno@clisp.org>
6697
6698         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
6699         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
6700         login_tty exists.
6701         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6702
6703 2010-09-16  Bruno Haible  <bruno@clisp.org>
6704
6705         login_tty: Make the replacement code work on BSD systems.
6706         * lib/login_tty.c: Include <sys/ioctl.h>.
6707         (login_tty): Use ioctl TIOCSCTTY when available.
6708         * modules/login_tty (Depends-on): Add sys_ioctl.
6709         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6710
6711 2010-09-16  Bruno Haible  <bruno@clisp.org>
6712
6713         login_tty: Stricter unit test.
6714         * modules/login_tty-tests (Depends-on): Add tcgetsid.
6715         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
6716         and tcgetsid() after login_tty.
6717         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6718
6719 2010-09-16  Bruno Haible  <bruno@clisp.org>
6720
6721         New module 'tcgetsid'.
6722         * lib/tcgetsid.c: New file.
6723         * m4/tcgetsid.m4: New file.
6724         * modules/tcgetsid: New file.
6725         * modules/termios (Depends-on): Add c++defs, warn-on-use.
6726         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
6727         GNULIB_TCGETSID, HAVE_TCGETSID.
6728         * lib/termios.in.h: Include <sys/types.h>.
6729         (tcgetsid): New declaration.
6730         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
6731         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
6732         * doc/posix-functions/tcgetsid.texi: Mention the new module.
6733         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
6734
6735 2010-09-16  Bruno Haible  <bruno@clisp.org>
6736
6737         Tests for module 'termios'.
6738         * modules/termios-c++-tests: New file.
6739         * modules/termios-tests: New file.
6740         * tests/test-termios-c++.cc: New file.
6741         * tests/test-termios.c: New file.
6742
6743         New module 'termios'.
6744         * modules/termios: New file.
6745         * lib/termios.in.h: New file.
6746         * m4/termios_h.m4: New file.
6747         * doc/posix-headers/termios.texi: Mention the new module.
6748
6749 2010-09-16  Eric Blake  <eblake@redhat.com>
6750
6751         fdutimensat: add an atflag parameter
6752         * lib/fdutimensat.c (fdutimensat): Add new parameter.
6753         * lib/utimens.h (fdutimensat): Update prototype.
6754         * tests/test-fdutimensat.c: Adjust test to match.
6755         * NEWS: Document the change.
6756         Suggested by Paul Eggert.
6757
6758 2010-09-16  Bruno Haible  <bruno@clisp.org>
6759
6760         Fix typos in comments.
6761         * lib/striconveh.h: Fix typo in comment.
6762         * lib/login_tty.c (login_tty): Likewise.
6763
6764 2010-09-15  Bruno Haible  <bruno@clisp.org>
6765
6766         stdlib: clarify MirBSD WEXITSTATUS bug
6767         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
6768         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
6769
6770 2010-09-15  Eric Blake  <eblake@redhat.com>
6771
6772         stdlib: work around MirBSD WEXITSTATUS bug
6773         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
6774         * modules/stdlib (Depends-on): Add sys_wait.
6775         * tests/test-sys_wait.c (main): Enhance test.
6776         * tests/test-stdlib.c (main): Likewise.
6777         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
6778
6779         docs: mention MacOS issue with WEXITSTATUS(constant)
6780         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
6781         issue.
6782         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
6783
6784         strnlen: add tests
6785         * modules/strnlen-tests: New file.
6786         * tests/test-strnlen.c: Likewise.
6787
6788 2010-09-14  Bruno Haible  <bruno@clisp.org>
6789
6790         unistr/base: Avoid link errors when module 'libunistring' is also used.
6791         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
6792         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
6793         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
6794         Declare also when HAVE_LIBUNISTRING is set.
6795         Reported by Pádraig Brady <P@draigbrady.com>.
6796
6797 2010-09-14  Eric Blake  <eblake@redhat.com>
6798
6799         test-rawmemchr: make more robust
6800         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
6801         (Depends-on, configure.ac): Add needed prerequisites to use it.
6802         * modules/memchr-tests (Files, Depends-on, configure.ac):
6803         Likewise, to avoid implicit reliance on memchr module prereqs.
6804         * tests/test-memchr.c (main): Ensure proper masking.
6805         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
6806         reads.
6807
6808         memchr: detect glibc Alpha bug
6809         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
6810         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
6811         Alpha.
6812         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
6813         * tests/test-memchr.c (main): Enhance test.
6814         Reported by Nelson H. F. Beebe.
6815
6816 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
6817
6818         fts, getcwd, glob: audit for dirfd returning -1
6819         * lib/fts.c (opendir): Remove #define; no longer used.
6820         (opendirat): New arg PDIR_FD.  All callers changed.
6821         (fts_build, _opendir2): Use new opendirat to avoid the need for
6822         dirfd, or for checking whether dirfd returns a negative value.
6823         Don't use opendir; always use openat followed by fdopendir.
6824         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
6825         it.
6826         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
6827         returns -1 here.
6828         * modules/fts (Depends-on): Remove dirfd.
6829         * modules/getcwd (Depends-on): Likewise.
6830
6831 2010-09-13  Eric Blake  <eblake@redhat.com>
6832
6833         float: fix broken MirBSD header
6834         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
6835         * doc/posix-headers/float.texi (float.h): Document it.
6836
6837 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
6838
6839         fts: use O_NOFOLLOW to avoid race condition when opening a directory
6840         * lib/fts.c (opendirat): New arg extra_flags.
6841         (__opendir2): Use it to avoid following symlinks when opening
6842         a directory, if symlinks are not supposed to be followed.  See
6843         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
6844
6845         fdopendir: preserve argument fd before returning
6846         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
6847         (fdopendir_with_dup, fd_clone_opendir): New static functions.
6848         (fdopendir): Use them, arranging for FD to be open to the same
6849         directory that it was when it started.  (It might be temporarily
6850         closed while fdopendir is running, so this not thread- or
6851         signal-safe.)  Be careful to do the right thing even when file
6852         descriptors are scarce and dup fails with errno == EMFILE.  See
6853         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
6854
6855 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
6856
6857         regex: Pass the system regex if its only problem is 32-bit regoff_t.
6858         * NEWS: Document change.
6859         * m4/regex.m4: Disable test for regoff_t size.
6860
6861 2010-09-13  Jim Meyering  <meyering@redhat.com>
6862
6863         fts: don't operate on an invalid file descriptor after failed dup
6864         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
6865         negative file descriptor.
6866
6867 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
6868
6869         savedir: add streamsavedir, deprecate fdsavedir
6870         * NEWS: Mention deprecation of fdsavedir.
6871         * lib/savedir.c (streamsavedir): New extern function, whose name
6872         ends in "savedir" to be consistent with the others.  This differs
6873         from savedirstream in that it doesn't close its argument.  The
6874         next version of GNU tar will use this instead of fdsavedir, to
6875         avoid some race conditions and conserve file descriptors.
6876         (savedirstream): Reimplement as a wrapper around streamsavedir.
6877         (fdsavedir): Add a comment deprecating this function.  As far as
6878         I know, only GNU tar used it, and GNU tar doesn't need it any more.
6879         * lib/savedir.h (streamsavedir): New decl.
6880         (fdsavedir): Add a comment deprecating this.
6881
6882 2010-09-10  Bruno Haible  <bruno@clisp.org>
6883
6884         langinfo: Fix last commit.
6885         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
6886         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
6887         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6888
6889 2010-09-10  Bruno Haible  <bruno@clisp.org>
6890
6891         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
6892         * lib/progreloc.c (O_EXEC): Define fallback.
6893
6894 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
6895
6896         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
6897         * NEWS: Document recent changes to fcntl-h.
6898         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
6899         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
6900         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
6901         Similarly for O_SEARCH; this last was already true, but not documented.
6902         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
6903         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
6904         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
6905         Likewise.
6906         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
6907         is zero, not whether it is defined.
6908         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
6909         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
6910         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
6911
6912 2010-09-10  Bruno Haible  <bruno@clisp.org>
6913
6914         langinfo, nl_langinfo: Fix for IRIX 5.3.
6915         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
6916         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
6917         HAVE_LANGINFO_YESEXPR.
6918         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
6919         HAVE_LANGINFO_YESEXPR.
6920         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
6921         HAVE_LANGINFO_T_FMT_AMPM is 0.
6922         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
6923         HAVE_LANGINFO_YESEXPR is 0.
6924         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
6925         NOEXPR.
6926         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
6927         * doc/posix-functions/nl_langinfo.texi: Likewise.
6928         Reported by Eric Blake.
6929
6930 2010-09-10  Bruno Haible  <bruno@clisp.org>
6931
6932         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
6933         * doc/glibc-functions/login_tty.texi: Mention the include file problem
6934         on FreeBSD 8.0 and OpenBSD 4.6.
6935         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
6936         * m4/pty_h.m4 (gl_PTY_H): Likewise.
6937         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
6938         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
6939         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
6940         ac_includes_default.
6941         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6942
6943 2010-09-09  Eric Blake  <eblake@redhat.com>
6944
6945         strsignal: work around NetBSD bug
6946         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
6947         * lib/string.in.h (includes): Likewise.
6948         * doc/posix-functions/strsignal.texi (strsignal): Document the
6949         bug.
6950         Reported by Nelson H. F. Beebe.
6951
6952         gnulib-tool: work with NetBSD /bin/sh
6953         * gnulib-tool (func_cache_var, func_cache_lookup_module)
6954         (func_get_description, func_get_comment, func_get_status)
6955         (func_get_notice, func_get_applicability, func_get_filelist)
6956         (func_get_dependencies, func_get_autoconf_early_snippet)
6957         (func_get_autoconf_snippet, func_get_automake_snippet)
6958         (func_get_include_directive, func_get_link_directive)
6959         (func_get_license, func_get_maintainer, func_import): Avoid
6960         shell syntax errors from parsing syntax extensions.
6961
6962 2010-09-09  Bruno Haible  <bruno@clisp.org>
6963
6964         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
6965         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
6966         a reliable way to determine whether the 'alias' command works.
6967
6968 2010-09-08  Jim Meyering  <meyering@redhat.com>
6969
6970         init.sh: penalize a set-x-impaired shell; don't disqualify it
6971         * tests/init.sh: Too many shells corrupt application stderr when
6972         you set -x, so we can't afford to disqualify them, since at least
6973         on Irix-6.5, that would disqualify all bourne shells.
6974         Instead, use a two-pass approach.
6975         On the first pass, try to find a shell that meets the stricter
6976         condition that set -x does not corrupt stderr.
6977         If no shell meets the stricter condition, retest each candidate
6978         shell, but without that extra condition.  Finally, when
6979         VERBOSE=yes is requested and set -x might cause trouble, simply
6980         issue a warning and refrain from enabling debug output.
6981
6982 2010-09-08  Eric Blake  <eblake@redhat.com>
6983
6984         unsetenv: fix OpenBSD bug
6985         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
6986         * doc/posix-functions/unsetenv.texi (unsetenv): Update
6987         documentation.
6988         Reported by Jim Meyering.
6989
6990         strtod: work around IRIX 6.5 bug
6991         * lib/strtod.c (strtod): Reparse number on shorter string if
6992         exponent parse was invalid.
6993         * tests/test-strtod.c (main): Add check for "0x1p 2".
6994         Reported by Tom G. Christensen.
6995
6996         getopt: optimize previous patch
6997         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
6998         empty variable.  Speed up awk script.
6999         Reported by Paolo Bonzini.
7000
7001 2010-09-08  Jim Meyering  <meyering@redhat.com>
7002
7003         test.sh: disqualify shells for which set -x corrupts stderr
7004         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
7005         and OpenBSD 4.7.  They make it so with "set -x", environment settings
7006         appear in stderr output.  For example, this command:
7007             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
7008         prints "P=1" on those two systems:
7009
7010 2010-09-08  Bruno Haible  <bruno@clisp.org>
7011
7012         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
7013         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
7014         commands, because some shells ignore redirections when there is an
7015         error in the command lookup.
7016         Reported by Eric Blake.
7017
7018 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
7019
7020         * lib/regex.h: Fix a mention of `regex_compile' (should be
7021         `re_compile_pattern').
7022         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
7023         (re_set_registers): Correct name of parameter in comment.
7024
7025         * doc/regex.texi: Add documentation for missing syntax flags.
7026         Remove commented-out documentation of defunct syntax option
7027         RE_NO_EMPTY_ALTS.
7028         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
7029         Add documentation of re_set_registers.
7030         Document trick to re-use a pattern buffer by setting fastmap manually.
7031         Update documentation of struct re_pattern_buffer per public members.
7032         Uncomment documentation of equivalence class operators and
7033         collating symbol operators, since they are now implemented,
7034         Explain leftmost-longest matching in relation to alternatives.
7035         Tidy documentation of substring matching.
7036         Remove POSIX documentation, which is done better in
7037         glibc, and refer the reader there. Keep BSD API documentation, as
7038         that is not readily available elsewhere.
7039
7040 2010-09-07  Eric Blake  <eblake@redhat.com>
7041
7042         getopt: handle POSIXLY_CORRECT set but not exported
7043         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
7044         export state of POSIXLY_CORRECT, due to bash set -o posix.
7045         Reported by Dustin J. Mitchell.
7046
7047 2010-09-05  Bruno Haible  <bruno@clisp.org>
7048
7049         gnulib-tool: Highlight the changed options.
7050         * gnulib-tool (func_usage): Display the --import, --add-import,
7051         --remove-import explanations in bold font.
7052
7053 2010-09-06  Karl Berry  <karl@gnu.org>
7054
7055         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
7056
7057 2010-09-05  Bruno Haible  <bruno@clisp.org>
7058
7059         uniwidth/width: Update comment.
7060         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
7061         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
7062
7063 2010-09-05  Bruno Haible  <bruno@clisp.org>
7064
7065         isinf, isnan: Relax license.
7066         * modules/isinf (License): Change from GPL to LGPL, with consent from
7067         Ben Pfaff.
7068         * modules/isnan (License): Likewise.
7069         Requested by Ludovic Courtès.
7070
7071 2010-09-04  Bruno Haible  <bruno@clisp.org>
7072
7073         gnulib-tool: Help migration from --import to --add-import or --update.
7074         * gnulib-tool: Emit a verbose error message when --import is used
7075         without any module name.
7076
7077 2010-09-04  Bruno Haible  <bruno@clisp.org>
7078
7079         Update doc about gnulib-tool.
7080         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
7081         'gnulib-tool --update' in more detail.
7082         Reported by Eric Blake.
7083
7084 2010-09-04  Bruno Haible  <bruno@clisp.org>
7085
7086         gnulib-tool: Change --import. New options --add/remove-import.
7087         * gnulib-tool: New options --add-import, --remove-import.
7088         (func_usage): Document them.
7089         (have_associative): Define always.
7090         (func_import): In import mode, don't merge the specified settings with
7091         the cached settings. Implement remove-import mode.
7092         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
7093         Explain when to use them versus --import.
7094         (Simple update): Use --add-import instead of --import.
7095         * NEWS: Mention the change.
7096
7097 2010-09-04  Bruno Haible  <bruno@clisp.org>
7098
7099         * doc/gnulib-tool.texi (Initial import): Update paragraph about
7100         separate gnulib.mk.
7101
7102 2010-09-04  Bruno Haible  <bruno@clisp.org>
7103
7104         gnulib-tool: Don't talk about CVS any more.
7105         * gnulib-tool (func_usage, func_import): Write "version control"
7106         instead of CVS.
7107
7108 2010-09-04  Jim Meyering  <meyering@redhat.com>
7109
7110         maint.mk: avoid obscure sc_copyright_check failure in coreutils
7111         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
7112         false positives (whose names may be ill-chosen) when searching
7113         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
7114         would cause a false-positive.
7115
7116         avoid coreutils "make distcheck" failure
7117         Coreutils tests with an absolute build directory name that contains
7118         a space.  Not quoting this directory name caused a failure.
7119         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
7120         * tests/test-vc-list-files-cvs.sh: Likewise.
7121
7122 2010-09-04  Bruno Haible  <bruno@clisp.org>
7123
7124         gnulib-tool: Avoid error when run in a package without Makefile.am.
7125         * gnulib-tool: When collecting the m4dirs in a package that does not
7126         have a Makefile.am, eliminate those directories that contain no
7127         gnulib-cache.m4. Fix expression that counts these directories.
7128
7129 2010-09-04  Bruno Haible  <bruno@clisp.org>
7130
7131         update-copyright test: Improve output when perl is missing or too old.
7132         * tests/test-update-copyright.sh: Move test of Perl version down after
7133         the test whether Perl exists. Provide an explanation relating Perl's
7134         error message to Automake's SKIP: message.
7135
7136 2010-09-04  Bruno Haible  <bruno@clisp.org>
7137
7138         Don't augment PATH in TESTS_ENVIRONMENT.
7139         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
7140         set abs_aux_dir instead of augmenting PATH.
7141         * modules/vc-list-files-tests (Makefile.am): Likewise.
7142         * tests/test-update-copyright.sh: Augment PATH here.
7143         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
7144         path_prepend_.
7145         * tests/test-vc-list-files-git.sh: Likewise.
7146
7147 2010-09-04  Jim Meyering  <meyering@redhat.com>
7148
7149         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
7150         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
7151
7152 2010-09-04  Bruno Haible  <bruno@clisp.org>
7153
7154         strdup: Fix compilation error in C++ mode.
7155         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
7156         the macro.
7157
7158 2010-09-04  Bruno Haible  <bruno@clisp.org>
7159
7160         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
7161         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
7162         macro into a function.
7163         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7164
7165 2010-09-04  Bruno Haible  <bruno@clisp.org>
7166
7167         Set PATH_SEPARATOR the same way autoconf does.
7168         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
7169         the value of PATH_SEPARATOR the same way autoconf-generated configure
7170         scripts do.
7171         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
7172         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
7173
7174 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7175
7176         Set PATH_SEPARATOR the same way autoconf does.
7177         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
7178         the same way autoconf-generated configure scripts do.
7179         * posix-modules: Likewise.
7180
7181 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
7182
7183         hash: fix safe_hasher const typo
7184         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
7185         const; otherwise, there is a type error later.
7186
7187 2010-09-02  Jim Meyering  <meyering@redhat.com>
7188
7189         test-update-copyright.sh: require perl 5.8.0
7190         * tests/test-update-copyright.sh: Require 5.8.0,
7191         which Tom G. Christensen has confirmed is adequate,
7192         while 5.6.1 is not.
7193
7194 2010-09-02  Eric Blake  <eblake@redhat.com>
7195
7196         tests: init.sh improvements for re-exec'ing with zsh
7197         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
7198         -vx through shell re-exec.
7199         Reported by Tom G. Christensen.
7200
7201         wctype: fix typo in previous commit
7202         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
7203         Reported by Ludovic Courtès.
7204
7205 2010-09-02  Jim Meyering  <meyering@redhat.com>
7206
7207         test-update-copyright.sh: skip test if Perl is too old
7208         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
7209         Reported by Tom G. Christensen.
7210
7211 2010-09-02  Bruno Haible  <bruno@clisp.org>
7212
7213         wctype: Avoid compilation error on IRIX 6.5.30.
7214         * lib/wctype.in.h (iswblank): Declare with a replacement if
7215         REPLACE_ISWBLANK is set.
7216         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
7217         declared. Set REPLACE_ISWBLANK.
7218         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
7219         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
7220         * doc/posix-headers/wctype.texi: Likewise.
7221         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7222
7223 2010-09-01  Bruno Haible  <bruno@clisp.org>
7224
7225         New module 'socketlib'.
7226         * modules/socketlib: New file.
7227         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
7228         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
7229         * modules/sockets (Depends-on): Add socketlib.
7230         Suggested by Sam Steingold <sds@gnu.org>.
7231
7232 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
7233
7234         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
7235
7236         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
7237         when one needs search access to a directory but not read access.
7238         On systems where it is available, it works in some cases where
7239         O_RDONLY does not, namely on directories that are searchable but
7240         not readable, and which need only to be searchable.  If O_SEARCH
7241         is not available, fall back to the traditional method of using
7242         O_RDONLY.
7243
7244         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
7245         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
7246         when opening a directory that needs only to be searchable.
7247         * lib/chdir-safer.c (chdir_no_follow): Likewise.
7248         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
7249         * lib/openat-proc.c (openat_proc_name): Likewise.
7250         * lib/openat.c (openat_needs_fchdir): Likewise.
7251         * lib/save-cwd.c (save_cwd): Likewise.
7252         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
7253
7254 2010-08-28  Bruno Haible  <bruno@clisp.org>
7255
7256         New module 'host-cpu-c-abi'.
7257         * modules/host-cpu-c-abi: New file.
7258         * m4/host-cpu-c-abi.m4: New file, based on part of
7259         clisp/src/m4/general.m4.
7260         Requested by Sam Steingold <sds@gnu.org>.
7261
7262 2010-08-31  Eric Blake  <eblake@redhat.com>
7263         and Jim Meyering  <meyering@redhat.com>
7264
7265         hash: factor, and guard against misbehaving hasher function
7266         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
7267         of table->hasher's return value.  Also protect against a hash value
7268         so large that adding it to table->bucket results in a NULL pointer.
7269         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
7270         Use it in place of open-coded check-and-abort.
7271
7272 2010-08-30  Bruno Haible  <bruno@clisp.org>
7273
7274         hash: silence spurious clang warning
7275         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
7276         Reported by Eric Blake.
7277
7278 2010-08-30  Eric Blake  <eblake@redhat.com>
7279
7280         strstr, memmem, strcasestr: avoid leaked shell message
7281         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
7282         FreeBSD.
7283         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7284         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7285
7286         tests: silence clang warning
7287         * tests/test-malloca.c (do_allocation): Avoid dead store.
7288
7289 2010-08-29  Bruno Haible  <bruno@clisp.org>
7290
7291         gettext: Fix recent mistake.
7292         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
7293
7294 2010-08-29  Bruno Haible  <bruno@clisp.org>
7295
7296         selinux-h: Offer a --without-selinux option.
7297         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
7298         --without-selinux was specified, skip all tests and define
7299         HAVE_SELINUX_SELINUX_H to 0.
7300         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
7301         set LIB_SELINUX to empty.
7302         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
7303         gl_LIBSELINUX. If --without-selinux was specified, replace
7304         selinux/context.h.
7305         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
7306
7307 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7308             Bruno Haible  <bruno@clisp.org>
7309
7310         Make the module 'realloc-gnu' work again on AIX and OSF/1.
7311         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
7312         of HAVE_REALLOC.
7313         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
7314         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
7315         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
7316         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
7317
7318 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7319             Bruno Haible  <bruno@clisp.org>
7320
7321         Make the module 'calloc-gnu' work again on AIX and OSF/1.
7322         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
7323         HAVE_CALLOC.
7324         * lib/xmalloc.c: Update accordingly.
7325         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
7326         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
7327         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
7328
7329 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7330             Bruno Haible  <bruno@clisp.org>
7331
7332         Make the module 'malloc-gnu' work again on AIX and OSF/1.
7333         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
7334         HAVE_MALLOC.
7335         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
7336         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
7337         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
7338
7339 2010-08-29  Bruno Haible  <bruno@clisp.org>
7340
7341         Update modules list.
7342         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
7343         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
7344         (String handling <string.h>): Add astrxfrm.
7345         (File system functions): Add readlinkat.
7346
7347 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7348
7349         Tests for module 'realloc-gnu'.
7350         * modules/realloc-gnu-tests: New file.
7351         * tests/test-realloc-gnu.c: New file.
7352
7353         Tests for module 'calloc-gnu'.
7354         * modules/calloc-gnu-tests: New file.
7355         * tests/test-calloc-gnu.c: New file.
7356
7357         Tests for module 'malloc-gnu'.
7358         * modules/malloc-gnu-tests: New file.
7359         * tests/test-malloc-gnu.c: New file.
7360
7361 2010-08-28  Bruno Haible  <bruno@clisp.org>
7362
7363         Rename module 'realloc' -> 'realloc-gnu'.
7364         * modules/realloc-gnu: New file, copied from modules/realloc.
7365         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
7366         obsolete.
7367         * modules/mgetgroups (Depends-on): Update.
7368         * doc/posix-functions/realloc.texi: Update.
7369         * NEWS: Mention the change.
7370
7371         Rename module 'calloc' -> 'calloc-gnu'.
7372         * modules/calloc-gnu: New file, copied from modules/calloc.
7373         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
7374         obsolete.
7375         * doc/posix-functions/calloc.texi: Update.
7376         * NEWS: Mention the change.
7377
7378         Rename module 'malloc' -> 'malloc-gnu'.
7379         * modules/malloc-gnu: New file, copied from modules/malloc.
7380         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
7381         obsolete.
7382         * modules/argp (Depends-on): Update.
7383         * modules/regex (Depends-on): Update.
7384         * doc/posix-functions/malloc.texi: Update.
7385         * NEWS: Mention the change.
7386
7387 2010-08-28  Eric Blake  <eblake@redhat.com>
7388
7389         pread, pwrite: add missing dependency
7390         * modules/pread (Depends-on): Add extensions.
7391         * modules/pwrite (Depends-on): Likewise.
7392
7393 2010-08-28  Bruno Haible  <bruno@clisp.org>
7394
7395         unistr/u*-strchr: Fix tests dependencies.
7396         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
7397         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
7398         Reported by Ian Beckwith <ianb@erislabs.net>.
7399
7400 2010-08-28  Bruno Haible  <bruno@clisp.org>
7401
7402         read-file: Don't occupy too much unused memory.
7403         * lib/read-file.c (fread_file): Shrink the buffer at the end.
7404
7405 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
7406             Eric Blake  <eblake@redhat.com>
7407             Bruno Haible  <bruno@clisp.org>
7408
7409         read-file: Avoid memory reallocations with regular files.
7410         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
7411         (fread_file): With regular files, use the remaining length as the
7412         initial buffer size.  Check against overflow.
7413         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
7414         sys_stat.
7415
7416 2010-08-28  Bruno Haible  <bruno@clisp.org>
7417
7418         ftello: Relax license.
7419         * modules/ftello (License): Relax to LGPLv2+.
7420         Reported by Eric Blake.
7421
7422 2010-08-28  Bruno Haible  <bruno@clisp.org>
7423
7424         Avoid relocwrapper link errors due to gnulib replacement functions.
7425         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
7426         function.
7427         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7428
7429 2010-08-28  Bruno Haible  <bruno@clisp.org>
7430
7431         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
7432         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
7433         defined.
7434         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
7435         Suggested by Eric Blake.
7436
7437 2010-08-28  Bruno Haible  <bruno@clisp.org>
7438
7439         sys_socket, netdb: Ensure socklen_t gets defined.
7440         * modules/sys_socket (Depends-on): Add socklen.
7441         * modules/netdb (Depends-on): Likewise.
7442         * modules/getaddrinfo (Depends-on): Remove socklen.
7443         * modules/getsockopt (Depends-on): Likewise.
7444         * modules/setsockopt (Depends-on): Likewise.
7445         * tests/test-sys_socket.c: Check that socklen_t is defined.
7446         * tests/test-netdb.c: Likewise.
7447         * m4/socklen.m4: Update comments.
7448         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7449
7450 2010-08-27  Eric Blake  <eblake@redhat.com>
7451
7452         login_tty: add missing dependency
7453         * modules/login_tty (Depends-on): Add pty.
7454
7455 2010-08-26  Eric Blake  <eblake@redhat.com>
7456
7457         lib-symbol-versions: fix m4 quoting
7458         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
7459         format for AC_LINK_IFELSE.
7460
7461         glob: fix compile test
7462         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
7463
7464         btowc: fix missing file
7465         * modules/btowc (Files): Also ship locale-fr.m4.
7466
7467         lseek: fix link test
7468         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
7469         AC_LINK_IFELSE.
7470
7471         include_next: silence autoconf 2.68 warning
7472         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
7473         AC_COMPILE_IFELSE as special.
7474         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
7475         autoconf < 2.68.
7476
7477         acl: fix compilation test
7478         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
7479         AC_COMPILE_IFELSE.
7480
7481 2010-08-26  Bruno Haible  <bruno@clisp.org>
7482
7483         Modernize AC_TRY_RUN invocations.
7484         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
7485         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
7486         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
7487         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
7488         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
7489         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
7490         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
7491         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7492         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
7493         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7494         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
7495         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
7496         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
7497         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7498         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
7499         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
7500         gl_MBRLEN_NUL_RETVAL): Likewise.
7501         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
7502         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
7503         Likewise.
7504         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7505         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7506         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
7507         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
7508         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
7509         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
7510         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
7511         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
7512         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
7513         Likewise.
7514         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
7515         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
7516         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7517         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
7518         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7519         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
7520         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7521         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
7522         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
7523         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7524
7525 2010-08-26  Bruno Haible  <bruno@clisp.org>
7526
7527         Modernize AC_TRY_LINK invocations.
7528         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
7529         AC_TRY_LINK.
7530         * m4/argp.m4 (gl_ARGP): Likewise.
7531         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
7532         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
7533         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
7534         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
7535         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
7536         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
7537         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
7538         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
7539         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
7540         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
7541         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
7542         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
7543         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
7544         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
7545         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
7546         * m4/hostent.m4 (gl_HOSTENT): Likewise.
7547         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7548         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
7549         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
7550         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
7551         Likewise.
7552         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
7553         Likewise.
7554         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
7555         Likewise.
7556         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
7557         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
7558         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
7559         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
7560         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
7561         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
7562         * m4/servent.m4 (gl_SERVENT): Likewise.
7563         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
7564         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
7565         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
7566         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
7567         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
7568         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7569         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7570         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7571         * modules/tsearch-tests (configure.ac): Likewise.
7572
7573 2010-08-26  Bruno Haible  <bruno@clisp.org>
7574
7575         Modernize AC_TRY_COMPILE invocations.
7576         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
7577         AC_TRY_COMPILE.
7578         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
7579         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
7580         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
7581         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
7582         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
7583         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
7584         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
7585         * m4/lock.m4 (gl_LOCK): Likewise.
7586         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
7587         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
7588         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
7589         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
7590         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
7591         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
7592         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
7593         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
7594         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
7595         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
7596         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
7597         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
7598         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
7599         extraneous semicolon.
7600
7601 2010-08-26  Jim Meyering  <meyering@redhat.com>
7602
7603         stat-time: relax license LGPL
7604         * modules/stat-time (License): Change from GPL to LGPL,
7605         with consent from all contributors, for use in libguile.
7606         Requested by Ludovic Courtès.
7607
7608 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
7609
7610         poll: return immediately on POLLHUP.
7611         * lib/poll.c (poll): Always set timeout before wait_timeout is
7612         computed.
7613
7614 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7615
7616         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
7617         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
7618         rmdir ("dir/.//"), unlinkat.
7619
7620 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
7621
7622         stdbool: avoid spurious failure with modern xlc
7623         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
7624
7625 2010-08-24  Bruno Haible  <bruno@clisp.org>
7626
7627         getloadavg: simplify code
7628         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
7629         gl_have_func. Update comments.
7630
7631 2010-08-24  Eric Blake  <eblake@redhat.com>
7632
7633         getloadavg: don't define SVR4 on cygwin
7634         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
7635         only define SVR4 when -lkvm is required.
7636         Reported by Yaakov Selkowitz.
7637
7638 2010-08-24  Bruno Haible  <bruno@clisp.org>
7639
7640         priv-set: fix comment
7641         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
7642
7643 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
7644
7645         priv-set: fix comments
7646         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
7647         to match code, as suggested by David Bartley in:
7648         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
7649
7650 2010-08-23  Eric Blake  <eblake@redhat.com>
7651
7652         stdbool: avoid rejecting clang
7653         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
7654         * tests/test-stdbool.c: Enable more tests if using the system
7655         <stdbool.h> instead of the gnulib replacement.
7656         (main): Move xlc bug test to a runtime test for all compilers.
7657         Reported by Anders Kaseorg.
7658
7659         argz: fix shell quoting issue
7660         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
7661         Reported by Charles Wilson.
7662
7663 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
7664             Erik Faye-Lund <kusmabite@gmail.com>
7665
7666         poll, select: handle ERROR_BROKEN_PIPE.
7667         * lib/poll.c (win32_compute_revents): Return POLLHUP when
7668         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
7669         * lib/select.c (win32_compute_revents): Do not mark a pipe
7670         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
7671
7672 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
7673
7674         fts: allow compilation with C++
7675         * lib/fts_.h: Specify extern "C" linkage with C++.
7676
7677 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7678
7679         Fix gnulib-tool sed script de-commentation for AIX sed.
7680         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
7681         sed.
7682
7683 2010-08-17  Eric Blake  <eblake@redhat.com>
7684
7685         test-stddef: test for (some) offsetof bugs
7686         * tests/test-stddef.c: Enhance test to ensure correct type of
7687         offsetof.
7688         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
7689         that we are not fixing at this time.
7690
7691 2010-08-15  Bruno Haible  <bruno@clisp.org>
7692
7693         stpncpy: Allow stpncpy to be defined as a macro.
7694         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
7695         if it's already correctly declared.
7696         * lib/string.in.h (stpncpy): Undefine before redefining.
7697         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
7698
7699 2010-08-14  Bruno Haible  <bruno@clisp.org>
7700
7701         Rename module 'memxfrm' to 'amemxfrm'.
7702         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
7703         (amemxfrm): Renamed from memxfrm.
7704         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
7705         (amemxfrm): Renamed from memxfrm.
7706         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
7707         * NEWS: Mention the change.
7708         * MODULES.html.sh (String handling <string.h>): Update.
7709         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
7710         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
7711         * lib/unicase/u16-casexfrm.c: Likewise.
7712         * lib/unicase/u32-casexfrm.c: Likewise.
7713         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
7714         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
7715         * lib/uninorm/u16-normxfrm.c: Likewise.
7716         * lib/uninorm/u32-normxfrm.c: Likewise.
7717         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
7718         memxfrm.
7719         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
7720         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
7721         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
7722         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
7723         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
7724         Suggested by Paul Eggert.
7725
7726 2010-08-14  Bruno Haible  <bruno@clisp.org>
7727
7728         Tests for module 'astrxfrm'.
7729         * modules/astrxfrm-tests: New file.
7730         * tests/test-astrxfrm.c: New file.
7731
7732         New module 'astrxfrm'.
7733         * lib/astrxfrm.h: New file.
7734         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
7735         * modules/astrxfrm: New file.
7736
7737 2010-08-14  Reuben Thomas <rrt@sc3d.org>
7738
7739         regex: Tweak doc.
7740         * doc/regex.texi (Overview): Don't mention regex.c.
7741         (GNU Regular Expression Compiling): Likewise.
7742         (Match-end-of-line Operator): Mention 'not_eol'.
7743
7744 2010-08-14  Brian Gough  <bjg@gnu.org>
7745             Bruno Haible  <bruno@clisp.org>
7746
7747         git-merge-changelog: add doc relating to use with bzr and hg.
7748         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
7749
7750 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
7751
7752         pthread: fix pthread.h creation for srcdir != builddir
7753         * modules/pthread (Makefile.am): Fix the rule to work also in a
7754         non-srcdir build.
7755
7756 2010-08-13  Karl Berry  <karl@gnu.org>
7757
7758         * doc/regex.texi (Predefined Syntaxes): @smallexample.
7759         * doc/posix-*/*: force line break before @url of POSIX
7760         specifications.
7761         Suggested by Werner Lemberg.
7762
7763 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7764
7765         strtod: fix const diagnostic
7766         * lib/strtod.c (strtod): Don't assign const char * to char *,
7767         as this elicits a warning from GCC when warnings are enabled.
7768
7769 2010-08-10  Pádraig Brady <P@draigbrady.com>
7770         and Eric Blake  <eblake@redhat.com>
7771
7772         copy-acl: ignore ENOTSUP on HP-UX
7773         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
7774         so that it is available for HP-UX.
7775         * lib/copy-acl.c (qcopy_acl): Use it.
7776         Reported by Patrick M. Callahan.
7777
7778 2010-08-10  Eric Blake  <eblake@redhat.com>
7779
7780         open, chown: relax license
7781         * modules/open (License): Change to LGPLv2+, with consent by all
7782         authors, for use in augeas.
7783         * modules/chown (License): Likewise.
7784         * modules/lchown (Likewise): Likewise.
7785         Requested by Adam Stokes.
7786
7787 2010-08-09  Karl Berry  <karl@gnu.org>
7788
7789         * build-aux/ar-lib: new file, import from Automake.
7790         * config/srclist.txt: autocheck for updates.
7791
7792 2010-08-09  Eric Blake  <eblake@redhat.com>
7793
7794         readlinkat: adjust client modules
7795         * modules/areadlinkat (Depends-on): Use readlinkat, not
7796         symlinkat.
7797         * modules/areadlinkat-with-size (Depends-on): Likewise.
7798
7799         mknod: be more vocal about danger of running tests as root
7800         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
7801         root, since that is just asking for problems.
7802         Suggested by Bruno Haible, based on a report by Rainer Tammer.
7803
7804         readlinkat: split into its own module
7805         * modules/symlinkat: Split readlinkat...
7806         * modules/readlinkat: ...into separate module.
7807         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
7808         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
7809         * lib/symlinkat.c (readlinkat): Move...
7810         * lib/readlinkat.c: ...into new file.
7811         * modules/symlinkat-tests: Split readlinkat test...
7812         * modules/readlinkat-tests: ...into separate module.
7813         * tests/test-symlinkat.c: Split...
7814         * tests/test-readlinkat.c: ...into new file.
7815         * NEWS: Document the split.
7816         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7817         * lib/unistd.in.h (readlinkat): Likewise.
7818         Suggested by Bruno Haible.
7819
7820 2010-08-08  Bruno Haible  <bruno@clisp.org>
7821
7822         memxfrm: Speed up.
7823         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
7824         that usually only one call to strxfrm is necessary for each string
7825         part.
7826         Reported by Paul Eggert <eggert@cs.ucla.edu>.
7827
7828 2010-08-07  Karl Berry  <karl@gnu.org>
7829
7830         * doc/posix-headers/limits.texi,
7831         * doc/posix-functions/malloc.texi,
7832         * doc/posix-functions/strsignal.texi: missing @item.
7833         * doc/ld-version-script.texi: spurious leading i.
7834         * doc/regex.texi (Interval Operators): no commas inside @var.
7835
7836 2010-08-01  Bruno Haible  <bruno@clisp.org>
7837
7838         Integrate the regex documentation.
7839         * doc/gnulib.texi: Define 'cn' index.
7840         (Regular expressions): New a chapter that includes regex.texi and
7841         regexprops-generic.texi.
7842         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
7843         syntax.
7844
7845         Whitespace cleanup.
7846         * doc/regex.texi: Remove trailing spaces.
7847
7848         Add regex documentation.
7849         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
7850         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
7851         Written by Kathy A. Hargreaves and Karl Berry.
7852
7853 2010-08-01  Bruno Haible  <bruno@clisp.org>
7854
7855         link: Update documentation.
7856         * doc/posix-functions/link.texi: Update regarding Solaris.
7857
7858 2010-07-31  Bruno Haible  <bruno@clisp.org>
7859
7860         Update modules list.
7861         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
7862         (String handling <string.h>): Add memcmp2, memxfrm.
7863         (Container data structures): Add xlist, xsublist, xoset.
7864         (Core language properties): Add alignof, unused-parameter.
7865         (Process control, Numeric conversion functions <stdlib.h>): Renamed
7866         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
7867         (Unibyte characters <ctype.h>): New section.
7868         (String handling <string.h>): New section.
7869         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
7870         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
7871         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
7872         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
7873         tan, tanh, tanl, y0, y1, yn.
7874         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
7875         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
7876         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
7877         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
7878         unlockpt, vdprintf, vdprintf-posix.
7879         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
7880         (File system functions): Add concat-filename, sys_file, sys_ioctl,
7881         xconcat-filename.
7882         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
7883         getdtablesize, pipe2, pipe2-safer.
7884         (Security): New section.
7885         (Networking functions): Add accept4.
7886         (Signal handling): Add sigpipe.
7887         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
7888         mbmemcasecoll.
7889         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
7890         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
7891         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
7892         pipe-filter-ii.
7893         (Misc): Add argp-version-etc, login_tty, parse-duration.
7894
7895 2010-07-31  Bruno Haible  <bruno@clisp.org>
7896
7897         Improve doc in MODULES.html.
7898         * modules/linkat (Description): Add the word "function".
7899         * modules/mkfifo (Description): Likewise.
7900         * modules/mknod (Description): Likewise.
7901         * modules/remove (Description): Likewise.
7902         * modules/renameat (Description): Likewise.
7903         * modules/stat (Description): Likewise.
7904         * modules/symlink (Description): Likewise.
7905         * modules/unlink (Description): Likewise.
7906
7907 2010-07-31  Bruno Haible  <bruno@clisp.org>
7908
7909         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
7910         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
7911         option --enable/disable-c++ instead of --enable/disable-cxx.
7912         * NEWS: Mention the change.
7913
7914 2010-07-31  Bruno Haible  <bruno@clisp.org>
7915
7916         readlink, areadlink: Relax test a bit.
7917         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
7918         alternative to ENOTDIR.
7919         * tests/test-areadlink.h (test_areadlink): Likewise.
7920         Reported by Rainer Tammer.
7921
7922 2010-07-31  Bruno Haible  <bruno@clisp.org>
7923
7924         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
7925         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
7926         character, perform the search using U_STRCHR.
7927         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
7928         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
7929         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
7930         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
7931         Suggested by Paolo Bonzini.
7932
7933 2010-07-31  Bruno Haible  <bruno@clisp.org>
7934
7935         unistr/u*-strstr: Fix dependencies.
7936         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
7937         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
7938         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
7939
7940 2010-07-31  Bruno Haible  <bruno@clisp.org>
7941
7942         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
7943         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
7944         the beginning of the loop.
7945         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
7946         cases in 'switch' statement.
7947
7948         unistr/u8-strchr: Fix several bugs.
7949         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
7950         the string. When not found, return NULL, not a pointer near the end.
7951
7952         More tests for unistr/u8-strchr.
7953         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
7954         that the function does not read past the first occurrence of the byte
7955         being searched.
7956         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
7957         * tests/unistr/test-u16-strchr.c (main): New function.
7958         * tests/unistr/test-u32-strchr.c (main): New function.
7959
7960 2010-07-31  Bruno Haible  <bruno@clisp.org>
7961
7962         posix-modules: Ignore backup files of documentation files.
7963         * posix-modules: grep only through files named *.texi.
7964
7965 2010-07-31  Bruno Haible  <bruno@clisp.org>
7966
7967         symlinkat: Fix documentation.
7968         * doc/posix-functions/readlinkat.texi: Fix module name.
7969
7970 2010-07-31  Bruno Haible  <bruno@clisp.org>
7971
7972         fchownat: Replace also when chown has the trailing slash bug.
7973         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
7974         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
7975         introduced on 2010-04-10.
7976         Reported by Rainer Tammer.
7977
7978 2010-07-31  Bruno Haible  <bruno@clisp.org>
7979
7980         linkat: Work around AIX 7.1 bug.
7981         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
7982         whether linkat handles trailing slash correctly. If not, replace linkat
7983         and define LINKAT_TRAILING_SLASH_BUG.
7984         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
7985         check whether (fd1,file1) points to a directory if file1 or file2 ends
7986         in a slash. Code taken from lib/link.c.
7987         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
7988         Reported by Rainer Tammer.
7989
7990 2010-07-31  Bruno Haible  <bruno@clisp.org>
7991
7992         Correctly determine whether pow is available in libc on AIX 7 with xlc.
7993         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
7994         This disables an xlc optimization that was causing wrong test results.
7995         Reported by Rainer Tammer.
7996
7997 2010-07-31  Bruno Haible  <bruno@clisp.org>
7998
7999         iconv: Work around AIX 6.1..7.1 bug.
8000         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
8001         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
8002         cross-compiling, guess no on all versions of AIX.
8003         Reported by Rainer Tammer.
8004
8005 2010-07-31  Bruno Haible  <bruno@clisp.org>
8006
8007         readlink: Relax test a bit.
8008         * tests/test-readlink.h (test_readlink): Allow different errno value
8009         when readlink is called with a file name that ends in / and refers to
8010         a file.
8011         Suggested by Eric Blake.
8012         Reported by Rainer Tammer.
8013
8014 2010-07-31  Bruno Haible  <bruno@clisp.org>
8015
8016         copysign: Does not require -lm on glibc systems.
8017         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
8018         gl_COMMON_DOUBLE_MATHFUNC.
8019         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
8020
8021 2010-07-31  Bruno Haible  <bruno@clisp.org>
8022
8023         duplocale: Work around AIX 7.1 bug.
8024         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
8025         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
8026         * lib/duplocale.c (rpl_duplocale): Update comment.
8027         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
8028         Reported by Rainer Tammer.
8029
8030 2010-07-30  Bruno Haible  <bruno@clisp.org>
8031
8032         dirfd: Avoid link error on AIX 7.1.
8033         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
8034         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
8035         exist, set REPLACE_DIRFD.
8036         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
8037         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
8038         * doc/posix-functions/dirfd.texi: Update.
8039         Reported by Rainer Tammer.
8040
8041 2010-07-30  Eric Blake  <eblake@redhat.com>
8042
8043         strtod: next round of AIX fixes
8044         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
8045         exponent.
8046         * tests/test-strtod.c (main): Enhance tests.
8047         * doc/posix-functions/strtod.texi (strtod): Document next bug.
8048         Reported by Rainer Tammer.
8049
8050         futimens: fix configure check
8051         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
8052         Reported by Bruno Haible.
8053
8054 2010-07-30  Bruno Haible  <bruno@clisp.org>
8055
8056         getline: Update regarding AIX.
8057         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
8058         Reported by Rainer Tammer.
8059
8060 2010-07-30  Bruno Haible  <bruno@clisp.org>
8061
8062         wcwidth: Drop replacement on AIX 7.
8063         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
8064         AIX 7.
8065         Reported by Rainer Tammer.
8066
8067 2010-07-30  Bruno Haible  <bruno@clisp.org>
8068
8069         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
8070         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
8071         a 'char *'.
8072         Reported by Rainer Tammer.
8073
8074 2010-07-30  Bruno Haible  <bruno@clisp.org>
8075
8076         unlink: Update regarding AIX.
8077         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
8078         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
8079         Reported by Rainer Tammer.
8080
8081 2010-07-30  Bruno Haible  <bruno@clisp.org>
8082
8083         symlink: Update regarding AIX.
8084         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
8085         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
8086         Reported by Rainer Tammer.
8087
8088 2010-07-30  Bruno Haible  <bruno@clisp.org>
8089
8090         strndup: Update regarding AIX.
8091         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
8092         AIX 7.
8093         Reported by Rainer Tammer.
8094
8095 2010-07-30  Bruno Haible  <bruno@clisp.org>
8096
8097         stat: Update regarding AIX.
8098         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
8099         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
8100         Reported by Rainer Tammer.
8101
8102 2010-07-30  Bruno Haible  <bruno@clisp.org>
8103
8104         truncl: Fix autoconf test.
8105         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
8106         whether truncl works.
8107         Reported by Rainer Tammer.
8108
8109 2010-07-30  Bruno Haible  <bruno@clisp.org>
8110
8111         round: Update regarding AIX.
8112         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
8113         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
8114         Reported by Rainer Tammer.
8115
8116 2010-07-30  Bruno Haible  <bruno@clisp.org>
8117
8118         rename: Update regarding AIX.
8119         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
8120         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
8121         Reported by Rainer Tammer.
8122
8123 2010-07-30  Bruno Haible  <bruno@clisp.org>
8124
8125         printf.m4: Update regarding AIX.
8126         * m4/printf.m4: Update comments regarding AIX.
8127         Reported by Rainer Tammer.
8128
8129 2010-07-30  Bruno Haible  <bruno@clisp.org>
8130
8131         iconv: Update regarding AIX.
8132         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
8133         AIX 7.
8134         Reported by Rainer Tammer.
8135
8136 2010-07-30  Bruno Haible  <bruno@clisp.org>
8137
8138         getopt: Update regarding AIX.
8139         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
8140         no on AIX.
8141         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
8142         Reported by Rainer Tammer.
8143
8144 2010-07-30  Bruno Haible  <bruno@clisp.org>
8145
8146         ldexpl; Update regarding AIX.
8147         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
8148         on AIX 7.
8149         Reported by Rainer Tammer.
8150
8151 2010-07-30  Bruno Haible  <bruno@clisp.org>
8152
8153         frexpl: Update regarding AIX.
8154         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
8155         on AIX 7.
8156         Reported by Rainer Tammer.
8157
8158 2010-07-30  Bruno Haible  <bruno@clisp.org>
8159
8160         open, fopen: Update regarding AIX.
8161         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
8162         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
8163         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
8164         * doc/posix-functions/fopen.texi: Likewise.
8165         Reported by Rainer Tammer.
8166
8167 2010-07-30  Bruno Haible  <bruno@clisp.org>
8168
8169         chown: Update doc regarding AIX.
8170         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
8171         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
8172         Reported by Rainer Tammer.
8173
8174 2010-07-30  Eric Blake  <eblake@redhat.com>
8175
8176         strtod: fix bug in replacement function on AIX
8177         * lib/strtod.c (strtod): Special case broken "0x" parse in
8178         underlying strtod.
8179         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
8180         * doc/posix-functions/strtod.texi (strtod): Likewise.
8181         Reported by Rainer Tammer.
8182
8183 2010-07-30  Bruno Haible  <bruno@clisp.org>
8184
8185         mbrlen: Fix cross-compilation guess for AIX.
8186         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
8187         guess. Leftover from 2008-12-22.
8188
8189 2010-07-30  Bruno Haible  <bruno@clisp.org>
8190
8191         mbrtowc: Fix cross-compilation guess for AIX.
8192         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
8193         guess. Leftover from 2008-12-21.
8194
8195 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
8196
8197         init.sh: work around trap limitation of some shells
8198         * tests/init.sh (setup_): Move exit trap outside of shell function.
8199
8200 2010-07-29  Eric Blake  <eblake@redhat.com>
8201
8202         strtod: aid debugging
8203         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
8204         understanding why strtod is rejected.
8205
8206 2010-07-28  Bruno Haible  <bruno@clisp.org>
8207
8208         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
8209         * lib/unistr/u8-chr.c: Include <string.h>.
8210         * tests/unistr/test-u8-chr.c: Likewise.
8211         * tests/unistr/test-u16-chr.c: Likewise.
8212         * tests/unistr/test-u32-chr.c: Likewise.
8213         * tests/unistr/test-u8-strchr.c: Likewise.
8214         * tests/unistr/test-u16-strchr.c: Likewise.
8215         * tests/unistr/test-u32-strchr.c: Likewise.
8216         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
8217         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
8218         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
8219         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
8220
8221 2010-07-28  Bruno Haible  <bruno@clisp.org>
8222
8223         Use spaces for indentation, not tabs.
8224         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
8225
8226 2010-07-27  Bruno Haible  <bruno@clisp.org>
8227
8228         mbspcasecmp: Fix function specification.
8229         * lib/string.in.h (mbspcasecmp): Fix specification comment.
8230         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
8231         Reported by Eric Blake <eblake@redhat.com>.
8232
8233 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
8234
8235         timespec: use cast and not conditional, as truncation isn't possible
8236         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
8237         instead of a conditional.  Comment about the situation in more detail.
8238         This undoes most of the 2009-10-29 patch.
8239
8240 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
8241
8242         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
8243         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
8244         * lib/unistr/u8-strchr.c: Likewise.
8245         * modules/unistr/u8-chr: Depend on memchr.
8246
8247         unistr/u*-strchr: add tests
8248         * modules/unistr/u8-strchr-tests: New file.
8249         * modules/unistr/u16-strchr-tests: New file.
8250         * modules/unistr/u32-strchr-tests: New file.
8251         * tests/unistr/test-strchr.h: New file.
8252         * tests/unistr/test-u8-strchr.c: New file.
8253         * tests/unistr/test-u16-strchr.c: New file.
8254         * tests/unistr/test-u32-strchr.c: New file.
8255
8256         unistr/u*-chr: test multibyte sequences more
8257         * tests/unistr/test-chr.h: Do complete testing of the characters in the
8258         test vector.
8259         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
8260         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
8261         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
8262
8263         unistr/u*-chr: test multibyte sequences
8264         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
8265
8266         unistr/u*-chr: prepare for multibyte tests
8267         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
8268         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
8269         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
8270         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
8271         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
8272         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
8273
8274 2010-07-18  Bruno Haible  <bruno@clisp.org>
8275
8276         unistr/u8-strchr: Optimize non-ASCII argument case.
8277         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
8278         because the first byte often matches anyway.
8279         Reported by Pádraig Brady <P@draigbrady.com>.
8280
8281 2010-07-15  Karl Berry  <karl@gnu.org>
8282
8283         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
8284
8285 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
8286
8287         getcwd: on Solaris, work better if ancestors are inaccessible
8288         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
8289         buffer and size, try again with a large buffer.  This works better
8290         on Solaris, since its getcwd succeeds even if the path to the root
8291         is inaccessible, and this is helpful in common cases such as .zfs
8292         hidden directories.  Problem reported by J Chapman Flack in
8293         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
8294         Use system getcwd if it's declared, not merely if it's partly
8295         working; use the partly-working test only to avoid needless effort
8296         if the system getcwd fails.
8297         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
8298         comment that was already obsolete and is now even more obsolete.
8299         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
8300         now might call strdup.
8301
8302 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
8303
8304         pthread: Add enough so that coreutils/src/sort.c compiles.
8305         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
8306         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
8307         gnulib. Include <sched.h> and <time.h>, as per POSIX.
8308         Include <sys/types.h>, in case it defines pthread_t.
8309         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
8310         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
8311         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
8312         (pthread_rwlockattr_t, pthread_spinlock_t):
8313         New typedefs, if HAVE_PTHREAD_T is not defined.
8314         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
8315         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
8316         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
8317         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
8318         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
8319         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
8320         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
8321         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
8322         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
8323         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
8324         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
8325         New macros.
8326         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
8327         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
8328         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
8329         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
8330         (pthread_spin_unlock): New dummy functions.
8331         (pthread_create): Return EAGAIN; don't set errno.
8332         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
8333         require AC_C_INLINE.
8334         * modules/pthread (Depends-on): Add sched, time.
8335         (pthread.h): Use AM_V_GEN.
8336
8337 2010-07-13  Bruno Haible  <bruno@clisp.org>
8338
8339         striconveh: Don't malloc memory if the result buffer is sufficient.
8340         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
8341         buffer if its size is sufficient.
8342         Reported by Ludovic Courtès <ludo@gnu.org>.
8343
8344 2010-07-13  Bruno Haible  <bruno@clisp.org>
8345
8346         strtod: Add safety check.
8347         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
8348
8349 2010-07-12  Bruno Haible  <bruno@clisp.org>
8350
8351         Unify tests that set gl_cv_func_ldexpl_no_libm.
8352         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
8353         gl_FUNC_LDEXPL.
8354         (gl_FUNC_LDEXPL): Invoke it.
8355         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8356
8357 2010-07-12  Bruno Haible  <bruno@clisp.org>
8358
8359         Unify tests that set gl_cv_func_ldexp_no_libm.
8360         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
8361         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
8362         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
8363         (configure.ac): Simply invoke gl_FUNC_LDEXP.
8364         * modules/strtod (Files): Add m4/ldexp.m4.
8365
8366 2010-07-12  Bruno Haible  <bruno@clisp.org>
8367
8368         Unify tests that set gl_cv_func_frexpl_no_libm.
8369         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
8370         gl_FUNC_FREXPL_NO_LIBM.
8371         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
8372         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8373
8374 2010-07-12  Bruno Haible  <bruno@clisp.org>
8375
8376         Unify tests that set gl_cv_func_frexp_no_libm.
8377         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
8378         gl_FUNC_FREXP_NO_LIBM.
8379         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
8380         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
8381
8382 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
8383
8384         memcoll: clarify sizes versus lengths, document better, and tweak perf
8385         * lib/memcoll.c (strcoll_loop, memcoll0):
8386         Improve quality of descriptive comments.  Name variables
8387         consistently as to whether they are lengths (which do not include
8388         terminating null) versus sizes (which do).
8389         * lib/xmemcoll.c (xmemcoll0): Likewise.
8390         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
8391         returned when s1size == 0; this is easier to compile and saves
8392         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
8393
8394 2010-07-12  Bruno Haible  <bruno@clisp.org>
8395
8396         Tests for module '_Exit'.
8397         * modules/_Exit-tests: New file.
8398         * tests/test-_Exit.sh: New file.
8399         * tests/test-_Exit.c: New file.
8400
8401         New module '_Exit'.
8402         * lib/stdlib.in.h (__attribute__): New macro.
8403         (_Exit): New declaration.
8404         * lib/_Exit.c: New file.
8405         * m4/_Exit.m4: New file.
8406         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
8407         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
8408         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
8409         * modules/_Exit: New file.
8410         * tests/test-stdlib-c++.cc (_Exit): Check signature.
8411         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
8412
8413 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
8414
8415         strtod: make it more-accurate typically, and don't require libm
8416         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
8417         Include limits.h.  Don't include string.h.
8418         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
8419         (locale_isspace): New function, so that no casts are needed to
8420         check whether *s is a space.
8421         (ldexp): Provide an unused dummy if not available.
8422         (scale_radix_exp, parse_number, underlying_strtod): New functions.
8423         (strtod): Use them.  This implementation prefers to use the
8424         underlying strtod if available, falling back on our own code
8425         only to fix known bugs.  This is more likely to produce an
8426         accurate result.  Also, it avoids the use of libm functions.
8427         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
8428         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
8429         was absent, but it caused a test failure with coreutils.
8430         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
8431         with libm.
8432         * modules/strtod (Makefile.am, Link): libm is no longer needed.
8433         * modules/strtod-tests (Makefile.am): Likewise.
8434
8435 2010-07-11  Pádraig Brady  <P@draigBrady.com>
8436             Bruno Haible  <bruno@clisp.org>
8437
8438         unistr/u8-strchr: Optimize ASCII argument case.
8439         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
8440
8441 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
8442
8443         (x)memcoll: minor tweaks
8444         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
8445         is after the type that it qualifies.
8446         (memcoll0): Likewise.
8447         * lib/memcoll.h (memcoll0): Likewise.
8448         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
8449         * lib/xmemcoll.h (xmemcoll0): Likewise.
8450         * lib/memcoll.c (memcoll0): Correct the comment.  This function
8451         differs from memcoll in that the NUL byte is part of the argument.
8452         Omit the abort-checks, as performance is a real issue here.  Plus,
8453         the checks were wrong anyway (an off-by-one error).  Omit local
8454         variable 'diff', as it's a bit clearer that way.
8455         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
8456         no longer needed.
8457
8458 2010-07-08  Chen Guo <chenguo4@yahoo.com>
8459
8460         (x)memcoll: speedup when input is known to be NUL delimited
8461         * lib/memcoll.c: Include stdlib.
8462         (memcoll0) New function.
8463         (strcoll_loop) New function, refactored for use in both memcoll
8464         and memcoll0.
8465         * lib/memcoll.h: Add prototype for memcoll0.
8466         * lib/xmemcoll.c: (xmemcoll0) New function.
8467         (collate_error) New function, refactored for use in both xmemcoll
8468         and xmemcoll0.
8469         * lib/xmemcoll.h: Add prototype for xmemcoll0.
8470         * m4/memcoll.m4: add inline invocation.
8471
8472 2010-07-06  Pádraig Brady  <P@draigBrady.com>
8473
8474         * build-aux/bootstrap: Remove any local translations
8475         from the translation project synchronization directory,
8476         so that local only translations are not distributed.
8477
8478 2010-07-04  Bruno Haible  <bruno@clisp.org>
8479
8480         fsusage: Clarify which code applies to which platforms.
8481         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
8482         platform.
8483         * lib/fsusage.c (get_fs_usage): Likewise.
8484
8485 2010-07-04  Bruno Haible  <bruno@clisp.org>
8486
8487         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
8488         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
8489         Reported by Martin Lambers <marlam@marlam.de>.
8490
8491 2010-07-04  Jim Meyering  <meyering@redhat.com>
8492
8493         hash: once again explicitly disallow insertion of NULL
8494         * lib/hash.c (hash_insert0): Reinstate just-removed test:
8495         inserting a NULL pointer cannot work with these functions.
8496         Add a comment with details.
8497         This reverts part of the 2010-07-01 commit, 5bef1a35
8498         "hash: extend module to deal with non-pointer keys".
8499
8500 2010-07-01  Bruno Haible  <bruno@clisp.org>
8501
8502         stdbool: Update doc.
8503         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
8504         Info from Christian Weisgerber <naddy@mips.inka.de>.
8505
8506 2010-07-01  Jim Meyering  <meyering@redhat.com>
8507
8508         hash: extend module to deal with non-pointer keys
8509         * lib/hash.c (hash_insert0): New interface, much like hash_insert
8510         but that allows insertion of non-pointer entries.
8511         Do not disallow an ENTRY value of NULL.
8512         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
8513         * lib/hash.h (hash_insert0): Declare.
8514
8515 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8516
8517         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
8518         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
8519         not present (i.e. with autoconf 2.59 and when using gettextize, not
8520         gnulib), require AC_GNU_SOURCE instead.
8521
8522 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
8523
8524         idpriv-drop: Fix tests.
8525         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
8526         not to the test-idpriv-droptemp program.
8527
8528 2010-06-29  Bruno Haible  <bruno@clisp.org>
8529
8530         string: Fix syntax error with g++ 2.96.
8531         * lib/string.in.h (__pure__): Remove definition.
8532         (_GL_ATTRIBUTE_PURE): New macro.
8533         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
8534         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
8535         Reported by Christian Weisgerber <naddy@mips.inka.de>.
8536
8537 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
8538
8539         unitypes: Fix bug introduced on 2010-05-18.
8540         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
8541
8542 2010-06-22  Eric Blake  <eblake@redhat.com>
8543
8544         memmem: slight optimization
8545         * lib/str-two-way.h (critical_factorization): Update comments.
8546         Reduce work during factorization phase.
8547         Reported by Carlos Bueno <carlos@bueno.org>.
8548
8549 2010-06-21  Bruno Haible  <bruno@clisp.org>
8550
8551         Fix HAVE_CALLOC_POSIX misnomer.
8552         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
8553         !HAVE_CALLOC_POSIX.
8554         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
8555         HAVE_CALLOC_POSIX.
8556         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
8557         instead of HAVE_CALLOC_POSIX.
8558         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
8559         HAVE_CALLOC_POSIX.
8560
8561         Use modern idiom for calloc() replacement.
8562         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
8563         AC_FUNC_CALLOC.
8564         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
8565         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
8566         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
8567         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
8568         (gl_REPLACE_CALLOC): New macro.
8569
8570 2010-06-21  Bruno Haible  <bruno@clisp.org>
8571
8572         Fix HAVE_REALLOC_POSIX misnomer.
8573         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
8574         !HAVE_REALLOC_POSIX.
8575         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
8576         HAVE_REALLOC_POSIX.
8577         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
8578         instead of HAVE_REALLOC_POSIX.
8579         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
8580         HAVE_REALLOC_POSIX.
8581
8582         Use modern idiom for realloc() replacement.
8583         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
8584         AC_FUNC_REALLOC.
8585         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
8586         Autoconf's AC_FUNC_REALLOC.
8587         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
8588         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
8589         (gl_REPLACE_REALLOC): New macro.
8590         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
8591
8592 2010-06-21  Bruno Haible  <bruno@clisp.org>
8593
8594         Fix HAVE_MALLOC_POSIX misnomer.
8595         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
8596         !HAVE_MALLOC_POSIX.
8597         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
8598         HAVE_MALLOC_POSIX.
8599         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
8600         instead of HAVE_MALLOC_POSIX.
8601         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
8602         HAVE_MALLOC_POSIX.
8603
8604         Use modern idiom for malloc() replacement.
8605         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
8606         AC_FUNC_MALLOC.
8607         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
8608         Autoconf's AC_FUNC_MALLOC.
8609         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
8610         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
8611         (gl_REPLACE_MALLOC): New macro.
8612         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
8613
8614 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
8615
8616         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
8617         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
8618         This macro takes 3 arguments, not 4.
8619
8620 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
8621
8622         ipv6: fix detection under mingw
8623         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
8624         in6_addr.
8625
8626 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
8627
8628         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
8629         that strtod() works when cross-compiling to a glibc version known
8630         to work.
8631
8632 2010-06-15  Bruno Haible  <bruno@clisp.org>
8633
8634         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
8635
8636 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
8637
8638         select: Correct timeout.
8639         * lib/select.c (rpl_select): Compute wait_timeout correctly.
8640
8641 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
8642
8643         git-version-gen: init shell var to avoid env var influence
8644         * build-aux/git-version-gen (v): Init shell var to empty.
8645
8646 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
8647
8648         priv-set: Don't assume that priv.h exists merely because getppriv does.
8649         See Jan Andersen's bug report about AIX 5L in
8650         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
8651         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
8652         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
8653         * lib/priv-set.h: Likewise.
8654         * tests/test-priv-set.c: Likewise.
8655
8656 2010-06-13  Bruno Haible  <bruno@clisp.org>
8657
8658         relocatable: Make it easier to test whether to install wrappers.
8659         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
8660         RELOCATABLE_VIA_WRAPPER.
8661
8662 2010-06-13  Bruno Haible  <bruno@clisp.org>
8663
8664         gnulib-tool: Display specified modules and dependencies differently.
8665         * gnulib-tool (func_show_module_list): New function.
8666         (func_import, func_create_testdir): Invoke it.
8667         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
8668
8669 2010-06-13  Bruno Haible  <bruno@clisp.org>
8670
8671         gnulib-tool: Align code of func_import and func_create_testdir.
8672         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
8673         specified_modules.
8674
8675 2010-06-12  Jim Meyering  <meyering@redhat.com>
8676
8677         test-inttostr: avoid spurious failure on Solaris 9
8678         * tests/test-inttostr.c (main): Skip the test when snprintf fails
8679         to accept "%ju".  Reported by Bruno Haible.
8680
8681 2010-06-11  Jim Meyering  <meyering@redhat.com>
8682
8683         test-sys_socket: mark variables as used more readably
8684         * tests/test-sys_socket.c (main): Mark otherwise unused variables
8685         as "used" explicitly via (void) statement casts.  This is more
8686         readable than using them in an artificial return expression.
8687         Suggestion from Bruno Haible.
8688
8689 2010-06-11  Bruno Haible  <bruno@clisp.org>
8690
8691         Avoid some more warnings from "gcc -Wwrite-strings".
8692         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
8693         to 'const char *'.
8694         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
8695         * tests/test-c-strcasestr.c (main): Likewise.
8696         * tests/test-mbscasestr1.c (main): Likewise.
8697         * tests/test-mbscasestr2.c (main): Likewise.
8698         * tests/test-memmem.c (main): Likewise.
8699         * tests/test-strstr.c (main): Likewise.
8700         * tests/test-strcasestr.c (main): Likewise.
8701
8702 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8703
8704         init.sh: change framework_failure_ to fail with status 99, not 1
8705         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
8706         automake's parallel-tests rule that this is an unexpected failure,
8707         even if the test is listed in XFAIL_TESTS.
8708
8709 2010-06-11  Jim Meyering  <meyering@redhat.com>
8710
8711         test-inttostr: avoid warnings about 4-6KB literal strings
8712         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
8713         Include "macros.h", for its definition of ASSERT.
8714         (CK): s/assert/ASSERT/
8715         * modules/inttostr-tests (Files): Add macros.h.
8716
8717         init.sh: don't use $ME_ or skip_ before they are defined
8718         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
8719         their first uses.  Also hoist their companions: warn_, fail_,
8720         framework_failure_, $stderr_fileno.  Prompted by a patch from
8721         Stefano Lattarini.
8722
8723         test-sys_socket: avoid set-but-not-used warnings from gcc
8724         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
8725         avoid warning about set-but-not-used variables.
8726
8727         test-xvasprintf: avoid 'const' discard warnings
8728         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
8729         "const" when assigning from literal strings.
8730         (test_xasprintf): Add "void" in function argument list to placate
8731         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
8732
8733         tests: avoid compilation warnings in argmatch and exclude tests...
8734         in packages that define ARGMATCH_DIE_DECL, like coreutils.
8735         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
8736         Since it always exits, declare with the "noreturn" attribute.
8737         * tests/test-argmatch.c: Likewise.
8738
8739         tests: avoid 'const' discard warnings in mbsstr tests
8740         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
8741         * tests/test-mbsstr2.c (main): Likewise.
8742
8743         test-verify: avoid warning from gcc's -Wmissing-declarations
8744         * tests/test-verify.c (function): Declare to be static.
8745
8746         test-inttostr.c: include <string.h> for use of strcmp
8747         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
8748
8749         test-linkat: avoid failed assertion on "other" architectures
8750         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
8751         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
8752         sparc: https://bugs.launchpad.net/bugs/591968
8753
8754 2010-06-11  Jim Meyering  <meyering@redhat.com>
8755
8756         printf.m4: avoid autoconf's "Expanded Before Required" warning
8757         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
8758         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
8759         autoconf warning.
8760
8761 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
8762
8763         Replacement header templates are now named with ".in", not "_".
8764         * doc/gnulib-intro.texi: Correct.
8765
8766 2010-06-10  Jim Meyering  <meyering@redhat.com>
8767
8768         inttostr-tests: depend on snprintf, not snprintf-posix
8769         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
8770         snprintf-posix, to avoid this aclocal failure:
8771           missing file gnulib-tests/vasnprintf.c
8772           configure.ac:45: error: expected source file, required through \
8773           AC_LIBSOURCES, not found
8774
8775 2010-06-10  Jim Meyering  <meyering@redhat.com>
8776
8777         inttostr: add a new function, inttostr, and tests
8778         The namesake function was not available.  The existence of the
8779         template file, inttostr.c makes its addition nontrivial.
8780         * lib/anytostr.c: Rename from inttostr.c.
8781         (anytostr): Rename from inttostr.
8782         * lib/inttostr.c: New file.
8783         * modules/inttostr (Files): Add anytostr.c.
8784         (Makefile.am): Set lib_SOURCES instead of ...
8785         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
8786         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
8787         * lib/offtostr.c: Likewise.
8788         * lib/uinttostr.c: Likewise.
8789         * lib/umaxtostr.c: Likewise.
8790         * modules/inttostr-tests: New file.
8791         * tests/test-inttostr.c: New file.  Test these functions.
8792
8793 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
8794             Bruno Haible  <bruno@clisp.org>
8795
8796         Add "Extending Gnulib" chapter to manual.
8797         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
8798         chapter.
8799         (Extending Gnulib): New chapter.
8800         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
8801         chapter.
8802
8803 2010-06-09  Bruno Haible  <bruno@clisp.org>
8804
8805         Avoid relocwrapper link errors due to gnulib replacement functions.
8806         * lib/areadlink.c: Use the system's malloc, realloc functions.
8807         (areadlink): Set errno to ENOMEM explicitly.
8808         * modules/areadlink (Depends-on): Remove malloc-posix.
8809         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8810
8811 2010-06-09  Bruno Haible  <bruno@clisp.org>
8812
8813         Avoid relocwrapper link errors due to gnulib replacement functions.
8814         * lib/canonicalize-lgpl.c: Use the system's malloc function.
8815         * lib/malloca.c: Likewise.
8816         * lib/relocatable.c: Likewise.
8817         * lib/progreloc.c: Use the system's malloc, sprintf functions.
8818         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
8819         * lib/setenv.c: Use the system's malloc, realloc functions.
8820         * lib/strerror.c: Use the system's sprintf function.
8821         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8822
8823 2010-06-04  Bruno Haible  <bruno@clisp.org>
8824
8825         Prefer documented low-level autoconf macro names.
8826         * m4/lib-link.m4: Use m4_translit instead of translit.
8827         * m4/environ.m4: Likewise.
8828         * m4/mathfunc.m4: Likewise.
8829         * m4/onceonly.m4: Likewise.
8830         * m4/stdint.m4: Likewise.
8831         Suggested by Eric Blake.
8832
8833 2010-06-04  Martin Lambers  <marlam@marlam.de>
8834             Bruno Haible  <bruno@clisp.org>
8835
8836         havelib: Allow library names with '+' characters.
8837         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
8838         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
8839
8840 2010-06-09  Bruno Haible  <bruno@clisp.org>
8841
8842         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
8843         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
8844         realloc failed.
8845
8846 2010-06-08  Peter Simons  <simons@cryp.to>
8847
8848         maint.mk: make the news-check rule more configurable
8849         * top/maint.mk (news-check-lines-spec) New variable.
8850         (news-check): Use "sed -n 1,10p" in place of "head".
8851
8852 2010-06-07  Jim Meyering  <meyering@redhat.com>
8853
8854         do-release-commit-and-tag: fix typo in --help
8855         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
8856
8857         regex: avoid new dead-code warning with gcc-4.6.0
8858         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
8859         if-block containing a while-loop.  It's been unused for at least
8860         5 years.
8861
8862 2010-06-05  Bruno Haible  <bruno@clisp.org>
8863
8864         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
8865         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
8866
8867 2010-06-04  Bruno Haible  <bruno@clisp.org>
8868
8869         Update to GNU gettext 0.18.1.
8870         * modules/gettext (configure.ac): Require gettext infrastructure from
8871         version 0.18.1.
8872
8873 2010-06-03  Bruno Haible  <bruno@clisp.org>
8874
8875         Don't use AC_LIBOBJ with file names in subdirectories.
8876         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
8877         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
8878         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
8879         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
8880         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
8881         gl_LIBUNISTRING_LIBSOURCE.
8882         (Makefile.am): Augment lib_SOURCES here, conditionally.
8883         * NEWS: Drop requirement for Automake option 'subdir-objects'.
8884
8885 2010-06-03  Bruno Haible  <bruno@clisp.org>
8886
8887         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
8888         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
8889         expansion does not end with a newline.
8890         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
8891         unnecessary newline.
8892
8893 2010-06-03  Bruno Haible  <bruno@clisp.org>
8894
8895         Reduce dependencies.
8896         * tests/test-quotearg.h: New file, extracted from
8897         tests/test-quotearg.c.
8898         * tests/test-quotearg-simple.c: New file, extracted from
8899         tests/test-quotearg.c.
8900         * tests/test-quotearg.c: Don't include <ctype.h>.
8901         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
8902         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
8903         use_quote_double_quotes, use_quotearg_colon): Moved to
8904         tests/test-quotearg.h.
8905         (results_g, flag_results, custom_quotes, custom_results): Moved
8906         to tests/test-quotearg-simple.c.
8907         (main): Moved the part that does not depend on gettext to
8908         tests/test-quotearg-simple.c. Return 77 if the test cannot be
8909         performed.
8910         * modules/quotearg-simple: New file.
8911         * modules/quotearg-simple-tests: New file.
8912         * modules/quotearg (Depends-on): Add quotearg-simple.
8913         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
8914         (Files): Add tests/test-quotearg.h.
8915         Reported by Paolo Bonzini.
8916
8917 2010-06-03  Bruno Haible  <bruno@clisp.org>
8918
8919         Reduce dependencies.
8920         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
8921
8922 2010-06-03  Bruno Haible  <bruno@clisp.org>
8923
8924         time: Undefine more broken macros.
8925         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
8926         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
8927         Reported by Eric Blake.
8928
8929 2010-06-03  Bruno Haible  <bruno@clisp.org>
8930
8931         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
8932         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
8933         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
8934         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
8935         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
8936         Reported by Ludovic Courtès <ludo@gnu.org>.
8937
8938 2010-06-02  Eric Blake  <eblake@redhat.com>
8939
8940         time: work with mingw + pthreads-win32 library
8941         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
8942         if timespec is defined only in pthread.h.
8943         * modules/time (Makefile.am): Substitute it.
8944         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
8945         <pthread.h>, when needed.
8946         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
8947         from the library.
8948
8949 2010-05-31  Bruno Haible  <bruno@clisp.org>
8950
8951         Avoid expanding two macros in the wrong order.
8952         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
8953         gl_LIBUNISTRING if it is defined.
8954         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
8955         autoconf >= 2.64.
8956         Reported by Ludovic Courtès <ludo@gnu.org>.
8957
8958 2010-05-27  Jim Meyering  <meyering@redhat.com>
8959
8960         maint.mk: also prohibit "#undef" of always-defined symbols
8961         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
8962         Allow more than one space before the symbol name.
8963         (sc_prohibit_always-defined_macros): Use grep's -E, now that
8964         the regexp uses alternation.
8965
8966 2010-05-26  Eric Blake  <eblake@redhat.com>
8967
8968         maint.mk: avoid echo -e
8969         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
8970         Convert all uses of echo -* to printf.
8971         Reported by Matthias Bolte.
8972
8973 2010-05-25  Bruno Haible  <bruno@clisp.org>
8974
8975         Update to GNU gettext 0.18, part 2.
8976         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
8977         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
8978
8979 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8980
8981         Add missing include in test-pwrite.c.
8982         * tests/test-pwrite.c: Include string.h, for strcmp.
8983
8984 2010-05-24  Bruno Haible  <bruno@clisp.org>
8985
8986         * NEWS: Mention requirement for Automake option 'subdir-objects'.
8987
8988 2010-05-24  Bruno Haible  <bruno@clisp.org>
8989
8990         Don't use conversion with transliteration in u{8,16,32}_strcoll.
8991         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
8992         iconveh_error argument.
8993         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
8994         U_STRCONV_TO_LOCALE.
8995         * lib/unistr/u16-strcoll.c: Likewise.
8996         * lib/unistr/u32-strcoll.c: Likewise.
8997         * modules/unistr/u8-strcoll (Depends-on): Add
8998         uniconv/u8-strconv-to-enc, localcharset. Remove
8999         uniconv/u8-strconv-to-locale.
9000         (configure.ac): Bump version number.
9001         * modules/unistr/u16-strcoll (Depends-on): Add
9002         uniconv/u16-strconv-to-enc, localcharset. Remove
9003         uniconv/u16-strconv-to-locale.
9004         (configure.ac): Bump version number.
9005         * modules/unistr/u32-strcoll (Depends-on): Add
9006         uniconv/u32-strconv-to-enc, localcharset. Remove
9007         uniconv/u32-strconv-to-locale.
9008         (configure.ac): Bump version number.
9009
9010 2010-05-24  Bruno Haible  <bruno@clisp.org>
9011
9012         Avoid a test failure on NetBSD 5.0.
9013         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
9014         an iconv() bug.
9015
9016 2010-05-24  Bruno Haible  <bruno@clisp.org>
9017
9018         Adjust #include directive style.
9019         * modules/regex (Includes): Recommend to write <regex.h>.
9020
9021 2010-05-24  Bruno Haible  <bruno@clisp.org>
9022
9023         regex: Don't require alloca.
9024         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
9025         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
9026         only inside if (0).
9027
9028 2010-05-23  Jim Meyering  <meyering@redhat.com>
9029
9030         test-renameat.c: include <sys/stat.h>
9031         * tests/test-renameat.c: Include <sys/stat.h>; required for
9032         definition of S_IS* macros.
9033
9034 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
9035
9036         Update maintainer documentation for 'relocatable-prog' module.
9037         * doc/relocatable-maint.texi: Update.
9038         Comments by Bruno Haible.
9039
9040 2010-05-23  Bruno Haible  <bruno@clisp.org>
9041
9042         git-merge-changelog: Enable --split-merged-entry by default.
9043         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
9044         (usage): Don't mention this option any more.
9045         Reported by Ralf Wildenhues.
9046
9047 2010-05-23  Jim Meyering  <meyering@redhat.com>
9048
9049         test-pwrite: do not leave behind a test file named "out"
9050         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
9051         The trivial-looking use of init.sh is really necessary.
9052         It ensures that the temporary file, "out", is created in
9053         a temporary directory, and removed upon termination.
9054         * tests/test-pwrite.sh: Re-add file.
9055         * modules/pwrite-tests: Reference it.
9056
9057 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9058
9059         Fix output redirection buglet in init.sh.
9060         * tests/init.sh: Fix redirection of stderr.
9061
9062 2010-05-20  Simon Josefsson  <simon@josefsson.org>
9063
9064         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
9065
9066 2010-05-17  Simon Josefsson  <simon@josefsson.org>
9067
9068         * modules/valgrind-tests: New file.
9069         * m4/valgrind-tests.m4: New file.
9070         * doc/valgrind-tests.texi: New file.
9071         * doc/gnulib.texi (Running self-tests under valgrind): New
9072         section.
9073
9074 2010-05-19  Bruno Haible  <bruno@clisp.org>
9075
9076         Clean up dead code in recent commit.
9077         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
9078         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
9079         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
9080         Suggested by Paolo Bonzini.
9081
9082 2010-05-19  Bruno Haible  <bruno@clisp.org>
9083
9084         Avoid valgrind error reports from libunistring.
9085         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
9086         * modules/libunistring (Files): Add it.
9087         * modules/libunistring-optional (Files): Likewise.
9088
9089 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
9090             Bruno Haible  <bruno@clisp.org>
9091
9092         New module 'libunistring-optional'.
9093         * modules/libunistring-optional: New file.
9094         * m4/libunistring-base.m4: New file.
9095         * m4/libunistring-optional.m4: New file.
9096         * lib/unicase.in.h: Renamed from lib/unicase.h.
9097         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
9098         * lib/unictype.in.h: Renamed from lib/unictype.h.
9099         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
9100         * lib/uniname.in.h: Renamed from lib/uniname.h.
9101         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
9102         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
9103         * lib/unistr.in.h: Renamed from lib/unistr.h.
9104         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
9105         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
9106         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
9107         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
9108         gl_LIBUNISTRING. If the library was found, determine the installed
9109         version and set LIBUNISTRING_VERSION.
9110         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
9111         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
9112         handle a configuration option --with-included-libunistring.
9113         * modules/libunistring (Files): Add m4/absolute-header.m4.
9114         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
9115         Add m4/libunistring-base.m4.
9116         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9117         (Makefile.am): Build unicase.h from unicase.in.h.
9118         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
9119         Add m4/libunistring-base.m4.
9120         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9121         (Makefile.am): Build uniconv.h from uniconv.in.h.
9122         * modules/unictype/base (Files): Use unictype.in.h instead of
9123         unictype.h. Add m4/libunistring-base.m4.
9124         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9125         (Makefile.am): Build unictype.h from unictype.in.h.
9126         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
9127         Add m4/libunistring-base.m4.
9128         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9129         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
9130         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
9131         Add m4/libunistring-base.m4.
9132         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9133         (Makefile.am): Build uniname.h from uniname.in.h.
9134         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
9135         Add m4/libunistring-base.m4.
9136         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9137         (Makefile.am): Build uninorm.h from uninorm.in.h.
9138         * modules/unistdio/base (Files): Use unistdio.in.h instead of
9139         unistdio.h. Add m4/libunistring-base.m4.
9140         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9141         (Makefile.am): Build unistdio.h from unistdio.in.h.
9142         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
9143         Add m4/libunistring-base.m4.
9144         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9145         (Makefile.am): Build unistr.h from unistr.in.h.
9146         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
9147         Add m4/libunistring-base.m4.
9148         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9149         (Makefile.am): Build unitypes.h from unitypes.in.h.
9150         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
9151         Add m4/libunistring-base.m4.
9152         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9153         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
9154         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
9155         uniwidth.h. Add m4/libunistring-base.m4.
9156         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9157         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
9158         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
9159         instead of augmenting lib_SOURCES.
9160         * modules/unicase/empty-suffix-context: Likewise.
9161         * modules/unicase/locale-language: Likewise.
9162         * modules/unicase/tolower: Likewise.
9163         * modules/unicase/totitle: Likewise.
9164         * modules/unicase/toupper: Likewise.
9165         * modules/unicase/u8-casecmp: Likewise.
9166         * modules/unicase/u8-casecoll: Likewise.
9167         * modules/unicase/u8-casefold: Likewise.
9168         * modules/unicase/u8-casexfrm: Likewise.
9169         * modules/unicase/u8-ct-casefold: Likewise.
9170         * modules/unicase/u8-ct-tolower: Likewise.
9171         * modules/unicase/u8-ct-totitle: Likewise.
9172         * modules/unicase/u8-ct-toupper: Likewise.
9173         * modules/unicase/u8-is-cased: Likewise.
9174         * modules/unicase/u8-is-casefolded: Likewise.
9175         * modules/unicase/u8-is-lowercase: Likewise.
9176         * modules/unicase/u8-is-titlecase: Likewise.
9177         * modules/unicase/u8-is-uppercase: Likewise.
9178         * modules/unicase/u8-prefix-context: Likewise.
9179         * modules/unicase/u8-suffix-context: Likewise.
9180         * modules/unicase/u8-tolower: Likewise.
9181         * modules/unicase/u8-totitle: Likewise.
9182         * modules/unicase/u8-toupper: Likewise.
9183         * modules/unicase/u16-casecmp: Likewise.
9184         * modules/unicase/u16-casecoll: Likewise.
9185         * modules/unicase/u16-casefold: Likewise.
9186         * modules/unicase/u16-casexfrm: Likewise.
9187         * modules/unicase/u16-ct-casefold: Likewise.
9188         * modules/unicase/u16-ct-tolower: Likewise.
9189         * modules/unicase/u16-ct-totitle: Likewise.
9190         * modules/unicase/u16-ct-toupper: Likewise.
9191         * modules/unicase/u16-is-cased: Likewise.
9192         * modules/unicase/u16-is-casefolded: Likewise.
9193         * modules/unicase/u16-is-lowercase: Likewise.
9194         * modules/unicase/u16-is-titlecase: Likewise.
9195         * modules/unicase/u16-is-uppercase: Likewise.
9196         * modules/unicase/u16-prefix-context: Likewise.
9197         * modules/unicase/u16-suffix-context: Likewise.
9198         * modules/unicase/u16-tolower: Likewise.
9199         * modules/unicase/u16-totitle: Likewise.
9200         * modules/unicase/u16-toupper: Likewise.
9201         * modules/unicase/u32-casecmp: Likewise.
9202         * modules/unicase/u32-casecoll: Likewise.
9203         * modules/unicase/u32-casefold: Likewise.
9204         * modules/unicase/u32-casexfrm: Likewise.
9205         * modules/unicase/u32-ct-casefold: Likewise.
9206         * modules/unicase/u32-ct-tolower: Likewise.
9207         * modules/unicase/u32-ct-totitle: Likewise.
9208         * modules/unicase/u32-ct-toupper: Likewise.
9209         * modules/unicase/u32-is-cased: Likewise.
9210         * modules/unicase/u32-is-casefolded: Likewise.
9211         * modules/unicase/u32-is-lowercase: Likewise.
9212         * modules/unicase/u32-is-titlecase: Likewise.
9213         * modules/unicase/u32-is-uppercase: Likewise.
9214         * modules/unicase/u32-prefix-context: Likewise.
9215         * modules/unicase/u32-suffix-context: Likewise.
9216         * modules/unicase/u32-tolower: Likewise.
9217         * modules/unicase/u32-totitle: Likewise.
9218         * modules/unicase/u32-toupper: Likewise.
9219         * modules/unicase/ulc-casecmp: Likewise.
9220         * modules/unicase/ulc-casecoll: Likewise.
9221         * modules/unicase/ulc-casexfrm: Likewise.
9222         * modules/uniconv/u8-conv-from-enc: Likewise.
9223         * modules/uniconv/u8-conv-to-enc: Likewise.
9224         * modules/uniconv/u8-strconv-from-enc: Likewise.
9225         * modules/uniconv/u8-strconv-from-locale: Likewise.
9226         * modules/uniconv/u8-strconv-to-enc: Likewise.
9227         * modules/uniconv/u8-strconv-to-locale: Likewise.
9228         * modules/uniconv/u16-conv-from-enc: Likewise.
9229         * modules/uniconv/u16-conv-to-enc: Likewise.
9230         * modules/uniconv/u16-strconv-from-enc: Likewise.
9231         * modules/uniconv/u16-strconv-from-locale: Likewise.
9232         * modules/uniconv/u16-strconv-to-enc: Likewise.
9233         * modules/uniconv/u16-strconv-to-locale: Likewise.
9234         * modules/uniconv/u32-conv-from-enc: Likewise.
9235         * modules/uniconv/u32-conv-to-enc: Likewise.
9236         * modules/uniconv/u32-strconv-from-enc: Likewise.
9237         * modules/uniconv/u32-strconv-from-locale: Likewise.
9238         * modules/uniconv/u32-strconv-to-enc: Likewise.
9239         * modules/uniconv/u32-strconv-to-locale: Likewise.
9240         * modules/unictype/bidicategory-byname: Likewise.
9241         * modules/unictype/bidicategory-name: Likewise.
9242         * modules/unictype/bidicategory-of: Likewise.
9243         * modules/unictype/bidicategory-test: Likewise.
9244         * modules/unictype/block-list: Likewise.
9245         * modules/unictype/block-test: Likewise.
9246         * modules/unictype/category-C: Likewise.
9247         * modules/unictype/category-Cc: Likewise.
9248         * modules/unictype/category-Cf: Likewise.
9249         * modules/unictype/category-Cn: Likewise.
9250         * modules/unictype/category-Co: Likewise.
9251         * modules/unictype/category-Cs: Likewise.
9252         * modules/unictype/category-L: Likewise.
9253         * modules/unictype/category-Ll: Likewise.
9254         * modules/unictype/category-Lm: Likewise.
9255         * modules/unictype/category-Lo: Likewise.
9256         * modules/unictype/category-Lt: Likewise.
9257         * modules/unictype/category-Lu: Likewise.
9258         * modules/unictype/category-M: Likewise.
9259         * modules/unictype/category-Mc: Likewise.
9260         * modules/unictype/category-Me: Likewise.
9261         * modules/unictype/category-Mn: Likewise.
9262         * modules/unictype/category-N: Likewise.
9263         * modules/unictype/category-Nd: Likewise.
9264         * modules/unictype/category-Nl: Likewise.
9265         * modules/unictype/category-No: Likewise.
9266         * modules/unictype/category-P: Likewise.
9267         * modules/unictype/category-Pc: Likewise.
9268         * modules/unictype/category-Pd: Likewise.
9269         * modules/unictype/category-Pe: Likewise.
9270         * modules/unictype/category-Pf: Likewise.
9271         * modules/unictype/category-Pi: Likewise.
9272         * modules/unictype/category-Po: Likewise.
9273         * modules/unictype/category-Ps: Likewise.
9274         * modules/unictype/category-S: Likewise.
9275         * modules/unictype/category-Sc: Likewise.
9276         * modules/unictype/category-Sk: Likewise.
9277         * modules/unictype/category-Sm: Likewise.
9278         * modules/unictype/category-So: Likewise.
9279         * modules/unictype/category-Z: Likewise.
9280         * modules/unictype/category-Zl: Likewise.
9281         * modules/unictype/category-Zp: Likewise.
9282         * modules/unictype/category-Zs: Likewise.
9283         * modules/unictype/category-and: Likewise.
9284         * modules/unictype/category-and-not: Likewise.
9285         * modules/unictype/category-byname: Likewise.
9286         * modules/unictype/category-name: Likewise.
9287         * modules/unictype/category-none: Likewise.
9288         * modules/unictype/category-of: Likewise.
9289         * modules/unictype/category-or: Likewise.
9290         * modules/unictype/category-test: Likewise.
9291         * modules/unictype/combining-class: Likewise.
9292         * modules/unictype/ctype-alnum: Likewise.
9293         * modules/unictype/ctype-alpha: Likewise.
9294         * modules/unictype/ctype-blank: Likewise.
9295         * modules/unictype/ctype-cntrl: Likewise.
9296         * modules/unictype/ctype-digit: Likewise.
9297         * modules/unictype/ctype-graph: Likewise.
9298         * modules/unictype/ctype-lower: Likewise.
9299         * modules/unictype/ctype-print: Likewise.
9300         * modules/unictype/ctype-punct: Likewise.
9301         * modules/unictype/ctype-space: Likewise.
9302         * modules/unictype/ctype-upper: Likewise.
9303         * modules/unictype/ctype-xdigit: Likewise.
9304         * modules/unictype/decimal-digit: Likewise.
9305         * modules/unictype/digit: Likewise.
9306         * modules/unictype/mirror: Likewise.
9307         * modules/unictype/numeric: Likewise.
9308         * modules/unictype/property-alphabetic: Likewise.
9309         * modules/unictype/property-ascii-hex-digit: Likewise.
9310         * modules/unictype/property-bidi-arabic-digit: Likewise.
9311         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
9312         * modules/unictype/property-bidi-block-separator: Likewise.
9313         * modules/unictype/property-bidi-boundary-neutral: Likewise.
9314         * modules/unictype/property-bidi-common-separator: Likewise.
9315         * modules/unictype/property-bidi-control: Likewise.
9316         * modules/unictype/property-bidi-embedding-or-override: Likewise.
9317         * modules/unictype/property-bidi-eur-num-separator: Likewise.
9318         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
9319         * modules/unictype/property-bidi-european-digit: Likewise.
9320         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
9321         * modules/unictype/property-bidi-left-to-right: Likewise.
9322         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
9323         * modules/unictype/property-bidi-other-neutral: Likewise.
9324         * modules/unictype/property-bidi-pdf: Likewise.
9325         * modules/unictype/property-bidi-segment-separator: Likewise.
9326         * modules/unictype/property-bidi-whitespace: Likewise.
9327         * modules/unictype/property-byname: Likewise.
9328         * modules/unictype/property-combining: Likewise.
9329         * modules/unictype/property-composite: Likewise.
9330         * modules/unictype/property-currency-symbol: Likewise.
9331         * modules/unictype/property-dash: Likewise.
9332         * modules/unictype/property-decimal-digit: Likewise.
9333         * modules/unictype/property-default-ignorable-code-point: Likewise.
9334         * modules/unictype/property-deprecated: Likewise.
9335         * modules/unictype/property-diacritic: Likewise.
9336         * modules/unictype/property-extender: Likewise.
9337         * modules/unictype/property-format-control: Likewise.
9338         * modules/unictype/property-grapheme-base: Likewise.
9339         * modules/unictype/property-grapheme-extend: Likewise.
9340         * modules/unictype/property-grapheme-link: Likewise.
9341         * modules/unictype/property-hex-digit: Likewise.
9342         * modules/unictype/property-hyphen: Likewise.
9343         * modules/unictype/property-id-continue: Likewise.
9344         * modules/unictype/property-id-start: Likewise.
9345         * modules/unictype/property-ideographic: Likewise.
9346         * modules/unictype/property-ids-binary-operator: Likewise.
9347         * modules/unictype/property-ids-trinary-operator: Likewise.
9348         * modules/unictype/property-ignorable-control: Likewise.
9349         * modules/unictype/property-iso-control: Likewise.
9350         * modules/unictype/property-join-control: Likewise.
9351         * modules/unictype/property-left-of-pair: Likewise.
9352         * modules/unictype/property-line-separator: Likewise.
9353         * modules/unictype/property-logical-order-exception: Likewise.
9354         * modules/unictype/property-lowercase: Likewise.
9355         * modules/unictype/property-math: Likewise.
9356         * modules/unictype/property-non-break: Likewise.
9357         * modules/unictype/property-not-a-character: Likewise.
9358         * modules/unictype/property-numeric: Likewise.
9359         * modules/unictype/property-other-alphabetic: Likewise.
9360         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
9361         * modules/unictype/property-other-grapheme-extend: Likewise.
9362         * modules/unictype/property-other-id-continue: Likewise.
9363         * modules/unictype/property-other-id-start: Likewise.
9364         * modules/unictype/property-other-lowercase: Likewise.
9365         * modules/unictype/property-other-math: Likewise.
9366         * modules/unictype/property-other-uppercase: Likewise.
9367         * modules/unictype/property-paired-punctuation: Likewise.
9368         * modules/unictype/property-paragraph-separator: Likewise.
9369         * modules/unictype/property-pattern-syntax: Likewise.
9370         * modules/unictype/property-pattern-white-space: Likewise.
9371         * modules/unictype/property-private-use: Likewise.
9372         * modules/unictype/property-punctuation: Likewise.
9373         * modules/unictype/property-quotation-mark: Likewise.
9374         * modules/unictype/property-radical: Likewise.
9375         * modules/unictype/property-sentence-terminal: Likewise.
9376         * modules/unictype/property-soft-dotted: Likewise.
9377         * modules/unictype/property-space: Likewise.
9378         * modules/unictype/property-terminal-punctuation: Likewise.
9379         * modules/unictype/property-test: Likewise.
9380         * modules/unictype/property-titlecase: Likewise.
9381         * modules/unictype/property-unassigned-code-value: Likewise.
9382         * modules/unictype/property-unified-ideograph: Likewise.
9383         * modules/unictype/property-uppercase: Likewise.
9384         * modules/unictype/property-variation-selector: Likewise.
9385         * modules/unictype/property-white-space: Likewise.
9386         * modules/unictype/property-xid-continue: Likewise.
9387         * modules/unictype/property-xid-start: Likewise.
9388         * modules/unictype/property-zero-width: Likewise.
9389         * modules/unictype/scripts: Likewise.
9390         * modules/unictype/syntax-c-ident: Likewise.
9391         * modules/unictype/syntax-c-whitespace: Likewise.
9392         * modules/unictype/syntax-java-ident: Likewise.
9393         * modules/unictype/syntax-java-whitespace: Likewise.
9394         * modules/unilbrk/u8-possible-linebreaks: Likewise.
9395         * modules/unilbrk/u8-width-linebreaks: Likewise.
9396         * modules/unilbrk/u16-possible-linebreaks: Likewise.
9397         * modules/unilbrk/u16-width-linebreaks: Likewise.
9398         * modules/unilbrk/u32-possible-linebreaks: Likewise.
9399         * modules/unilbrk/u32-width-linebreaks: Likewise.
9400         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
9401         * modules/unilbrk/ulc-width-linebreaks: Likewise.
9402         * modules/uniname/uniname: Likewise.
9403         * modules/uninorm/canonical-decomposition: Likewise.
9404         * modules/uninorm/composition: Likewise.
9405         * modules/uninorm/decomposing-form: Likewise.
9406         * modules/uninorm/decomposition: Likewise.
9407         * modules/uninorm/filter: Likewise.
9408         * modules/uninorm/nfc: Likewise.
9409         * modules/uninorm/nfd: Likewise.
9410         * modules/uninorm/nfkc: Likewise.
9411         * modules/uninorm/nfkd: Likewise.
9412         * modules/uninorm/u8-normalize: Likewise.
9413         * modules/uninorm/u8-normcmp: Likewise.
9414         * modules/uninorm/u8-normcoll: Likewise.
9415         * modules/uninorm/u8-normxfrm: Likewise.
9416         * modules/uninorm/u16-normalize: Likewise.
9417         * modules/uninorm/u16-normcmp: Likewise.
9418         * modules/uninorm/u16-normcoll: Likewise.
9419         * modules/uninorm/u16-normxfrm: Likewise.
9420         * modules/uninorm/u32-normalize: Likewise.
9421         * modules/uninorm/u32-normcmp: Likewise.
9422         * modules/uninorm/u32-normcoll: Likewise.
9423         * modules/uninorm/u32-normxfrm: Likewise.
9424         * modules/unistdio/u8-asnprintf: Likewise.
9425         * modules/unistdio/u8-asprintf: Likewise.
9426         * modules/unistdio/u8-snprintf: Likewise.
9427         * modules/unistdio/u8-sprintf: Likewise.
9428         * modules/unistdio/u8-u8-asnprintf: Likewise.
9429         * modules/unistdio/u8-u8-asprintf: Likewise.
9430         * modules/unistdio/u8-u8-snprintf: Likewise.
9431         * modules/unistdio/u8-u8-sprintf: Likewise.
9432         * modules/unistdio/u8-u8-vasnprintf: Likewise.
9433         * modules/unistdio/u8-u8-vasprintf: Likewise.
9434         * modules/unistdio/u8-u8-vsnprintf: Likewise.
9435         * modules/unistdio/u8-u8-vsprintf: Likewise.
9436         * modules/unistdio/u8-vasnprintf: Likewise.
9437         * modules/unistdio/u8-vasprintf: Likewise.
9438         * modules/unistdio/u8-vsnprintf: Likewise.
9439         * modules/unistdio/u8-vsprintf: Likewise.
9440         * modules/unistdio/u16-asnprintf: Likewise.
9441         * modules/unistdio/u16-asprintf: Likewise.
9442         * modules/unistdio/u16-snprintf: Likewise.
9443         * modules/unistdio/u16-sprintf: Likewise.
9444         * modules/unistdio/u16-u16-asnprintf: Likewise.
9445         * modules/unistdio/u16-u16-asprintf: Likewise.
9446         * modules/unistdio/u16-u16-snprintf: Likewise.
9447         * modules/unistdio/u16-u16-sprintf: Likewise.
9448         * modules/unistdio/u16-u16-vasnprintf: Likewise.
9449         * modules/unistdio/u16-u16-vasprintf: Likewise.
9450         * modules/unistdio/u16-u16-vsnprintf: Likewise.
9451         * modules/unistdio/u16-u16-vsprintf: Likewise.
9452         * modules/unistdio/u16-vasnprintf: Likewise.
9453         * modules/unistdio/u16-vasprintf: Likewise.
9454         * modules/unistdio/u16-vsnprintf: Likewise.
9455         * modules/unistdio/u16-vsprintf: Likewise.
9456         * modules/unistdio/u32-asnprintf: Likewise.
9457         * modules/unistdio/u32-asprintf: Likewise.
9458         * modules/unistdio/u32-snprintf: Likewise.
9459         * modules/unistdio/u32-sprintf: Likewise.
9460         * modules/unistdio/u32-u32-asnprintf: Likewise.
9461         * modules/unistdio/u32-u32-asprintf: Likewise.
9462         * modules/unistdio/u32-u32-snprintf: Likewise.
9463         * modules/unistdio/u32-u32-sprintf: Likewise.
9464         * modules/unistdio/u32-u32-vasnprintf: Likewise.
9465         * modules/unistdio/u32-u32-vasprintf: Likewise.
9466         * modules/unistdio/u32-u32-vsnprintf: Likewise.
9467         * modules/unistdio/u32-u32-vsprintf: Likewise.
9468         * modules/unistdio/u32-vasnprintf: Likewise.
9469         * modules/unistdio/u32-vasprintf: Likewise.
9470         * modules/unistdio/u32-vsnprintf: Likewise.
9471         * modules/unistdio/u32-vsprintf: Likewise.
9472         * modules/unistdio/ulc-asnprintf: Likewise.
9473         * modules/unistdio/ulc-asprintf: Likewise.
9474         * modules/unistdio/ulc-fprintf: Likewise.
9475         * modules/unistdio/ulc-snprintf: Likewise.
9476         * modules/unistdio/ulc-sprintf: Likewise.
9477         * modules/unistdio/ulc-vasnprintf: Likewise.
9478         * modules/unistdio/ulc-vasprintf: Likewise.
9479         * modules/unistdio/ulc-vfprintf: Likewise.
9480         * modules/unistdio/ulc-vsnprintf: Likewise.
9481         * modules/unistdio/ulc-vsprintf: Likewise.
9482         * modules/unistr/u8-check: Likewise.
9483         * modules/unistr/u8-chr: Likewise.
9484         * modules/unistr/u8-cmp: Likewise.
9485         * modules/unistr/u8-cmp2: Likewise.
9486         * modules/unistr/u8-cpy: Likewise.
9487         * modules/unistr/u8-cpy-alloc: Likewise.
9488         * modules/unistr/u8-endswith: Likewise.
9489         * modules/unistr/u8-mblen: Likewise.
9490         * modules/unistr/u8-mbsnlen: Likewise.
9491         * modules/unistr/u8-mbtouc: Likewise.
9492         * modules/unistr/u8-mbtouc-unsafe: Likewise.
9493         * modules/unistr/u8-mbtoucr: Likewise.
9494         * modules/unistr/u8-move: Likewise.
9495         * modules/unistr/u8-next: Likewise.
9496         * modules/unistr/u8-prev: Likewise.
9497         * modules/unistr/u8-set: Likewise.
9498         * modules/unistr/u8-startswith: Likewise.
9499         * modules/unistr/u8-stpcpy: Likewise.
9500         * modules/unistr/u8-stpncpy: Likewise.
9501         * modules/unistr/u8-strcat: Likewise.
9502         * modules/unistr/u8-strchr: Likewise.
9503         * modules/unistr/u8-strcmp: Likewise.
9504         * modules/unistr/u8-strcoll: Likewise.
9505         * modules/unistr/u8-strcpy: Likewise.
9506         * modules/unistr/u8-strcspn: Likewise.
9507         * modules/unistr/u8-strdup: Likewise.
9508         * modules/unistr/u8-strlen: Likewise.
9509         * modules/unistr/u8-strmblen: Likewise.
9510         * modules/unistr/u8-strmbtouc: Likewise.
9511         * modules/unistr/u8-strncat: Likewise.
9512         * modules/unistr/u8-strncmp: Likewise.
9513         * modules/unistr/u8-strncpy: Likewise.
9514         * modules/unistr/u8-strnlen: Likewise.
9515         * modules/unistr/u8-strpbrk: Likewise.
9516         * modules/unistr/u8-strrchr: Likewise.
9517         * modules/unistr/u8-strspn: Likewise.
9518         * modules/unistr/u8-strstr: Likewise.
9519         * modules/unistr/u8-strtok: Likewise.
9520         * modules/unistr/u8-to-u16: Likewise.
9521         * modules/unistr/u8-to-u32: Likewise.
9522         * modules/unistr/u8-uctomb: Likewise.
9523         * modules/unistr/u16-check: Likewise.
9524         * modules/unistr/u16-chr: Likewise.
9525         * modules/unistr/u16-cmp: Likewise.
9526         * modules/unistr/u16-cmp2: Likewise.
9527         * modules/unistr/u16-cpy: Likewise.
9528         * modules/unistr/u16-cpy-alloc: Likewise.
9529         * modules/unistr/u16-endswith: Likewise.
9530         * modules/unistr/u16-mblen: Likewise.
9531         * modules/unistr/u16-mbsnlen: Likewise.
9532         * modules/unistr/u16-mbtouc: Likewise.
9533         * modules/unistr/u16-mbtouc-unsafe: Likewise.
9534         * modules/unistr/u16-mbtoucr: Likewise.
9535         * modules/unistr/u16-move: Likewise.
9536         * modules/unistr/u16-next: Likewise.
9537         * modules/unistr/u16-prev: Likewise.
9538         * modules/unistr/u16-set: Likewise.
9539         * modules/unistr/u16-startswith: Likewise.
9540         * modules/unistr/u16-stpcpy: Likewise.
9541         * modules/unistr/u16-stpncpy: Likewise.
9542         * modules/unistr/u16-strcat: Likewise.
9543         * modules/unistr/u16-strchr: Likewise.
9544         * modules/unistr/u16-strcmp: Likewise.
9545         * modules/unistr/u16-strcoll: Likewise.
9546         * modules/unistr/u16-strcpy: Likewise.
9547         * modules/unistr/u16-strcspn: Likewise.
9548         * modules/unistr/u16-strdup: Likewise.
9549         * modules/unistr/u16-strlen: Likewise.
9550         * modules/unistr/u16-strmblen: Likewise.
9551         * modules/unistr/u16-strmbtouc: Likewise.
9552         * modules/unistr/u16-strncat: Likewise.
9553         * modules/unistr/u16-strncmp: Likewise.
9554         * modules/unistr/u16-strncpy: Likewise.
9555         * modules/unistr/u16-strnlen: Likewise.
9556         * modules/unistr/u16-strpbrk: Likewise.
9557         * modules/unistr/u16-strrchr: Likewise.
9558         * modules/unistr/u16-strspn: Likewise.
9559         * modules/unistr/u16-strstr: Likewise.
9560         * modules/unistr/u16-strtok: Likewise.
9561         * modules/unistr/u16-to-u32: Likewise.
9562         * modules/unistr/u16-to-u8: Likewise.
9563         * modules/unistr/u16-uctomb: Likewise.
9564         * modules/unistr/u32-check: Likewise.
9565         * modules/unistr/u32-chr: Likewise.
9566         * modules/unistr/u32-cmp: Likewise.
9567         * modules/unistr/u32-cmp2: Likewise.
9568         * modules/unistr/u32-cpy: Likewise.
9569         * modules/unistr/u32-cpy-alloc: Likewise.
9570         * modules/unistr/u32-endswith: Likewise.
9571         * modules/unistr/u32-mblen: Likewise.
9572         * modules/unistr/u32-mbsnlen: Likewise.
9573         * modules/unistr/u32-mbtouc: Likewise.
9574         * modules/unistr/u32-mbtouc-unsafe: Likewise.
9575         * modules/unistr/u32-mbtoucr: Likewise.
9576         * modules/unistr/u32-move: Likewise.
9577         * modules/unistr/u32-next: Likewise.
9578         * modules/unistr/u32-prev: Likewise.
9579         * modules/unistr/u32-set: Likewise.
9580         * modules/unistr/u32-startswith: Likewise.
9581         * modules/unistr/u32-stpcpy: Likewise.
9582         * modules/unistr/u32-stpncpy: Likewise.
9583         * modules/unistr/u32-strcat: Likewise.
9584         * modules/unistr/u32-strchr: Likewise.
9585         * modules/unistr/u32-strcmp: Likewise.
9586         * modules/unistr/u32-strcoll: Likewise.
9587         * modules/unistr/u32-strcpy: Likewise.
9588         * modules/unistr/u32-strcspn: Likewise.
9589         * modules/unistr/u32-strdup: Likewise.
9590         * modules/unistr/u32-strlen: Likewise.
9591         * modules/unistr/u32-strmblen: Likewise.
9592         * modules/unistr/u32-strmbtouc: Likewise.
9593         * modules/unistr/u32-strncat: Likewise.
9594         * modules/unistr/u32-strncmp: Likewise.
9595         * modules/unistr/u32-strncpy: Likewise.
9596         * modules/unistr/u32-strnlen: Likewise.
9597         * modules/unistr/u32-strpbrk: Likewise.
9598         * modules/unistr/u32-strrchr: Likewise.
9599         * modules/unistr/u32-strspn: Likewise.
9600         * modules/unistr/u32-strstr: Likewise.
9601         * modules/unistr/u32-strtok: Likewise.
9602         * modules/unistr/u32-to-u16: Likewise.
9603         * modules/unistr/u32-to-u8: Likewise.
9604         * modules/unistr/u32-uctomb: Likewise.
9605         * modules/uniwbrk/u8-wordbreaks: Likewise.
9606         * modules/uniwbrk/u16-wordbreaks: Likewise.
9607         * modules/uniwbrk/u32-wordbreaks: Likewise.
9608         * modules/uniwbrk/ulc-wordbreaks: Likewise.
9609         * modules/uniwbrk/wordbreak-property: Likewise.
9610         * modules/uniwidth/u8-strwidth: Likewise.
9611         * modules/uniwidth/u8-width: Likewise.
9612         * modules/uniwidth/u16-strwidth: Likewise.
9613         * modules/uniwidth/u16-width: Likewise.
9614         * modules/uniwidth/u32-strwidth: Likewise.
9615         * modules/uniwidth/u32-width: Likewise.
9616         * modules/uniwidth/width: Likewise.
9617         * modules/unicase/cased-tests (Makefile.am): Link all test programs
9618         with $(LIBUNISTRING).
9619         * modules/unicase/ignorable-tests: Likewise.
9620         * modules/unicase/locale-language-tests: Likewise.
9621         * modules/unicase/tolower-tests: Likewise.
9622         * modules/unicase/totitle-tests: Likewise.
9623         * modules/unicase/toupper-tests: Likewise.
9624         * modules/unicase/u8-casecmp-tests: Likewise.
9625         * modules/unicase/u8-casecoll-tests: Likewise.
9626         * modules/unicase/u8-casefold-tests: Likewise.
9627         * modules/unicase/u8-is-cased-tests: Likewise.
9628         * modules/unicase/u8-is-casefolded-tests: Likewise.
9629         * modules/unicase/u8-is-lowercase-tests: Likewise.
9630         * modules/unicase/u8-is-titlecase-tests: Likewise.
9631         * modules/unicase/u8-is-uppercase-tests: Likewise.
9632         * modules/unicase/u8-tolower-tests: Likewise.
9633         * modules/unicase/u8-totitle-tests: Likewise.
9634         * modules/unicase/u8-toupper-tests: Likewise.
9635         * modules/unicase/u16-casecmp-tests: Likewise.
9636         * modules/unicase/u16-casecoll-tests: Likewise.
9637         * modules/unicase/u16-casefold-tests: Likewise.
9638         * modules/unicase/u16-is-cased-tests: Likewise.
9639         * modules/unicase/u16-is-casefolded-tests: Likewise.
9640         * modules/unicase/u16-is-lowercase-tests: Likewise.
9641         * modules/unicase/u16-is-titlecase-tests: Likewise.
9642         * modules/unicase/u16-is-uppercase-tests: Likewise.
9643         * modules/unicase/u16-tolower-tests: Likewise.
9644         * modules/unicase/u16-totitle-tests: Likewise.
9645         * modules/unicase/u16-toupper-tests: Likewise.
9646         * modules/unicase/u32-casecmp-tests: Likewise.
9647         * modules/unicase/u32-casecoll-tests: Likewise.
9648         * modules/unicase/u32-casefold-tests: Likewise.
9649         * modules/unicase/u32-is-cased-tests: Likewise.
9650         * modules/unicase/u32-is-casefolded-tests: Likewise.
9651         * modules/unicase/u32-is-lowercase-tests: Likewise.
9652         * modules/unicase/u32-is-titlecase-tests: Likewise.
9653         * modules/unicase/u32-is-uppercase-tests: Likewise.
9654         * modules/unicase/u32-tolower-tests: Likewise.
9655         * modules/unicase/u32-totitle-tests: Likewise.
9656         * modules/unicase/u32-toupper-tests: Likewise.
9657         * modules/unicase/ulc-casecmp-tests: Likewise.
9658         * modules/unicase/ulc-casecoll-tests: Likewise.
9659         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
9660         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
9661         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
9662         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
9663         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
9664         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
9665         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
9666         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
9667         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
9668         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
9669         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
9670         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
9671         * modules/unictype/bidicategory-byname-tests: Likewise.
9672         * modules/unictype/bidicategory-name-tests: Likewise.
9673         * modules/unictype/bidicategory-of-tests: Likewise.
9674         * modules/unictype/bidicategory-test-tests: Likewise.
9675         * modules/unictype/block-list-tests: Likewise.
9676         * modules/unictype/block-of-tests: Likewise.
9677         * modules/unictype/block-test-tests: Likewise.
9678         * modules/unictype/category-C-tests: Likewise.
9679         * modules/unictype/category-Cc-tests: Likewise.
9680         * modules/unictype/category-Cf-tests: Likewise.
9681         * modules/unictype/category-Cn-tests: Likewise.
9682         * modules/unictype/category-Co-tests: Likewise.
9683         * modules/unictype/category-Cs-tests: Likewise.
9684         * modules/unictype/category-L-tests: Likewise.
9685         * modules/unictype/category-Ll-tests: Likewise.
9686         * modules/unictype/category-Lm-tests: Likewise.
9687         * modules/unictype/category-Lo-tests: Likewise.
9688         * modules/unictype/category-Lt-tests: Likewise.
9689         * modules/unictype/category-Lu-tests: Likewise.
9690         * modules/unictype/category-M-tests: Likewise.
9691         * modules/unictype/category-Mc-tests: Likewise.
9692         * modules/unictype/category-Me-tests: Likewise.
9693         * modules/unictype/category-Mn-tests: Likewise.
9694         * modules/unictype/category-N-tests: Likewise.
9695         * modules/unictype/category-Nd-tests: Likewise.
9696         * modules/unictype/category-Nl-tests: Likewise.
9697         * modules/unictype/category-No-tests: Likewise.
9698         * modules/unictype/category-P-tests: Likewise.
9699         * modules/unictype/category-Pc-tests: Likewise.
9700         * modules/unictype/category-Pd-tests: Likewise.
9701         * modules/unictype/category-Pe-tests: Likewise.
9702         * modules/unictype/category-Pf-tests: Likewise.
9703         * modules/unictype/category-Pi-tests: Likewise.
9704         * modules/unictype/category-Po-tests: Likewise.
9705         * modules/unictype/category-Ps-tests: Likewise.
9706         * modules/unictype/category-S-tests: Likewise.
9707         * modules/unictype/category-Sc-tests: Likewise.
9708         * modules/unictype/category-Sk-tests: Likewise.
9709         * modules/unictype/category-Sm-tests: Likewise.
9710         * modules/unictype/category-So-tests: Likewise.
9711         * modules/unictype/category-Z-tests: Likewise.
9712         * modules/unictype/category-Zl-tests: Likewise.
9713         * modules/unictype/category-Zp-tests: Likewise.
9714         * modules/unictype/category-Zs-tests: Likewise.
9715         * modules/unictype/category-and-not-tests: Likewise.
9716         * modules/unictype/category-and-tests: Likewise.
9717         * modules/unictype/category-byname-tests: Likewise.
9718         * modules/unictype/category-name-tests: Likewise.
9719         * modules/unictype/category-none-tests: Likewise.
9720         * modules/unictype/category-of-tests: Likewise.
9721         * modules/unictype/category-or-tests: Likewise.
9722         * modules/unictype/category-test-withtable-tests: Likewise.
9723         * modules/unictype/combining-class-tests: Likewise.
9724         * modules/unictype/ctype-alnum-tests: Likewise.
9725         * modules/unictype/ctype-alpha-tests: Likewise.
9726         * modules/unictype/ctype-blank-tests: Likewise.
9727         * modules/unictype/ctype-cntrl-tests: Likewise.
9728         * modules/unictype/ctype-digit-tests: Likewise.
9729         * modules/unictype/ctype-graph-tests: Likewise.
9730         * modules/unictype/ctype-lower-tests: Likewise.
9731         * modules/unictype/ctype-print-tests: Likewise.
9732         * modules/unictype/ctype-punct-tests: Likewise.
9733         * modules/unictype/ctype-space-tests: Likewise.
9734         * modules/unictype/ctype-upper-tests: Likewise.
9735         * modules/unictype/ctype-xdigit-tests: Likewise.
9736         * modules/unictype/decimal-digit-tests: Likewise.
9737         * modules/unictype/digit-tests: Likewise.
9738         * modules/unictype/mirror-tests: Likewise.
9739         * modules/unictype/numeric-tests: Likewise.
9740         * modules/unictype/property-alphabetic-tests: Likewise.
9741         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
9742         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
9743         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
9744         * modules/unictype/property-bidi-block-separator-tests: Likewise.
9745         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
9746         * modules/unictype/property-bidi-common-separator-tests: Likewise.
9747         * modules/unictype/property-bidi-control-tests: Likewise.
9748         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
9749         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
9750         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
9751         * modules/unictype/property-bidi-european-digit-tests: Likewise.
9752         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
9753         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
9754         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
9755         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
9756         * modules/unictype/property-bidi-pdf-tests: Likewise.
9757         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
9758         * modules/unictype/property-bidi-whitespace-tests: Likewise.
9759         * modules/unictype/property-byname-tests: Likewise.
9760         * modules/unictype/property-combining-tests: Likewise.
9761         * modules/unictype/property-composite-tests: Likewise.
9762         * modules/unictype/property-currency-symbol-tests: Likewise.
9763         * modules/unictype/property-dash-tests: Likewise.
9764         * modules/unictype/property-decimal-digit-tests: Likewise.
9765         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
9766         * modules/unictype/property-deprecated-tests: Likewise.
9767         * modules/unictype/property-diacritic-tests: Likewise.
9768         * modules/unictype/property-extender-tests: Likewise.
9769         * modules/unictype/property-format-control-tests: Likewise.
9770         * modules/unictype/property-grapheme-base-tests: Likewise.
9771         * modules/unictype/property-grapheme-extend-tests: Likewise.
9772         * modules/unictype/property-grapheme-link-tests: Likewise.
9773         * modules/unictype/property-hex-digit-tests: Likewise.
9774         * modules/unictype/property-hyphen-tests: Likewise.
9775         * modules/unictype/property-id-continue-tests: Likewise.
9776         * modules/unictype/property-id-start-tests: Likewise.
9777         * modules/unictype/property-ideographic-tests: Likewise.
9778         * modules/unictype/property-ids-binary-operator-tests: Likewise.
9779         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
9780         * modules/unictype/property-ignorable-control-tests: Likewise.
9781         * modules/unictype/property-iso-control-tests: Likewise.
9782         * modules/unictype/property-join-control-tests: Likewise.
9783         * modules/unictype/property-left-of-pair-tests: Likewise.
9784         * modules/unictype/property-line-separator-tests: Likewise.
9785         * modules/unictype/property-logical-order-exception-tests: Likewise.
9786         * modules/unictype/property-lowercase-tests: Likewise.
9787         * modules/unictype/property-math-tests: Likewise.
9788         * modules/unictype/property-non-break-tests: Likewise.
9789         * modules/unictype/property-not-a-character-tests: Likewise.
9790         * modules/unictype/property-numeric-tests: Likewise.
9791         * modules/unictype/property-other-alphabetic-tests: Likewise.
9792         * modules/unictype/property-other-default-ignorable-code-point-tests:
9793         Likewise.
9794         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
9795         * modules/unictype/property-other-id-continue-tests: Likewise.
9796         * modules/unictype/property-other-id-start-tests: Likewise.
9797         * modules/unictype/property-other-lowercase-tests: Likewise.
9798         * modules/unictype/property-other-math-tests: Likewise.
9799         * modules/unictype/property-other-uppercase-tests: Likewise.
9800         * modules/unictype/property-paired-punctuation-tests: Likewise.
9801         * modules/unictype/property-paragraph-separator-tests: Likewise.
9802         * modules/unictype/property-pattern-syntax-tests: Likewise.
9803         * modules/unictype/property-pattern-white-space-tests: Likewise.
9804         * modules/unictype/property-private-use-tests: Likewise.
9805         * modules/unictype/property-punctuation-tests: Likewise.
9806         * modules/unictype/property-quotation-mark-tests: Likewise.
9807         * modules/unictype/property-radical-tests: Likewise.
9808         * modules/unictype/property-sentence-terminal-tests: Likewise.
9809         * modules/unictype/property-soft-dotted-tests: Likewise.
9810         * modules/unictype/property-space-tests: Likewise.
9811         * modules/unictype/property-terminal-punctuation-tests: Likewise.
9812         * modules/unictype/property-test-tests: Likewise.
9813         * modules/unictype/property-titlecase-tests: Likewise.
9814         * modules/unictype/property-unassigned-code-value-tests: Likewise.
9815         * modules/unictype/property-unified-ideograph-tests: Likewise.
9816         * modules/unictype/property-uppercase-tests: Likewise.
9817         * modules/unictype/property-variation-selector-tests: Likewise.
9818         * modules/unictype/property-white-space-tests: Likewise.
9819         * modules/unictype/property-xid-continue-tests: Likewise.
9820         * modules/unictype/property-xid-start-tests: Likewise.
9821         * modules/unictype/property-zero-width-tests: Likewise.
9822         * modules/unictype/scripts-tests: Likewise.
9823         * modules/unictype/syntax-c-ident-tests: Likewise.
9824         * modules/unictype/syntax-c-whitespace-tests: Likewise.
9825         * modules/unictype/syntax-java-ident-tests: Likewise.
9826         * modules/unictype/syntax-java-whitespace-tests: Likewise.
9827         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
9828         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
9829         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
9830         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
9831         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
9832         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
9833         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
9834         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
9835         * modules/uniname/uniname-tests: Likewise.
9836         * modules/uninorm/canonical-decomposition-tests: Likewise.
9837         * modules/uninorm/compat-decomposition-tests: Likewise.
9838         * modules/uninorm/composition-tests: Likewise.
9839         * modules/uninorm/decomposing-form-tests: Likewise.
9840         * modules/uninorm/decomposition-tests: Likewise.
9841         * modules/uninorm/filter-tests: Likewise.
9842         * modules/uninorm/nfc-tests: Likewise.
9843         * modules/uninorm/nfd-tests: Likewise.
9844         * modules/uninorm/nfkc-tests: Likewise.
9845         * modules/uninorm/nfkd-tests: Likewise.
9846         * modules/uninorm/u8-normcmp-tests: Likewise.
9847         * modules/uninorm/u8-normcoll-tests: Likewise.
9848         * modules/uninorm/u16-normcmp-tests: Likewise.
9849         * modules/uninorm/u16-normcoll-tests: Likewise.
9850         * modules/uninorm/u32-normcmp-tests: Likewise.
9851         * modules/uninorm/u32-normcoll-tests: Likewise.
9852         * modules/unistdio/u8-asnprintf-tests: Likewise.
9853         * modules/unistdio/u8-vasnprintf-tests: Likewise.
9854         * modules/unistdio/u8-vasprintf-tests: Likewise.
9855         * modules/unistdio/u8-vsnprintf-tests: Likewise.
9856         * modules/unistdio/u8-vsprintf-tests: Likewise.
9857         * modules/unistdio/u16-asnprintf-tests: Likewise.
9858         * modules/unistdio/u16-vasnprintf-tests: Likewise.
9859         * modules/unistdio/u16-vasprintf-tests: Likewise.
9860         * modules/unistdio/u16-vsnprintf-tests: Likewise.
9861         * modules/unistdio/u16-vsprintf-tests: Likewise.
9862         * modules/unistdio/u32-asnprintf-tests: Likewise.
9863         * modules/unistdio/u32-vasnprintf-tests: Likewise.
9864         * modules/unistdio/u32-vasprintf-tests: Likewise.
9865         * modules/unistdio/u32-vsnprintf-tests: Likewise.
9866         * modules/unistdio/u32-vsprintf-tests: Likewise.
9867         * modules/unistdio/ulc-asnprintf-tests: Likewise.
9868         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
9869         * modules/unistdio/ulc-vasprintf-tests: Likewise.
9870         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
9871         * modules/unistdio/ulc-vsprintf-tests: Likewise.
9872         * modules/unistr/u8-check-tests: Likewise.
9873         * modules/unistr/u8-chr-tests: Likewise.
9874         * modules/unistr/u8-cmp-tests: Likewise.
9875         * modules/unistr/u8-cmp2-tests: Likewise.
9876         * modules/unistr/u8-cpy-alloc-tests: Likewise.
9877         * modules/unistr/u8-cpy-tests: Likewise.
9878         * modules/unistr/u8-mblen-tests: Likewise.
9879         * modules/unistr/u8-mbsnlen-tests: Likewise.
9880         * modules/unistr/u8-mbtouc-tests: Likewise.
9881         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
9882         * modules/unistr/u8-mbtoucr-tests: Likewise.
9883         * modules/unistr/u8-move-tests: Likewise.
9884         * modules/unistr/u8-next-tests: Likewise.
9885         * modules/unistr/u8-prev-tests: Likewise.
9886         * modules/unistr/u8-set-tests: Likewise.
9887         * modules/unistr/u8-stpcpy-tests: Likewise.
9888         * modules/unistr/u8-stpncpy-tests: Likewise.
9889         * modules/unistr/u8-strcat-tests: Likewise.
9890         * modules/unistr/u8-strcmp-tests: Likewise.
9891         * modules/unistr/u8-strcoll-tests: Likewise.
9892         * modules/unistr/u8-strcpy-tests: Likewise.
9893         * modules/unistr/u8-strdup-tests: Likewise.
9894         * modules/unistr/u8-strlen-tests: Likewise.
9895         * modules/unistr/u8-strmblen-tests: Likewise.
9896         * modules/unistr/u8-strmbtouc-tests: Likewise.
9897         * modules/unistr/u8-strncat-tests: Likewise.
9898         * modules/unistr/u8-strncmp-tests: Likewise.
9899         * modules/unistr/u8-strncpy-tests: Likewise.
9900         * modules/unistr/u8-strnlen-tests: Likewise.
9901         * modules/unistr/u8-to-u16-tests: Likewise.
9902         * modules/unistr/u8-to-u32-tests: Likewise.
9903         * modules/unistr/u8-uctomb-tests: Likewise.
9904         * modules/unistr/u16-check-tests: Likewise.
9905         * modules/unistr/u16-chr-tests: Likewise.
9906         * modules/unistr/u16-cmp-tests: Likewise.
9907         * modules/unistr/u16-cmp2-tests: Likewise.
9908         * modules/unistr/u16-cpy-alloc-tests: Likewise.
9909         * modules/unistr/u16-cpy-tests: Likewise.
9910         * modules/unistr/u16-mblen-tests: Likewise.
9911         * modules/unistr/u16-mbsnlen-tests: Likewise.
9912         * modules/unistr/u16-mbtouc-tests: Likewise.
9913         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
9914         * modules/unistr/u16-mbtoucr-tests: Likewise.
9915         * modules/unistr/u16-move-tests: Likewise.
9916         * modules/unistr/u16-next-tests: Likewise.
9917         * modules/unistr/u16-prev-tests: Likewise.
9918         * modules/unistr/u16-set-tests: Likewise.
9919         * modules/unistr/u16-stpcpy-tests: Likewise.
9920         * modules/unistr/u16-stpncpy-tests: Likewise.
9921         * modules/unistr/u16-strcat-tests: Likewise.
9922         * modules/unistr/u16-strcmp-tests: Likewise.
9923         * modules/unistr/u16-strcoll-tests: Likewise.
9924         * modules/unistr/u16-strcpy-tests: Likewise.
9925         * modules/unistr/u16-strdup-tests: Likewise.
9926         * modules/unistr/u16-strlen-tests: Likewise.
9927         * modules/unistr/u16-strmblen-tests: Likewise.
9928         * modules/unistr/u16-strmbtouc-tests: Likewise.
9929         * modules/unistr/u16-strncat-tests: Likewise.
9930         * modules/unistr/u16-strncmp-tests: Likewise.
9931         * modules/unistr/u16-strncpy-tests: Likewise.
9932         * modules/unistr/u16-strnlen-tests: Likewise.
9933         * modules/unistr/u16-to-u32-tests: Likewise.
9934         * modules/unistr/u16-to-u8-tests: Likewise.
9935         * modules/unistr/u16-uctomb-tests: Likewise.
9936         * modules/unistr/u32-check-tests: Likewise.
9937         * modules/unistr/u32-chr-tests: Likewise.
9938         * modules/unistr/u32-cmp-tests: Likewise.
9939         * modules/unistr/u32-cmp2-tests: Likewise.
9940         * modules/unistr/u32-cpy-alloc-tests: Likewise.
9941         * modules/unistr/u32-cpy-tests: Likewise.
9942         * modules/unistr/u32-mblen-tests: Likewise.
9943         * modules/unistr/u32-mbsnlen-tests: Likewise.
9944         * modules/unistr/u32-mbtouc-tests: Likewise.
9945         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
9946         * modules/unistr/u32-mbtoucr-tests: Likewise.
9947         * modules/unistr/u32-move-tests: Likewise.
9948         * modules/unistr/u32-next-tests: Likewise.
9949         * modules/unistr/u32-prev-tests: Likewise.
9950         * modules/unistr/u32-set-tests: Likewise.
9951         * modules/unistr/u32-stpcpy-tests: Likewise.
9952         * modules/unistr/u32-stpncpy-tests: Likewise.
9953         * modules/unistr/u32-strcat-tests: Likewise.
9954         * modules/unistr/u32-strcmp-tests: Likewise.
9955         * modules/unistr/u32-strcoll-tests: Likewise.
9956         * modules/unistr/u32-strcpy-tests: Likewise.
9957         * modules/unistr/u32-strdup-tests: Likewise.
9958         * modules/unistr/u32-strlen-tests: Likewise.
9959         * modules/unistr/u32-strmblen-tests: Likewise.
9960         * modules/unistr/u32-strmbtouc-tests: Likewise.
9961         * modules/unistr/u32-strncat-tests: Likewise.
9962         * modules/unistr/u32-strncmp-tests: Likewise.
9963         * modules/unistr/u32-strncpy-tests: Likewise.
9964         * modules/unistr/u32-strnlen-tests: Likewise.
9965         * modules/unistr/u32-to-u16-tests: Likewise.
9966         * modules/unistr/u32-to-u8-tests: Likewise.
9967         * modules/unistr/u32-uctomb-tests: Likewise.
9968         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
9969         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
9970         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
9971         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
9972         * modules/uniwidth/u8-strwidth-tests: Likewise.
9973         * modules/uniwidth/u8-width-tests: Likewise.
9974         * modules/uniwidth/u16-strwidth-tests: Likewise.
9975         * modules/uniwidth/u16-width-tests: Likewise.
9976         * modules/uniwidth/u32-strwidth-tests: Likewise.
9977         * modules/uniwidth/u32-width-tests: Likewise.
9978         * modules/uniwidth/width-tests: Likewise.
9979
9980 2010-05-18  Richard Jones  <rjones@redhat.com>
9981
9982         doc: users.txt: list hivex
9983         * users.txt: Add hivex.
9984
9985 2010-05-18  Richard Jones  <rjones@redhat.com>
9986
9987         doc: users.txt: list febootstrap
9988         * users.txt: Add febootstrap.
9989
9990 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
9991
9992         bootstrap: fix an error when gnulib is not used as a git submodule
9993         * build-aux/bootstrap (gnulib_path): If its length is zero then
9994         assign "gnulib" to it.
9995         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
9996
9997 2010-05-16  Bruno Haible  <bruno@clisp.org>
9998
9999         Avoid autoconf warnings about AM_ICONV.
10000         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
10001         2.64.
10002
10003 2010-05-16  Bruno Haible  <bruno@clisp.org>
10004
10005         absolute-header: Make the macro usable in more situations.
10006         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
10007         from gl_ABSOLUTE_HEADER.
10008         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
10009
10010 2010-05-16  James Youngman  <jay@gnu.org>
10011
10012         doc: update users.txt
10013         * users.txt: Add CSSC.
10014
10015 2010-05-16  Jim Meyering  <meyering@redhat.com>
10016
10017         init.sh: fix an error in the previous change; add more comments
10018         * tests/init.sh: Compare exit code in loop against 9, not 2.
10019         Patch by Bruno Haible.
10020         Make the two tests more similar by adding an empty "then" clause.
10021         Add comments.
10022
10023         init.sh: avoid unnecessary shell re-exec
10024         * tests/init.sh: Improve the re-exec-required check to first test the
10025         current shell.  If it passes the test, do not search for a shell that
10026         does pass, and do not re-exec.  This test is particularly contorted to
10027         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
10028         of $(...) evokes a syntax error and causes immediate shell exit with
10029         status 2.  Bruno Haible reported that the re-exec made it impossible
10030         to single-step through any init.sh-using script.
10031
10032 2010-05-16  Bruno Haible  <bruno@clisp.org>
10033
10034         Fix collision between gnulib's and libintl's printf replacements.
10035         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
10036         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
10037         (printf): When using GNU C, map the __printf__ function to rpl_printf
10038         via __asm__. When not using GNU C, define rpl_printf instead of
10039         __printf__.
10040         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
10041         commit.
10042         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
10043         commit.
10044         * m4/asm-underscore.m4: New file.
10045         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
10046         * modules/stdio (Files): Add m4/asm-underscore.m4.
10047         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
10048         Reported by Ben Pfaff.
10049
10050 2010-05-16  Bruno Haible  <bruno@clisp.org>
10051
10052         verify: Avoid skipping the test on openSUSE 11.0.
10053         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
10054
10055 2010-05-13  Bruno Haible  <bruno@clisp.org>
10056
10057         Avoid useless warnings from G++.
10058         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
10059         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
10060         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10061
10062 2010-05-11  Jim Meyering  <meyering@redhat.com>
10063
10064         maint.mk: tweak preceding change
10065         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
10066         regexps tighter by anchoring at EOL, and make the new group "shy"
10067         for slightly decreased overhead.
10068
10069 2010-05-11  Eric Blake  <eblake@redhat.com>
10070
10071         maint.mk: gnulib doesn't guarantee NSIG
10072         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
10073
10074 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
10075
10076         test-pwrite.c: Remove unused variable declaration.
10077         * tests/test-pwrite.c (main): Remove read_buf declaration.
10078
10079         Remove useless test-pwrite.sh file.
10080         * tests/test-pwrite.sh: Delete file.
10081         * modules/pwrite-tests: Remove references.
10082         Reported by Bruno Haible.
10083
10084 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
10085
10086         init.sh: fix a typo
10087         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
10088
10089 2010-05-10  Jim Meyering  <meyering@redhat.com>
10090
10091         maint.mk: avoid using a temporary file in the always-defined-macros check
10092         * top/maint.mk (.re-defmac): Remove rule.
10093         (gl_trap_): Remove definition.
10094         (sc_prohibit_always-defined_macros): Rewrite not to create and
10095         depend on a temporary file.  Instead, depend on GNU grep's ability
10096         to read a list of regular expressions from stdin when given "-f -".
10097
10098 2010-05-09  Bruno Haible  <bruno@clisp.org>
10099
10100         Update to GNU gettext 0.18, part 1.
10101         * m4/gettext.m4: Update to GNU gettext 0.18.
10102         * m4/intl.m4: Likewise.
10103         * m4/po.m4: Likewise.
10104         * modules/gettext (Files): Add m4/fcntl-o.m4.
10105         (configure.ac): Require gettext infrastructure from version 0.18.
10106
10107 2010-05-09  Jim Meyering  <meyering@redhat.com>
10108
10109         init.sh: enable MALLOC_PERTURB_
10110         * tests/init.sh: Enable glibc's malloc-perturbing option.
10111
10112         maint.mk: improve sc_cross_check_PATH_usage_in_tests
10113         With my recent change in init.sh from the two-line form:
10114             -#   : ${srcdir=.}
10115             -#   . "$srcdir/init.sh"; path_prepend_ .
10116             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
10117         I noticed that using the one-line form would cause this test
10118         to fail with a false-positive, or to stop working altogether,
10119         depending on whether help-version changed or all the tests did.
10120         * top/maint.mk (_hv_regex): Remove this definition.
10121         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
10122         (_hv_regex_strong): Use a stronger regex to check for conformance.
10123         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
10124         Give a separate diagnostic for lack of conforming use.
10125
10126         maint.mk: prohibit definition of symbols defined by gnulib
10127         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
10128         definition of symbols defined by gnulib.
10129
10130 2010-05-09  Bruno Haible  <bruno@clisp.org>
10131
10132         acl: Avoid test failure on Cygwin-hosted mingw.
10133         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
10134
10135 2010-05-09  Bruno Haible  <bruno@clisp.org>
10136
10137         error: Use system's fcntl function.
10138         * lib/error.c (fcntl): Undefine.
10139
10140 2010-05-09  Jim Meyering  <meyering@redhat.com>
10141
10142         verify: adjust formatting to be more consistent
10143         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
10144         argument-list '('s, and after one comma.
10145
10146 2010-05-09  Bruno Haible  <bruno@clisp.org>
10147
10148         error: More reliable output on mingw.
10149         * lib/error.c: Include <windows.h>.
10150         (is_open): New function.
10151         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
10152         defined.
10153
10154 2010-05-09  Bruno Haible  <bruno@clisp.org>
10155
10156         vasnprintf: Fix syntax errors in libintl build on mingw.
10157         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
10158         pad_ourselves and prec_ourselves after use.
10159
10160 2010-05-08  Bruno Haible  <bruno@clisp.org>
10161
10162         * lib/config.charset: Update comments for Cygwin 1.7.
10163         * lib/localcharset.c: Likewise.
10164
10165 2010-05-07  Jim Meyering  <meyering@redhat.com>
10166
10167         init.sh: improve comments
10168         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
10169         . "${srcdir=.}/init.sh"; path_prepend_ .
10170         Add a note about path_prepend_ and the alternative of using
10171         TESTS_ENVIRONMENT.
10172
10173 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
10174
10175         exclude: Unescape hashed patterns in wildcard mode.
10176         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
10177         to the hash list.
10178         * tests/test-exclude8.sh: New test case.
10179         * modules/exclude-tests: Add new test.
10180
10181 2010-05-05  Eric Blake  <eblake@redhat.com>
10182
10183         verify: automate tests
10184         * modules/verify-tests: New module.
10185         * tests/test-verify.sh: New file.
10186         * tests/test-verify.c: Guard each negative test with a unique id.
10187         Also avoid warning about unused left hand of comma expressions.
10188
10189 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10190
10191         Further improvements to verify.h, suggested by Eric Blake.
10192         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
10193         the GL_* versions, to avoid collision with OpenGL.
10194         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
10195         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
10196         than testing merely whether it's defined.
10197
10198         Modify verify.h to pacify gcc -Wredundant_decls.
10199         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
10200         These use the prefix "GL_" since they're likely to be useful elsewhere.
10201         We may need to break them out into a different .h file.
10202         (__COUNTER__): Define to 0 if the compiler doesn't support it.
10203         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
10204         of verify_function__.
10205
10206 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
10207
10208         Tests for module pwrite.
10209         * modules/pwrite-tests: New file.
10210         * tests/test-pwrite.sh: New file.
10211         * tests/test-pwrite.c: New file.
10212
10213         New module pwrite.
10214         * lib/unistd.in.h (pwrite): New declaration.
10215         * lib/pwrite.c: New file, from glibc with modifications.
10216         * m4/pwrite.m4: New file.
10217         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
10218         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
10219         REPLACE_PWRITE.
10220         * modules/pwrite: New file.
10221         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
10222         REPLACE_PWRITE.
10223         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
10224         * doc/posix-functions/pwrite.texi: Mention the new module.
10225
10226 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
10227
10228         pread: Update documentation.
10229         * doc/posix-functions/pread.texi: Mention the 'pread' module.
10230
10231 2010-05-04  Eric Blake  <eblake@redhat.com>
10232
10233         docs: update cygwin progress
10234         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
10235         this bug.
10236         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
10237         Added in cygwin 1.7.2.
10238         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
10239         Likewise.
10240         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
10241         Likewise.
10242         * doc/glibc-functions/dup3.texi (dup3): Likewise.
10243         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
10244         * doc/glibc-functions/accept4.texi (accept4): Likewise.
10245         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
10246         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
10247         Mention nproc module.
10248         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
10249         bug in cygwin 1.7.5 addition.
10250         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
10251         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
10252         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
10253         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
10254         1.7.5.
10255         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
10256         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
10257         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
10258         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
10259         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
10260         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
10261         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
10262         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
10263         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
10264         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
10265         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
10266         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
10267         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
10268         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
10269         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
10270         Likewise.
10271         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
10272         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
10273         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
10274         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
10275         Likewise.
10276         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
10277         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
10278         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
10279         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
10280         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
10281         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
10282         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
10283         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
10284         Likewise.
10285         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
10286         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
10287         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
10288         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
10289         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
10290         Likewise.
10291         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
10292         Likewise.
10293         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
10294         Likewise.
10295         * doc/glibc-functions/xdrrec_endofrecord.texi
10296         (xdrrec_endofrecord): Likewise.
10297         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
10298         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
10299         Likewise.
10300         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
10301         Likewise.
10302
10303 2010-05-04  Jim Meyering  <meyering@redhat.com>
10304
10305         gendocs.sh: make its "-s FILE" option more useful
10306         * build-aux/gendocs.sh: When honoring the -s FILE option, update
10307         $PACKAGE to reflect the probably-different basename of "FILE".
10308
10309 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
10310
10311         bootstrap: don't ignore download_po_files failure
10312         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
10313         failure.
10314
10315 2010-05-03  Jim Meyering  <meyering@redhat.com>
10316
10317         maint.mk: allow to pass options to gendocs.sh
10318         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
10319         (gendocs_options_): New overridable variable.
10320
10321         gnu-web-doc-update: don't ignore configure or build failure
10322         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
10323
10324         announce-gen: backslash-escape '@'s in --help output
10325         * build-aux/announce-gen: Fix syntax errors.
10326
10327         maint.mk, announce-gen: allow project-specific announcement mail headers
10328         * top/maint.mk (translation_project_): Define default.
10329         (announcement_Cc_, announcement_mail_headers_): Likewise.
10330         (announcement): Invoke announce-gen with new --mail-headers option.
10331         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
10332
10333         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
10334         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
10335         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
10336         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
10337         line in the "err2" output file when running "make check" in verbose
10338         mode (i.e., with set -x enabled).
10339
10340 2010-05-03  Bruno Haible  <bruno@clisp.org>
10341
10342         wctob: Fix for weird platforms.
10343         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
10344         argument value.
10345
10346 2010-05-03  Jim Meyering  <meyering@redhat.com>
10347
10348         maint.mk: prohibit unwarranted use of <strings.h>
10349         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
10350         strings.h in a file that does not also use strcasecmp, strncasecmp,
10351         ffs or ffsll.
10352
10353         maint.mk: remove obsolete comments
10354         * top/maint.mk: Remove stale, commented-out rules.
10355
10356 2010-05-02  Bruno Haible  <bruno@clisp.org>
10357
10358         wcwidth: Declare also when it's aliased.
10359         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
10360         macro.
10361
10362 2010-05-02  Bruno Haible  <bruno@clisp.org>
10363
10364         Fix regression from 2010-04-25.
10365         * gnulib-tool (func_modules_transitive_closure): Check the status of
10366         all modules, not only of the tests that are of the form foo-tests where
10367         foo is a module.
10368
10369 2010-05-02  Bruno Haible  <bruno@clisp.org>
10370
10371         wctob: Work around nasty Cygwin 1.7.2 bug.
10372         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
10373         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
10374
10375 2010-05-01  Bruno Haible  <bruno@clisp.org>
10376
10377         fpurge: Sharper test.
10378         * tests/test-fpurge.c (main): Add one more ftell check.
10379         * modules/fpurge-tests (Depends-on): Add ftell.
10380         Suggested by Eric Blake.
10381
10382 2010-05-01  Bruno Haible  <bruno@clisp.org>
10383
10384         ftello: Another test.
10385         * tests/test-ftello3.c: New file.
10386         * modules/ftello-tests (Files): Add it.
10387         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
10388         MOSTLYCLEANFILES.
10389
10390         ftell: Another test.
10391         * tests/test-ftell3.c: New file.
10392         * modules/ftell-tests (Files): Add it.
10393         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
10394         MOSTLYCLEANFILES.
10395
10396 2010-05-01  Bruno Haible  <bruno@clisp.org>
10397
10398         ftell, ftello: Work around Solaris bug.
10399         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
10400         * lib/ftello.c: Include stdio-impl.h.
10401         (ftello): On Solaris, when _IOWRT is set, compute the result without
10402         looking at _IOREAD.
10403         * modules/ftello (Files): Add lib/stdio-impl.h.
10404         * doc/posix-functions/ftell.texi: Mention Solaris bug.
10405         * doc/posix-functions/ftello.texi: Likewise.
10406         Reported by Eric Blake.
10407
10408 2010-05-01  Bruno Haible  <bruno@clisp.org>
10409
10410         freading: Adapt to special meaning of _IOREAD flag on Solaris.
10411         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
10412         the _IOWRT flag is also set.
10413
10414 2010-05-01  Bruno Haible  <bruno@clisp.org>
10415
10416         Fix doc about a HP-UX stdio bug.
10417         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
10418         * doc/posix-functions/ftello.texi: Likewise.
10419
10420 2010-05-01  Bruno Haible  <bruno@clisp.org>
10421
10422         lseek test: Fix failure on Solaris.
10423         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
10424         output.
10425
10426 2010-04-30  Jim Meyering  <meyering@redhat.com>
10427
10428         bootstrap: don't ignore failure to generate po*/Makevars
10429         * build-aux/bootstrap (with_gettext): Don't ignore failure
10430         to create po/Makevars or runtime-po/Makevars.
10431
10432 2010-04-29  Eric Blake  <eblake@redhat.com>
10433
10434         headers: relax license to LGPLv2+
10435         * modules/fcntl-h (License): Relax license.
10436         * modules/getopt-posix (License): Likewise.
10437         * modules/locale (License): Likewise.
10438         * modules/math (License): Likewise.
10439         * modules/pty (License): Likewise.
10440         * modules/sched (License): Likewise.
10441         * modules/search (License): Likewise.
10442         * modules/spawn (License): Likewise.
10443         * modules/stdarg (License): Likewise.
10444         * modules/sysexits (License): Likewise.
10445
10446 2010-04-29  Jim Meyering  <meyering@redhat.com>
10447
10448         inttypes: relax license to LGPLv2+
10449         * modules/inttypes (License): Relax license.
10450
10451 2010-04-29  Simon Josefsson  <simon@josefsson.org>
10452
10453         * top/maint.mk (indent): Run twice to produce idempotent results.
10454
10455 2010-04-28  Bruno Haible  <bruno@clisp.org>
10456
10457         getdate: Generate getdate.c in the source directory.
10458         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
10459         MOSTLYCLEANFILES.
10460         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
10461
10462 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
10463
10464         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
10465         is not declared as a const *; avoid warnings in that case.
10466
10467 2010-04-28  Eric Blake  <eblake@redhat.com>
10468
10469         canonicalize-lgpl: avoid compiler warning
10470         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
10471         declaration' / 'extraneous semicolon' warning with some compilers.
10472         Reported by Andreas Gruenbacher.
10473
10474 2010-04-28  Jim Meyering  <meyering@redhat.com>
10475
10476         init.sh: ensure a more reliable exit status when exiting via trap
10477         * tests/init.sh (setup_): Don't rely on $? in signal handler.
10478         Inspired by patches from Dmitry V. Levin.
10479         Also trap on signal 3 (SIGQUIT).
10480
10481 2010-04-27  Bruno Haible  <bruno@clisp.org>
10482
10483         Update doc about utimes().
10484         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
10485         'utimens' module.
10486         Reported by Andreas Gruenbacher <agruen@suse.de>.
10487
10488 2010-04-27  Eric Blake  <eblake@redhat.com>
10489
10490         full-read, full-write: relax license
10491         * modules/full-read (License): Drop to LGPLv2+.
10492         * modules/full-write (License): Likewise.
10493         * modules/safe-read (License): Likewise.
10494         * modules/safe-write (License): Likewise.
10495
10496         pthread: mention library for linking
10497         * modules/pthread (Link): Mention $(LIB_PTHREAD).
10498
10499 2010-04-27  Jim Meyering  <meyering@redhat.com>
10500
10501         maint.mk: fix a bug introduced in last change
10502         * top/maint.mk (gl_assured_headers_): Now that all names are on
10503         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
10504         is not anchored to end of word, it should be adequate.
10505
10506         maint.mk: avoid side-effect in latest syntax-check
10507         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
10508         to run commands via $(shell...), and hence to incur cost only when
10509         the new rule is actually run.
10510
10511         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
10512         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
10513         and use that to create a regexp used to detect all #if HAVE_..._H uses.
10514         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
10515         (gl_assured_headers_, az_, AZ_): Define.
10516         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
10517
10518 2010-04-26  Jim Meyering  <jim@meyering.net>
10519             Bruno Haible  <bruno@clisp.org>
10520
10521         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
10522         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
10523         Prompted by an exchange with Gilles Espinasse.
10524
10525 2010-04-26  Jim Meyering  <meyering@redhat.com>
10526
10527         git-version-gen: aesthetic tweak
10528         * build-aux/git-version-gen: Use "$nl" rather than a literal,
10529         so that the command remains on a single line.
10530
10531 2010-04-26  Eric Blake  <eblake@redhat.com>
10532
10533         git-version-gen: allow use on EBCDIC hosts
10534         * build-aux/git-version-gen (dirty): Use literal rather than tying
10535         ourselves to ascii.
10536         Reported by Steve Goetze.
10537
10538 2010-04-25  Bruno Haible  <bruno@clisp.org>
10539
10540         netdb: Add support for GNULIB_POSIXCHECK.
10541         * lib/netdb.in.h: Include warn-on-use.h.
10542         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
10543         functions are used when GNULIB_POSIXCHECK is defined and the
10544         getaddrinfo module is not in use.
10545         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
10546         freeaddrinfo, gai_strerror, getnameinfo are declared.
10547         * modules/netdb (Depends-on): Add warn-on-use.
10548         (Makefile.am): Include warn-on-use.h in netdb.h.
10549
10550 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
10551
10552         build: avoid "make check" failure without .git/ directory
10553         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
10554         there is no .git/ directory.
10555
10556 2010-04-25  Bruno Haible  <bruno@clisp.org>
10557
10558         ptsname: Fix misuse of ttyname_r.
10559         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
10560         of errno.
10561
10562 2010-04-25  Bruno Haible  <bruno@clisp.org>
10563
10564         ttyname_r: Make it work on Solaris 10.
10565         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
10566         if the system function has the POSIX declaration. Test whether the
10567         function fails if the buffer is less than 128 bytes large.
10568         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
10569         system's ttyname_r function. Provide a reasonably large buffer.
10570         * modules/ttyname_r (Depends-on): Add extensions.
10571         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
10572
10573 2010-04-25  Bruno Haible  <bruno@clisp.org>
10574
10575         Use the 'extensions' module for some more functions on Solaris.
10576         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
10577         module.
10578         * doc/posix-functions/ctime_r.texi: Likewise.
10579         * doc/posix-functions/getgrgid_r.texi: Likewise.
10580         * doc/posix-functions/getgrnam_r.texi: Likewise.
10581         * doc/posix-functions/getpwnam_r.texi: Likewise.
10582         * doc/posix-functions/getpwuid_r.texi: Likewise.
10583         * doc/posix-functions/readdir_r.texi: Likewise.
10584         * doc/posix-functions/sigwait.texi: Likewise.
10585         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
10586         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
10587
10588 2010-04-25  Bruno Haible  <bruno@clisp.org>
10589
10590         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
10591         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
10592         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
10593         * lib/ttyname_r.c: Include <limits.h>.
10594         (ttyname_r): Define using the system's ttyname_r function, if it exists
10595         and not on Solaris.
10596         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
10597         set.
10598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
10599         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
10600         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
10601         Reported by Simon Josefsson.
10602
10603 2010-04-25  Bruno Haible  <bruno@clisp.org>
10604
10605         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
10606         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
10607         * doc/posix-functions/ctime_r.texi: Likewise.
10608         * doc/posix-functions/getgrgid_r.texi: Likewise.
10609         * doc/posix-functions/getgrnam_r.texi: Likewise.
10610         * doc/posix-functions/getlogin_r.texi: Likewise.
10611         * doc/posix-functions/getpwnam_r.texi: Likewise.
10612         * doc/posix-functions/getpwuid_r.texi: Likewise.
10613         * doc/posix-functions/readdir_r.texi: Likewise.
10614         * doc/posix-functions/sigwait.texi: Likewise.
10615         * doc/posix-functions/ttyname_r.texi: Likewise.
10616         Reported by Simon Josefsson.
10617
10618 2010-04-25  Bruno Haible  <bruno@clisp.org>
10619
10620         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
10621         * gnulib-tool (func_usage): Document that --with-*-tests options apply
10622         also to --create-testdir.
10623         (func_acceptable): Don't consider the status of *-tests modules here.
10624         (func_modules_transitive_closure): Consider it here, before including a
10625         test module.
10626         (func_import, func_create_testdir): Set inc_all_direct_tests,
10627         inc_all_indirect_tests.
10628         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
10629         --create-testdir and --create-megatestdir.
10630
10631 2010-04-25  Bruno Haible  <bruno@clisp.org>
10632
10633         gnulib-tool: Add --without-*-tests options.
10634         * gnulib-tool (func_usage): Document the --without-*-tests options.
10635         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
10636         excl_unportable_tests): New variables.
10637         Fail if they are specified with --import or --update.
10638         (func_acceptable): Respect the excl_*_tests variables.
10639         (func_import): Set the excl_*_tests variables to empty.
10640
10641 2010-04-25  Simon Josefsson  <simon@josefsson.org>
10642             Bruno Haible  <bruno@clisp.org>
10643
10644         Work around a MacOS X 10.4 bug with openpty.
10645         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
10646         * tests/test-openpty.c (main): Close the master side explicitly.
10647
10648 2010-04-25  Bruno Haible  <bruno@clisp.org>
10649
10650         strnlen: Fix a C++ test error on MacOS X and Solaris.
10651         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
10652         the function is not declared.
10653         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
10654         Simon Josefsson.
10655
10656 2010-04-24  Bruno Haible  <bruno@clisp.org>
10657
10658         Avoid a gcc warning.
10659         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
10660         of correct type for %08lx directive.
10661         Reported by Eric Blake.
10662
10663 2010-04-24  Bruno Haible  <bruno@clisp.org>
10664
10665         vasnprintf: Correct errno value in case of out-of-memory.
10666         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
10667         or sprintf. Use the errno value from SNPRINTF or sprintf.
10668         Reported by Ian Beckwith <ianb@erislabs.net>.
10669
10670 2010-04-24  Bruno Haible  <bruno@clisp.org>
10671
10672         ansi-c++-opt: Find correct compiler when cross-compiling.
10673         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
10674         AC_CHECK_PROGS.
10675         Reported by Simon Josefsson.
10676
10677 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
10678
10679         vc-list-files: Add support for subversion
10680         * build-aux/vc-list-files: Use "svn list" to generate the list of
10681         files controlled by subversion.
10682
10683 2010-04-23  Jim Meyering  <meyering@redhat.com>
10684
10685         vc-list-files tests: convert to use init.sh
10686         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
10687         path_prepend_.
10688         Use Exit, not exit.
10689         Use skip_ rather than open coding it.
10690         Remove trap set-up and compare definitions.
10691         * tests/test-vc-list-files-git.sh: Likewise.
10692         * modules/vc-list-files-tests (Files): Add tests/init.sh.
10693
10694 2010-04-22  Simon Josefsson  <simon@josefsson.org>
10695
10696         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
10697         backup files.
10698
10699 2010-04-21  Simon Josefsson  <simon@josefsson.org>
10700
10701         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
10702
10703 2010-04-20  Eric Blake  <eblake@redhat.com>
10704
10705         tests: be robust to ignored SIGPIPE
10706         * tests/test-select-in.sh: Consume all output.
10707         * tests/test-lseek.sh: Check correct exit status, while avoiding
10708         EPIPE.
10709
10710 2010-04-20  Simon Josefsson  <simon@josefsson.org>
10711             Bruno Haible  <bruno@clisp.org>
10712
10713         visibility: Don't use -fvisibility if it leads to a warning.
10714         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
10715         yes, don't pretend that visibility works if it leads to a warning.
10716         Reported by Mike Gran <spk121@yahoo.com>.
10717
10718 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
10719
10720         * build-aux/bootstrap: Use "git -h" for testing for supported options
10721         instead of "git --help".  The short-form option only shows a summary,
10722         and doesn't layout the full man page.  Grep for the full option name
10723         in the summary, too.
10724
10725 2010-04-19  Bruno Haible  <bruno@clisp.org>
10726
10727         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
10728         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
10729         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
10730         mention of RELOCATABLE_STRIP.
10731         Reported by Sylvain Beucler <beuc@beuc.net>.
10732
10733 2010-04-19  Bruno Haible  <bruno@clisp.org>
10734
10735         * lib/diffseq.h: Fix typo in comment.
10736         Reported by Eric Blake.
10737
10738 2010-04-19  Bruno Haible  <bruno@clisp.org>
10739
10740         ioctl: Move autoconf macro to a .m4 file.
10741         * m4/ioctl.m4: New file, extracted from modules/ioctl.
10742         * modules/ioctl (Files): Add it.
10743         (configure.ac): Simply invoke gl_FUNC_IOCTL.
10744         Reported by Ian Beckwith <ianb@erislabs.net>.
10745
10746 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
10747             Bruno Haible  <bruno@clisp.org>
10748
10749         diffseq: Accommodate use-case with abstract arrays.
10750         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
10751         is not defined.
10752         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
10753         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
10754
10755 2010-04-18  Bruno Haible  <bruno@clisp.org>
10756
10757         * doc/posix-headers/stdbool.texi: More precise wording.
10758
10759 2010-04-17  Jim Meyering  <meyering@redhat.com>
10760
10761         maint.mk: use gnu-style indentation in an embedded perl script
10762         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
10763         Rename variable: s/two/last_two_bytes/
10764
10765 2010-04-16  Eric Blake  <eblake@redhat.com>
10766
10767         test-stdbool: skip test that fails with Solaris CC
10768         * tests/test-stdbool.c (f): Skip test that causes compilation
10769         error under buggy C++ compiler.
10770         * lib/stdbool.in.h: Document the limitation.
10771         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
10772
10773         setenv: allow compilation with C++
10774         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
10775         register keyword.
10776
10777         stdint: allow test to pass with C++
10778         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
10779
10780         getopt: allow compilation with C++
10781         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
10782         struct.
10783         * lib/getopt.c (_getopt_internal_r): Use correct type.
10784         Reported by Dagobert Michelson, via Joel E. Denny.
10785
10786 2010-04-16  Bruno Haible  <bruno@clisp.org>
10787
10788         Override netdb.h always.
10789         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
10790         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
10791         Reported by Ludovic Courtès <ludo@gnu.org>.
10792
10793 2010-04-15  Bruno Haible  <bruno@clisp.org>
10794
10795         openpty: Fix mistake from 2010-03-21.
10796         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
10797         Reported by Simon Josefsson.
10798
10799 2010-04-15  Eric Blake  <eblake@redhat.com>
10800
10801         test-forkpty: fix expected signature
10802         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
10803         Reported by Simon Josefsson.
10804
10805 2010-04-15  Jim Meyering  <meyering@redhat.com>
10806
10807         maint.mk: texinfo_suffix_re_: correct the default regexp
10808         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
10809
10810         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
10811         make it configurable via texinfo_suffix_re_.
10812
10813 2010-04-14  Eric Blake  <eblake@redhat.com>
10814
10815         strtok_r: relax license to LGPLv2+
10816         * modules/strtok_r (License): Relax license.
10817         Reported by Matthias Bolte.
10818
10819 2010-04-14  Simon Josefsson  <simon@josefsson.org>
10820
10821         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
10822         version 1.4.4 by default instead of requiring the libgcrypt
10823         version used during build.  This makes it possible to use the
10824         application with older but still binary compatible libgcrypt
10825         versions.
10826
10827 2010-04-13  Eric Blake  <eblake@redhat.com>
10828
10829         getopt-gnu: match recent glibc fixes and posix ruling
10830         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
10831         '+' handling, when requesting extensions.
10832         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
10833         'W;' handling.
10834         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
10835         * doc/posix-functions/getopt.texi (getopt): Document this.
10836         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
10837         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10838         Likewise.
10839
10840         getopt: merge bug fixes from glibc
10841         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
10842         diagnostics.  Honor '+:' correctly.  Reject ';'.
10843
10844         getopt-posix: detect MacOS bug
10845         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
10846         optind when missing a required argument.
10847         * doc/posix-functions/getopt.texi (getopt): Document the bug.
10848         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
10849         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10850         Likewise.
10851
10852         getopt-posix: avoid spurious failure on Solaris
10853         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
10854         an indicator that setting optind=1 is sufficient for reset.
10855
10856         getopt-posix: avoid spurious failure on FreeBSD
10857         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
10858         in POSIX mode, since the m4 test uses it.
10859
10860         gnulib-tool: silence warning on BSD sh
10861         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
10862
10863 2010-04-13  Jim Meyering  <meyering@redhat.com>
10864
10865         doc: users.txt: GNU patch now uses gnulib
10866         * users.txt: Add patch.
10867
10868 2010-04-12  Jim Meyering  <meyering@redhat.com>
10869
10870         maint.mk: generate more concise timing data for syntax-check rules
10871         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
10872         " done" from each line that reports a syntax-check test duration.
10873
10874 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
10875
10876         git-version-gen: use "git update-index..." rather than "git status"
10877         * build-aux/git-version-gen: Use git update-index --refresh, not
10878         "git status".  With some versions of git, "git status" would fail
10879         to update the index and result in an unwarranted "-dirty" suffix.
10880
10881 2010-04-11  Jim Meyering  <meyering@redhat.com>
10882
10883         openat: correct formatting (no semantic change)
10884         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
10885         Suggested by Bruno Haible.
10886
10887 2010-04-11  Bruno Haible  <bruno@clisp.org>
10888
10889         Stricter declaration checking in testdirs.
10890         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10891         If for_tests is true, augment AM_CPPFLAGS to define
10892         GNULIB_STRICT_CHECKING.
10893         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
10894         GNULIB_STRICT_CHECKING is defined, verify that the function is
10895         declared.
10896
10897 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
10898             Bruno Haible  <bruno@clisp.org>
10899
10900         libunistring: Improve configure output.
10901         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
10902         Don't say "consider installing GNU libunistring" when checking again
10903         with libiconv.
10904
10905 2010-04-11  Bruno Haible  <bruno@clisp.org>
10906
10907         libunistring: Correct value of $LTLIBUNISTRING.
10908         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
10909         correct the value of $LTLIBUNISTRING.
10910
10911 2010-04-11  Bruno Haible  <bruno@clisp.org>
10912
10913         havelib: Add static libraries to LIBS in the right order.
10914         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
10915         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
10916
10917 2010-04-11  Bruno Haible  <bruno@clisp.org>
10918
10919         libunistring: Detect libunistring also when it depends on libiconv.
10920         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
10921         the second AC_LIB_HAVE_LINKFLAGS invocation.
10922
10923 2010-04-11  James Youngman  <jay@gnu.org>
10924
10925         close-stream: declare local scalars to be "const"
10926         * lib/close-stream.c (close_stream): Make boolean variables const
10927         to document the fact that we set but do not change them.
10928
10929 2010-04-11  Bruno Haible  <bruno@clisp.org>
10930
10931         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
10932
10933 2010-04-11  Jim Meyering  <meyering@redhat.com>
10934
10935         maint.mk: don't include dist-check.mk
10936         * top/maint.mk: Remove bogus include directive.
10937
10938         maint.mk: improve empty-line-at-EOF check
10939         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
10940         solution, rather than tail+Perl-based one.  The latter would read
10941         a few kilobytes from the end of each file, and did not handle empty
10942         files properly.
10943
10944         maint.mk: print the elapsed time for each syntax-check rule
10945         * top/maint.mk (sc_m_rules_): Save start time in a file.
10946         (sc_z_rules_): New rules: remove temp file and print elapsed time.
10947         (local-check): Interpose the .z rules
10948
10949 2010-04-11  Jim Meyering  <meyering@redhat.com>
10950
10951         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
10952         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
10953         empty file with one that ends in an empty line.
10954
10955 2010-04-10  Bruno Haible  <bruno@clisp.org>
10956
10957         mkdir: Make it work on mingw64.
10958         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
10959         * lib/mkdir.c: Update comment.
10960         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
10961
10962 2010-04-10  Bruno Haible  <bruno@clisp.org>
10963
10964         Don't override improved macro from newer autoconf.
10965         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
10966         autoconf >= 2.62.
10967         Reported by Joel E. Denny <jdenny@clemson.edu>.
10968
10969 2010-04-10  Jim Meyering  <meyering@redhat.com>
10970
10971         maint.mk: new syntax-check rule: prohibit empty lines at end of file
10972         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
10973
10974         maint.mk: correct a diagnostic
10975         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
10976         in diagnostic; now use $prohibit.
10977
10978 2010-04-10  Bruno Haible  <address@hidden>
10979
10980         fchownat: Fix a C++ test error on Solaris 8.
10981         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
10982         the function does not exist.
10983
10984 2010-04-10  Bruno Haible  <bruno@clisp.org>
10985
10986         vasnprintf: Add more tests.
10987         * tests/test-vasnprintf-posix.c: Include <errno.h>.
10988         (test_function): Test converting an invalid wide string.
10989
10990         vasnprintf: Correct handling of unconvertible wide string arguments.
10991         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
10992         VASNPRINTF.
10993         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
10994         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
10995         smaller than the expected maximum need for the directive. Set errno to
10996         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
10997         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
10998         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
10999         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
11000         * modules/vasnprintf (Files): Add m4/printf.m4.
11001         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11002
11003 2010-04-10  Bruno Haible  <bruno@clisp.org>
11004
11005         vasnprintf: Fix crash in %ls directive.
11006         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
11007         string is passed as argument to %ls, with no precision and no width.
11008         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11009
11010 2010-04-10  Bruno Haible  <bruno@clisp.org>
11011
11012         vasnprintf: Fix multiple test failures on mingw.
11013         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
11014         _snprintf, or snwprintf, not _snwprintf.
11015
11016 2010-04-10  Bruno Haible  <bruno@clisp.org>
11017
11018         write: Fix a C++ test error on mingw.
11019         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
11020
11021 2010-04-10  Bruno Haible  <bruno@clisp.org>
11022
11023         vasnprintf test: Reduce code duplication.
11024         * tests/test-vasnprintf.c (test_function): New function, extracted from
11025         test_vasnprintf.
11026         (test_vasnprintf, test_asnprintf): Invoke it.
11027
11028 2010-04-10  Bruno Haible  <bruno@clisp.org>
11029
11030         strnlen: Fix warning in C++ mode on MacOS X.
11031         * lib/string.in.h (strnlen): Use the modern idiom.
11032         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
11033         defining strnlen as a macro already in <config.h>.
11034         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11035         REPLACE_STRNLEN.
11036         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
11037         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11038
11039 2010-04-08  James Youngman  <jay@gnu.org>
11040
11041         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
11042         the example.
11043
11044 2010-04-09  Jim Meyering  <meyering@redhat.com>
11045
11046         maint.mk: print better diagnostic when there is no $(_hv_file)
11047         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
11048         announce that when $(_hv_file) (aka help-version) does not exist.
11049
11050         init.sh: run tr in the "C" locale to avoid multibyte interpretation
11051         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
11052         not try to interpret its random input bytes.  Jarno Rajahalme reported
11053         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
11054         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
11055         (mktempd_): Likewise, just in case.
11056
11057         ftruncate: add two years to projected module removal date: 2012
11058         * m4/ftruncate.m4: Adjust comments.
11059
11060         ftruncate: mark module as obsolete; even MinGW provides it, now
11061         * modules/ftruncate (Status): Obsolete.
11062         (Notice): Say that.
11063         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
11064         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
11065
11066 2010-04-08  Bruno Haible  <bruno@clisp.org>
11067
11068         Fix side effects from tests-related modules.
11069         * modules/dprintf-posix (Comment): New section.
11070         * modules/fprintf-posix (Comment): Likewise.
11071         * modules/obstack-printf-posix (Comment): Likewise.
11072         * modules/printf-posix (Comment): Likewise.
11073         * modules/snprintf-posix (Comment): Likewise.
11074         * modules/sprintf-posix (Comment): Likewise.
11075         * modules/vasnprintf-posix (Comment): Likewise.
11076         * modules/vasprintf-posix (Comment): Likewise.
11077         * modules/vdprintf-posix (Comment): Likewise.
11078         * modules/vfprintf-posix (Comment): Likewise.
11079         * modules/vprintf-posix (Comment): Likewise.
11080         * modules/vsnprintf-posix (Comment): Likewise.
11081         * modules/vsprintf-posix (Comment): Likewise.
11082         * modules/xprintf-posix (Comment): Likewise.
11083         * modules/xvasprintf-posix (Comment): Likewise.
11084         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
11085         * modules/floorf-tests (Depends-on): Likewise.
11086         * modules/round-tests (Depends-on): Likewise.
11087         * modules/roundf-tests (Depends-on): Likewise.
11088         * modules/trunc-tests (Depends-on): Likewise.
11089         * modules/truncf-tests (Depends-on): Likewise.
11090         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
11091         'fprintf-posix' module is not present.
11092         * tests/test-floorf2.c (check): Likewise.
11093         * tests/test-trunc2.c (check): Likewise.
11094         * tests/test-truncf2.c (check): Likewise.
11095         * tests/test-round2.c (equal): Likewise.
11096         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11097
11098 2010-04-07  Karl Berry  <karl@gnu.org>
11099
11100         * config/srclist.txt,
11101         * config/srclistvars.sh,
11102         * config/srclist-update: doc fixes.
11103
11104 2010-04-07  Jim Meyering  <meyering@redhat.com>
11105
11106         maint.mk: add a PATH crosschecking syntax-check rule
11107         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
11108         Useful if you use a test like the one in help-version (coreutils,
11109         diffutils, grep, gzip) that ensures $(VERSION) matches what is
11110         printed by prog --version.
11111
11112 2010-04-06  Bruno Haible  <bruno@clisp.org>
11113
11114         Fix link error on mingw.
11115         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
11116         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
11117
11118 2010-04-06  Bruno Haible  <bruno@clisp.org>
11119
11120         Assume rmdir exists.
11121         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
11122
11123 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
11124
11125         doc: update users.txt
11126         * users.txt: Add gcal.
11127
11128 2010-04-06  Jim Meyering  <meyering@redhat.com>
11129
11130         init.sh: simply unset TMPDIR rather than risking env -i
11131         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
11132         although it probably works fine on all Unix-based systems, some
11133         systems (Cygwin?) cannot tolerate a totally cleared environment.
11134         Suggestion from Eric Blake.
11135
11136 2010-04-06  Jim Meyering  <meyering@redhat.com>
11137
11138         init.sh: portability fix: use env's POSIX-specified -i option not -u
11139         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
11140         than unportable env -u.  Solaris 5.11's env lacks support for -u.
11141
11142 2010-04-05  Bruno Haible  <bruno@clisp.org>
11143
11144         btowc: Work around Cygwin 1.7.2 bug.
11145         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
11146         does not map NUL to 0.
11147         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
11148
11149 2010-04-05  Bruno Haible  <bruno@clisp.org>
11150
11151         Make the multithread modules work on Cygwin 1.7.2.
11152         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
11153         imported symbols can be declared weak, so that it returns "no" on
11154         Cygwin 1.7.2.
11155
11156 2010-04-05  Bruno Haible  <bruno@clisp.org>
11157
11158         Use the module 'strncat'.
11159         * modules/unistr/u8-strncat (Depends-on): Add strncat.
11160
11161         Tests for module 'strncat'.
11162         * modules/strncat-tests: New file.
11163         * tests/test-strncat.c: New file.
11164
11165         New module 'strncat'.
11166         * lib/string.in.h (strncat): New declaration.
11167         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
11168         * m4/strncat.m4: New file, based on m4/memchr.m4.
11169         * modules/strncat: New file.
11170         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
11171         is declared.
11172         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
11173         REPLACE_STRNCAT.
11174         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
11175         REPLACE_STRNCAT.
11176         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
11177         module.
11178         * tests/test-string-c++.cc: Check signature of strncat.
11179
11180 2010-04-05  Jim Meyering  <meyering@redhat.com>
11181
11182         xstrtoumax-tests: convert to use init.sh
11183         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
11184         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11185         Use Exit, not exit.
11186         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11187
11188         xstrtoimax-tests: convert to use init.sh
11189         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
11190         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11191         Use Exit, not exit.
11192         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11193
11194 2010-04-05  Bruno Haible  <bruno@clisp.org>
11195
11196         sys_socket: Avoid #define replacements in C++ mode.
11197         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
11198         warning to the function if possible, rather than #defining the symbol
11199         to a dysfunctional alias.
11200
11201 2010-04-05  Bruno Haible  <bruno@clisp.org>
11202
11203         fseeko: Fix C++ test error on mingw.
11204         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
11205         gl_FUNC_FSEEKO.
11206         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
11207         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
11208         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
11209         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
11210
11211 2010-04-05  Bruno Haible  <bruno@clisp.org>
11212
11213         duplocale: Improve test output.
11214         * tests/test-duplocale.c (main): Print reason for skipped test.
11215
11216 2010-04-05  Bruno Haible  <bruno@clisp.org>
11217
11218         Assume rmdir exists.
11219         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
11220         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
11221
11222 2010-04-05  Bruno Haible  <bruno@clisp.org>
11223
11224         Fix link error on Solaris 8 with cc.
11225         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
11226
11227 2010-04-05  Bruno Haible  <bruno@clisp.org>
11228
11229         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
11230         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
11231
11232 2010-04-05  Bruno Haible  <bruno@clisp.org>
11233
11234         vasprintf: Update documentation.
11235         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
11236
11237 2010-04-05  Bruno Haible  <bruno@clisp.org>
11238
11239         ptsname: Improve test.
11240         * tests/test-ptsname.c (main): Also try the various master names of BSD
11241         systems.
11242
11243 2010-04-05  Bruno Haible  <bruno@clisp.org>
11244
11245         memchr: Avoid a possible C++ test error.
11246         * lib/string.in.h (memchr): Provide declaration if function is missing.
11247         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
11248         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
11249         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
11250         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
11251
11252 2010-04-05  Bruno Haible  <bruno@clisp.org>
11253
11254         strtok_r: Improve idiom.
11255         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
11256         AC_LIBOBJ is used.
11257
11258 2010-04-05  Bruno Haible  <bruno@clisp.org>
11259
11260         strdup: Improve idiom.
11261         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
11262         AC_LIBOBJ is used.
11263         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
11264         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
11265         when AC_LIBOBJ is used.
11266
11267 2010-04-05  Bruno Haible  <bruno@clisp.org>
11268
11269         mbsinit, mbrtowc, wcrtomb: Improve idioms.
11270         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
11271         don't set REPLACE_MBSINIT to 1.
11272         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
11273         don't set REPLACE_MBRTOWC to 1.
11274         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
11275         exist, don't set REPLACE_MBSRTOWCS to 1.
11276         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
11277         exist, don't set REPLACE_MBSNRTOWCS to 1.
11278         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
11279         don't set REPLACE_WCRTOMB to 1.
11280         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
11281         exist, don't set REPLACE_WCSRTOMBS to 1.
11282         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
11283         exist, don't set REPLACE_WCSNRTOMBS to 1.
11284
11285 2010-04-05  Bruno Haible  <bruno@clisp.org>
11286
11287         ldexpl: Improve idiom.
11288         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
11289         make sure to set HAVE_DECL_LDEXPL to 0.
11290
11291 2010-04-05  Jim Meyering  <meyering@redhat.com>
11292
11293         xstrtol-tests: convert to use init.sh
11294         * modules/xstrtol-tests (Files): Add tests/init.sh.
11295         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11296         Use Exit, not exit.
11297         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11298
11299         atexit-tests: convert to use init.sh
11300         * modules/atexit-tests (Files): Add tests/init.sh.
11301         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11302         Use Exit, not exit.
11303         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11304
11305         init.sh: fix typo
11306         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
11307
11308         init.sh: make it easier for a test script to write to the tty, ...
11309         when using automake's parallel-tests mode.
11310         * tests/init.sh (stderr_fileno_): Define overridable variable.
11311         (warn_): New function, to use it.
11312         (fail_, skip_, framework_failure_): Use warn_.
11313
11314 2010-04-04  Bruno Haible  <bruno@clisp.org>
11315
11316         btowc: Avoid warning.
11317         * lib/btowc.c: Include <stdlib.h>.
11318         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
11319
11320 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
11321             Bruno Haible  <bruno@clisp.org>
11322
11323         wchar: Port to NetBSD 1.5.
11324         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
11325         * lib/wctype.in.h (WEOF): Likewise.
11326
11327 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
11328             Bruno Haible  <bruno@clisp.org>
11329
11330         Port extended stdio to NetBSD 1.5.
11331         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
11332         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
11333         older.
11334
11335 2010-04-04  Bruno Haible  <bruno@clisp.org>
11336
11337         string: Remove unused substitution.
11338         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
11339         HAVE_DECL_STRERROR.
11340         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
11341
11342 2010-04-04  Bruno Haible  <bruno@clisp.org>
11343
11344         strtod: Avoid a possible C++ test error.
11345         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
11346         set REPLACE_STRTOD.
11347
11348 2010-04-04  Bruno Haible  <bruno@clisp.org>
11349
11350         strerror: Update documentation.
11351         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
11352
11353 2010-04-04  Bruno Haible  <bruno@clisp.org>
11354
11355         stdio: Fix some C++ test errors on Solaris 8 with GCC.
11356         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
11357         _GL_CXXALIAS_SYS_CAST.
11358
11359 2010-04-04  Bruno Haible  <bruno@clisp.org>
11360
11361         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
11362         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
11363         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
11364         REPLACE_FREXPL to 1.
11365         * doc/posix-functions/frexpl.texi: Update documentation.
11366
11367 2010-04-04  Bruno Haible  <bruno@clisp.org>
11368
11369         math: Fix some C++ test errors on Solaris 8 and Cygwin.
11370         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
11371
11372 2010-04-04  Bruno Haible  <bruno@clisp.org>
11373
11374         Implement nanosleep for native Windows.
11375         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
11376
11377 2010-04-04  Bruno Haible  <bruno@clisp.org>
11378
11379         math: Fix some C++ test errors on Solaris 8.
11380         * lib/math.in.h (truncf, trunc): Use simpler idiom.
11381
11382 2010-04-04  Bruno Haible  <bruno@clisp.org>
11383
11384         math: Fix some C++ test errors on Cygwin.
11385         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
11386         truncl): Provide declaration if the system does not have it.
11387         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
11388         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
11389         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
11390         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
11391         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
11392         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
11393         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
11394         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
11395         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
11396         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
11397         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
11398         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
11399         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
11400         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
11401         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
11402         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
11403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
11404         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
11405         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
11406         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
11407         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
11408         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
11409
11410 2010-04-04  Bruno Haible  <bruno@clisp.org>
11411
11412         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
11413         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11414         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11415         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
11416         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
11417         * m4/isinf.m4 (gl_ISINF): Likewise.
11418         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11419
11420 2010-04-04  Bruno Haible  <bruno@clisp.org>
11421
11422         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
11423         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11424
11425 2010-04-04  Bruno Haible  <bruno@clisp.org>
11426
11427         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
11428         * modules/tmpfile (configure.ac): Update.
11429
11430         tmpfile: Fix C++ test error on mingw.
11431         * lib/stdio.in.h (tmpfile): New declaration.
11432         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
11433         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
11434         * modules/tmpfile (Depends-on): Add stdio.
11435         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
11436         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
11437         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
11438         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
11439         REPLACE_TMPFILE.
11440         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
11441
11442 2010-04-04  Bruno Haible  <bruno@clisp.org>
11443
11444         ioctl: Fix C++ test error on mingw.
11445         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
11446         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
11447         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
11448
11449 2010-04-03  Bruno Haible  <bruno@clisp.org>
11450
11451         wcwidth: Fix C++ test error on mingw.
11452         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
11453         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
11454         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
11455
11456 2010-04-03  Bruno Haible  <bruno@clisp.org>
11457
11458         nanosleep: Fix C++ test error on mingw.
11459         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
11460         * lib/time.in.h (nanosleep): Use modern idiom.
11461         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
11462         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
11463         REPLACE_NANOSLEEP to 1.
11464         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
11465         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
11466
11467 2010-04-03  Bruno Haible  <bruno@clisp.org>
11468
11469         strptime: Fix C++ test error on mingw.
11470         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
11471         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
11472         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
11473         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
11474         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
11475         not REPLACE_STRPTIME.
11476         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
11477         REPLACE_STRPTIME.
11478
11479 2010-04-03  Bruno Haible  <bruno@clisp.org>
11480
11481         timegm: Fix C++ test error on mingw.
11482         * lib/time.in.h (timegm): Use modern idiom.
11483         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
11484         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
11485         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
11486         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
11487
11488 2010-04-03  Bruno Haible  <bruno@clisp.org>
11489
11490         timegm: Assume declaration if function exists.
11491         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
11492         if it exists. Don't clobber ac_cv_func_timegm.
11493
11494 2010-04-03  Bruno Haible  <bruno@clisp.org>
11495
11496         time_r: Fix C++ test error on mingw.
11497         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
11498         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
11499         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
11500         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
11501         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
11502
11503 2010-04-03  Bruno Haible  <bruno@clisp.org>
11504
11505         time_r: Minor updates.
11506         * modules/time_r (Description): Mention the provided functions.
11507         * lib/time_r.c: Don't include <string.h>.
11508         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
11509         * doc/posix-functions/localtime_r.texi: Likewise.
11510
11511 2010-04-03  Bruno Haible  <bruno@clisp.org>
11512
11513         time: Fix regression introduced on 2010-03-08.
11514         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
11515         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
11516
11517 2010-04-03  Jim Meyering  <meyering@redhat.com>
11518
11519         maint.mk: don't silently disable project-specific syntax-check rules
11520         * top/maint.mk (_prohibit_regexp): Define, to help people realize
11521         that they need to convert their project-specific syntax-check rules
11522         to use the new _sc_search_regexp.
11523
11524 2010-04-03  Bruno Haible  <bruno@clisp.org>
11525
11526         fchdir: Fix regression introduced on 2010-03-08.
11527         * lib/unistd.in.h (fchdir): Fix declaration.
11528         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
11529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
11530         REPLACE_FCHDIR.
11531         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
11532         REPLACE_FCHDIR.
11533
11534 2010-04-03  Bruno Haible  <bruno@clisp.org>
11535
11536         getpagesize: Fix C++ test error on mingw.
11537         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
11538         system does not declare the function.
11539         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
11540         declared.
11541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11542         HAVE_DECL_GETPAGESIZE.
11543         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
11544
11545 2010-04-03  Bruno Haible  <bruno@clisp.org>
11546
11547         stdio: Make C++ tests work on mingw.
11548         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
11549         does not declare the function.
11550
11551 2010-04-03  Bruno Haible  <bruno@clisp.org>
11552
11553         ftello: Fix C++ test error on mingw.
11554         * lib/stdio.in.h (ftello): Use modern idiom.
11555         * lib/ftello.c (ftello): Renamed from rpl_ftello.
11556         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
11557         is missing and that it needs to be replaced.
11558         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
11559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
11560         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
11561
11562 2010-04-03  Bruno Haible  <bruno@clisp.org>
11563
11564         fseeko: Fix C++ test error on mingw.
11565         * lib/stdio.in.h (fseeko): Use modern idiom.
11566         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
11567         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
11568         is missing and that it needs to be replaced.
11569         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
11570         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
11571         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
11572
11573 2010-04-03  Bruno Haible  <bruno@clisp.org>
11574
11575         mkstemp: Fix C++ test error on mingw.
11576         * lib/stdlib.in.h (mkstemp): Use modern idiom.
11577         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
11578         function is missing and that it needs to be replaced.
11579         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
11580         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
11581
11582 2010-04-03  Bruno Haible  <bruno@clisp.org>
11583
11584         stpncpy: Fix C++ test error on mingw.
11585         * lib/string.in.h (stpncpy): Use modern idiom.
11586         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
11587         function is missing and that it needs to be replaced.
11588         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11589         REPLACE_STPNCPY.
11590         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
11591
11592 2010-04-03  Bruno Haible  <bruno@clisp.org>
11593
11594         sys_stat: Fix C++ test error on mingw.
11595         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
11596         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
11597
11598 2010-04-03  Bruno Haible  <bruno@clisp.org>
11599
11600         pty: Update doc.
11601         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
11602
11603 2010-04-03  Bruno Haible  <bruno@clisp.org>
11604
11605         unistd: Fix C++ test error on mingw.
11606         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
11607
11608 2010-04-03  Bruno Haible  <bruno@clisp.org>
11609
11610         Update doc regarding mingw.
11611         * doc/glibc-functions/openpty.texi: Update regarding mingw.
11612         * doc/glibc-functions/login_tty.texi: Likewise.
11613         * doc/glibc-functions/forkpty.texi: Likewise.
11614
11615 2010-04-03  Bruno Haible  <bruno@clisp.org>
11616
11617         stdlib: Avoid compilation failure of c-strtold on mingw.
11618         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
11619
11620 2010-04-03  Bruno Haible  <bruno@clisp.org>
11621
11622         locale: Make C++ tests work on Cygwin and mingw.
11623         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
11624         cannot provide the function.
11625         Reported by Simon Josefsson.
11626
11627 2010-04-03  Bruno Haible  <bruno@clisp.org>
11628
11629         localename: Port to MacOS X 10.6.
11630         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
11631         memory layout of the locales in MacOS X 10.6 as well.
11632         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
11633
11634 2010-04-02  Bruno Haible  <bruno@clisp.org>
11635
11636         gnulib-tool: Ensure that long-running tests are executed last.
11637         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
11638         running tests after the one for the other tests.
11639
11640 2010-04-02  Bruno Haible  <bruno@clisp.org>
11641
11642         gnulib-tool: Ensure the tests in the main directory are executed first.
11643         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
11644         start with the current directory.
11645
11646 2010-04-02  Bruno Haible  <bruno@clisp.org>
11647
11648         Tests for module 'havelib', moved here from GNU gettext.
11649         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
11650         modifications.
11651         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
11652         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
11653         with modifications.
11654         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
11655         modifications.
11656         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
11657         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
11658         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
11659         with modifications.
11660         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
11661         with modifications.
11662         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
11663         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
11664         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
11665         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
11666         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
11667         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
11668         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
11669         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
11670         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
11671         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
11672         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
11673         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
11674         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
11675         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
11676         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
11677         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
11678         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
11679         with modifications.
11680         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
11681         with modifications.
11682         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
11683         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
11684         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
11685         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
11686         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
11687         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
11688         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
11689         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
11690         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
11691         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
11692         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
11693         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
11694         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
11695         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
11696         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
11697         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
11698         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
11699         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
11700         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
11701         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
11702         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
11703         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
11704         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
11705         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
11706         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
11707         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
11708         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
11709         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
11710         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
11711         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
11712         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
11713         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
11714         * tests/havelib/rpathx/rpathx.c: New file, from
11715         gettext/autoconf-lib-link.
11716         * tests/havelib/rpathx/Makefile.am: New file, from
11717         gettext/autoconf-lib-link.
11718         * tests/havelib/rpathx/configure.ac: New file, from
11719         gettext/autoconf-lib-link with modifications.
11720         * tests/havelib/rpathy/rpathy.c: New file, from
11721         gettext/autoconf-lib-link.
11722         * tests/havelib/rpathy/Makefile.am: New file, from
11723         gettext/autoconf-lib-link.
11724         * tests/havelib/rpathy/configure.ac: New file, from
11725         gettext/autoconf-lib-link with modifications.
11726         * tests/havelib/rpathz/rpathz.c: New file, from
11727         gettext/autoconf-lib-link.
11728         * tests/havelib/rpathz/Makefile.am: New file, from
11729         gettext/autoconf-lib-link.
11730         * tests/havelib/rpathz/configure.ac: New file, from
11731         gettext/autoconf-lib-link with modifications.
11732         * tests/havelib/rpathlx/usex.c: New file, from
11733         gettext/autoconf-lib-link.
11734         * tests/havelib/rpathlx/Makefile.am: New file, from
11735         gettext/autoconf-lib-link.
11736         * tests/havelib/rpathlx/configure.ac: New file, from
11737         gettext/autoconf-lib-link with modifications.
11738         * tests/havelib/rpathly/usey.c: New file, from
11739         gettext/autoconf-lib-link.
11740         * tests/havelib/rpathly/Makefile.am: New file, from
11741         gettext/autoconf-lib-link.
11742         * tests/havelib/rpathly/configure.ac: New file, from
11743         gettext/autoconf-lib-link with modifications.
11744         * tests/havelib/rpathlz/usez.c: New file, from
11745         gettext/autoconf-lib-link.
11746         * tests/havelib/rpathlz/Makefile.am: New file, from
11747         gettext/autoconf-lib-link.
11748         * tests/havelib/rpathlz/configure.ac: New file, from
11749         gettext/autoconf-lib-link with modifications.
11750         * tests/havelib/rpathlyx/usey.c: New file, from
11751         gettext/autoconf-lib-link.
11752         * tests/havelib/rpathlyx/Makefile.am: New file, from
11753         gettext/autoconf-lib-link.
11754         * tests/havelib/rpathlyx/configure.ac: New file, from
11755         gettext/autoconf-lib-link with modifications.
11756         * tests/havelib/rpathlzyx/usez.c: New file, from
11757         gettext/autoconf-lib-link.
11758         * tests/havelib/rpathlzyx/Makefile.am: New file, from
11759         gettext/autoconf-lib-link.
11760         * tests/havelib/rpathlzyx/configure.ac: New file, from
11761         gettext/autoconf-lib-link with modifications.
11762         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
11763         with modifications.
11764
11765 2010-04-02  Bruno Haible  <bruno@clisp.org>
11766
11767         gnulib-tool: Create distributed built sources also for the tests.
11768         * gnulib-tool (func_create_testdir): Also generate distributed built
11769         sources in the tests directory.
11770
11771 2010-04-02  Bruno Haible  <bruno@clisp.org>
11772
11773         gnulib-tool: Obey user's environment variables.
11774         * gnulib-tool (func_create_testdir): When creating built sources,
11775         respect the environment variables for autoconf, automake, etc. given by
11776         the user.
11777
11778 2010-04-02  Bruno Haible  <bruno@clisp.org>
11779
11780         gnulib-tool: Provide the value of --m4-base to modules.
11781         * gnulib-tool (func_import, func_create_testdir): Emit a definition
11782         of gl_m4_base.
11783
11784 2010-04-02  Eric Blake  <eblake@redhat.com>
11785
11786         maint.mk: fix some fallout
11787         * NEWS: Document the incompatible change, and its effect on cfg.mk.
11788         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
11789
11790 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
11791
11792         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
11793         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
11794         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
11795         (sc_cast_of_x_alloc_return_value): Likewise.
11796         (sc_cast_of_alloca_return_value): Likewise.
11797         (sc_space_tab): Likewise.
11798         (sc_prohibit_atoi_atof): Likewise.
11799         (sc_prohibit_magic_number_exit): Likewise.
11800         (sc_error_exit_success): Likewise.
11801         (sc_file_system): Likewise.
11802         (sc_prohibit_have_config_h): Likewise.
11803         (sc_require_config_h): Likewise.
11804         (sc_prohibit_HAVE_MBRTOWC): Likewise.
11805         (sc_obsolete_symbols): Likewise.
11806         (sc_changelog): Likewise.
11807         (sc_program_name): Likewise.
11808         (sc_the_the): Likewise.
11809         (sc_trailing_blank): Likewise.
11810         (sc_two_space_separator_in_usage): Likewise.
11811         (sc_useless_cpp_parens): Likewise.
11812         (sc_GPL_version): Likewise.
11813         (sc_GFDL_version): Likewise.
11814         (sc_texinfo_acronym): Likewise.
11815         (sc_prohibit_cvs_keyword): Likewise.
11816         (sc_prohibit_stat_st_blocks): Likewise.
11817         (sc_prohibit_S_IS_definition): Likewise.
11818         (sc_redundant_const): Likewise.
11819         (sc_makefile_TAB_only_indentation): Likewise.
11820         (sc_m4_quote_check): Likewise.
11821         (sc_makefile_path_separator_check): Likewise.
11822         (sc_copyright_check): Likewise.
11823         (sc_Wundef_boolean): Likewise.
11824         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
11825
11826         maint.mk: match 0 or more whitespace-before-function-call '('
11827         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
11828         that have zero or two-and-more spaces between the function name
11829         and the open parenthesis.
11830         (sc_error_message_warn_fatal): Likewise.
11831         (sc_error_message_uppercase): Likewise.
11832         (sc_error_message_period): Likewise.
11833
11834 2010-03-31  Eric Blake  <eblake@redhat.com>
11835
11836         maint.mk: check for [ as well as test
11837         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
11838         Based on a libvirt report by Matthias Bolte.
11839
11840         gnumakefile: don't squelch _version output
11841         * top/GNUmakefile (_version): Create one-shot dependency rather
11842         than using $(shell) when version must be regenerated.
11843         (_autoreconf): Run verbosely, by default.
11844
11845         sys_time: avoid compiler warnings
11846         * lib/sys_time.in.h (includes): Ensure gcc pragma is
11847         unconditional, fixing regression from 2010-03-29.
11848         Reported by Simon Josefsson.
11849
11850 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
11851
11852         maint.mk: s/_header_without_use/_sc_header_without_use/
11853         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
11854         (sc_prohibit_assert_without_use): Use the new name.
11855         (sc_prohibit_close_stream_without_use): Likewise.
11856         (sc_prohibit_getopt_without_use): Likewise.
11857         (sc_prohibit_quotearg_without_use): Likewise.
11858         (sc_prohibit_quote_without_use): Likewise.
11859         (sc_prohibit_long_options_without_use): Likewise.
11860         (sc_prohibit_inttostr_without_use): Likewise.
11861         (sc_prohibit_ignore_value_without_use): Likewise.
11862         (sc_prohibit_error_without_use): Likewise.
11863         (sc_prohibit_xalloc_without_use): Likewise.
11864         (sc_prohibit_hash_without_use): Likewise.
11865         (sc_prohibit_hash_pjw_without_use): Likewise.
11866         (sc_prohibit_safe_read_without_use): Likewise.
11867         (sc_prohibit_argmatch_without_use): Likewise.
11868         (sc_prohibit_canonicalize_without_use): Likewise.
11869         (sc_prohibit_root_dev_ino_without_use): Likewise.
11870         (sc_prohibit_openat_without_use): Likewise.
11871         (sc_prohibit_c_ctype_without_use): Likewise.
11872         (sc_prohibit_signal_without_use): Likewise.
11873         (sc_prohibit_intprops_without_use): Likewise.
11874
11875 2010-03-30  Eric Blake  <eblake@redhat.com>
11876
11877         maint: improve module indicators
11878         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
11879         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
11880         columns, and avoid extra macro expansion.
11881
11882         fdopendir: work around FreeBSD bug
11883         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
11884         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
11885         * modules/dirent (Makefile.am): Substitute it.
11886         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
11887         declaration.
11888         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
11889         fix.
11890         Reported by Christian Weisgerber <naddy@mips.inka.de>.
11891
11892 2010-03-29  Bruno Haible  <bruno@clisp.org>
11893
11894         Emit #pragma system_header after the inclusion guard, not before.
11895         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
11896         guard that spans the entire file, not before. This enables an
11897         optimization in GCC's preprocessor.
11898         * lib/ctype.in.h: Likewise.
11899         * lib/dirent.in.h: Likewise.
11900         * lib/errno.in.h: Likewise.
11901         * lib/float.in.h: Likewise.
11902         * lib/getopt.in.h: Likewise.
11903         * lib/iconv.in.h: Likewise.
11904         * lib/langinfo.in.h: Likewise.
11905         * lib/locale.in.h: Likewise.
11906         * lib/math.in.h: Likewise.
11907         * lib/netdb.in.h: Likewise.
11908         * lib/netinet_in.in.h: Likewise.
11909         * lib/pty.in.h: Likewise.
11910         * lib/sched.in.h: Likewise.
11911         * lib/se-selinux.in.h: Likewise.
11912         * lib/search.in.h: Likewise.
11913         * lib/spawn.in.h: Likewise.
11914         * lib/stdarg.in.h: Likewise.
11915         * lib/stdint.in.h: Likewise.
11916         * lib/string.in.h: Likewise.
11917         * lib/strings.in.h: Likewise.
11918         * lib/sys_file.in.h: Likewise.
11919         * lib/sys_ioctl.in.h: Likewise.
11920         * lib/sys_time.in.h: Likewise.
11921         * lib/sys_times.in.h: Likewise.
11922         * lib/sys_utsname.in.h: Likewise.
11923         * lib/sys_wait.in.h: Likewise.
11924         * lib/sysexits.in.h: Likewise.
11925         * lib/wctype.in.h: Likewise.
11926
11927 2010-03-28  James Youngman  <jay@gnu.org>
11928
11929         save-cwd: don't leak a file descriptor when the caller execs.
11930         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
11931         saved file descriptor.
11932         * modules/save-cwd (Depends-on): Depend on cloexec.
11933
11934 2010-03-29  Bruno Haible  <bruno@clisp.org>
11935
11936         Remove vestiges of fts-lgpl module.
11937         * lib/fts_.h: Assume GNULIB_FTS is 1.
11938         * lib/fts.c: Likewise.
11939         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
11940
11941 2010-03-28  Bruno Haible  <bruno@clisp.org>
11942
11943         Fix definition of tests witness macro.
11944         * gnulib-tool (func_import): Fix definition of witness macro.
11945
11946 2010-03-28  Bruno Haible  <bruno@clisp.org>
11947
11948         Fix ioctl's protoype on glibc systems.
11949         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
11950         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
11951         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
11952         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
11953         signature. If not, arrange to replace the ioctl function.
11954         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11955         REPLACE_IOCTL.
11956         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
11957         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
11958         Reported by Ludovic Courtès <ludo@gnu.org>.
11959
11960 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
11961
11962         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
11963         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
11964         made it so grep -r --include=GLOB* ... did not work.
11965
11966 2010-03-26  Jim Meyering  <meyering@redhat.com>
11967             Eric Blake  <eblake@redhat.com>
11968
11969         maint.mk: prohibit use of test's -o and -a operators
11970         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
11971
11972 2010-03-28  Bruno Haible  <bruno@clisp.org>
11973
11974         Remove unused GNULIB_XYZ macro definitions.
11975         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
11976         invocation.
11977
11978 2010-03-28  Bruno Haible  <bruno@clisp.org>
11979
11980         Mark privileged tests modules.
11981         * modules/idpriv-drop-tests (Status): New section.
11982         * modules/idpriv-droptemp-tests (Status): New section.
11983
11984 2010-03-28  Bruno Haible  <bruno@clisp.org>
11985
11986         Split C++ tests into separate tests modules.
11987         * modules/dirent-c++-tests: New file, extracted from
11988         modules/dirent-tests.
11989         * modules/dirent-tests: Depend on it.
11990         * modules/fcntl-h-c++-tests: New file, extracted from
11991         modules/fcntl-h-tests.
11992         * modules/fcntl-h-tests: Depend on it.
11993         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
11994         * modules/glob-tests: Depend on it.
11995         * modules/iconv-h-c++-tests: New file, extracted from
11996         modules/iconv-h-tests.
11997         * modules/iconv-h-tests: Depend on it.
11998         * modules/langinfo-c++-tests: New file, extracted from
11999         modules/langinfo-tests.
12000         * modules/langinfo-tests: Depend on it.
12001         * modules/locale-c++-tests: New file, extracted from
12002         modules/locale-tests.
12003         * modules/locale-tests: Depend on it.
12004         * modules/math-c++-tests: New file, extracted from modules/math-tests.
12005         * modules/math-tests: Depend on it.
12006         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
12007         * modules/pty-tests: Depend on it.
12008         * modules/search-c++-tests: New file, extracted from
12009         modules/search-tests.
12010         * modules/search-tests: Depend on it.
12011         * modules/signal-c++-tests: New file, extracted from
12012         modules/signal-tests.
12013         * modules/signal-tests: Depend on it.
12014         * modules/spawn-c++-tests: New file, extracted from
12015         modules/spawn-tests.
12016         * modules/spawn-tests: Depend on it.
12017         * modules/stdio-c++-tests: New file, extracted from
12018         modules/stdio-tests.
12019         * modules/stdio-tests: Depend on it.
12020         * modules/stdlib-c++-tests: New file, extracted from
12021         modules/stdlib-tests.
12022         * modules/stdlib-tests: Depend on it.
12023         * modules/string-c++-tests: New file, extracted from
12024         modules/string-tests.
12025         * modules/string-tests: Depend on it.
12026         * modules/sys_ioctl-c++-tests: New file, extracted from
12027         modules/sys_ioctl-tests.
12028         * modules/sys_ioctl-tests: Depend on it.
12029         * modules/sys_select-c++-tests: New file, extracted from
12030         modules/sys_select-tests.
12031         * modules/sys_select-tests: Depend on it.
12032         * modules/sys_socket-c++-tests: New file, extracted from
12033         modules/sys_socket-tests.
12034         * modules/sys_socket-tests: Depend on it.
12035         * modules/sys_stat-c++-tests: New file, extracted from
12036         modules/sys_stat-tests.
12037         * modules/sys_stat-tests: Depend on it.
12038         * modules/sys_time-c++-tests: New file, extracted from
12039         modules/sys_time-tests.
12040         * modules/sys_time-tests: Depend on it.
12041         * modules/time-c++-tests: New file, extracted from modules/time-tests.
12042         * modules/time-tests: Depend on it.
12043         * modules/unistd-c++-tests: New file, extracted from
12044         modules/unistd-tests.
12045         * modules/unistd-tests: Depend on it.
12046         * modules/wchar-c++-tests: New file, extracted from
12047         modules/wchar-tests.
12048         * modules/wchar-tests: Depend on it.
12049         * modules/wctype-c++-tests: New file, extracted from
12050         modules/wctype-tests.
12051         * modules/wctype-tests: Depend on it.
12052         Reported by Simon Josefsson.
12053
12054 2010-03-28  Bruno Haible  <bruno@clisp.org>
12055
12056         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
12057         * gnulib-tool (func_exists_module): New function, extracted from
12058         func_verify_module.
12059         (func_verify_module): Use it.
12060         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
12061         'foo' only if 'foo' exists.
12062         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
12063         module.
12064
12065 2010-03-28  Bruno Haible  <bruno@clisp.org>
12066
12067         gnulib-tool: Add support for special categories of tests.
12068         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
12069         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
12070         (func_usage): Document them.
12071         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
12072         inc_unportable_tests, inc_all_tests): New variables.
12073         (func_acceptable): Consider these variables.
12074         (func_modules_transitive_closure): Make it work when the 'Status' field
12075         consists of multiple words.
12076         (func_import): Store and restore the values of inc_cxx_tests,
12077         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
12078         inc_all_tests in gnulib-comp.m4.
12079         (func_create_testdir): Set inc_all_tests to true.
12080         * doc/gnulib.texi (Extra tests modules): New section.
12081         Suggested by Jim Meyering.
12082
12083 2010-03-28  Bruno Haible  <bruno@clisp.org>
12084
12085         ansi-c++-opt: Allow turning off the C++ build by default.
12086         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
12087         gl_CXX_CHOICE_DEFAULT_NO is defined.
12088         Requested by Eric Blake.
12089
12090 2010-03-28  Bruno Haible  <bruno@clisp.org>
12091
12092         unistd: Avoid #define replacements in C++ mode.
12093         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12094         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12095         setsockopt, shutdown, select): In C++, attach a warning to the function
12096         if possible, rather than #defining the symbol to a dysfunctional alias.
12097         Reported by John W. Eaton <jwe@gnu.org>.
12098
12099 2010-03-28  Bruno Haible  <bruno@clisp.org>
12100
12101         Fix link errors on mingw.
12102         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
12103         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
12104         $(LIBSOCKET).
12105         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
12106         $(LIBSOCKET).
12107
12108 2010-03-28  Bruno Haible  <bruno@clisp.org>
12109             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12110
12111         lib-ignore: Determine different options for different compilers.
12112         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
12113         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
12114         Add comments.
12115         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
12116         * NEWS: Mention the change.
12117
12118 2010-03-27  Bruno Haible  <bruno@clisp.org>
12119
12120         Remove unused GNULIB_XYZ macro definitions.
12121         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
12122         * modules/fseek (configure.ac): Likewise.
12123         * modules/ioctl (configure.ac): Likewise.
12124         * modules/open (configure.ac): Likewise.
12125         * modules/stdlib-safer (configure.ac): Likewise.
12126
12127 2010-03-27  Bruno Haible  <bruno@clisp.org>
12128
12129         Add a remark about certain modules.
12130         * modules/malloc (Comment): New section.
12131         * modules/realloc (Comment): Likewise.
12132         * modules/sigpipe (Comment): Likewise.
12133
12134 2010-03-27  Bruno Haible  <bruno@clisp.org>
12135
12136         Resolve conflict between the two kinds of module indicators.
12137         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
12138         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
12139         * modules/canonicalize (configure.ac): Invoke
12140         gl_MODULE_INDICATOR_FOR_TESTS.
12141         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
12142         GNULIB_XYZ.
12143         * tests/test-dirent-c++.cc: Likewise.
12144         * tests/test-dirent-safer.c: Likewise.
12145         * tests/test-dup2.c: Likewise.
12146         * tests/test-fchdir.c: Likewise.
12147         * tests/test-fcntl-h-c++.cc: Likewise.
12148         * tests/test-getopt.c: Likewise.
12149         * tests/test-getopt.h: Likewise.
12150         * tests/test-langinfo-c++.cc: Likewise.
12151         * tests/test-locale-c++.cc: Likewise.
12152         * tests/test-math-c++.cc: Likewise.
12153         * tests/test-pty-c++.cc: Likewise.
12154         * tests/test-search-c++.cc: Likewise.
12155         * tests/test-signal-c++.cc: Likewise.
12156         * tests/test-spawn-c++.cc: Likewise.
12157         * tests/test-stdio-c++.cc: Likewise.
12158         * tests/test-stdlib-c++.cc: Likewise.
12159         * tests/test-string-c++.cc: Likewise.
12160         * tests/test-sys_ioctl-c++.cc: Likewise.
12161         * tests/test-sys_select-c++.cc: Likewise.
12162         * tests/test-sys_socket-c++.cc: Likewise.
12163         * tests/test-sys_stat-c++.cc: Likewise.
12164         * tests/test-sys_time-c++.cc: Likewise.
12165         * tests/test-time-c++.cc: Likewise.
12166         * tests/test-unistd-c++.cc: Likewise.
12167         * tests/test-wchar-c++.cc: Likewise.
12168         * tests/uninorm/test-u8-nfc.c: Likewise.
12169         * tests/uninorm/test-u8-nfd.c: Likewise.
12170         * tests/uninorm/test-u8-nfkc.c: Likewise.
12171         * tests/uninorm/test-u8-nfkd.c: Likewise.
12172         * tests/uninorm/test-u16-nfc.c: Likewise.
12173         * tests/uninorm/test-u16-nfd.c: Likewise.
12174         * tests/uninorm/test-u16-nfkc.c: Likewise.
12175         * tests/uninorm/test-u16-nfkd.c: Likewise.
12176         * tests/uninorm/test-u32-nfc.c: Likewise.
12177         * tests/uninorm/test-u32-nfc-big.c: Likewise.
12178         * tests/uninorm/test-u32-nfd.c: Likewise.
12179         * tests/uninorm/test-u32-nfd-big.c: Likewise.
12180         * tests/uninorm/test-u32-nfkc.c: Likewise.
12181         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
12182         * tests/uninorm/test-u32-nfkd.c: Likewise.
12183         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
12184         * tests/uninorm/test-u32-normalize-big.c: Likewise.
12185
12186 2010-03-27  Bruno Haible  <bruno@clisp.org>
12187
12188         Distinguish two kinds of module indicators.
12189         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
12190         gl_MODULE_INDICATOR.
12191         (gl_MODULE_INDICATOR): New macro.
12192         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
12193         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
12194         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
12195         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
12196         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
12197         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
12198         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
12199         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
12200         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
12201         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
12202         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
12203         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
12204         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
12205         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
12206         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
12207         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
12208         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
12209         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
12210         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
12211         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
12212         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
12213         * modules/cloexec (configure.ac): Likewise.
12214         * modules/getopt-gnu (configure.ac): Likewise.
12215         * modules/uninorm/u8-normalize (configure.ac): Likewise.
12216         * modules/uninorm/u16-normalize (configure.ac): Likewise.
12217         * modules/uninorm/u32-normalize (configure.ac): Likewise.
12218         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
12219
12220 2010-03-27  Bruno Haible  <bruno@clisp.org>
12221
12222         New module description field 'Comment'.
12223         * gnulib-tool: New option --extract-comment.
12224         (func_usage): Document it.
12225         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
12226         (func_get_comment): New function.
12227         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
12228
12229 2010-03-27  Bruno Haible  <bruno@clisp.org>
12230
12231         Addendum to 2010-02-07 commit.
12232         * gnulib-tool (func_usage): Document --extract-applicability option.
12233
12234 2010-03-27  Bruno Haible  <bruno@clisp.org>
12235
12236         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
12237         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
12238         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
12239         rather than link errors.
12240
12241 2010-03-27  Bruno Haible  <bruno@clisp.org>
12242
12243         Avoid side effects from tests-related modules on the compilation of lib.
12244         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
12245         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
12246         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
12247         parameter. Emit into AM_CPPFLAGS a definition of the designated C
12248         macro.
12249         (func_import): Define a witness macro. Assign it a value that depends
12250         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
12251         tests-related modules.
12252         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
12253         Reported by Jim Meyering.
12254
12255 2010-03-27  Bruno Haible  <bruno@clisp.org>
12256
12257         Factorize common .m4 code.
12258         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
12259         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
12260         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
12261         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
12262         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
12263         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
12264         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
12265         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
12266         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
12267         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
12268         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
12269         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
12270         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
12271         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
12272         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
12273         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
12274         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
12275         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
12276         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
12277         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
12278         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
12279         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
12280         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
12281         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
12282         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
12283         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
12284         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
12285         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
12286         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
12287         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
12288         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
12289         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
12290
12291 2010-03-27  Bruno Haible  <bruno@clisp.org>
12292
12293         Fix a compilation error on Cygwin with g++ >= 4.3.
12294         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
12295         if it is undefined or if we alias it to chmod.
12296         (lstat): Don't warn about the use of this function if it is undefined
12297         or if we alias it to stat.
12298         Reported by Simon Josefsson.
12299
12300 2010-03-27  Bruno Haible  <bruno@clisp.org>
12301
12302         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
12303         * modules/getlogin (configure.ac): Update.
12304
12305         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
12306         * modules/getlogin_r (configure.ac): Update.
12307
12308         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
12309         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
12310         * modules/inet_ntop (configure.ac): Update.
12311
12312         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
12313         * modules/inet_pton (configure.ac): Update.
12314
12315         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
12316         * modules/mbslen (configure.ac): Update.
12317
12318         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
12319         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
12320         * modules/forkpty (configure.ac): Update.
12321         * modules/openpty (configure.ac): Update.
12322
12323 2010-03-26  Simon Josefsson  <simon@josefsson.org>
12324
12325         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
12326         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
12327
12328 2010-03-25  Eric Blake  <eblake@redhat.com>
12329
12330         maint: use pragma consistently across replacement headers
12331         * lib/ctype.in.h (system_header): Hoist for consistent placement.
12332         * lib/dirent.in.h (system_header): Likewise.
12333         * lib/errno.in.h (system_header): Likewise.
12334         * lib/float.in.h (system_header): Likewise.
12335         * lib/getopt.in.h (system_header): Likewise.
12336         * lib/iconv.in.h (system_header): Likewise.
12337         * lib/inttypes.in.h (system_header): Likewise.
12338         * lib/langinfo.in.h (system_header): Likewise.
12339         * lib/locale.in.h (system_header): Likewise.
12340         * lib/math.in.h (system_header): Likewise.
12341         * lib/netdb.in.h (system_header): Likewise.
12342         * lib/netinet_in.in.h (system_header): Likewise.
12343         * lib/pty.in.h (system_header): Likewise.
12344         * lib/sched.in.h (system_header): Likewise.
12345         * lib/se-selinux.in.h (system_header): Likewise.
12346         * lib/search.in.h (system_header): Likewise.
12347         * lib/spawn.in.h (system_header): Likewise.
12348         * lib/stdarg.in.h (system_header): Likewise.
12349         * lib/stdint.in.h (system_header): Likewise.
12350         * lib/string.in.h (system_header): Likewise.
12351         * lib/strings.in.h (system_header): Likewise.
12352         * lib/sys_file.in.h (system_header): Likewise.
12353         * lib/sys_ioctl.in.h (system_header): Likewise.
12354         * lib/sys_socket.in.h (system_header): Likewise.
12355         * lib/sys_times.in.h (system_header): Likewise.
12356         * lib/sys_utsname.in.h (system_header): Likewise.
12357         * lib/sys_wait.in.h (system_header): Likewise.
12358         * lib/sysexits.in.h (system_header): Likewise.
12359         * lib/unistd.in.h (system_header): Likewise.
12360         * lib/wctype.in.h (system_header): Likewise.
12361
12362         arpa/inet: fix mingw compilation warning
12363         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
12364         Reported by Matthew Bolte.
12365
12366 2010-03-25  Bruno Haible  <bruno@clisp.org>
12367
12368         Avoid collision between gnulib wrapper and libintl wrapper.
12369         * lib/printf.c (printf): Don't define if a printf wrapper is already
12370         defined in intl/printf.c.
12371         Reported by Michel Boaventura <michel@michelboaventura.com>.
12372
12373 2010-03-25  Bruno Haible  <bruno@clisp.org>
12374
12375         Use ANSI C.
12376         * lib/readutmp.h (getutent): Provide ANSI C prototype.
12377
12378 2010-03-25  Bruno Haible  <bruno@clisp.org>
12379
12380         Minor formatting changes.
12381         * lib/acosl.c: Insert space before function argument list.
12382         * lib/argz.c: Likewise.
12383         * lib/asinl.c: Likewise.
12384         * lib/expl.c: Likewise.
12385         * lib/gen-uni-tables.c: Likewise.
12386         * lib/gettext.h: Likewise.
12387         * lib/glthread/lock.h: Likewise.
12388         * lib/tanl.c: Likewise.
12389         * lib/uniname/uniname.c: Likewise.
12390         * tests/test-idpriv-drop.c: Likewise.
12391         * tests/test-idpriv-droptemp.c: Likewise.
12392         * tests/test-lock.c: Likewise.
12393         * tests/test-tls.c: Likewise.
12394         * lib/argp-help.c: Insert space before function-like macro argument
12395         list.
12396         * lib/memcmp.c: Likewise.
12397         * tests/test-base64.c: Likewise.
12398         * lib/localename.c: Insert space before sizeof's argument list.
12399         * lib/safe-alloc.h: Likewise.
12400         * lib/file-set.h: Insert space before macro argument list.
12401         * tests/test-argp.c: Likewise.
12402         * lib/argp-namefrob.h: Insert space before function parameter list.
12403         * lib/getaddrinfo.c: Likewise.
12404         * lib/netdb.in.h: Likewise.
12405         * lib/parse-duration.h: Likewise.
12406         * lib/parse-duration.c: Likewise.
12407         * lib/poll.c: Likewise.
12408         * lib/select.c: Likewise.
12409         * lib/trim.h: Likewise.
12410         * tests/test-usleep.c: Likewise.
12411         * lib/ldexpl.c: Insert space before function parameter list and before
12412         function argument list.
12413         * lib/logl.c: Likewise.
12414         * lib/sqrtl.c: Likewise.
12415         * lib/trim.c: Likewise.
12416         * lib/cosl.c: Use GNU style indentation. Insert space before function
12417         argument list.
12418         * lib/sinl.c: Likewise.
12419         * lib/tsearch.c: Insert space after 'for'.
12420         Reported by Jim Meyering.
12421
12422 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
12423
12424         * maint.mk (sc_Wundef_boolean): Check for the presence of the
12425         config header before grepping, as it's not present before
12426         autoreconf/configure are run.  Reported by Simon Josefsson.
12427
12428 2010-03-23  Bruno Haible  <bruno@clisp.org>
12429
12430         pt_chown: Make it work with automake < 1.11.
12431         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
12432         Reported by Simon Josefsson.
12433
12434 2010-03-23  Bruno Haible  <bruno@clisp.org>
12435
12436         pt_chown: Don't depend on GPLed modules.
12437         * lib/pt_chown.c: Don't include idpriv.h.
12438         (main): Don't drop privileges.
12439         * modules/pt_chown (Depends-on): Remove idpriv-drop.
12440         Reported by Simon Josefsson.
12441
12442 2010-03-24  Simon Josefsson  <simon@josefsson.org>
12443
12444         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
12445         suggestions from karl@freefriends.org (Karl Berry).
12446
12447 2010-03-22  Eric Blake  <eblake@redhat.com>
12448
12449         gethostname: further tweaks
12450         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
12451         are overriding gethostname.
12452         Suggested by Bruno Haible.
12453
12454 2010-03-21  Bruno Haible  <bruno@clisp.org>
12455
12456         Fix comments.
12457         * lib/forkpty.c (rpl_forkpty): Fix comment.
12458         * lib/openpty.c (rpl_openpty): Likewise.
12459         Reported by Eric Blake.
12460
12461 2010-03-22  Eric Blake  <eblake@redhat.com>
12462
12463         gethostname: fix build on mingw
12464         * lib/unistd.in.h (includes): Work around fact that mingw
12465         <winsock2.h> re-includes <unistd.h>, by avoiding any
12466         redeclarations if we are being included by <winsock2.h>.
12467         Reported by Matthias Bolte.
12468
12469 2010-03-21  Bruno Haible  <bruno@clisp.org>
12470
12471         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
12472         * lib/forkpty.c (forkpty): New replacement function, from glibc with
12473         modifications.
12474         * lib/pty.in.h (forkpty): Update declaration. Add comments.
12475         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
12476         provide the replacement.
12477         * modules/forkpty (Depends-on): Add openpty, login_tty.
12478         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
12479         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
12480         * doc/glibc-functions/forkpty.texi: More supported platforms.
12481         * config/srclist.txt: Add forkpty.c (commented).
12482
12483 2010-03-21  Bruno Haible  <bruno@clisp.org>
12484
12485         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
12486         (Makefile.am): Verify that PTY_LIB is defined.
12487
12488         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
12489
12490 2010-03-21  Bruno Haible  <bruno@clisp.org>
12491
12492         Tests for module 'login_tty'.
12493         * modules/login_tty-tests: New file.
12494         * tests/test-login_tty.c: New file.
12495
12496         New module 'login_tty'.
12497         * lib/login_tty.c: New file.
12498         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
12499         * modules/login_tty: New file.
12500         * doc/glibc-functions/login_tty.texi: Mention the new module.
12501
12502 2010-03-21  Bruno Haible  <bruno@clisp.org>
12503
12504         login_tty: Documentation.
12505         * doc/glibc-functions/login_tty.texi: New file.
12506         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
12507
12508 2010-03-21  Bruno Haible  <bruno@clisp.org>
12509
12510         pty: Consistent macro naming.
12511         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
12512         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
12513         * modules/pty (configure.ac): Update.
12514
12515 2010-03-21  Bruno Haible  <bruno@clisp.org>
12516
12517         Tests for openpty: Make stricter.
12518         * tests/test-openpty.c (main): Add test of canonical processing and
12519         erase.
12520         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
12521
12522         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
12523         * lib/openpty.c (openpty): New replacement function.
12524         * lib/pty.in.h: Include <termios.h>.
12525         (openpty): Update declaration. Add comments.
12526         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
12527         is not declared, arrange to provide the replacement. Check for _getpty
12528         and posix_openpt.
12529         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
12530         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
12531         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
12532         * modules/pty-tests (test_pty_c___LDADD): New variable.
12533         * doc/glibc-functions/openpty.texi: More supported platforms.
12534
12535 2010-03-21  Bruno Haible  <bruno@clisp.org>
12536
12537         setenv: Tweaks.
12538         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
12539         the test program.
12540         * doc/posix-functions/setenv.texi: Update platforms list.
12541
12542 2010-03-21  Bruno Haible  <bruno@clisp.org>
12543
12544         New module 'unlockpt'.
12545         * lib/unlockpt.c: New file, from glibc with modifications.
12546         * m4/unlockpt.m4: New file.
12547         * modules/unlockpt: New file.
12548         * lib/stdlib.in.h (unlockpt): New declaration.
12549         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
12550         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
12551         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
12552         HAVE_UNLOCKPT.
12553         * doc/posix-functions/unlockpt.texi: Mention the new module.
12554         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
12555         * config/srclist.txt: Add unlockpt.c (commented).
12556
12557 2010-03-21  Jim Meyering  <meyering@redhat.com>
12558
12559         maint.mk: prohibit inclusion of "intprops.h" without use
12560         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
12561
12562 2010-03-21  Bruno Haible  <bruno@clisp.org>
12563
12564         New module 'grantpt'.
12565         * lib/grantpt.c: New file, from glibc with modifications.
12566         * m4/grantpt.m4: New file.
12567         * modules/grantpt: New file.
12568         * lib/stdlib.in.h (grantpt): New declaration.
12569         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
12570         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
12571         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
12572         HAVE_GRANTPT.
12573         * doc/posix-functions/grantpt.texi: Mention the new module.
12574         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
12575         * config/srclist.txt: Add grantpt.c (commented).
12576
12577 2010-03-21  Bruno Haible  <bruno@clisp.org>
12578
12579         New module 'pt_chown'.
12580         * lib/pt_chown.c: New file, from glibc with modifications.
12581         * lib/pty-private.h: New file, from glibc with modifications.
12582         * modules/pt_chown: New file.
12583         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
12584
12585 2010-03-21  Bruno Haible  <bruno@clisp.org>
12586
12587         Tests for module 'ptsname'.
12588         * modules/ptsname-tests: New file.
12589         * tests/test-ptsname.c: New file.
12590
12591         New module 'ptsname'.
12592         * lib/ptsname.c: New file, from glibc with modifications.
12593         * m4/ptsname.m4: New file.
12594         * modules/ptsname: New file.
12595         * lib/stdlib.in.h (ptsname): New declaration.
12596         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
12597         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
12598         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
12599         HAVE_PTSNAME.
12600         * doc/posix-functions/ptsname.texi: Mention the new module.
12601         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
12602         * config/srclist.txt: Add ptsname.c (commented).
12603
12604 2010-03-21  Bruno Haible  <bruno@clisp.org>
12605
12606         Tests for module 'ttyname_r'.
12607         * modules/ttyname_r-tests: New file.
12608         * tests/test-ttyname_r.c: New file.
12609
12610         New module 'ttyname_r'.
12611         * lib/ttyname_r.c: New file.
12612         * m4/ttyname_r.m4: New file.
12613         * modules/ttyname_r: New file.
12614         * lib/unistd.in.h (ttyname_r): New declaration.
12615         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
12616         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
12617         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
12618         HAVE_TTYNAME_R.
12619         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
12620         * doc/posix-functions/ttyname_r.texi: Mention the new module.
12621
12622 2010-03-20  Bruno Haible  <bruno@clisp.org>
12623
12624         signal: Undefine macro definitions in C++ mode.
12625         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
12626         sigfillset): Undefine macro definitions from the system header in C++
12627         mode.
12628         Reported by John W. Eaton <jwe@gnu.org>.
12629
12630 2010-03-20  Bruno Haible  <bruno@clisp.org>
12631
12632         Ensure no #include statements inside extern "C" { ... }.
12633         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
12634         contain #include statements.
12635         * lib/time.in.h: Likewise.
12636
12637 2010-03-20  Bruno Haible  <bruno@clisp.org>
12638
12639         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
12640         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
12641         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
12642         Reported by John W. Eaton <jwe@gnu.org>.
12643
12644 2010-03-20  Bruno Haible  <bruno@clisp.org>
12645
12646         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
12647         Reported by Jim Meyering.
12648
12649 2010-03-20  Bruno Haible  <bruno@clisp.org>
12650
12651         pipe: Set errno upon failure.
12652         * lib/pipe.h: Specify that when -1 is returned, errno is set.
12653         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
12654         errno value in error message.
12655
12656 2010-03-20  Bruno Haible  <bruno@clisp.org>
12657             Jim Meyering  <meyering@redhat.com>
12658
12659         lchown: Avoid "unused variable" warning.
12660         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
12661
12662 2010-03-20  Bruno Haible  <bruno@clisp.org>
12663
12664         Work around unlink() bug on MacOS X 10.5.6.
12665         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
12666         attempting to unlink a parent directory.
12667         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
12668         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
12669         activate for the replacement function.
12670         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
12671
12672 2010-03-20  Bruno Haible  <bruno@clisp.org>
12673
12674         Fix link errors on Solaris 8.
12675         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
12676         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
12677
12678 2010-03-19  Jim Meyering  <meyering@redhat.com>
12679
12680         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
12681         The _LIBC implementation of build_range_exp correctly honors the
12682         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
12683         However, the non-_LIBC implementation would ignore that syntax-bit
12684         flag and return REG_ERANGE unconditionally.
12685         This change makes it honor that flag.
12686         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
12687         Make two pointer parameters "const".
12688         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
12689         (parse_bracket_exp): Update caller.
12690
12691         regex.m4: correct the reversed range endpoint ([b-a]) test
12692         * m4/regex.m4: When requiring that [b-a] evoke failure,
12693         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
12694         test pass once again for x86-based systems.
12695
12696 2010-03-19  Bruno Haible  <bruno@clisp.org>
12697
12698         scandir: Fix link error on Solaris 8.
12699         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
12700         macros.
12701
12702 2010-03-19  Bruno Haible  <bruno@clisp.org>
12703
12704         getusershell: Fix documentation.
12705         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
12706         module.
12707         * doc/glibc-functions/setusershell.texi: Likewise.
12708
12709         getusershell: Provide declaration, missing on Solaris 9.
12710         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
12711         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
12712         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
12713         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
12714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12715         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
12716         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
12717         HAVE_GETUSERSHELL.
12718         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
12719
12720 2010-03-19  Bruno Haible  <bruno@clisp.org>
12721
12722         wctype: Provide iswblank function.
12723         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
12724         exists and is fine.
12725         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
12726         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
12727         * tests/test-wctype.c (main): Re-enable the iswblank tests.
12728         * doc/posix-functions/iswblank.texi: Update.
12729
12730 2010-03-19  Bruno Haible  <bruno@clisp.org>
12731
12732         Tests of module 'pty' in C++ mode.
12733         * modules/pty-tests: New file.
12734         * tests/test-pty-c++.cc: New file.
12735         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
12736
12737 2010-03-19  Eric Blake  <eblake@redhat.com>
12738
12739         logb: fix documentation
12740         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
12741         1.5 declaration bug.
12742
12743         forkpty, openpty: prefer glibc's const-safe prototype
12744         * lib/forkpty.c (rpl_forkpty): New file.
12745         * lib/openpty.c (rpl_openpty): Likewise.
12746         * modules/forkpty (Files): Distribute it.
12747         * modules/openpty (Files): Likewise.
12748         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
12749         check...
12750         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
12751         replacement for for non-const BSD signature.
12752         * modules/pty (Makefile.am): Substitute witnesses.
12753         * lib/pty.in.h (forkpty, openpty): Declare replacements.
12754         * tests/test-forkpty.c: Update signature check.
12755         * tests/test-openpty.c: Likewise.
12756         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
12757         * doc/glibc-functions/openpty.texi (openpty): Likewise.
12758
12759         forkpty, openpty: split functions into new modules
12760         * modules/pty (Makefile.am): Substitute new witnesses.
12761         (Libraries): Move library detection...
12762         * modules/forkpty: ...into new module.
12763         * modules/openpty: Another new module.
12764         * modules/pty-tests: Rename and split...
12765         * modules/forkpty-tests: ...to this...
12766         * modules/openpty-tests: ...and this.
12767         * tests/test-pty.c: Rename and split...
12768         * tests/test-forkpty.c: ...to this...
12769         * tests/test-openpty.c: ...and this.
12770         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
12771         (gl_PTY): Split library searching...
12772         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
12773         (gl_FORKPTY, gl_OPENPTY): New macros.
12774         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
12775         * NEWS: Mention the split.
12776         * MODULES.html.sh (Misc): Document the modules.
12777         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
12778         * doc/glibc-functions/openpty.texi (openpty): Likewise.
12779
12780         pty: improve replacement header
12781         * lib/pty.in.h: New file.
12782         * modules/pty (Files): Ship it.
12783         (Makefile.am): Always build replacement.
12784         * m4/pty.m4: Rename...
12785         * m4/pty_h.m4: ...to this.
12786         (gl_PTY): Modernize setting of witness macros; update check of
12787         forkpty to take proper advantage of cache.
12788         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
12789
12790         getopt: avoid compiler warning
12791         * lib/getopt.c (attribute_hidden): Remove unused macro.
12792
12793 2010-03-18  Bruno Haible  <bruno@clisp.org>
12794
12795         Fix link errors on Solaris 8.
12796         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
12797         * modules/search-tests (test_search_c___LDADD): Likewise.
12798         * modules/signal-tests (test_signal_c___LDADD): Likewise.
12799         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
12800         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
12801         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
12802         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
12803         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
12804         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
12805
12806 2010-03-18  Bruno Haible  <bruno@clisp.org>
12807
12808         Fix bug introduced on 2010-03-14.
12809         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
12810         (gl_SPAWN_H): Require it.
12811         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
12812         Reported by Simon Josefsson.
12813
12814 2010-03-18  Bruno Haible  <bruno@clisp.org>
12815
12816         Fix typo introduced on 2009-12-31.
12817         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
12818         posix_spawn_file_actions_adddup2.
12819
12820 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
12821         and Eric Blake  <eblake@redhat.com>
12822
12823         test-vc-list-files-git: make more robust
12824         * tests/test-vc-list-files-git.sh: Unset problematic environment
12825         variables.  Chain commands together.
12826
12827 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
12828
12829         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
12830         `AC_CHECK_DECL' invocation.
12831
12832 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
12833
12834         * lib/inttostr.c (inttostr): Make sure the invocation of verify
12835         appears before executable statements. Suggested by Petr Sumbera
12836         <Petr.Sumbera@Sun.COM>.
12837
12838 2010-03-14  Bruno Haible  <bruno@clisp.org>
12839
12840         * tests/test-flock.c (test_exclusive): Comment out a test that causes
12841         portability problems. Instead use a simpler test.
12842         (main): Check that invalid arguments are rejected only on Linux.
12843
12844 2010-03-14  Bruno Haible  <bruno@clisp.org>
12845
12846         Fix bug introduced on 2009-12-31.
12847         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
12848         gl_PREREQ_SYS_H_WINSOCK2 always.
12849         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
12850         SYS_SOCKET_H variable.
12851         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
12852         Update comments.
12853         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
12854         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12855         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12856         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12857         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
12858
12859 2010-03-14  Bruno Haible  <bruno@clisp.org>
12860
12861         Fix values returned by sinl, cosl.
12862         * lib/trigl.h: Add specification comments.
12863         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
12864         that combines the values from the precomputed table with the values of
12865         the Chebyshev polynomials.
12866
12867 2010-03-14  Bruno Haible  <bruno@clisp.org>
12868
12869         Fix compilation error when modules 'posix_spawn[p]' are not used.
12870         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
12871         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
12872
12873 2010-03-14  Bruno Haible  <bruno@clisp.org>
12874
12875         Fix compilation error on mingw when module 'time_r' is not used.
12876         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
12877         is 1.
12878         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
12879         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
12880         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
12881         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
12882
12883 2010-03-14  Bruno Haible  <bruno@clisp.org>
12884
12885         Fix compilation error with Sun C.
12886         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
12887         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
12888         instead of GCC specific ULONG_LONG_MAX.
12889         * lib/xstrtoll.c: Likewise.
12890         * lib/xstrtoull.c: Likewise.
12891
12892 2010-03-13  Bruno Haible  <bruno@clisp.org>
12893
12894         Allow the user to disable C++ code and tests.
12895         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
12896         (gl_PROG_ANSI_CXX): Require it.
12897
12898 2010-03-13  Bruno Haible  <bruno@clisp.org>
12899
12900         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
12901         cases.
12902
12903 2010-03-13  Bruno Haible  <bruno@clisp.org>
12904
12905         Test that gnulib does not break the standard C++ headers.
12906         * tests/test-locale-c++2.cc: New file.
12907         * modules/locale-tests (Files): Add it.
12908         (Makefile.am): Compile it for test-locale-c++.
12909         * tests/test-math-c++2.cc: New file.
12910         * modules/math-tests (Files): Add it.
12911         (Makefile.am): Compile it for test-math-c++.
12912         * tests/test-signal-c++2.cc: New file.
12913         * modules/signal-tests (Files): Add it.
12914         (Makefile.am): Compile it for test-signal-c++.
12915         * tests/test-stdio-c++2.cc: New file.
12916         * modules/stdio-tests (Files): Add it.
12917         (Makefile.am): Compile it for test-stdio-c++.
12918         * tests/test-stdlib-c++2.cc: New file.
12919         * modules/stdlib-tests (Files): Add it.
12920         (Makefile.am): Compile it for test-stdlib-c++.
12921         * tests/test-string-c++2.cc: New file.
12922         * modules/string-tests (Files): Add it.
12923         (Makefile.am): Compile it for test-string-c++.
12924         * tests/test-time-c++2.cc: New file.
12925         * modules/time-tests (Files): Add it.
12926         (Makefile.am): Compile it for test-time-c++.
12927         Reported by John W. Eaton <jwe@gnu.org>.
12928
12929 2010-03-13  Bruno Haible  <bruno@clisp.org>
12930
12931         * gnulib-tool (func_usage): Clarify which options are available for
12932         --create-testdir and --create-megatestdir.
12933
12934 2010-03-13  Bruno Haible  <bruno@clisp.org>
12935
12936         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
12937         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
12938         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
12939         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
12940         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
12941         when appropriate.
12942         Reported by Jim Meyering.
12943
12944 2010-03-12  Simon Josefsson  <simon@josefsson.org>
12945
12946         * gnulib-tool (func_import): Explain origin of code.
12947
12948 2010-03-12  Bruno Haible  <bruno@clisp.org>
12949
12950         Fix problem with automake's definition of CXXLINK.
12951         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
12952         Reported by Simon Josefsson and Ludovic Courtès.
12953
12954 2010-03-12  Bruno Haible  <bruno@clisp.org>
12955
12956         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
12957         stable releases.
12958
12959 2010-03-11  Bruno Haible  <bruno@clisp.org>
12960
12961         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
12962         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
12963         whether the system provides one variant or multiple variants of the
12964         function.
12965         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
12966         C++ compilers.
12967         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
12968         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
12969         Reported by Jim Meyering.
12970
12971 2010-03-09  Simon Josefsson  <simon@josefsson.org>
12972
12973         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
12974
12975 2010-03-08  Bruno Haible  <bruno@clisp.org>
12976
12977         gnulib-tool: Add support for --libtool in --create-testdir.
12978         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
12979         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
12980
12981 2010-03-08  Eric Blake  <eblake@redhat.com>
12982
12983         gnulib-tool.texi: mention possibility of git submodule
12984         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
12985         submodules.
12986         * doc/.gitignore: Ignore another generated file.
12987
12988 2010-03-08  Karl Berry  <karl@gnu.org>
12989
12990         * doc/gnulib-tool.texi (VCS Issues): Mention third option
12991         of committing gnulib files while skipping others.
12992
12993 2010-03-07  Bruno Haible  <bruno@clisp.org>
12994
12995         Tests of module 'wctype' in C++ mode.
12996         * tests/test-wctype-c++.cc: New file.
12997         * modules/wctype-tests (Files): Add it and tests/signature.h.
12998         (Depends-on): Add ansi-c++-opt.
12999         (Makefile.am): Arrange to compile and run test-wctype-c++.
13000
13001         Tests of module 'wchar' in C++ mode.
13002         * tests/test-wchar-c++.cc: New file.
13003         * modules/wchar-tests (Files): Add it and tests/signature.h.
13004         (Depends-on): Add ansi-c++-opt.
13005         (Makefile.am): Arrange to compile and run test-wchar-c++.
13006         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
13007         gl_MODULE_INDICATOR.
13008
13009         Tests of module 'unistd' in C++ mode.
13010         * tests/test-unistd-c++.cc: New file.
13011         * modules/unistd-tests (Files): Add it and tests/signature.h.
13012         (Depends-on): Add ansi-c++-opt.
13013         (Makefile.am): Arrange to compile and run test-unistd-c++.
13014         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
13015         gl_MODULE_INDICATOR.
13016
13017         Tests of module 'time' in C++ mode.
13018         * tests/test-time-c++.cc: New file.
13019         * modules/time-tests (Files): Add it and tests/signature.h.
13020         (Depends-on): Add ansi-c++-opt.
13021         (Makefile.am): Arrange to compile and run test-time-c++.
13022         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
13023
13024         Tests of module 'sys_time' in C++ mode.
13025         * tests/test-sys_time-c++.cc: New file.
13026         * modules/sys_time-tests (Files): Add it and tests/signature.h.
13027         (Depends-on): Add ansi-c++-opt.
13028         (Makefile.am): Arrange to compile and run test-sys_time-c++.
13029         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
13030         gl_MODULE_INDICATOR.
13031
13032         Tests of module 'sys_stat' in C++ mode.
13033         * tests/test-sys_stat-c++.cc: New file.
13034         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
13035         (Depends-on): Add ansi-c++-opt.
13036         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
13037         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
13038         gl_MODULE_INDICATOR.
13039
13040         Tests of module 'sys_socket' in C++ mode.
13041         * tests/test-sys_socket-c++.cc: New file.
13042         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
13043         (Depends-on): Add ansi-c++-opt.
13044         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
13045         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
13046         gl_MODULE_INDICATOR.
13047
13048         Tests of module 'sys_select' in C++ mode.
13049         * tests/test-sys_select-c++.cc: New file.
13050         * modules/sys_select-tests (Files): Add it and tests/signature.h.
13051         (Depends-on): Add ansi-c++-opt.
13052         (Makefile.am): Arrange to compile and run test-sys_select-c++.
13053         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
13054         gl_MODULE_INDICATOR.
13055
13056         Tests of module 'sys_ioctl' in C++ mode.
13057         * tests/test-sys_ioctl-c++.cc: New file.
13058         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
13059         (Depends-on): Add ansi-c++-opt.
13060         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
13061         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
13062         gl_MODULE_INDICATOR.
13063
13064         Tests of module 'string' in C++ mode.
13065         * tests/test-string-c++.cc: New file.
13066         * modules/string-tests (Files): Add it and tests/signature.h.
13067         (Depends-on): Add ansi-c++-opt.
13068         (Makefile.am): Arrange to compile and run test-string-c++.
13069         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
13070         gl_MODULE_INDICATOR.
13071
13072         Tests of module 'stdlib' in C++ mode.
13073         * tests/test-stdlib-c++.cc: New file.
13074         * modules/stdlib-tests (Files): Add it and tests/signature.h.
13075         (Depends-on): Add ansi-c++-opt.
13076         (Makefile.am): Arrange to compile and run test-stdlib-c++.
13077         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
13078         gl_MODULE_INDICATOR.
13079
13080         Tests of module 'stdio' in C++ mode.
13081         * tests/test-stdio-c++.cc: New file.
13082         * modules/stdio-tests (Files): Add it and tests/signature.h.
13083         (Depends-on): Add ansi-c++-opt.
13084         (Makefile.am): Arrange to compile and run test-stdio-c++.
13085         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
13086         gl_MODULE_INDICATOR.
13087
13088         Tests of module 'spawn' in C++ mode.
13089         * tests/test-spawn-c++.cc: New file.
13090         * modules/spawn-tests (Files): Add it and tests/signature.h.
13091         (Depends-on): Add ansi-c++-opt.
13092         (Makefile.am): Arrange to compile and run test-spawn-c++.
13093         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
13094         gl_MODULE_INDICATOR.
13095
13096         Tests of module 'signal' in C++ mode.
13097         * tests/test-signal-c++.cc: New file.
13098         * modules/signal-tests (Files): Add it and tests/signature.h.
13099         (Depends-on): Add ansi-c++-opt.
13100         (Makefile.am): Arrange to compile and run test-signal-c++.
13101         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
13102         gl_MODULE_INDICATOR.
13103
13104         Tests of module 'search' in C++ mode.
13105         * tests/test-search-c++.cc: New file.
13106         * modules/search-tests (Files): Add it and tests/signature.h.
13107         (Depends-on): Add ansi-c++-opt.
13108         (Makefile.am): Arrange to compile and run test-search-c++.
13109         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
13110         gl_MODULE_INDICATOR.
13111
13112         Tests of module 'math' in C++ mode.
13113         * tests/test-math-c++.cc: New file.
13114         * modules/math-tests (Files): Add it and tests/signature.h.
13115         (Depends-on): Add ansi-c++-opt.
13116         (Makefile.am): Arrange to compile and run test-math-c++.
13117         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
13118
13119         Tests of module 'locale' in C++ mode.
13120         * tests/test-locale-c++.cc: New file.
13121         * modules/locale-tests (Files): Add it and tests/signature.h.
13122         (Depends-on): Add ansi-c++-opt.
13123         (Makefile.am): Arrange to compile and run test-locale-c++.
13124         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
13125         gl_MODULE_INDICATOR.
13126
13127         Tests of module 'langinfo' in C++ mode.
13128         * tests/test-langinfo-c++.cc: New file.
13129         * modules/langinfo-tests (Files): Add it and tests/signature.h.
13130         (Depends-on): Add ansi-c++-opt.
13131         (Makefile.am): Arrange to compile and run test-langinfo-c++.
13132         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
13133         gl_MODULE_INDICATOR.
13134
13135         Tests of module 'iconv-h' in C++ mode.
13136         * tests/test-iconv-h-c++.cc: New file.
13137         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
13138         (Depends-on): Add ansi-c++-opt.
13139         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
13140
13141         Tests of module 'glob' in C++ mode.
13142         * tests/test-glob-c++.cc: New file.
13143         * modules/glob-tests (Files): Add it.
13144         (Depends-on): Add ansi-c++-opt.
13145         (Makefile.am): Arrange to compile and run test-glob-c++.
13146
13147         Tests of module 'fcntl-h' in C++ mode.
13148         * tests/test-fcntl-h-c++.cc: New file.
13149         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
13150         (Depends-on): Add ansi-c++-opt.
13151         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
13152         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
13153         gl_MODULE_INDICATOR.
13154
13155         Tests of module 'dirent' in C++ mode.
13156         * tests/test-dirent-c++.cc: New file.
13157         * modules/dirent-tests (Files): Add it and tests/signature.h.
13158         (Depends-on): Add ansi-c++-opt.
13159         (Makefile.am): Arrange to compile and run test-dirent-c++.
13160         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
13161         gl_MODULE_INDICATOR.
13162
13163         New module 'ansi-c++-opt'.
13164         * modules/ansi-c++-opt: New file.
13165         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
13166
13167         Document C++ namespace mode.
13168         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
13169
13170         wctype: Avoid #define replacements in C++ mode.
13171         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
13172         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
13173         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
13174         In C++, define a namespaced alias symbol.
13175         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
13176         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
13177         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
13178         rule.
13179
13180         wchar: Avoid #define replacements in C++ mode.
13181         * lib/wchar.in.h: Include c++defs.h.
13182         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
13183         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
13184         symbol.
13185         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
13186         * modules/wchar (Depends-on): Add c++defs.
13187         (Makefile.am): Update wchar.h rule.
13188
13189         unistd: Avoid #define replacements in C++ mode.
13190         * lib/unistd.in.h: Include c++defs.h.
13191         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
13192         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
13193         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
13194         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
13195         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
13196         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
13197         symbol.
13198         (environ): Update.
13199         * modules/unistd (Depends-on): Add c++defs.
13200         (Makefile.am): Update unistd.h rule.
13201
13202         time: Avoid #define replacements in C++ mode.
13203         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
13204         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
13205         define a namespaced alias symbol.
13206         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
13207         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
13208         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
13209         * modules/time (Depends-on): Add c++defs, warn-on-use.
13210         (Makefile.am): Update time.h rule.
13211         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
13212         * modules/nanosleep (configure.ac): Likewise.
13213         * modules/strptime (configure.ac): Likewise.
13214         * modules/timegm (configure.ac): Likewise.
13215
13216         sys_time: Avoid #define replacements in C++ mode.
13217         * lib/sys_time.in.h: Include c++defs.h.
13218         (gettimeofday): In C++, define a namespaced alias symbol.
13219         * modules/sys_time (Depends-on): Add c++defs.
13220         (Makefile.am): Update sys/time.h rule.
13221
13222         sys_stat: Avoid #define replacements in C++ mode.
13223         * lib/sys_stat.in.h: Include c++defs.h.
13224         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
13225         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
13226         namespaced alias symbol.
13227         In C++, define a namespaced alias symbol.
13228         * modules/sys_stat (Depends-on): Add c++defs.
13229         (Makefile.am): Update sys/stat.h rule.
13230
13231         sys_socket: Avoid #define replacements in C++ mode.
13232         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
13233         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
13234         definitions also when the system has a <sys/socket.h>.
13235         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
13236         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
13237         In C++, define a namespaced alias symbol.
13238         * modules/sys_socket (Depends-on): Add c++defs.
13239         (Makefile.am): Update sys/socket.h rule.
13240
13241         sys_select: Avoid #define replacements in C++ mode.
13242         * lib/sys_select.in.h: Include c++defs.h. Enable the function
13243         definitions also when the system has a <sys/select.h>.
13244         (select): In C++, define a namespaced alias symbol.
13245         * modules/sys_select (Depends-on): Add c++defs.
13246         (Makefile.am): Update sys/select.h rule.
13247
13248         sys_ioctl: Avoid #define replacements in C++ mode.
13249         * lib/sys_ioctl.in.h: Include c++defs.h.
13250         (ioctl): In C++, define a namespaced alias symbol.
13251         * modules/sys_ioctl (Depends-on): Add c++defs.
13252         (Makefile.am): Update sys/ioctl.h rule.
13253
13254         string: Avoid #define replacements in C++ mode.
13255         * lib/string.in.h: Include c++defs.h.
13256         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
13257         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
13258         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
13259         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
13260         strsignal, strverscmp): In C++, define a namespaced alias symbol.
13261         * modules/string (Depends-on): Add c++defs.
13262         (Makefile.am): Update string.h rule.
13263
13264         stdlib: Avoid #define replacements in C++ mode.
13265         * lib/stdlib.in.h: Include c++defs.h.
13266         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
13267         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
13268         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
13269         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
13270         symbol.
13271         * modules/stdlib (Depends-on): Add c++defs.
13272         (Makefile.am): Update stdlib.h rule.
13273
13274         stdio: Avoid #define replacements in C++ mode.
13275         * lib/stdio.in.h: Include c++defs.h.
13276         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
13277         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
13278         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
13279         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
13280         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
13281         namespaced alias symbol.
13282         * modules/stdio (Depends-on): Add c++defs.
13283         (Makefile.am): Update stdio.h rule.
13284
13285         spawn: Avoid #define replacements in C++ mode.
13286         * lib/spawn.in.h: Include c++defs.h.
13287         (posix_spawn, posix_spawnp, posix_spawnattr_init,
13288         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
13289         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
13290         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
13291         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
13292         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
13293         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
13294         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
13295         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
13296         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
13297         In C++, define a namespaced alias symbol.
13298         * modules/spawn (Depends-on): Add c++defs.
13299         (Makefile.am): Update spawn.h rule.
13300
13301         signal: Avoid #define replacements in C++ mode.
13302         * lib/signal.in.h: Include c++defs.h.
13303         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
13304         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
13305         namespaced alias symbol.
13306         * modules/signal (Depends-on): Add c++defs.
13307         (Makefile.am): Update signal.h rule.
13308
13309         search: Avoid #define replacements in C++ mode.
13310         * lib/search.in.h: Include c++defs.h.
13311         (_gl_search_compar_fn, _gl_search_action_fn): New types.
13312         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
13313         symbol.
13314         * modules/search (Depends-on): Add c++defs.
13315         (Makefile.am): Update search.h rule.
13316
13317         math: Avoid #define replacements in C++ mode.
13318         * lib/math.in.h: Include c++defs.h.
13319         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
13320         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
13321         trunc, truncl): In C++, define a namespaced alias symbol.
13322         * modules/math (Depends-on): Add c++defs.
13323         (Makefile.am): Update math.h rule.
13324
13325         locale: Avoid #define replacements in C++ mode.
13326         * lib/locale.in.h: Include c++defs.h.
13327         (duplocale): In C++, define a namespaced alias symbol.
13328         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
13329         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
13330         * modules/locale (Depends-on): Add c++defs.
13331         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
13332
13333         langinfo: Avoid #define replacements in C++ mode.
13334         * lib/langinfo.in.h: Include c++defs.h.
13335         (nl_langinfo): In C++, define a namespaced alias symbol.
13336         * modules/langinfo (Depends-on): Add c++defs.
13337         (Makefile.am): Update langinfo.h rule.
13338
13339         iconv-h: Avoid #define replacements in C++ mode.
13340         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
13341         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
13342         symbol.
13343         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
13344         whenever iconv is present.
13345         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
13346         (Makefile.am): Update iconv.h rule.
13347
13348         glob: Avoid #define replacements in C++ mode.
13349         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
13350         (_gl_glob_errfunc_fn): New type.
13351         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
13352         symbol.
13353         * modules/glob (Depends-on): Add c++defs, warn-on-use.
13354         (Makefile.am): Update glob.h rule.
13355
13356         fcntl-h: Avoid #define replacements in C++ mode.
13357         * lib/fcntl.in.h: Include c++defs.h.
13358         (fcntl, open, openat): In C++, define a namespaced alias symbol.
13359         * modules/fcntl-h (Depends-on): Add c++defs.
13360         (Makefile.am): Update fcntl.h rule.
13361
13362         dirent: Avoid #define replacements in C++ mode.
13363         * lib/dirent.in.h: Include c++defs.h.
13364         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
13365         namespaced alias symbol.
13366         (dirfd): Update declaration.
13367         * modules/dirent (Depends-on): Add c++defs.
13368         (Makefile.am): Update dirent.h rule.
13369
13370         ctype: Make it usable in C++ code.
13371         * lib/ctype.in.h: Include c++defs.h.
13372         (isblank): Declare as extern "C".
13373         * modules/ctype (Depends-on): Add c++defs.
13374         (Makefile.am): Update ctype.h rule.
13375
13376         New module 'c++defs'.
13377         * modules/c++defs: New file.
13378         * build-aux/c++defs.h: New file.
13379         Reported by John W. Eaton <jwe@gnu.org>.
13380
13381 2010-03-07  Bruno Haible  <bruno@clisp.org>
13382
13383         logb: Provide missing declaration for Cygwin.
13384         * lib/math.in.h (logb): New declaration.
13385         * m4/logb.m4: New file.
13386         * modules/logb (Files): Add m4/logb.m4.
13387         (Depends-on): Add math.
13388         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
13389         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
13390         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
13391         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
13392         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
13393
13394 2010-03-07  Bruno Haible  <bruno@clisp.org>
13395
13396         Fix test-cond link error.
13397         * tests/test-cond.c: Include <stdio.h>.
13398
13399 2010-03-07  Bruno Haible  <bruno@clisp.org>
13400
13401         Fix test-dirent-safer link error.
13402         * modules/dirent-safer-tests (Makefile.am): Define
13403         test_dirent_safer_LDADD.
13404
13405 2010-03-07  Bruno Haible  <bruno@clisp.org>
13406
13407         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
13408         among default module list.
13409
13410 2010-03-07  Bruno Haible  <bruno@clisp.org>
13411
13412         Fix link error on platforms with GNU libiconv.
13413         * modules/unistr/u8-strcoll-tests (Makefile): Define
13414         test_u8_strcoll_LDADD.
13415         * modules/unistr/u16-strcoll-tests (Makefile): Define
13416         test_u16_strcoll_LDADD.
13417         * modules/unistr/u32-strcoll-tests (Makefile): Define
13418         test_u32_strcoll_LDADD.
13419
13420 2010-03-07  Bruno Haible  <bruno@clisp.org>
13421
13422         Use POSIX declarations for socket functions.
13423         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
13424         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
13425         rpl_sendto): Change declaration to match POSIX.
13426         * lib/connect.c (rpl_connect): Likewise.
13427         * lib/accept.c (rpl_accept): Likewise.
13428         * lib/bind.c (rpl_bind): Likewise.
13429         * lib/getpeername.c (rpl_getpeername): Likewise.
13430         * lib/getsockname.c (rpl_getsockname): Likewise.
13431         * lib/recv.c (rpl_recv): Likewise.
13432         * lib/send.c (rpl_send): Likewise.
13433         * lib/recvfrom.c (rpl_recvfrom): Likewise.
13434         * lib/sendto.c (rpl_sendto): Likewise.
13435
13436 2010-03-06  Bruno Haible  <bruno@clisp.org>
13437
13438         Clarify access, euidaccess, faccessat.
13439         * doc/posix-functions/faccessat.texi: Mention security problem under
13440         "Other problems", not "Portability problems".
13441         * doc/posix-functions/access.texi: Likewise. Mention a related security
13442         problem.
13443         * doc/glibc-functions/euidaccess.texi: Mention security problems.
13444         * lib/euidaccess.c: Add comments about platforms.
13445         * lib/unistd.in.h (access, euidaccess): Add warnings.
13446
13447 2010-03-07  Bruno Haible  <bruno@clisp.org>
13448
13449         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
13450         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
13451         (POSIX_SPAWN_SETSCHEDULER): Likewise.
13452         (POSIX_SPAWN_USEVFORK): Define in a way that works when
13453         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
13454         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
13455         declare when POSIX_SPAWN_SETSCHEDULER is zero.
13456         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
13457         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
13458         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
13459         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
13460         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
13461         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
13462         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
13463         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
13464         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
13465         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
13466         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
13467         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
13468         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
13469         Likewise.
13470         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
13471         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
13472         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
13473         Likewise.
13474         * tests/test-spawn.c (main): Make it work when
13475         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
13476
13477 2010-03-07  Bruno Haible  <bruno@clisp.org>
13478
13479         Fix incorrect Makefile.am generation in German locale.
13480         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13481         Execute sed command with character range in C locale.
13482
13483 2010-03-06  Bruno Haible  <bruno@clisp.org>
13484
13485         Tests for module 'iconv-h'.
13486         * modules/iconv-h-tests: New file.
13487         * tests/test-iconv-h.c: New file.
13488
13489         New module 'iconv-h'.
13490         * modules/iconv-h: New file.
13491         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
13492         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
13493         (configure.ac): Remove gl_ICONV_H.
13494         (Makefile.am): Remove rule for iconv.h.
13495
13496 2010-03-06  Bruno Haible  <bruno@clisp.org>
13497
13498         More consistent naming of *.m4 files.
13499         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
13500         * modules/wctype (Files): Update.
13501
13502         More consistent naming of *.m4 files.
13503         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
13504         * modules/wchar (Files): Update.
13505
13506 2010-03-06  Jim Meyering  <meyering@redhat.com>
13507
13508         euidaccess: relax license to LGPLv2+
13509         * modules/euidaccess (License): Relax to LGPLv2+.
13510
13511 2010-03-06  Bruno Haible  <bruno@clisp.org>
13512
13513         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
13514         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
13515         (Makefile.am): Augment lib_SOURCES instead.
13516
13517 2010-03-04  Jim Meyering  <meyering@redhat.com>
13518
13519         utime: remove obsolete module
13520         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
13521         unnecessary for years, and has been marked as obsolete for 10 months.
13522         * modules/utime: Remove file.
13523         * lib/utime.c: Remove file.
13524         * m4/utime.m4: Remove file.
13525         * m4/utimes-null.m4: Remove file.
13526         * doc/posix-functions/utime.texi (utime): Remove reference to
13527         the module.  Move the sole "fixed by gnulib" item into the
13528         "problems not fixed by Gnulib" list.
13529         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
13530
13531 2010-03-05  Simon Josefsson  <simon@josefsson.org>
13532
13533         * modules/exit (License): Relax license to LGPLv2+.
13534         (Status): Mark as obsolete.
13535         * NEWS: Mention deprecated 'exit' module.
13536         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
13537         of now obsolete 'exit'.
13538
13539 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13540
13541         fts-lgpl: remove unused module
13542         * modules/fts-lgpl: Remove.
13543         * MODULES.html.sh (func_all_modules): Adjust.
13544         * check-module (find_included_lib_files): Adjust.
13545         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
13546
13547 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
13548
13549         copy-acl: enhance Solaris ACL error handling
13550         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
13551         * lib/set-mode-acl.c (qset_acl): Likewise.
13552
13553 2010-03-02  Bruno Haible  <bruno@clisp.org>
13554
13555         spawn: Don't override the system defined values on FreeBSD 8.
13556         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
13557         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
13558         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
13559         if HAVE_POSIX_SPAWN is 1.
13560         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
13561
13562 2010-03-01  Bruno Haible  <bruno@clisp.org>
13563
13564         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
13565         regarding Automake.
13566
13567 2010-02-25  Bruno Haible  <bruno@clisp.org>
13568
13569         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
13570         * gnulib-tool: Define 'echo' as a function only before the ksh alias
13571         setting, not afterwards.
13572         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
13573
13574 2010-02-24  Eric Blake  <eblake@redhat.com>
13575
13576         bootstrap, git-version-gen: use timestamp
13577         * build-aux/git-version-gen (scriptversion): Force UTC.
13578         * build-aux/bootstrap (scriptversion): New variable.
13579
13580         bootstrap: allow older git
13581         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
13582         older than 1.6.4.  Requested by the libvirt project.
13583
13584 2010-02-23  Eric Blake  <eblake@redhat.com>
13585
13586         warn-on-use: work with old autoconf
13587         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
13588         AS_VAR semantics of autoconf 2.60.
13589         Reported by Bruno Haible.
13590
13591         bootstrap: improve some comments
13592         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
13593         clarification comments.
13594
13595         gettimeofday: provide correct function
13596         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
13597         when replacement is declared, otherwise provide gettimeofday.
13598         Reported by Michael Goffioul.
13599
13600 2010-02-23  Jim Meyering  <meyering@redhat.com>
13601
13602         lib-ignore: relax license to "unlimited", not LGPLv2+
13603         * modules/lib-ignore (License): Relax to "unlimited".
13604
13605 2010-02-23  Jim Meyering  <meyering@redhat.com>
13606
13607         lib-ignore: relax license to LGPLv2+
13608         * modules/lib-ignore (License): Relax to LGPLv2+.
13609
13610 2010-02-22  Eric Blake  <eblake@redhat.com>
13611
13612         lseek: avoid bash 3.2 broken pipe bug
13613         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
13614         warning from bash 3.2.
13615         Reported by Ben Pfaff, with analysis from Bruno Haible.
13616
13617         bootstrap: support non-FSF copyright holder
13618         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
13619         bootstrap.conf override of COPYRIGHT_HOLDER.
13620         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
13621
13622         bootstrap: interoperate with gettext 0.14.1
13623         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
13624
13625         bootstrap: allow for alternate submodule location
13626         * build-aux/bootstrap (gnulib_path): New variable; use instead of
13627         hardcoding submodule location.
13628         (gnulib_mk): Allow direct use of Makefile.am.
13629
13630         bootstrap: use GNULIB_SRCDIR to reduce disk usage
13631         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
13632         rather than reconfiguring where the submodule points.
13633
13634         gettimeofday: restore support for platforms that lack function
13635         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
13636         replacement if function is missing.
13637         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
13638         * modules/sys_time (Makefile.am): Substitute it.
13639         * lib/sys_time.in.h (gettimeofday): Check it.
13640         Reported by Michael Goffioul.
13641
13642 2010-02-21  Bruno Haible  <bruno@clisp.org>
13643
13644         * lib/stdio.in.h (obstack_printf): Fix typo.
13645
13646 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
13647
13648         vc-list-files: use bzr ls's -R option
13649         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
13650         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
13651
13652 2010-02-21  Jim Meyering  <meyering@redhat.com>
13653
13654         init.sh: fix EXEEXT shims to work also for names like test-prog
13655         * tests/init.sh: Re-exec a better shell, when needed.
13656         If the current shell lacks support for posix $(...), an init.sh-using
13657         test will now try to find a shell that supports that.  If EXEEXT is
13658         nonempty, we also require support for hyphen-in-alias-name and shell
13659         substitutions like ${var#glob}.  Failure to find such a shell results
13660         in a skipped test.
13661
13662 2010-02-21  Bruno Haible  <bruno@clisp.org>
13663
13664         Really work around around "broken pipe" error message from bash 3.2.
13665         * gnulib-tool (func_reset_sigpipe): Remove function.
13666         (echo): In bash 3.2, define to a function that uses printf.
13667         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
13668
13669 2010-02-20  Bruno Haible  <bruno@clisp.org>
13670
13671         Restore support for automake 1.9.6 with autoconf 2.61.
13672         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
13673         Reported by James Youngman <jay@gnu.org>.
13674
13675 2010-02-20  Bruno Haible  <bruno@clisp.org>
13676
13677         Improve *printf warning condition.
13678         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
13679         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
13680         and the function is overridden due to SIGPIPE emulation.
13681
13682 2010-02-20  Bruno Haible  <bruno@clisp.org>
13683
13684         * lib/stdio.in.h: Tweak comments.
13685
13686 2010-02-19  Bruno Haible  <bruno@clisp.org>
13687
13688         Make it easier to find modules. New gnulib-tool option '--find'.
13689         * gnulib-tool: New option --find.
13690         (func_usage): Document it.
13691         (func_sanitize_modulelist): New function, extracted from
13692         func_all_modules.
13693         (func_all_modules): Invoke it.
13694         * doc/gnulib-tool.texi (Which modules?): New node.
13695
13696 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
13697
13698         * lib/sys_select.in.h: Provide select replacement even if
13699         sys/select.h exists on a system, for Interix.
13700
13701 2010-02-18  Jim Meyering  <meyering@redhat.com>
13702
13703         init.sh: don't use $(...) just yet
13704         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
13705         to accommodate e.g., Solaris' /bin/sh.
13706
13707 2010-02-17  Bruno Haible  <bruno@clisp.org>
13708
13709         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
13710         Reported by Ludovic Courtès <ludo@gnu.org>.
13711
13712 2010-02-16  Simon Josefsson  <simon@josefsson.org>
13713
13714         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
13715         linking with -lintl.
13716
13717 2010-02-17  Simon Josefsson  <simon@josefsson.org>
13718
13719         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
13720         if not provided by the system's netdb.h.  Reported by
13721         ludo@gnu.org (Ludovic Courtès).
13722
13723 2010-02-15  Jim Meyering  <meyering@redhat.com>
13724
13725         init.sh: improve portability and efficiency
13726         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
13727         "dummy" in a for loop.
13728         Use '!', not '^' to select the complement of a character set used
13729         in a "case" statement.
13730         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
13731         Suggestions from Eric Blake.
13732
13733         init.sh: automatically accommodate programs with the .exe suffix
13734         Automatically arrange for an invocation of "prog" to execute the
13735         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
13736         may use the simpler "prog", yet still work when built on a system
13737         that requires specifying the added suffix.
13738         Do this by constructing a function named "prog" that invokes
13739         "prog.exe" for each .exe file in selected directories.
13740         * tests/init.sh (find_exe_basenames_): New function.
13741         (create_exe_shim_functions_): New function.
13742         (path_prepend_): Use it.
13743
13744         maint.mk: mark syntax-check sc_*.m rules as .PHONY
13745         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
13746         "make -t syntax-check" doesn't create a ton of sc_*.m files.
13747
13748 2010-02-14  Jim Meyering  <meyering@redhat.com>
13749
13750         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
13751         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
13752         (sc_prohibit_hash_pjw_without_use): New rule.
13753
13754         maint.mk: allow the default upload destination dir to be overridden
13755         * top/maint.mk (upload_dest_dir_): Define with a default that
13756         preserves the status quo.
13757         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
13758         Reported by Peter Simons.
13759
13760         maint.mk: prohibit inclusion of "hash.h" without_use
13761         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
13762
13763 2010-02-10  Jim Meyering  <meyering@redhat.com>
13764
13765         maint.mk: prohibit inclusion of "ignore-value.h" without_use
13766         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
13767
13768 2010-02-09  Eric Blake  <ebb9@byu.net>
13769         and Bruno Haible  <bruno@clisp.org>
13770
13771         obstack-printf-posix: ensure declaration
13772         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
13773         extracted from gl_FUNC_OBSTACK_PRINTF.
13774         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
13775         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
13776         Likewise.
13777         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
13778         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
13779         0.
13780
13781 2010-02-08  Bruno Haible  <bruno@clisp.org>
13782
13783         gnulib-tool: Fix typo in 2010-02-07 commit.
13784         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
13785         Reported by Eric Blake.
13786
13787 2010-02-07  Bruno Haible  <bruno@clisp.org>
13788
13789         gnulib-tool: Fix up caching patches.
13790         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
13791         option --no-cache. Use associative arrays when supported by the shell.
13792         (sed_comments): New variable.
13793         (modcache): Renamed from do_cache.
13794         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
13795         abbreviate unnecessarily.
13796         (have_associative): New variable.
13797         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
13798         way also for ksh and zsh.
13799         (func_init_sed_convert_to_cache_statements): New function, extracted
13800         from func_cache_lookup_module. Add support for associative arrays.
13801         Don't set the c_MODULE_cached variable here. Ignore all lines before
13802         the first field header. Remove only the final newline, not all trailing
13803         newlines. Support empty fields correctly. Limit the use of 'eval' to
13804         assignments.
13805         (func_get_description, func_get_status, func_get_notice,
13806         func_get_applicability, func_get_filelist, func_get_dependencies,
13807         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
13808         func_get_automake_snippet, func_get_include_directive,
13809         func_get_link_directive, func_get_license, func_get_maintainer):
13810         Update documentation. List the unoptimized code first. Add support for
13811         associative arrays. Limit the use of 'eval' to assignments.
13812         (func_get_applicability): Undo stylistic pessimisations.
13813         (func_get_automake_snippet, func_get_include_directive): Reduce code
13814         duplication.
13815         (func_modules_transitive_closure, func_modules_add_dummy,
13816         func_modules_notice, func_modules_to_filelist, func_add_file,
13817         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
13818         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
13819         func_create_testdir, func_create_megatestdir): Update documentation.
13820
13821 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13822
13823         * gnulib-tool (func_cache_lookup_module): Store the module name
13824         belonging to the cache variable; error out if two different
13825         module names map to the same cache variable name.
13826
13827 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13828
13829         gnulib-tool: Make caching optional.
13830         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
13831         Update matching short versions of --no-changelog.
13832         (func_usage): Update.
13833         (sed_extract_cache_prog): Renamed from ...
13834         (sed_extract_prog): ... this; revert to old extraction script.
13835         (func_get_description, func_get_status)
13836         (func_get_notice, func_get_applicability, func_get_filelist)
13837         (func_get_dependencies, func_get_autoconf_early_snippet)
13838         (func_get_autoconf_snippet, func_get_automake_snippet)
13839         (func_get_include_directive, func_get_link_directive)
13840         (func_get_license, func_get_maintainer): If $do_cache is false,
13841         use old, non-caching extraction scripts.
13842         Suggestion by Bruno Haible.
13843
13844 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13845
13846         gnulib-tool: cache module metainformation.
13847         * gnulib-tool (sed_extract_prog): Match newline before each
13848         header, and rewrite header to a shell variable suffix.
13849         (func_cache_var, func_cache_lookup_module): New functions,
13850         to turn a module name into a cache variable prefix, and to
13851         look up and cache module metainformation.
13852         (func_get_description, func_get_status)
13853         (func_get_notice, func_get_applicability, func_get_filelist)
13854         (func_get_dependencies, func_get_autoconf_early_snippet)
13855         (func_get_autoconf_snippet, func_get_automake_snippet)
13856         (func_get_include_directive, func_get_link_directive)
13857         (func_get_license, func_get_maintainer): Use
13858         func_cache_lookup_module.
13859
13860 2010-02-07  Bruno Haible  <bruno@clisp.org>
13861
13862         fnctl: Fix missing dependency.
13863         * modules/fcntl (Depends-on): Add getdtablesize.
13864         Reported by John W. Eaton <jwe@gnu.org>.
13865
13866 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
13867
13868         Argp: fix recognition of short alias options.
13869
13870         * lib/argp-parse.c (convert_options): Fix improper use of
13871         `|' between character values.
13872         * tests/test-argp.c (group1_option): New alias option
13873         --read (-r).
13874         (group1_parser): Special handling for 'r'.
13875         (test15): New test case.
13876         (test_fun): Add test15.
13877         * tests/test-argp-2.sh: Update expected --help and --usage
13878         outputs.
13879
13880 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
13881
13882         * tests/test-argp.c: Fix indentation.
13883
13884 2010-02-04  Eric Blake  <ebb9@byu.net>
13885
13886         gettimeofday: expose type of second argument
13887         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
13888         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
13889         * tests/test-gettimeofday.c: Use it to silence warning.
13890         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
13891         the issue.
13892
13893 2010-02-03  Jim Meyering  <meyering@redhat.com>
13894
13895         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
13896         * lib/regcomp.c (TYPE_SIGNED): Define.
13897         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
13898
13899         regcomp.c: avoid a new -Wshadow warning
13900         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
13901
13902 2010-02-01  Jim Meyering  <meyering@redhat.com>
13903
13904         removing useless parentheses in cpp #define directives
13905         For motivation, see commit c0221df4, "define STREQ(a,b)
13906         consistently, removing useless parentheses"
13907         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
13908         * lib/mountlist.c (MNT_IGNORE): Likewise.
13909         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
13910
13911 2010-02-01  Eric Blake  <ebb9@byu.net>
13912
13913         sys_time: use link-warning
13914         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
13915         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
13916         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
13917         * modules/sys_time (Depends-on): Add warn-on-use.
13918         (Makefile.am): Always build replacement.
13919         (configure.ac): Update substitutions.
13920         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
13921         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
13922         bother with SYS_TIME_H.
13923         * modules/gettimeofday (configure.ac): Declare indicator.
13924         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
13925         in use.
13926
13927         closein-tests: silence compiler warning
13928         * tests/test-closein.c (main): Ignore fread result.
13929         * modules/closein-tests (Depends-on): Add ignore-value.
13930
13931         tests: silence warning about system return
13932         * tests/test-areadlink-with-size.c (main): Ignore system result.
13933         * tests/test-areadlink.c (main): Likewise.
13934         * tests/test-areadlinkat-with-size.c (main): Likewise.
13935         * tests/test-areadlinkat.c (main): Likewise.
13936         * tests/test-canonicalize-lgpl.c (main): Likewise.
13937         * tests/test-canonicalize.c (main): Likewise.
13938         * tests/test-chown.c (main): Likewise.
13939         * tests/test-fchownat.c (main): Likewise.
13940         * tests/test-fdutimensat.c (main): Likewise.
13941         * tests/test-fstatat.c (main): Likewise.
13942         * tests/test-futimens.c (main): Likewise.
13943         * tests/test-lchown.c (main): Likewise.
13944         * tests/test-link.c (main): Likewise.
13945         * tests/test-linkat.c (main): Likewise.
13946         * tests/test-lstat.c (main): Likewise.
13947         * tests/test-mkdir.c (main): Likewise.
13948         * tests/test-mkdirat.c (main): Likewise.
13949         * tests/test-mkfifo.c (main): Likewise.
13950         * tests/test-mkfifoat.c (main): Likewise.
13951         * tests/test-mknod.c (main): Likewise.
13952         * tests/test-readlink.c (main): Likewise.
13953         * tests/test-remove.c (main): Likewise.
13954         * tests/test-rename.c (main): Likewise.
13955         * tests/test-renameat.c (main): Likewise.
13956         * tests/test-rmdir.c (main): Likewise.
13957         * tests/test-symlink.c (main): Likewise.
13958         * tests/test-symlinkat.c (main): Likewise.
13959         * tests/test-unlink.c (main): Likewise.
13960         * tests/test-unlinkat.c (main): Likewise.
13961         * tests/test-utimens.c (main): Likewise.
13962         * tests/test-utimensat.c (main): Likewise.
13963         * modules/areadlink-tests (Depends-on): Add ignore-value.
13964         * modules/areadlink-with-size-tests (Depends-on): Likewise.
13965         * modules/areadlinkat-tests (Depends-on): Likewise.
13966         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
13967         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
13968         * modules/canonicalize-tests (Depends-on): Likewise.
13969         * modules/chown-tests (Depends-on): Likewise.
13970         * modules/fdutimensat-tests (Depends-on): Likewise.
13971         * modules/futimens-tests (Depends-on): Likewise.
13972         * modules/lchown-tests (Depends-on): Likewise.
13973         * modules/link-tests (Depends-on): Likewise.
13974         * modules/linkat-tests (Depends-on): Likewise.
13975         * modules/lstat-tests (Depends-on): Likewise.
13976         * modules/mkdir-tests (Depends-on): Likewise.
13977         * modules/mkfifo-tests (Depends-on): Likewise.
13978         * modules/mkfifoat-tests (Depends-on): Likewise.
13979         * modules/mknod-tests (Depends-on): Likewise.
13980         * modules/openat-tests (Depends-on): Likewise.
13981         * modules/readlink-tests (Depends-on): Likewise.
13982         * modules/remove-tests (Depends-on): Likewise.
13983         * modules/rename-tests (Depends-on): Likewise.
13984         * modules/renameat-tests (Depends-on): Likewise.
13985         * modules/rmdir-tests (Depends-on): Likewise.
13986         * modules/symlink-tests (Depends-on): Likewise.
13987         * modules/symlinkat-tests (Depends-on): Likewise.
13988         * modules/unlink-tests (Depends-on): Likewise.
13989         * modules/utimens-tests (Depends-on): Likewise.
13990         * modules/utimensat-tests (Depends-on): Likewise.
13991
13992 2010-01-31  Bruno Haible  <bruno@clisp.org>
13993
13994         Perform the same test for many <math.h> functions.
13995         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
13996         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
13997         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
13998         of gl_MATHFUNC.
13999         * modules/acos (configure.ac): Likewise.
14000         * modules/asin (configure.ac): Likewise.
14001         * modules/atan (configure.ac): Likewise.
14002         * modules/atan2 (configure.ac): Likewise.
14003         * modules/cbrt (configure.ac): Likewise.
14004         * modules/copysign (configure.ac): Likewise.
14005         * modules/cos (configure.ac): Likewise.
14006         * modules/cosh (configure.ac): Likewise.
14007         * modules/erf (configure.ac): Likewise.
14008         * modules/erfc (configure.ac): Likewise.
14009         * modules/exp (configure.ac): Likewise.
14010         * modules/fmod (configure.ac): Likewise.
14011         * modules/hypot (configure.ac): Likewise.
14012         * modules/j0 (configure.ac): Likewise.
14013         * modules/j1 (configure.ac): Likewise.
14014         * modules/jn (configure.ac): Likewise.
14015         * modules/lgamma (configure.ac): Likewise.
14016         * modules/log (configure.ac): Likewise.
14017         * modules/log10 (configure.ac): Likewise.
14018         * modules/log1p (configure.ac): Likewise.
14019         * modules/pow (configure.ac): Likewise.
14020         * modules/remainder (configure.ac): Likewise.
14021         * modules/sin (configure.ac): Likewise.
14022         * modules/sinh (configure.ac): Likewise.
14023         * modules/tan (configure.ac): Likewise.
14024         * modules/tanh (configure.ac): Likewise.
14025         * modules/y0 (configure.ac): Likewise.
14026         * modules/y1 (configure.ac): Likewise.
14027         * modules/yn (configure.ac): Likewise.
14028         Suggested by Paolo Bonzini.
14029
14030 2010-01-31  Bruno Haible  <bruno@clisp.org>
14031
14032         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
14033
14034 2010-01-31  Bruno Haible  <bruno@clisp.org>
14035
14036         Work around getdelim() bug on FreeBSD 8.0.
14037         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
14038         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
14039         not work.
14040         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
14041         is 1.
14042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
14043         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
14044         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
14045         a non-zero size.
14046         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
14047
14048 2010-01-31  Bruno Haible  <bruno@clisp.org>
14049
14050         Work around getline() bug on FreeBSD 8.0.
14051         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
14052         and a non-zero size.
14053         * tests/test-getline.c (main): Likewise.
14054         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
14055         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
14056
14057 2010-01-28  Eric Blake  <ebb9@byu.net>
14058
14059         regex: fix build failure
14060         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
14061         platforms.
14062
14063 2010-01-28  Jim Meyering  <meyering@redhat.com>
14064
14065         regex: do not ignore memory allocation failure
14066         * lib/regex_internal.c (create_cd_newstate): Detect
14067         re_node_set_init_copy failure.   Extracted from glibc commit
14068         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
14069
14070         regex: sync more white-space changes from libc
14071         * lib/regex_internal.c: White-space only changes.
14072         * lib/regexec.c: Likewise.
14073
14074         regex: add many uses of __attribute_warn_unused_result__
14075         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
14076         * lib/regexec.c: Likewise.
14077         Extracted from a messy glibc commit.
14078
14079         regcomp.c: spelling and merge-artifact from glibc
14080         * lib/regcomp.c: Merge remainder of glibc's
14081         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
14082
14083         regcomp.c: sync white-space changes from glibc
14084         * lib/regcomp.c: Merge to accommodate white space
14085         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
14086
14087         regcomp.c: do not ignore internal return values
14088         * lib/regcomp.c: Do not ignore internal return values.
14089         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
14090         but without its white-space changes and spelling fixes.
14091
14092         regex_internal.h: define __attribute_warn_unused_result__
14093         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
14094
14095         maint: add a syntax-check rule to check for vulnerable Makefile.in
14096         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
14097
14098 2010-01-27  Jim Meyering  <meyering@redhat.com>
14099
14100         ncftpput-ftp: clean up spaces
14101         * build-aux/ncftpput-ftp: Make Copyright line consistent.
14102         Remove trailing blanks.
14103
14104 2010-01-27  Simon Josefsson  <simon@josefsson.org>
14105
14106         * build-aux/git-version-gen: Fix copyright statement.
14107         * build-aux/gnupload: Likewise.
14108         * tests/test-arcfour.c: Likewise.
14109         * tests/test-arctwo.c: Likewise.
14110         * tests/test-count-one-bits.c: Likewise.
14111         * tests/test-crc.c: Likewise.
14112         * tests/test-des.c: Likewise.
14113         * tests/test-gc-arcfour.c: Likewise.
14114         * tests/test-gc-arctwo.c: Likewise.
14115         * tests/test-gc-des.c: Likewise.
14116         * tests/test-gc-hmac-md5.c: Likewise.
14117         * tests/test-gc-hmac-sha1.c: Likewise.
14118         * tests/test-gc-md2.c: Likewise.
14119         * tests/test-gc-md4.c: Likewise.
14120         * tests/test-gc-md5.c: Likewise.
14121         * tests/test-gc-pbkdf2-sha1.c: Likewise.
14122         * tests/test-gc-rijndael.c: Likewise.
14123         * tests/test-gc-sha1.c: Likewise.
14124         * tests/test-gc.c: Likewise.
14125         * tests/test-gethostname.c: Likewise.
14126         * tests/test-gettimeofday.c: Likewise.
14127         * tests/test-hash.c: Likewise.
14128         * tests/test-hmac-md5.c: Likewise.
14129         * tests/test-hmac-sha1.c: Likewise.
14130         * tests/test-md2.c: Likewise.
14131         * tests/test-md4.c: Likewise.
14132         * tests/test-md5.c: Likewise.
14133         * tests/test-memchr.c: Likewise.
14134         * tests/test-memchr2.c: Likewise.
14135         * tests/test-memcmp.c: Likewise.
14136         * tests/test-memmem.c: Likewise.
14137         * tests/test-memrchr.c: Likewise.
14138         * tests/test-rawmemchr.c: Likewise.
14139         * tests/test-read-file.c: Likewise.
14140         * tests/test-rijndael.c: Likewise.
14141         * tests/test-sockets.c: Likewise.
14142         * tests/test-strchrnul.c: Likewise.
14143         * tests/test-strstr.c: Likewise.
14144         * tests/test-strtod.c: Likewise.
14145         * build-aux/ncftpput-ftp: Likewise.
14146
14147 2010-01-26  Eric Blake  <ebb9@byu.net>
14148
14149         ignore-value: update recommended header name
14150         * modules/ignore-value (Include): Only use <> for headers that
14151         exist in glibc.
14152
14153 2010-01-26  Jim Meyering  <meyering@redhat.com>
14154
14155         test-userspec.c: avoid compiler warnings
14156         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
14157         and "initialization discards qualifiers..." warnings.
14158         Put the first "uid" in its own scope, and make char* members "const".
14159
14160 2010-01-25  Bruno Haible  <bruno@clisp.org>
14161
14162         gnulib-tool: Make warning diagnostics consistent.
14163         * gnulib-tool (func_warning): New function.
14164         Use it everywhere where gnulib-tool produces output to stderr and it is
14165         not a fatal error.
14166
14167 2010-01-25  Bruno Haible  <bruno@clisp.org>
14168
14169         Fix test dependencies.
14170         * modules/xstrtol-tests (Depends-on): Add inttypes.
14171         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
14172
14173 2010-01-25 Pádraig Brady <P@draigBrady.com>
14174
14175         syntax-check: detect incorrect boolean macro values in config.h
14176         * modules/maintainer-makefile (configure.ac): Parameterize the location
14177         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
14178         The logic is from Eric Blake and the location indicated by Jim Meyering.
14179         Note the more natural CONFIG_HEADER name is prohibited by automake
14180         for backwards compatibility reasons.
14181         * top/maint.mk (sc_Wundef_boolean): New rule.
14182
14183 2010-01-25  Jim Meyering  <meyering@redhat.com>
14184
14185         bootstrap: detect MacOS 10.6's shasum, too
14186         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
14187         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
14188
14189 2010-01-23  Jim Meyering  <meyering@redhat.com>
14190
14191         xstrtoll: new module
14192         * modules/xstrtoll: New file.
14193         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
14194         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
14195         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
14196         ./configure fails if you use this module and lack "long long".
14197         * modules/xstrtoll-tests: New module.
14198         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
14199         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
14200         new init.sh-based test framework.
14201
14202 2010-01-24  Bruno Haible  <bruno@clisp.org>
14203
14204         Tests for module 'yn'.
14205         * modules/yn-tests: New file.
14206         * tests/test-yn.c: New file.
14207
14208         Tests for module 'y1'.
14209         * modules/y1-tests: New file.
14210         * tests/test-y1.c: New file.
14211
14212         Tests for module 'y0'.
14213         * modules/y0-tests: New file.
14214         * tests/test-y0.c: New file.
14215
14216         Tests for module 'tanh'.
14217         * modules/tanh-tests: New file.
14218         * tests/test-tanh.c: New file.
14219
14220         Tests for module 'tan'.
14221         * modules/tan-tests: New file.
14222         * tests/test-tan.c: New file.
14223
14224         Tests for module 'sqrt'.
14225         * modules/sqrt-tests: New file.
14226         * tests/test-sqrt.c: New file.
14227
14228         Tests for module 'sinh'.
14229         * modules/sinh-tests: New file.
14230         * tests/test-sinh.c: New file.
14231
14232         Tests for module 'sin'.
14233         * modules/sin-tests: New file.
14234         * tests/test-sin.c: New file.
14235
14236         Tests for module 'rint'.
14237         * modules/rint-tests: New file.
14238         * tests/test-rint.c: New file.
14239
14240         Tests for module 'remainder'.
14241         * modules/remainder-tests: New file.
14242         * tests/test-remainder.c: New file.
14243
14244         Tests for module 'pow'.
14245         * modules/pow-tests: New file.
14246         * tests/test-pow.c: New file.
14247
14248         Tests for module 'nextafter'.
14249         * modules/nextafter-tests: New file.
14250         * tests/test-nextafter.c: New file.
14251
14252         Tests for module 'modf'.
14253         * modules/modf-tests: New file.
14254         * tests/test-modf.c: New file.
14255
14256         Tests for module 'logb'.
14257         * modules/logb-tests: New file.
14258         * tests/test-logb.c: New file.
14259
14260         Tests for module 'log1p'.
14261         * modules/log1p-tests: New file.
14262         * tests/test-log1p.c: New file.
14263
14264         Tests for module 'log10'.
14265         * modules/log10-tests: New file.
14266         * tests/test-log10.c: New file.
14267
14268         Tests for module 'log'.
14269         * modules/log-tests: New file.
14270         * tests/test-log.c: New file.
14271
14272         Tests for module 'lgamma'.
14273         * modules/lgamma-tests: New file.
14274         * tests/test-lgamma.c: New file.
14275
14276         Tests for module 'ldexp'.
14277         * modules/ldexp-tests: New file.
14278         * tests/test-ldexp.c: New file.
14279
14280         Tests for module 'jn'.
14281         * modules/jn-tests: New file.
14282         * tests/test-jn.c: New file.
14283
14284         Tests for module 'j1'.
14285         * modules/j1-tests: New file.
14286         * tests/test-j1.c: New file.
14287
14288         Tests for module 'j0'.
14289         * modules/j0-tests: New file.
14290         * tests/test-j0.c: New file.
14291
14292         Tests for module 'hypot'.
14293         * modules/hypot-tests: New file.
14294         * tests/test-hypot.c: New file.
14295
14296         Tests for module 'fmod'.
14297         * modules/fmod-tests: New file.
14298         * tests/test-fmod.c: New file.
14299
14300         Tests for module 'fabs'.
14301         * modules/fabs-tests: New file.
14302         * tests/test-fabs.c: New file.
14303
14304         Tests for module 'exp'.
14305         * modules/exp-tests: New file.
14306         * tests/test-exp.c: New file.
14307
14308         Tests for module 'erfc'.
14309         * modules/erfc-tests: New file.
14310         * tests/test-erfc.c: New file.
14311
14312         Tests for module 'erf'.
14313         * modules/erf-tests: New file.
14314         * tests/test-erf.c: New file.
14315
14316         Tests for module 'cosh'.
14317         * modules/cosh-tests: New file.
14318         * tests/test-cosh.c: New file.
14319
14320         Tests for module 'cos'.
14321         * modules/cos-tests: New file.
14322         * tests/test-cos.c: New file.
14323
14324         Tests for module 'copysign'.
14325         * modules/copysign-tests: New file.
14326         * tests/test-copysign.c: New file.
14327
14328         Tests for module 'cbrt'.
14329         * modules/cbrt-tests: New file.
14330         * tests/test-cbrt.c: New file.
14331
14332         Tests for module 'atan2'.
14333         * modules/atan2-tests: New file.
14334         * tests/test-atan2.c: New file.
14335
14336         Tests for module 'atan'.
14337         * modules/atan-tests: New file.
14338         * tests/test-atan.c: New file.
14339
14340         Tests for module 'asin'.
14341         * modules/asin-tests: New file.
14342         * tests/test-asin.c: New file.
14343
14344         Tests for module 'acos'.
14345         * modules/acos-tests: New file.
14346         * tests/test-acos.c: New file.
14347
14348 2010-01-24  Bruno Haible  <bruno@clisp.org>
14349
14350         Fix tests for common <math.h> functions.
14351         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
14352         code snippet that references the function pointer, rather than merely
14353         calling the function. Substitute the FUNC_LIBM variable.
14354         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
14355         * modules/acos (configure.ac): Likewise.
14356         * modules/asin (configure.ac): Likewise.
14357         * modules/atan (configure.ac): Likewise.
14358         * modules/atan2 (configure.ac): Likewise.
14359         * modules/cbrt (configure.ac): Likewise.
14360         * modules/copysign (configure.ac): Likewise.
14361         * modules/cos (configure.ac): Likewise.
14362         * modules/cosh (configure.ac): Likewise.
14363         * modules/erf (configure.ac): Likewise.
14364         * modules/erfc (configure.ac): Likewise.
14365         * modules/exp (configure.ac): Likewise.
14366         * modules/fabs (configure.ac): Likewise.
14367         * modules/fmod (configure.ac): Likewise.
14368         * modules/hypot (configure.ac): Likewise.
14369         * modules/j0 (configure.ac): Likewise.
14370         * modules/j1 (configure.ac): Likewise.
14371         * modules/jn (configure.ac): Likewise.
14372         * modules/ldexp (configure.ac): Likewise.
14373         * modules/lgamma (configure.ac): Likewise.
14374         * modules/log (configure.ac): Likewise.
14375         * modules/log10 (configure.ac): Likewise.
14376         * modules/log1p (configure.ac): Likewise.
14377         * modules/logb (configure.ac): Likewise.
14378         * modules/modf (configure.ac): Likewise.
14379         * modules/nextafter (configure.ac): Likewise.
14380         * modules/pow (configure.ac): Likewise.
14381         * modules/remainder (configure.ac): Likewise.
14382         * modules/rint (configure.ac): Likewise.
14383         * modules/sin (configure.ac): Likewise.
14384         * modules/sinh (configure.ac): Likewise.
14385         * modules/tan (configure.ac): Likewise.
14386         * modules/tanh (configure.ac): Likewise.
14387         * modules/y0 (configure.ac): Likewise.
14388         * modules/y1 (configure.ac): Likewise.
14389         * modules/yn (configure.ac): Likewise.
14390
14391 2010-01-24  Bruno Haible  <bruno@clisp.org>
14392
14393         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
14394         * tests/test-acosl.c (x): New variable.
14395         (main): Store argument in x and fetch it from x.
14396         * tests/test-asinl.c (x): New variable.
14397         (main): Store argument in x and fetch it from x.
14398         * tests/test-atanl.c (x): New variable.
14399         (main): Store argument in x and fetch it from x.
14400         * tests/test-cosl.c (x): New variable.
14401         (main): Store argument in x and fetch it from x.
14402         * tests/test-expl.c (x): New variable.
14403         (main): Store argument in x and fetch it from x.
14404         * tests/test-logl.c (x): New variable.
14405         (main): Store argument in x and fetch it from x.
14406         * tests/test-sinl.c (x): New variable.
14407         (main): Store argument in x and fetch it from x.
14408         * tests/test-sqrtl.c (x): New variable.
14409         (main): Store argument in x and fetch it from x.
14410         * tests/test-tanl.c (x): New variable.
14411         (main): Store argument in x and fetch it from x.
14412
14413 2010-01-24  Bruno Haible  <bruno@clisp.org>
14414
14415         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
14416         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
14417         assignments to the initial TESTS_ENVIRONMENT.
14418         * doc/gnulib.texi (Unit test modules): Document it.
14419         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
14420         TESTS_ENVIRONMENT.
14421         * modules/btowc-tests (Makefile.am): Likewise.
14422         * modules/c-stack-tests (Makefile.am): Likewise.
14423         * modules/c-strcase-tests (Makefile.am): Likewise.
14424         * modules/copy-file-tests (Makefile.am): Likewise.
14425         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
14426         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
14427         * modules/mbrtowc-tests (Makefile.am): Likewise.
14428         * modules/mbscasecmp-tests (Makefile.am): Likewise.
14429         * modules/mbscasestr-tests (Makefile.am): Likewise.
14430         * modules/mbschr-tests (Makefile.am): Likewise.
14431         * modules/mbscspn-tests (Makefile.am): Likewise.
14432         * modules/mbsinit-tests (Makefile.am): Likewise.
14433         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
14434         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
14435         * modules/mbspbrk-tests (Makefile.am): Likewise.
14436         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
14437         * modules/mbsrchr-tests (Makefile.am): Likewise.
14438         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
14439         * modules/mbsspn-tests (Makefile.am): Likewise.
14440         * modules/mbsstr-tests (Makefile.am): Likewise.
14441         * modules/nl_langinfo-tests (Makefile.am): Likewise.
14442         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
14443         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
14444         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
14445         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
14446         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
14447         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
14448         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
14449         * modules/wcrtomb-tests (Makefile.am): Likewise.
14450         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
14451         * modules/wcsrtombs-tests (Makefile.am): Likewise.
14452         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
14453         assignments from TESTS_ENVIRONMENT.
14454         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
14455         augmentation.
14456         * modules/argp-version-etc-tests (Makefile.am): Likewise.
14457         * modules/atexit-tests (Makefile.am): Likewise.
14458         * modules/binary-io-tests (Makefile.am): Likewise.
14459         * modules/closein-tests (Makefile.am): Likewise.
14460         * modules/dprintf-posix-tests (Makefile.am): Likewise.
14461         * modules/exclude-tests (Makefile.am): Likewise.
14462         * modules/fflush-tests (Makefile.am): Likewise.
14463         * modules/fpending-tests (Makefile.am): Likewise.
14464         * modules/fprintf-posix-tests (Makefile.am): Likewise.
14465         * modules/freadahead-tests (Makefile.am): Likewise.
14466         * modules/freadptr-tests (Makefile.am): Likewise.
14467         * modules/freadseek-tests (Makefile.am): Likewise.
14468         * modules/fseek-tests (Makefile.am): Likewise.
14469         * modules/fseeko-tests (Makefile.am): Likewise.
14470         * modules/ftell-tests (Makefile.am): Likewise.
14471         * modules/ftello-tests (Makefile.am): Likewise.
14472         * modules/idpriv-drop-tests (Makefile.am): Likewise.
14473         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
14474         * modules/lseek-tests (Makefile.am): Likewise.
14475         * modules/parse-duration-tests (Makefile.am): Likewise.
14476         * modules/perror-tests (Makefile.am): Likewise.
14477         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
14478         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
14479         * modules/pipe-tests (Makefile.am): Likewise.
14480         * modules/pread-tests (Makefile.am): Likewise.
14481         * modules/printf-posix-tests (Makefile.am): Likewise.
14482         * modules/select-tests (Makefile.am): Likewise.
14483         * modules/sigpipe-tests (Makefile.am): Likewise.
14484         * modules/tsearch-tests (Makefile.am): Likewise.
14485         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
14486         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
14487         * modules/uniname/uniname-tests (Makefile.am): Likewise.
14488         * modules/uniwidth/width-tests (Makefile.am): Likewise.
14489         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
14490         * modules/version-etc-tests (Makefile.am): Likewise.
14491         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
14492         * modules/vprintf-posix-tests (Makefile.am): Likewise.
14493         * modules/xalloc-die-tests (Makefile.am): Likewise.
14494         * modules/xprintf-posix-tests (Makefile.am): Likewise.
14495         * modules/xstrtoimax-tests (Makefile.am): Likewise.
14496         * modules/xstrtol-tests (Makefile.am): Likewise.
14497         * modules/xstrtoumax-tests (Makefile.am): Likewise.
14498         * modules/yesno-tests (Makefile.am): Likewise.
14499         Suggested by Jim Meyering.
14500
14501 2010-01-24  Bruno Haible  <bruno@clisp.org>
14502
14503         More documentation.
14504         * doc/gnulib.texi (Writing modules): New chapter.
14505         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
14506         the new chapter.
14507
14508 2010-01-24  Jim Meyering  <meyering@redhat.com>
14509
14510         maint.mk: do not prepend "./" after filtering
14511         * top/maint.mk (_prepend_srcdir_prefix): New variable
14512         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
14513         "./" when $(srcdir) is ".".
14514
14515         define STREQ(a,b) consistently, removing useless parentheses
14516         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
14517         since the only risk is that "a" or "b" contains an unparenthesized
14518         comma, but if either did that, STREQ would have 3 or more arguments.
14519         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
14520         * lib/fts.c (STREQ): Remove unnecessary parentheses.
14521         * lib/hash-triple.c (STREQ): Likewise.
14522         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
14523         * lib/getugroups.c (STREQ): Likewise.
14524
14525 2010-01-23  Jim Meyering  <meyering@redhat.com>
14526
14527         maint.mk: fix syntax-check in a non-srcdir build directory
14528         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
14529         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
14530
14531 2010-01-22  Jim Meyering  <meyering@redhat.com>
14532
14533         userspec: add unit tests
14534         * tests/test-userspec.c: New file.
14535         * modules/userspec-tests: Likewise.
14536
14537 2010-01-21  Jim Meyering  <meyering@redhat.com>
14538
14539         maint.mk: handle source file names containing "." robustly
14540         * top/maint.mk (_dot_escaped_srcdir): Define.
14541         (VC_LIST): Use it in LHS of sed substitution.
14542
14543 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
14544
14545         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
14546         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
14547         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
14548         from a non-srcdir build.
14549
14550 2010-01-20  Eric Blake  <ebb9@byu.net>
14551
14552         warn-on-use: use instead of link-warning
14553         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
14554         * modules/unistd (Depends-on, Makefile.am): Likewise.
14555         * modules/arpa_inet (Depends-on): Replace link-warning with
14556         warn-on-use.
14557         (Makefile.am): Update rules accordingly.
14558         * modules/ctype (Depends-on, Makefile.am): Likewise.
14559         * modules/dirent (Depends-on, Makefile.am): Likewise.
14560         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
14561         * modules/inttypes (Depends-on, Makefile.am): Likewise.
14562         * modules/langinfo (Depends-on, Makefile.am): Likewise.
14563         * modules/locale (Depends-on, Makefile.am): Likewise.
14564         * modules/math (Depends-on, Makefile.am): Likewise.
14565         * modules/search (Depends-on, Makefile.am): Likewise.
14566         * modules/signal (Depends-on, Makefile.am): Likewise.
14567         * modules/spawn (Depends-on, Makefile.am): Likewise.
14568         * modules/stdlib (Depends-on, Makefile.am): Likewise.
14569         * modules/string (Depends-on, Makefile.am): Likewise.
14570         * modules/strings (Depends-on, Makefile.am): Likewise.
14571         * modules/sys_file (Depends-on, Makefile.am): Likewise.
14572         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
14573         * modules/sys_select (Depends-on, Makefile.am): Likewise.
14574         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
14575         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
14576         * modules/sys_times (Depends-on, Makefile.am): Likewise.
14577         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
14578         * modules/wchar (Depends-on, Makefile.am): Likewise.
14579         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
14580         should be poisoned.
14581         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
14582         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
14583         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
14584         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
14585         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
14586         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
14587         * m4/math_h.m4 (gl_MATH_H): Likewise.
14588         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14589         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14590         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14591         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
14592         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
14593         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
14594         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
14595         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
14596         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
14597         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14598         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14599         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14600         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14601         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14602         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14603         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14604         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
14605         GL_LINK_WARNING.
14606         * lib/ctype.in.h: Likewise.
14607         * lib/dirent.in.h: Likewise.
14608         * lib/fcntl.in.h: Likewise.
14609         * lib/inttypes.in.h: Likewise.
14610         * lib/langinfo.in.h: Likewise.
14611         * lib/locale.in.h: Likewise.
14612         * lib/math.in.h: Likewise.
14613         * lib/search.in.h: Likewise.
14614         * lib/signal.in.h: Likewise.
14615         * lib/spawn.in.h: Likewise.
14616         * lib/stdio.in.h: Likewise.
14617         * lib/stdlib.in.h: Likewise.
14618         * lib/string.in.h: Likewise.
14619         * lib/strings.in.h: Likewise.
14620         * lib/sys_file.in.h: Likewise.
14621         * lib/sys_ioctl.in.h: Likewise.
14622         * lib/sys_select.in.h: Likewise.
14623         * lib/sys_socket.in.h: Likewise.
14624         * lib/sys_stat.in.h: Likewise.
14625         * lib/sys_times.in.h: Likewise.
14626         * lib/sys_utsname.in.h: Likewise.
14627         * lib/unistd.in.h: Likewise.
14628         * lib/wchar.in.h: Likewise.
14629
14630 2010-01-20  Bruno Haible  <bruno@clisp.org>
14631
14632         Avoid duplicate -lm.
14633         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
14634         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
14635         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
14636         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
14637         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
14638         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
14639         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
14640         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
14641         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
14642         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
14643         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
14644         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14645         Reported by Paolo Bonzini.
14646
14647 2010-01-19  Bruno Haible  <bruno@clisp.org>
14648
14649         langinfo, nl_langinfo: Relicense under LGPLv2+.
14650         * modules/langinfo (License): Change to LGPLv2+.
14651         * modules/nl_langinfo (License): Likewise.
14652         Patch by David Lutterkort <lutter@redhat.com>.
14653
14654 2010-01-19  Bruno Haible  <bruno@clisp.org>
14655
14656         Avoid compilation error with cc on OSF/1 5.1.
14657         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
14658         statement, not before.
14659         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14660
14661 2010-01-18  Bruno Haible  <bruno@clisp.org>
14662
14663         Avoid a link error due to the __printf__ symbol.
14664         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
14665         and 2.6.x.
14666         (__format__, __printf__): Remove definitions.
14667         * lib/argp-fmtstream.h: Likewise.
14668         * lib/argp.h: Likewise.
14669         * lib/error.h: Likewise.
14670         * lib/vasnprintf.h: Likewise.
14671         * lib/xprintf.h: Likewise.
14672         * lib/xvasprintf.h: Likewise.
14673         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14674
14675 2010-01-18  Bruno Haible  <bruno@clisp.org>
14676
14677         Tests for module 'tanl'.
14678         * modules/tanl-tests: New file.
14679         * tests/test-tanl.c: New file.
14680
14681         Tests for module 'sqrtl'.
14682         * modules/sqrtl-tests: New file.
14683         * tests/test-sqrtl.c: New file.
14684
14685         Tests for module 'sinl'.
14686         * modules/sinl-tests: New file.
14687         * tests/test-sinl.c: New file.
14688
14689         Tests for module 'logl'.
14690         * modules/logl-tests: New file.
14691         * tests/test-logl.c: New file.
14692
14693         Tests for module 'expl'.
14694         * modules/expl-tests: New file.
14695         * tests/test-expl.c: New file.
14696
14697         Tests for module 'cosl'.
14698         * modules/cosl-tests: New file.
14699         * tests/test-cosl.c: New file.
14700
14701         Tests for module 'atanl'.
14702         * modules/atanl-tests: New file.
14703         * tests/test-atanl.c: New file.
14704
14705         Tests for module 'asinl'.
14706         * modules/asinl-tests: New file.
14707         * tests/test-asinl.c: New file.
14708
14709         Tests for module 'acosl'.
14710         * modules/acosl-tests: New file.
14711         * tests/test-acosl.c: New file.
14712
14713         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
14714         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
14715         tanl): Use the standard gnulib idiom.
14716         * lib/cosl.c: Don't include trigl.c and sincosl.c.
14717         * lib/sinl.c: Likewise.
14718         * lib/tanl.c: Don't include trigl.c.
14719         (kernel_tanl): Make static.
14720         * lib/sincosl.c: Include trigl.h first.
14721         * lib/trigl.c: Likewise.
14722         * m4/acosl.m4: New file.
14723         * m4/asinl.m4: New file.
14724         * m4/atanl.m4: New file.
14725         * m4/cosl.m4: New file.
14726         * m4/expl.m4: New file.
14727         * m4/logl.m4: New file.
14728         * m4/sinl.m4: New file.
14729         * m4/sqrtl.m4: New file.
14730         * m4/tanl.m4: New file.
14731         * m4/mathl.m4: Remove file.
14732         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
14733         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
14734         Don't initialize GNULIB_MATHL.
14735         * modules/acosl: New file.
14736         * modules/asinl: New file.
14737         * modules/atanl: New file.
14738         * modules/cosl: New file.
14739         * modules/expl: New file.
14740         * modules/logl: New file.
14741         * modules/sinl: New file.
14742         * modules/sqrtl: New file.
14743         * modules/tanl: New file.
14744         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
14745         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
14746         substitute GNULIB_MATHL.
14747         * modules/mathl: Rewritten.
14748         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
14749         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
14750         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
14751         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
14752         * doc/posix-functions/expl.texi: Mention the 'expl' module.
14753         * doc/posix-functions/logl.texi: Mention the 'logl' module.
14754         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
14755         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
14756         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
14757
14758 2010-01-18  Bruno Haible  <bruno@clisp.org>
14759
14760         sqrt: Make gl_FUNC_SQRT requirable.
14761         * m4/sqrt.m4: New file.
14762         * modules/sqrt (Files): Add it.
14763         (configure.ac): Invoke gl_FUNC_SQRT.
14764
14765 2010-01-18  Bruno Haible  <bruno@clisp.org>
14766
14767         New modules for common <math.h> functions.
14768         * m4/mathfunc.m4: New file.
14769         * modules/acos: New file.
14770         * modules/asin: New file.
14771         * modules/atan: New file.
14772         * modules/atan2: New file.
14773         * modules/cbrt: New file.
14774         * modules/copysign: New file.
14775         * modules/cos: New file.
14776         * modules/cosh: New file.
14777         * modules/erf: New file.
14778         * modules/erfc: New file.
14779         * modules/exp: New file.
14780         * modules/fabs: New file.
14781         * modules/fmod: New file.
14782         * modules/hypot: New file.
14783         * modules/j0: New file.
14784         * modules/j1: New file.
14785         * modules/jn: New file.
14786         * modules/ldexp: New file.
14787         * modules/lgamma: New file.
14788         * modules/log: New file.
14789         * modules/log10: New file.
14790         * modules/log1p: New file.
14791         * modules/logb: New file.
14792         * modules/modf: New file.
14793         * modules/nextafter: New file.
14794         * modules/pow: New file.
14795         * modules/remainder: New file.
14796         * modules/rint: New file.
14797         * modules/sin: New file.
14798         * modules/sinh: New file.
14799         * modules/sqrt: New file.
14800         * modules/tan: New file.
14801         * modules/tanh: New file.
14802         * modules/y0: New file.
14803         * modules/y1: New file.
14804         * modules/yn: New file.
14805         * doc/posix-functions/acos.texi: Mention the 'acos' module.
14806         * doc/posix-functions/asin.texi: Mention the 'asin' module.
14807         * doc/posix-functions/atan.texi: Mention the 'atan' module.
14808         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
14809         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
14810         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
14811         * doc/posix-functions/cos.texi: Mention the 'cos' module.
14812         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
14813         * doc/posix-functions/erf.texi: Mention the 'erf' module.
14814         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
14815         * doc/posix-functions/exp.texi: Mention the 'exp' module.
14816         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
14817         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
14818         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
14819         * doc/posix-functions/j0.texi: Mention the 'j0' module.
14820         * doc/posix-functions/j1.texi: Mention the 'j1' module.
14821         * doc/posix-functions/jn.texi: Mention the 'jn' module.
14822         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
14823         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
14824         * doc/posix-functions/log.texi: Mention the 'log' module.
14825         * doc/posix-functions/log10.texi: Mention the 'log10' module.
14826         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
14827         * doc/posix-functions/logb.texi: Mention the 'logb' module.
14828         * doc/posix-functions/modf.texi: Mention the 'modf' module.
14829         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
14830         * doc/posix-functions/pow.texi: Mention the 'pow' module.
14831         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
14832         * doc/posix-functions/rint.texi: Mention the 'rint' module.
14833         * doc/posix-functions/sin.texi: Mention the 'sin' module.
14834         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
14835         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
14836         * doc/posix-functions/tan.texi: Mention the 'tan' module.
14837         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
14838         * doc/posix-functions/y0.texi: Mention the 'y0' module.
14839         * doc/posix-functions/y1.texi: Mention the 'y1' module.
14840         * doc/posix-functions/yn.texi: Mention the 'yn' module.
14841
14842 2010-01-18  Jim Meyering  <meyering@redhat.com>
14843
14844         ignore-value: relax license to LGPLv2+
14845         * modules/ignore-value (License): Relax to LGPLv2+.
14846
14847         getdate: don't leak when TZ contains two or more '"'s
14848         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
14849         double quote in TZ after the first one.
14850
14851         readtokens: do not leak internal token_lengths buffer
14852         * lib/readtokens.c (readtokens): Free the local, lengths,
14853         when the supplied "token_lengths" parameter is NULL.
14854
14855 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14856
14857         Fix a couple of missing LIBTHREAD link failures on AIX.
14858         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
14859         $(LIBTHREAD).
14860         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
14861
14862         Link test-poll against INET_PTON_LIB.
14863         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
14864         for inet_pton on Solaris 10.
14865
14866 2010-01-17  Bruno Haible  <bruno@clisp.org>
14867
14868         unistdio/*-sprintf: Fix typo in module description.
14869         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
14870         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
14871         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
14872         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
14873         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
14874         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
14875         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
14876         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14877
14878 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14879
14880         gnulib-tool: fix filelist for AIX, HP-UX ksh.
14881         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
14882         variables in shell case patterns, for AIX and HP-UX ksh.
14883
14884         Split large sed scripts, for HP-UX sed.
14885         * modules/stdio: Split sed scripts around 50 sed commands,
14886         to avoid HP-UX limit of 99 commands, in the near future.
14887         * modules/string: Likewise.
14888         * modules/unistd: Likewise.
14889
14890         gnulib-tool: avoid writing in the current directory.
14891         * gnulib-tool (func_emit_lib_Makefile_am)
14892         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
14893         not in the current directory, so concurrent gnulib-tool
14894         instances do not interfere.
14895
14896 2010-01-16  Jim Meyering  <meyering@redhat.com>
14897
14898         doc: update users.txt
14899         * users.txt: Add grep.
14900         (diffutils, gzip): Update URLs.
14901
14902 2010-01-12  Bruno Haible  <bruno@clisp.org>
14903
14904         posix_spawn: Avoid test failure on Cygwin.
14905         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
14906         characters.
14907         Reported by Simon Josefsson.
14908
14909 2010-01-12  Bruno Haible  <bruno@clisp.org>
14910
14911         * tests/test-cond.c (main): When skipping the test, show the reason.
14912
14913 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14914
14915         * lib/striconv.c (str_cd_iconv): Avoid if before free.
14916
14917 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14918
14919         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
14920         VC_LIST_ALWAYS_EXCLUDE_REGEX.
14921
14922 2010-01-12  Eric Blake  <ebb9@byu.net>
14923
14924         build: guarantee AS_VAR_IF
14925         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
14926         (gl_AS_VAR_IF): Move...
14927         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
14928         Reported by Simon Josefsson.
14929
14930 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14931
14932         * lib/stdio.in.h: Fix typo.
14933
14934 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14935
14936         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
14937         libgpg-error.
14938
14939 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14940
14941         * tests/test-xalloc-die.sh: Use $EXEEXT.
14942
14943 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14944             Bruno Haible  <bruno@clisp.org>
14945
14946         getlogin, getlogin_r: Avoid test failure.
14947         * tests/test-getlogin.c: Include <stdio.h>.
14948         (main): Skip the test when the function fails because stdin is not a
14949         tty.
14950         * tests/test-getlogin_r.c: Include <stdio.h>.
14951         (main): Skip the test when the function fails because stdin is not a
14952         tty.
14953
14954 2010-01-11  Eric Blake  <ebb9@byu.net>
14955
14956         tests: avoid more large file warnings
14957         * tests/test-fflush.c: Avoid warning about ftell use.
14958         * tests/test-fseek.c: Avoid warning about fseek use.
14959
14960 2010-01-10  Bruno Haible  <bruno@clisp.org>
14961
14962         nproc: Work better on Linux when /proc and /sys are not mounted.
14963         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
14964         as lower bound when, on glibc/Linux systems,
14965         sysconf (_SC_NPROCESSORS_CONF) returns 1.
14966         Suggested by Pádraig Brady <P@draigbrady.com>.
14967         Reported by Dmitry V. Levin <ldv@altlinux.org>.
14968
14969         nproc: Refactor.
14970         * lib/nproc.c (num_processors_via_affinity_mask): New function,
14971         extracted from num_processors.
14972         (num_processors): Call it.
14973
14974 2010-01-11  Jim Meyering  <meyering@redhat.com>
14975
14976         utimecmp: avoid new warning from upcoming gcc-4.5.0
14977         * lib/utimecmp.c (BILLION): Define using #define rather than an
14978         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
14979
14980 2010-01-11  Eric Blake  <ebb9@byu.net>
14981
14982         math: add portability warnings for classification macros
14983         * modules/math (Depends-on): Add warn-on-use.
14984         (Makefile.am): Provide new substitutions.
14985         * m4/math_h.m4 (gl_MATH_H): Require inline.
14986         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
14987         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
14988         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
14989         implement warnings.
14990
14991         unistd: warn on use of environ without module
14992         * modules/unistd (Depends-on): Add warn-on-use.
14993         (Makefile.am): Provide new substitutions.
14994         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
14995         * lib/unistd.in.h (environ): Wrap with a warning helper function.
14996
14997         stdio: warn on suspicious uses
14998         * modules/stdio (Depends-on): Add warn-on-use.
14999         (Makefile.am): Provide new substitutions.
15000         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
15001         fseeko.
15002         * lib/stdio.in.h (gets): Always warn on use.
15003         (fseek, ftell): Adjust when warnings are issued, and honor
15004         _GL_NO_LARGE_FILES as a way to silence the warning.
15005         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
15006         any warning about large file offsets.
15007         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
15008         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
15009         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
15010         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
15011         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
15012         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
15013         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
15014         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
15015
15016         warn-on-use: new module
15017         * modules/warn-on-use: New file.
15018         * build-aux/warn-on-use.h: Likewise.
15019         * m4/warn-on-use.m4: Likewise.
15020         * MODULES.html.sh (Support for building): Mention it.
15021
15022 2010-01-10  Bruno Haible  <bruno@clisp.org>
15023
15024         Tests for module 'unistr/u32-strdup'.
15025         * modules/unistr/u32-strdup-tests: New file.
15026         * tests/unistr/test-u32-strdup.c: New file.
15027
15028         Tests for module 'unistr/u16-strdup'.
15029         * modules/unistr/u16-strdup-tests: New file.
15030         * tests/unistr/test-u16-strdup.c: New file.
15031
15032         Tests for module 'unistr/u8-strdup'.
15033         * modules/unistr/u8-strdup-tests: New file.
15034         * tests/unistr/test-u8-strdup.c: New file.
15035         * tests/unistr/test-strdup.h: New file.
15036
15037         Tests for module 'unistr/u32-strncmp'.
15038         * modules/unistr/u32-strncmp-tests: New file.
15039         * tests/unistr/test-u32-strncmp.c: New file.
15040
15041         Tests for module 'unistr/u16-strncmp'.
15042         * modules/unistr/u16-strncmp-tests: New file.
15043         * tests/unistr/test-u16-strncmp.c: New file.
15044
15045         Tests for module 'unistr/u8-strncmp'.
15046         * modules/unistr/u8-strncmp-tests: New file.
15047         * tests/unistr/test-u8-strncmp.c: New file.
15048         * tests/unistr/test-strncmp.h: New file.
15049
15050         Tests for module 'unistr/u32-strcoll'.
15051         * modules/unistr/u32-strcoll-tests: New file.
15052         * tests/unistr/test-u32-strcoll.c: New file.
15053
15054         Tests for module 'unistr/u16-strcoll'.
15055         * modules/unistr/u16-strcoll-tests: New file.
15056         * tests/unistr/test-u16-strcoll.c: New file.
15057
15058         Tests for module 'unistr/u8-strcoll'.
15059         * modules/unistr/u8-strcoll-tests: New file.
15060         * tests/unistr/test-u8-strcoll.c: New file.
15061
15062         Tests for module 'unistr/u32-strcmp'.
15063         * modules/unistr/u32-strcmp-tests: New file.
15064         * tests/unistr/test-u32-strcmp.c: New file.
15065         * tests/unistr/test-u32-strcmp.h: New file.
15066
15067         Tests for module 'unistr/u16-strcmp'.
15068         * modules/unistr/u16-strcmp-tests: New file.
15069         * tests/unistr/test-u16-strcmp.c: New file.
15070         * tests/unistr/test-u16-strcmp.h: New file.
15071
15072         Tests for module 'unistr/u8-strcmp'.
15073         * modules/unistr/u8-strcmp-tests: New file.
15074         * tests/unistr/test-u8-strcmp.c: New file.
15075         * tests/unistr/test-u8-strcmp.h: New file.
15076         * tests/unistr/test-strcmp.h: New file.
15077
15078         Tests for module 'unistr/u32-strncat'.
15079         * modules/unistr/u32-strncat-tests: New file.
15080         * tests/unistr/test-u32-strncat.c: New file.
15081
15082         Tests for module 'unistr/u16-strncat'.
15083         * modules/unistr/u16-strncat-tests: New file.
15084         * tests/unistr/test-u16-strncat.c: New file.
15085
15086         Tests for module 'unistr/u8-strncat'.
15087         * modules/unistr/u8-strncat-tests: New file.
15088         * tests/unistr/test-u8-strncat.c: New file.
15089         * tests/unistr/test-strncat.h: New file.
15090
15091         Tests for module 'unistr/u32-strcat'.
15092         * modules/unistr/u32-strcat-tests: New file.
15093         * tests/unistr/test-u32-strcat.c: New file.
15094
15095         Tests for module 'unistr/u16-strcat'.
15096         * modules/unistr/u16-strcat-tests: New file.
15097         * tests/unistr/test-u16-strcat.c: New file.
15098
15099         Tests for module 'unistr/u8-strcat'.
15100         * modules/unistr/u8-strcat-tests: New file.
15101         * tests/unistr/test-u8-strcat.c: New file.
15102         * tests/unistr/test-strcat.h: New file.
15103
15104         Tests for module 'unistr/u32-stpncpy'.
15105         * modules/unistr/u32-stpncpy-tests: New file.
15106         * tests/unistr/test-u32-stpncpy.c: New file.
15107
15108         Tests for module 'unistr/u16-stpncpy'.
15109         * modules/unistr/u16-stpncpy-tests: New file.
15110         * tests/unistr/test-u16-stpncpy.c: New file.
15111
15112         Tests for module 'unistr/u8-stpncpy'.
15113         * modules/unistr/u8-stpncpy-tests: New file.
15114         * tests/unistr/test-u8-stpncpy.c: New file.
15115         * tests/unistr/test-stpncpy.h: New file.
15116
15117         Tests for module 'unistr/u32-strncpy'.
15118         * modules/unistr/u32-strncpy-tests: New file.
15119         * tests/unistr/test-u32-strncpy.c: New file.
15120
15121         Tests for module 'unistr/u16-strncpy'.
15122         * modules/unistr/u16-strncpy-tests: New file.
15123         * tests/unistr/test-u16-strncpy.c: New file.
15124
15125         Tests for module 'unistr/u8-strncpy'.
15126         * modules/unistr/u8-strncpy-tests: New file.
15127         * tests/unistr/test-u8-strncpy.c: New file.
15128         * tests/unistr/test-strncpy.h: New file.
15129
15130         Tests for module 'unistr/u32-stpcpy'.
15131         * modules/unistr/u32-stpcpy-tests: New file.
15132         * tests/unistr/test-u32-stpcpy.c: New file.
15133
15134         Tests for module 'unistr/u16-stpcpy'.
15135         * modules/unistr/u16-stpcpy-tests: New file.
15136         * tests/unistr/test-u16-stpcpy.c: New file.
15137
15138         Tests for module 'unistr/u8-stpcpy'.
15139         * modules/unistr/u8-stpcpy-tests: New file.
15140         * tests/unistr/test-u8-stpcpy.c: New file.
15141         * tests/unistr/test-stpcpy.h: New file.
15142
15143         Tests for module 'unistr/u32-strcpy'.
15144         * modules/unistr/u32-strcpy-tests: New file.
15145         * tests/unistr/test-u32-strcpy.c: New file.
15146
15147         Tests for module 'unistr/u16-strcpy'.
15148         * modules/unistr/u16-strcpy-tests: New file.
15149         * tests/unistr/test-u16-strcpy.c: New file.
15150
15151         Tests for module 'unistr/u8-strcpy'.
15152         * modules/unistr/u8-strcpy-tests: New file.
15153         * tests/unistr/test-u8-strcpy.c: New file.
15154         * tests/unistr/test-strcpy.h: New file.
15155
15156         Tests for module 'unistr/u32-strnlen'.
15157         * modules/unistr/u32-strnlen-tests: New file.
15158         * tests/unistr/test-u32-strnlen.c: New file.
15159
15160         Tests for module 'unistr/u16-strnlen'.
15161         * modules/unistr/u16-strnlen-tests: New file.
15162         * tests/unistr/test-u16-strnlen.c: New file.
15163
15164         Tests for module 'unistr/u8-strnlen'.
15165         * modules/unistr/u8-strnlen-tests: New file.
15166         * tests/unistr/test-u8-strnlen.c: New file.
15167         * tests/unistr/test-strnlen.h: New file.
15168
15169         Tests for module 'unistr/u32-strlen'.
15170         * modules/unistr/u32-strlen-tests: New file.
15171         * tests/unistr/test-u32-strlen.c: New file.
15172
15173         Tests for module 'unistr/u16-strlen'.
15174         * modules/unistr/u16-strlen-tests: New file.
15175         * tests/unistr/test-u16-strlen.c: New file.
15176
15177         Tests for module 'unistr/u8-strlen'.
15178         * modules/unistr/u8-strlen-tests: New file.
15179         * tests/unistr/test-u8-strlen.c: New file.
15180
15181         Tests for module 'unistr/u32-prev'.
15182         * modules/unistr/u32-prev-tests: New file.
15183         * tests/unistr/test-u32-prev.c: New file.
15184
15185         Tests for module 'unistr/u16-prev'.
15186         * modules/unistr/u16-prev-tests: New file.
15187         * tests/unistr/test-u16-prev.c: New file.
15188
15189         Tests for module 'unistr/u8-prev'.
15190         * modules/unistr/u8-prev-tests: New file.
15191         * tests/unistr/test-u8-prev.c: New file.
15192
15193         Tests for module 'unistr/u32-next'.
15194         * modules/unistr/u32-next-tests: New file.
15195         * tests/unistr/test-u32-next.c: New file.
15196
15197         Tests for module 'unistr/u16-next'.
15198         * modules/unistr/u16-next-tests: New file.
15199         * tests/unistr/test-u16-next.c: New file.
15200
15201         Tests for module 'unistr/u8-next'.
15202         * modules/unistr/u8-next-tests: New file.
15203         * tests/unistr/test-u8-next.c: New file.
15204
15205         Tests for module 'unistr/u32-strmbtouc'.
15206         * modules/unistr/u32-strmbtouc-tests: New file.
15207         * tests/unistr/test-u32-strmbtouc.c: New file.
15208
15209         Tests for module 'unistr/u16-strmbtouc'.
15210         * modules/unistr/u16-strmbtouc-tests: New file.
15211         * tests/unistr/test-u16-strmbtouc.c: New file.
15212
15213         Tests for module 'unistr/u8-strmbtouc'.
15214         * modules/unistr/u8-strmbtouc-tests: New file.
15215         * tests/unistr/test-u8-strmbtouc.c: New file.
15216
15217         Tests for module 'unistr/u32-strmblen'.
15218         * modules/unistr/u32-strmblen-tests: New file.
15219         * tests/unistr/test-u32-strmblen.c: New file.
15220
15221         Tests for module 'unistr/u16-strmblen'.
15222         * modules/unistr/u16-strmblen-tests: New file.
15223         * tests/unistr/test-u16-strmblen.c: New file.
15224
15225         Tests for module 'unistr/u8-strmblen'.
15226         * modules/unistr/u8-strmblen-tests: New file.
15227         * tests/unistr/test-u8-strmblen.c: New file.
15228
15229         Tests for module 'unistr/u32-cpy-alloc'.
15230         * modules/unistr/u32-cpy-alloc-tests: New file.
15231         * tests/unistr/test-u32-cpy-alloc.c: New file.
15232
15233         Tests for module 'unistr/u16-cpy-alloc'.
15234         * modules/unistr/u16-cpy-alloc-tests: New file.
15235         * tests/unistr/test-u16-cpy-alloc.c: New file.
15236
15237         Tests for module 'unistr/u8-cpy-alloc'.
15238         * modules/unistr/u8-cpy-alloc-tests: New file.
15239         * tests/unistr/test-u8-cpy-alloc.c: New file.
15240         * tests/unistr/test-cpy-alloc.h: New file.
15241
15242         Tests for module 'unistr/u32-mbsnlen'.
15243         * modules/unistr/u32-mbsnlen-tests: New file.
15244         * tests/unistr/test-u32-mbsnlen.c: New file.
15245
15246         Tests for module 'unistr/u16-mbsnlen'.
15247         * modules/unistr/u16-mbsnlen-tests: New file.
15248         * tests/unistr/test-u16-mbsnlen.c: New file.
15249
15250         Tests for module 'unistr/u8-mbsnlen'.
15251         * modules/unistr/u8-mbsnlen-tests: New file.
15252         * tests/unistr/test-u8-mbsnlen.c: New file.
15253
15254         Tests for module 'unistr/u32-chr'.
15255         * modules/unistr/u32-chr-tests: New file.
15256         * tests/unistr/test-u32-chr.c: New file.
15257
15258         Tests for module 'unistr/u16-chr'.
15259         * modules/unistr/u16-chr-tests: New file.
15260         * tests/unistr/test-u16-chr.c: New file.
15261
15262         Tests for module 'unistr/u8-chr'.
15263         * modules/unistr/u8-chr-tests: New file.
15264         * tests/unistr/test-u8-chr.c: New file.
15265         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
15266
15267         Tests for module 'unistr/u32-cmp2'.
15268         * modules/unistr/u32-cmp2-tests: New file.
15269         * tests/unistr/test-u32-cmp2.c: New file.
15270
15271         Tests for module 'unistr/u16-cmp2'.
15272         * modules/unistr/u16-cmp2-tests: New file.
15273         * tests/unistr/test-u16-cmp2.c: New file.
15274
15275         Tests for module 'unistr/u8-cmp2'.
15276         * modules/unistr/u8-cmp2-tests: New file.
15277         * tests/unistr/test-u8-cmp2.c: New file.
15278         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
15279
15280         Tests for module 'unistr/u32-cmp'.
15281         * modules/unistr/u32-cmp-tests: New file.
15282         * tests/unistr/test-u32-cmp.c: New file.
15283
15284         Tests for module 'unistr/u16-cmp'.
15285         * modules/unistr/u16-cmp-tests: New file.
15286         * tests/unistr/test-u16-cmp.c: New file.
15287
15288         Tests for module 'unistr/u8-cmp'.
15289         * modules/unistr/u8-cmp-tests: New file.
15290         * tests/unistr/test-u8-cmp.c: New file.
15291         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
15292
15293         Tests for module 'unistr/u32-set'.
15294         * modules/unistr/u32-set-tests: New file.
15295         * tests/unistr/test-u32-set.c: New file.
15296
15297         Tests for module 'unistr/u16-set'.
15298         * modules/unistr/u16-set-tests: New file.
15299         * tests/unistr/test-u16-set.c: New file.
15300
15301         Tests for module 'unistr/u8-set'.
15302         * modules/unistr/u8-set-tests: New file.
15303         * tests/unistr/test-u8-set.c: New file.
15304         * tests/unistr/test-set.h: New file.
15305
15306         Tests for module 'unistr/u32-move'.
15307         * modules/unistr/u32-move-tests: New file.
15308         * tests/unistr/test-u32-move.c: New file.
15309
15310         Tests for module 'unistr/u16-move'.
15311         * modules/unistr/u16-move-tests: New file.
15312         * tests/unistr/test-u16-move.c: New file.
15313
15314         Tests for module 'unistr/u8-move'.
15315         * modules/unistr/u8-move-tests: New file.
15316         * tests/unistr/test-u8-move.c: New file.
15317         * tests/unistr/test-move.h: New file.
15318
15319         Tests for module 'unistr/u32-cpy'.
15320         * modules/unistr/u32-cpy-tests: New file.
15321         * tests/unistr/test-u32-cpy.c: New file.
15322
15323         Tests for module 'unistr/u16-cpy'.
15324         * modules/unistr/u16-cpy-tests: New file.
15325         * tests/unistr/test-u16-cpy.c: New file.
15326
15327         Tests for module 'unistr/u8-cpy'.
15328         * modules/unistr/u8-cpy-tests: New file.
15329         * tests/unistr/test-u8-cpy.c: New file.
15330         * tests/unistr/test-cpy.h: New file.
15331
15332 2010-01-09  Bruno Haible  <bruno@clisp.org>
15333
15334         Tests for module 'unistr/u32-uctomb'.
15335         * modules/unistr/u32-uctomb-tests: New file.
15336         * tests/unistr/test-u32-uctomb.c: New file.
15337
15338         Tests for module 'unistr/u16-uctomb'.
15339         * modules/unistr/u16-uctomb-tests: New file.
15340         * tests/unistr/test-u16-uctomb.c: New file.
15341
15342         Tests for module 'unistr/u8-uctomb'.
15343         * modules/unistr/u8-uctomb-tests: New file.
15344         * tests/unistr/test-u8-uctomb.c: New file.
15345
15346         Tests for module 'unistr/u32-mbtoucr'.
15347         * modules/unistr/u32-mbtoucr-tests: New file.
15348         * tests/unistr/test-u32-mbtoucr.c: New file.
15349
15350         Tests for module 'unistr/u16-mbtoucr'.
15351         * modules/unistr/u16-mbtoucr-tests: New file.
15352         * tests/unistr/test-u16-mbtoucr.c: New file.
15353
15354         Tests for module 'unistr/u8-mbtoucr'.
15355         * modules/unistr/u8-mbtoucr-tests: New file.
15356         * tests/unistr/test-u8-mbtoucr.c: New file.
15357
15358         Tests for module 'unistr/u32-mbtouc'.
15359         * modules/unistr/u32-mbtouc-tests: New file.
15360         * tests/unistr/test-u32-mbtouc.c: New file.
15361
15362         Tests for module 'unistr/u16-mbtouc'.
15363         * modules/unistr/u16-mbtouc-tests: New file.
15364         * tests/unistr/test-u16-mbtouc.c: New file.
15365
15366         Tests for module 'unistr/u8-mbtouc'.
15367         * modules/unistr/u8-mbtouc-tests: New file.
15368         * tests/unistr/test-u8-mbtouc.c: New file.
15369
15370         Tests for module 'unistr/u32-mbtouc-unsafe'.
15371         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
15372         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
15373         * tests/unistr/test-u32-mbtouc.h: New file.
15374
15375         Tests for module 'unistr/u16-mbtouc-unsafe'.
15376         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
15377         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
15378         * tests/unistr/test-u16-mbtouc.h: New file.
15379
15380         Tests for module 'unistr/u8-mbtouc-unsafe'.
15381         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
15382         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
15383         * tests/unistr/test-u8-mbtouc.h: New file.
15384
15385         Tests for module 'unistr/u32-mblen'.
15386         * modules/unistr/u32-mblen-tests: New file.
15387         * tests/unistr/test-u32-mblen.c: New file.
15388
15389         Tests for module 'unistr/u16-mblen'.
15390         * modules/unistr/u16-mblen-tests: New file.
15391         * tests/unistr/test-u16-mblen.c: New file.
15392
15393         Tests for module 'unistr/u8-mblen'.
15394         * modules/unistr/u8-mblen-tests: New file.
15395         * tests/unistr/test-u8-mblen.c: New file.
15396
15397         Tests for module 'unistr/u32-to-u16'.
15398         * modules/unistr/u32-to-u16-tests: New file.
15399         * tests/unistr/test-u32-to-u16.c: New file.
15400
15401         Tests for module 'unistr/u32-to-u8'.
15402         * modules/unistr/u32-to-u8-tests: New file.
15403         * tests/unistr/test-u32-to-u8.c: New file.
15404
15405         Tests for module 'unistr/u16-to-u32'.
15406         * modules/unistr/u16-to-u32-tests: New file.
15407         * tests/unistr/test-u16-to-u32.c: New file.
15408
15409         Tests for module 'unistr/u16-to-u8'.
15410         * modules/unistr/u16-to-u8-tests: New file.
15411         * tests/unistr/test-u16-to-u8.c: New file.
15412
15413         Tests for module 'unistr/u8-to-u32'.
15414         * modules/unistr/u8-to-u32-tests: New file.
15415         * tests/unistr/test-u8-to-u32.c: New file.
15416
15417         Tests for module 'unistr/u8-to-u16'.
15418         * modules/unistr/u8-to-u16-tests: New file.
15419         * tests/unistr/test-u8-to-u16.c: New file.
15420
15421         Tests for module 'unistr/u32-check'.
15422         * modules/unistr/u32-check-tests: New file.
15423         * tests/unistr/test-u32-check.c: New file.
15424
15425         Tests for module 'unistr/u16-check'.
15426         * modules/unistr/u16-check-tests: New file.
15427         * tests/unistr/test-u16-check.c: New file.
15428
15429         Tests for module 'unistr/u8-check'.
15430         * modules/unistr/u8-check-tests: New file.
15431         * tests/unistr/test-u8-check.c: New file.
15432
15433         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
15434         (category_equals): New function.
15435         (main): Add more tests.
15436         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
15437
15438         * tests/unictype/test-bidi_byname.c (main): Add more tests.
15439
15440 2010-01-10  Bruno Haible  <bruno@clisp.org>
15441
15442         unistr/u*-strcoll: Try harder to distinguish different strings.
15443         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
15444         compare s1 and s2 to see if they are different.
15445
15446 2010-01-10  Bruno Haible  <bruno@clisp.org>
15447
15448         unistr/u*-stpncpy: Fix the return value.
15449         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
15450         description of the return value consistent with stpncpy in glibc.
15451         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
15452         written non-NUL unit.
15453
15454 2010-01-10  Bruno Haible  <bruno@clisp.org>
15455
15456         unistr/u*-next: Add missing dependencies.
15457         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
15458         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
15459         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
15460
15461 2010-01-10  Bruno Haible  <bruno@clisp.org>
15462
15463         unistr/u8-mbsnlen: Fix return value for incomplete character.
15464         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
15465         u8_mblen.
15466         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
15467         Remove unistr/u8-mblen.
15468         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
15469         u16_mblen.
15470         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
15471         Remove unistr/u16-mblen.
15472
15473 2010-01-10  Bruno Haible  <bruno@clisp.org>
15474
15475         wchar: Fix compilation error when <wchar.h> is used from coreutils.
15476         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
15477         Reported by Brian Gough <bjg@gnu.org> and
15478         Chris Clayton <chris2553@googlemail.com> via
15479         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
15480
15481 2010-01-09  Bruno Haible  <bruno@clisp.org>
15482
15483         unistr/u16-to-u32: Reject invalid input.
15484         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
15485         u16_mbtouc.
15486         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
15487         Remove unistr/u16-mbtouc.
15488
15489         unistr/u16-to-u8: Reject invalid input.
15490         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
15491         u16_mbtouc.
15492         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
15493         Remove unistr/u16-mbtouc.
15494
15495         unistr/u8-to-u32: Reject invalid input.
15496         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
15497         u8_mbtouc.
15498         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
15499         Remove unistr/u8-mbtouc.
15500
15501         unistr/u8-to-u16: Reject invalid input.
15502         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
15503         u8_mbtouc.
15504         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
15505         Remove unistr/u8-mbtouc.
15506
15507 2010-01-09  Bruno Haible  <bruno@clisp.org>
15508
15509         Tests for module 'getlogin'.
15510         * modules/getlogin-tests: New file.
15511         * tests/test-getlogin.c: New file.
15512
15513         New module 'getlogin'.
15514         * lib/unistd.in.h (getlogin): New declaration.
15515         * lib/getlogin.c: New file.
15516         * m4/getlogin.m4: New file.
15517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
15518         HAVE_GETLOGIN.
15519         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
15520         HAVE_GETLOGIN.
15521         * modules/getlogin: New file.
15522         * doc/posix-functions/getlogin.texi: Mention the new module.
15523         Reported by John W. Eaton <jwe@gnu.org>.
15524
15525 2010-01-09  Bruno Haible  <bruno@clisp.org>
15526
15527         getlogin_r: Support for native Windows.
15528         * lib/getlogin_r.c: Include <windows.h>
15529         (getlogin_r): Implement for native Windows.
15530         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
15531         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
15532         via John W. Eaton <jwe@gnu.org>.
15533
15534 2010-01-09  Bruno Haible  <bruno@clisp.org>
15535
15536         getlogin_r: Small fixes.
15537         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
15538         succeeds.
15539         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
15540         before testing whether getlogin_r is declared. No need to set
15541         HAVE_DECL_GETLOGIN_R to 1.
15542         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
15543
15544 2010-01-09  Bruno Haible  <bruno@clisp.org>
15545
15546         * lib/unistd.in.h (getlogin_r): Add comment.
15547
15548 2010-01-09  Bruno Haible  <bruno@clisp.org>
15549
15550         Tests for module 'getlogin_r'.
15551         * modules/getlogin_r-tests: New file.
15552         * tests/test-getlogin_r.c: New file.
15553
15554 2010-01-09  Jim Meyering  <meyering@redhat.com>
15555
15556         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
15557         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
15558         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
15559
15560 2010-01-08  Simon Josefsson  <simon@josefsson.org>
15561
15562         * lib/dup2.c (rpl_dup2): Improve comment.
15563
15564 2010-01-08  Eric Blake  <ebb9@byu.net>
15565
15566         maint.mk: allow packages to add makefile @@ exceptions
15567         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
15568         (sc_makefile_check): Rename...
15569         (sc_makefile_at_at_check): ...to this, and use hook.
15570
15571         dup2: work around mingw bug
15572         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
15573         Reported by Simon Josefsson.
15574
15575 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
15576
15577         glob: Fix C++ compilation.
15578         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
15579         C++.
15580
15581 2010-01-07  Bruno Haible  <bruno@clisp.org>
15582
15583         Fix indentation of wctype.in.h, broken since 2007-01-06.
15584         * lib/wctype.in.h: Fix indentation of preprocessor directives.
15585
15586 2010-01-07  Bruno Haible  <bruno@clisp.org>
15587
15588         mbslen: Avoid collision with system function.
15589         * lib/string.in.h [MirBSD]: Include <wchar.h>.
15590         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
15591         * m4/mbslen.m4: New file.
15592         * modules/mbslen (Files): Add it.
15593         (configure.ac): Invoke gl_MBSLEN.
15594         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
15595         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
15596         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
15597         via Ian Beckwith <ianb@erislabs.net>.
15598
15599 2010-01-07  Bruno Haible  <bruno@clisp.org>
15600
15601         dirent: Document the last fix.
15602         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
15603
15604 2010-01-07  Bruno Haible  <bruno@clisp.org>
15605
15606         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
15607         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
15608         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
15609         va_list are defined.
15610         * doc/posix-headers/stdio.texi: Document the bug of missing types.
15611         Reported by Eric Blake.
15612
15613 2010-01-07  Bruno Haible  <bruno@clisp.org>
15614
15615         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
15616         * modules/xlist (Depends-on): Add 'list',
15617         * modules/xoset (Depends-on): Add 'oset'.
15618         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15619
15620 2010-01-07  Bruno Haible  <bruno@clisp.org>
15621
15622         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
15623         * doc/posix-functions/strncasecmp.texi: Likewise.
15624
15625 2010-01-07  Bruno Haible  <bruno@clisp.org>
15626
15627         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
15628
15629 2010-01-07  John W. Eaton  <jwe@octave.org>
15630
15631         wctype: allow C++ use
15632         * lib/wctype.in.h: Add extern "C" block for C++.
15633
15634 2010-01-06  Eric Blake  <ebb9@byu.net>
15635
15636         maint.mk: detect incorrect GFDL usage
15637         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
15638
15639 2010-01-06  Jim Meyering  <meyering@redhat.com>
15640         and Eric Blake  <ebb9@byu.net>
15641
15642         maint.mk: ignore multi-line copyright in NEWS
15643         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
15644
15645 2010-01-06  Eric Blake  <ebb9@byu.net>
15646
15647         select: add missing dependency
15648         * modules/select-tests (Depends-on): Move sockets dependency...
15649         * modules/select (Depends-on): ...here.
15650         Reported by Ian Beckwith.
15651
15652         doc: regenerate INSTALL
15653         * doc/INSTALL: Reflect recent autoconf update.
15654         * doc/INSTALL.ISO: Likewise.
15655         * doc/INSTALL.UTF-8: Likewise.
15656
15657         pread: fix compilation on glibc
15658         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
15659         Reported by Ralf Wildenhues.
15660
15661         dirent: fix test failure
15662         * lib/dirent.in.h (includes): Guarantee ino_t.
15663         Reported by Ralf Wildenhues.
15664
15665 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
15666
15667         linkat, renameat: avoid bad free
15668         * lib/at-func2.c (at_func2): Fix typo.
15669         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
15670
15671 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15672
15673         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
15674         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
15675         to avoid failure of symlink test later.
15676
15677 2010-01-06  Eric Blake  <ebb9@byu.net>
15678
15679         stdio, unistd: guarantee ssize_t
15680         * lib/unistd.in.h (includes): Ensure that types required by POSIX
15681         2008 are exposed when needed.
15682         * lib/stdio.in.h (includes): Likewise.
15683         Reported by Ralf Wildenhues.
15684
15685 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
15686
15687         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
15688         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
15689         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
15690
15691 2010-01-06  Jim Meyering  <meyering@redhat.com>
15692
15693         readtokens: this module *does* require xalloc.h
15694         It uses only functions that were omitted by the old syntax-check rule.
15695         * lib/readtokens.c: Include "xalloc.h" once again.
15696         * modules/readtokens (Depends-on): Add xalloc.
15697         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
15698
15699 2010-01-05  Eric Blake  <ebb9@byu.net>
15700
15701         maint: support 'make announcement' from a VPATH build
15702         * top/maint.mk (announcement): Look for correct NEWS file.
15703
15704 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
15705
15706         utimens (fdutimens): ignore a negative FD, per contract
15707         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
15708         when we have a valid file descriptor.  Otherwise, using a brand
15709         new glibc (with just-patched futimens that now fails with EBADF)
15710         would cause this function to fail with ENOSYS.
15711         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
15712         See also http://bugzilla.redhat.com/552320.
15713
15714 2010-01-05  Eric Blake  <ebb9@byu.net>
15715
15716         strcase: document what it provides
15717         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
15718         gnulib module.
15719         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
15720         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
15721
15722 2010-01-05  Jim Meyering  <meyering@redhat.com>
15723
15724         maint: remove useless inclusions of "xalloc.h"
15725         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
15726         * lib/readtokens.c: Likewise.
15727         * lib/same.c: Likewise.
15728         * modules/getloadavg (Depends-on): Remove xalloc.
15729         * modules/readtokens: Likewise.
15730         * modules/same: Likewise.
15731
15732         maint.mk: include 4 more function names in alloca.h-checking regexp
15733         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
15734         regexp.  Before, we would give a false-positive (saying alloca.h
15735         is included unnecessarily) when the only uses involved omitted symbols.
15736
15737         xalloc.h: use consistent formatting
15738         * lib/xalloc.h: Move declarations to start in the first column.
15739
15740 2010-01-05  Eric Blake  <ebb9@byu.net>
15741
15742         mkdir: avoid xalloc
15743         * lib/mkdir.c (includes): Drop unused header.
15744         Reported by John W. Eaton.
15745
15746 2010-01-04  Jim Meyering  <meyering@redhat.com>
15747
15748         nl_langinfo: avoid configure-time syntax error
15749         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
15750         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
15751         the empty string.  Don't let that provoke a shell syntax error.
15752
15753         regcomp, regexec, fnmatch: avoid array bounds read error
15754         * lib/regcomp.c (build_equiv_class): From glibc:
15755         Use only the low 24 bits of a findidx return value as an index
15756         into the weights array.  Patch by Ulrich Drepper:
15757         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
15758         * lib/regexec.c (check_node_accept_bytes): Likewise.
15759         * lib/fnmatch_loop.c (FCT): Likewise.
15760
15761         regcomp: skip collseq lookup when there are no rules
15762         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
15763         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
15764
15765         regcomp: recognize ill-formed { } expressions
15766         * lib/regcomp.c (parse_dup_op): From glibc:
15767         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
15768
15769         regcomp: fix typo in comment
15770         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
15771         s/satisfy/satisfies/.
15772
15773         regcomp: sync from glibc: remove dead store
15774         * lib/regcomp.c (duplicate_node_closure): Remove useless
15775         search_duplicated_node call and dead store.
15776
15777         regcomp: sync from glibc; always use nl_langinfo
15778         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
15779         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
15780         * modules/regex (Depends-on): Add nl_langinfo.
15781
15782 2010-01-04  Eric Blake  <ebb9@byu.net>
15783
15784         fdopendir: fix configure test
15785         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
15786
15787 2010-01-01  Bruno Haible  <bruno@clisp.org>
15788
15789         wchar: Remove unused configure check.
15790         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
15791
15792 2010-01-01  Eric Blake  <ebb9@byu.net>
15793
15794         headers: make check of system header explicit
15795         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
15796         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
15797         ourselves.
15798         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15799         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15800         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
15801         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
15802         internals.
15803         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
15804         missing.
15805         Suggested by Bruno Haible.
15806
15807 2010-01-01  Jim Meyering  <meyering@redhat.com>
15808
15809         ChangeLog: tweak to eliminate unnecessary copyright line
15810         * ChangeLog: Remove a copyright line that was mistakenly updated
15811         by today's update-copyright run.  Reported by Eric Blake.
15812
15813         test-update-copyright: don't let envvar setting cause test failure
15814         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
15815
15816 2010-01-01  Bruno Haible  <bruno@clisp.org>
15817
15818         localename: Avoid gcc warning.
15819         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
15820         function if it is not used.
15821
15822 2010-01-01  Jim Meyering  <meyering@redhat.com>
15823
15824         update nearly all FSF copyright year lists to include 2010
15825         Use the same procedure as for 2009, outlined in
15826         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
15827
15828         version-etc: set COPYRIGHT_YEAR to 2010
15829         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
15830
15831 2009-12-31  Eric Blake  <ebb9@byu.net>
15832
15833         doc: correct availability of cygwin 1.5.x getopt
15834         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
15835         variables.
15836         * doc/posix-functions/opterr.texi (opterr): Likewise.
15837         * doc/posix-functions/optind.texi (optind): Likewise.
15838         * doc/posix-functions/optopt.texi (optopt): Likewise.
15839         * doc/posix-functions/tzname.texi (tzname): Likewise.
15840
15841         openat: update maintainer
15842         * modules/openat (Maintainer): Add myself.
15843
15844         utimens: avoid shadowing warning
15845         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
15846         buffers into one, to avoid shadowing, as well as avoiding a
15847         redundant stat.
15848         Reported by Jim Meyering.
15849
15850         test-dup2: avoid compiler warning
15851         * tests/test-dup2.c (is_inheritable): Only define if used.
15852
15853 2010-01-01  Bruno Haible  <bruno@clisp.org>
15854
15855         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
15856         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
15857         defined, use wctomb instead of wcrtomb.
15858
15859 2010-01-01  Bruno Haible  <bruno@clisp.org>
15860
15861         iconv: Reject native Solaris iconv.
15862         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
15863         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
15864
15865 2009-12-31  Bruno Haible  <bruno@clisp.org>
15866
15867         * tests/test-signal.c (main): Remove test of 'SIG'.
15868
15869 2009-12-31  Bruno Haible  <bruno@clisp.org>
15870
15871         spawn: Fix incomplete fix.
15872         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
15873         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
15874         warnings for GNULIB_POSIXCHECK again.
15875         Reported by Eric Blake.
15876
15877 2009-12-31  Bruno Haible  <bruno@clisp.org>
15878
15879         Avoid namespace pollution on glibc systems.
15880         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
15881         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
15882         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
15883         glibc systems.
15884
15885 2009-12-31  Bruno Haible  <bruno@clisp.org>
15886
15887         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
15888         (gl_REPLACE_WCHAR_H): Turn into a no-op.
15889         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
15890         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
15891         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
15892         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
15893         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
15894
15895 2009-12-31  Bruno Haible  <bruno@clisp.org>
15896
15897         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
15898         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
15899         afterwards.
15900
15901 2009-12-31  Bruno Haible  <bruno@clisp.org>
15902
15903         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
15904         SYS_UTSNAME_H.
15905
15906 2009-12-31  Bruno Haible  <bruno@clisp.org>
15907
15908         spawn: Fix misapplied patch.
15909         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
15910         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
15911         warnings for GNULIB_POSIXCHECK.
15912
15913 2009-12-31  Bruno Haible  <bruno@clisp.org>
15914
15915         times: Update after sys_times changed.
15916         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
15917         * modules/times (Files): Add it.
15918         (configure.ac): Invoke gl_FUNC_TIMES.
15919
15920 2009-12-31  Bruno Haible  <bruno@clisp.org>
15921
15922         Use AC_C_INLINE where necessary.
15923         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
15924         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
15925         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
15926         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
15927         * m4/mbfile.m4 (gl_MBFILE): Likewise.
15928         * m4/mbiter.m4 (gl_MBITER): Likewise.
15929         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
15930         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15931         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
15932         * modules/u64 (configure.ac): Likewise.
15933
15934 2009-12-31  Bruno Haible  <bruno@clisp.org>
15935
15936         Use AC_C_INLINE instead of module 'inline' where possible.
15937         * modules/inline (Description): Clarify purpose.
15938         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
15939         * modules/count-one-bits (Depends-on): Remove inline.
15940         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
15941         * modules/openat (Depends-on): Remove inline.
15942         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
15943         instead of depending on module 'inline'.
15944         * modules/filevercmp (Depends-on, configure.ac): Likewise.
15945         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
15946         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
15947         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
15948         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
15949         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
15950         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
15951         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
15952         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
15953         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
15954         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
15955         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
15956         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
15957         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
15958         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
15959         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
15960         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
15961         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
15962         Likewise.
15963         * modules/unictype/property-ascii-hex-digit (Depends-on,
15964         configure.ac): Likewise.
15965         * modules/unictype/property-bidi-arabic-digit (Depends-on,
15966         configure.ac): Likewise.
15967         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
15968         configure.ac): Likewise.
15969         * modules/unictype/property-bidi-block-separator (Depends-on,
15970         configure.ac): Likewise.
15971         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
15972         configure.ac): Likewise.
15973         * modules/unictype/property-bidi-common-separator (Depends-on,
15974         configure.ac): Likewise.
15975         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
15976         Likewise.
15977         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
15978         configure.ac): Likewise.
15979         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
15980         configure.ac): Likewise.
15981         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
15982         configure.ac): Likewise.
15983         * modules/unictype/property-bidi-european-digit (Depends-on,
15984         configure.ac): Likewise.
15985         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
15986         configure.ac): Likewise.
15987         * modules/unictype/property-bidi-left-to-right (Depends-on,
15988         configure.ac): Likewise.
15989         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
15990         configure.ac): Likewise.
15991         * modules/unictype/property-bidi-other-neutral (Depends-on,
15992         configure.ac): Likewise.
15993         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
15994         Likewise.
15995         * modules/unictype/property-bidi-segment-separator (Depends-on,
15996         configure.ac): Likewise.
15997         * modules/unictype/property-bidi-whitespace (Depends-on,
15998         configure.ac): Likewise.
15999         * modules/unictype/property-combining (Depends-on, configure.ac):
16000         Likewise.
16001         * modules/unictype/property-composite (Depends-on, configure.ac):
16002         Likewise.
16003         * modules/unictype/property-currency-symbol (Depends-on,
16004         configure.ac): Likewise.
16005         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
16006         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
16007         Likewise.
16008         * modules/unictype/property-default-ignorable-code-point (Depends-on,
16009         configure.ac): Likewise.
16010         * modules/unictype/property-deprecated (Depends-on, configure.ac):
16011         Likewise.
16012         * modules/unictype/property-diacritic (Depends-on, configure.ac):
16013         Likewise.
16014         * modules/unictype/property-extender (Depends-on, configure.ac):
16015         Likewise.
16016         * modules/unictype/property-format-control (Depends-on, configure.ac):
16017         Likewise.
16018         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
16019         Likewise.
16020         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
16021         Likewise.
16022         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
16023         Likewise.
16024         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
16025         Likewise.
16026         * modules/unictype/property-hyphen (Depends-on, configure.ac):
16027         Likewise.
16028         * modules/unictype/property-id-continue (Depends-on, configure.ac):
16029         Likewise.
16030         * modules/unictype/property-id-start (Depends-on, configure.ac):
16031         Likewise.
16032         * modules/unictype/property-ideographic (Depends-on, configure.ac):
16033         Likewise.
16034         * modules/unictype/property-ids-binary-operator (Depends-on,
16035         configure.ac): Likewise.
16036         * modules/unictype/property-ids-trinary-operator (Depends-on,
16037         configure.ac): Likewise.
16038         * modules/unictype/property-ignorable-control (Depends-on,
16039         configure.ac): Likewise.
16040         * modules/unictype/property-iso-control (Depends-on, configure.ac):
16041         Likewise.
16042         * modules/unictype/property-join-control (Depends-on, configure.ac):
16043         Likewise.
16044         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
16045         Likewise.
16046         * modules/unictype/property-line-separator (Depends-on, configure.ac):
16047         Likewise.
16048         * modules/unictype/property-logical-order-exception (Depends-on,
16049         configure.ac): Likewise.
16050         * modules/unictype/property-lowercase (Depends-on, configure.ac):
16051         Likewise.
16052         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
16053         * modules/unictype/property-non-break (Depends-on, configure.ac):
16054         Likewise.
16055         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
16056         Likewise.
16057         * modules/unictype/property-numeric (Depends-on, configure.ac):
16058         Likewise.
16059         * modules/unictype/property-other-alphabetic (Depends-on,
16060         configure.ac): Likewise.
16061         * modules/unictype/property-other-default-ignorable-code-point
16062         (Depends-on, configure.ac): Likewise.
16063         * modules/unictype/property-other-grapheme-extend (Depends-on,
16064         configure.ac): Likewise.
16065         * modules/unictype/property-other-id-continue (Depends-on,
16066         configure.ac): Likewise.
16067         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
16068         Likewise.
16069         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
16070         Likewise.
16071         * modules/unictype/property-other-math (Depends-on, configure.ac):
16072         Likewise.
16073         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
16074         Likewise.
16075         * modules/unictype/property-paired-punctuation (Depends-on,
16076         configure.ac): Likewise.
16077         * modules/unictype/property-paragraph-separator (Depends-on,
16078         configure.ac): Likewise.
16079         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
16080         Likewise.
16081         * modules/unictype/property-pattern-white-space (Depends-on,
16082         configure.ac): Likewise.
16083         * modules/unictype/property-private-use (Depends-on, configure.ac):
16084         Likewise.
16085         * modules/unictype/property-punctuation (Depends-on, configure.ac):
16086         Likewise.
16087         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
16088         Likewise.
16089         * modules/unictype/property-radical (Depends-on, configure.ac):
16090         Likewise.
16091         * modules/unictype/property-sentence-terminal (Depends-on,
16092         configure.ac): Likewise.
16093         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
16094         Likewise.
16095         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
16096         * modules/unictype/property-terminal-punctuation (Depends-on,
16097         configure.ac): Likewise.
16098         * modules/unictype/property-titlecase (Depends-on, configure.ac):
16099         Likewise.
16100         * modules/unictype/property-unassigned-code-value (Depends-on,
16101         configure.ac): Likewise.
16102         * modules/unictype/property-unified-ideograph (Depends-on,
16103         configure.ac): Likewise.
16104         * modules/unictype/property-uppercase (Depends-on, configure.ac):
16105         Likewise.
16106         * modules/unictype/property-variation-selector (Depends-on,
16107         configure.ac): Likewise.
16108         * modules/unictype/property-white-space (Depends-on, configure.ac):
16109         Likewise.
16110         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
16111         Likewise.
16112         * modules/unictype/property-xid-start (Depends-on, configure.ac):
16113         Likewise.
16114         * modules/unictype/property-zero-width (Depends-on, configure.ac):
16115         Likewise.
16116         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
16117         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
16118         Likewise.
16119
16120 2009-12-31  Bruno Haible  <bruno@clisp.org>
16121
16122         Remove unnecessary AC_C_INLINE invocation.
16123         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
16124         since 2009-08-21.
16125
16126 2009-12-31  Jim Meyering  <meyering@redhat.com>
16127
16128         maint.mk: don't require explicit gpg_key_ID in cfg.mk
16129         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
16130         With this change, we can all remove the gpg_key_ID = ... definition
16131         from our respective cfg.mk files.
16132
16133         maint.mk: create announcement template in ~/, not in /tmp
16134         * top/maint.mk (emit_upload_commands): Adjust.
16135         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
16136         Remove temporary file, .ci-msg.
16137
16138 2009-12-31  Eric Blake  <ebb9@byu.net>
16139
16140         link-warning: always build headers with link warnings
16141         * modules/arpa_inet (Makefile.am): Always build replacement
16142         header.
16143         * modules/ctype (Makefile.am): Likewise.
16144         * modules/dirent (Makefile.am): Likewise.
16145         * modules/inttypes (Makefile.am): Likewise.
16146         * modules/langinfo (Makefile.am): Likewise.
16147         * modules/locale (Makefile.am): Likewise.
16148         * modules/spawn (Makefile.am): Likewise.
16149         * modules/sys_file (Makefile.am): Likewise.
16150         * modules/sys_ioctl (Makefile.am): Likewise.
16151         * modules/sys_select (Makefile.am): Likewise.
16152         * modules/sys_socket (Makefile.am): Likewise.
16153         * modules/sys_times (Makefile.am): Likewise.
16154         * modules/sys_utsname (Makefile.am): Likewise.
16155         * modules/sys_wait (Makefile.am): Likewise.
16156         * modules/wchar (Makefile.am): Likewise.
16157         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
16158         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
16159         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
16160         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
16161         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
16162         Likewise.
16163         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16164         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16165         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
16166         Likewise.
16167         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
16168         Likewise.
16169         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16170         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
16171         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
16172         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16173         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16174         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
16175         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
16176         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
16177         (gl_WCHAR_H_DEFAULTS): Likewise.
16178
16179 2009-12-31  Eric Blake  <ebb9@byu.net>
16180
16181         signal, spawn: use link warnings
16182         * lib/signal.in.h (sigset_t): Make unconditional.
16183         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
16184         (sigpending, sigprocmask, sigaction): Add link warnings.
16185         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
16186         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
16187         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
16188         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
16189         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
16190         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
16191         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
16192         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
16193         (posix_spawn_file_actions_destroy)
16194         (posix_spawn_file_actions_addopen)
16195         (posix_spawn_file_actions_addclose)
16196         (posix_spawn_file_actions_adddup2): Likewise.
16197         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
16198         * tests/test-signal.c (main): Enhance test.
16199
16200         spawn: improve wrapper support
16201         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
16202         (gl_SPAWN_H_DEFAULTS): New defaults.
16203         * modules/spawn (Makefile.am): Substitute them.
16204         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
16205         Only declare if missing or broken.
16206
16207         sys_times, sys_utsname: use include_next
16208         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
16209         header.
16210         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
16211         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
16212         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
16213         * modules/sys_times (Depends-on): Add include_next.
16214         (Makefile.am): Substitute additional values.
16215         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
16216         * lib/sys_times.in.h (includes): Include native header, if
16217         available.
16218         * lib/sys_utsname.in.h (includes): Likewise.
16219         * tests/test-sys_times.c (main): Enhance test.
16220
16221         fdutimensat: revert prior patch
16222         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
16223         utimens.h.
16224         Reported by Bruno Haible.
16225
16226 2009-12-30  Eric Blake  <ebb9@byu.net>
16227
16228         sys_wait: drop link-warning dependency
16229         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
16230         link-warning efforts.
16231         * lib/sys_wait.in.h: Likewise.
16232
16233         fdutimensat: remove bogus dependency
16234         * modules/fdutimensat (Depends-on): Drop inline.
16235
16236         unistd: fix typo
16237         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
16238
16239 2009-12-30  Bruno Haible  <bruno@clisp.org>
16240
16241         Fix compilation error with Solaris cc.
16242         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
16243         * lib/unicase/u16-is-invariant.c: Likewise.
16244         * lib/unicase/u32-is-invariant.c: Likewise.
16245         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
16246
16247 2009-12-30  Bruno Haible  <bruno@clisp.org>
16248
16249         Fix test crash.
16250         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
16251         locales.
16252         Reported by Simon Josefsson <simon@josefsson.org>.
16253
16254 2009-12-30  Bruno Haible  <bruno@clisp.org>
16255
16256         Fix compilation error on most platforms.
16257         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
16258         Reported by Simon Josefsson <simon@josefsson.org>
16259         and Nelson H. F. Beebe <beebe@math.utah.edu>.
16260
16261 2009-12-30  Eric Blake  <ebb9@byu.net>
16262
16263         futimens, utimensat: work around ntfs-3g bug
16264         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
16265         a ctime bug is present, and expand workaround to cover ntfs-3g.
16266         * lib/utimens.c (fdutimens, lutimens): Likewise.
16267         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
16268         (validate_timespec): Adjust return value.
16269         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
16270         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16271         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
16272
16273 2009-12-29  Eric Blake  <ebb9@byu.net>
16274
16275         link-warning: make usage consistent
16276         * modules/ctype (Depends-on): Add link-warning.
16277         (Makefile.am): Update rules accordingly.
16278         * modules/langinfo (Depends-on, Makefile.am): Likewise.
16279         * modules/locale (Depends-on, Makefile.am): Likewise.
16280         * modules/sys_file (Makefile.am): Likewise.
16281         * modules/getopt-posix (Makefile.am): Delete unused link warning
16282         efforts.
16283         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
16284         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
16285         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
16286         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
16287
16288         stdio: remove unused variables
16289         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
16290         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
16291         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16292
16293         tests: test more substitute headers
16294         * modules/ctype-tests: New file.
16295         * modules/dirent-tests: Likewise.
16296         * modules/spawn-tests: Likewise.
16297         * modules/sys_file-tests: Likewise.
16298         * modules/sys_ioctl-tests: Likewise.
16299         * modules/sys_wait-tests: Likewise.
16300         * tests/test-ctype.c: Likewise.
16301         * tests/test-dirent.c: Likewise.
16302         * tests/test-spawn.c: Likewise.
16303         * tests/test-sys_file.c: Likewise.
16304         * tests/test-sys_ioctl.c: Likewise.
16305         * tests/test-sys_wait.c: Likewise.
16306         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
16307         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
16308         whether or not flock is in use.
16309
16310         tests: remove License section from module
16311         * modules/arpa_inet-tests: Remove unneeded section.
16312         * modules/byteswap-tests: Likewise.
16313         * modules/ceilf-tests: Likewise.
16314         * modules/ceill-tests: Likewise.
16315         * modules/crypto/des-tests: Likewise.
16316         * modules/crypto/gc-arcfour-tests: Likewise.
16317         * modules/crypto/gc-arctwo-tests: Likewise.
16318         * modules/crypto/gc-des-tests: Likewise.
16319         * modules/crypto/gc-hmac-md5-tests: Likewise.
16320         * modules/crypto/gc-hmac-sha1-tests: Likewise.
16321         * modules/crypto/gc-md2-tests: Likewise.
16322         * modules/crypto/gc-md4-tests: Likewise.
16323         * modules/crypto/gc-md5-tests: Likewise.
16324         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
16325         * modules/crypto/gc-rijndael-tests: Likewise.
16326         * modules/crypto/gc-sha1-tests: Likewise.
16327         * modules/crypto/gc-tests: Likewise.
16328         * modules/crypto/md2-tests: Likewise.
16329         * modules/crypto/md4-tests: Likewise.
16330         * modules/fcntl-h-tests: Likewise.
16331         * modules/floorf-tests: Likewise.
16332         * modules/floorl-tests: Likewise.
16333         * modules/frexp-nolibm-tests: Likewise.
16334         * modules/frexp-tests: Likewise.
16335         * modules/frexpl-nolibm-tests: Likewise.
16336         * modules/frexpl-tests: Likewise.
16337         * modules/getaddrinfo-tests: Likewise.
16338         * modules/inttypes-tests: Likewise.
16339         * modules/isfinite-tests: Likewise.
16340         * modules/isinf-tests: Likewise.
16341         * modules/ldexpl-tests: Likewise.
16342         * modules/locale-tests: Likewise.
16343         * modules/math-tests: Likewise.
16344         * modules/netdb-tests: Likewise.
16345         * modules/netinet_in-tests: Likewise.
16346         * modules/printf-frexp-tests: Likewise.
16347         * modules/printf-frexpl-tests: Likewise.
16348         * modules/priv-set-tests: Likewise.
16349         * modules/random_r-tests: Likewise.
16350         * modules/round-tests: Likewise.
16351         * modules/roundf-tests: Likewise.
16352         * modules/roundl-tests: Likewise.
16353         * modules/search-tests: Likewise.
16354         * modules/select-tests: Likewise.
16355         * modules/signal-tests: Likewise.
16356         * modules/stdbool-tests: Likewise.
16357         * modules/stddef-tests: Likewise.
16358         * modules/stdint-tests: Likewise.
16359         * modules/stdio-tests: Likewise.
16360         * modules/stdlib-tests: Likewise.
16361         * modules/string-tests: Likewise.
16362         * modules/strings-tests: Likewise.
16363         * modules/sys_select-tests: Likewise.
16364         * modules/sys_socket-tests: Likewise.
16365         * modules/sys_stat-tests: Likewise.
16366         * modules/sys_time-tests: Likewise.
16367         * modules/sys_utsname-tests: Likewise.
16368         * modules/sysexits-tests: Likewise.
16369         * modules/time-tests: Likewise.
16370         * modules/trunc-tests: Likewise.
16371         * modules/truncf-tests: Likewise.
16372         * modules/truncl-tests: Likewise.
16373         * modules/tsearch-tests: Likewise.
16374         * modules/unistd-tests: Likewise.
16375         * modules/wchar-tests: Likewise.
16376         * modules/wctype-tests: Likewise.
16377
16378         tests: fix license on several tests
16379         * tests/test-des.c: Update to GPLv3+.
16380         * tests/test-flock.c: Likewise.
16381         * tests/test-fsync.c: Likewise.
16382         * tests/test-futimens.h: Likewise.
16383         * tests/test-gc-arcfour.c: Likewise.
16384         * tests/test-gc-arctwo.c: Likewise.
16385         * tests/test-gc-des.c: Likewise.
16386         * tests/test-gc-hmac-md5.c: Likewise.
16387         * tests/test-gc-hmac-sha1.c: Likewise.
16388         * tests/test-gc-md2.c: Likewise.
16389         * tests/test-gc-md4.c: Likewise.
16390         * tests/test-gc-md5.c: Likewise.
16391         * tests/test-gc-pbkdf2-sha1.c: Likewise.
16392         * tests/test-gc-rijndael.c: Likewise.
16393         * tests/test-gc-sha1.c: Likewise.
16394         * tests/test-gc.c: Likewise.
16395         * tests/test-getcwd.c: Likewise.
16396         * tests/test-link.c: Likewise.
16397         * tests/test-link.h: Likewise.
16398         * tests/test-lutimens.h: Likewise.
16399         * tests/test-md2.c: Likewise.
16400         * tests/test-md4.c: Likewise.
16401         * tests/test-mkdir.h: Likewise.
16402         * tests/test-rename.c: Likewise.
16403         * tests/test-rename.h: Likewise.
16404         * tests/test-safe-alloc.c: Likewise.
16405         * tests/test-utimens-common.h: Likewise.
16406         * tests/test-utimens.h: Likewise.
16407
16408         maint: sync license texts
16409         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
16410         * doc/gpl-3.0.texi: Revert copyright year update.
16411         * doc/lgpl-3.0.texi: Likewise.
16412
16413 2009-12-29  Jim Meyering  <meyering@redhat.com>
16414
16415         update nearly all FSF copyright year lists to include 2009
16416         The files named by the following are exempted:
16417             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
16418               test -f "$dst" && { echo "$dst"; continue; }
16419               test -d "$dst" || continue
16420               echo "$dst"/$(basename "$src")
16421             done > exempt
16422             git ls-files tests/unictype >> exempt
16423         In the remaining files, convert to all-interval notation if
16424         - there is already at least one year interval like 2000-2003
16425         - the file is maintained by me
16426         - the file is in lib/uni*/, where that style already prevails
16427         Otherwise, use update-copyright's default.
16428
16429 2009-12-29  Simon Josefsson  <simon@josefsson.org>
16430         and Eric Blake  <ebb9@byu.net>
16431
16432         tests: don't require debug system() to pass
16433         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
16434         * tests/test-rmdir.h (test_rmdir_func): Likewise.
16435         * tests/test-unlink.h (test_unlink_func): Likewise.
16436         * tests/test-fstatat.c (main): ...into callers.
16437         * tests/test-lstat.c (main): Likewise.
16438         * tests/test-rmdir.c (main): Likewise.
16439         * tests/test-unlink.c (main): Likewise.
16440         * tests/test-unlinkat.c (main): Likewise.
16441         * tests/test-areadlink-with-size.c (main): Don't require a
16442         debug-only system call to pass, aiding cross-testing to mingw.
16443         * tests/test-areadlink.c (main): Likewise.
16444         * tests/test-areadlinkat-with-size.c (main): Likewise.
16445         * tests/test-areadlinkat.c (main): Likewise.
16446         * tests/test-canonicalize-lgpl.c (main): Likewise.
16447         * tests/test-canonicalize.c (main): Likewise.
16448         * tests/test-chown.c (main): Likewise.
16449         * tests/test-fchownat.c (main): Likewise.
16450         * tests/test-lchown.c (main): Likewise.
16451         * tests/test-fdutimensat.c (main): Likewise.
16452         * tests/test-futimens.c (main): Likewise.
16453         * tests/test-link.c (main): Likewise.
16454         * tests/test-linkat.c (main): Likewise.
16455         * tests/test-mkdir.c (main): Likewise.
16456         * tests/test-mkdirat.c (main): Likewise.
16457         * tests/test-mkfifo.c (main): Likewise.
16458         * tests/test-mkfifoat.c (main): Likewise.
16459         * tests/test-mknod.c (main): Likewise.
16460         * tests/test-readlink.c (main): Likewise.
16461         * tests/test-remove.c (main): Likewise.
16462         * tests/test-rename.c (main): Likewise.
16463         * tests/test-renameat.c (main): Likewise.
16464         * tests/test-symlink.c (main): Likewise.
16465         * tests/test-symlinkat.c (main): Likewise.
16466         * tests/test-utimens.c (main): Likewise.
16467         * tests/test-utimensat.c (main): Likewise.
16468
16469 2009-12-29  Simon Josefsson  <simon@josefsson.org>
16470
16471         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
16472         on $(UNUSED_PARAMETER_H) to avoid build failure.
16473
16474 2009-12-28  Jim Meyering  <meyering@redhat.com>
16475
16476         update-copyright: you may specify a max. line length other than 72
16477         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
16478
16479         maint: use consistent FSF copyright line syntax
16480         * lib/posixtm.c: Add missing comma in FSF copyright line.
16481         * lib/posixtm.h: Likewise.
16482         * lib/getugroups.c: Add missing ", Inc.".
16483
16484         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
16485         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
16486         FSF copyright line.  Remove trailing blanks.
16487
16488 2009-12-28  Eric Blake  <ebb9@byu.net>
16489
16490         test-dup2: reduce dependencies
16491         * modules/cloexec (Configure.ac): Set witness.
16492         * modules/dup2-tests (Depends-on): Drop cloexec.
16493         * tests/test-dup2.c (main): Skip portion of test if cloexec module
16494         not present.
16495         Suggested by Bruno Haible.
16496
16497 2009-12-26  Bruno Haible  <bruno@clisp.org>
16498
16499         Remove an unneeded dependency.
16500         * modules/fseterr (Depends-on): Remove dup2.
16501
16502 2009-12-26  Eric Blake  <ebb9@byu.net>
16503
16504         tests: use macros.h in more places
16505         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
16506         (ASSERT_STREAM): Provide default of stderr.
16507         * tests/test-dirent-safer.c: Include macros.h, using alternate
16508         stream for assertions.
16509         * tests/test-dup-safer.c: Likewise.
16510         * tests/test-freopen-safer.c: Likewise.
16511         * tests/test-getopt.c: Likewise.
16512         * tests/test-openat-safer.c: Likewise.
16513         * tests/test-pipe.c: Likewise.
16514         * tests/test-popen-safer.c: Likewise.
16515         * modules/dirent-safer-tests (Files): Include macros.h.
16516         * modules/unistd-safer-tests (Files): Likewise.
16517         * modules/freopen-safer-tests (Files): Likewise.
16518         * modules/getopt-posix-tests (Files): Likewise.
16519         * modules/openat-safer-tests (Files): Likewise.
16520         * modules/pipe-tests (Files): Likewise.
16521
16522 2009-12-26  Bruno Haible  <bruno@clisp.org>
16523
16524         javacomp: Portability fix.
16525         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
16526         that it also works on Solaris.
16527
16528 2009-12-26  Bruno Haible  <bruno@clisp.org>
16529
16530         localename: Fix storage allocation of gl_locale_name_thread's result.
16531         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
16532         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
16533         all platforms that have 'uselocale'.
16534         (gl_locale_name_thread_unsafe): New function, extracted from
16535         gl_locale_name_thread.
16536         (gl_locale_name_thread): Call struniq on all platforms that have
16537         'uselocale'.
16538         * tests/test-localename.c (test_locale_name_thread): Check that the
16539         resulting strings are permanently allocated.
16540         * modules/localename-tests (Depends-on): Add strdup.
16541
16542 2009-12-26  Bruno Haible  <bruno@clisp.org>
16543
16544         * tests/test-localename.c (categories): Fill in the strings.
16545
16546 2009-12-26  Jim Meyering  <meyering@redhat.com>
16547
16548         isdir: complete the removal of m4/isdir.m4
16549         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
16550
16551         isdir: clean up, since at least grep still uses it
16552         * lib/isdir.c: Include "isdir.h".
16553         (S_ISDIR): Remove now-unneeded definition.
16554         * modules/isdir (Files): Add lib/isdir.h.
16555         * lib/isdir.h: New file, with declaration.
16556         * m4/isdir.m4: Remove file -- unneeded.
16557
16558 2009-12-25  Bruno Haible  <bruno@clisp.org>
16559
16560         selinux-h: Make generated .h files standalone.
16561         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
16562         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
16563         * lib/se-selinux.in.h: Likewise.
16564         * modules/selinux-h (Depends-on): Add unused-parameter.
16565         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
16566         selinux/selinux.h and selinux/context.h.
16567         Suggested by Eric Blake.
16568
16569 2009-12-25  Bruno Haible  <bruno@clisp.org>
16570
16571         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
16572         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
16573         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
16574         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
16575         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
16576
16577 2009-12-24  Bruno Haible  <bruno@clisp.org>
16578
16579         openat: Fix warning.
16580         * lib/openat-proc.c: Include <unistd.h>.
16581
16582 2009-12-24  Bruno Haible  <bruno@clisp.org>
16583
16584         New module 'unused-parameter'.
16585         * build-aux/unused-parameter.h: New file, extracted from earlier
16586         gnulib-common.m4.
16587         * modules/unused-parameter: New file.
16588         * lib/unistr.h: Include unused-parameter.h.
16589         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
16590         _GL_UNUSED.
16591         * modules/unistr/base (Depends-on): Add unused-parameter.
16592
16593 2009-12-24  Bruno Haible  <bruno@clisp.org>
16594
16595         Add missing dependencies to 'extensions' module.
16596         * m4/extensions.m4: Add comment.
16597         * modules/accept4 (Depends-on): Add extensions.
16598         * modules/dup3 (Depends-on): Likewise.
16599         * modules/fcntl (Depends-on): Likewise.
16600         * modules/futimens (Depends-on): Likewise.
16601         * modules/mknod (Depends-on): Likewise.
16602         * modules/pipe2 (Depends-on): Likewise.
16603         * modules/stat-time (Depends-on): Likewise.
16604         * modules/strcasestr-simple (Depends-on): Likewise.
16605         * modules/strsignal (Depends-on): Likewise.
16606         * modules/utimensat (Depends-on): Likewise.
16607         * modules/localcharset (Depends-on): Likewise. Needed because of
16608         gl_FCNTL_O_FLAGS.
16609         * modules/wcrtomb (Depends-on): Likewise. Needed because of
16610         AC_TYPE_MBSTATE_T.
16611         * modules/wcsnrtombs (Depends-on): Likewise.
16612         * modules/wcsrtombs (Depends-on): Likewise.
16613
16614 2009-12-24  Bruno Haible  <bruno@clisp.org>
16615
16616         binary-io: Avoid gcc warning due to SET_BINARY.
16617         * lib/binary-io.h (SET_BINARY): Cast the result to void.
16618         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
16619
16620 2009-12-24  Bruno Haible  <bruno@clisp.org>
16621
16622         Avoid future namespace pollution on glibc systems.
16623         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
16624         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
16625         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
16626         glibc systems.
16627
16628 2009-12-24  Bruno Haible  <bruno@clisp.org>
16629
16630         Refactor common macros used in tests.
16631         * tests/macros.h: New file.
16632         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
16633         and/or <stdlib.h>, if appropriate.
16634         (ASSERT, SIZEOF): Remove macros.
16635         * tests/test-areadlink-with-size.c: Likewise.
16636         * tests/test-areadlinkat.c: Likewise.
16637         * tests/test-areadlinkat-with-size.c: Likewise.
16638         * tests/test-argmatch.c: Likewise.
16639         * tests/test-argv-iter.c: Likewise.
16640         * tests/test-array-mergesort.c: Likewise.
16641         * tests/test-array_list.c: Likewise.
16642         * tests/test-array_oset.c: Likewise.
16643         * tests/test-avltree_list.c: Likewise.
16644         * tests/test-avltree_oset.c: Likewise.
16645         * tests/test-avltreehash_list.c: Likewise.
16646         * tests/test-base64.c: Likewise.
16647         * tests/test-binary-io.c: Likewise.
16648         * tests/test-bitrotate.c: Likewise.
16649         * tests/test-btowc.c: Likewise.
16650         * tests/test-byteswap.c: Likewise.
16651         * tests/test-c-ctype.c: Likewise.
16652         * tests/test-c-stack.c: Likewise.
16653         * tests/test-c-strcasecmp.c: Likewise.
16654         * tests/test-c-strcasestr.c: Likewise.
16655         * tests/test-c-strncasecmp.c: Likewise.
16656         * tests/test-c-strstr.c: Likewise.
16657         * tests/test-canonicalize-lgpl.c: Likewise.
16658         * tests/test-canonicalize.c: Likewise.
16659         * tests/test-carray_list.c: Likewise.
16660         * tests/test-ceilf1.c: Likewise.
16661         * tests/test-ceilf2.c: Likewise.
16662         * tests/test-ceill.c: Likewise.
16663         * tests/test-chown.c: Likewise.
16664         * tests/test-cloexec.c: Likewise.
16665         * tests/test-copy-acl.c: Likewise.
16666         * tests/test-copy-file.c: Likewise.
16667         * tests/test-count-one-bits.c: Likewise.
16668         * tests/test-dprintf-posix.c: Likewise.
16669         * tests/test-dup2.c: Likewise.
16670         * tests/test-dup3.c: Likewise.
16671         * tests/test-duplocale.c: Likewise.
16672         * tests/test-fbufmode.c: Likewise.
16673         * tests/test-fchdir.c: Likewise.
16674         * tests/test-fchownat.c: Likewise.
16675         * tests/test-fcntl-safer.c: Likewise.
16676         * tests/test-fcntl.c: Likewise.
16677         * tests/test-fdopendir.c: Likewise.
16678         * tests/test-fdutimensat.c: Likewise.
16679         * tests/test-fflush2.c: Likewise.
16680         * tests/test-file-has-acl.c: Likewise.
16681         * tests/test-filevercmp.c: Likewise.
16682         * tests/test-flock.c: Likewise.
16683         * tests/test-floorf1.c: Likewise.
16684         * tests/test-floorf2.c: Likewise.
16685         * tests/test-floorl.c: Likewise.
16686         * tests/test-fnmatch.c: Likewise.
16687         * tests/test-fopen.h: Likewise.
16688         * tests/test-fpending.c: Likewise.
16689         * tests/test-fprintf-posix.c: Likewise.
16690         * tests/test-fpurge.c: Likewise.
16691         * tests/test-freadable.c: Likewise.
16692         * tests/test-freadahead.c: Likewise.
16693         * tests/test-freading.c: Likewise.
16694         * tests/test-freadptr.c: Likewise.
16695         * tests/test-freadptr2.c: Likewise.
16696         * tests/test-freadseek.c: Likewise.
16697         * tests/test-freopen.c: Likewise.
16698         * tests/test-frexp.c: Likewise.
16699         * tests/test-frexpl.c: Likewise.
16700         * tests/test-fseek.c: Likewise.
16701         * tests/test-fseeko.c: Likewise.
16702         * tests/test-fstatat.c: Likewise.
16703         * tests/test-fstrcmp.c: Likewise.
16704         * tests/test-fsync.c: Likewise.
16705         * tests/test-ftell.c: Likewise.
16706         * tests/test-ftello.c: Likewise.
16707         * tests/test-func.c: Likewise.
16708         * tests/test-futimens.c: Likewise.
16709         * tests/test-fwritable.c: Likewise.
16710         * tests/test-fwriting.c: Likewise.
16711         * tests/test-getcwd.c: Likewise.
16712         * tests/test-getdate.c: Likewise.
16713         * tests/test-getdelim.c: Likewise.
16714         * tests/test-getdtablesize.c: Likewise.
16715         * tests/test-getgroups.c: Likewise.
16716         * tests/test-getline.c: Likewise.
16717         * tests/test-getndelim2.c: Likewise.
16718         * tests/test-glob.c: Likewise.
16719         * tests/test-hash.c: Likewise.
16720         * tests/test-i-ring.c: Likewise.
16721         * tests/test-iconv-utf.c: Likewise.
16722         * tests/test-iconv.c: Likewise.
16723         * tests/test-idpriv-drop.c: Likewise.
16724         * tests/test-idpriv-droptemp.c: Likewise.
16725         * tests/test-inet_ntop.c: Likewise.
16726         * tests/test-inet_pton.c: Likewise.
16727         * tests/test-isblank.c: Likewise.
16728         * tests/test-isfinite.c: Likewise.
16729         * tests/test-isinf.c: Likewise.
16730         * tests/test-isnan.c: Likewise.
16731         * tests/test-isnand.h: Likewise.
16732         * tests/test-isnanf.h: Likewise.
16733         * tests/test-isnanl.h: Likewise.
16734         * tests/test-lchown.c: Likewise.
16735         * tests/test-ldexpl.c: Likewise.
16736         * tests/test-link.c: Likewise.
16737         * tests/test-linkat.c: Likewise.
16738         * tests/test-linked_list.c: Likewise.
16739         * tests/test-linkedhash_list.c: Likewise.
16740         * tests/test-localename.c: Likewise.
16741         * tests/test-lseek.c: Likewise.
16742         * tests/test-lstat.c: Likewise.
16743         * tests/test-mbmemcasecmp.c: Likewise.
16744         * tests/test-mbmemcasecoll.c: Likewise.
16745         * tests/test-mbrtowc.c: Likewise.
16746         * tests/test-mbscasecmp.c: Likewise.
16747         * tests/test-mbscasestr1.c: Likewise.
16748         * tests/test-mbscasestr2.c: Likewise.
16749         * tests/test-mbscasestr3.c: Likewise.
16750         * tests/test-mbscasestr4.c: Likewise.
16751         * tests/test-mbschr.c: Likewise.
16752         * tests/test-mbscspn.c: Likewise.
16753         * tests/test-mbsinit.c: Likewise.
16754         * tests/test-mbsncasecmp.c: Likewise.
16755         * tests/test-mbsnrtowcs.c: Likewise.
16756         * tests/test-mbspbrk.c: Likewise.
16757         * tests/test-mbspcasecmp.c: Likewise.
16758         * tests/test-mbsrchr.c: Likewise.
16759         * tests/test-mbsrtowcs.c: Likewise.
16760         * tests/test-mbsspn.c: Likewise.
16761         * tests/test-mbsstr1.c: Likewise.
16762         * tests/test-mbsstr2.c: Likewise.
16763         * tests/test-mbsstr3.c: Likewise.
16764         * tests/test-memchr.c: Likewise.
16765         * tests/test-memchr2.c: Likewise.
16766         * tests/test-memcmp.c: Likewise.
16767         * tests/test-memmem.c: Likewise.
16768         * tests/test-memrchr.c: Likewise.
16769         * tests/test-mkdir.c: Likewise.
16770         * tests/test-mkdirat.c: Likewise.
16771         * tests/test-mkfifo.c: Likewise.
16772         * tests/test-mkfifoat.c: Likewise.
16773         * tests/test-mknod.c: Likewise.
16774         * tests/test-nanosleep.c: Likewise.
16775         * tests/test-nl_langinfo.c: Likewise.
16776         * tests/test-obstack-printf.c: Likewise.
16777         * tests/test-open.c: Likewise.
16778         * tests/test-openat.c: Likewise.
16779         * tests/test-pipe-filter-gi1.c: Likewise.
16780         * tests/test-pipe-filter-gi2-main.c: Likewise.
16781         * tests/test-pipe-filter-ii1.c: Likewise.
16782         * tests/test-pipe-filter-ii2-main.c: Likewise.
16783         * tests/test-pipe2.c: Likewise.
16784         * tests/test-popen.h: Likewise.
16785         * tests/test-posixtm.c: Likewise.
16786         * tests/test-pread.c: Likewise.
16787         * tests/test-printf-frexp.c: Likewise.
16788         * tests/test-printf-frexpl.c: Likewise.
16789         * tests/test-printf-posix.c: Likewise.
16790         * tests/test-priv-set.c: Likewise.
16791         * tests/test-quotearg.c: Likewise.
16792         * tests/test-random_r.c: Likewise.
16793         * tests/test-rawmemchr.c: Likewise.
16794         * tests/test-rbtree_list.c: Likewise.
16795         * tests/test-rbtree_oset.c: Likewise.
16796         * tests/test-rbtreehash_list.c: Likewise.
16797         * tests/test-readlink.c: Likewise.
16798         * tests/test-remove.c: Likewise.
16799         * tests/test-rename.c: Likewise.
16800         * tests/test-renameat.c: Likewise.
16801         * tests/test-rmdir.c: Likewise.
16802         * tests/test-round1.c: Likewise.
16803         * tests/test-roundf1.c: Likewise.
16804         * tests/test-roundl.c: Likewise.
16805         * tests/test-safe-alloc.c: Likewise.
16806         * tests/test-sameacls.c: Likewise.
16807         * tests/test-set-mode-acl.c: Likewise.
16808         * tests/test-setenv.c: Likewise.
16809         * tests/test-sigaction.c: Likewise.
16810         * tests/test-signbit.c: Likewise.
16811         * tests/test-sleep.c: Likewise.
16812         * tests/test-snprintf-posix.c: Likewise.
16813         * tests/test-snprintf.c: Likewise.
16814         * tests/test-sprintf-posix.c: Likewise.
16815         * tests/test-stat-time.c: Likewise.
16816         * tests/test-stat.c: Likewise.
16817         * tests/test-strcasestr.c: Likewise.
16818         * tests/test-strchrnul.c: Likewise.
16819         * tests/test-strerror.c: Likewise.
16820         * tests/test-striconv.c: Likewise.
16821         * tests/test-striconveh.c: Likewise.
16822         * tests/test-striconveha.c: Likewise.
16823         * tests/test-strsignal.c: Likewise.
16824         * tests/test-strstr.c: Likewise.
16825         * tests/test-strtod.c: Likewise.
16826         * tests/test-strverscmp.c: Likewise.
16827         * tests/test-symlink.c: Likewise.
16828         * tests/test-symlinkat.c: Likewise.
16829         * tests/test-trunc1.c: Likewise.
16830         * tests/test-trunc2.c: Likewise.
16831         * tests/test-truncf1.c: Likewise.
16832         * tests/test-truncf2.c: Likewise.
16833         * tests/test-truncl.c: Likewise.
16834         * tests/test-uname.c: Likewise.
16835         * tests/test-unlink.c: Likewise.
16836         * tests/test-unlinkat.c: Likewise.
16837         * tests/test-unsetenv.c: Likewise.
16838         * tests/test-usleep.c: Likewise.
16839         * tests/test-utimens.c: Likewise.
16840         * tests/test-utimensat.c: Likewise.
16841         * tests/test-vasnprintf-posix.c: Likewise.
16842         * tests/test-vasnprintf-posix2.c: Likewise.
16843         * tests/test-vasnprintf.c: Likewise.
16844         * tests/test-vasprintf-posix.c: Likewise.
16845         * tests/test-vasprintf.c: Likewise.
16846         * tests/test-vdprintf-posix.c: Likewise.
16847         * tests/test-vfprintf-posix.c: Likewise.
16848         * tests/test-vprintf-posix.c: Likewise.
16849         * tests/test-vsnprintf-posix.c: Likewise.
16850         * tests/test-vsnprintf.c: Likewise.
16851         * tests/test-vsprintf-posix.c: Likewise.
16852         * tests/test-wcrtomb.c: Likewise.
16853         * tests/test-wcsnrtombs.c: Likewise.
16854         * tests/test-wcsrtombs.c: Likewise.
16855         * tests/test-wctype.c: Likewise.
16856         * tests/test-wcwidth.c: Likewise.
16857         * tests/test-xfprintf-posix.c: Likewise.
16858         * tests/test-xmemdup0.c: Likewise.
16859         * tests/test-xprintf-posix.c: Likewise.
16860         * tests/test-xvasprintf.c: Likewise.
16861         * tests/unicase/test-locale-language.c: Likewise.
16862         * tests/unicase/test-mapping-part1.h: Likewise.
16863         * tests/unicase/test-predicate-part1.h: Likewise.
16864         * tests/unicase/test-u8-casecmp.c: Likewise.
16865         * tests/unicase/test-u8-casecoll.c: Likewise.
16866         * tests/unicase/test-u8-casefold.c: Likewise.
16867         * tests/unicase/test-u8-is-cased.c: Likewise.
16868         * tests/unicase/test-u8-is-casefolded.c: Likewise.
16869         * tests/unicase/test-u8-is-lowercase.c: Likewise.
16870         * tests/unicase/test-u8-is-titlecase.c: Likewise.
16871         * tests/unicase/test-u8-is-uppercase.c: Likewise.
16872         * tests/unicase/test-u8-tolower.c: Likewise.
16873         * tests/unicase/test-u8-totitle.c: Likewise.
16874         * tests/unicase/test-u8-toupper.c: Likewise.
16875         * tests/unicase/test-u16-casecmp.c: Likewise.
16876         * tests/unicase/test-u16-casecoll.c: Likewise.
16877         * tests/unicase/test-u16-casefold.c: Likewise.
16878         * tests/unicase/test-u16-is-cased.c: Likewise.
16879         * tests/unicase/test-u16-is-casefolded.c: Likewise.
16880         * tests/unicase/test-u16-is-lowercase.c: Likewise.
16881         * tests/unicase/test-u16-is-titlecase.c: Likewise.
16882         * tests/unicase/test-u16-is-uppercase.c: Likewise.
16883         * tests/unicase/test-u16-tolower.c: Likewise.
16884         * tests/unicase/test-u16-totitle.c: Likewise.
16885         * tests/unicase/test-u16-toupper.c: Likewise.
16886         * tests/unicase/test-u32-casecmp.c: Likewise.
16887         * tests/unicase/test-u32-casecoll.c: Likewise.
16888         * tests/unicase/test-u32-casefold.c: Likewise.
16889         * tests/unicase/test-u32-is-cased.c: Likewise.
16890         * tests/unicase/test-u32-is-casefolded.c: Likewise.
16891         * tests/unicase/test-u32-is-lowercase.c: Likewise.
16892         * tests/unicase/test-u32-is-titlecase.c: Likewise.
16893         * tests/unicase/test-u32-is-uppercase.c: Likewise.
16894         * tests/unicase/test-u32-tolower.c: Likewise.
16895         * tests/unicase/test-u32-totitle.c: Likewise.
16896         * tests/unicase/test-u32-toupper.c: Likewise.
16897         * tests/unicase/test-ulc-casecmp.c: Likewise.
16898         * tests/unicase/test-ulc-casecoll.c: Likewise.
16899         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
16900         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
16901         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
16902         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
16903         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
16904         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
16905         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
16906         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
16907         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
16908         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
16909         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
16910         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
16911         * tests/unictype/test-bidi_byname.c: Likewise.
16912         * tests/unictype/test-bidi_name.c: Likewise.
16913         * tests/unictype/test-bidi_of.c: Likewise.
16914         * tests/unictype/test-bidi_test.c: Likewise.
16915         * tests/unictype/test-block_list.c: Likewise.
16916         * tests/unictype/test-block_of.c: Likewise.
16917         * tests/unictype/test-block_test.c: Likewise.
16918         * tests/unictype/test-categ_and.c: Likewise.
16919         * tests/unictype/test-categ_and_not.c: Likewise.
16920         * tests/unictype/test-categ_byname.c: Likewise.
16921         * tests/unictype/test-categ_name.c: Likewise.
16922         * tests/unictype/test-categ_none.c: Likewise.
16923         * tests/unictype/test-categ_of.c: Likewise.
16924         * tests/unictype/test-categ_or.c: Likewise.
16925         * tests/unictype/test-categ_test_withtable.c: Likewise.
16926         * tests/unictype/test-combining.c: Likewise.
16927         * tests/unictype/test-decdigit.c: Likewise.
16928         * tests/unictype/test-digit.c: Likewise.
16929         * tests/unictype/test-mirror.c: Likewise.
16930         * tests/unictype/test-numeric.c: Likewise.
16931         * tests/unictype/test-pr_byname.c: Likewise.
16932         * tests/unictype/test-pr_test.c: Likewise.
16933         * tests/unictype/test-predicate-part1.h: Likewise.
16934         * tests/unictype/test-scripts.c: Likewise.
16935         * tests/unictype/test-sy_c_ident.c: Likewise.
16936         * tests/unictype/test-sy_java_ident.c: Likewise.
16937         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
16938         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
16939         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
16940         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
16941         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
16942         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
16943         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
16944         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
16945         * tests/uninorm/test-canonical-decomposition.c: Likewise.
16946         * tests/uninorm/test-compat-decomposition.c: Likewise.
16947         * tests/uninorm/test-composition.c: Likewise.
16948         * tests/uninorm/test-decomposing-form.c: Likewise.
16949         * tests/uninorm/test-decomposition.c: Likewise.
16950         * tests/uninorm/test-u8-nfc.c: Likewise.
16951         * tests/uninorm/test-u8-nfd.c: Likewise.
16952         * tests/uninorm/test-u8-nfkc.c: Likewise.
16953         * tests/uninorm/test-u8-nfkd.c: Likewise.
16954         * tests/uninorm/test-u8-normcmp.c: Likewise.
16955         * tests/uninorm/test-u8-normcoll.c: Likewise.
16956         * tests/uninorm/test-u16-nfc.c: Likewise.
16957         * tests/uninorm/test-u16-nfd.c: Likewise.
16958         * tests/uninorm/test-u16-nfkc.c: Likewise.
16959         * tests/uninorm/test-u16-nfkd.c: Likewise.
16960         * tests/uninorm/test-u16-normcmp.c: Likewise.
16961         * tests/uninorm/test-u16-normcoll.c: Likewise.
16962         * tests/uninorm/test-u32-nfc.c: Likewise.
16963         * tests/uninorm/test-u32-nfd.c: Likewise.
16964         * tests/uninorm/test-u32-nfkc.c: Likewise.
16965         * tests/uninorm/test-u32-nfkd.c: Likewise.
16966         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16967         * tests/uninorm/test-u32-normcmp.c: Likewise.
16968         * tests/uninorm/test-u32-normcoll.c: Likewise.
16969         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
16970         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
16971         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
16972         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
16973         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
16974         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
16975         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
16976         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
16977         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
16978         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
16979         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
16980         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
16981         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
16982         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
16983         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
16984         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
16985         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
16986         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
16987         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
16988         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
16989         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
16990         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
16991         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
16992         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
16993         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
16994         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
16995         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
16996         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
16997         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
16998         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
16999         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
17000         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
17001         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
17002         * tests/uniwidth/test-u8-strwidth.c: Likewise.
17003         * tests/uniwidth/test-u8-width.c: Likewise.
17004         * tests/uniwidth/test-u16-strwidth.c: Likewise.
17005         * tests/uniwidth/test-u16-width.c: Likewise.
17006         * tests/uniwidth/test-u32-strwidth.c: Likewise.
17007         * tests/uniwidth/test-u32-width.c: Likewise.
17008         * tests/uniwidth/test-uc_width.c: Likewise.
17009         * tests/uniwidth/test-uc_width2.c: Likewise.
17010         * modules/acl-tests (Files): Add tests/macros.h.
17011         * modules/areadlink-tests (Files): Likewise.
17012         * modules/areadlink-with-size-tests (Files): Likewise.
17013         * modules/areadlinkat-tests (Files): Likewise.
17014         * modules/areadlinkat-with-size-tests (Files): Likewise.
17015         * modules/argmatch-tests (Files): Likewise.
17016         * modules/argv-iter-tests (Files): Likewise.
17017         * modules/array-list-tests (Files): Likewise.
17018         * modules/array-mergesort-tests (Files): Likewise.
17019         * modules/array-oset-tests (Files): Likewise.
17020         * modules/avltree-list-tests (Files): Likewise.
17021         * modules/avltree-oset-tests (Files): Likewise.
17022         * modules/avltreehash-list-tests (Files): Likewise.
17023         * modules/base64-tests (Files): Likewise.
17024         * modules/binary-io-tests (Files): Likewise.
17025         * modules/bitrotate-tests (Files): Likewise.
17026         * modules/btowc-tests (Files): Likewise.
17027         * modules/byteswap-tests (Files): Likewise.
17028         * modules/c-ctype-tests (Files): Likewise.
17029         * modules/c-stack-tests (Files): Likewise.
17030         * modules/c-strcase-tests (Files): Likewise.
17031         * modules/c-strcasestr-tests (Files): Likewise.
17032         * modules/c-strstr-tests (Files): Likewise.
17033         * modules/canonicalize-lgpl-tests (Files): Likewise.
17034         * modules/canonicalize-tests (Files): Likewise.
17035         * modules/carray-list-tests (Files): Likewise.
17036         * modules/ceilf-tests (Files): Likewise.
17037         * modules/ceill-tests (Files): Likewise.
17038         * modules/chown-tests (Files): Likewise.
17039         * modules/cloexec-tests (Files): Likewise.
17040         * modules/copy-file-tests (Files): Likewise.
17041         * modules/count-one-bits-tests (Files): Likewise.
17042         * modules/dprintf-posix-tests (Files): Likewise.
17043         * modules/dup2-tests (Files): Likewise.
17044         * modules/dup3-tests (Files): Likewise.
17045         * modules/duplocale-tests (Files): Likewise.
17046         * modules/fbufmode-tests (Files): Likewise.
17047         * modules/fchdir-tests (Files): Likewise.
17048         * modules/fcntl-safer-tests (Files): Likewise.
17049         * modules/fcntl-tests (Files): Likewise.
17050         * modules/fdopendir-tests (Files): Likewise.
17051         * modules/fdutimensat-tests (Files): Likewise.
17052         * modules/fflush-tests (Files): Likewise.
17053         * modules/filevercmp-tests (Files): Likewise.
17054         * modules/flock-tests (Files): Likewise.
17055         * modules/floorf-tests (Files): Likewise.
17056         * modules/floorl-tests (Files): Likewise.
17057         * modules/fnmatch-tests (Files): Likewise.
17058         * modules/fopen-safer-tests (Files): Likewise.
17059         * modules/fopen-tests (Files): Likewise.
17060         * modules/fpending-tests (Files): Likewise.
17061         * modules/fprintf-posix-tests (Files): Likewise.
17062         * modules/fpurge-tests (Files): Likewise.
17063         * modules/freadable-tests (Files): Likewise.
17064         * modules/freadahead-tests (Files): Likewise.
17065         * modules/freading-tests (Files): Likewise.
17066         * modules/freadptr-tests (Files): Likewise.
17067         * modules/freadseek-tests (Files): Likewise.
17068         * modules/freopen-tests (Files): Likewise.
17069         * modules/frexp-nolibm-tests (Files): Likewise.
17070         * modules/frexp-tests (Files): Likewise.
17071         * modules/frexpl-nolibm-tests (Files): Likewise.
17072         * modules/frexpl-tests (Files): Likewise.
17073         * modules/fseek-tests (Files): Likewise.
17074         * modules/fseeko-tests (Files): Likewise.
17075         * modules/fstrcmp-tests (Files): Likewise.
17076         * modules/fsync-tests (Files): Likewise.
17077         * modules/ftell-tests (Files): Likewise.
17078         * modules/ftello-tests (Files): Likewise.
17079         * modules/func-tests (Files): Likewise.
17080         * modules/futimens-tests (Files): Likewise.
17081         * modules/fwritable-tests (Files): Likewise.
17082         * modules/fwriting-tests (Files): Likewise.
17083         * modules/getcwd-tests (Files): Likewise.
17084         * modules/getdate-tests (Files): Likewise.
17085         * modules/getdelim-tests (Files): Likewise.
17086         * modules/getdtablesize-tests (Files): Likewise.
17087         * modules/getgroups-tests (Files): Likewise.
17088         * modules/getline-tests (Files): Likewise.
17089         * modules/getndelim2-tests (Files): Likewise.
17090         * modules/glob-tests (Files): Likewise.
17091         * modules/hash-tests (Files): Likewise.
17092         * modules/i-ring-tests (Files): Likewise.
17093         * modules/iconv-tests (Files): Likewise.
17094         * modules/iconv_open-utf-tests (Files): Likewise.
17095         * modules/idpriv-drop-tests (Files): Likewise.
17096         * modules/idpriv-droptemp-tests (Files): Likewise.
17097         * modules/inet_ntop-tests (Files): Likewise.
17098         * modules/inet_pton-tests (Files): Likewise.
17099         * modules/isblank-tests (Files): Likewise.
17100         * modules/isfinite-tests (Files): Likewise.
17101         * modules/isinf-tests (Files): Likewise.
17102         * modules/isnan-tests (Files): Likewise.
17103         * modules/isnand-nolibm-tests (Files): Likewise.
17104         * modules/isnand-tests (Files): Likewise.
17105         * modules/isnanf-nolibm-tests (Files): Likewise.
17106         * modules/isnanf-tests (Files): Likewise.
17107         * modules/isnanl-nolibm-tests (Files): Likewise.
17108         * modules/isnanl-tests (Files): Likewise.
17109         * modules/lchown-tests (Files): Likewise.
17110         * modules/ldexpl-tests (Files): Likewise.
17111         * modules/link-tests (Files): Likewise.
17112         * modules/linkat-tests (Files): Likewise.
17113         * modules/linked-list-tests (Files): Likewise.
17114         * modules/linkedhash-list-tests (Files): Likewise.
17115         * modules/localename-tests (Files): Likewise.
17116         * modules/lseek-tests (Files): Likewise.
17117         * modules/lstat-tests (Files): Likewise.
17118         * modules/mbmemcasecmp-tests (Files): Likewise.
17119         * modules/mbmemcasecoll-tests (Files): Likewise.
17120         * modules/mbrtowc-tests (Files): Likewise.
17121         * modules/mbscasecmp-tests (Files): Likewise.
17122         * modules/mbscasestr-tests (Files): Likewise.
17123         * modules/mbschr-tests (Files): Likewise.
17124         * modules/mbscspn-tests (Files): Likewise.
17125         * modules/mbsinit-tests (Files): Likewise.
17126         * modules/mbsncasecmp-tests (Files): Likewise.
17127         * modules/mbsnrtowcs-tests (Files): Likewise.
17128         * modules/mbspbrk-tests (Files): Likewise.
17129         * modules/mbspcasecmp-tests (Files): Likewise.
17130         * modules/mbsrchr-tests (Files): Likewise.
17131         * modules/mbsrtowcs-tests (Files): Likewise.
17132         * modules/mbsspn-tests (Files): Likewise.
17133         * modules/mbsstr-tests (Files): Likewise.
17134         * modules/memchr-tests (Files): Likewise.
17135         * modules/memchr2-tests (Files): Likewise.
17136         * modules/memcmp-tests (Files): Likewise.
17137         * modules/memmem-tests (Files): Likewise.
17138         * modules/memrchr-tests (Files): Likewise.
17139         * modules/mkdir-tests (Files): Likewise.
17140         * modules/mkfifo-tests (Files): Likewise.
17141         * modules/mkfifoat-tests (Files): Likewise.
17142         * modules/mknod-tests (Files): Likewise.
17143         * modules/nanosleep-tests (Files): Likewise.
17144         * modules/nl_langinfo-tests (Files): Likewise.
17145         * modules/obstack-printf-tests (Files): Likewise.
17146         * modules/open-tests (Files): Likewise.
17147         * modules/openat-tests (Files): Likewise.
17148         * modules/pipe-filter-gi-tests (Files): Likewise.
17149         * modules/pipe-filter-ii-tests (Files): Likewise.
17150         * modules/pipe2-tests (Files): Likewise.
17151         * modules/popen-safer-tests (Files): Likewise.
17152         * modules/popen-tests (Files): Likewise.
17153         * modules/posixtm-tests (Files): Likewise.
17154         * modules/pread-tests (Files): Likewise.
17155         * modules/printf-frexp-tests (Files): Likewise.
17156         * modules/printf-frexpl-tests (Files): Likewise.
17157         * modules/printf-posix-tests (Files): Likewise.
17158         * modules/priv-set-tests (Files): Likewise.
17159         * modules/quotearg-tests (Files): Likewise.
17160         * modules/random_r-tests (Files): Likewise.
17161         * modules/rawmemchr-tests (Files): Likewise.
17162         * modules/rbtree-list-tests (Files): Likewise.
17163         * modules/rbtree-oset-tests (Files): Likewise.
17164         * modules/rbtreehash-list-tests (Files): Likewise.
17165         * modules/readlink-tests (Files): Likewise.
17166         * modules/remove-tests (Files): Likewise.
17167         * modules/rename-tests (Files): Likewise.
17168         * modules/renameat-tests (Files): Likewise.
17169         * modules/rmdir-tests (Files): Likewise.
17170         * modules/round-tests (Files): Likewise.
17171         * modules/roundf-tests (Files): Likewise.
17172         * modules/roundl-tests (Files): Likewise.
17173         * modules/safe-alloc-tests (Files): Likewise.
17174         * modules/setenv-tests (Files): Likewise.
17175         * modules/sigaction-tests (Files): Likewise.
17176         * modules/signbit-tests (Files): Likewise.
17177         * modules/sleep-tests (Files): Likewise.
17178         * modules/snprintf-posix-tests (Files): Likewise.
17179         * modules/snprintf-tests (Files): Likewise.
17180         * modules/sprintf-posix-tests (Files): Likewise.
17181         * modules/stat-tests (Files): Likewise.
17182         * modules/stat-time-tests (Files): Likewise.
17183         * modules/strcasestr-tests (Files): Likewise.
17184         * modules/strchrnul-tests (Files): Likewise.
17185         * modules/strerror-tests (Files): Likewise.
17186         * modules/striconv-tests (Files): Likewise.
17187         * modules/striconveh-tests (Files): Likewise.
17188         * modules/striconveha-tests (Files): Likewise.
17189         * modules/strsignal-tests (Files): Likewise.
17190         * modules/strstr-tests (Files): Likewise.
17191         * modules/strtod-tests (Files): Likewise.
17192         * modules/strverscmp-tests (Files): Likewise.
17193         * modules/symlink-tests (Files): Likewise.
17194         * modules/symlinkat-tests (Files): Likewise.
17195         * modules/trunc-tests (Files): Likewise.
17196         * modules/truncf-tests (Files): Likewise.
17197         * modules/truncl-tests (Files): Likewise.
17198         * modules/uname-tests (Files): Likewise.
17199         * modules/unicase/cased-tests (Files): Likewise.
17200         * modules/unicase/ignorable-tests (Files): Likewise.
17201         * modules/unicase/locale-language-tests (Files): Likewise.
17202         * modules/unicase/tolower-tests (Files): Likewise.
17203         * modules/unicase/totitle-tests (Files): Likewise.
17204         * modules/unicase/toupper-tests (Files): Likewise.
17205         * modules/unicase/u8-casecmp-tests (Files): Likewise.
17206         * modules/unicase/u8-casecoll-tests (Files): Likewise.
17207         * modules/unicase/u8-casefold-tests (Files): Likewise.
17208         * modules/unicase/u8-is-cased-tests (Files): Likewise.
17209         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
17210         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
17211         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
17212         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
17213         * modules/unicase/u8-tolower-tests (Files): Likewise.
17214         * modules/unicase/u8-totitle-tests (Files): Likewise.
17215         * modules/unicase/u8-toupper-tests (Files): Likewise.
17216         * modules/unicase/u16-casecmp-tests (Files): Likewise.
17217         * modules/unicase/u16-casecoll-tests (Files): Likewise.
17218         * modules/unicase/u16-casefold-tests (Files): Likewise.
17219         * modules/unicase/u16-is-cased-tests (Files): Likewise.
17220         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
17221         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
17222         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
17223         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
17224         * modules/unicase/u16-tolower-tests (Files): Likewise.
17225         * modules/unicase/u16-totitle-tests (Files): Likewise.
17226         * modules/unicase/u16-toupper-tests (Files): Likewise.
17227         * modules/unicase/u32-casecmp-tests (Files): Likewise.
17228         * modules/unicase/u32-casecoll-tests (Files): Likewise.
17229         * modules/unicase/u32-casefold-tests (Files): Likewise.
17230         * modules/unicase/u32-is-cased-tests (Files): Likewise.
17231         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
17232         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
17233         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
17234         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
17235         * modules/unicase/u32-tolower-tests (Files): Likewise.
17236         * modules/unicase/u32-totitle-tests (Files): Likewise.
17237         * modules/unicase/u32-toupper-tests (Files): Likewise.
17238         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
17239         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
17240         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
17241         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
17242         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
17243         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
17244         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
17245         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
17246         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
17247         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
17248         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
17249         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
17250         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
17251         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
17252         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
17253         * modules/unictype/bidicategory-name-tests (Files): Likewise.
17254         * modules/unictype/bidicategory-of-tests (Files): Likewise.
17255         * modules/unictype/bidicategory-test-tests (Files): Likewise.
17256         * modules/unictype/block-list-tests (Files): Likewise.
17257         * modules/unictype/block-of-tests (Files): Likewise.
17258         * modules/unictype/block-test-tests (Files): Likewise.
17259         * modules/unictype/category-C-tests (Files): Likewise.
17260         * modules/unictype/category-Cc-tests (Files): Likewise.
17261         * modules/unictype/category-Cf-tests (Files): Likewise.
17262         * modules/unictype/category-Cn-tests (Files): Likewise.
17263         * modules/unictype/category-Co-tests (Files): Likewise.
17264         * modules/unictype/category-Cs-tests (Files): Likewise.
17265         * modules/unictype/category-L-tests (Files): Likewise.
17266         * modules/unictype/category-Ll-tests (Files): Likewise.
17267         * modules/unictype/category-Lm-tests (Files): Likewise.
17268         * modules/unictype/category-Lo-tests (Files): Likewise.
17269         * modules/unictype/category-Lt-tests (Files): Likewise.
17270         * modules/unictype/category-Lu-tests (Files): Likewise.
17271         * modules/unictype/category-M-tests (Files): Likewise.
17272         * modules/unictype/category-Mc-tests (Files): Likewise.
17273         * modules/unictype/category-Me-tests (Files): Likewise.
17274         * modules/unictype/category-Mn-tests (Files): Likewise.
17275         * modules/unictype/category-N-tests (Files): Likewise.
17276         * modules/unictype/category-Nd-tests (Files): Likewise.
17277         * modules/unictype/category-Nl-tests (Files): Likewise.
17278         * modules/unictype/category-No-tests (Files): Likewise.
17279         * modules/unictype/category-P-tests (Files): Likewise.
17280         * modules/unictype/category-Pc-tests (Files): Likewise.
17281         * modules/unictype/category-Pd-tests (Files): Likewise.
17282         * modules/unictype/category-Pe-tests (Files): Likewise.
17283         * modules/unictype/category-Pf-tests (Files): Likewise.
17284         * modules/unictype/category-Pi-tests (Files): Likewise.
17285         * modules/unictype/category-Po-tests (Files): Likewise.
17286         * modules/unictype/category-Ps-tests (Files): Likewise.
17287         * modules/unictype/category-S-tests (Files): Likewise.
17288         * modules/unictype/category-Sc-tests (Files): Likewise.
17289         * modules/unictype/category-Sk-tests (Files): Likewise.
17290         * modules/unictype/category-Sm-tests (Files): Likewise.
17291         * modules/unictype/category-So-tests (Files): Likewise.
17292         * modules/unictype/category-Z-tests (Files): Likewise.
17293         * modules/unictype/category-Zl-tests (Files): Likewise.
17294         * modules/unictype/category-Zp-tests (Files): Likewise.
17295         * modules/unictype/category-Zs-tests (Files): Likewise.
17296         * modules/unictype/category-and-not-tests (Files): Likewise.
17297         * modules/unictype/category-and-tests (Files): Likewise.
17298         * modules/unictype/category-byname-tests (Files): Likewise.
17299         * modules/unictype/category-name-tests (Files): Likewise.
17300         * modules/unictype/category-none-tests (Files): Likewise.
17301         * modules/unictype/category-of-tests (Files): Likewise.
17302         * modules/unictype/category-or-tests (Files): Likewise.
17303         * modules/unictype/category-test-withtable-tests (Files): Likewise.
17304         * modules/unictype/combining-class-tests (Files): Likewise.
17305         * modules/unictype/ctype-alnum-tests (Files): Likewise.
17306         * modules/unictype/ctype-alpha-tests (Files): Likewise.
17307         * modules/unictype/ctype-blank-tests (Files): Likewise.
17308         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
17309         * modules/unictype/ctype-digit-tests (Files): Likewise.
17310         * modules/unictype/ctype-graph-tests (Files): Likewise.
17311         * modules/unictype/ctype-lower-tests (Files): Likewise.
17312         * modules/unictype/ctype-print-tests (Files): Likewise.
17313         * modules/unictype/ctype-punct-tests (Files): Likewise.
17314         * modules/unictype/ctype-space-tests (Files): Likewise.
17315         * modules/unictype/ctype-upper-tests (Files): Likewise.
17316         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
17317         * modules/unictype/decimal-digit-tests (Files): Likewise.
17318         * modules/unictype/digit-tests (Files): Likewise.
17319         * modules/unictype/mirror-tests (Files): Likewise.
17320         * modules/unictype/numeric-tests (Files): Likewise.
17321         * modules/unictype/property-alphabetic-tests (Files): Likewise.
17322         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
17323         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
17324         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
17325         Likewise.
17326         * modules/unictype/property-bidi-block-separator-tests (Files):
17327         Likewise.
17328         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
17329         Likewise.
17330         * modules/unictype/property-bidi-common-separator-tests (Files):
17331         Likewise.
17332         * modules/unictype/property-bidi-control-tests (Files): Likewise.
17333         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
17334         Likewise.
17335         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
17336         Likewise.
17337         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
17338         Likewise.
17339         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
17340         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
17341         Likewise.
17342         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
17343         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
17344         Likewise.
17345         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
17346         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
17347         * modules/unictype/property-bidi-segment-separator-tests (Files):
17348         Likewise.
17349         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
17350         * modules/unictype/property-byname-tests (Files): Likewise.
17351         * modules/unictype/property-combining-tests (Files): Likewise.
17352         * modules/unictype/property-composite-tests (Files): Likewise.
17353         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
17354         * modules/unictype/property-dash-tests (Files): Likewise.
17355         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
17356         * modules/unictype/property-default-ignorable-code-point-tests (Files):
17357         Likewise.
17358         * modules/unictype/property-deprecated-tests (Files): Likewise.
17359         * modules/unictype/property-diacritic-tests (Files): Likewise.
17360         * modules/unictype/property-extender-tests (Files): Likewise.
17361         * modules/unictype/property-format-control-tests (Files): Likewise.
17362         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
17363         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
17364         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
17365         * modules/unictype/property-hex-digit-tests (Files): Likewise.
17366         * modules/unictype/property-hyphen-tests (Files): Likewise.
17367         * modules/unictype/property-id-continue-tests (Files): Likewise.
17368         * modules/unictype/property-id-start-tests (Files): Likewise.
17369         * modules/unictype/property-ideographic-tests (Files): Likewise.
17370         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
17371         * modules/unictype/property-ids-trinary-operator-tests (Files):
17372         Likewise.
17373         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
17374         * modules/unictype/property-iso-control-tests (Files): Likewise.
17375         * modules/unictype/property-join-control-tests (Files): Likewise.
17376         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
17377         * modules/unictype/property-line-separator-tests (Files): Likewise.
17378         * modules/unictype/property-logical-order-exception-tests (Files):
17379         Likewise.
17380         * modules/unictype/property-lowercase-tests (Files): Likewise.
17381         * modules/unictype/property-math-tests (Files): Likewise.
17382         * modules/unictype/property-non-break-tests (Files): Likewise.
17383         * modules/unictype/property-not-a-character-tests (Files): Likewise.
17384         * modules/unictype/property-numeric-tests (Files): Likewise.
17385         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
17386         * modules/unictype/property-other-default-ignorable-code-point-tests
17387         (Files): Likewise.
17388         * modules/unictype/property-other-grapheme-extend-tests (Files):
17389         Likewise.
17390         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
17391         * modules/unictype/property-other-id-start-tests (Files): Likewise.
17392         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
17393         * modules/unictype/property-other-math-tests (Files): Likewise.
17394         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
17395         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
17396         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
17397         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
17398         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
17399         * modules/unictype/property-private-use-tests (Files): Likewise.
17400         * modules/unictype/property-punctuation-tests (Files): Likewise.
17401         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
17402         * modules/unictype/property-radical-tests (Files): Likewise.
17403         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
17404         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
17405         * modules/unictype/property-space-tests (Files): Likewise.
17406         * modules/unictype/property-terminal-punctuation-tests (Files):
17407         Likewise.
17408         * modules/unictype/property-test-tests (Files): Likewise.
17409         * modules/unictype/property-titlecase-tests (Files): Likewise.
17410         * modules/unictype/property-unassigned-code-value-tests (Files):
17411         Likewise.
17412         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
17413         * modules/unictype/property-uppercase-tests (Files): Likewise.
17414         * modules/unictype/property-variation-selector-tests (Files): Likewise.
17415         * modules/unictype/property-white-space-tests (Files): Likewise.
17416         * modules/unictype/property-xid-continue-tests (Files): Likewise.
17417         * modules/unictype/property-xid-start-tests (Files): Likewise.
17418         * modules/unictype/property-zero-width-tests (Files): Likewise.
17419         * modules/unictype/scripts-tests (Files): Likewise.
17420         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
17421         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
17422         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
17423         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
17424         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
17425         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
17426         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
17427         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
17428         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
17429         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
17430         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
17431         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
17432         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
17433         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
17434         * modules/uninorm/composition-tests (Files): Likewise.
17435         * modules/uninorm/decomposing-form-tests (Files): Likewise.
17436         * modules/uninorm/decomposition-tests (Files): Likewise.
17437         * modules/uninorm/filter-tests (Files): Likewise.
17438         * modules/uninorm/nfc-tests (Files): Likewise.
17439         * modules/uninorm/nfd-tests (Files): Likewise.
17440         * modules/uninorm/nfkc-tests (Files): Likewise.
17441         * modules/uninorm/nfkd-tests (Files): Likewise.
17442         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
17443         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
17444         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
17445         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
17446         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
17447         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
17448         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
17449         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17450         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
17451         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
17452         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
17453         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
17454         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17455         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
17456         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
17457         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
17458         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
17459         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17460         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
17461         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
17462         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
17463         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
17464         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17465         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
17466         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
17467         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
17468         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
17469         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
17470         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
17471         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
17472         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
17473         * modules/uniwidth/u8-width-tests (Files): Likewise.
17474         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
17475         * modules/uniwidth/u16-width-tests (Files): Likewise.
17476         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
17477         * modules/uniwidth/u32-width-tests (Files): Likewise.
17478         * modules/uniwidth/width-tests (Files): Likewise.
17479         * modules/unlink-tests (Files): Likewise.
17480         * modules/unsetenv-tests (Files): Likewise.
17481         * modules/usleep-tests (Files): Likewise.
17482         * modules/utimens-tests (Files): Likewise.
17483         * modules/utimensat-tests (Files): Likewise.
17484         * modules/vasnprintf-posix-tests (Files): Likewise.
17485         * modules/vasnprintf-tests (Files): Likewise.
17486         * modules/vasprintf-posix-tests (Files): Likewise.
17487         * modules/vasprintf-tests (Files): Likewise.
17488         * modules/vdprintf-posix-tests (Files): Likewise.
17489         * modules/vfprintf-posix-tests (Files): Likewise.
17490         * modules/vprintf-posix-tests (Files): Likewise.
17491         * modules/vsnprintf-posix-tests (Files): Likewise.
17492         * modules/vsnprintf-tests (Files): Likewise.
17493         * modules/vsprintf-posix-tests (Files): Likewise.
17494         * modules/wcrtomb-tests (Files): Likewise.
17495         * modules/wcsnrtombs-tests (Files): Likewise.
17496         * modules/wcsrtombs-tests (Files): Likewise.
17497         * modules/wctype-tests (Files): Likewise.
17498         * modules/wcwidth-tests (Files): Likewise.
17499         * modules/xmemdup0-tests (Files): Likewise.
17500         * modules/xprintf-posix-tests (Files): Likewise.
17501         * modules/xvasprintf-tests (Files): Likewise.
17502
17503 2009-12-24  Eric Blake  <ebb9@byu.net>
17504
17505         test-nanosleep: fix typo
17506         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
17507         patch.
17508         Reported by Bruno Haible.
17509
17510 2009-12-24  Bruno Haible  <bruno@clisp.org>
17511
17512         Reduce namespace pollution on glibc systems.
17513         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
17514         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
17515         systems.
17516         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
17517         <getopt.h> on glibc systems.
17518         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
17519         systems.
17520         * lib/fcntl.c: Include <unistd.h> here instead.
17521
17522 2009-12-24  Bruno Haible  <bruno@clisp.org>
17523
17524         * lib/stdlib.in.h (includes): Fix typo in today's commit.
17525
17526 2009-12-24  Eric Blake  <ebb9@byu.net>
17527
17528         tests: add signature checks
17529         * tests/signature.h (SIGNATURE_CHECK): New file.
17530         * modules/atexit-tests (Files): Use it.
17531         * modules/btowc-tests (Files): Likewise.
17532         * modules/canonicalize-lgpl-tests (Files): Likewise.
17533         * modules/ceilf-tests (Files): Likewise.
17534         * modules/ceill-tests (Files): Likewise.
17535         * modules/chown-tests (Files): Likewise.
17536         * modules/dprintf-posix-tests (Files): Likewise.
17537         * modules/dup2-tests (Files): Likewise.
17538         * modules/dup3-tests (Files): Likewise.
17539         * modules/duplocale-tests (Files): Likewise.
17540         * modules/fchdir-tests (Files): Likewise.
17541         * modules/fcntl-tests (Files): Likewise.
17542         * modules/fdopendir-tests (Files): Likewise.
17543         * modules/fflush-tests (Files): Likewise.
17544         * modules/flock-tests (Files): Likewise.
17545         * modules/floorf-tests (Files): Likewise.
17546         * modules/floorl-tests (Files): Likewise.
17547         * modules/fnmatch-tests (Files): Likewise.
17548         * modules/fopen-tests (Files): Likewise.
17549         * modules/fprintf-posix-tests (Files): Likewise.
17550         * modules/freopen-tests (Files): Likewise.
17551         * modules/frexp-nolibm-tests (Files): Likewise.
17552         * modules/frexp-tests (Files): Likewise.
17553         * modules/frexpl-nolibm-tests (Files): Likewise.
17554         * modules/frexpl-tests (Files): Likewise.
17555         * modules/fseek-tests (Files): Likewise.
17556         * modules/fseeko-tests (Files): Likewise.
17557         * modules/fsync-tests (Files): Likewise.
17558         * modules/ftell-tests (Files): Likewise.
17559         * modules/ftello-tests (Files): Likewise.
17560         * modules/futimens-tests (Files): Likewise.
17561         * modules/getaddrinfo-tests (Files): Likewise.
17562         * modules/getcwd-tests (Files): Likewise.
17563         * modules/getdelim-tests (Files): Likewise.
17564         * modules/getdtablesize-tests (Files): Likewise.
17565         * modules/getgroups-tests (Files): Likewise.
17566         * modules/gethostname-tests (Files): Likewise.
17567         * modules/getline-tests (Files): Likewise.
17568         * modules/getopt-posix-tests (Files): Likewise.
17569         * modules/gettimeofday-tests (Files): Likewise.
17570         * modules/glob-tests (Files): Likewise.
17571         * modules/iconv-tests (Files): Likewise.
17572         * modules/inet_ntop-tests (Files): Likewise.
17573         * modules/inet_pton-tests (Files): Likewise.
17574         * modules/isblank-tests (Files): Likewise.
17575         * modules/lchown-tests (Files): Likewise.
17576         * modules/ldexpl-tests (Files): Likewise.
17577         * modules/link-tests (Files): Likewise.
17578         * modules/linkat-tests (Files): Likewise.
17579         * modules/lseek-tests (Files): Likewise.
17580         * modules/lstat-tests (Files): Likewise.
17581         * modules/mbrtowc-tests (Files): Likewise.
17582         * modules/mbsinit-tests (Files): Likewise.
17583         * modules/mbsnrtowcs-tests (Files): Likewise.
17584         * modules/mbsrtowcs-tests (Files): Likewise.
17585         * modules/memchr-tests (Files): Likewise.
17586         * modules/memcmp-tests (Files): Likewise.
17587         * modules/memmem-tests (Files): Likewise.
17588         * modules/memrchr-tests (Files): Likewise.
17589         * modules/mkdir-tests (Files): Likewise.
17590         * modules/mkfifo-tests (Files): Likewise.
17591         * modules/mkfifoat-tests (Files): Likewise.
17592         * modules/mknod-tests (Files): Likewise.
17593         * modules/nanosleep-tests (Files): Likewise.
17594         * modules/nl_langinfo-tests (Files): Likewise.
17595         * modules/obstack-printf-tests (Files): Likewise.
17596         * modules/open-tests (Files): Likewise.
17597         * modules/openat-tests (Files): Likewise.
17598         * modules/perror-tests (Files): Likewise.
17599         * modules/pipe2-tests (Files): Likewise.
17600         * modules/poll-tests (Files): Likewise.
17601         * modules/popen-tests (Files): Likewise.
17602         * modules/posix_spawn-tests (Files): Likewise.
17603         * modules/posix_spawnp-tests (Files): Likewise.
17604         * modules/pread-tests (Files): Likewise.
17605         * modules/printf-posix-tests (Files): Likewise.
17606         * modules/pty-tests (Files): Likewise.
17607         * modules/random_r-tests (Files): Likewise.
17608         * modules/rawmemchr-tests (Files): Likewise.
17609         * modules/readlink-tests (Files): Likewise.
17610         * modules/remove-tests (Files): Likewise.
17611         * modules/rename-tests (Files): Likewise.
17612         * modules/renameat-tests (Files): Likewise.
17613         * modules/rmdir-tests (Files): Likewise.
17614         * modules/round-tests (Files): Likewise.
17615         * modules/roundf-tests (Files): Likewise.
17616         * modules/roundl-tests (Files): Likewise.
17617         * modules/select-tests (Files): Likewise.
17618         * modules/setenv-tests (Files): Likewise.
17619         * modules/sigaction-tests (Files): Likewise.
17620         * modules/sleep-tests (Files): Likewise.
17621         * modules/snprintf-posix-tests (Files): Likewise.
17622         * modules/snprintf-tests (Files): Likewise.
17623         * modules/sprintf-posix-tests (Files): Likewise.
17624         * modules/stat-tests (Files): Likewise.
17625         * modules/strcasestr-tests (Files): Likewise.
17626         * modules/strchrnul-tests (Files): Likewise.
17627         * modules/strerror-tests (Files): Likewise.
17628         * modules/strsignal-tests (Files): Likewise.
17629         * modules/strstr-tests (Files): Likewise.
17630         * modules/strtod-tests (Files): Likewise.
17631         * modules/strverscmp-tests (Files): Likewise.
17632         * modules/symlink-tests (Files): Likewise.
17633         * modules/symlinkat-tests (Files): Likewise.
17634         * modules/times-tests (Files): Likewise.
17635         * modules/trunc-tests (Files): Likewise.
17636         * modules/truncf-tests (Files): Likewise.
17637         * modules/truncl-tests (Files): Likewise.
17638         * modules/tsearch-tests (Files): Likewise.
17639         * modules/uname-tests (Files): Likewise.
17640         * modules/unlink-tests (Files): Likewise.
17641         * modules/unsetenv-tests (Files): Likewise.
17642         * modules/usleep-tests (Files): Likewise.
17643         * modules/utimensat-tests (Files): Likewise.
17644         * modules/vasprintf-tests (Files): Likewise.
17645         * modules/vdprintf-posix-tests (Files): Likewise.
17646         * modules/vfprintf-posix-tests (Files): Likewise.
17647         * modules/vprintf-posix-tests (Files): Likewise.
17648         * modules/vsnprintf-posix-tests (Files): Likewise.
17649         * modules/vsnprintf-tests (Files): Likewise.
17650         * modules/vsprintf-posix-tests (Files): Likewise.
17651         * modules/wcrtomb-tests (Files): Likewise.
17652         * modules/wcsnrtombs-tests (Files): Likewise.
17653         * modules/wcsrtombs-tests (Files): Likewise.
17654         * modules/wcwidth-tests (Files): Likewise.
17655         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
17656         * tests/test-isinf.c (isinf): Likewise.
17657         * tests/test-isnan.c (isnan): Likewise.
17658         * tests/test-signbit.c (signbit): Likewise.
17659         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
17660         declaration, either as macro or with correct signature.
17661         (select): Ensure function under test is declared with correct
17662         signature in correct header.
17663         * tests/test-atexit.c (atexit): Likewise.
17664         * tests/test-btowc.c (btowc): Likewise.
17665         * tests/test-canonicalize-lgpl.c (realpath)
17666         (canonicalize_file_name): Likewise.
17667         * tests/test-ceilf1.c (ceilf): Likewise.
17668         * tests/test-ceill.c (ceill): Likewise.
17669         * tests/test-chown.c (chown): Likewise.
17670         * tests/test-dprintf-posix.c (dprintf): Likewise.
17671         * tests/test-dup2.c (dup2): Likewise.
17672         * tests/test-dup3.c (dup3): Likewise.
17673         * tests/test-duplocale.c (duplocale): Likewise.
17674         * tests/test-fchdir.c (fchdir): Likewise.
17675         * tests/test-fchownat.c (fchownat): Likewise.
17676         * tests/test-fcntl.c (fcntl): Likewise.
17677         * tests/test-fdopendir.c (fdopendir): Likewise.
17678         * tests/test-fflush.c (fflush): Likewise.
17679         * tests/test-flock.c (flock): Likewise.
17680         * tests/test-floorf1.c (floorf): Likewise.
17681         * tests/test-floorl.c (floorl): Likewise.
17682         * tests/test-fnmatch.c (fnmatch): Likewise.
17683         * tests/test-fopen.c (fopen): Likewise.
17684         * tests/test-fprintf-posix.c (fprintf): Likewise.
17685         * tests/test-freopen.c (freopen): Likewise.
17686         * tests/test-frexp.c (frexp): Likewise.
17687         * tests/test-frexpl.c (frexpl): Likewise.
17688         * tests/test-fseek.c (fseek): Likewise.
17689         * tests/test-fseeko.c (fseeko): Likewise.
17690         * tests/test-fstatat.c (fstatat): Likewise.
17691         * tests/test-fsync.c (fsync): Likewise.
17692         * tests/test-ftell.c (ftell): Likewise.
17693         * tests/test-ftello.c (ftello): Likewise.
17694         * tests/test-futimens.c (futimens): Likewise.
17695         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
17696         (gai_strerror): Likewise.
17697         * tests/test-getcwd.c (getcwd): Likewise.
17698         * tests/test-getdelim.c (getdelim): Likewise.
17699         * tests/test-getdtablesize.c (getdtablesize): Likewise.
17700         * tests/test-getgroups.c (getgroups): Likewise.
17701         * tests/test-gethostname.c (gethostname): Likewise.
17702         * tests/test-getline.c (getline): Likewise.
17703         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
17704         Likewise.
17705         * tests/test-gettimeofday.c (gettimeofday): Likewise.
17706         * tests/test-glob.c (glob, globfree): Likewise.
17707         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
17708         * tests/test-inet_ntop.c (inet_ntop): Likewise.
17709         * tests/test-inet_pton.c (inet_pton): Likewise.
17710         * tests/test-isblank.c (isblank): Likewise.
17711         * tests/test-lchown.c (lchown): Likewise.
17712         * tests/test-ldexpl.c (ldexpl): Likewise.
17713         * tests/test-link.c (link): Likewise.
17714         * tests/test-linkat.c (linkat): Likewise.
17715         * tests/test-lseek.c (lseek): Likewise.
17716         * tests/test-lstat.c (lstat): Likewise.
17717         * tests/test-mbrtowc.c (mbrtowc): Likewise.
17718         * tests/test-mbsinit.c (mbsinit): Likewise.
17719         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
17720         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
17721         * tests/test-memchr.c (memchr): Likewise.
17722         * tests/test-memcmp.c (memcmp): Likewise.
17723         * tests/test-memmem.c (memmem): Likewise.
17724         * tests/test-memrchr.c (memrchr): Likewise.
17725         * tests/test-mkdir.c (mkdir): Likewise.
17726         * tests/test-mkdirat.c (mkdirat): Likewise.
17727         * tests/test-mkfifo.c (mkfifo): Likewise.
17728         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
17729         * tests/test-mknod.c (mknod): Likewise.
17730         * tests/test-nanosleep.c (nanosleep): Likewise.
17731         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
17732         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
17733         Likewise.
17734         * tests/test-open.c (open): Likewise.
17735         * tests/test-openat.c (openat): Likewise.
17736         * tests/test-perror.c (perror): Likewise.
17737         * tests/test-pipe2.c (pipe2): Likewise.
17738         * tests/test-poll.c (poll): Likewise.
17739         * tests/test-popen.c (popen, pclose): Likewise.
17740         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
17741         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
17742         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
17743         (posix_spawn_file_actions_destroy)
17744         (posix_spawn_file_actions_addclose)
17745         (posix_spawn_file_actions_addopen)
17746         (posix_spawn_file_actions_adddup2): Likewise.
17747         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
17748         * tests/test-pread.c (pread): Likewise.
17749         * tests/test-printf-posix.c (printf): Likewise.
17750         * tests/test-pty.c (openpty, forkpty): Likewise.
17751         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
17752         (random_r): Likewise.
17753         * tests/test-rawmemchr.c (rawmemchr): Likewise.
17754         * tests/test-readlink.c (readlink): Likewise.
17755         * tests/test-remove.c (remove): Likewise.
17756         * tests/test-rename.c (rename): Likewise.
17757         * tests/test-renameat.c (renameat): Likewise.
17758         * tests/test-rmdir.c (rmdir): Likewise.
17759         * tests/test-round1.c (round): Likewise.
17760         * tests/test-roundf1.c (roundf): Likewise.
17761         * tests/test-roundl.c (roundl): Likewise.
17762         * tests/test-setenv.c (setenv): Likewise.
17763         * tests/test-sigaction.c (sigaction): Likewise.
17764         * tests/test-sleep.c (sleep): Likewise.
17765         * tests/test-snprintf.c (snprintf): Likewise.
17766         * tests/test-sprintf-posix.c (sprintf): Likewise.
17767         * tests/test-stat.c (stat): Likewise.
17768         * tests/test-stpncpy.c (stpncpy): Likewise.
17769         * tests/test-strcasestr.c (strcasestr): Likewise.
17770         * tests/test-strchrnul.c (strchrnul): Likewise.
17771         * tests/test-strerror.c (strerror): Likewise.
17772         * tests/test-strsignal.c (strsignal): Likewise.
17773         * tests/test-strstr.c (strstr): Likewise.
17774         * tests/test-strtod.c (strtod): Likewise.
17775         * tests/test-strverscmp.c (strverscmp): Likewise.
17776         * tests/test-symlink.c (symlink): Likewise.
17777         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
17778         * tests/test-times.c (times): Likewise.
17779         * tests/test-trunc1.c (trunc): Likewise.
17780         * tests/test-truncf1.c (truncf): Likewise.
17781         * tests/test-truncl.c (truncl): Likewise.
17782         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
17783         Likewise.
17784         * tests/test-uname.c (uname): Likewise.
17785         * tests/test-unlink.c (unlink): Likewise.
17786         * tests/test-unlinkat.c (unlinkat): Likewise.
17787         * tests/test-unsetenv.c (unsetenv): Likewise.
17788         * tests/test-usleep.c (usleep): Likewise.
17789         * tests/test-utimensat.c (utimensat): Likewise.
17790         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
17791         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
17792         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
17793         * tests/test-vprintf-posix.c (vprintf): Likewise.
17794         * tests/test-vsnprintf.c (vsnprintf): Likewise.
17795         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
17796         * tests/test-wcrtomb.c (wcrtomb): Likewise.
17797         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
17798         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
17799         * tests/test-wcwidth.c (wcwidth): Likewise.
17800
17801         build: pull in conditional headers during GNULIB_POSIXCHECK
17802         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
17803         definitions from any conditionally-included headers.
17804         * lib/stdlib.in.h (includes): Likewise.
17805         * lib/unistd.in.h (includes): Likewise.
17806
17807 2009-12-24  Bruno Haible  <bruno@clisp.org>
17808
17809         * tests/test-argv-iter.c: Include header file being tested immediately
17810         after config.h.
17811         * tests/test-base64.c: Likewise.
17812         * tests/test-flock.c: Likewise.
17813         * tests/test-fsync.c: Likewise.
17814         * tests/test-getdate.c: Likewise.
17815         * tests/test-getndelim2.c: Likewise.
17816         * tests/test-isfinite.c: Likewise.
17817         * tests/test-isinf.c: Likewise.
17818         * tests/test-strerror.c: Likewise.
17819         * tests/test-strsignal.c: Likewise.
17820
17821 2009-12-23  Eric Blake  <ebb9@byu.net>
17822
17823         unistd: work around cygwin bug
17824         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
17825         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
17826         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17827
17828 2009-12-23  Bruno Haible  <bruno@clisp.org>
17829
17830         localename: More tests.
17831         * tests/test-localename.c (SIZEOF): New macro.
17832         (categories): New variable.
17833         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
17834         test_locale_name_default): Add test w.r.t. thread locale.
17835         (test_locale_name_thread): New function.
17836         (main): Invoke it.
17837
17838         localename: Make aware of thread locale.
17839         * lib/localename.h (gl_locale_name_thread): New declaration.
17840         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
17841         behaviour with respect to thread locale.
17842         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
17843         <langinfo.h>, glthread/lock.h.
17844         (SIZE_BITS): New macro.
17845         (string_hash): New function.
17846         (struct hash_node): New type.
17847         (HASH_TABLE_SIZE): New macro.
17848         (struniq_hash_table, struniq_lock): New variables.
17849         (struniq): New function.
17850         (gl_locale_name_thread): New function.
17851         (gl_locale_name): Invoke it.
17852         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
17853         * modules/localename (Depends-on): Add lock.
17854         Reported by Mike Gran <spk121@yahoo.com>.
17855
17856 2009-12-23  Eric Blake  <ebb9@byu.net>
17857
17858         va-args: new module
17859         * modules/va-args: New file.
17860         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
17861         * MODULES.html.sh (Core language properties): Mention it.
17862
17863         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
17864         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
17865         named alias for __attribute__((__unused__)).
17866         * lib/chown.c: Update client.
17867         * lib/fchmodat.c: Likewise.
17868         * lib/fts.c: Likewise.
17869         * lib/getdate.y: Likewise.
17870         * lib/getgroups.c: Likewise.
17871         * lib/getopt.c: Likewise.
17872         * lib/getugroups.c: Likewise.
17873         * lib/mkdir.c: Likewise.
17874         * lib/mkfifo.c: Likewise.
17875         * lib/mkfifoat.c: Likewise.
17876         * lib/mknod.c: Likewise.
17877         * lib/mknodat.c: Likewise.
17878         * lib/readlink.c: Likewise.
17879         * lib/se-context.in.h: Likewise.
17880         * lib/se-selinux.in.h: Likewise.
17881         * lib/sockets.c: Likewise.
17882         * lib/symlink.c: Likewise.
17883         * lib/symlinkat.c: Likewise.
17884         * lib/unicodeio.c: Likewise.
17885         * lib/unistr.h: Likewise.
17886         * tests/test-areadlink.c: Likewise.
17887         * tests/test-areadlinkat.c: Likewise.
17888         * tests/test-filenamecat.c: Likewise.
17889         * tests/test-fseeko.c: Likewise.
17890         * tests/test-ftello.c: Likewise.
17891         * tests/test-getdate.c: Likewise.
17892         * tests/test-getgroups.c: Likewise.
17893         * tests/test-gethostname.c: Likewise.
17894         * tests/test-quotearg.c: Likewise.
17895         * tests/test-version-etc.c: Likewise.
17896         * tests/test-xalloc-die.c: Likewise.
17897         * tests/test-xfprintf-posix.c: Likewise.
17898         * tests/test-xprintf-posix.c: Likewise.
17899         * tests/test-xvasprintf.c: Likewise.
17900
17901         tests: avoid compiler warnings
17902         * tests/test-fcntl.c (main): Delete unused parameters.
17903         * tests/test-freopen-safer.c (main): Likewise.
17904         * tests/test-xalloc-die.c (main): Mark unused parameters.
17905         * tests/test-fseeko.c (main): Likewise.
17906         * tests/test-ftello.c (main): Likewise.
17907         * tests/test-nanosleep.c (main): Avoid declaration warning.
17908         * tests/test-sleep.c (main): Likewise.
17909         * tests/test-unsetenv.c (main): Silence warning about string
17910         literal.
17911         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
17912
17913 2009-12-23  Bruno Haible  <bruno@clisp.org>
17914
17915         * tests/test-localename.c (test_locale_name): New function, extracted
17916         from main. Also test mixed situations.
17917         (test_locale_name_posix, test_locale_name_environ,
17918         test_locale_name_default): New functions.
17919         (main): Invoke them all.
17920         * modules/localename-tests (configure.ac): Test for newlocale.
17921
17922 2009-12-23  Bruno Haible  <bruno@clisp.org>
17923
17924         unistd: Ensure getcwd gets declared before being overridden.
17925         * lib/unistd.in.h: Conditionally include <io.h>.
17926
17927 2009-12-22  Bruno Haible  <bruno@clisp.org>
17928
17929         wchar: Diagnose broken combination of glibc and gcc versions and flags.
17930         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
17931         (gl_WCHAR_H): Invoke it.
17932         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
17933         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
17934         Reported by Karl Berry <karl@freefriends.org>.
17935
17936 2009-12-22  Eric Blake  <ebb9@byu.net>
17937
17938         math, unistd: avoid redundant includes
17939         * lib/math.in.h (isnan): No need to re-include <math.h>.
17940         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
17941
17942         getsubopt: work around cygwin bug
17943         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
17944         avoid conflicting with system getsubopt.
17945         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
17946         bug.
17947
17948         getopt: synchronize from glibc
17949         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
17950         parameter order.  Adjust all callers.
17951         (_getopt_internal_r, main): Adjust quoting in error messages.
17952         Drop considerations for outdated POSIX 1003.2 error message.
17953         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
17954         callers.
17955         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
17956
17957         test-getopt: test stderr behavior
17958         * modules/getopt-posix-tests (Depends-on): Add dup2.
17959         * tests/test-getopt.c (ASSERT): Avoid stderr.
17960         (main): Move stderr to a temporary file.
17961         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
17962         Instead, add parameter to inform caller if output occurred.
17963         (test_getopt): Adjust all existing tests to expect silence, and
17964         add new tests of leading ":".
17965         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
17966         glibc shortcomings with leading "-:" or "+:" in optstring.
17967         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17968         Likewise.
17969         * doc/posix-functions/getopt.texi (getopt): Likewise.
17970
17971         test-getopt: enhance test
17972         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
17973         supports optind=0.
17974         * tests/test-getopt.c (OPTIND_MIN): Move...
17975         * tests/test-getopt.h (OPTIND_MIN): ...here.
17976         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
17977         Require that optind=0 works, since modern BSD supports it in
17978         addition to optreset, and since coreutils expects it.
17979         (test_getopt_long_only): New test.
17980         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
17981         glibc shortcomings with 'W;', and enforcement of optind=0.
17982         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17983         Likewise.
17984
17985 2009-12-21  Bruno Haible  <bruno@clisp.org>
17986
17987         localename: Improvements for MacOS X and Cygwin.
17988         * lib/localename.h (gl_locale_name_environ): New declaration.
17989         * lib/localename.c (gl_locale_name_environ): New function, extracted from
17990         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
17991         (gl_locale_name_posix): Invoke it.
17992         (gl_locale_name_default): Add comments. Use Windows native API also on
17993         Cygwin.
17994
17995 2009-12-21  Bruno Haible  <bruno@clisp.org>
17996
17997         Update list of Win32 locale ids.
17998         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
17999         (LANG_SAMI): Renamed from LANG_SAAMI.
18000         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
18001         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
18002         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
18003         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
18004         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
18005         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
18006         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
18007         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
18008         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
18009         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
18010         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
18011         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
18012         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
18013         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
18014         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
18015         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
18016         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
18017         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
18018         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
18019         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
18020         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
18021         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
18022         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
18023         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
18024         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
18025         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
18026         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
18027         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
18028         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
18029         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
18030         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
18031         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
18032         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
18033         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
18034         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
18035         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
18036         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
18037         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
18038         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
18039         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
18040         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
18041         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
18042         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
18043         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
18044         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
18045         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
18046         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
18047         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
18048         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
18049         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
18050         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
18051         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
18052         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
18053         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
18054         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
18055         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
18056         Add more languages and countries for Sami, Sorbian. Add more countries
18057         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
18058         for Pashto. Change country for Syriac, Tswana.
18059
18060 2009-12-21  Eric Blake  <ebb9@byu.net>
18061
18062         test-utimens: avoid spurious failure
18063         * tests/test-chown.h (nap): Factor...
18064         * tests/nap.h: ...into new file.
18065         * tests/test-lchown.h (nap): Avoid duplication.
18066         * tests/test-utimens-common.h (nap): Use shared implementation,
18067         necessary on file systems with 1-second resolution.
18068         * modules/chown-tests (Files): Include new file.
18069         * modules/fdutimensat-tests (Files): Likewise.
18070         * modules/futimens-tests (Files): Likewise.
18071         * modules/lchown-tests (Files): Likewise.
18072         * modules/openat-tests (Files): Likewise.
18073         * modules/utimens-tests (Files): Likewise.
18074         * modules/utimensat-tests (Files): Likewise.
18075
18076 2009-12-19  Eric Blake  <ebb9@byu.net>
18077
18078         futimens, utimensat: work around Linux bug
18079         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
18080         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18081         * lib/utimensat.c (rpl_utimensat): Work around it.
18082         * lib/futimens.c (rpl_futimens): Adjust comment.
18083
18084         utimens: work around Linux ctime bug
18085         * lib/utimens.c (detect_ctime_bug): New helper function.
18086         (update_timespec): Differentiate between workaround needed for
18087         this bug vs. what is needed for systems that lack utimensat.
18088         (fdutimens, lutimens): Work around bug.
18089
18090         utimens: check for ctime update
18091         * tests/test-utimens-common.h (check_ctime): Define.
18092         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
18093         * tests/test-futimens.h (test_futimens): Likewise.
18094         * tests/test-lutimens.h (test_lutimens): Likewise.
18095         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18096         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18097
18098 2009-12-19  Bruno Haible  <bruno@clisp.org>
18099
18100         dprintf-posix: Check against memory leak fixed on 2009-12-15.
18101         * tests/test-dprintf-posix2.sh: New file.
18102         * tests/test-dprintf-posix2.c: New file.
18103         * modules/dprintf-posix-tests (Files): Add them.
18104         (configure.ac): Check for getrlimit and setrlimit.
18105         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
18106
18107 2009-12-19  Bruno Haible  <bruno@clisp.org>
18108
18109         fprintf-posix: Check against memory leak fixed on 2009-12-15.
18110         * tests/test-fprintf-posix3.sh: New file.
18111         * tests/test-fprintf-posix3.c: New file.
18112         * modules/fprintf-posix-tests (Files): Add them.
18113         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
18114
18115 2009-12-19  Eric Blake  <ebb9@byu.net>
18116
18117         dirfd: fix prototype
18118         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
18119         * lib/dirfd.c (dirfd): Likewise.
18120
18121         canonicalize: reduce memory usage
18122         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
18123         allocation to size.
18124         Reported by Solar Designer <solar@openwall.com>.
18125
18126 2009-12-19  Bruno Haible  <bruno@clisp.org>
18127
18128         New module attribute 'Applicability'.
18129         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
18130         * gnulib-tool: New option --extract-applicability.
18131         (func_usage): Document it.
18132         (sed_extract_prog): Recognize it.
18133         (func_get_applicability): New function.
18134         (func_import): Generalize handling of 'link-warning' module.
18135         * modules/link-warning (Applicability): New section.
18136         * modules/arg-nonnull (Applicability): New section.
18137         Repoted by Simon Josefsson <simon@josefsson.org>.
18138
18139 2009-12-19  Bruno Haible  <bruno@clisp.org>
18140
18141         fflush: tweak
18142         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
18143         * lib/fseeko.c (rpl_fseeko): Likewise.
18144
18145 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
18146
18147         * lib/gl_list.h: Fix typo in comment.
18148
18149 2009-12-16  Eric Blake  <ebb9@byu.net>
18150
18151         fcntl: use to simplify other modules
18152         * modules/cloexec (Depends-on): Add fcntl.
18153         * modules/fchdir (Depends-on): Likewise.
18154         * modules/fd-safer-flag (Depends-on): Likewise.
18155         * modules/unistd-safer (Depends-on): Likewise.
18156         * modules/dup3 (configure.ac): Set module indicator.
18157         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
18158         missing.
18159         * lib/fchdir.c (_gl_register_dup): Fix comment.
18160         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
18161         * lib/dup-safer.c (dup_safer): Likewise.
18162         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
18163         * lib/dup3.c (dup3): Likewise.
18164         * tests/test-fchdir.c (main): Enhance test.
18165         Fixes a dup_cloexec bug reported by Ondřej Vašík.
18166
18167         fcntl: port portions of fcntl to mingw
18168         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
18169         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
18170         replacement for mingw.
18171         * modules/fcntl (Description): Update.
18172         (Depends-on): Add dup2.
18173         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
18174         * modules/fcntl-h (Makefile.am): Substitute it.
18175         * lib/fcntl.in.h (fcntl): Update declaration.
18176         (F_DUPFD, F_GETFD): New macros, when needed.
18177         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18178         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
18179         * tests/test-fcntl.c (check_flags, main): Enhance test for items
18180         we now guarantee.
18181
18182         fcntl: work around cygwin bug in F_DUPFD
18183         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
18184         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
18185         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
18186         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
18187         * doc/posix-functions/fcntl.texi (fcntl): Document it.
18188
18189         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
18190         * modules/fcntl (Files): List new files.
18191         (configure.ac): Run a test.
18192         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
18193         * lib/fcntl.c (rpl_fcntl): Likewise.
18194         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
18195         (gl_FCNTL_H): Always replace fcntl.h.
18196         * modules/fcntl-h (Makefile.am): Substitute witnesses.
18197         * lib/fcntl.in.h (fcntl): Declare replacement.
18198         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
18199         needed, plus a witness.
18200         * doc/posix-functions/fcntl.texi (fcntl): Document this.
18201         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
18202         * tests/test-fcntl.c: New file.
18203         * modules/fcntl-tests: Likewise.
18204
18205         binary-io: avoid potential compilation warning
18206         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
18207         directives.
18208
18209         fflush: avoid compilation error on NetBSD
18210         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
18211         between off_t and fpos_t, since the latter is sometimes a struct.
18212         * lib/fseeko.c (rpl_fseeko): Likewise.
18213         Reported by Alexander Nasonov <alnsn@yandex.ru>.
18214
18215 2009-12-15  Eric Blake  <ebb9@byu.net>
18216
18217         fcntl-h, stdio, sys_ioctl: fix declarations
18218         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
18219         function must not take arguments.
18220         * lib/sys_ioctl.in.h (ioctl): Likewise.
18221         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
18222         (open): Add a link warning.
18223
18224 2009-12-15  Jim Meyering  <meyering@redhat.com>
18225
18226         areadlink, areadlink-with-size: relax license to LGPLv2+
18227         * modules/areadlink (License): Relax to LGPLv2+.
18228         * modules/areadlink-with-size (License): Likewise.
18229
18230 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
18231             Bruno Haible  <bruno@clisp.org>
18232
18233         *printf: Fix memory leak.
18234         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
18235         * lib/vfprintf.c (vfprintf): Likewise.
18236         * lib/dprintf.c (dprintf): Likewise.
18237         * lib/vdprintf.c (vdprintf): Likewise.
18238
18239 2009-12-14  Eric Blake  <ebb9@byu.net>
18240
18241         accept4: adjust module dependencies
18242         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
18243
18244         utimens: one more try at avoiding compiler warning
18245         * lib/utimens.c (lutimens): Lower scope of result.
18246
18247 2009-12-13  Bruno Haible  <bruno@clisp.org>
18248
18249         Move the malloc checking from module 'list' to new module 'xlist'.
18250         * modules/xlist: New file.
18251         * lib/gl_xlist.h: New file.
18252         * lib/gl_xlist.c: New file.
18253         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
18254         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
18255         gl_list_add_last, gl_list_add_before, gl_list_add_after,
18256         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
18257         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
18258         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
18259         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
18260         gl_sortedlist_nx_add): New declarations.
18261         (struct gl_list_implementation): Rename and change methods accordingly.
18262         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
18263         (gl_list_nx_create): Renamed from gl_list_create.
18264         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
18265         (gl_list_nx_set_at): Renamed from gl_list_set_at.
18266         (gl_list_nx_add_first): Renamed from gl_list_add_first.
18267         (gl_list_nx_add_last): Renamed from gl_list_add_last.
18268         (gl_list_nx_add_before): Renamed from gl_list_add_before.
18269         (gl_list_nx_add_after): Renamed from gl_list_add_after.
18270         (gl_list_nx_add_at): Renamed from gl_list_add_at.
18271         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
18272         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
18273         gl_list_create_empty.
18274         (gl_list_nx_create): Renamed from gl_list_create.
18275         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
18276         (gl_list_nx_set_at): Renamed from gl_list_set_at.
18277         (gl_list_nx_add_first): Renamed from gl_list_add_first.
18278         (gl_list_nx_add_last): Renamed from gl_list_add_last.
18279         (gl_list_nx_add_before): Renamed from gl_list_add_before.
18280         (gl_list_nx_add_after): Renamed from gl_list_add_after.
18281         (gl_list_nx_add_at): Renamed from gl_list_add_at.
18282         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
18283         * lib/gl_array_list.c: Don't include xalloc.h.
18284         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
18285         NULL upon out-of-memory.
18286         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
18287         out-of-memory.
18288         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
18289         Change return type to 'int'.
18290         (gl_array_nx_set_at): Renamed from gl_array_set_at.
18291         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
18292         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
18293         upon out-of-memory.
18294         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
18295         upon out-of-memory.
18296         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
18297         upon out-of-memory.
18298         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
18299         upon out-of-memory.
18300         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
18301         out-of-memory.
18302         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
18303         Update.
18304         (gl_array_list_implementation): Update.
18305         * lib/gl_carray_list.c: Don't include xalloc.h.
18306         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
18307         Return NULL upon out-of-memory.
18308         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
18309         out-of-memory.
18310         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
18311         Change return type to 'int'.
18312         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
18313         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
18314         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
18315         upon out-of-memory.
18316         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
18317         upon out-of-memory.
18318         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
18319         out-of-memory.
18320         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
18321         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
18322         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
18323         Update.
18324         (gl_carray_list_implementation): Update.
18325         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
18326         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
18327         gl_linked_create_empty. Return NULL upon out-of-memory.
18328         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
18329         out-of-memory.
18330         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
18331         Change return type to 'int'. Return -1 upon out-of-memory.
18332         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
18333         out-of-memory.
18334         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
18335         upon out-of-memory.
18336         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
18337         upon out-of-memory.
18338         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
18339         NULL upon out-of-memory.
18340         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
18341         upon out-of-memory.
18342         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
18343         out-of-memory.
18344         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
18345         Update.
18346         * lib/gl_linked_list.c: Don't include xalloc.h.
18347         (gl_linked_list_implementation): Update.
18348         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
18349         (add_to_bucket): Change return type to 'int'.
18350         (gl_linkedhash_list_implementation): Update.
18351         * lib/gl_anytree_list1.h (free_subtree): New function.
18352         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
18353         gl_tree_create_empty. Return NULL upon out-of-memory.
18354         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
18355         Change return type to 'int'. Return -1 upon out-of-memory.
18356         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
18357         out-of-memory.
18358         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
18359         (gl_tree_remove_node): New function, moved here from
18360         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
18361         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
18362         Update.
18363         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
18364         malloc, not xmalloc. Return NULL upon out-of-memory.
18365         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
18366         out-of-memory.
18367         (gl_tree_remove_node_from_tree): New function, extracted from
18368         gl_tree_remove_node.
18369         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
18370         upon out-of-memory.
18371         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
18372         out-of-memory.
18373         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
18374         upon out-of-memory.
18375         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
18376         upon out-of-memory.
18377         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
18378         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
18379         not xmalloc. Return NULL upon out-of-memory.
18380         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
18381         out-of-memory.
18382         (gl_tree_remove_node_from_tree): New function, extracted from
18383         gl_tree_remove_node.
18384         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
18385         upon out-of-memory.
18386         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
18387         out-of-memory.
18388         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
18389         upon out-of-memory.
18390         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
18391         upon out-of-memory.
18392         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
18393         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
18394         gl_anytree_list1.h before gl_anyavltree_list2.h.
18395         (gl_avltree_list_implementation): Update.
18396         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
18397         gl_anytree_list1.h before gl_anyavltree_list2.h.
18398         (gl_rbtree_list_implementation): Update.
18399         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
18400         Change return type to 'int'. Return -1 upon out-of-memory. Use
18401         __builtin_expect.
18402         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
18403         (gl_avltreehash_list_implementation): Update.
18404         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
18405         (gl_rbtreehash_list_implementation): Update.
18406         * modules/array-list (Depends-on): Remove xalloc.
18407         * modules/carray-list (Depends-on): Likewise.
18408         * modules/linked-list (Depends-on): Likewise.
18409         * modules/linkedhash-list (Depends-on): Likewise.
18410         * modules/avltree-list (Depends-on): Likewise.
18411         * modules/rbtree-list (Depends-on): Likewise.
18412         * modules/avltreehash-list (Depends-on): Likewise.
18413         * modules/rbtreehash-list (Depends-on): Likewise.
18414
18415         * modules/xsublist: New file.
18416         * lib/gl_xsublist.h: New file.
18417         * lib/gl_xsublist.c: New file.
18418         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
18419         (gl_sublist_nx_create): New declaration.
18420         * lib/gl_sublist.c: Don't include xalloc.h.
18421         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
18422         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
18423         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
18424         Change return type to 'int'. Return -1 upon out-of-memory.
18425         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
18426         upon out-of-memory.
18427         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
18428         NULL upon out-of-memory.
18429         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
18430         upon out-of-memory.
18431         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
18432         NULL upon out-of-memory.
18433         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
18434         NULL upon out-of-memory.
18435         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
18436         upon out-of-memory.
18437         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
18438         (gl_sublist_list_implementation): Update.
18439         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
18440         upon out-of-memory.
18441         * modules/sublist (Depends-on): Remove xalloc.
18442
18443         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
18444         * tests/test-carray_list.c: Likewise.
18445         * tests/test-linked_list.c: Likewise.
18446         * tests/test-linkedhash_list.c: Likewise.
18447         * tests/test-avltree_list.c: Likewise.
18448         * tests/test-rbtree_list.c: Likewise.
18449         * tests/test-avltreehash_list.c: Likewise.
18450         * tests/test-rbtreehash_list.c: Likewise.
18451         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
18452         * modules/carray-list-tests (Makefile.am): Likewise.
18453         * modules/linked-list-tests (Makefile.am): Likewise.
18454         * modules/linkedhash-list-tests (Makefile.am): Likewise.
18455         * modules/avltree-list-tests (Makefile.am): Likewise.
18456         * modules/rbtree-list-tests (Makefile.am): Likewise.
18457         * modules/avltreehash-list-tests (Makefile.am): Likewise.
18458         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
18459
18460         * NEWS: Mention the changes.
18461
18462         * lib/clean-temp.c: Include gl_xlist.h.
18463         * modules/clean-temp (Depends-on): Add xlist.
18464
18465         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
18466         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
18467
18468         * tests/test-array_oset.c: Include gl_xlist.h.
18469         * modules/array-oset-tests (Depends-on): Add xlist.
18470
18471         Reported by José E. Marchesi <jemarch@gnu.org>.
18472
18473 2009-12-13  Bruno Haible  <bruno@clisp.org>
18474
18475         Move the malloc checking from module 'oset' to new module 'xoset'.
18476         * modules/xoset: New file.
18477         * lib/gl_xoset.h: New file.
18478         * lib/gl_xoset.c: New file.
18479         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
18480         declarations.
18481         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
18482         (struct gl_oset_implementation): Rename and change methods accordingly.
18483         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
18484         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
18485         'int'. Mark as __warn_unused_result__.
18486         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
18487         gl_oset_create_empty.
18488         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
18489         'int'.
18490         * lib/gl_array_oset.c: Don't include xalloc.h.
18491         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
18492         malloc, not xmalloc.
18493         (grow): Change return type to 'int'. Don't call xalloc_die.
18494         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
18495         to 'int'.
18496         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
18497         'int'.
18498         (gl_array_oset_implementation): Update.
18499         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
18500         gl_tree_create_empty.
18501         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
18502         'int'.
18503         * lib/gl_avltree_oset.c: Don't include xalloc.h.
18504         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
18505         xmalloc.
18506         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
18507         not xmalloc.
18508         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
18509         xmalloc.
18510         (gl_avltree_oset_implementation): Update.
18511         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
18512         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
18513         xmalloc.
18514         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
18515         not xmalloc.
18516         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
18517         xmalloc.
18518         (gl_rbtree_oset_implementation): Update.
18519         * modules/array-oset (Depends-on): Remove xalloc.
18520         * modules/avltree-oset (Depends-on): Likewise.
18521         * modules/rbtree-oset (Depends-on): Likewise.
18522         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
18523         * tests/test-avltree_oset.c: Likewise.
18524         * tests/test-rbtree_oset.c: Likewise.
18525         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
18526         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
18527         * modules/rbtree-oset-tests (Makefile.am): Likewise.
18528         * NEWS: Mention the change.
18529
18530 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
18531
18532         maint.mk: allow a project to override release-prep commands
18533         * top/maint.mk (alpha, beta, stable): Move release-preparatory
18534         commands into a new rule.
18535         (release-prep): New rule.
18536         (release-prep-hook): New overridable variable.
18537
18538 2009-12-13  Bruno Haible  <bruno@clisp.org>
18539
18540         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
18541
18542 2009-12-13  Jim Meyering  <meyering@redhat.com>
18543
18544         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
18545         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
18546
18547 2009-12-12  Bruno Haible  <bruno@clisp.org>
18548
18549         duplocale: Tweak.
18550         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
18551
18552 2009-12-12  Karl Berry  <karl@gnu.org>
18553
18554         * config/srclist.txt (strtoll.c): tab changes, no more sync.
18555
18556 2009-12-12  Bruno Haible  <bruno@clisp.org>
18557
18558         * m4/po.m4: Undo incorrect untabification.
18559
18560 2009-12-12  Bruno Haible  <bruno@clisp.org>
18561
18562         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
18563         * modules/c-strtod (Depends-on): Add locale.
18564         * modules/c-strtold (Depends-on): Likewise.
18565
18566 2009-12-12  Bruno Haible  <bruno@clisp.org>
18567
18568         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
18569
18570 2009-12-11  Eric Blake  <ebb9@byu.net>
18571
18572         setenv: relax requirement in light of POSIX ruling
18573         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
18574         not NULL.
18575         * tests/test-setenv.c (main): Relax test.
18576         * tests/test-unsetenv.c (main): Likewise.
18577         * doc/posix-functions/setenv.texi (setenv): Document this.
18578         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
18579
18580 2009-12-11  Bruno Haible  <bruno@clisp.org>
18581
18582         New module 'fd-safer-flag'.
18583         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
18584         * lib/dup-safer.c (dup_safer_flag): Remove function.
18585         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
18586         * lib/fd-safer.c (fd_safer_flag): Remove function.
18587         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
18588         * modules/cloexec (configure.ac): Drop indicator macro.
18589         * modules/fd-safer-flag: New file.
18590         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
18591         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
18592         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
18593
18594 2009-12-11  Bruno Haible  <bruno@clisp.org>
18595
18596         Tests for module 'nl_langinfo'.
18597         * modules/nl_langinfo-tests: New file.
18598         * tests/test-nl_langinfo.sh: New file.
18599         * tests/test-nl_langinfo.c: New file.
18600
18601         New module 'nl_langinfo'.
18602         * lib/nl_langinfo.c: New file.
18603         * m4/nl_langinfo.m4: New file.
18604         * modules/nl_langinfo: New file.
18605         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
18606
18607 2009-12-11  Bruno Haible  <bruno@clisp.org>
18608
18609         Tests for module 'langinfo'.
18610         * modules/langinfo-tests: New file.
18611         * tests/test-langinfo.c: New file.
18612
18613         New module 'langinfo'.
18614         * lib/langinfo.in.h: New file.
18615         * m4/langinfo_h.m4: New file.
18616         * modules/langinfo: New file.
18617         * doc/posix-headers/langinfo.texi: Mention the new module.
18618
18619 2009-12-11  Bruno Haible  <bruno@clisp.org>
18620
18621         * lib/config.charset: Untabify.
18622
18623 2009-12-11  Bruno Haible  <bruno@clisp.org>
18624
18625         * modules/unistd-safer (configure.ac): Drop indicator macro.
18626
18627 2009-12-11  Bruno Haible  <bruno@clisp.org>
18628
18629         Move pipe2-safer code to its own file.
18630         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
18631         * lib/pipe-safer.c (pipe2_safer): Remove function.
18632         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
18633         (Makefile.am): Add it to lib_SOURCES.
18634
18635 2009-12-10  Bruno Haible  <bruno@clisp.org>
18636
18637         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
18638
18639 2009-12-10  Bruno Haible  <bruno@clisp.org>
18640
18641         Declare which arguments expect non-NULL values, for GCC and clang.
18642         * build-aux/arg-nonnull.h: New file.
18643         * modules/arg-nonnull: New file.
18644         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
18645         (inet_ntop, inet_pton): Use it.
18646         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
18647         (closedir, dirfd, opendir, scandir, alphasort): Use it.
18648         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
18649         (open, openat): Use it.
18650         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
18651         (fnmatch): Use it.
18652         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
18653         (getopt, getopt_long, getopt_long_only): Use it.
18654         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
18655         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
18656         Use it.
18657         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
18658         (iconv_open): Use it.
18659         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
18660         (strtoimax, strtoumax): Use it.
18661         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
18662         (duplocale): Use it.
18663         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
18664         (frexp, frexpl): Use it.
18665         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
18666         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
18667         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
18668         (tsearch, tfind, tdelete, twalk): Use it.
18669         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
18670         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
18671         sigpending): Use it.
18672         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
18673         (posix_spawn, posix_spawnp, posix_spawnattr_init,
18674         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
18675         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
18676         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
18677         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
18678         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
18679         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
18680         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
18681         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
18682         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
18683         Use it.
18684         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
18685         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
18686         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
18687         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
18688         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
18689         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
18690         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
18691         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
18692         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
18693         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
18694         strtoull, unsetenv): Use it.
18695         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
18696         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
18697         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
18698         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
18699         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
18700         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
18701         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
18702         (strcasecmp, strncasecmp): Use it.
18703         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
18704         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
18705         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
18706         rpl_setsockopt): Use it.
18707         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
18708         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
18709         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
18710         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
18711         (gettimeofday): Use it.
18712         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
18713         (times): Use it.
18714         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
18715         (uname): Use it.
18716         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
18717         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
18718         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
18719         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
18720         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
18721         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
18722         unlinkat, write): Use it.
18723         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
18724         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
18725         * lib/argv-iter.h: Include arg-nonnull.h.
18726         (_ATTRIBUTE_NONNULL_): Remove macro.
18727         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
18728         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
18729         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
18730         optimization.
18731         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
18732         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
18733         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
18734         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
18735         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
18736         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
18737         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
18738         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
18739         * modules/arpa_inet (Depends-on): Add arg-nonnull.
18740         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
18741         * modules/dirent (Depends-on): Add arg-nonnull.
18742         (Makefile.am): Insert arg-nonnull.h into dirent.h.
18743         * modules/fcntl-h (Depends-on): Add arg-nonnull.
18744         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
18745         * modules/fnmatch (Depends-on): Add arg-nonnull.
18746         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
18747         * modules/getopt-posix (Depends-on): Add arg-nonnull.
18748         (Makefile.am): Insert arg-nonnull.h into getopt.h.
18749         * modules/glob (Depends-on): Add arg-nonnull.
18750         (Makefile.am): Insert arg-nonnull.h into glob.h.
18751         * modules/iconv_open (Depends-on): Add arg-nonnull.
18752         (Makefile.am): Insert arg-nonnull.h into iconv.h.
18753         * modules/inttypes (Depends-on): Add arg-nonnull.
18754         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
18755         * modules/locale (Depends-on): Add arg-nonnull.
18756         (Makefile.am): Insert arg-nonnull.h into locale.h.
18757         * modules/math (Depends-on): Add arg-nonnull.
18758         (Makefile.am): Insert arg-nonnull.h into math.h.
18759         * modules/netdb (Depends-on): Add arg-nonnull.
18760         (Makefile.am): Insert arg-nonnull.h into netdb.h.
18761         * modules/search (Depends-on): Add arg-nonnull.
18762         (Makefile.am): Insert arg-nonnull.h into search.h.
18763         * modules/signal (Depends-on): Add arg-nonnull.
18764         (Makefile.am): Insert arg-nonnull.h into signal.h.
18765         * modules/spawn (Depends-on): Add arg-nonnull.
18766         (Makefile.am): Insert arg-nonnull.h into spawn.h.
18767         * modules/stdio (Depends-on): Add arg-nonnull.
18768         (Makefile.am): Insert arg-nonnull.h into stdio.h.
18769         * modules/stdlib (Depends-on): Add arg-nonnull.
18770         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
18771         * modules/string (Depends-on): Add arg-nonnull.
18772         (Makefile.am): Insert arg-nonnull.h into string.h.
18773         * modules/strings (Depends-on): Add arg-nonnull.
18774         (Makefile.am): Insert arg-nonnull.h into strings.h.
18775         * modules/sys_socket (Depends-on): Add arg-nonnull.
18776         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
18777         * modules/sys_stat (Depends-on): Add arg-nonnull.
18778         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
18779         * modules/sys_time (Depends-on): Add arg-nonnull.
18780         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
18781         * modules/sys_times (Depends-on): Add arg-nonnull.
18782         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
18783         * modules/sys_utsname (Depends-on): Add arg-nonnull.
18784         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
18785         * modules/time (Depends-on): Add arg-nonnull.
18786         (Makefile.am): Insert arg-nonnull.h into time.h.
18787         * modules/unistd (Depends-on): Add arg-nonnull.
18788         (Makefile.am): Insert arg-nonnull.h into unistd.h.
18789         * modules/wchar (Depends-on): Add arg-nonnull.
18790         (Makefile.am): Insert arg-nonnull.h into wchar.h.
18791         * modules/argv-iter (Depends-on): Add arg-nonnull.
18792         * tests/test-canonicalize.c (null_ptr): New function.
18793         (main): Use it.
18794         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
18795         (main): Use it.
18796         * tests/test-memmem.c (null_ptr): New function.
18797         (main): Use it.
18798         Reported by Jim Meyering.
18799
18800 2009-12-10  Bruno Haible  <bruno@clisp.org>
18801
18802         Use spaces for indentation, not tabs.
18803         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
18804         * m4/*.m4: Untabify.
18805         * build-aux/*.h: Untabify.
18806         * tests/**/*.[hc]: Untabify.
18807         * README: New section "Indent with spaces, not TABs", based on
18808         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
18809         * NEWS: Mention the change.
18810
18811 2009-12-10  Bruno Haible  <bruno@clisp.org>
18812
18813         pty test: Fix link error.
18814         * modules/pty-tests (Makefile.am): Add the default LDADD value to
18815         test_pty_LDADD.
18816
18817 2009-12-07  Simon Josefsson  <simon@josefsson.org>
18818
18819         * modules/pty: New file.
18820         * modules/pty-tests: New file.
18821         * m4/pty.m4: New file.
18822         * tests/test-pty.c: New file.
18823         * doc/glibc-headers/pty.texi: Modified.
18824         * doc/glibc-functions/forkpty.texi: Modified.
18825         * doc/glibc-functions/openpty.texi: Modified.
18826
18827 2009-12-10  Bruno Haible  <bruno@clisp.org>
18828
18829         Avoid syntax error in C++ mode.
18830         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
18831
18832 2009-12-10  Bruno Haible  <bruno@clisp.org>
18833
18834         Use sed with option -e.
18835         * gnulib-tool (func_version, func_emit_copyright_notice,
18836         func_emit_initmacro_end, func_import, func_create_testdir): Pass
18837         option -e to sed.
18838         * modules/link-warning (Makefile.am): Likewise.
18839
18840 2009-12-10  Jim Meyering  <meyering@redhat.com>
18841
18842         mgetgroups: do not write bytes beyond end of malloc'd buffer
18843         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
18844         username, we call getgroups with a one-element-shorter buffer,
18845         but still told it the length was original, max_n_groups.
18846
18847 2009-12-09  Eric Blake  <ebb9@byu.net>
18848
18849         cloexec: relax license
18850         * modules/cloexec (Maintainer): Add myself.
18851         (License): Use LGPL, not GPL.
18852
18853         link-warning: optimize generation
18854         * modules/link-warning (Makefile.am): Reduce process usage.
18855
18856 2009-12-09  Bruno Haible  <bruno@clisp.org>
18857
18858         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
18859         workaround was added on 2009-11-17.
18860
18861 2009-12-09  Jim Meyering  <meyering@redhat.com>
18862             Bruno Haible  <bruno@clisp.org>
18863
18864         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
18865         * modules/link-warning (Makefile.am): Make the comment-removing sed
18866         command more robust in the face of bootstrap-prepended comment lines.
18867
18868 2009-12-09  Bruno Haible  <bruno@clisp.org>
18869
18870         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
18871         most one group.
18872
18873 2009-12-09  Simon Josefsson <simon@josefsson.org>
18874             Bruno Haible  <bruno@clisp.org>
18875
18876         * build-aux/link-warning.h: Add copyright notice.
18877         * modules/link-warning (Makefile.am): Generate link-warning.h from
18878         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
18879         * NEWS: Mention change in link-warning module.
18880         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
18881         * modules/dirent (Makefile.am): Add dependency to dirent.h.
18882         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
18883         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
18884         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
18885         * modules/math (Makefile.am): Add dependency to math.h.
18886         * modules/search (Makefile.am): Add dependency to search.h.
18887         * modules/signal (Makefile.am): Add dependency to signal.h.
18888         * modules/spawn (Makefile.am): Add dependency to spawn.h.
18889         * modules/stdio (Makefile.am): Add dependency to stdio.h.
18890         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
18891         * modules/string (Makefile.am): Add dependency to string.h.
18892         * modules/strings (Makefile.am): Add dependency to strings.h.
18893         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
18894         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
18895         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
18896         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
18897         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
18898         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
18899         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
18900         * modules/unistd (Makefile.am): Add dependency to unistd.h.
18901         * modules/wchar (Makefile.am): Add dependency to wchar.h.
18902
18903 2009-12-09  Bruno Haible  <bruno@clisp.org>
18904
18905         fchdir: Optimize away rpl_fstat when possible.
18906         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
18907         REPLACE_OPEN_DIRECTORY.
18908         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
18909
18910 2009-12-09  Bruno Haible  <bruno@clisp.org>
18911
18912         * lib/fchdir.c: Update comment.
18913
18914 2009-12-09  Bruno Haible  <bruno@clisp.org>
18915
18916         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
18917
18918 2009-12-08  Eric Blake  <ebb9@byu.net>
18919
18920         fchdir: avoid memory leak on re-registration.
18921         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
18922
18923 2009-12-08  Jim Meyering  <meyering@redhat.com>
18924
18925         init.sh: avoid Solaris 10 /bin/sh portability problem
18926         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
18927         sourced script:
18928           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
18929           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
18930           bar
18931         tests/init.sh relied on that, accepting a --set-path=DIR argument,
18932         and two tests used that idiom.
18933         * tests/init.sh: Update suggested usage comments.
18934         (path_prepend_): New function, to be used in place
18935         of the --src-path=DIR option.
18936         (setup_): Move PATH-prepending code into path_prepend_.
18937         * tests/test-pread.sh: Adapt to new usage.
18938         * tests/test-xalloc-die.sh: Likewise.
18939
18940 2009-12-08  Simon Josefsson  <simon@josefsson.org>
18941
18942         * doc/gnulib.texi (Glibc pty.h): Add.
18943         * doc/glibc-functions/forkpty.texi: Add.
18944         * doc/glibc-functions/openpty.texi: Add.
18945         Suggested by Bruno Haible.
18946
18947 2009-12-08  Eric Blake  <ebb9@byu.net>
18948
18949         fchdir: fix logic bugs
18950         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
18951         * tests/test-fchdir.c (main): Enhance test.
18952         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
18953         is in use.
18954
18955         dup2: fix logic bugs
18956         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
18957         REPLACE_DUP2 to decide when rpl_dup2 is needed.
18958         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
18959         exists.
18960         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
18961
18962 2009-12-07  Eric Blake  <ebb9@byu.net>
18963
18964         unlink: fix m4 detection
18965         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
18966
18967         unistd-safer: add unit test
18968         * modules/unistd-safer-tests: New file.
18969         * tests/test-dup-safer.c: Likewise.
18970         * tests/test-cloexec.c (setmode): Avoid compiler warning.
18971         * tests/test-dup2.c (setmode): Likewise.
18972         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
18973
18974         cloexec: preserve text vs. binary across dup_cloexec
18975         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
18976         mode.
18977         * modules/dup2-tests (Depends-on): Add binary-io.
18978         * modules/cloexec-tests (Depends-on): Likewise.
18979         * tests/test-dup2.c (setmode, is_mode): New helpers.
18980         (main): Add tests that translation mode is preserved.
18981         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
18982         Reported by Bruno Haible.
18983
18984         mgetgroups: reduce duplicate listings
18985         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
18986         resulting array.
18987         * tests/test-chown.h (test_chown): Simplify client.
18988         * tests/test-lchown.h (test_lchown): Likewise.
18989
18990 2009-12-06  Bruno Haible  <bruno@clisp.org>
18991
18992         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
18993         value.
18994
18995 2009-12-06  Bruno Haible  <bruno@clisp.org>
18996
18997         * lib/progname.c: Include stdio.h, stdlib.h.
18998         (set_program_name): Reject a NULL argument.
18999
19000 2009-12-05  Eric Blake  <ebb9@byu.net>
19001
19002         pipe2-safer: new module
19003         * modules/pipe2-safer: New file.
19004         * lib/unistd-safer.h (pipe2_safer): New prototype.
19005         * lib/unistd--.h (pipe2): New wrapper.
19006         * lib/pipe-safer.c (pipe2_safer): New function.
19007         * modules/pipe (Depends-on): Add pipe2-safer.
19008         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
19009
19010         stdlib-safer: preserve cloexec flag for mkostemp[s]
19011         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
19012         fd_safer_flag.
19013
19014         unistd-safer: allow preservation of cloexec status via flag
19015         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
19016         prototypes.
19017         * lib/dup-safer.c (dup_safer_flag): New function.
19018         * lib/fd-safer.c (fd_safer_flag): Likewise.
19019         * modules/cloexec (configure.ac): Set witness.
19020
19021         test-dup2: enhance test
19022         * modules/dup2-tests (Depends-on): Add cloexec.
19023         * tests/test-dup2.c (main): Enhance test.
19024
19025         cloexec: add dup_cloexec
19026         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
19027         header and comments.
19028         * lib/cloexec.c (set_cloexec_flag): Add comments.
19029         (dup_cloexec): New function, with mingw implementation borrowed
19030         from...
19031         * lib/w32spawn.h (dup_noinherit): ...here.
19032         * modules/execute (Depends-on): Add cloexec.
19033         * modules/pipe (Depends-on): Likewise.
19034         * modules/cloexec (Depends-on): Add dup2.
19035         * modules/cloexec-tests (Files): New file.
19036         * tests/test-cloexec.c: Likewise.
19037
19038         test-xalloc-die: fix test for mingw
19039         * modules/xalloc-die-tests (Files): Add tests/init.sh.
19040         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
19041         directory and .exe suffix off argv[0] output.
19042
19043         test-fseeko: fix test for mingw
19044         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
19045         than undefining fseek, so test will pass on mingw.
19046
19047 2009-12-05  Bruno Haible  <bruno@clisp.org>
19048
19049         * lib/progname.h (set_program_name): Clarify specification.
19050         * lib/progname.c (set_program_name): Likewise.
19051         Reported by Jim Meyering.
19052
19053 2009-12-05  Jim Meyering  <meyering@redhat.com>
19054
19055         maint.mk: backslash-escape parens in default regexp
19056         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
19057         backslash-escape the literal parentheses.
19058
19059         maint.mk: news-date-check: use grep -E
19060         * top/maint.mk (today): Define a Make variable, not a...
19061         (news-date-check): ...shell variable.
19062         (news-date-regexp): Use the Make variable.
19063         Use grep's -E option.  Change the failing diagnostic to mention
19064         the variable, $(news-date-regexp).
19065
19066 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
19067
19068         maintainer-makefile: allow customization of NEWS entry format
19069         * top/maint.mk (news-date-regexp): New overridable variable.
19070         (news-date-check): Use it.
19071
19072 2009-12-04  Eric Blake  <ebb9@byu.net>
19073
19074         mgetgroups: add xgetgroups, and avoid ENOSYS failures
19075         * lib/mgetgroups.h (xgetgroups): New prototype.
19076         * lib/mgetgroups.c (xgetgroups): New wrapper.
19077         (mgetgroups): Handle ENOSYS.
19078         * modules/mgetgroups (Depends-on): Add realloc.
19079         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
19080
19081         mgetgroups: avoid argument promotion issues with -1
19082         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
19083         for invalid gid_t.
19084         * tests/test-chown.h (getegid, test_chown): Likewise.
19085         * tests/test-lchown.h (getegid, test_lchown): Likewise.
19086
19087 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
19088
19089         exclude: Fix header file problems.
19090         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
19091
19092 2009-12-01  Jim Meyering  <meyering@redhat.com>
19093
19094         fts: fts_open: do not let an empty string cause immediate failure
19095         This is required in support of GNU rm, for which the command
19096         "rm A '' B" must process and remove both A and B, in spite of
19097         the empty string argument.
19098         * lib/fts.c (fts_open): Do not let the presence of an empty string
19099         cause fts_open to fail immediately.  Most fts-using tools must be
19100         able to process all arguments, in order, and can be expected to
19101         diagnose such arguments themselves.
19102
19103 2009-11-30  Eric Blake  <ebb9@byu.net>
19104
19105         utimens: fix compilation error
19106         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
19107         Declare variable at right scope.
19108
19109 2009-11-29  Jim Meyering  <meyering@redhat.com>
19110
19111         bootstrap: handle perl-5.11's changed --version output
19112         * build-aux/bootstrap (get_version): Handle perl separately,
19113         since perl-5.11's --version output is different.
19114
19115 2009-11-28  Jim Meyering  <meyering@redhat.com>
19116
19117         userspec: depend on the inttostr module, too
19118         * modules/userspec (Depends-on): Add inttostr.
19119
19120         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
19121         * lib/userspec.c (parse_with_separator): Do not accept a user ID
19122         number of MAXUID when it evaluates to (uid_t) -1.
19123         Likewise for group ID.  Reported by Matt McCutchen in
19124         <http://savannah.gnu.org/bugs/?28113>
19125
19126         userspec: reformat to use spaces, not TABs
19127         * lib/userspec.c: Expand TABs to spaces.
19128         Add Emacs' "indent-tabs-mode: nil" hint.
19129
19130 2009-11-27  Eric Blake  <ebb9@byu.net>
19131
19132         getopt-gnu: flush out another BSD bug
19133         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
19134         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
19135         flush out BSD bug.
19136         * tests/test-getopt.h (test_getopt): End lists with NULL.
19137         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19138         (test_getopt_long_posix): Enhance test.
19139         * modules/getopt-posix-tests (Depends-on): Add stdbool.
19140         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
19141         getopt-gnu.
19142         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19143         Likewise.
19144
19145 2009-11-27  Simon Josefsson  <simon@josefsson.org>
19146
19147         * modules/idpriv-droptemp-tests (Notice): Fix text.
19148
19149 2009-11-27  Jim Meyering  <meyering@redhat.com>
19150
19151         test-xalloc-die: avoid spurious failure due to libtool argv difference
19152         In a libtool-enabled project, this test would fail due to a difference
19153         in the emitted program name, e.g.,
19154         -test-xalloc-die: memory exhausted
19155         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
19156         Use program to avoid that.
19157         * modules/xalloc-die-tests (Depends-on): Add progname.
19158         * tests/test-xalloc-die.c: Include progname.h".
19159         (program_name): Remove decl.
19160         (main): Call set_program_name.
19161         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
19162
19163 2009-11-26  Richard Jones  <rjones@redhat.com>
19164
19165         w32sock: leave win32 error in place.
19166         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
19167
19168 2009-11-26  Eric Blake  <ebb9@byu.net>
19169
19170         init.sh: suggest to use skip_ and fail_ functions in comments
19171         * tests/init.sh: Add a sentence.
19172
19173 2009-11-25  Bruno Haible  <bruno@clisp.org>
19174
19175         init.sh: add documentation in comments
19176         * tests/init.sh: Add some developer and user documentation.
19177
19178 2009-11-26  Jim Meyering  <meyering@redhat.com>
19179
19180         init.sh: accommodate even those who specify bogus srcdir manually
19181         * tests/init.sh: Normally, srcdir is guaranteed by automake and
19182         configure-time tests to be sanitized, so that there is no need to
19183         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
19184         (with no double quotes) suffices.  However, since tests may be
19185         invoked manually, and since you may explicitly set srcdir to the
19186         name of a directory containing spaces, do quote its uses here.
19187         * tests/test-pread.sh: Likewise.
19188         Suggested by Bruno Haible.
19189
19190         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
19191         * tests/test-pread.sh: Write no data into the pipe, because
19192         test-pread actually reads none.  This avoids a diagnostic,
19193         "bash: echo: write error: Broken pipe", that arises in the unusual
19194         event something is ignoring SIGPIPE, and might be interpreted
19195         as some sort of failure.  Reported by Bruno Haible.
19196
19197 2009-11-25  Jim Meyering  <meyering@redhat.com>
19198
19199         test-pread: cover failure with ESPIPE and EINVAL
19200         * tests/test-pread.c (main): Test for failure, too.
19201         * tests/test-pread.sh: Invoke with stdin on a pipe.
19202         Suggested by Eric Blake.
19203
19204         pread: improvement and fix
19205         * modules/pread (Depends-on): Depend on lseek, for portability to
19206         e.g., mingw.  Suggested by Eric Blake.
19207         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
19208
19209         unistd.in.h: correct declaration of pread
19210         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
19211         Reported by Richard W.M. Jones.
19212
19213         test-pread.sh: distribute the test script
19214         * modules/pread-tests (Files): Include test-pread.sh.
19215
19216         test-pread.sh: clean up
19217         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
19218         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
19219         That is unnecessary, since it's always ".".
19220         Suggestion from Eric Blake.
19221
19222         test-pread.sh: make executable
19223         * tests/test-pread.sh: Set executable bit.
19224         Reported by Eric Blake.
19225
19226         correct typo in test-pread.sh
19227         * tests/test-pread.sh: Add #! line.
19228
19229         test pread
19230         * tests/test-pread.c: New file.
19231         * tests/test-pread.sh: Likewise.
19232         * modules/pread-tests: Likewise.
19233
19234         pread: new module
19235         * modules/pread: New file.
19236         * lib/unistd.in.h (pread): Define/declare.
19237         * lib/pread.c (pread): New file.
19238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
19239         * modules/unistd (Makefile.am): Substitute witnesses.
19240         * doc/posix-functions/pread.texi (pread): Update.
19241         * MODULES.html.sh: Add pread.
19242
19243 2009-11-25  Jim Meyering  <meyering@redhat.com>
19244
19245         tests/init.sh: new file to be used via most *.sh tests
19246         * tests/init.sh: New file.
19247
19248 2009-11-25  Eric Blake  <ebb9@byu.net>
19249
19250         utimens: work around older Linux failure with symlinks
19251         * lib/utimens.c (lutimensat_works_really): New variable.
19252         (fdutimens, lutimens): Use it to manage kernels that support
19253         nanosecond times on files, but not on symlinks.
19254         Reported by Ondřej Vašík.
19255
19256         utimes: fix configure grammar
19257         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
19258
19259 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
19260
19261         regex: Fix fastmap for multibyte character ranges.
19262         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
19263         characters when a multibyte character range is included.
19264
19265 2009-11-22  Andy Wingo  <wingo@pobox.com>
19266
19267         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
19268         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
19269
19270 2009-11-24  Bruno Haible  <bruno@clisp.org>
19271
19272         doc: Most *_l functions exist in MacOS X 10.5.
19273         * doc/posix-functions/duplocale.texi: Update platforms list.
19274         * doc/posix-functions/freelocale.texi: Likewise.
19275         * doc/posix-functions/newlocale.texi: Likewise.
19276         * doc/posix-functions/uselocale.texi: Likewise.
19277         * doc/posix-functions/isalnum_l.texi: Likewise.
19278         * doc/posix-functions/isalpha_l.texi: Likewise.
19279         * doc/posix-functions/isblank_l.texi: Likewise.
19280         * doc/posix-functions/iscntrl_l.texi: Likewise.
19281         * doc/posix-functions/isdigit_l.texi: Likewise.
19282         * doc/posix-functions/isgraph_l.texi: Likewise.
19283         * doc/posix-functions/islower_l.texi: Likewise.
19284         * doc/posix-functions/isprint_l.texi: Likewise.
19285         * doc/posix-functions/ispunct_l.texi: Likewise.
19286         * doc/posix-functions/isspace_l.texi: Likewise.
19287         * doc/posix-functions/isupper_l.texi: Likewise.
19288         * doc/posix-functions/iswalnum_l.texi: Likewise.
19289         * doc/posix-functions/iswalpha_l.texi: Likewise.
19290         * doc/posix-functions/iswblank_l.texi: Likewise.
19291         * doc/posix-functions/iswcntrl_l.texi: Likewise.
19292         * doc/posix-functions/iswctype_l.texi: Likewise.
19293         * doc/posix-functions/iswdigit_l.texi: Likewise.
19294         * doc/posix-functions/iswgraph_l.texi: Likewise.
19295         * doc/posix-functions/iswlower_l.texi: Likewise.
19296         * doc/posix-functions/iswprint_l.texi: Likewise.
19297         * doc/posix-functions/iswpunct_l.texi: Likewise.
19298         * doc/posix-functions/iswspace_l.texi: Likewise.
19299         * doc/posix-functions/iswupper_l.texi: Likewise.
19300         * doc/posix-functions/iswxdigit_l.texi: Likewise.
19301         * doc/posix-functions/isxdigit_l.texi: Likewise.
19302         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
19303         * doc/posix-functions/strcasecmp_l.texi: Likewise.
19304         * doc/posix-functions/strcoll_l.texi: Likewise.
19305         * doc/posix-functions/strfmon_l.texi: Likewise.
19306         * doc/posix-functions/strftime_l.texi: Likewise.
19307         * doc/posix-functions/strncasecmp_l.texi: Likewise.
19308         * doc/posix-functions/strxfrm_l.texi: Likewise.
19309         * doc/posix-functions/tolower_l.texi: Likewise.
19310         * doc/posix-functions/toupper_l.texi: Likewise.
19311         * doc/posix-functions/towctrans_l.texi: Likewise.
19312         * doc/posix-functions/towlower_l.texi: Likewise.
19313         * doc/posix-functions/towupper_l.texi: Likewise.
19314         * doc/posix-functions/wcscoll_l.texi: Likewise.
19315         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
19316         * doc/posix-functions/wctrans_l.texi: Likewise.
19317         * doc/posix-functions/wctype_l.texi: Likewise.
19318         * doc/glibc-functions/strptime_l.texi: Likewise.
19319         * doc/glibc-functions/strtod_l.texi: Likewise.
19320         * doc/glibc-functions/strtof_l.texi: Likewise.
19321         * doc/glibc-functions/strtol_l.texi: Likewise.
19322         * doc/glibc-functions/strtold_l.texi: Likewise.
19323         * doc/glibc-functions/strtoll_l.texi: Likewise.
19324         * doc/glibc-functions/strtoul_l.texi: Likewise.
19325         * doc/glibc-functions/strtoull_l.texi: Likewise.
19326         * doc/glibc-functions/wcsftime_l.texi: Likewise.
19327         * doc/glibc-functions/wcstod_l.texi: Likewise.
19328         * doc/glibc-functions/wcstof_l.texi: Likewise.
19329         * doc/glibc-functions/wcstol_l.texi: Likewise.
19330         * doc/glibc-functions/wcstold_l.texi: Likewise.
19331         * doc/glibc-functions/wcstoll_l.texi: Likewise.
19332         * doc/glibc-functions/wcstoul_l.texi: Likewise.
19333         * doc/glibc-functions/wcstoull_l.texi: Likewise.
19334
19335 2009-11-24  Bruno Haible  <bruno@clisp.org>
19336
19337         duplocale: Fix logic bug.
19338         * lib/duplocale.c: Don't include <langinfo.h>.
19339         (_NL_LOCALE_NAME): Remove macro.
19340         (rpl_duplocale): Use setlocale instead of nl_langinfo.
19341         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
19342
19343 2009-11-23  Jim Meyering  <meyering@redhat.com>
19344
19345         test-update-copyright: don't hard-code /usr/bin/perl
19346         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
19347         perl to print the current year.  Gilles Espinasse reported that
19348         the replaced use of perl was hard-coded as /usr/bin/perl.
19349
19350 2009-11-23  Bruno Haible  <bruno@clisp.org>
19351
19352         duplocale: Add support for glibc 2.3.x.
19353         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
19354
19355 2009-11-22  Bruno Haible  <bruno@clisp.org>
19356
19357         vasnprintf: Tiny optimization.
19358         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
19359         MacOS X.
19360
19361 2009-11-22  Bruno Haible  <bruno@clisp.org>
19362
19363         Tests for module 'duplocale'.
19364         * modules/duplocale-tests: New file.
19365         * tests/test-duplocale.c: New file.
19366
19367         New module 'duplocale'.
19368         * m4/duplocale.m4: New file.
19369         * lib/locale.in.h (duplocale): New declaration.
19370         * lib/duplocale.c: New file.
19371         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
19372         gl_LOCALE_H_DEFAULTS): New macros.
19373         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
19374         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
19375         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
19376         REPLACE_DUPLOCALE.
19377         * modules/duplocale: New file.
19378         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
19379
19380 2009-11-22  Bruno Haible  <bruno@clisp.org>
19381
19382         * modules/locale-tests (configure.ac): Test for newlocale function.
19383         * tests/test-locale.c: When the system has extended locale functions,
19384         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
19385
19386         locale: Make locale_t available when possible.
19387         * lib/locale.in.h: Include <xlocale.h> when it exists.
19388         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
19389         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
19390         * modules/locale (Depends-on): Add extensions.
19391         (Makefile.am): Also substitute HAVE_XLOCALE_H.
19392         * doc/posix-headers/locale.texi: Document the problem with locale_t.
19393
19394 2009-11-22  Bruno Haible  <bruno@clisp.org>
19395
19396         Add comments.
19397         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
19398         invocation.
19399         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
19400         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19401         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19402
19403 2009-11-22  Bruno Haible  <bruno@clisp.org>
19404
19405         error: account for the possibility of freopen (stdout).
19406         * lib/error.c: Include <unistd.h>.
19407         (flush_stdout): New function, extracted from error and error_at_line.
19408         Determine stdout's fd dynamically.
19409         (error, error_at_line): Invoke flush_stdout.
19410         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
19411         * modules/error (Depends-on): Add unistd.
19412
19413 2009-11-22  Bruno Haible  <bruno@clisp.org>
19414
19415         diffseq: Add comment.
19416         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
19417
19418 2009-11-22  Jim Meyering  <meyering@redhat.com>
19419
19420         c-stack: avoid defining an unused static function
19421         * lib/c-stack.c (find_stack_direction): Do not define this function
19422         when it will not be used.
19423
19424         diffseq: avoid spurious gcc warnings
19425         * lib/diffseq.h (IF_LINT2): Define.
19426         (compareseq): Use it to initialize two members of "part".
19427         This avoids two used-uninitialized warnings.
19428
19429 2009-11-21  Jim Meyering  <meyering@redhat.com>
19430
19431         c-stack: avoid "ignoring return value of `write'" warning
19432         * lib/c-stack.c: Include "ignore-value.h".
19433         (die): Explicitly ignore each write return value.
19434         * modules/c-stack (Depends-on): Add ignore-value.
19435
19436 2009-11-21  Bruno Haible  <bruno@clisp.org>
19437
19438         diffseq: reduce scope of variable 'best'.
19439         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
19440         variable, earlier used for two different purposes.
19441
19442 2009-11-21  Jim Meyering  <meyering@redhat.com>
19443
19444         diffseq: remove useless assignment to "best"
19445         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
19446         assignment.  At that point "best" is already guaranteed to be zero.
19447
19448 2009-11-20  Eric Blake  <ebb9@byu.net>
19449
19450         build: mention ftp redirector in release announcements
19451         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
19452         values that used to come from cfg.mk; mention FTP redirect URL.
19453         * build-aux/announce-gen: Mention the mirror list.
19454         Suggested by Karl Berry.
19455
19456         nanosleep: improve port to mingw
19457         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
19458         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
19459         LIB_NANOSLEEP, but only when needed.
19460         * modules/select (Link): Document LIBSOCKET.
19461         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
19462         enough.
19463
19464         nanosleep: work around cygwin bug
19465         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
19466         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
19467         bug.
19468         (getnow): Delete, not needed.
19469         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
19470         LIB_CLOCK_GETTIME.
19471         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
19472         clock-time, gettime.
19473         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
19474         bug.
19475         * modules/nanosleep-tests: New test.
19476         * tests/test-nanosleep.c: New file.
19477
19478         sleep: work around cygwin bug
19479         * lib/sleep.c (rpl_sleep): Work around the bug.
19480         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
19481         (gl_PREREQ_SLEEP): Delete unused macro.
19482         * modules/sleep (Depends-on): Add verify.
19483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
19484         * modules/unistd (Makefile.am): Substitute witness.
19485         * lib/unistd.in.h (sleep): Update prototype.
19486         * doc/posix-functions/sleep.texi (sleep): Document the bug.
19487         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
19488         * modules/sleep-tests (Depends-on): Check for alarm.
19489
19490 2009-11-20  Jim Meyering  <meyering@redhat.com>
19491
19492         maint.mk: improve sc_prohibit_magic_number_exit
19493         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
19494         so it does not match uses like System.exit(1).
19495         Add comments showing how to correct all offenders.
19496
19497 2009-11-19  Eric Blake  <ebb9@byu.net>
19498
19499         xalloc-die-tests: add missing library
19500         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
19501
19502         test-xvasprintf: silence compiler warnings
19503         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
19504         empty string from gcc.
19505
19506 2009-11-19  Jim Meyering  <meyering@redhat.com>
19507
19508         xfreopen: new module, from coreutils
19509         * modules/xfreopen: New module.
19510         * lib/xfreopen.c: New file.
19511         * lib/xfreopen.h: New file.
19512         * MODULES.html.sh (File stream based Input/Output"): Add it.
19513
19514 2009-11-19  Eric Blake  <ebb9@byu.net>
19515
19516         manywarnings: depend on warnings
19517         * modules/manywarnings (Depends-on): Add warnings.
19518
19519         build: avoid compiler warnings
19520         * lib/select.c (rpl_select): Delete unused variable.
19521         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
19522
19523 2009-11-18  Eric Blake  <ebb9@byu.net>
19524
19525         tests: avoid false negative with --with-packager
19526         * tests/test-version-etc.sh: Discard packager information.
19527         * tests/test-argp-version-etc-1.sh: Likewise.
19528         Reported by Mike Frysinger.
19529
19530         utimens: fix regression on Solaris
19531         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
19532         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
19533         can only change fd timestamps via futimesat.  Instead, use an
19534         additional witness macro to avoid BSD bug.
19535         Reported by Jim Meyering.
19536
19537 2009-11-17  Eric Blake  <ebb9@byu.net>
19538
19539         usleep: use it to simplify tests
19540         * modules/stat-time-tests (Depends-on): Add usleep.
19541         (configure.ac): Drop usleep check.
19542         * modules/chown-tests (Depends-on, configure.ac): Likewise.
19543         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
19544         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
19545         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
19546         * modules/openat-tests (Depends-on, configure.ac): Likewise.
19547         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
19548         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
19549         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
19550         Likewise.
19551         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
19552         * tests/test-lchown.h (nap): Likewise.
19553         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
19554         * tests/test-stat-time.c (nap): Likewise.
19555         * tests/test-utimens-common.h (nap): Update comments.
19556
19557         usleep: new module
19558         * modules/usleep: New file.
19559         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
19560         * lib/usleep.c (usleep): Likewise.
19561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
19562         * modules/unistd (Makefile.am): Substitute witnesses.
19563         * lib/unistd.in.h (usleep): Add declaration.
19564         * doc/pastposix-functions/usleep.texi (usleep): Document this.
19565         * MODULES.html.sh (Date and time): Likewise.
19566         * modules/usleep-tests (Depends-on): New test.
19567         * tests/test-usleep.c: New file.
19568
19569         chown: work around OpenBSD bug
19570         * lib/chown.c (rpl_chown): Work around the bug.
19571         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
19572         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
19573         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
19574         * modules/chown (Depends-on): Add stdbool.
19575         * modules/lchown (Depends-on): Likewise.
19576         * doc/posix-functions/chown.texi (chown): Document the bug.
19577         * doc/posix-functions/lchown.texi (lchown): Likewise.
19578         * tests/test-lchown.h (test_chown): Relax test.
19579
19580         mkstemp: avoid conflict with C++ keyword template
19581         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
19582         * lib/mkostemp.c (mkostemp): Likewise.
19583         * lib/mkostemps.c (mkostemps): Likewise.
19584         * lib/mkstemp.c (mkstemp): Likewise.
19585         * lib/mkstemps.c (mkstemps): Likewise.
19586
19587         xalloc-die-tests: optimize
19588         * tests/test-xalloc-die.sh: Reduce number of processes.
19589
19590 2009-11-17  Simon Josefsson  <simon@josefsson.org>
19591
19592         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
19593         patch from ludo@gnu.org (Ludovic Courtès).
19594
19595 2009-11-17  Jim Meyering  <meyering@redhat.com>
19596
19597         version-etc: use proper license string
19598         * modules/version-etc (License): Use LGPL, not LGPLv3+.
19599         * modules/version-etc-fsf: Likewise.
19600
19601 2009-11-17  Simon Josefsson  <simon@josefsson.org>
19602
19603         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
19604         printed to stdout.  Deal with EOL differences.
19605
19606 2009-11-17  Eric Blake  <ebb9@byu.net>
19607
19608         unsetenv: work around Solaris bug
19609         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
19610         * lib/unsetenv.c (rpl_unsetenv): Work around it.
19611         Reported by Jim Meyering.
19612
19613         vasnprintf: avoid compiler warnings
19614         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
19615         variables.
19616         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
19617
19618 2009-11-17  Simon Josefsson  <simon@josefsson.org>
19619
19620         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
19621         settings since xalloc-die is no longer the self test,
19622         xalloc-die.sh is.
19623
19624 2009-11-17  Jim Meyering  <meyering@redhat.com>
19625
19626         test-xalloc-die.sh: make the code agree with the commit log
19627         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
19628         at the end, just in case you happen to have a test-xalloc-die
19629         program in some other PATH directory.
19630
19631         test-xalloc-die.sh: fix a portability bug
19632         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
19633         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
19634         Otherwise, argv[0] (as often seen in diagnostics) would be too
19635         system-dependent, sometimes with, and sometimes without the leading "./".
19636
19637         version-etc-fsf: relax license to LGPLv3+
19638         * modules/version-etc-fsf (License): Relax license.
19639
19640 2009-11-16  Eric Blake  <ebb9@byu.net>
19641
19642         xalloc-die-tests: avoid printing null pointer
19643         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
19644         shell script.
19645         * tests/test-xalloc-die.c (program_name): Declare.
19646         * tests/test-xalloc-die.sh (tmpfiles): New file.
19647
19648         setenv, unsetenv: work around various bugs
19649         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
19650         (setenv) [HAVE_SETENV]: Work around bugs.
19651         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
19652         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
19653         for bugs.
19654         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
19655         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
19656         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
19657         * modules/stdlib (Makefile.am): Update substitutions.
19658         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
19659         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
19660         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
19661         * modules/setenv-tests: New test.
19662         * modules/unsetenv-tests: Likewise.
19663         * tests/test-setenv.c: New file.
19664         * tests/test-unsetenv.c: Likewise.
19665
19666 2009-11-16  Jim Meyering  <meyering@redhat.com>
19667
19668         version-etc: relax license to LGPLv3+
19669         * modules/version-etc (License): Relax license.
19670
19671         better AC_REQUIRE expanded-before-required-warning avoidance
19672         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
19673         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
19674         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
19675         which is no longer needed.
19676
19677 2009-11-16  Eric Blake  <ebb9@byu.net>
19678
19679         test-freading: clean up temporary file
19680         * tests/test-freading.c (main): Remove file on success, and use
19681         ASSERT more liberally.
19682         Reported by Jim Meyering.
19683
19684 2009-11-16  Jim Meyering  <meyering@redhat.com>
19685
19686         avoid new AC_REQUIRE expanded-before-required warnings
19687         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
19688         merely using it.
19689         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
19690         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
19691
19692 2009-11-15  Simon Josefsson  <simon@josefsson.org>
19693
19694         * tests/test-xalloc-die.c: New file.
19695         * modules/xalloc-die-tests: New file.
19696         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
19697         XFAIL_TESTS so it can be appended by modules.
19698
19699 2009-11-15  Simon Josefsson  <simon@josefsson.org>
19700
19701         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
19702         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
19703
19704 2009-11-14  Eric Blake  <ebb9@byu.net>
19705
19706         fnmatch: avoid compiler warning
19707         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
19708         to silence compiler warning about mismatch signedness in ?:.
19709         Reported by Robert Millan.
19710
19711         intprops: add double-inclusion guard
19712         * lib/intprops.h: Allow idempotent includes.
19713         Suggested by Bruce Korb.
19714
19715         openat: detect Solaris fchownat bug
19716         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
19717         penalizing glibc chownat when only lchownat is broken.
19718         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
19719         trailing slash bugs.
19720         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
19721         * modules/openat-tests (Files): Include more files.
19722         (Depends-on): Add mgetgroups, sleep, stat-time.
19723         (configure.ac): Add additional checks.
19724         (Makefile.am): Build new test.
19725         * tests/test-fchownat.c: New file.
19726
19727         lchown: detect Solaris and FreeBSD bug
19728         * lib/lchown.c (rpl_lchown): Work around bug.
19729         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
19730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19731         * modules/unistd (Makefile.am): Populate it.
19732         * lib/unistd.in.h (lchown): Update declaration.
19733         * doc/posix-functions/lchown.texi (lchown): Document the bug.
19734         * modules/lchown-tests: New file.
19735         * tests/test-lchown.h (test_lchown): Likewise.
19736         * tests/test-lchown.c (main): Likewise.
19737
19738         chown: detect Solaris and FreeBSD bug
19739         * lib/chown.c (rpl_chown): Work around bug.
19740         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
19741         (gl_PREREQ_CHOWN): Delete.
19742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19743         * modules/unistd (Makefile.am): Populate it.
19744         * lib/unistd.in.h (chown): Update declaration.
19745         * lib/lchown.c (chown): Update client.
19746         * modules/lchown (Depends-on): Add lstat.
19747         * doc/posix-functions/chown.texi (chown): Document the bug.
19748         * doc/posix-functions/getgroups.texi (getgroups): Document
19749         getgroups pitfall.
19750         * modules/chown-tests: New file.
19751         * tests/test-chown.h (test_chown): Likewise.
19752         * tests/test-chown.c (main): Likewise.
19753
19754 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
19755
19756         gnulib-tool: correctly detect absence of m4 directories
19757         * gnulib-tool: Avoid extra newline on data passed to wc -l.
19758
19759 2009-11-14  Jim Meyering  <meyering@redhat.com>
19760
19761         maint.mk: Prohibit inclusion of "xalloc.h" without use.
19762         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
19763
19764 2009-11-14  John W. Eaton  <jwe@gnu.org>
19765
19766         strftime.h: wrap funtion declaration in extern "C" block
19767         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
19768
19769 2009-11-13  Eric Blake  <ebb9@byu.net>
19770
19771         getgroups: avoid compiler warning
19772         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
19773
19774         getgroups: work around FreeBSD bug
19775         * lib/getgroups.c (rpl_getgroups): Work around the bug.
19776         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
19777         * doc/posix-functions/getgroups.texi (getgroups): Document it.
19778         * tests/test-getgroups.c (main): Fix buffer overrun.
19779
19780         getgroups: avoid compilation failure
19781         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
19782         * modules/getgroups (Depends-on): Add stdint.
19783
19784 2009-11-13  Jim Meyering  <meyering@redhat.com>
19785
19786         test-getgroups: avoid compilation failure
19787         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
19788
19789 2009-11-13  Eric Blake  <ebb9@byu.net>
19790
19791         mgetgroups: new module, taken from coreutils
19792         * modules/mgetgroups: New file.
19793         * lib/mgetgroups.h: Likewise.
19794         * lib/mgetgroups.c (mgetgroups): Likewise.
19795         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
19796         * MODULES.html.sh (Users and groups): Mention it.
19797
19798         getgroups: don't expose GETGROUPS_T to user
19799         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
19800         an element at a time if GETGROUPS_T is wrong size.
19801         * lib/getugroups.h (getugroups): Change signature.
19802         * lib/unistd.in.h (getgroups): Likewise.
19803         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
19804         signature needs fixing.
19805         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
19806         AC_TYPE_GETGROUPS.
19807         * modules/group-member (Depends-on): Add getgroups.
19808         * lib/group-member.c (group_info, get_group_info): Use gid_t.
19809         (group_member): Rely on getgroups replacement.
19810         * lib/getugroups.c (getugroups): Use gid_t.
19811         * tests/test-getgroups.c (main): Likewise.
19812         * NEWS: Mention the signature change.
19813         * doc/posix-functions/getgroups.texi (getgroups): Mention the
19814         problem with signature.
19815         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
19816         GETGROUPS_T is still useful for setgroups.
19817
19818         getgroups, getugroups: provide stubs for mingw
19819         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
19820         * lib/getugroups.c (getugroups): Likewise.
19821         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
19822         function.  Modernize replacement scheme.
19823         (gl_PREREQ_GETGROUPS): Delete.
19824         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
19825         * modules/getgroups (configure.ac): Declare witness.
19826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
19827         * modules/unistd (Depends-on): Substitute witness.
19828         * lib/unistd.in.h (getgroups): Declare replacement.
19829
19830         getgroups: avoid calling exit
19831         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
19832         drop xalloc.
19833         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
19834         dependencies.
19835         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
19836         exiting, in the rare case of malloc failure.
19837
19838         getgroups: fix logic error
19839         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
19840         has more than 20 groups.
19841         * modules/getgroups-tests: New test.
19842         * tests/test-getgroups.c: New file.
19843
19844 2009-11-13  Simon Josefsson  <simon@josefsson.org>
19845
19846         * tests/test-base64.c: Improve.
19847
19848 2009-11-13  Simon Josefsson  <simon@josefsson.org>
19849
19850         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
19851         Blake <ebb9@byu.net>.
19852
19853 2009-11-13  Simon Josefsson  <simon@josefsson.org>
19854
19855         * tests/test-xvasprintf.c: Add %s%s related checks.
19856
19857 2009-11-12  Eric Blake  <ebb9@byu.net>
19858
19859         version-etc: match standards.texi style
19860         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
19861         and use <> only for URLs.
19862
19863 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
19864
19865         fts: do not fail on a submount during traversal
19866         * lib/fts.c (fts_build): Read the stat info again after opening
19867         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
19868         Original report at http://bugzilla.redhat.com/501848.
19869
19870 2009-11-12  Jim Meyering  <meyering@redhat.com>
19871
19872         bootstrap: sync from coreutils
19873         * build-aux/bootstrap (bootstrap_epilogue): New function.
19874         Use git_modules_config in one more place.  This make bootstrap's
19875         --gnulib-srcdir option more useful for testing.
19876
19877         bootstrap: generalize autoheader check
19878         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
19879         AC_CONFIG_HEADERS.
19880
19881 2009-11-11  Eric Blake  <ebb9@byu.net>
19882
19883         mkfifoat: use new modules for Solaris and BSD bugs
19884         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
19885         * lib/mkfifoat.c (mknodat): Split...
19886         * lib/mknodat.c (mknodat): ...into new file.
19887         * modules/mkfifoat (Files): Ship new file.
19888         (Depends-on): Add mkfifo, mknod.
19889         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
19890         (Depends-on): Add symlink.
19891         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
19892         redundant with test_mkfifo.h.
19893         (do_mkfifoat, do_mknodat): New helpers.
19894
19895         mknod: new module
19896         * modules/mknod: New file.
19897         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
19898         * lib/mknod.c (mknod): Likewise.
19899         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
19900         defaults.
19901         * modules/sys_stat (Makefile.am): Substitute them.
19902         * lib/sys_stat.in.h (mknod): Declare replacement.
19903         * MODULES.html.sh (Support for systems lacking POSIX:2008):
19904         Document it.
19905         * doc/posix-functions/mknod.texi (mknod): Likewise.
19906         * modules/mknod-tests: New test.
19907         * tests/test-mknod.c: Likewise.
19908
19909         mkfifo: new module
19910         * modules/mkfifo: New file.
19911         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19912         * lib/mkfifo.c (mkfifo): Likewise.
19913         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
19914         defaults.
19915         * modules/sys_stat (Makefile.am): Substitute them.
19916         * lib/sys_stat.in.h (mkfifo): Declare replacement.
19917         * MODULES.html.sh (Support for systems lacking POSIX:2008):
19918         Document it.
19919         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
19920         * modules/mkfifo-tests: New test.
19921         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
19922         from test-mkfifoat.c.
19923         * tests/test-mkfifo.c: New file.
19924
19925         readlink: detect FreeBSD bug
19926         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
19927         slash on symlink.
19928         * doc/posix-functions/readlink.texi (readlink): Document the bug.
19929         * tests/test-readlink.h (test_readlink): Enhance test.
19930
19931         symlink: detect FreeBSD bug
19932         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
19933         slash on symlink.
19934         * doc/posix-functions/symlink.texi (symlink): Document the bug.
19935         * tests/test-symlink.h (test_symlink): Enhance test.
19936
19937 2009-11-10  Eric Blake  <ebb9@byu.net>
19938
19939         link: detect FreeBSD bug
19940         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
19941         symlink.
19942         * doc/posix-functions/link.texi (link): Document the bug.
19943         * tests/test-link.h (test_link): Enhance test.
19944         * tests/test-linkat.c (main): Update caller.
19945
19946         unlink, remove: detect FreeBSD bug
19947         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
19948         slash on symlink.
19949         * doc/posix-functions/unlink.texi (unlink): Document the bug.
19950         * doc/posix-functions/remove.texi (remove): Likewise.
19951         * tests/test-unlink.h (test_unlink): Enhance test.
19952         * tests/test-remove.c (main): Likewise.
19953
19954 2009-11-09  Eric Blake  <ebb9@byu.net>
19955
19956         rename: detect FreeBSD bug
19957         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
19958         slash on symlink.
19959         * modules/renameat-tests (Depends-on): Add filenamecat.
19960         * tests/test-rename.h (test_rename): Allow one more errno.
19961         * tests/test-renameat.c (main): Likewise.
19962         * doc/posix-functions/rename.texi (rename): Document the bug.
19963
19964         open: detect FreeBSD bug
19965         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
19966         symlink.
19967         * doc/posix-functions/open.texi (open): Document the bug.
19968         * doc/posix-functions/utimes.texi (utimes): Likewise.
19969         * tests/test-open.h (test_open): Add parameters, and test symlink
19970         handling.
19971         * tests/test-open.c (main): Adjust caller.
19972         * tests/test-fcntl-safer.c (main): Likewise.
19973         * modules/open-tests (Depends-on): Add stdbool, symlink.
19974         * modules/fcntl-safer-tests (Depends-on): Likewise.
19975         * tests/test-openat.c (main): Add test-open tests.
19976
19977         stat: detect FreeBSD bug
19978         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
19979         symlink.
19980         * doc/posix-functions/stat.texi (stat): Document the bug.
19981         * tests/test-stat.h (test_stat_func): Add argument.
19982         * tests/test-stat.c (main): Adjust caller.
19983         * tests/test-fstatat.c (main): Likewise.
19984         * modules/stat-tests (Depends-on): Add stdbool, symlink.
19985         Reported by Jim Meyering.
19986
19987 2009-11-09  James Youngman  <jay@gnu.org>
19988
19989         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
19990         * lib/strftime.c: Correct placement of #include "ignore-value.h".
19991
19992 2009-11-08  Jim Meyering  <meyering@redhat.com>
19993
19994         utimens: remove invalid futimesat call
19995         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
19996         It used the file descriptor of the target file as the DIR_FD
19997         parameter and NULL as the file name.  That caused failure with
19998         errno == EFAULT on FreeBSD-8.0-rc2
19999
20000 2009-11-07  Eric Blake  <ebb9@byu.net>
20001
20002         fflush, freadseek: use fseeko, not fseek
20003         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20004         (clear_ungetc_buffer): Avoid potential problems on large files.
20005         * lib/freadseek.c (freadseek): Likewise.
20006         * modules/freadseek (Depends-on): Add fseeko.
20007         * modules/fseek (configure.ac): Set a witness.
20008         * tests/test-fflush.c (main): Use fseeko.
20009         * tests/test-fpurge.c (fseek): Disable link warning.
20010         * tests/test-freadable.c (fseek): Likewise.
20011         * tests/test-freading.c (fseek): Likewise.
20012         * tests/test-fseeko.c (fseek): Likewise.
20013         * tests/test-ftell.c (fseek): Likewise.
20014         * tests/test-ftello.c (fseek): Likewise.
20015         * tests/test-fwritable.c (fseek): Likewise.
20016         * tests/test-fwriting.c (fseek): Likewise.
20017
20018 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20019
20020         * modules/memchr (Depends-on): Drop getpagesize dependency.
20021
20022 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20023
20024         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
20025         Reported by Ludovic Courtès.
20026         * build-aux/pmccabe2html: Improve example usage.
20027         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
20028
20029 2009-11-06  Jim Meyering  <meyering@redhat.com>
20030
20031         do-release-commit-and-tag: New module.
20032         Automate the release-commit and tag process.
20033         * build-aux/do-release-commit-and-tag: New script, from coreutils.
20034         * modules/do-release-commit-and-tag: New file.
20035         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20036
20037 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20038
20039         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
20040         because test-select.c uses inet_pton.
20041
20042 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20043
20044         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
20045         GETADDRINFO_LIB.  Bump serial number.
20046         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
20047         Suggested by Eric Blake <ebb9@byu.net>.
20048
20049 2009-11-05  Eric Blake  <ebb9@byu.net>
20050
20051         strtod: detect darwin bug
20052         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
20053         Reported by Leo Davis.
20054
20055         freopen-safer: new module
20056         * modules/freopen-safer: New module.
20057         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
20058         * lib/freopen-safer.c (freopen_safer): New file.
20059         * lib/stdio-safer.h (freopen_safer): New declaration.
20060         * lib/stdio--.h (freopen): New override.
20061         * MODULES.html.sh (File stream based Input/Output): Mention it.
20062         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
20063         freopen-safer module.
20064         * doc/posix-functions/stderr.texi (stderr): Likewise.
20065         * doc/posix-functions/stdin.texi (stdin): Likewise.
20066         * doc/posix-functions/stdout.texi (stdout): Likewise.
20067         * modules/freopen-safer-tests: New test.
20068         * tests/test-reopen-safer.c: New file.
20069
20070 2009-11-05  Jim Meyering  <meyering@redhat.com>
20071
20072         maint.mk: Prohibit inclusion of "close-stream.h" without use.
20073         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
20074
20075 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20076
20077         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
20078
20079 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20080
20081         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
20082
20083 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20084
20085         Fix link error.
20086         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
20087         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20088
20089 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20090
20091         * tests/test-func.c: Also test value of __func__.
20092
20093 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20094
20095         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
20096         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
20097
20098 2009-11-05  Bruno Haible  <bruno@clisp.org>
20099
20100         Fix link error.
20101         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
20102         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20103         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
20104
20105 2009-11-05  Bruno Haible  <bruno@clisp.org>
20106
20107         Tests for module 'inet_pton'.
20108         * modules/inet_pton-tests: New file.
20109         * tests/test-inet_pton.c: New file.
20110
20111 2009-11-05  Bruno Haible  <bruno@clisp.org>
20112
20113         Tests for module 'inet_ntop'.
20114         * modules/inet_ntop-tests: New file.
20115         * tests/test-inet_ntop.c: New file.
20116
20117 2009-11-04  Eric Blake  <ebb9@byu.net>
20118
20119         stdlib-safer: wrap all mkstemp variants
20120         * modules/mkostemp (configure.ac): Set witness.
20121         * modules/mkostemps (configure.ac): Likewise.
20122         * modules/mkstemps (configure.ac): Likewise.
20123         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
20124         (mkstemps_safer): Wrap more functions.
20125         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
20126         wrapping.
20127         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
20128         (mkstemps_safer): Implement the wrappers.
20129
20130         mkstemps, mkostemps: new modules
20131         * modules/mkostemps: New module.
20132         * modules/mkstemps: Likewise.
20133         * lib/mkostemps.c (mkostemps): New file.
20134         * lib/mkstemps.c (mkstemps): Likewise.
20135         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
20136         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
20137         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
20138         * modules/stdlib (Makefile.am): Substitute them.
20139         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
20140         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
20141         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20142         * doc/gnulib.texi (Glibc stdlib.h): Include them.
20143         * MODULES.html.sh (File system functions): Mention them.
20144
20145         tempname: resync from glibc
20146         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
20147         same values for __GT_FILE as glibc.  Abort even when assertions
20148         are disabled.
20149         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
20150         match its value otherwise.  Allow idempotent inclusion.
20151         * lib/mkdtemp.c (mkdtemp): Adjust caller.
20152         * lib/mkostemp.c (mkostemp): Likewise.
20153         * lib/mkstemp.c (mkstemp): Likewise.
20154         * lib/tmpfile.c (tmpfile): Likewise.
20155         * NEWS: Document this.
20156
20157         utimens: fix use of futimens on older Linux
20158         * lib/utimens.c (fdutimens): Use updated, rather than original,
20159         timespec to avoid bug in older Linux kernel.
20160         Reported by Simon Josefsson.
20161
20162 2009-11-04  Bruno Haible  <bruno@clisp.org>
20163
20164         Make num_processors more flexible and consistent.
20165         * lib/nproc.h (enum nproc_query): New type.
20166         (num_processors): Add a 'query' argument.
20167         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
20168         (num_processors): Add a 'query' argument. Test the value of the
20169         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
20170         mingw, count the number of CPUs available for the current process.
20171         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
20172         Check for sched_getaffinity and sched_getaffinity_np.
20173         * modules/nproc (Depends-on): Add c-ctype, extensions.
20174         * NEWS: Mention the change.
20175
20176 2009-11-03  Bruno Haible  <bruno@clisp.org>
20177
20178         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
20179
20180 2009-11-03  Jim Meyering  <meyering@redhat.com>
20181
20182         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
20183         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
20184         if it is defined.
20185
20186 2009-11-02  Eric Blake  <ebb9@byu.net>
20187
20188         mktime, timegm: share common declaration
20189         * lib/mktime-internal.h: New file.
20190         * lib/mktime.c: Use it rather than open-coding a declaration.
20191         * lib/timegm.c: Likewise.
20192         * modules/mktime (Files): Ship it.
20193         * modules/timegm (Files): Likewise.
20194         Suggested by Bruno Haible.
20195
20196         test-update-copyright: update test to match script changes
20197         * tests/test-update-copyright.sh: Avoid hard-coding perl
20198         location.  Don't update *.bak created by earlier runs.
20199
20200 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
20201             Simon Josefsson  <simon@josefsson.org>
20202             Bruno Haible  <bruno@clisp.org>
20203
20204         Fix link error on Solaris 8.
20205         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
20206         also in libnsl. Define also INET_PTON_LIB.
20207         * modules/inet_pton (Link): New section.
20208
20209 2009-11-02  Simon Josefsson  <simon@josefsson.org>
20210             Bruno Haible  <bruno@clisp.org>
20211
20212         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
20213         * modules/inet_ntop (Link): New section.
20214         Reported by Boyan Kasarov <bkasarov@gmail.com>.
20215
20216 2009-11-02  Eric Blake  <ebb9@byu.net>
20217
20218         maint: avoid compiler warnings in m4 macros
20219         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
20220         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
20221
20222 2009-11-02  Simon Josefsson  <simon@josefsson.org>
20223
20224         * m4/pmccabe2html.m4: Remove file.
20225         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
20226         function.  Change maintainer.
20227         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
20228         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
20229         Courtès).
20230
20231 2009-10-31  Eric Blake  <ebb9@byu.net>
20232
20233         fseeko: fix m4 regression
20234         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
20235         regression from 2009-10-27.
20236         Reported by Ralf Wildenhues.
20237
20238 2009-10-31  Jim Meyering  <meyering@redhat.com>
20239
20240         inttostr: aesthetics and improved (compile-time) safety
20241         Define inttype_is_signed rather than inttype_is_unsigned,
20242         since the sole use is via "#if inttype_is_signed".
20243         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
20244         inttype_is_unsigned.
20245         * lib/offtostr.c (inttype_is_signed): Likewise.
20246         * lib/uinttostr.c (inttype_is_signed): Likewise.
20247         * lib/umaxtostr.c (inttype_is_signed): Likewise.
20248         * lib/inttostr.c (inttostr): Use verify to cross-check the
20249         inttype_is_signed value and the signedness of the actual type.
20250         * modules/inttostr (Depends-on): Add verify.
20251
20252 2009-10-30  Eric Blake  <ebb9@byu.net>
20253
20254         build: avoid compiler warnings
20255         * lib/fchmodat.c (lchmod): Mark unused variables.
20256         * lib/getopt.c (_getopt_initialize): Likewise.
20257         * lib/mktime.c (__mktime_internal): Provide prototype.
20258         * lib/inttostr.c (inttostr): Avoid compiler warning even with
20259         older gcc that do not understand #pragma GCC diagnostic.
20260         * lib/uinttostr.c (inttype_is_unsigned): Define.
20261         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
20262
20263 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
20264
20265         stat: fix compilation on AIX
20266         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
20267         only see struct stat64.
20268
20269 2009-10-30  Eric Blake  <ebb9@byu.net>
20270
20271         exclude: make more robust
20272         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
20273         rather than masking a coding bug.
20274         Suggested by Bruno Haible.
20275
20276 2009-10-30  Jim Meyering  <meyering@redhat.com>
20277
20278         perl scripts: remove #!/usr/bin/perl in favor of more portable...
20279         Rather than putting #!/usr/bin/perl on the first line,
20280         start with a variant of what's recommended by "man perlrun" that
20281         invokes the first "perl" program from your shell's search path.
20282         * build-aux/gitlog-to-changelog: Replace #!... as above.
20283         Add a "Local Variables" perl mode setting.
20284         Prompted by a patch from Ludovic Courtès.
20285         Improved by Eric Blake.
20286         * build-aux/useless-if-before-free: Likewise.
20287         * build-aux/announce-gen: Likewise.
20288         * build-aux/update-copyright: Likewise.
20289
20290 2009-10-29  Eric Blake  <ebb9@byu.net>
20291
20292         filenamecat-lgpl: adjust clients
20293         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
20294         filenamecat.
20295         * modules/renameat (Depends-on): Likewise.
20296
20297         filenamecat: split into filenamecat-lgpl
20298         * modules/filenamecat-lgpl: New module.
20299         * modules/filenamecat (Files): Move library-safe files into
20300         filenamecat-lgpl.
20301         (Depends-on): Add filenamecat-lgpl.
20302         (configure.ac): Declare witness.
20303         * lib/filenamecat.h (file_name_concat): Only declare when using
20304         GPL module.
20305         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
20306         Move...
20307         * lib/filenamecat-lgpl.c: ...into new file.
20308         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
20309         (gl_FILE_NAME_CONCAT): Use it.
20310         * MODULES.html.sh (File system functions): Mention new module.
20311
20312         argp: avoid memory leak
20313         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
20314         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
20315         base_name, since the latter malloc()s and can call exit().
20316         Leak introduced 2006-07-03.
20317
20318         dirname-lgpl: adjust clients that don't need full dirname
20319         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
20320         * modules/filenamecat (Depends-on): Likewise.
20321         * modules/linkat (Depends-on): Likewise.
20322         * modules/mkancesdirs (Depends-on): Likewise.
20323         * modules/mkdir (Depends-on): Likewise.
20324         * modules/openat (Depends-on): Likewise.
20325         * modules/savewd (Depends-on): Likewise.
20326         * modules/rename (Depends-on): Likewise.
20327         (License): Relax license.
20328         * modules/mkdir-tests (Depends-on): Drop progname.
20329         (Makefile.am): Delete unneeded LDADD.
20330         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
20331
20332         dirname: split into dirname-lgpl
20333         * modules/dirname-lgpl: New module.
20334         * modules/dirname (Files): Move library-safe files into
20335         dirname-lgpl.
20336         (Depends-on): Add dirname-lgpl.
20337         (configure.ac): Declare witness.
20338         * modules/double-slash-root (License): Relax license.
20339         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
20340         module.
20341         * lib/dirname.c (dir_len, mdir_name): Move...
20342         * lib/dirname-lgpl.c: ...into new file.
20343         * lib/basename.c (last_component, base_len): Move...
20344         * lib/basename-lgpl.c: ...into new file.
20345         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
20346         (gl_DIRNAME): Use it.
20347         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
20348         Mention new module.
20349         * modules/dirname-tests (Depends-on): Add progname.
20350         * tests/test-dirname.c (program_name): Delete.
20351
20352         mkdir: make safe for libraries
20353         * modules/mkdir (Depends-on): Drop xalloc.
20354         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
20355         exit.
20356
20357         tests: avoid some compiler warnings
20358         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
20359         literals.
20360         * tests/test-memchr.c (main): Avoid type mismatch.
20361         * tests/test-arpa_inet.c (main): Avoid unused parameters.
20362         * tests/test-base64.c (main): Likewise.
20363         * tests/test-getdelim.c (main): Likewise.
20364         * tests/test-gethostname.c (main): Likewise.
20365         * tests/test-getline.c (main): Likewise.
20366         * tests/test-netinet_in.c (main): Likewise.
20367         * tests/test-select.c (open_server_socket, main): Likewise.
20368         * tests/test-select-stdin.c (main): Likewise.
20369         * tests/test-sockets.c (main): Likewise.
20370         * tests/test-strsignal.c (main): Likewise.
20371         * tests/test-sys_select.c (main): Likewise.
20372         * tests/test-sys_socket.c (main): Likewise.
20373         * tests/test-u64.c (main): Likewise.
20374         * tests/test-xfprintf-posix.c (main): Likewise.
20375         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
20376
20377         sockets: avoid compiler warning
20378         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
20379
20380         maint: detect usage(1) and other suspicious exits
20381         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
20382
20383 2009-10-29  Jim Meyering  <meyering@redhat.com>
20384
20385         timespec: long-to-int truncation could make timespec_cmp malfunction
20386         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
20387         a multiple of 2^32 nanoseconds as no difference.
20388
20389 2009-10-28  Jim Meyering  <meyering@redhat.com>
20390
20391         fprintftime: wrap macro code argument in "do {...} while(0)"
20392         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
20393         cpy macro must be a statement that can be followed by a semicolon.
20394         Now that the else clause contains a comment and is hence longer
20395         than one line, I require curly braces.  That in turn requires
20396         that we wrap this code block in the standard do...while(0).
20397
20398         fprintftime: remove stray semicolon from previous change
20399         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
20400
20401         fprintftime: avoid a warning about ignored fwrite return value
20402         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
20403         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
20404         that is unsafe.
20405         * modules/fprintftime (Depends-on): Add ignore-value.
20406
20407         exclude: avoid an unwarranted warning
20408         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
20409
20410 2009-10-27  Eric Blake  <ebb9@byu.net>
20411
20412         fseek: avoid compilation failure when fflush is replaced
20413         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
20414         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
20415         module is in use.
20416         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
20417         module is not in use; since REPLACE_FSEEK worked otherwise.
20418         (GNULIB_FTELLO): Likewise for ftell.
20419         Reported by Ian Beckwith and others.
20420
20421 2009-10-27  Bruno Haible  <bruno@clisp.org>
20422
20423         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
20424         Reported by Jim Meyering.
20425
20426 2009-10-27  Jim Meyering  <jim@meyering.net>
20427             Bruno Haible  <bruno@clisp.org>
20428
20429         Avoid warning despite dropping the return value of fwrite.
20430         * lib/unicodeio.c: Include ignore-value.h.
20431         (fwrite_success_callback): Explicitly ignore fwrite's return value.
20432         * modules/unicodeio (Depends-on): Add ignore-value.
20433
20434 2009-10-26  Eric Blake  <ebb9@byu.net>
20435
20436         areadlinkat: fix fallback path
20437         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
20438         pointer and zero.
20439
20440 2009-10-22  Pádraig Brady  <P@draigBrady.com>
20441
20442         Use a better IO block size for modern systems
20443         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
20444         * lib/md2.c: Likewise.
20445         * lib/md4.c: Likewise.
20446         * lib/md5.c: Likewise.
20447         * lib/sha1.c: Likewise.
20448         * lib/sha256.c: Likewise.
20449         * lib/sha512.c: Likewise.
20450
20451 2009-10-22  Eric Blake  <ebb9@byu.net>
20452
20453         tests: avoid several compiler warnings
20454         * tests/test-getcwd.c (main): Avoid buffer underflow.
20455         * tests/test-getdate.c (main): String literals are not safe with
20456         putenv, so use setenv.  Declare unused argument.
20457         * modules/getdate-tests (Depends-on): Add setenv.
20458         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
20459         problems with string literals in char *.
20460         * tests/test-hash.c (main): Avoid shadowing declaration.
20461         (insert_new): Treat string literals as char const *.
20462         * tests/test-getopt.h (test_getopt): Likewise.
20463         (getopt_loop): Alter types to minimize casting elsewhere.
20464         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
20465         (test_getopt_long_posix): Likewise.
20466         (do_getopt_long): Add wrapper to minimize casting.
20467         * tests/test-atexit.c (clear_temp_file): Use void.
20468         * tests/test-areadlink-with-size.c (main): Declare unused
20469         arguments.
20470         * tests/test-areadlink.c (main): Likewise.
20471         * tests/test-areadlinkat-with-size.c (main): Likewise.
20472         * tests/test-areadlinkat.c (main): Likewise.
20473         * tests/test-canonicalize-lgpl.c (main): Likewise.
20474         * tests/test-canonicalize.c (main): Likewise.
20475         * tests/test-dirent-safer.c (main): Likewise.
20476         * tests/test-dirname.c (main): Likewise.
20477         * tests/test-dup2.c (main): Likewise.
20478         * tests/test-fchdir.c (main): Likewise.
20479         * tests/test-fcntl-h.c (main): Likewise.
20480         * tests/test-fcntl-safer.c (main): Likewise.
20481         * tests/test-fdopendir.c (main): Likewise.
20482         * tests/test-fdutimensat.c (main): Likewise.
20483         * tests/test-fflush.c (main): Likewise.
20484         * tests/test-filenamecat.c (main): Likewise.
20485         * tests/test-filevercmp.c (main): Likewise.
20486         * tests/test-fopen-safer.c (main): Likewise.
20487         * tests/test-fopen.c (main): Likewise.
20488         * tests/test-fpending.c (main): Likewise.
20489         * tests/test-fpurge.c (main): Likewise.
20490         * tests/test-freading.c (main): Likewise.
20491         * tests/test-fstatat.c (main): Likewise.
20492         * tests/test-fsync.c (main): Likewise.
20493         * tests/test-futimens.c (main): Likewise.
20494         * tests/test-getndelim2.c (main): Likewise.
20495         * tests/test-gettimeofday.c (main): Likewise.
20496         * tests/test-getopt.c (main): Likewise.
20497         * tests/test-i-ring.c (main): Likewise.
20498         * tests/test-inttypes.c (main): Likewise.
20499         * tests/test-link.c (main): Likewise.
20500         * tests/test-lstat.c (main): Likewise.
20501         * tests/test-math.c (main): Likewise.
20502         * tests/test-md5.c (main): Likewise.
20503         * tests/test-memchr2.c (main): Likewise.
20504         * tests/test-memrchr.c (main): Likewise.
20505         * tests/test-mkdir.c (main): Likewise.
20506         * tests/test-mkdirat.c (main): Likewise.
20507         * tests/test-mkfifoat.c (main): Likewise.
20508         * tests/test-open.c (main): Likewise.
20509         * tests/test-openat-safer.c (main): Likewise.
20510         * tests/test-openat.c (main): Likewise.
20511         * tests/test-quotearg.c (main): Likewise.
20512         * tests/test-rawmemchr.c (main): Likewise.
20513         * tests/test-readlink.c (main): Likewise.
20514         * tests/test-remove.c (main): Likewise.
20515         * tests/test-rename.c (main): Likewise.
20516         * tests/test-renameat.c (main): Likewise.
20517         * tests/test-rmdir.c (main): Likewise.
20518         * tests/test-sha1.c (main): Likewise.
20519         * tests/test-signal.c (main): Likewise.
20520         * tests/test-sigaction.c (main): Likewise.
20521         * tests/test-stat.c (main): Likewise.
20522         * tests/test-stat-time.c (main): Likewise.
20523         * tests/test-stddef.c (main): Likewise.
20524         * tests/test-stdint.c (main): Likewise.
20525         * tests/test-stdio.c (main): Likewise.
20526         * tests/test-stdlib.c (main): Likewise.
20527         * tests/test-strchrnul.c (main): Likewise.
20528         * tests/test-strerror.c (main): Likewise.
20529         * tests/test-string.c (main): Likewise.
20530         * tests/test-strtod.c (main): Likewise.
20531         * tests/test-strverscmp.c (main): Likewise.
20532         * tests/test-symlink.c (main): Likewise.
20533         * tests/test-symlinkat.c (main): Likewise.
20534         * tests/test-sys_stat.c (main): Likewise.
20535         * tests/test-sys_time.c (main): Likewise.
20536         * tests/test-time.c (main): Likewise.
20537         * tests/test-unistd.c (main): Likewise.
20538         * tests/test-unlink.c (main): Likewise.
20539         * tests/test-unlinkat.c (main): Likewise.
20540         * tests/test-utimens.c (main): Likewise.
20541         * tests/test-utimensat.c (main): Likewise.
20542         * tests/test-version-etc.c (main): Likewise.
20543         * tests/test-wchar.c (main): Likewise.
20544         * tests/test-wctype.c (main): Likewise.
20545         * tests/test-xprintf-posix.c (main): Likewise.
20546         * tests/test-posixtm.c (main): Likewise.
20547         (STREQ): Delete unused macro.
20548         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
20549         shadowed variables.
20550         * tests/test-memchr.c (main): Likewise.
20551
20552 2009-10-21  Eric Blake  <ebb9@byu.net>
20553
20554         areadlinkat: avoid failure on older glibc
20555         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
20556         rather than mis-comparing 0 against FUNC_RESULT of char*.
20557
20558 2009-10-21  Bruno Haible  <bruno@clisp.org>
20559
20560         * modules/stpncpy (License): Relicense under LGPLv2+.
20561         Reported by David Lutterkort <lutter@redhat.com>.
20562
20563 2009-10-20  Eric Blake  <ebb9@byu.net>
20564
20565         utimensat: work around Solaris 9 bug
20566         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
20567         has trailing slash bugs.
20568         * tests/test-lutimens.h (test_lutimens): Enhance test.
20569         * tests/test-utimens.h (test_utimens): Likewise.
20570         * doc/posix-functions/utime.texi (utime): Enhance documentation.
20571         * doc/posix-functions/utimes.texi (utimes): Likewise.
20572         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
20573         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
20574         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
20575         * doc/posix-functions/futimens.texi (futimens): Likewise.
20576
20577         fdutimensat: new module
20578         * modules/fdutimensat: New file.
20579         * lib/fdutimensat.c (fdutimensat): Likewise.
20580         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
20581         * MODULES.html.sh (File system functions): Mention module.
20582         * modules/fdutimensat-tests: New test.
20583         * tests/test-fdutimensat.c: Likewise.
20584
20585         doc: regenerate INSTALL
20586         * doc/INSTALL: Reflect recent autoconf update.
20587         * doc/INSTALL.ISO: Likewise.
20588         * doc/INSTALL.UTF-8: Likewise.
20589
20590 2009-10-20  Pádraig Brady  <P@draigBrady.com>
20591
20592         acl: warn if ACL support is not detected
20593         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
20594
20595 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
20596
20597         * lib/nproc.h: Add extern "C" block for C++.
20598
20599 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
20600             Bruno Haible  <bruno@clisp.org>
20601
20602         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
20603         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
20604         * doc/posix-functions/isalpha.texi: Likewise.
20605         * doc/posix-functions/isblank.texi: Likewise.
20606         * doc/posix-functions/iscntrl.texi: Likewise.
20607         * doc/posix-functions/isdigit.texi: Likewise.
20608         * doc/posix-functions/isgraph.texi: Likewise.
20609         * doc/posix-functions/islower.texi: Likewise.
20610         * doc/posix-functions/isprint.texi: Likewise.
20611         * doc/posix-functions/ispunct.texi: Likewise.
20612         * doc/posix-functions/isspace.texi: Likewise.
20613         * doc/posix-functions/isupper.texi: Likewise.
20614         * doc/posix-functions/isxdigit.texi: Likewise.
20615
20616 2009-10-18  Bruno Haible  <bruno@clisp.org>
20617
20618         Tests for module 'isblank'.
20619         * modules/isblank-tests: New file.
20620         * tests/test-isblank.c: New file.
20621
20622         New module 'isblank'.
20623         * lib/isblank.c: New file.
20624         * m4/isblank.m4: New file.
20625         * modules/isblank: New file.
20626         * doc/posix-functions/isblank.texi: Mention the new module.
20627
20628 2009-10-18  Bruno Haible  <bruno@clisp.org>
20629
20630         New module 'ctype'.
20631         * lib/ctype.in.h: New file.
20632         * m4/ctype.m4: New file.
20633         * modules/ctype: New file.
20634         * doc/posix-headers/ctype.texi: Mention the new module.
20635
20636 2009-10-18  Jim Meyering  <meyering@redhat.com>
20637
20638         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
20639         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
20640         right after its initialization, rather than farther down.
20641         Keeping these in close proximity makes it easier to ensure
20642         that each such variable is initialized.  E.g.,
20643
20644             LIB_CLOCK_GETTIME=
20645             AC_SUBST([LIB_CLOCK_GETTIME])
20646
20647         This change also increments these serial numbers.
20648         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
20649         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
20650         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20651
20652 2009-10-18  Bruno Haible  <bruno@clisp.org>
20653
20654         Don't let environment variables perturb build.
20655         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
20656         (gl_PREREQ_GETHRXTIME): ... not here.
20657
20658 2009-10-18  Bruno Haible  <bruno@clisp.org>
20659
20660         Avoid symlink attack in localcharset module.
20661         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
20662         (O_NOFOLLOW): Define fallback.
20663         (get_charset_aliases): Don't open the file if it is a symbolic link.
20664         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
20665         gl_FCNTL_H.
20666         (gl_FCNTL_H): Require it.
20667         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
20668         * modules/localcharset (Files): Add m4/fcntl_h.m4.
20669         Reported by Fergal Glynn <fglynn@veracode.com>.
20670
20671 2009-10-18  Bruno Haible  <bruno@clisp.org>
20672
20673         Implement nproc for mingw.
20674         * lib/nproc.c: Include <windows.h>
20675         (num_processors): On native Windows platforms, try GetSystemInfo.
20676
20677 2009-10-18  Bruno Haible  <bruno@clisp.org>
20678
20679         Implement nproc for IRIX.
20680         * lib/nproc.c: Include <sys/sysmp.h>.
20681         (num_processors): On IRIX systems, try sysmp.
20682         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
20683
20684 2009-10-18  Bruno Haible  <bruno@clisp.org>
20685
20686         Implement nproc for HP-UX.
20687         * lib/nproc.c: Include <sys/pstat.h>
20688         (num_processors): On HP-UX systems, try pstat_getdynamic.
20689         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
20690         pstat_getdynamic.
20691
20692 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
20693             Bruno Haible  <bruno@clisp.org>
20694
20695         Implement nproc for NetBSD, OpenBSD.
20696         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
20697         (ARRAY_SIZE): New macro.
20698         (num_processors): On BSD systems, try sysctl of HW_NCPU.
20699         * m4/nproc.m4: New file.
20700         * modules/nproc (Files): Add m4/nproc.m4.
20701         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
20702         (Makefile.am): Instead, augment lib_SOURCES.
20703
20704 2009-10-18  Bruno Haible  <bruno@clisp.org>
20705
20706         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
20707         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
20708         sys/param.h.
20709
20710 2009-10-16  Eric Blake  <ebb9@byu.net>
20711
20712         utimensat: new module
20713         * modules/utimensat: New file.
20714         * lib/utimensat.c (utimensat): Likewise.
20715         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20716         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
20717         so we can work around Linux bugs.
20718         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20719         * modules/sys_stat (Makefile.am): Substitute them.
20720         * lib/sys_stat.in.h (utimensat): Declare it.
20721         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20722         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
20723         * modules/utimensat-tests: New test.
20724         * tests/test-utimensat.c: Likewise.
20725
20726         utimens: let lutimens work on non-symlinks
20727         * lib/utimens.c (lutimens): Fall back to utimens rather than
20728         failing with ENOSYS, when file is not a symlink.
20729         (utimens): Reduce redirection.
20730         * tests/test-lutimens.h (test_lutimens): Update test to cover
20731         non-symlinks.
20732         * tests/test-utimens.h (test_utimens): Update test to cover
20733         symlinks.
20734         * tests/test-utimens.c (main): Update caller.
20735
20736         utimens: cache whether utimensat syscall works
20737         * lib/utimens.c (utimensat_works_really): New cache variable.
20738         (fdutimens, lutimens): Use it to avoid failing syscall.
20739
20740         test-stat-time, test-utimens: improve portability
20741         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
20742         ext4 on alpha, and for cygwin.
20743         * tests/test-utimens-common.h: New file.
20744         (nap): Factor delays into single function.
20745         * tests/test-lutimens.h (test_lutimens): Use new header.
20746         * tests/test-futimens.h (test_futimens): Likewise.
20747         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
20748         timestamps to occur from same machine, as was done previously for
20749         test_utimens.
20750         * modules/utimens-tests (Files): Ship new file.
20751         * modules/futimens-tests (Files): Likewise.
20752         Reported in part by Jim Meyering.
20753
20754         sys_stat: sort replacement declarations
20755         * lib/sys_stat.in.h: Sort declarations.
20756         * lib/futimens.c (futimens): Fix typo.
20757
20758 2009-10-15  Jim Meyering  <meyering@redhat.com>
20759
20760         don't let environment settings perturb build
20761         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
20762         could cause a configure-time and/or build-time malfunction.
20763         Typically, a configure-time function-in-library test is performed
20764         via code like this:
20765
20766           LIB_VAR=
20767           AC_SUBST([LIB_VAR])
20768           prefix_saved_LIBS=$LIBS
20769             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
20770                        [test "$ac_cv_search_FUNC" = "none required" ||
20771                         LIB_VAR=$ac_cv_search_FUNC])
20772           LIBS=$prefix_saved_LIBS
20773
20774         However, in each of the files affected by this change, the LIB_VAR=
20775         initialization was omitted.  Thus, when set in the environment, its
20776         value would propagate into generated Makefiles when FUNC is not found
20777         in LIB_NAME.
20778         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
20779         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
20780         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20781
20782 2009-10-14  Eric Blake  <ebb9@byu.net>
20783
20784         fchdir: avoid infinite recursion in mingw
20785         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
20786         recursing.
20787
20788         test-stat-time: port to mingw
20789         * tests/test-stat-time.c (force_unlink): Return a value.
20790         (test_ctime) [W32]: Fix compilation error.
20791         (nap): Don't call usleep with too large an argument.  Use
20792         force_unlink.
20793         * doc/pastposix-functions/usleep.texi (usleep): Document the
20794         portability issue.
20795
20796 2009-10-13  Jim Meyering  <meyering@redhat.com>
20797
20798         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
20799         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
20800         * modules/pipe-filter-ii: Likewise.
20801         * modules/sys_socket-tests: Likewise.
20802         * modules/tsearch-tests: Likewise.
20803         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
20804         (check): Depend on it.
20805
20806 2009-10-12  Eric Blake  <ebb9@byu.net>
20807
20808         utimens-tests: port to NFS file systems
20809         * tests/test-utimens.h (test_utimens): Refactor utimecmp
20810         comparisons to avoid spurious failures from timestamp drift
20811         between NFS machines.
20812
20813 2009-10-12  Eric Blake  <ebb9@byu.net>
20814
20815         stat-time-tests: minor cleanups
20816         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
20817         * tests/test-stat-time.c (nap): Separate assignment from call.
20818         Suggested by Paolo Bonzini and Bruno Haible.
20819
20820         sys_stat: guarantee struct timespec
20821         * lib/sys_stat.in.h (includes): Always include <time.h>
20822         * modules/sys_stat (Depends-on): Add time.
20823         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
20824         mode_t permission values.
20825         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
20826         get at subsecond timestamps.
20827
20828 2009-10-10  Eric Blake  <ebb9@byu.net>
20829
20830         futimens: new module
20831         * modules/futimens: New file.
20832         * lib/futimens.c (futimens): Likewise.
20833         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
20834         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
20835         we can work around Linux bugs.
20836         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20837         * modules/sys_stat (Makefile.am): Substitute them.
20838         * lib/sys_stat.in.h (futimens): Declare it.
20839         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20840         * doc/posix-functions/futimens.texi (futimens): Likewise.
20841         * modules/futimens-tests: New test.
20842         * tests/test-futimens.c: Likewise.
20843
20844         utimens: introduce fdutimens
20845         * lib/utimens.h (fdutimens): New prototype.
20846         * lib/utimens.c (gl_futimens): Move guts...
20847         (fdutimens): ...to new interface.
20848         * tests/test-utimens.c (do_fdutimens): Use it.
20849
20850         utimens: add UTIME_NOW and UTIME_OMIT support
20851         * lib/utimens.c (validate_timespec, update_timespec): New helper
20852         functions.
20853         (gl_futimens, lutimens): Use them.
20854         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
20855         stdbool, sys_stat.
20856         (Link): Mention resulting library dependency.
20857         * modules/utimecmp (Link): Likewise.
20858         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
20859         (Makefile.am): Pick up library dependency.
20860         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
20861         definition.
20862         * tests/test-sys_stat.c: Test the definitions.
20863         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
20864         * NEWS: Document library dependency.
20865
20866         utimecmp: support symlink timestamps
20867         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
20868         hashing when possible.  Use pathconf when available.
20869         (SYSCALL_RESOLUTION): Recognize tighter resolution.
20870         * modules/utimecmp (Depends-on): Add lstat.
20871
20872         utimens: add lutimens interface
20873         * lib/utimens.c (lutimens): New function.
20874         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
20875         * lib/utimens.h (lutimens): Declare new interface.
20876         * tests/test-utimens.c (main): Enhance test.
20877         * tests/test-lutimens.h (test_lutimens): New file.
20878         * modules/utimens-tests (Files): Distribute it.
20879         (Depends-on): Add symlink.
20880         (configure.ac): Check for usleep.
20881
20882         utimens: validate futimens usage
20883         * lib/utimens.c (gl_futimens): Require valid fd up front, using
20884         fewer syscalls on failure later on.  Avoid compiler warning on
20885         mingw.
20886         * modules/utimens (Depends-on): Add dup2.
20887
20888         utimens: add test
20889         * modules/utimens-tests: New test.
20890         * tests/test-utimens.h: New file.
20891         * tests/test-futimens.h: Likewise.
20892         * tests/test-utimens.c: Likewise.
20893
20894         doc: mention timestamp portability issues
20895         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
20896         instead.
20897         * doc/posix-functions/utime.texi (utime): Likewise.
20898         * doc/posix-functions/utimes.texi (utimes): Likewise.
20899         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
20900         instead.
20901         * doc/posix-functions/futimens.texi (futimens): Mention utimens
20902         module.
20903         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
20904         Mention weakness with symlink timestamps.
20905         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
20906         to utimensat/futimens instead.
20907         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
20908
20909         test-dup2: enhance test
20910         * tests/test-dup2.c (main): Also check AT_FDCWD.
20911
20912         test-stat-time: avoid more spurious failures
20913         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
20914         xfs; and avoid race if the two timestamps cross quantization edge.
20915
20916         relocatable: prefer 'file system' over 'filesystem'
20917         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
20918         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
20919         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
20920         * doc/relocatable.texi (Enabling Relocatability): Likewise.
20921         * lib/relocatable.c (compute_curr_prefix): Likewise.
20922
20923 2009-10-10  Jim Meyering  <meyering@redhat.com>
20924
20925         stat-time-tests: check for the usleep function
20926         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
20927
20928 2009-10-10  Bruno Haible  <bruno@clisp.org>
20929
20930         * modules/xnanosleep: Put the Link section after the Include section.
20931
20932 2009-10-09  Eric Blake  <ebb9@byu.net>
20933
20934         dup2: work around FreeBSD 6.1 bug
20935         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
20936         * doc/posix-functions/dup2.texi (dup2): Document it.
20937         Reported by Nelson H. F. Beebe and Jim Meyering.
20938
20939         test-stat-time: port to buggy NFS clients
20940         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
20941         (test_ctime): Also skip test if mtime and ctime are skewed.
20942
20943         maint: prefer 'file system' over 'filesystem'
20944         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
20945         * doc/posix-functions/lstat.texi (lstat): Likewise.
20946         * lib/file-has-acl.c (file_has_acl): Likewise.
20947         * lib/fwriteerror.c [TEST]: Likewise.
20948         * tests/test-areadlink.h (test_areadlink): Likewise.
20949         * tests/test-areadlinkat-with-size.c (main): Likewise.
20950         * tests/test-areadlinkat.c (main): Likewise.
20951         * tests/test-canonicalize-lgpl.c (main): Likewise.
20952         * tests/test-canonicalize.c (main): Likewise.
20953         * tests/test-fstatat.c (main): Likewise.
20954         * tests/test-linkat.c (main): Likewise.
20955         * tests/test-lstat.h (test_lstat_func): Likewise.
20956         * tests/test-mkdir.h (test_mkdir): Likewise.
20957         * tests/test-readlink.h (test_readlink): Likewise.
20958         * tests/test-remove.c (main): Likewise.
20959         * tests/test-rename.h (test_rename): Likewise.
20960         * tests/test-renameat.c (main): Likewise.
20961         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20962         * tests/test-symlink.h (test_symlink): Likewise.
20963         * tests/test-symlinkat.c (main): Likewise.
20964         * tests/test-unlink.h (test_unlink_func): Likewise.
20965         * tests/test-unlinkat.c (main): Likewise.
20966
20967         maint: make realtime library usage explicit
20968         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
20969         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
20970         * modules/settime (Link): Likewise.
20971         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
20972
20973         test-stat-time: speed up execution
20974         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
20975         warning on mingw.
20976         (nap): New helper function.
20977         (prepare_test): Use it to reduce sleep time.
20978         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
20979         execution.
20980         * modules/stat-time-tests (configure.ac): Check for usleep.
20981
20982 2009-10-09  Jim Meyering  <meyering@redhat.com>
20983
20984         selinux-h: always use getfilecon wrappers
20985         * lib/getfilecon.c: New file.
20986         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
20987         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
20988         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
20989         (fgetfilecon): Provide a stub.
20990         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
20991         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
20992         file unconditionally.
20993         When <selinux/selinux.h> is found, arrange to use wrappers.
20994         * modules/selinux-h (Files): Add getfilecon.c.
20995         (Makefile.am): Substitute include-next-related bits
20996         into the now-always-generated selinux/selinux.h file.
20997         * doc/glibc-functions/lgetfilecon.texi: New file.
20998         * doc/glibc-functions/fgetfilecon.texi: New file.
20999         * doc/glibc-functions/getfilecon.texi: New file.
21000         * doc/glibc-functions/getfilecon-desc.texi: New file.
21001         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
21002         which to pull in the new files.
21003         * MODULES.html.sh (Misc): Add selinux-h.
21004
21005 2009-10-08  Jim Meyering  <meyering@redhat.com>
21006
21007         unistd: fix comment typo
21008         * lib/unistd.in.h (euidaccess): Fix a comment typo.
21009
21010 2009-10-08  Eric Blake  <ebb9@byu.net>
21011
21012         areadlink: use SIZE_MAX consistently
21013         * modules/areadlink (Depends-on): Add stdint.
21014         * modules/areadlink-with-size (Depends-on): Likewise.
21015         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
21016         gives NULL; drop sys/types, since unistd gives size_t; and add
21017         stdint for SIZE_MAX.
21018         (SIZE_MAX): Rely on headers.
21019         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
21020         and add stdint.
21021         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
21022         (SIZE_MAX): Likewise.
21023         (INITIAL_BUF_SIZE): Turn into enum.
21024         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
21025
21026 2009-10-08  Jim Meyering  <meyering@redhat.com>
21027
21028         areadlinkat: avoid compilation failure
21029         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
21030         Fix typo in comment.
21031
21032 2009-10-07  Eric Blake  <ebb9@byu.net>
21033
21034         areadlinkat-with-size: new module
21035         * modules/areadlinkat-with-size: New module.
21036         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
21037         * lib/areadlink.h (areadlinkat): Declare it.
21038         * MODULES.html.sh (File system functions): Mention it.
21039         * modules/areadlinkat-with-size-tests: New test.
21040         * tests/test-areadlinkat-with-size.c: New file.
21041
21042         xreadlinkat: new module
21043         * modules/xreadlinkat: New module.
21044         * lib/xreadlinkat.c (xreadlinkat): New file.
21045         * lib/xreadlink.h (xreadlinkat): Declare it.
21046         * MODULES.html.sh (File system functions): Mention it.
21047
21048         areadlinkat: new module
21049         * lib/at-func.c (FUNC_FAIL): New define.
21050         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
21051         * modules/areadlinkat: New module.
21052         * lib/linkat.c (areadlinkat): Move...
21053         * lib/areadlinkat.c (areadlinkat): ...to new file.
21054         * lib/areadlink.h (areadlinkat): Declare it.
21055         * modules/linkat (Depends-on): Add areadlinkat.
21056         * MODULES.html.sh (File system functions): Mention it.
21057         * modules/areadlinkat-tests: New test.
21058         * tests/test-areadlinkat.c: New file.
21059
21060         areadlink, areadlink-with-size: add tests
21061         * modules/areadlink-tests: New test.
21062         * modules/areadlink-with-size-tests: Likewise.
21063         * tests/test-areadlink.h: New file.
21064         * tests/test-areadlink.c: Likewise.
21065         * tests/test-areadlink-with-size.c: Likewise.
21066
21067         maint: minor cleanups
21068         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
21069         _UNUSED_PARAMETER_ instead.
21070         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
21071         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
21072         * modules/linkat-tests (Files): Distribute test-link.h.
21073
21074         openat, utimens: whitespace cleanup
21075         * lib/openat.c: Prefer space throughout, rather than mix of 8
21076         spaces vs. tabs.
21077         * lib/at-func.c: Likewise.
21078         * lib/utimens.c: Likewise.
21079
21080         openat: avoid using wrong fd
21081         * lib/openat.c (openat_permissive): Reject user's fd if saving the
21082         working directory chooses same fd.
21083         * lib/at-func.c (AT_FUNC_NAME): Likewise.
21084
21085         mkdir, mkdirat: fix cygwin 1.5.x bug
21086         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
21087         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
21088         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
21089         bug.
21090         (gl_PREREQ_MKDIR): Delete unused macro.
21091         * modules/mkdir (Files): Track file rename.
21092         (configure.ac): Update macro name.
21093         * modules/openat (Depends-on): Add mkdir.
21094         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
21095
21096         mkdir, mkdirat: add tests
21097         * modules/mkdir-tests: New test.
21098         * tests/test-mkdir.h: New file.
21099         * tests/test-mkdir.c: Likewise.
21100         * tests/test-mkdirat.c: Likewise.
21101         * modules/openat-tests (Files): Add new files.
21102         (Makefile.am): Run new test.
21103
21104 2009-10-06  Eric Blake  <ebb9@byu.net>
21105
21106         doc: tweak *at function documentation
21107         * doc/posix-functions/faccessat.texi (faccessat): Mention
21108         known issue with replacement.
21109         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
21110         * doc/posix-functions/linkat.texi (linkat): Likewise.
21111         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
21112         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
21113         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21114         * doc/posix-functions/renameat.texi (renameat): Likewise.
21115         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21116
21117         openat: fix GNU/Hurd bug in unlinkat
21118         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
21119         broken.
21120         * doc/posix-functions/unlink.texi (unlink): Document this.
21121         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
21122
21123         fdopendir: fix GNU/Hurd bug
21124         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
21125         allowing non-directory fds.
21126         * lib/fdopendir.c (rpl_fdopendir): Work around it.
21127         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21128         * modules/dirent (Makefile.am): Substitute it.
21129         * lib/dirent.in.h (fdopendir): Declare replacement.
21130         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
21131         * tests/test-fdopendir.c (main): Test something other than
21132         /dev/null, since on Hurd that behaves like a directory.
21133
21134         test-symlink: port to GNU/Hurd
21135         * tests/test-symlink.h (test_symlink): Relax expected errno.
21136
21137         doc: tweak more cygwin information
21138         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
21139         now compatible with glibc.
21140         * doc/posix-functions/getopt.texi (getopt): Likewise.
21141
21142         getopt-gnu: add another test
21143         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
21144         guarantee behavior relied on by m4.
21145         * tests/test-getopt.c (main): Use it.
21146         * modules/getopt-posix-tests (Depends-on): Add setenv.
21147         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
21148
21149         getopt: fix compilation on darwin
21150         * lib/getopt.in.h (includes): Leave breadcrumbs during system
21151         include.
21152         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
21153         Reported by Ludovic Courtès.
21154
21155 2009-10-06  Bruno Haible  <bruno@clisp.org>
21156
21157         * modules/size_max (Description): Discourage its use.
21158         Reported by Simon Josefsson.
21159
21160 2009-10-06  Jim Meyering  <meyering@redhat.com>
21161
21162         linkat: avoid compilation failure
21163         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
21164
21165 2009-10-05  Eric Blake  <ebb9@byu.net>
21166
21167         linkat: support Linux 2.6.17
21168         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
21169         linkat on Linux, but allow cache variable override.
21170         * lib/linkat.c (rpl_linkat): Define override.
21171         * modules/linkat (Depends-on): Add symlinkat.
21172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
21173         * modules/unistd (Makefile.am): Substitute it.
21174         * lib/unistd.in.h (linkat): Declare replacement.
21175         Reported by Pádraig Brady.
21176
21177         quotearg: port test to systems with C.UTF-8 locale
21178         * tests/test-quotearg.c (struct result_strings): Add another
21179         member, differentiating between C.ASCII and C.UTF-8 handling.
21180         (compare_strings): Add parameter.
21181         (main): Adjust all callers.
21182
21183         getopt: avoid clash with FreeBSD _getopt_internal
21184         * lib/getopt.in.h (_getopt_internal): Override the name.
21185         * lib/getopt_int.h (includes): Pick up any overrides.
21186         Reported by Reuben Thomas.
21187
21188         hash: allow C89 compilation
21189         * lib/hash.c (check_tuning): Move declaration before statement.
21190         Reported by Reuben Thomas.
21191
21192 2009-10-05  Karl Berry  <karl@gnu.org>
21193
21194         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
21195
21196 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
21197             Bruno Haible  <bruno@clisp.org>
21198
21199         * lib/uname.c (uname): Use a table-driven algorithm to compute
21200         Windows NT versions.
21201
21202 2009-10-04  Bruno Haible  <bruno@clisp.org>
21203
21204         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
21205         program_invocation_short_name.
21206         * modules/progname (configure.ac): Test for presence of
21207         program_invocation_short_name.
21208         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
21209
21210 2009-10-04  Bruno Haible  <bruno@clisp.org>
21211
21212         * lib/progname.c (set_program_name): Fix comment.
21213         Reported by Jim Meyering.
21214
21215 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
21216             Bruno Haible  <bruno@clisp.org>
21217
21218         * lib/uname.c: Include <string.h>.
21219         (uname): Do only one call to GetVersionEx in the common case.
21220
21221 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
21222             Bruno Haible  <bruno@clisp.org>
21223
21224         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
21225         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
21226         (uname): Add support for Windows CE and various non-x86 CPU types.
21227
21228 2009-10-03  Bruno Haible  <bruno@clisp.org>
21229
21230         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
21231         invocation to tests/configure.ac.
21232         Reported by Ian Beckwith <ianb@erislabs.net>.
21233
21234 2009-10-02  Eric Blake  <ebb9@byu.net>
21235
21236         fchdir: avoid compiler warning
21237         * lib/fchdir.c (canonicalize_file_name)
21238         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
21239
21240         test-open: support mingw errno values
21241         * tests/test-open.h (test_open): Relax test.
21242         * tests/test-fopen.h (test_fopen): Likewise.
21243         * tests/test-openat-safer.c (main): Likewise.
21244
21245         open: fix opening directory on mingw
21246         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
21247
21248         test-open: on GNU/Hurd, /dev/null is a directory
21249         * tests/test-fopen.h (main): Rename...
21250         (test_fopen): ...to this.  Use a guaranteed non-directory when
21251         confirming open behavior on trailing slash.
21252         * tests/test-openat-safer.c (main): Likewise.
21253         * tests/test-open.h (main): Likewise....
21254         (test_open): ...to this.
21255         * tests/test-fopen.c (main): Adjust caller.
21256         * tests/test-fopen-safer.c (main): Likewise.
21257         * tests/test-open.c (main): Likewise.
21258         * tests/test-fcntl-safer.c (main): Likewise.
21259         Reported by Samuel Thibault.
21260
21261         rename, fchdir: don't ignore chdir failure
21262         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
21263         * lib/rename.c (rpl_rename) [W32]: Likewise.
21264         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
21265         an empty destination directory if source cannot be renamed,
21266         although there is still possibility for failure.
21267         * doc/posix-functions/rename.texi (rename): Document the race.
21268         Reported by Jim Meyering.
21269
21270         maint: cleanup whitespace in recent commits
21271         * lib/rename.c (rpl_rename): Remove tabs.
21272         * tests/test-link.h (test_link): Likewise.
21273         * lib/fchdir.c (get_name): Likewise.
21274         Reported by Jim Meyering.
21275
21276 2009-10-02  Ben Pfaff  <blp@gnu.org>
21277
21278         relocatable-prog-wrapper: Add missing dependency on
21279         double-slash-root.
21280         * modules/relocatable-prog-wrapper: Add dependency.
21281         Reported by Ian Beckwith <ianb@erislabs.net>.
21282
21283 2009-10-02  Eric Blake  <ebb9@byu.net>
21284
21285         renameat: fix Solaris bugs
21286         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
21287         needed fixing.
21288         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
21289         * modules/stdio (Makefile.am): Substitute it.
21290         * lib/stdio.in.h (renameat): Declare replacement.
21291         * lib/renameat.c (rpl_renameat): Implement fix.
21292
21293         renameat: new module
21294         * modules/renameat: New file.
21295         * lib/renameat.c (renameat): Likewise.
21296         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
21297         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
21298         * modules/stdio (Makefile.am): Substitute them.
21299         * lib/stdio.in.h (renameat): Declare it.
21300         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21301         * doc/posix-functions/renameat.texi (renameat): Likewise.
21302         * modules/renameat-tests: New test.
21303         * tests/test-renameat.c: Likewise.
21304
21305         rename: fix mingw bugs
21306         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
21307         directory overwrite bugs.
21308
21309         rename: fix another cygwin 1.5 bug
21310         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
21311         checks.
21312         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
21313         unnecessary cygwin workarounds.  Also work around bug with moving
21314         full directory onto an empty one.
21315         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
21316
21317         rename-dest-slash: merge into rename module
21318         * modules/rename-dest-slash (Status): Mark obsolete.
21319         (Depends-on): Add rename.
21320         (Files): Let rename do it all.
21321         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
21322         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
21323         * m4/rename-dest-slash.m4: ...so this file can be deleted.
21324         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
21325         * lib/rename.c (rpl_rename): Update comments.
21326
21327         rename: fix cygwin 1.5.x bugs
21328         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
21329         * lib/rename.c (rpl_rename): Work around them.
21330         * modules/rename (Depends-on): Add same-inode.
21331
21332         rename: fix Solaris 10 bug
21333         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
21334         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
21335         was the only bug.
21336
21337         rename: fix Solaris 9 bug
21338         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
21339         on non-directory.  Avoid calling exit.
21340         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
21341         strdup.
21342         * modules/rename-tests (Depends-on): Drop lstat.
21343         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
21344         (gl_PREREQ_RENAME): Delete unused macro.
21345
21346         rename-dest-slash: fix NetBSD bug
21347         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
21348         links.
21349         * modules/rename-dest-slash (Depends-on): Add same-inode.
21350
21351         rename-tests: new test, exposes several platform bugs
21352         * modules/rename-tests: New file.
21353         * tests/test-rename.h: Likewise.
21354         * tests/test-rename.c: Likewise.
21355         * doc/posix-functions/rename.texi (rename): Improve documentation,
21356         including bugs that will eventually be fixed in gnulib.
21357
21358 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
21359
21360         * lib/uname.c: Include <stdlib.h>
21361         (uname): Assume version info is available.
21362
21363 2009-10-02  Jim Meyering  <meyering@redhat.com>
21364
21365         gnu-web-doc-update: correct --help output
21366         * build-aux/gnu-web-doc-update: Make --help output relevant.
21367
21368         gnu-web-doc-update: add standard options
21369         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
21370
21371         gnu-web-doc-update: New module.
21372         Use this script to automatically update the on-line web documentation
21373         for your GNU project at http://www.gnu.org/software/$pkg/manual/
21374         * modules/gnu-web-doc-update: New file, from coreutils.
21375         * build-aux/gnu-web-doc-update: New script.
21376
21377 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
21378
21379         link: LoadLibrary is not needed.
21380         * lib/link.c: Use GetModuleHandle.
21381
21382 2009-10-01  Eric Blake  <ebb9@byu.net>
21383
21384         getopt: bump serial number
21385         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
21386         change.
21387
21388         tests: tighten link, rmdir, and remove tests
21389         * tests/test-link.h (includes): No need to use <config.h> here.
21390         Clean up if directory hard link was created, otherwise test for
21391         trailing '.'.
21392         * tests/test-linkat.c (main): Simplify.
21393         * tests/test-remove.c (main): Enhance test for trailing '.'.
21394         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21395
21396 2009-10-01  Jim Meyering  <meyering@redhat.com>
21397
21398         maint.mk: requiring "make major" was annoying, for a "minor" release.
21399         What is intended is "stable", to contrast with alpha and beta,
21400         so require "make stable", not "make major".
21401         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
21402         (get_tool_versions): Likewise.
21403         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
21404
21405 2009-09-30  Ben Pfaff  <blp@gnu.org>
21406
21407         Fix broken build of replacement for Windows tmpfile().
21408         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
21409         flags argument added along with the 'mkostemp' module.
21410
21411 2009-09-28  Bruno Haible  <bruno@clisp.org>
21412
21413         Avoid identifier clash with POSIX function 'remove' defined as a macro.
21414         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
21415         to 'remove_elt'.
21416         (gl_list_remove): Update.
21417         * lib/gl_list.c (gl_list_remove): Update.
21418         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
21419         to 'remove_elt'.
21420         (gl_oset_remove): Update.
21421         * lib/gl_list.c (gl_oset_remove): Update.
21422         Reported by Eric Blake.
21423
21424 2009-09-28  Eric Blake  <ebb9@byu.net>
21425
21426         doc: mention yet more cygwin 1.7 status
21427         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
21428         cygwin.
21429         * doc/glibc-functions/execvpe.texi (execvpe): New file.
21430         * doc/gnulib.texi (Glibc unistd.h): Mention it.
21431
21432         argp: fix test failure
21433         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
21434         that are not upper-case.  Pass correct range to tolower.
21435
21436 2009-09-27  Jim Meyering  <meyering@redhat.com>
21437
21438         test-yesno: work around sparc-dash here-document infelicity
21439         Without this change, the literal \177 byte in a here document
21440         would make dash 0.5.5.1-3 access uninitialized memory.
21441         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
21442         Instead, use a marker, "@", and filter through tr to create the desired
21443         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
21444
21445 2009-09-27  Bruno Haible  <bruno@clisp.org>
21446
21447         Disable untested support for new flavours of ACLs on AIX.
21448         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
21449         progress.
21450         * lib/set-mode-acl.c (qset_acl): Likewise.
21451
21452 2008-12-07  Bruno Haible  <bruno@clisp.org>
21453
21454         Add support for new flavours of ACLs on AIX. (Untested.)
21455         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
21456         (file_has_acl): Add support for newer AIX.
21457         * lib/set-mode-acl.c (qset_acl): Likewise.
21458         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
21459         Rainer Tammer <tammer@tammer.net>.
21460
21461 2009-09-26  Eric Blake  <ebb9@byu.net>
21462
21463         argp: fix compilation of getopt
21464         * lib/getopt.in.h (includes): Use different guard than glibc.
21465         Reported by Sergey Poznyakoff.
21466
21467         doc: mention more cygwin 1.7 status
21468         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
21469         bug.
21470         * doc/posix-functions/execl.texi (execl): Likewise.
21471         * doc/posix-functions/execle.texi (execle): Likewise.
21472         * doc/posix-functions/execlp.texi (execlp): Likewise.
21473         * doc/posix-functions/execv.texi (execv): Likewise.
21474         * doc/posix-functions/execve.texi (execve): Likewise.
21475         * doc/posix-functions/execvp.texi (execvp): Likewise.
21476         * doc/glibc-functions/canonicalize_file_name.texi
21477         (canonicalize_file_name): Cygwin 1.7 now provides this.
21478         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
21479         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
21480         on AT_SYMLINK_NOFOLLOW.
21481
21482 2009-09-24  Eric Blake  <ebb9@byu.net>
21483
21484         test-linkat: make test more robust
21485         * tests/test-linkat.c (main): Avoid collision with EEXIST.
21486
21487         getopt: fix inclusion guards for cygwin
21488         * modules/getopt-posix (Depends-on): Add include-next.
21489         (Makefile.am): Substitute more items in replacement header.
21490         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
21491         <getopt.h>.
21492         * lib/getopt.in.h (includes): Use split inclusion guard, and
21493         prefer <getopt.h> over include <unistd.h> when one is present.
21494         (option): Also override name of 'struct option'.
21495
21496         same-inode: revert prior change; it is not yet ready
21497         * NEWS: Undo mention of this change.
21498         * lib/same-inode.h (same-inode.h): Undo tri-state change.
21499         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
21500         * lib/cycle-check.c (cycle_check): Likewise.
21501         * lib/same.c (same_name): Likewise.
21502         * lib/at-func2.c (at_func2): Likewise.
21503
21504 2009-09-23  Eric Blake  <ebb9@byu.net>
21505
21506         linkat: new module
21507         * modules/linkat: New file.
21508         * lib/at-func2.c (at_func2): Likewise.
21509         * lib/linkat.c (linkat): Likewise.
21510         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
21511         * lib/openat-priv.h (at_func2): Add declaration.
21512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
21513         * modules/unistd (Makefile.am): Substitute them.
21514         * lib/unistd.in.h (linkat): Declare it.
21515         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21516         * doc/posix-functions/linkat.texi (linkat): Likewise.
21517         * doc/posix-functions/link.texi (link): Tweak wording.
21518         * tests/test-link.c (main): Move guts...
21519         * tests/test-link.h (test_link): ...into new file.
21520         * modules/linkat-tests: New test.
21521         * tests/test-linkat.c: Likewise.
21522         * modules/link-tests (Files): Ship new file.
21523         (Depends-on): Add stdbool.
21524
21525         dirname: add library-safe mdir_name
21526         * lib/dirname.h (mdir_name): New prototype.
21527         * lib/dirname.c (dir_name): Move guts...
21528         (mdir_name): ...to new function that avoids xalloc_die.
21529
21530         fchdir: another mingw fix
21531         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
21532         * lib/fchdir.c (get_name): New helper method; skips canonicalize
21533         on mingw (where it has not yet been ported), and make it optional
21534         elsewhere.
21535         (_gl_register_fd): Use it.
21536
21537         same-inode: make SAME_INODE tri-state, to port to mingw
21538         * NEWS: Mention this change.
21539         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
21540         st_ino always being 0.
21541         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
21542         * lib/cycle-check.c (cycle_check): Likewise.
21543         * lib/same.c (same_name): Likewise.
21544
21545         lstat: avoid mingw compilation error
21546         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
21547         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
21548         lstat ourselves.
21549         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
21550         was adequate.
21551         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
21552         the checks for lstat.
21553         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
21554
21555         link: fix test failure on Solaris 9
21556         * lib/link.c (rpl_link): Don't assume link will catch bogus
21557         trailing slash on source.
21558
21559         test-symlinkat: enhance test
21560         * tests/test-readlink.c (main): Move guts...
21561         * tests/test-readlink.h (test_readlink): ...into new file.
21562         * tests/test-symlink.c (main): Move guts...
21563         * tests/test-symlink.h (test_symlink): ...into new file.
21564         * tests/test-symlinkat.c (main): Use new files for further
21565         coverage.
21566         (do_symlink, do_readlink): New helper functions.
21567         * modules/symlink-tests (Files): Ship new file.
21568         (Depends-on): Add stdbool.
21569         * modules/readlink-tests (Files): Ship new file.
21570         (Depends-on): Add stdbool.
21571         * modules/symlinkat-tests (Files): Use new files.
21572
21573 2009-09-23  Eric Blake  <ebb9@byu.net>
21574
21575         readlink: document portability issue with symlink length
21576         * doc/posix-functions/lstat.texi (lstat): Mention that some file
21577         systems have bogus st_size on symlinks, and mention the
21578         areadlink-with-size module.
21579         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
21580         * doc/posix-functions/readlink.texi (readlink): Mention the
21581         areadlink module, and ERANGE failure.
21582         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21583         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
21584
21585         readlink: fix Solaris 9 bug with trailing slash
21586         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
21587         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
21588         * doc/posix-functions/readlink.texi (readlink): Document this.
21589         * modules/readlink-tests: New test.
21590         * tests/test-readlink.c: Likewise.
21591
21592         readlink: fix cygwin 1.5.x bug with return type
21593         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
21594         * lib/unistd.in.h (readlink): Use ssize_t.
21595         * lib/readlink.c (readlink): Likewise.
21596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21597         * modules/unistd (Makefile.am): Substitute it.
21598         * lib/unistd.in.h (readlink): Declare replacement.
21599         * doc/posix-functions/readlink.texi (readlink): Document this.
21600
21601         symlink: use throughout gnulib
21602         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
21603         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
21604         symlink is not used.
21605         * modules/symlinkat (Depends-on): Add symlink.
21606         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21607         * modules/canonicalize-tests (Depends-on): Likewise.
21608         * modules/lstat-tests (Depends-on): Likewise.
21609         * modules/openat-tests (Depends-on): Likewise.
21610         * modules/remove-tests (Depends-on): Likewise.
21611         * modules/rmdir-tests (Depends-on): Likewise.
21612         * modules/unlink-tests (Depends-on): Likewise.
21613         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
21614         * tests/test-canonicalize.c (symlink): Likewise.
21615         * tests/test-fstatat.c (symlink): Likewise.
21616         * tests/test-lstat.c (symlink): Likewise.
21617         * tests/test-remove.c (symlink): Likewise.
21618         * tests/test-rmdir.c (symlink): Likewise.
21619         * tests/test-unlink.c (symlink): Likewise.
21620         * tests/test-unlinkat.c (symlink): Likewise.
21621
21622         symlink: new module, for Solaris 9 bug
21623         * modules/symlink: New file.
21624         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
21625         * lib/symlink.c: Likewise.
21626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
21627         * modules/unistd (Makefile.am): Substitute them.
21628         * lib/unistd.in.h (symlink): Declare replacement.
21629         * MODULES.html.sh (File system functions): Mention it.
21630         * doc/posix-functions/symlink.texi (symlink): Likewise.
21631         * modules/symlink-tests: New test.
21632         * tests/test-symlink.c: Likewise.
21633
21634 2009-09-23  Bruno Haible  <bruno@clisp.org>
21635
21636         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
21637         when needed.
21638         Test case: gnulib-tool --import --with-tests atexit inttypes.
21639         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
21640
21641 2009-09-23  Bruno Haible  <bruno@clisp.org>
21642
21643         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
21644         subcommand, not in a subshell.
21645
21646 2009-09-22  Eric Blake  <ebb9@byu.net>
21647
21648         unistd: sort replacement declarations
21649         * lib/unistd.in.h: Sort declarations.
21650
21651         open, openat: minor optimization
21652         * lib/open.c (open): If open succeeded, len is non-zero.
21653         * lib/openat.c (rpl_openat): Likewise.
21654
21655         link-follow: ensure correct result
21656         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
21657         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
21658         distinguish between possible failures.
21659
21660 2009-09-21  Eric Blake  <ebb9@byu.net>
21661
21662         fts: avoid compiler warning
21663         * lib/fts.c (dirent_inode_sort_may_be_useful)
21664         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
21665
21666 2009-09-19  Bruno Haible  <bruno@clisp.org>
21667
21668         * lib/progreloc.c (canonicalize_file_name): New declaration.
21669
21670 2009-09-19  Eric Blake  <ebb9@byu.net>
21671
21672         link: fix quoting
21673         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
21674
21675         openat: fix openat bugs on Solaris 9
21676         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
21677         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
21678         * modules/openat (Depends-on): Add open.
21679         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
21680         * modules/fcntl-h (Makefile.am): Substitute it.
21681         * lib/fcntl.in.h (openat): Declare replacement.
21682         * doc/posix-functions/openat.texi (openat): Document this.
21683
21684         openat: move fstatat and unlinkat into correct files
21685         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
21686         compiled.
21687         * lib/openat.c (fstatat, unlinkat): Move...
21688         * lib/fstatat.c (fstatat): ...into correct files.
21689         * lib/unlinkat.c (unlinkat): Likewise.
21690
21691         openat: fix unlinkat bugs on Solaris 9
21692         * lib/unlinkat.c (unlinkat): New file.
21693         * modules/openat (Depends-on): Add unlink.
21694         (Files): Distribute it.
21695         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
21696         trailing slash behavior is broken.
21697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21698         * modules/unistd (Makefile.am): Substitute it.
21699         * lib/unistd.in.h (unlinkat): Declare replacement.
21700         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
21701
21702         openat: fix fstatat bugs on Solaris 9
21703         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
21704         stat.
21705         * doc/posix-functions/fstatat.texi (fstatat): Document this.
21706
21707         test-unlinkat: enhance test, to expose Solaris 9 bug
21708         * tests/test-unlink.c (main): Factor guts...
21709         * tests/test-unlink.h (test_rmdir_func): ...into new file.
21710         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
21711         * tests/test-rmdir.c (main): Adjust caller.
21712         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
21713         (unlinker): New helper function.
21714         (rmdirat): Enhance check.
21715         * modules/rmdir-tests (Depends-on): Add stdbool.
21716         * modules/unlink-tests (Depends-on): Likewise.
21717         (Files): Add test-unlink.h.
21718         * modules/openat-tests (Files): Likewise.
21719         (Depends-on): Add unlinkdir.
21720
21721         test-fstatat: new test, to expose Solaris 9 bugs
21722         * tests/test-stat.c (main): Factor guts...
21723         * tests/test-stat.h (test_stat_func): ...into new file.
21724         * tests/test-lstat.c (main): Factor guts...
21725         * tests/test-lstat.h (test_lstat_func): ...into new file.
21726         * tests/test-fstatat.c: New file.
21727         * modules/stat-tests (Files): Add test-stat.h.
21728         * modules/lstat-tests (Files): Add test-lstat.h.
21729         (Depends-on): Add stdbool.
21730         * modules/openat-tests (Depends-on): Add pathmax.
21731         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
21732         (Makefile.am): Run new test.
21733
21734         remove: new module, for mingw and Solaris 9 bugs
21735         * modules/remove: New file.
21736         * lib/remove.c: Likewise.
21737         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
21738         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
21739         * modules/stdio (Makefile.am): Use them.
21740         * lib/stdio.in.h (remove): Declare replacement.
21741         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21742         * doc/posix-functions/remove.texi (remove): Likewise.
21743         * modules/remove-tests: New test.
21744         * tests/test-remove.c: Likewise.
21745
21746         unlink: new module, for Solaris 9 bug
21747         * modules/unlink: New file.
21748         * lib/unlink.c: Likewise.
21749         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
21751         * modules/unistd (Makefile.am): Use them.
21752         * lib/unistd.in.h (stat): Declare replacement.
21753         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21754         * doc/posix-functions/unlink.texi (unlink): Likewise.
21755         * modules/unlink-tests: New test.
21756         * tests/test-unlink.c: Likewise.
21757
21758         lstat: fix Solaris 9 bug
21759         * lib/lstat.c (lstat): Also check for trailing slash on
21760         non-symlink, non-directories.  Use stat module to simplify logic.
21761         * doc/posix-functions/lstat.texi (lstat): Document it.
21762         * modules/lstat-tests (Depends-on): Add errno, same-inode.
21763         (configure.ac): Check for symlink.
21764         * tests/test-lstat.c (main): Add more tests.
21765
21766         stat: add as dependency to other modules
21767         * modules/chown (Depends-on): Add stat.
21768         * modules/euidaccess (Depends-on): Likewise.
21769         * modules/fchdir (Depends-on): Likewise.
21770         * modules/isdir (Depends-on): Likewise.
21771         * modules/link (Depends-on): Likewise.
21772         * modules/lstat (Depends-on): Likewise.
21773         * modules/mkdir-p (Depends-on): Likewise.
21774         * modules/modechange (Depends-on): Likewise.
21775         * modules/open (Depends-on): Likewise.
21776         * modules/readlink (Depends-on): Likewise.
21777         * modules/same (Depends-on): Likewise.
21778
21779         stat: fix Solaris 9 bug
21780         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
21781         slash.
21782         * lib/stat.c (rpl_stat): Work around it.
21783         * doc/posix-functions/stat.texi (stat): Update documentation.
21784
21785         stat: new module, for mingw bug
21786         * modules/stat: New file.
21787         * lib/stat.c: Likewise.
21788         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21789         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21790         * modules/sys_stat (Makefile.am): Use them.
21791         * lib/sys_stat.in.h (stat): Declare replacement.
21792         * lib/openat.c (fstatat): Deal with lstat and stat being function
21793         macros.
21794         * modules/openat (Depends-on): Add inline.
21795         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21796         * doc/posix-functions/stat.texi (stat): Likewise.
21797         * modules/stat-tests: New test.
21798         * tests/test-stat.c: Likewise.
21799
21800 2009-09-19  Jim Meyering  <meyering@redhat.com>
21801
21802         syntax-check: detect unnecessary inclusion of canonicalize.h
21803         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
21804
21805 2009-09-19  Eric Blake  <ebb9@byu.net>
21806
21807         canonicalize-lgpl: adjust clients to use correct header
21808         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
21809         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
21810         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
21811         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
21812         * lib/progreloc.c (includes): Likewise.
21813
21814 2009-09-19  Jim Meyering  <meyering@redhat.com>
21815
21816         test-posixtm.c: correct a comment
21817         * tests/test-posixtm.c: Correct first-line comment.
21818         Spotted by Eric Blake.
21819
21820 2009-09-16  Jim Meyering  <meyering@redhat.com>
21821
21822         posixtm-tests: make T const-correct; add a test case
21823         * tests/test-posixtm.c (T): Declare const.
21824         Add a test for -(2^31+1).
21825         Remove useless can-succeed-only-in-2002 test.
21826
21827         posixtm-tests: adjust the sole failing test
21828         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
21829         expected output matches what mktime now produces.  Cross-checked via
21830         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
21831
21832         posixtm: move #ifdef'd tests into a new module
21833         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
21834         * tests/test-posixtm.c: ... this new file.
21835         * modules/posixtm-tests: New module.
21836
21837 2009-09-19  Eric Blake  <ebb9@byu.net>
21838
21839         openat: simplify use of at-func.c
21840         * lib/at-func.c (includes): Include prerequisites here, to
21841         simplify requirements on client files.
21842         * lib/openat-priv.h: Add double-inclusion guard.
21843         * lib/faccessat.c (includes): Simplify.
21844         * lib/fchmodat.c (includes): Likewise.
21845         * lib/fchownat.c (includes): Likewise.
21846         * lib/mkdirat.c (includes): Likewise.
21847         * lib/mkfifoat.c (includes): Likewise.
21848         * lib/symlinkat.c (includes): Likewise.
21849
21850         openat: allow return of fd 0
21851         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
21852         * modules/save-cwd (Depends-on): Replace fcntl-safer with
21853         unistd-safer.
21854         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
21855         <fcntl.h>; this module does not leak fds.
21856         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
21857         must be allowed to return 0, leaving openat_safer to add the
21858         safety.
21859         (openat_permissive): Avoid writing to just-opened fd 2 if
21860         restoring the current directory fails.
21861         * lib/openat-die.c (openat_restore_fail): Add comment.
21862         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
21863         (save_cwd): Guarantee safe fd, but without use of open_safer.
21864         * tests/test-openat.c: New test.
21865         * modules/openat-tests (Files, Makefile.am): Distribute and build
21866         new file.
21867
21868         relocatable-prog-wrapper: fix build
21869         * modules/relocatable-prog-wrapper (Files): Update name of
21870         canonicalize m4 file, broken on 2009-09-17.
21871         Reported by emad hajjar <aleppos@hotmail.com>.
21872
21873 2009-09-19  Bruno Haible  <bruno@clisp.org>
21874
21875         * lib/safe-alloc.h: Use the standard header with GPL copyright.
21876         * lib/safe-alloc.c: Likewise.
21877         Reported by Ian Beckwith <ianb@erislabs.net>.
21878
21879 2009-09-18  Bruno Haible  <bruno@clisp.org>
21880
21881         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
21882         Reported by <erobles@sensacd.com.mx>.
21883
21884 2009-09-17  Eric Blake  <ebb9@byu.net>
21885
21886         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
21887         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
21888         slashes when checking if last component is missing.
21889         * tests/test-canonicalize.c (main): Test this.
21890
21891         canonicalize, canonicalize-lgpl: honor // if distinct from /
21892         * modules/canonicalize (Files): Add double-slash-root.m4.
21893         * modules/canonicalize-lgpl (Files): Likewise.
21894         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
21895         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
21896         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
21897         fallback definition.
21898         (canonicalize_filename_mode): Use it to protect //.
21899         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
21900         (__realpath): Likewise.
21901         * tests/test-canonicalize.c (main): Test this.
21902         * tests/test-canonicalize-lgpl.c (main): Likewise.
21903         * modules/canonicalize-tests (Depends-on): Add same-inode.
21904         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21905
21906         canonicalize-lgpl: fix glibc bug with trailing slash
21907         * m4/canonicalize-lgpl.m4: Move contents...
21908         * m4/canonicalize.m4: ...here.
21909         (gl_CANONICALIZE_LGPL): Factor realpath check...
21910         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
21911         glibc 2.3.5 bug, fixed 2005-04-27.
21912         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
21913         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
21914         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
21915         * modules/canonicalize-lgpl (Files): Manage file rename.
21916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
21917         * modules/stdlib (Makefile.am): Substitute witness.
21918         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
21919         is needed.
21920         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
21921         replacement is required.
21922         * lib/canonicalize.c (canonicalize_file_name): Likewise.
21923         * doc/glibc-functions/canonicalize_file_name.texi
21924         (canonicalize_file_name): Document this.
21925         * doc/posix-functions/realpath.texi (realpath): Likewise.
21926
21927         canonicalize-lgpl: reject non-directory with trailing slash
21928         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
21929         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
21930         catches failures in glibc 2.3.5.
21931         * tests/test-canonicalize.c (main): Likewise.
21932
21933         canonicalize-lgpl: use native realpath if it works
21934         * lib/canonicalize-lgpl.c (realpath): Guard with
21935         FUNC_REALPATH_WORKS.
21936         * lib/stdlib.in.h (realpath): Make declaration optional based on
21937         HAVE_REALPATH.
21938         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
21939         native realpath works.
21940         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
21941         * modules/stdlib (Makefile.am): Substitute witness.
21942
21943         canonicalize, canonicalize-lgpl: use <stdlib.h>
21944         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
21945         (Include): Mention <stdlib.h>.
21946         (configure.ac): Mention functions we provide.
21947         * modules/canonicalize (configure.ac): Likewise.
21948         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
21949         realpath if canonicalize_file_name is missing.
21950         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
21951         * modules/stdlib (Makefile.am): Substitute witnesses.
21952         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
21953         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
21954         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
21955         * NEWS: Document this.
21956         * doc/glibc-functions/canonicalize_file_name.texi
21957         (canonicalize_file_name): Likewise.
21958         * doc/posix-functions/realpath.texi (realpath): Likewise.
21959         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
21960
21961         test-canonicalize: consolidate into single C program
21962         * tests/test-canonicalize.sh: Delete; move setup into...
21963         * tests/test-canonicalize.c (main): ...the program, making it
21964         easier to run in debugger.  Add some tests.
21965         * modules/canonicalize-tests (Files): Remove unused file.
21966         (Depends-on): Add progname.
21967         (configure.ac, Makefile.am): Simplify.
21968
21969         test-canonicalize-lgpl: consolidate into single C program
21970         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
21971         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
21972         easier to run in debugger.  Add some tests.
21973         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
21974         (configure.ac, Makefile.am): Simplify.
21975
21976         canonicalize: avoid resolvepath
21977         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
21978         unnecessary checks.
21979         * lib/canonicalize.c (includes): Simplify.
21980         (canonicalize_file_name): Drop resolvepath implementation.
21981         * modules/canonicalize (Depends-on): Drop filenamecat.
21982
21983         canonicalize: don't lose errno
21984         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
21985         over calls to free.
21986
21987         canonicalize: simplify errno handling
21988         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
21989         assignment.
21990
21991         canonicalize, canonicalize-lgpl: update module dependencies
21992         * modules/canonicalize (Depends-on): Add extensions, lstat,
21993         pathmax, stdlib.
21994         (Files): Drop pathmax.h.
21995         (configure.ac): Adjust macro name.
21996         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
21997         lstat, stdlib, sys_stat.
21998         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
21999         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
22000         extensions.
22001         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
22002         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
22003         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
22004         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
22005         declaration, if available.
22006         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
22007         we can rely on the readlink module.
22008         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
22009         (includes): Use <unistd.h> unconditionally.
22010
22011 2009-09-17  Eric Blake  <ebb9@byu.net>
22012
22013         maint: make Include sections of modules consistent
22014         * modules/alloca: Use only header name; no need to list #include.
22015         * modules/alloca-opt: Likewise.
22016         * modules/arpa_inet: Likewise.
22017         * modules/canon-host: Likewise.
22018         * modules/configmake: Likewise.
22019         * modules/dirent: Likewise.
22020         * modules/eealloc: Likewise.
22021         * modules/environ: Likewise.
22022         * modules/fchdir: Likewise.
22023         * modules/fcntl: Likewise.
22024         * modules/fcntl-h: Likewise.
22025         * modules/gethrxtime: Likewise.
22026         * modules/gettime: Likewise.
22027         * modules/ignore-value: Likewise.
22028         * modules/inet_ntop: Likewise.
22029         * modules/inet_pton: Likewise.
22030         * modules/inttypes: Likewise.
22031         * modules/isnand-nolibm: Likewise.
22032         * modules/isnanf-nolibm: Likewise.
22033         * modules/mbchar: Likewise.
22034         * modules/mbfile: Likewise.
22035         * modules/mbiter: Likewise.
22036         * modules/mbuiter: Likewise.
22037         * modules/netdb: Likewise.
22038         * modules/netinet_in: Likewise.
22039         * modules/nproc: Likewise.
22040         * modules/pagealign_alloc: Likewise.
22041         * modules/poll: Likewise.
22042         * modules/printf-frexp: Likewise.
22043         * modules/pthread: Likewise.
22044         * modules/putenv: Likewise.
22045         * modules/random_r: Likewise.
22046         * modules/relocatable-prog: Likewise.
22047         * modules/search: Likewise.
22048         * modules/select: Likewise.
22049         * modules/selinux-h: Likewise.
22050         * modules/settime: Likewise.
22051         * modules/signal: Likewise.
22052         * modules/size_max: Likewise.
22053         * modules/socklen: Likewise.
22054         * modules/ssize_t: Likewise.
22055         * modules/stdarg: Likewise.
22056         * modules/stdbool: Likewise.
22057         * modules/stddef: Likewise.
22058         * modules/stdint: Likewise.
22059         * modules/stdio: Likewise.
22060         * modules/stdlib: Likewise.
22061         * modules/string: Likewise.
22062         * modules/strings: Likewise.
22063         * modules/sys_file: Likewise.
22064         * modules/sys_ioctl: Likewise.
22065         * modules/sys_select: Likewise.
22066         * modules/sys_socket: Likewise.
22067         * modules/sys_stat: Likewise.
22068         * modules/sys_time: Likewise.
22069         * modules/sys_times: Likewise.
22070         * modules/sys_utsname: Likewise.
22071         * modules/sys_wait: Likewise.
22072         * modules/sysexits: Likewise.
22073         * modules/time: Likewise.
22074         * modules/times: Likewise.
22075         * modules/tmpfile: Likewise.
22076         * modules/trim: Likewise.
22077         * modules/unistd: Likewise.
22078         * modules/wchar: Likewise.
22079         * modules/wctype: Likewise.
22080
22081 2009-09-17  Bruno Haible  <bruno@clisp.org>
22082
22083         Make getdate.y compile on QNX and NetBSD 5 / i386.
22084         * m4/getdate.m4 (gl_GETDATE): Conditionally define
22085         TIME_T_FITS_IN_LONG_INT.
22086         * lib/getdate.y (long_time_t): New type.
22087         (relative_time): Change type of 'seconds' field to long_time_t.
22088         (get_date): Update types of local variables. Check against overflow
22089         during conversion from long_time_t to time_t.
22090         Reported by Matt Kraai <kraai@ftbfs.org>
22091         and Hasso Tepper <hasso@netbsd.org>.
22092
22093 2009-09-17  Bruno Haible  <bruno@clisp.org>
22094
22095         * modules/COPYING: Update copyright years.
22096         * modules/README: Likeiwse.
22097         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
22098         Reported by Ian Beckwith <ianb@erislabs.net>.
22099
22100 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
22101
22102         * users.txt: Update references for gnuit package.
22103
22104 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
22105
22106         * m4/getdelim.m4: Fix typo in copyright line.
22107
22108 2009-09-17  Bruno Haible  <bruno@clisp.org>
22109
22110         * lib/atoll.c: Use the standard header with GPL copyright.
22111         * lib/argz.in.h: Likewise.
22112         * lib/glob.c: Likewise.
22113         * lib/glob-libc.h: Likewise.
22114         * lib/random_r.c: Likewise.
22115         * lib/siglist.h: Likewise.
22116         * lib/strsignal.c: Likewise.
22117         Reported by Ian Beckwith <ianb@erislabs.net>.
22118
22119 2009-09-17  Eric Blake  <ebb9@byu.net>
22120
22121         rmdir: ensure correct dependency order
22122         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
22123
22124 2009-09-17  Bruno Haible  <bruno@clisp.org>
22125
22126         Disable assertion that fails on NetBSD 5 / i386.
22127         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
22128         Reported by Sam Steingold <sds@gnu.org>
22129         and Hasso Tepper <hasso@netbsd.org>.
22130
22131 2009-09-16  Eric Blake  <ebb9@byu.net>
22132
22133         unlinkdir: port to mingw
22134         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
22135         on which no one can unlink a directory.
22136
22137         stdlib: sort witness names
22138         * modules/stdlib (Makefile.am): Sort replacements.
22139         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
22140         * lib/stdlib.in.h: Likewise.
22141
22142         parse-duration-tests: avoid link failure
22143         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
22144         LIBINTL.
22145         Reported by Tom G. Christensen.
22146
22147         openat-tests: ensure unlinkat behaves like rmdir
22148         * tests/test-rmdir.c (main): Factor guts...
22149         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
22150         * modules/rmdir-tests (Files): Ship new file.
22151         * modules/openat-tests: New test.
22152         * tests/test-unlinkat.c: Likewise.
22153
22154         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
22155         * modules/rmdir-errno (Status, Notice): Now obsolete.
22156
22157         rmdir: work around cygwin 1.5.x and mingw bugs
22158         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
22159         * lib/rmdir.c (rmdir): Work around it.
22160         * modules/rmdir (Status, Notice): No longer obsolete.
22161         (Files): Add dos.m4.
22162         (Depends-on): Add unistd.
22163         (configure.ac): Set witnesses.
22164         (License): Relax to LGPLv2+.
22165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
22166         * modules/unistd (Makefile.am): Substitute witnesses.
22167         * lib/unistd.in.h (rmdir): Declare replacement.
22168         * doc/posix-functions/rmdir.texi (rmdir): Document this.
22169         * modules/rmdir-tests: New tests.
22170         * tests/test-rmdir.c: Likewise.
22171
22172 2009-09-15  Eric Blake  <ebb9@byu.net>
22173
22174         fchdir: improve use of replacement functions
22175         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
22176         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
22177         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
22178         REPLACE_CLOSEDIR.
22179         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
22180         * modules/sys_stat (Makefile.am): Substitute correct witness.
22181         * modules/dirent (Makefile.am): Likewise.
22182         * modules/unistd (Makefile.am): Likewise.
22183         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
22184         * lib/unistd.in.h (dup): Likewise.
22185         * lib/sys_stat.in.h (fstat): Likewise.
22186
22187         maint: ignore gnulib-tool temp files
22188         * .gitignore: Ignore files created during gnulib-tool --test.
22189
22190 2009-09-13  Jim Meyering  <meyering@redhat.com>
22191
22192         posixtm: don't reject a time that specify "60" as the number of seconds
22193         * lib/posixtm.c (posixtime): The code to reject invalid dates
22194         would also reject a time specified with the .60 suffix.
22195         But POSIX allows that, in order to accommodate leap seconds.
22196         So don't reject it.
22197         (main): Adjust tests accordingly.
22198         * modules/posixtm (Depends-on): Add stpcpy.
22199
22200 2009-09-11  Jim Meyering  <meyering@redhat.com>
22201
22202         announce-gen: include [$release_type] in emitted Subject:
22203         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
22204         e.g., [stable] in the emitted Subject: line.
22205
22206 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22207
22208         Remove obsolete macros from several modules.
22209         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
22210         obsolete Autoconf macros with their modern counterparts.
22211         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
22212         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
22213         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
22214         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
22215         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
22216         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22217         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22218         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22219         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22220         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
22221         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
22222         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22223         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
22224         * m4/sockets.m4 (gl_SOCKETS): Likewise.
22225         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
22226         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
22227         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
22228         * m4/time_r.m4 (gl_TIME_R): Likewise.
22229         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22230         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
22231         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
22232
22233         Fix copyright header in build-aux scripts.
22234         * build-aux/git-version-gen: Fix copyright header to match GPLv3
22235         recommendation.
22236         * build-aux/ncftpput-ftp: Likewise.
22237         * build-aux/update-copyright: Likewise.
22238
22239 2009-09-09  Eric Blake  <ebb9@byu.net>
22240
22241         test-link: allow Linux choice of errno
22242         * tests/test-link.c (main): Relax test for alternate error.
22243
22244         strndup: fix improper m4 caching
22245         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
22246         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
22247         (gl_PREREQ_STRNDUP): Delete.
22248         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
22249         * modules/string (Makefile.am): Substitute it.
22250         * lib/string.in.h (strndup): Modernize prototype.
22251
22252         getcwd: port to mingw
22253         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
22254         different from the POSIX assumptions made throughout the getcwd
22255         module; fortunately, the mingw getcwd does not need replacement.
22256         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
22257         * modules/getcwd-tests: New test.
22258         * tests/test-getcwd.c: Likewise.
22259
22260         link: fix platform bugs
22261         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
22262         * lib/link.c (link): Work around them.  Fix related mingw bug.
22263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
22264         * modules/unistd (Makefile.am): Substitute it.
22265         * lib/unistd.in.h (link): Declare replacement.
22266         * doc/posix-functions/link.texi (link): Document this.
22267         * modules/link (Depends-on): Add strdup-posix, sys_stat.
22268
22269         test-link: consolidate into single C program, test more cases
22270         * tests/test-link.sh: Delete.
22271         * tests/test-link.c: Test more error conditions.  Exposes bugs on
22272         at least Cygwin and Solaris.
22273         * modules/link-tests (Files): Remove unused file.
22274         (Depends-on): Add errno, sys_stat.
22275         (Makefile.am): Simplify.
22276
22277 2009-09-08  Bruno Haible  <bruno@clisp.org>
22278
22279         Work around towlower, towupper bug on mingw.
22280         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
22281         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
22282         * doc/posix-functions/towlower.texi: Mention the mingw bug.
22283         * doc/posix-functions/towupper.texi: Likewise.
22284         Reported by Eric Blake.
22285
22286 2009-09-08  Jim Meyering  <meyering@redhat.com>
22287
22288         build: don't try to run autoheader if we don't use it
22289         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
22290         is not used in configure.ac.
22291
22292 2009-09-08  Eric Blake  <ebb9@byu.net>
22293
22294         euidaccess: fix compilation error
22295         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
22296
22297         rawmemchr: relax license
22298         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
22299         okay.
22300         Reported by Jim Meyering.
22301
22302         mkfifoat: new module
22303         * modules/mkfifoat: New file.
22304         * lib/mkfifoat.c: Likewise.
22305         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
22306         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22307         * modules/sys_stat (Makefile.am): Use them.
22308         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
22309         * MODULES.html.sh (File system functions): Mention module.
22310         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
22311         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
22312         * modules/mkfifoat-tests: New test.
22313         * tests/test-mkfifoat.c: Likewise.
22314
22315         strchrnul: relax license
22316         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
22317         okay.
22318         Reported by Jim Meyering.
22319
22320 2009-09-08  Eric Blake  <ebb9@byu.net>
22321
22322         fstatat: fix compilation on Solaris
22323         * lib/fstatat.c (includes): Add fcntl.h.
22324         Reported by Pádraig Brady.
22325
22326 2009-09-07  Eric Blake  <ebb9@byu.net>
22327
22328         rename: modernize replacement
22329         * modules/rename (Depends-on): Add stdio.
22330         (configure.ac): Declare witness.
22331         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
22332         stdio take care of replacement.
22333         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
22334         * modules/stdio (Makefile.am): Substitute them.
22335         * lib/stdio.in.h (rename): Declare replacement.
22336         * lib/rename.c (includes): Allow cross-compilation to non-windows
22337         machines.
22338         * doc/posix-functions/rename.texi (rename): Improve
22339         documentation.
22340
22341         stdio: sort witness names
22342         * modules/stdio (Makefile.am): Sort replacements.
22343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22344         * lib/stdio.in.h: Likewise.
22345
22346         getcwd: minor cleanups
22347         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
22348         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
22349
22350         openat: provide more convenience names
22351         * modules/faccessat (configure.ac): Add C witness.
22352         * lib/unistd.in.h (readlinkat): Fix typo.
22353         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
22354         convenience wrappers.
22355         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
22356         wrappers in syntax checks.
22357
22358 2009-09-06  Eric Blake  <ebb9@byu.net>
22359
22360         doc: fix comments in recent patches
22361         * lib/faccessat.c: Mention correct function.
22362         * lib/fchmodat.c: Likewise.
22363         * lib/fchownat.c: Likewise.
22364         * lib/symlinkat.c: Likewise.
22365         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
22366         constants.
22367
22368         faccessat, symlinkat: continue cleanup of previous patch
22369         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
22370         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
22371         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
22372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
22373         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
22374         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
22375         set.
22376
22377 2009-09-06  Bruno Haible  <bruno@clisp.org>
22378
22379         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
22380         (fstatat): Declare if GNULIB_FSTATAT is set.
22381         (mkdirat): Declare if GNULIB_MKDIRAT is set.
22382         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
22383         (unlinkat): Declare if GNULIB_UNLINKAT is set.
22384         * modules/fcntl-h (Files): Remove m4/openat.m4.
22385         * modules/sys_stat (Files): Remove m4/openat.m4.
22386         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
22387         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
22388         * modules/unistd (Files): Remove m4/openat.m4.
22389         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
22390         GNULIB_OPENAT.
22391         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
22392         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
22393         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
22394         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
22395         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
22396         gl_OPENAT_DEFAULTS.
22397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
22398         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
22399         Don't require gl_OPENAT_DEFAULTS.
22400         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
22401         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
22402         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
22403         (gl_OPENAT_DEFAULTS): Remove macro.
22404
22405 2009-09-06  Bruno Haible  <bruno@clisp.org>
22406
22407         * modules/openat (configure.ac): Remove unneeded witness.
22408
22409 2009-09-06  Bruno Haible  <bruno@clisp.org>
22410
22411         Set errno to ENOSYS when a function is entirely unsupported.
22412         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
22413         EOPNOTSUPP.
22414         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
22415         * modules/chown (Depends-on): Remove errno.
22416
22417 2009-09-06  Bruno Haible  <bruno@clisp.org>
22418
22419         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
22420
22421 2009-09-06  Bruno Haible  <bruno@clisp.org>
22422
22423         * lib/sys_stat.in.h: Fix preprocessor command indentation.
22424
22425 2009-09-06  Ben Pfaff  <blp@gnu.org>
22426             Bruno Haible  <bruno@clisp.org>
22427
22428         Work around a glibc bug in strtok_r.
22429         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
22430         Undefine if UNDEFINE_STRTOK_R is set.
22431         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
22432         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22433         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
22434         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
22435         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
22436         UNDEFINE_STRTOK_R.
22437         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
22438
22439 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
22440
22441         exclude: minor fix
22442         * lib/exclude.c: Include wctype.h
22443
22444 2009-09-06  Akim Demaille  <demaille@gostai.com>
22445
22446         bootstrap: improve error message
22447         * build-aux/bootstrap (find_tool): Upon failure, report the list
22448         of candidates.
22449         Honor the initial value of the envvar.
22450
22451 2009-09-05  Eric Blake  <ebb9@byu.net>
22452
22453         symlinkat: new module
22454         * modules/symlinkat: New file.
22455         * lib/symlinkat.c: Likewise.
22456         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
22457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
22458         * modules/unistd (Makefile.am): Use them.
22459         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
22460         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
22461         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
22462         * MODULES.html.sh (File system functions): Mention module.
22463         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22464         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22465         * modules/symlinkat-tests: New test.
22466         * tests/test-symlinkat.c: Likewise.
22467
22468         test-openat-safer: add more checks
22469         * tests/test-openat-safer.c (main): Check more code paths.
22470
22471 2009-09-05  Jim Meyering  <meyering@redhat.com>
22472
22473         syntax-check: detect unnecessary inclusion of openat.h
22474         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
22475
22476 2009-09-05  Bruno Haible  <bruno@clisp.org>
22477
22478         Support towlower, towupper.
22479         * doc/posix-functions/towlower.texi: Mention module wctype.
22480         * doc/posix-functions/towupper.texi: Likewise.
22481         * lib/wctype.in.h (towlower, towupper): New functions.
22482         * tests/test-wctype.c: Include stdio.h, stdlib.h.
22483         (ASSERT): New macro.
22484         (e): New variable.
22485         (main): Test also towlower, towupper. Test WEOF argument.
22486         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22487
22488 2009-09-05  Bruno Haible  <bruno@clisp.org>
22489
22490         Fix conversion behaviour when the input is invalid.
22491         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
22492         mark occurring in first pass of indirect conversion.
22493         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
22494         input.
22495         Found by clang's static analyzer.
22496
22497 2009-09-05  Bruno Haible  <bruno@clisp.org>
22498
22499         * tests/test-striconveh.c (main): Test indirect conversion on platforms
22500         where direct conversion is possible.
22501
22502 2009-09-04  Eric Blake  <ebb9@byu.net>
22503
22504         openat: fail with ENOENT on empty name
22505         * lib/openat-proc.c (openat_proc_name): Special-case the empty
22506         buffer.
22507
22508         link-follow: fix logic bug in prior patch
22509         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
22510         reversed sense of yes and no in prior patch.  Avoid confusing
22511         compilation failure with desired semantics.
22512
22513         link-follow: accomodate mingw and cross-compilation
22514         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
22515         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
22516         cross-compilation results to -1, to make linkat easier to
22517         implement when cross-compiling.  Trivially support mingw.
22518         * modules/link-follow (configure.ac): Call new name.
22519         * NEWS: Mention this.
22520
22521 2009-09-03  Eric Blake  <ebb9@byu.net>
22522
22523         faccessat: compile replacement
22524         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
22525         needed.
22526
22527         fts: fix compilation error
22528         * lib/fts.c (includes): Re-add "openat.h", for
22529         openat_needs_fchdir.
22530
22531         faccessat: new module
22532         * modules/faccessat: New file.
22533         * lib/faccessat.c: Likewise.
22534         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
22535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22536         * modules/unistd (Makefile.am): Use it.
22537         * lib/unistd.in.h (faccessat): Declare it.
22538         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
22539         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
22540         * MODULES.html.sh (File system functions): Mention it.
22541         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
22542         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
22543
22544         euidaccess: prefer POSIX over non-standard implementation
22545         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
22546         * lib/euidaccess.c (euidaccess): Use it if available.
22547
22548         openat: make template easier to use
22549         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
22550         AT_FUNC_F2 to be undefined.
22551         (VALIDATE_FLAG): New macro; use it to reject bad flags.
22552         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
22553         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
22554         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
22555         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
22556         Likewise.
22557         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
22558         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
22559         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
22560         Likewise.
22561
22562         openat: declare in POSIX headers
22563         * NEWS: Mention this.
22564         * modules/openat (configure.ac): Declare witnesses.
22565         (Depends-on): Add fcntl-h, sys_stat, unistd.
22566         (Include): Mention correct headers.
22567         * modules/fcntl-h (Depends-on): Add link-warning.
22568         (Files): Add openat.m4.
22569         (Makefile.am): Substitute witnesses.
22570         * modules/sys_stat (Files, Makefile.am): Likewise.
22571         * modules/unistd (Files, Makefile.am): Likewise.
22572         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
22573         (gl_OPENAT_DEFAULTS): New macro.
22574         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
22575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
22576         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
22577         (SYS_STAT_H): Remove unused variable.
22578         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
22579         * lib/fcntl--.h (includes): Remove unneeded header.
22580         * lib/openat-safer.c (includes): Likewise.
22581         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
22582         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
22583         appropriate headers.
22584         (__OPENAT_PREFIX): Delete.
22585         * lib/fcntl.in.h (openat): Provide declaration.
22586         (AT_FDCWD): Fix Solaris bug.
22587         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
22588         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
22589         * lib/fchmodat.c (includes):  Adjust to find declaration.
22590         * lib/fchownat.c (includes): Likewise.
22591         * lib/mkdirat.c (includes): Likewise.
22592         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
22593         still visible.
22594
22595 2009-09-02  Eric Blake  <ebb9@byu.net>
22596
22597         errno: use consistently
22598         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
22599         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
22600         * lib/canonicalize.c (ELOOP): Likewise.
22601         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
22602         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
22603         * lib/lchown.c (EOPNOTSUPP): Likewise.
22604         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
22605         * lib/savewd.c (ESTALE): Likewise.
22606         * lib/settime.c (ENOSYS): Likewise.
22607         * lib/utimens.c (ENOSYS): Likewise.
22608         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
22609         * lib/chdir-safer.c (ELOOP): Likewise.
22610         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
22611         * modules/c-stack (Depends-on): Add errno.
22612         * modules/canonicalize (Depends-on): Likewise.
22613         * modules/chdir-safer (Depends-on): Likewise.
22614         * modules/fdopendir (Depends-on): Likewise.
22615         * modules/inet_ntop (Depends-on): Likewise.
22616         * modules/inet_pton (Depends-on): Likewise.
22617         * modules/lchown (Depends-on): Likewise.
22618         * modules/openat (Depends-on): Likewise.
22619         * modules/savewd (Depends-on): Likewise.
22620         * modules/settime (Depends-on): Likewise.
22621         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
22622
22623         fts: avoid leaking fds
22624         * modules/fts (Depends-on): Add cloexec.
22625         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
22626         flag.
22627
22628         fts: make directory fds more robust
22629         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
22630         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
22631
22632         backupfile, chdir-long, fts, savedir: make safer
22633         * lib/backupfile.c (includes): Use "dirent--.h", since
22634         numbered_backup can write to stderr during readdir.
22635         * lib/savedir.c (includes): Likewise.
22636         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
22637         emulation can write to stderr on failure.
22638         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
22639         * lib/getcwd.c: Document why opendir_safer is unused.
22640         * lib/glob.c: Likewise.
22641         * lib/scandir.c: Likewise.
22642         * lib/openat-proc.c: Likewise, for open_safer.
22643         * modules/backupfile (Depends-on): Add dirent-safer.
22644         * modules/savedir (Depends-on): Likewise.
22645         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
22646         * modules/chdir-long (Depends-on): Add openat-safer.
22647
22648         openat-safer: new module
22649         * modules/openat-safer: New file.
22650         * lib/openat-safer.c: Likewise.
22651         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
22652         * lib/fcntl-safer.h (openat_safer): Declare.
22653         * lib/fcntl--.h (openat): Override.
22654         * MODULES.html.sh (File descriptor based I/O): Mention it.
22655         * lib/openat.h: Add double-inclusion guards.
22656         * lib/openat.c (includes): Only include "fcntl-safer.h", not
22657         "fcntl--.h", so we can implement openat.
22658         * modules/openat-safer-tests: New test.
22659         * tests/test-openat-safer.c: New file.
22660
22661         dirent-safer: new module
22662         * modules/dirent-safer: New file.
22663         * lib/dirent--.h: Likewise.
22664         * lib/dirent-safer.h: Likewise.
22665         * lib/opendir-safer.c: Likewise.
22666         * m4/dirent-safer.m4: Likewise.
22667         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
22668         * modules/dirent-safer-tests: New test.
22669         * tests/test-dirent-safer.c: New file.
22670         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
22671
22672         fdopendir: optimize on mingw
22673         * lib/unistd.in.h (_gl_directory_name): New prototype.
22674         * lib/fchdir.c (_gl_directory_name): Implement it.
22675         (fchdir): Use it to simplify implementation.
22676         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
22677         fchdir, when available, to avoid calling [f]chdir().
22678
22679         fdopendir: split into its own module
22680         * lib/openat.c (fdopendir): Move...
22681         * lib/fdopendir.c: ...into new file.
22682         * modules/fdopendir: New module.
22683         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
22684         * modules/openat (Depends-on): Add fdopendir.
22685         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
22686         fdopendir here.
22687         * modules/savedir (Depends-on): Only need fdopendir, not full
22688         openat.
22689         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
22690         * lib/openat.h (fdopendir): Drop prototype.
22691         * lib/dirent.in.h (fdopendir): Provide prototype.
22692         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
22693         * modules/dirent (Makefile.am): Substitute them.
22694         * MODULES.html.sh (File system functions): Mention it.
22695         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
22696         * modules/fdopendir-tests: New file.
22697         * tests/test-fdopendir.c: Likewise.
22698
22699         fchdir: use more consistent macro convention
22700         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
22701         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
22702         REPLACE_FCHDIR, rather than relying on config.h macros.
22703         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
22704         inside a single make-time REPLACE_FCHDIR block, rather than using
22705         the config.h FCHDIR_REPLACEMENT.
22706         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
22707         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
22708         Manage fstat replacement.
22709         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
22710         REPLACE_FCHDIR.
22711         * modules/sys_stat (Files): Add m4/unistd_h.m4.
22712         (Makefile.am): Substitute REPLACE_FCHDIR.
22713         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
22714         FCHDIR_REPLACEMENT.
22715         * lib/dup-safer.c (dup_safer): Likewise.
22716         * lib/dup2.c (rpl_dup2): Likewise.
22717         * lib/dup3.c (rpl_dup3): Likewise.
22718         * lib/open.c (rpl_open): Likewise.
22719
22720         fchdir: simplify error handling, and support dup3
22721         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
22722         stdbool, malloc-posix, realloc-posix.
22723         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
22724         (ensure_dirs_slot): Return false on allocation failure.
22725         (rpl_dup2): Delete.
22726         (_gl_register_dup): New function.
22727         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
22728         (_gl_register_fd): Close fd on allocation failure.
22729         * lib/fcntl.in.h (_gl_register_fd): Update signature.
22730         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
22731         prototype.
22732         (rpl_dup2_fchdir): Delete prototype.
22733         * lib/open.c (open): Update caller.
22734         * lib/dup2.c (dup2): Track fchdir metadata.
22735         * lib/dup3.c (dup3): Likewise.
22736         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
22737         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
22738
22739 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22740
22741         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
22742         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
22743         don't pass arguments to AC_OUTPUT.
22744
22745 2009-09-02  Bruno Haible  <bruno@clisp.org>
22746
22747         * modules/mkdtemp (License): Relicense under LGPLv2+.
22748         Reported by Paolo Bonzini.
22749
22750 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22751
22752         Replace uses of obsolete autoconf macros in Jim's modules.
22753         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
22754         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
22755         can evoke a warning from autoconf when run with -Wobsolete
22756         enabled.  They were declared obsolete for good reasons (see
22757         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
22758         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
22759         should not continue using the deprecated macros.
22760         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
22761         obsolete Autoconf macros with modern counterparts.
22762         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22763         * m4/dos.m4 (gl_AC_DOS): Likewise.
22764         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
22765         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
22766         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
22767         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
22768         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
22769         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
22770         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
22771         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
22772         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
22773         Likewise.
22774         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
22775         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22776         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
22777         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
22778         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
22779         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
22780
22781 2009-09-01  Eric Blake  <ebb9@byu.net>
22782
22783         fchdir: fix off-by-one bug in previous patch
22784         * lib/fchdir.c (rpl_fstat): Use correct bounds.
22785         (_gl_unregister_fd): Delete useless if.
22786
22787 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
22788
22789         maint.mk: sort the list of syntax-check rules
22790         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
22791         easier to get a sense of progress when the rules are run sequentially
22792         and take a long time.
22793
22794 2009-09-01  Simon Josefsson  <simon@josefsson.org>
22795
22796         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
22797         * modules/netinet_in: Likewise.
22798         * modules/sys_file: Likewise.
22799         * modules/sys_ioctl: Likewise.
22800         * modules/sys_select: Likewise.
22801         * modules/sys_socket: Likewise.
22802         * modules/sys_stat: Likewise.
22803         * modules/sys_time: Likewise.
22804         * modules/sys_times: Likewise.
22805         * modules/sys_utsname: Likewise.
22806         * modules/sys_wait: Likewise.
22807
22808 2009-09-01  Jim Meyering  <meyering@redhat.com>
22809
22810         fts: help ensure that return values are not ignored
22811         * lib/fts_.h (__GNUC_PREREQ): Define.
22812         (__attribute_warn_unused_result__): Define.
22813         (fts_children, fts_close, fts_open, fts_read): Declare with
22814         __attribute_warn_unused_result__.
22815
22816         fts: fts_close now fails also when closing a dir file descriptor fails
22817         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
22818         and propagate to caller, along with errno.
22819
22820         announce-gen: correct formatting in --help output
22821         * build-aux/announce-gen (usage): Move the one-line description in
22822         --help output "up", to where it belongs, just after Usage:.
22823
22824 2009-08-31  Eric Blake  <ebb9@byu.net>
22825
22826         fchdir: port to mingw
22827         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
22828         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
22829         opened, then use a substitute.
22830         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
22831         replacement.
22832         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
22833         (_gl_register_fd): No need to check stat if open already filters
22834         all directories.
22835         (fchdir): Fix error condition to match POSIX.
22836         * modules/fchdir (Depends-on): Add sys_stat.
22837         * doc/posix-functions/open.texi (open): Document the limitation.
22838         * modules/fchdir-tests: New file.
22839         * tests/test-fchdir.c: Likewise.
22840
22841         canonicalize: allow cross-testing from cygwin to mingw
22842         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
22843         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
22844         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
22845         Likewise.
22846         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
22847         target does not support symlinks.
22848         * tests/test-canonicalize-lgpl.sh: Likewise.
22849
22850         chown: avoid compilation warning on mingw
22851         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
22852         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
22853         mingw.
22854         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
22855         * modules/chown (Depends-on): Add errno.
22856
22857 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22858
22859         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
22860         command.
22861
22862 2009-08-31  Jim Meyering  <meyering@redhat.com>
22863
22864         canonicalize: remove useless initialization
22865         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
22866         initialization of local, "end".
22867
22868 2009-08-30  Bruno Haible  <bruno@clisp.org>
22869
22870         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
22871         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
22872         ENOSYS.
22873
22874 2009-08-30  Bruno Haible  <bruno@clisp.org>
22875
22876         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
22877         /usr/xpg4/bin/tr when it exists.
22878         * tests/test-pipe-filter-gi1.sh: Likewise.
22879
22880 2009-08-30  Bruno Haible  <bruno@clisp.org>
22881
22882         Work around deficient /usr/bin/id program on Solaris.
22883         * tests/test-file-has-acl.sh (ID): New variable.
22884         * tests/test-set-mode-acl.sh (ID): Likewise.
22885         * tests/test-copy-acl.sh (ID): Likewise.
22886         * tests/test-copy-file.sh (ID): Likewise.
22887
22888 2009-08-30  Bruno Haible  <bruno@clisp.org>
22889
22890         New module 'xstriconveh'.
22891         * lib/xstriconveh.h: New file.
22892         * lib/xstriconveh.c: New file.
22893         * modules/xstriconveh: New file.
22894
22895 2009-08-30  Bruno Haible  <bruno@clisp.org>
22896
22897         Make it easier to use mem_cd_iconveh.
22898         * lib/striconveh.h (iconveh_t): New type.
22899         (iconveh_open, iconveh_close): New declarations.
22900         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
22901         with a single 'const iconveh_t *' argument.
22902         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
22903         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
22904         with a single 'const iconveh_t *' argument.
22905         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
22906         * tests/test-striconveh.c (main): Update.
22907         * NEWS: Mention the change.
22908
22909 2009-08-30  Bruno Haible  <bruno@clisp.org>
22910
22911         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
22912         problem.
22913
22914 2009-08-30  Bruno Haible  <bruno@clisp.org>
22915
22916         Work around iconv_open problem on Solaris.
22917         * lib/iconv_open-solaris.gperf: New file.
22918         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
22919         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
22920         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
22921         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
22922         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
22923         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
22924
22925 2009-08-29  Jim Meyering  <meyering@redhat.com>
22926
22927         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
22928         * top/maint.mk (cvs-check): Remove target; it was just an alias
22929         to the better-named vc-diff-check.
22930         (maintainer-distcheck): Remove rule.  It was used only from
22931         the (alpha/beta/major) target, and all of its commands but one
22932         were coreutils-specific.
22933         (vc-dist): Remove rule.
22934         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
22935         Run vc-diff-check, not vc-dist.
22936         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
22937
22938 2009-08-27  Bruno Haible  <bruno@clisp.org>
22939
22940         * tests/test-bitrotate.c (main): Remove test that uses a shift count
22941         of 0.
22942
22943 2009-08-27  Bruno Haible  <bruno@clisp.org>
22944
22945         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
22946         compilers.
22947         * doc/func.texi: Document the SunPRO C bug.
22948
22949 2009-08-27  Bruno Haible  <bruno@clisp.org>
22950
22951         Fix link error on Solaris.
22952         * tests/test-parse-duration.c (xstrdup): Remove function.
22953
22954 2009-08-26  Pádraig Brady  <P@draigbrady.com>
22955
22956         ignore-value: handle pointer types, too
22957         * lib/ignore-value.h (__attribute__): Remove definition.
22958         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
22959         of a more concise and more-often effective "(void) i" statement.
22960         (ignore_ptr): New function to suppress warnings from functions that
22961         return pointers, and to make it explicit that one function doesn't
22962         handle all cases.
22963
22964 2009-08-25  Bruno Haible  <bruno@clisp.org>
22965
22966         dup2: work around a Linux bug.
22967         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
22968         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
22969         * doc/posix-functions/dup2.texi: Mention the Linux bug.
22970         Reported by Simon Josefsson.
22971
22972 2009-08-25  Jim Meyering  <meyering@redhat.com>
22973
22974         libguestfs uses gnulib
22975         * users.txt: Add libguestfs.
22976
22977 2009-08-24  Eric Blake  <ebb9@byu.net>
22978
22979         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
22980         * lib/pipe2.c (includes): Add binary-io.h.
22981         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
22982
22983 2009-08-24  Bruno Haible  <bruno@clisp.org>
22984
22985         Tolerate declared but missing accept4 syscall.
22986         * lib/accept4.c (accept4): Invoke original accept4 function first, if
22987         available.
22988         * lib/sys_socket.in.h (accept4): If the function is already present,
22989         override it.
22990         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
22991         * modules/accept4 (Makefile.am): Compile accept4.c always.
22992         Reported by Paolo Bonzini and Eric Blake.
22993
22994 2009-08-23  Bruno Haible  <bruno@clisp.org>
22995
22996         New module 'accept4'.
22997         * lib/sys_socket.in.h (accept4): New declaration.
22998         * lib/accept4.c: New file.
22999         * m4/accept4.m4: New file.
23000         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23001         GNULIB_ACCEPT4, HAVE_ACCEPT4.
23002         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
23003         HAVE_ACCEPT4.
23004         * modules/accept4: New file.
23005         * doc/glibc-functions/accept4.texi: Mention the new module.
23006
23007 2009-08-24  Jim Meyering  <meyering@redhat.com>
23008
23009         progname: also set global program_invocation_name, when possible
23010         Before this change, a libtool-enabled program that calls glibc's
23011         error function would report the program name as
23012         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
23013         * modules/progname (configure.ac): Check for a declaration of
23014         program_invocation_name.
23015         * lib/progname.c:  Include <errno.h>.
23016         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
23017         Set program_invocation_name.
23018
23019 2009-08-23  Bruno Haible  <bruno@clisp.org>
23020
23021         * lib/dup3.c: Include <string.h>.
23022
23023 2009-08-23  Bruno Haible  <bruno@clisp.org>
23024
23025         * lib/dup3.c (dup3): Test only once whether the system actually exists.
23026         * lib/pipe2.c (pipe2): Likewise.
23027         Suggested by Eric Blake.
23028
23029 2009-08-23  Bruno Haible  <bruno@clisp.org>
23030
23031         Tolerate declared but missing dup3 syscall.
23032         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
23033         * lib/unistd.in.h (dup3): If the function is already present,
23034         override it.
23035         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
23036         * modules/dup3 (Makefile.am): Compile dup3.c always.
23037         Reported by Paolo Bonzini.
23038
23039 2009-08-23  Bruno Haible  <bruno@clisp.org>
23040
23041         Tolerate declared but missing pipe2 syscall.
23042         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
23043         available.
23044         * lib/unistd.in.h (pipe2): If the function is already present,
23045         override it.
23046         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
23047         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
23048         Reported by Paolo Bonzini.
23049
23050 2009-08-23  Bruno Haible  <bruno@clisp.org>
23051
23052         * lib/pipe2.c (pipe2): Move #ifs inside function.
23053
23054 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
23055
23056         quotearg: document limitations of quote_these_too
23057         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
23058         those limitations are created.
23059         * lib/quotearg.h (set_char_quoting): Document that digits and
23060         letters that are special after backslash are not permitted.
23061         (quotearg_char): Cross-reference set_char_quoting documentation.
23062
23063 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
23064
23065         quotearg: implement custom_quoting_style
23066         * lib/quotearg.c: (struct quoting_options): Add left_quote and
23067         right_quote fields.
23068         (set_custom_quoting): New public function.
23069         (quotearg_buffer_restyled): Add left_quote and right_quote
23070         arguments, handle them very much like locale quoting, and update
23071         all uses.
23072         (quotearg_n_custom): New public function.
23073         (quotearg_n_custom_mem): New public function.
23074         (quotearg_custom): New public function.
23075         (quotearg_custom_mem): New public function.
23076         * lib/quotearg.h: Prototype and document new public functions.
23077         (enum quoting_style): For escape_quoting_style and
23078         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
23079         ignored even though they're otherwise like c_quoting_style.
23080         Add custom_quoting_style member and document with comparison to
23081         clocale_quoting_style.
23082         * tests/test-quotearg.c (custom_quotes): New array.
23083         (custom_results): New array.
23084         (main): Extend to test custom quoting.
23085
23086 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
23087
23088         quotearg: fix right quote escaping when it's in quote_these_too
23089         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
23090         quote, be sure to prepend only one backslash.
23091         * tests/test-quotearg.c (use_quote_double_quotes): New function.
23092         (main): Test it.
23093
23094 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
23095
23096         quotearg-tests: test escaping of embedded locale quotes
23097         * tests/test-quotearg.c (struct result_strings): Add member for
23098         new input.
23099         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
23100         (inputs): Add new input.
23101         (results_g): Add expected results.
23102         (flag_results): Likewise.
23103         (locale_results): Likewise.
23104         (compare_strings): Check those.
23105
23106 2009-08-23  Bruno Haible  <bruno@clisp.org>
23107
23108         Tests for module 'dup3'.
23109         * modules/dup3-tests: New file.
23110         * tests/test-dup3.c: New file.
23111
23112         New module 'dup3'.
23113         * lib/unistd.in.h (dup3): New declaration.
23114         * lib/dup3.c: New file.
23115         * m4/dup3.m4: New file.
23116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
23117         HAVE_DUP3.
23118         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
23119         * modules/dup3: New file.
23120         * doc/glibc-functions/dup3.texi: Mention the new module.
23121
23122 2009-08-23  Bruno Haible  <bruno@clisp.org>
23123
23124         Tweak the dup2 test.
23125         * tests/test-dup2.c (main): Create the test file empty. Verify that an
23126         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
23127         the test file is still empty. Fix argument order of lseek.
23128
23129 2009-08-23  Bruno Haible  <bruno@clisp.org>
23130
23131         Avoid test link errors when the modules getopt-gnu, gettext are used.
23132         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
23133         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23134
23135 2009-08-23  Bruno Haible  <bruno@clisp.org>
23136
23137         Fix getdtablesize() on mingw.
23138         * lib/getdtablesize.c (getdtablesize): Implement differently.
23139         * lib/unistd.in.h (getdtablesize): Improve comment.
23140
23141 2009-08-23  Bruno Haible  <bruno@clisp.org>
23142
23143         New module 'mkostemp'.
23144         Based on Ulrich Drepper's 2007-08-10 change in glibc.
23145         * lib/stdlib.in.h (mksotemp): New declaration.
23146         * lib/mkostemp.c: New file, from glibc with modifications.
23147         * lib/tempname.h (GT_FILE): Remove outdated comment.
23148         (gen_tempname): Add flags argument.
23149         * lib/tempname.c (__GT_BIGFILE): Remove macro.
23150         (__GT_FILE): Map to 1.
23151         (small_open, large_open): Remove macros.
23152         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
23153         * lib/mkstemp.c (mkstemp): Update.
23154         * lib/mkdtemp.c (mkdtemp): Likewise.
23155         * m4/mkostemp.m4: New file.
23156         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
23157         HAVE_MKOSTEMP.
23158         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
23159         HAVE_MKOSTEMP.
23160         * modules/mkostemp: New file, based on modules/mkstemp.
23161         * doc/glibc-functions/mkostemp.texi: Mention the new module.
23162         * NEWS: Mention the change.
23163
23164 2009-08-23  Bruno Haible  <bruno@clisp.org>
23165
23166         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
23167         Reported by Eric Blake.
23168
23169 2009-08-23  Bruno Haible  <bruno@clisp.org>
23170
23171         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
23172         Reported by Eric Blake.
23173
23174 2009-08-23  Bruno Haible  <bruno@clisp.org>
23175
23176         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
23177         * modules/pipe2 (Depends-on): Likewise.
23178
23179 2009-08-23  Eric Blake  <ebb9@byu.net>
23180
23181         fcntl-h: add O_TTY_INIT support
23182         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
23183         * tests/test-fcntl-h.c (o): Test it.
23184         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23185
23186         fcntl-h: rename from fcntl, in preparation for fcntl(2)
23187         * modules/fcntl: Move <fcntl.h> header replacement...
23188         * modules/fcntl-h: ...to new name, so as not to collide with
23189         like-named function.
23190         * tests/test-fcntl.c: Rename...
23191         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
23192         * modules/fcntl-tests: Rename...
23193         * modules/fcntl-h-tests: ...to this.  Update test file name.
23194         * modules/chdir-long (Depends-on): Update clients.
23195         * modules/chdir-safer (Depends-on): Likewise.
23196         * modules/fcntl-safer (Depends-on): Likewise.
23197         * modules/fts (Depends-on): Likewise.
23198         * modules/mkancesdirs (Depends-on): Likewise.
23199         * modules/mkdir-p (Depends-on): Likewise.
23200         * modules/open (Depends-on): Likewise.
23201         * modules/savewd (Depends-on): Likewise.
23202         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
23203         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23204
23205 2009-08-22  Bruno Haible  <bruno@clisp.org>
23206
23207         * modules/binary-io (License): Relicense under LGPL.
23208         * modules/pipe2 (License): Likewise.
23209
23210 2009-08-22  Bruno Haible  <bruno@clisp.org>
23211
23212         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
23213         return value.
23214         * lib/pipe-filter-gi.c (filter_init): Likewise.
23215         Reported by Eric Blake.
23216
23217 2009-08-22  Bruno Haible  <bruno@clisp.org>
23218
23219         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
23220         * modules/pipe (Depends-on): Add pipe2.
23221
23222 2009-08-22  Bruno Haible  <bruno@clisp.org>
23223
23224         Tests for module 'pipe2'.
23225         * modules/pipe2-tests: New file.
23226         * tests/test-pipe2.c: New file.
23227
23228         New module 'pipe2'.
23229         * lib/unistd.in.h (pipe2): New declaration.
23230         * lib/pipe2.c: New file.
23231         * m4/pipe2.m4: New file.
23232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
23233         HAVE_PIPE2.
23234         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
23235         * modules/pipe2: New file.
23236         * doc/glibc-functions/pipe2.texi: Mention the new module.
23237
23238 2009-08-22  Bruno Haible  <bruno@clisp.org>
23239
23240         Reference some new glibc functions.
23241         * doc/glibc-functions/accept4.texi: New file.
23242         * doc/glibc-functions/dup3.texi: New file.
23243         * doc/glibc-functions/mkostemp.texi: New file.
23244         * doc/glibc-functions/pipe2.texi: New file.
23245         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
23246         (Glibc sys/socket.h): Refer to accept4.
23247         (Glibc unistd.h): Refer to dup3, pipe2.
23248         Reported by Eric Blake.
23249
23250 2009-08-22  Jim Meyering  <meyering@redhat.com>
23251             Bruno Haible  <bruno@clisp.org>
23252
23253         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
23254         This makes it so packages using automake-1.11's silent-rules option
23255         can print e.g., a single "GEN    configmake.h" line, rather than
23256         the 30+ statements that perform the job.  If you want to see the
23257         actual commands, you can still run "make V=1".
23258         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
23259         so that make output is abbreviated when those variables are defined
23260         appropriately.
23261         * modules/argz: Likewise.
23262         * modules/arpa_inet: Likewise.
23263         * modules/byteswap: Likewise.
23264         * modules/configmake: Likewise.
23265         * modules/dirent: Likewise.
23266         * modules/errno: Likewise.
23267         * modules/fcntl: Likewise.
23268         * modules/float: Likewise.
23269         * modules/fnmatch: Likewise.
23270         * modules/getopt-posix: Likewise.
23271         * modules/glob: Likewise.
23272         * modules/iconv_open: Likewise.
23273         * modules/inttypes: Likewise.
23274         * modules/localcharset: Likewise.
23275         * modules/locale: Likewise.
23276         * modules/math: Likewise.
23277         * modules/netdb: Likewise.
23278         * modules/netinet_in: Likewise.
23279         * modules/poll: Likewise.
23280         * modules/posix_spawnp-tests: Likewise.
23281         * modules/sched: Likewise.
23282         * modules/search: Likewise.
23283         * modules/selinux-h: Likewise.
23284         * modules/signal: Likewise.
23285         * modules/spawn: Likewise.
23286         * modules/stdarg: Likewise.
23287         * modules/stdbool: Likewise.
23288         * modules/stddef: Likewise.
23289         * modules/stdint: Likewise.
23290         * modules/stdio: Likewise.
23291         * modules/stdlib: Likewise.
23292         * modules/string: Likewise.
23293         * modules/strings: Likewise.
23294         * modules/sys_file: Likewise.
23295         * modules/sys_ioctl: Likewise.
23296         * modules/sys_select: Likewise.
23297         * modules/sys_socket: Likewise.
23298         * modules/sys_stat: Likewise.
23299         * modules/sys_time: Likewise.
23300         * modules/sys_times: Likewise.
23301         * modules/sys_utsname: Likewise.
23302         * modules/sys_wait: Likewise.
23303         * modules/sysexits: Likewise.
23304         * modules/time: Likewise.
23305         * modules/unistd: Likewise.
23306         * modules/wchar: Likewise.
23307         * modules/wctype: Likewise.
23308
23309 2009-08-22  Jim Meyering  <meyering@redhat.com>
23310
23311         announce-gen: detect write failure
23312         * build-aux/announce-gen: Add Coda at end.
23313         Remove equivalent-but-more-verbose block at top.
23314
23315 2009-08-19  Akim Demaille  <demaille@gostai.com>
23316
23317         bootstrap: --help to stdout.
23318         * bootstrap (usage): Don't send --help to stderr.
23319         Use a here doc instead of a long string.
23320
23321 2009-08-21  Eric Blake  <ebb9@byu.net>
23322
23323         test-popen-safer: split from test-popen
23324         * tests/test-popen.c (main): Move...
23325         * tests/test-popen.h: ...into new file.
23326         * tests/test-popen-safer2.c: New file.
23327         * modules/popen-tests (Files): Add test-popen.h.
23328         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
23329         Suggested by Bruno Haible.
23330
23331         test-fcntl-safer: split from test-open
23332         * tests/test-open.c (main): Move...
23333         * tests/test-open.h: ...into new file.
23334         * tests/test-fcntl-safer.c: New file.
23335         * modules/open-tests (Files): Add test-open.h.
23336         * modules/fcntl-safer-tests: New file.
23337         Suggested by Bruno Haible.
23338
23339         test-fopen-safer: split from test-fopen
23340         * tests/test-fopen.c (main): Move...
23341         * tests/test-fopen.h: ...into new file.
23342         * tests/test-fopen-safer.c: New file.
23343         * modules/fopen-tests (Files): Add test-fopen.h.
23344         * modules/fopen-safer-tests: New file.
23345         Suggested by Bruno Haible.
23346
23347 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
23348
23349         popen-safer: test O_CLOEXEC at run-time.
23350         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
23351
23352 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
23353
23354         fcntl: move more flags to the header
23355         * lib/cloexec.c: Do not define FD_CLOEXEC here.
23356         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
23357         * lib/fcntl.in.h: Do both things here.
23358
23359 2009-08-21  Jim Meyering  <meyering@redhat.com>
23360
23361         consistently remove $@-t before redirecting to it
23362         * modules/argz: Remove $@-t and $@ before redirecting to the former.
23363         * modules/alloca-opt: Likewise.
23364         * modules/byteswap: Likewise.
23365         * modules/fnmatch: Likewise.
23366         * modules/getopt-posix: Likewise.
23367         * modules/glob: Likewise.
23368         * modules/poll: Likewise.
23369         * modules/posix_spawnp-tests: Likewise.
23370         * modules/sys_socket: Likewise.
23371         * modules/sysexits: Likewise.
23372
23373 2009-08-21  Eric Blake  <ebb9@byu.net>
23374
23375         popen: simplify access to original popen
23376         * lib/popen.c (rpl_popen): No need to worry about popen being a
23377         macro.
23378         Reported by Bruno Haible.
23379
23380 2009-08-20  Eric Blake  <ebb9@byu.net>
23381
23382         build: avoid some compiler warnings
23383         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
23384         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
23385         type.
23386         (new_exclude_segment, excluded_file_pattern_p)
23387         (excluded_file_name_p): Reduce scope.
23388         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
23389         old-style declaration.
23390
23391 2009-08-20  Simon Josefsson  <simon@josefsson.org>
23392
23393         * tests/test-exclude1.sh: Handle Windows EOL.
23394         * tests/test-exclude2.sh: Likewise.
23395         * tests/test-exclude3.sh: Likewise.
23396         * tests/test-exclude4.sh: Likewise.
23397         * tests/test-exclude5.sh: Likewise.
23398         * tests/test-exclude6.sh: Likewise.
23399         * tests/test-exclude7.sh: Likewise.
23400
23401 2009-08-19  Akim Demaille  <demaille@gostai.com>
23402
23403         bootstrap: find sha1sum when named gsha1sum.
23404         * bootstrap (find_tool): New.
23405         ($SHA1SUM): New.
23406         Use it.
23407
23408 2009-08-20  Jim Meyering  <meyering@redhat.com>
23409
23410         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
23411         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
23412         expression that converts "." in a file name to "\." in the resulting
23413         regexp.  Start with a dummy statement, so that prior shell variable
23414         definitions are expanded portably.  Reported by Simon Josefsson.
23415
23416 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
23417
23418         Fix polling for writeability of a screen buffer.
23419         * lib/poll.c: Distinguish input and screen buffers for the
23420         Win32 implementation.
23421         * lib/select.c: Likewise.
23422
23423 2009-08-19  Eric Blake  <ebb9@byu.net>
23424
23425         popen-safer: prevent popen from clobbering std descriptors
23426         * modules/popen-safer: New file.
23427         * lib/popen-safer.c: Likewise.
23428         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
23429         * lib/stdio--.h (popen): Provide override.
23430         * lib/stdio-safer.h (popen_safer): Provide declaration.
23431         * tests/test-popen.c (includes): Partially test this.
23432         * modules/popen-safer-tests: New file, for more tests.
23433         * tests/test-popen-safer.c: Likewise.
23434         * MODULES.html.sh (file stream based Input/Output): Mention it.
23435
23436         tests: test some of the *-safer modules
23437         * modules/fopen-safer (Depends-on): Add fopen.
23438         * modules/fcntl-safer (Depends-on): Add fcntl.
23439         * modules/stdlib-safer (Depends-on): Add stdlib.
23440         (configure.ac): Set indicator.
23441         * modules/unistd-safer (configure.ac): Likewise.
23442         * modules/tmpfile-safer (configure.ac): Likewise.
23443         (Depends-on): Add tmpfile.
23444         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
23445         active.
23446         * tests/test-fopen.c (includes): Test safer versions when they are
23447         in use.
23448         * tests/test-open.c (includes): Likewise.
23449
23450         popen: fix cygwin 1.5 bug when stdin closed
23451         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
23452         * modules/popen: New file.
23453         * modules/popen-tests: Likewise.
23454         * tests/test-popen.c: Likewise.
23455         * m4/popen.m4: Likewise.
23456         * lib/popen.c: Likewise.
23457         * lib/stdio.in.h (popen): New declaration.
23458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
23459         * modules/stdio (Makefile.am): Likewise.
23460         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
23461
23462 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
23463
23464         maint.mk: give full control over update-copyright exclusions
23465         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
23466         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
23467         (update-copyright): Don't force inclusion of top-level
23468         ChangeLog.  Don't force exclusion of all COPYING files, but make
23469         them the default exclusion instead.
23470
23471 2009-08-16  Bruno Haible  <bruno@clisp.org>
23472
23473         Fix test failures on Solaris 10.
23474         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
23475         tests when Solaris iconv() is used.
23476         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
23477         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
23478         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
23479         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
23480         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
23481
23482 2009-08-16  Bruno Haible  <bruno@clisp.org>
23483
23484         Fix test failures on Solaris 10.
23485         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
23486         'tr' program and pass it as first argument.
23487         * tests/test-pipe-filter-gi1.sh: Likewise.
23488         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
23489         program as first argument.
23490         * tests/test-pipe-filter-gi1.c (main): Likewise.
23491
23492 2009-08-16  Eric Blake  <ebb9@byu.net>
23493
23494         fpurge: fix previous commits
23495         * modules/fpurge (Makefile.am): Make replacement conditional,
23496         partially reverting 2007-04-29 change; missed in previous
23497         attempt.
23498         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
23499         is missing.
23500
23501 2009-08-16  Bruno Haible  <bruno@clisp.org>
23502
23503         Clarify fpurge's effect on the file position.
23504         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
23505         * tests/test-fpurge.c (main): Make a second pass for checking the file
23506         position.
23507
23508 2009-08-16  Bruno Haible  <bruno@clisp.org>
23509
23510         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
23511         declaration of fpurge is missing.
23512         * tests/test-fpurge.c (main): Check that the file has not more contents
23513         than expected. Close the file before removing it.
23514
23515 2009-08-15  Eric Blake  <ebb9@byu.net>
23516
23517         fpurge: don't wrap working cygwin implementation
23518         * lib/fpurge.c (fpurge): Fix comment typo.
23519         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
23520         1.7 to avoid replacement.
23521         * tests/test-fpurge.c (main): Enhance test.
23522
23523 2009-08-15  Eric Blake  <ebb9@byu.net>
23524         and Jim Meyering  <meyering@redhat.com>
23525
23526         test-update-copyright: skip if perl is insufficient
23527         * tests/test-update-copyright.sh: Failure to run maintainer tool
23528         should not cause testsuite failure on cygwin 1.5.
23529
23530 2009-08-14  Eric Blake  <ebb9@byu.net>
23531
23532         doc: mention more functions added in cygwin 1.7.0
23533         * doc/posix-headers/limits.texi (limits.h): Update for recent
23534         cygwin additions.
23535         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
23536         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
23537         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
23538         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
23539         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
23540
23541 2009-08-14  Eric Blake  <ebb9@byu.net>
23542
23543         maint.mk: simplify update-copyright rule
23544         * top/maint.mk (update-copyright-local): Delete, and document how
23545         to do it in cfg.mk instead.
23546         (update-copyright-exclude-regexp): Delete, and document how to do
23547         it in .x-update-copyright instead.
23548         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
23549         exclude ChangeLog.
23550
23551 2009-08-14  Bruno Haible  <bruno@clisp.org>
23552
23553         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
23554
23555 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
23556
23557         maint.mk: support update-copyright-env
23558         * top/maint.mk (update-copyright-env): Define place-holder.
23559         (update-copyright): Expand $(update-copyright-env) before
23560         invoking update-copyright.
23561
23562 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
23563
23564         update-copyright: implement forced reformatting
23565         * build-aux/update-copyright: Implement and document
23566         UPDATE_COPYRIGHT_FORCE.
23567         * tests/test-update-copyright.sh: Test it.
23568
23569 2009-08-14  Eric Blake  <ebb9@byu.net>
23570         and Bruno Haible  <bruno@clisp.org>
23571
23572         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
23573         * tests/test-locale.c: Revert previous patch related to NULL.
23574         * tests/test-stdio.c: Likewise.
23575         * tests/test-stdlib.c: Likewise.
23576         * tests/test-string.c: Likewise.
23577         * tests/test-unistd.c: Likewise.
23578         * modules/time-tests (Depends-on): Add verify.
23579         * modules/wchar-tests (Depends-on): Likewise.
23580         * tests/test-time.c: Test for NULL compliance.
23581         * tests/test-wchar.c: Likewise.
23582         * modules/locale (Depends-on): Add stddef.
23583         * modules/stdio (Depends-on): Likewise.
23584         * modules/stdlib (Depends-on): Likewise.
23585         * modules/string (Depends-on): Likewise.
23586         * modules/time (Depends-on): Likewise.
23587         * modules/unistd (Depends-on): Likewise.
23588         * modules/wchar (Depends-on): Likewise.
23589         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
23590         * lib/stdlib.in.h (includes): Likewise.
23591         * lib/string.in.h (includes): Likewise.
23592         * lib/time.in.h (includes): Likewise.
23593         * lib/unistd.in.h (includes): Likewise.
23594         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
23595         replaced.
23596         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23597         * m4/stddef_h.m4: New file.
23598         * modules/stddef: Likewise.
23599         * lib/stddef.in.h: Likewise.
23600         * modules/stddef-tests: Likewise.
23601         * tests/test-stddef.c: Likewise.
23602         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
23603         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
23604         * doc/posix-headers/locale.texi (locale.h): Likewise.
23605         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
23606         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
23607         * doc/posix-headers/string.texi (string.h): Likewise.
23608         * doc/posix-headers/time.texi (time.h): Likewise.
23609         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
23610         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
23611
23612 2009-08-14  Eric Blake  <ebb9@byu.net>
23613
23614         doc: improve git diff of texinfo files
23615         * .gitattributes: Add rule for *.texi files, with hint on how to
23616         use it.
23617         Copied from m4, and based on a report by Bruno Haible.
23618
23619 2009-08-14  Bruno Haible  <bruno@clisp.org>
23620
23621         Disable multithread support by default on Cygwin 1.5.x for real.
23622         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
23623
23624 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
23625
23626         update-copyright: much ado about intervals
23627         * build-aux/update-copyright: Implement and document
23628         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
23629         of copyright year intervals.
23630         Also, document UPDATE_COPYRIGHT_YEAR.
23631         * tests/test-update-copyright.sh: Test it.
23632
23633         update-copyright: convert 2-digit to 4-digit years
23634         * build-aux/update-copyright: Implement and document.
23635         * tests/test-update-copyright.sh: Update.
23636
23637 2009-08-14  Jim Meyering  <meyering@redhat.com>
23638
23639         test-exclude: avoid coreutils "make check" failure
23640         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
23641         just as in test-argmatch.c.
23642
23643 2009-08-13  Eric Blake  <ebb9@byu.net>
23644
23645         test-dup2: fix bad assumption
23646         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
23647         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
23648
23649         test-version-etc: fix CRLF portability issue
23650         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
23651         recognize \r.
23652         * tests/test-argp-version-etc-1.sh: Likewise.
23653
23654         getopt: update client modules
23655         * modules/argp (Depends-on): Use getopt-gnu.
23656         * modules/git-merge-changelog (Depends-on): Likewise.
23657         * modules/long-options (Depends-on): Likewise.
23658         * modules/xstrtol (Depends-on): Likewise.
23659
23660 2009-08-13  Simon Josefsson  <simon@josefsson.org>
23661
23662         * tests/test-version-etc.sh: Don't fail on different
23663         project/version.  Don't fail on CRLF differences.  Rewrite to use
23664         multiple -e instead of multiple sed forks, suggested by Eric Blake
23665         <ebb9@byu.net>.
23666         * tests/test-argp-version-etc-1.sh: Likewise.
23667
23668 2009-08-13  Simon Josefsson  <simon@josefsson.org>
23669
23670         * tests/test-version-etc.sh: Don't fail on different
23671         project/version.
23672
23673 2009-08-12  Bruno Haible  <bruno@clisp.org>
23674
23675         Tests for modules 'getopt-posix', 'getopt-gnu'.
23676         * modules/getopt-posix-tests: New file.
23677         * tests/test-getopt.c: New file.
23678         * tests/test-getopt.h: New file.
23679         * tests/test-getopt_long.h: New file.
23680
23681         New modules 'getopt-posix', 'getopt-gnu'.
23682         * modules/getopt-gnu: New file, renamed from modules/getopt.
23683         * modules/getopt-posix: New file.
23684         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
23685         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
23686         (gl_GETOPT): Remove macro.
23687         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
23688         Disable the test against BSD systems that declare optreset. Test
23689         against mingw bug. Test against lack of support of optional arguments
23690         on many platforms.
23691         * doc/glibc-headers/getopt.texi: Update module name and list of
23692         relevant platforms.
23693         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
23694         'getopt-gnu' and more portability problems.
23695         * NEWS: Mention the changes.
23696
23697 2009-08-12  Bruno Haible  <bruno@clisp.org>
23698
23699         Ensure that optarg etc. get declared by <unistd.h>.
23700         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
23701         AC_USE_SYSTEM_EXTENSIONS.
23702         * modules/getopt (Depends-on): Add 'extensions'.
23703
23704 2009-08-12  Bruno Haible  <bruno@clisp.org>
23705
23706         Avoid test link errors.
23707         * modules/pipe-filter-ii-tests (Makefile.am): Define
23708         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
23709         * modules/pipe-filter-gi-tests (Makefile.am): Define
23710         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
23711         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23712
23713 2009-08-12  Bruno Haible  <bruno@clisp.org>
23714
23715         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
23716         gl_GETOPT_SUBSTITUTE before.
23717         (gl_GETOPT): Use it.
23718         * m4/argp.m4 (gl_ARGP): Update.
23719         Reported by Sergey Poznyakoff.
23720
23721         * m4/getopt.m4: Reorder macros.
23722         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
23723         (gl_GETOPT_SUBSTITUTE): Remove macro.
23724
23725 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23726
23727         Minor improvement in gitlog-to-changelog
23728
23729         * build-aux/gitlog-to-changelog: New option `--format' makes
23730         output format string configurable.
23731
23732 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23733
23734         Optimize exclude: use hash tables for non-wildcard patterns.
23735
23736         * lib/exclude.c: Include hash.h and mbuiter.h
23737         (struct exclude_pattern, exclude_segment): New data types.
23738         (struct exclude): Rewrite.
23739         (fnmatch_pattern_has_wildcards): New function.
23740         (new_exclude_segment, free_exclude_segment): New functions.
23741         (excluded_file_pattern_p, excluded_file_name_p): New functions.
23742         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
23743         * lib/exclude.h (is_fnmatch_pattern): New prototype.
23744         * modules/exclude: Depend on hash and mbuiter.
23745
23746         * modules/exclude-tests: New file.
23747         * tests/test-exclude.c: New file.
23748         * tests/test-exclude1.sh: New file.
23749         * tests/test-exclude2.sh: New file.
23750         * tests/test-exclude3.sh: New file.
23751         * tests/test-exclude4.sh: New file.
23752         * tests/test-exclude5.sh: New file.
23753         * tests/test-exclude6.sh: New file.
23754         * tests/test-exclude7.sh: New file.
23755
23756 2009-08-12  Bruno Haible  <bruno@clisp.org>
23757
23758         Ensure that getopt() gets declared by <unistd.h>.
23759         * lib/unistd.in.h: Conditionally include getopt.h.
23760         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
23761         Set GNULIB_UNISTD_H_GETOPT.
23762         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23763         GNULIB_UNISTD_H_GETOPT.
23764         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
23765
23766 2009-08-12  Bruno Haible  <bruno@clisp.org>
23767
23768         Clarify logic.
23769         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
23770         gl_replace_getopt instead of GETOPT_H.
23771
23772 2009-08-12  Bruno Haible  <bruno@clisp.org>
23773
23774         * m4/getopt.m4: Add comments.
23775
23776 2009-08-12  Bruno Haible  <bruno@clisp.org>
23777
23778         Disable multithread support by default on Cygwin 1.5.x.
23779         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
23780         set gl_use_threads=no if not specified otherwise.
23781
23782 2009-08-11  Bruno Haible  <bruno@clisp.org>
23783
23784         Avoid compilation error on NetBSD 5.0.
23785         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
23786         * tests/test-stdio.c: Likewise.
23787         * tests/test-stdlib.c: Likewise.
23788         * tests/test-string.c: Likewise.
23789         * tests/test-unistd.c: Likewise.
23790         Reported by Greg Troxel <gdt@ir.bbn.com>
23791         at <https://savannah.gnu.org/support/?106973>.
23792
23793 2009-08-11  Bruno Haible  <bruno@clisp.org>
23794
23795         * modules/dup2-tests (Depends-on): Remove close.
23796
23797         Undo 2009-07-19 commit.
23798         * modules/acl-tests (Depends-on): Remove close.
23799         * modules/binary-io-tests (Depends-on): Likewise.
23800         * modules/closein-tests (Depends-on): Likewise.
23801         * modules/flock-tests (Depends-on): Likewise.
23802         * modules/fsync-tests (Depends-on): Likewise.
23803         * modules/lseek-tests (Depends-on): Likewise.
23804         * modules/pipe-tests (Depends-on): Likewise.
23805         * modules/posix_spawn-tests (Depends-on): Likewise.
23806         * modules/posix_spawnp-tests (Depends-on): Likewise.
23807         * modules/stat-time-tests (Depends-on): Likewise.
23808         * modules/yesno-tests (Depends-on): Likewise.
23809
23810 2009-08-10  Bruno Haible  <bruno@clisp.org>
23811
23812         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
23813
23814 2009-08-10  Bruno Haible  <bruno@clisp.org>
23815
23816         Fix a gcc warning.
23817         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
23818
23819 2009-08-10  Bruno Haible  <bruno@clisp.org>
23820
23821         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
23822         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
23823         not only the first time.
23824         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
23825         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
23826         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
23827         is 1, not only the the first time.
23828
23829 2009-08-10  Bruno Haible  <bruno@clisp.org>
23830
23831         Make it possible to use module 'gethostname' without module 'close'.
23832         * lib/unistd.in.h (close): Evoke a link error only if
23833         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
23834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23835         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23836         * modules/unistd (Makefile.am): Substitute
23837         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23838         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
23839         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
23840         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
23841         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23842         * modules/sys_ioctl (Makefile.am): Substitute
23843         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23844         * modules/socket (configure.ac): On native Windows, set
23845         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
23846         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23847         Reported by Sam Steingold <sds@gnu.org>.
23848
23849 2009-08-10  Bruno Haible  <bruno@clisp.org>
23850
23851         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
23852         * modules/ioctl (configure.ac): Likewise.
23853
23854 2009-08-10  Bruno Haible  <bruno@clisp.org>
23855
23856         Avoid collision between gnulib wrapper and libintl wrapper.
23857         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
23858         already defined in intl/printf.c.
23859         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
23860         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
23861
23862 2009-08-09  Bruno Haible  <bruno@clisp.org>
23863
23864         Make <sys/select.h> really self-contained, also on Solaris 10.
23865         * lib/sys_select.in.h: Include <string.h>.
23866         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
23867         Solaris 10 problem.
23868         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
23869         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
23870         Reported by Jim Meyering.
23871
23872 2009-08-09  Bruno Haible  <bruno@clisp.org>
23873
23874         Avoid warnings from 'aclocal' that are due to a use of macro name
23875         AM_XGETTEXT_OPTION that is not defined in automake.
23876         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
23877         automake.
23878         * modules/error (configure.ac): Likewise.
23879         * modules/propername (configure.ac): Likewise.
23880         * modules/vasprintf (configure.ac): Likewise.
23881         * modules/verror (configure.ac): Likewise.
23882         * modules/xprintf (configure.ac): Likewise.
23883         * modules/xvasprintf (configure.ac): Likewise.
23884
23885 2009-08-08  Bruno Haible  <bruno@clisp.org>
23886
23887         Avoid compilation error in C++ mode.
23888         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
23889         Reported by Sam Steingold <sds@gnu.org>.
23890
23891 2009-08-08  Bruno Haible  <bruno@clisp.org>
23892
23893         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
23894         for the various Unix platforms.
23895         * doc/posix-headers/limits.texi: Update platforms list regarding
23896         HOST_NAME_MAX.
23897         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23898
23899 2009-08-07  Jim Meyering  <meyering@redhat.com>
23900
23901         selinux-at: fix typo in a comment
23902         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
23903         Spotted by Paolo Bonzini.
23904
23905         selinux-at: remove redundant m4 code, add documentation
23906         * modules/selinux-at (configure.ac): Remove redundant code.
23907         LIB_SELINUX is already set via the dependent module, selinux-h.
23908         (Include): Add quotes around selinux-at.h.
23909         * lib/selinux-at.h: Add documentation.
23910         Reported by Bruno Haible in
23911         http://marc.info/?l=gnulib-bug&m=124958988300749
23912
23913 2009-08-07  Bruno Haible  <bruno@clisp.org>
23914
23915         Avoid link error on MacOS X 10.3 and 10.4.
23916         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
23917         on non-ELF systems.
23918         * lib/argp-pv.c (argp_program_version): Likewise.
23919         Reported by Simon Josefsson.
23920
23921 2009-08-07  Simon Josefsson  <simon@josefsson.org>
23922
23923         * tests/test-version-etc.sh: Use $EXEEXT.
23924
23925 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
23926
23927         update-copyright: update documentation to point to maint.mk
23928         * build-aux/update-copyright: Here.
23929
23930 2009-08-06  Jim Meyering  <meyering@redhat.com>
23931
23932         maint.mk: support update-copyright-local
23933         * top/maint.mk (update-copyright-local): Define place-holder.
23934         (update-copyright): Depend on $(update-copyright-local).
23935
23936 2009-08-06  Jim Meyering  <meyering@redhat.com>
23937
23938         selinux-at: new module
23939         Initially written for coreutils, this module will soon be
23940         used by findutils, too.
23941         * MODULES.html.sh [Misc]: Add selinux-at.
23942         * lib/selinux-at.h: New file, from coreutils.
23943         * lib/selinux-at.c: Likewise.
23944         * modules/selinux-at: Likewise.
23945         (License): Change from LGPL to GPL, since it depends
23946         on the GPL'd openat module.
23947
23948         doc: update README
23949         * README: Remove references to cogito.
23950         Remove cvs-repo-updating instructions from 2007.
23951         Don't imply that CVS is better if you have limited disk space.
23952
23953 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23954
23955         update-copyright: support C-style comments
23956         * build-aux/update-copyright: Implement and document.
23957         * tests/test-update-copyright.sh: Test.
23958
23959 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23960
23961         update-copyright: support omitted "(C)"
23962         * build-aux/update-copyright: Implement and document.  Also,
23963         allow variable whitespace before "(C)".
23964         * tests/test-update-copyright.sh: Test.
23965
23966 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23967
23968         update-copyright: don't trip on non-FSF copyright statements
23969         * build-aux/update-copyright: Fix so that the first correctly
23970         formatted FSF copyright statement is recognized no matter what
23971         appears before it.  Update documentation.
23972         * tests/test-update-copyright.sh: Test that.
23973
23974 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23975
23976         update-copyright: clean up code a little
23977         * build-aux/update-copyright: Append "_re" to the name of any
23978         variable holding a regular expression.
23979         Replace "old" and "new" with "stmt" in variable names.
23980         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
23981         handled correctly.
23982         Format code more consistently.
23983
23984 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23985
23986         update-copyright-tests: improve portability
23987         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
23988         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
23989
23990 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
23991
23992         update-copyright: support @copyright{} and &copy;
23993         * build-aux/update-copyright: Implement and document.
23994         * tests/test-update-copyright.sh: Test.
23995
23996 2009-08-04  Jim Meyering  <meyering@redhat.com>
23997
23998         update-copyright-tests: correctly test EOL=\r\n handling
23999         * tests/test-update-copyright.sh: Put \r at the end of some lines
24000         for the dos-eol tests.  Based on a patch by Joel E. Denny.
24001
24002         maint.mk: make update-copyright exclusion list more configurable
24003         * top/maint.mk (update-copyright): Default to excluding COPYING,
24004         but allow an override, in case someone does want to update that file.
24005
24006         maint.mk: don't update copyright date in COPYING
24007         * top/maint.mk (update-copyright): Exclude COPYING.
24008
24009         maint.mk: add a copyright-updating rule
24010         * top/maint.mk (update-copyright): New rule.
24011         Derived from coreutils/Makefile.am.
24012
24013         update-copyright: rename some variables
24014         * build-aux/update-copyright: Rename a few variables for clarity.
24015         Tweak syntax.  List Joel E. Denny as coauthor.
24016
24017 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
24018
24019         update-copyright: fix bug for 2-digit last year and add tests
24020         * build-aux/update-copyright: Fix bug.
24021         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
24022         specified.
24023         * modules/update-copyright-tests: New
24024         * tests/test-update-copyright.sh: New.
24025
24026 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
24027
24028         update-copyright: handle leading tabs in line prefix
24029         * build-aux/update-copyright: Count leading tabs as 8 spaces
24030         when computing margin.  This helps with the formatting of
24031         ChangeLogs, for example.
24032         Fix documentation a little.
24033
24034 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
24035
24036         update-copyright: support EOL=\r\n
24037         * build-aux/update-copyright: Implement that.
24038
24039 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
24040
24041         update-copyright: automatically format copyright statements
24042         * build-aux/update-copyright: Implement that.
24043         Also, be a little more predictable and safer by always failing
24044         when the full copyright format is not perfectly recognized as an
24045         unbroken whole.  Discussed at
24046         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
24047         Rewrite documentation.
24048
24049 2009-08-03  Bruno Haible  <bruno@clisp.org>
24050
24051         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
24052
24053 2009-08-02  Bruno Haible  <bruno@clisp.org>
24054
24055         Tests for module 'uname'.
24056         * modules/uname-tests: New file.
24057         * tests/test-uname.c: New file.
24058
24059         New module 'uname'.
24060         * lib/uname.c: New file.
24061         * m4/uname.m4: New file.
24062         * modules/uname: New file.
24063         * doc/posix-functions/uname.texi: Mention the new module.
24064
24065 2009-08-02  Bruno Haible  <bruno@clisp.org>
24066
24067         Tests for module 'sys_utsname'.
24068         * modules/sys_utsname-tests: New file.
24069         * tests/test-sys_utsname.c: New file.
24070
24071         New module 'sys_utsname'.
24072         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
24073         * m4/sys_utsname_h.m4: New file.
24074         * modules/sys_utsname: New file.
24075         * doc/posix-headers/sys_utsname.texi: Mention the new module.
24076
24077 2009-08-02  Bruno Haible  <bruno@clisp.org>
24078
24079         Implicitly initialize the sockets library.
24080         * lib/gethostname.c: Include sockets.h.
24081         (rpl_gethostname): Invoke gl_sockets_startup.
24082         * lib/socket.c: Include sockets.h.
24083         (rpl_socket): Invoke gl_sockets_startup.
24084         * modules/gethostname (Depends-on): Add sockets.
24085         * modules/socket (Depends-on): Likewise.
24086         * tests/test-poll.c: Don't include sockets.h.
24087         (main): Don't invoke gl_sockets_startup.
24088         * tests/test-select.c: Don't include sockets.h.
24089         (main): Don't invoke gl_sockets_startup.
24090
24091 2009-08-02  Bruno Haible  <bruno@clisp.org>
24092
24093         Allow multiple calls to gl_sockets_startup.
24094         * lib/sockets.c (initialized_sockets_version): New variable.
24095         (gl_sockets_startup): Do nothing if already called for this or a higher
24096         version.
24097         (gl_sockets_cleanup): Reset initialized_sockets_version.
24098
24099 2009-08-03  Simon Josefsson  <simon@josefsson.org>
24100
24101         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
24102         different project/version.
24103
24104 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
24105             Bruno Haible  <bruno@clisp.org>
24106
24107         Tests for module 'pipe-filter-gi'.
24108         * modules/pipe-filter-gi-tests: New file.
24109         * tests/test-pipe-filter-gi1.sh: New file.
24110         * tests/test-pipe-filter-gi1.c: New file.
24111         * tests/test-pipe-filter-gi2.sh: New file.
24112         * tests/test-pipe-filter-gi2-main.c: New file.
24113         * tests/test-pipe-filter-gi2-child.c: New file.
24114
24115         New module 'pipe-filter-gi'.
24116         * lib/pipe-filter-gi.c: New file.
24117         * modules/pipe-filter-gi: New file.
24118
24119 2009-08-02  Bruno Haible  <bruno@clisp.org>
24120             Paolo Bonzini  <bonzini@gnu.org>
24121
24122         Tests for module 'pipe-filter-ii'.
24123         * modules/pipe-filter-ii-tests: New file.
24124         * tests/test-pipe-filter-ii1.sh: New file.
24125         * tests/test-pipe-filter-ii1.c: New file.
24126         * tests/test-pipe-filter-ii2.sh: New file.
24127         * tests/test-pipe-filter-ii2-main.c: New file.
24128         * tests/test-pipe-filter-ii2-child.c: New file.
24129
24130         New module 'pipe-filter-ii'.
24131         * lib/pipe-filter.h: New file.
24132         * lib/pipe-filter-ii.c: New file.
24133         * lib/pipe-filter-aux.h: New file.
24134         * modules/pipe-filter-ii: New file.
24135
24136 2009-08-02  Simon Josefsson  <simon@josefsson.org>
24137
24138         * lib/gc-libgcrypt.c: Change copyright to FSF.
24139         * lib/gc-gnulib.c: Likewise.
24140
24141 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
24142
24143         * lib/gethostname.c: Include limits.h.
24144
24145 2009-08-02  Simon Josefsson  <simon@josefsson.org>
24146             Bruno Haible  <bruno@clisp.org>
24147
24148         Ensure HOST_NAME_MAX as part of the gethostname module.
24149         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
24150         define also HOST_NAME_MAX.
24151         * tests/test-gethostname.c: Include <limits.h>.
24152         (main): Check also HOST_NAME_MAX.
24153         * doc/posix-headers/limits.texi: Document the mingw problem.
24154
24155 2009-08-02  Bruno Haible  <bruno@clisp.org>
24156
24157         * lib/gethostname.c (gethostname): Fix handling of large len argument.
24158         Add comments.
24159
24160 2009-03-31  Simon Josefsson  <simon@josefsson.org>
24161
24162         * lib/gethostname.c: Add Windows wrapper.
24163         * m4/gethostname.m4: Look for gethostname in -lws2_32.
24164         * modules/gethostname: Depend on sys_socket & errno, for also
24165         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
24166         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
24167
24168 2009-07-31  Jim Meyering  <meyering@redhat.com>
24169
24170         getloadavg: fix symbol name in comment
24171         * lib/getloadavg.c: Correct a typo I introduced when adding
24172         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
24173         Matt Kraai spotted the problem.
24174
24175 2009-07-29  Matt Kraai  <mkraai@beckman.com>
24176
24177         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
24178         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
24179         code also if ! defined N_NAME_POINTER.
24180         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
24181         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
24182         but the n_name member is a 12-byte array.
24183
24184 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
24185
24186         update-copyright: generalize comment handling
24187         * build-aux/update-copyright: Handle copyright statements
24188         within more comment styles.
24189         Document usage.
24190         Report any file with an external copyright holder or parse failure.
24191
24192 2009-07-29  Jim Meyering  <meyering@redhat.com>
24193
24194         mktime: correct setting of REPLACE_MKTIME
24195         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
24196
24197         update-copyright: new module
24198         * modules/update-copyright: New file.
24199         * build-aux/update-copyright: New file.
24200         * MODULES.html.sh (maint+release support): Add update-copyright.
24201
24202 2009-07-27  Bruno Haible  <bruno@clisp.org>
24203
24204         Fix compilation error when <ctime> is used and mktime is replaced.
24205         * lib/time.in.h (mktime): New declaration.
24206         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
24207         REPLACE_MKTIME instead of defining mktime in config.h.
24208         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
24209         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
24210         Reported by Ross McFarland <rwmcfa1@neces.com>.
24211
24212 2009-07-27  Bruno Haible  <bruno@clisp.org>
24213
24214         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
24215         Reported by Matt Kraai <mkraai@beckman.com>.
24216
24217 2009-07-25  Jim Meyering  <meyering@redhat.com>
24218
24219         maint.mk: avoid warnings about missing files
24220         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
24221         diagnostic when .prev-version does not exist.
24222         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
24223         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
24224         nonexistent cfg.mk.
24225         Suggestions from Simon Josefsson.
24226
24227 2009-07-25  Bruno Haible  <bruno@clisp.org>
24228
24229         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
24230         defined as macros. Needed on QNX 6.4.1.
24231         Reported by Matt Kraai <mkraai@beckman.com>.
24232
24233 2009-07-23  Jim Meyering  <meyering@redhat.com>
24234
24235         maint.mk: invoke "make dist" with a working value of XZ_OPT
24236         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
24237
24238 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
24239
24240         Make fseeko.c compile on QNX.
24241         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
24242
24243 2009-07-22  Peter Simons  <simons@cryp.to>
24244
24245         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
24246         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
24247         * lib/md4.h: Likewise.
24248         * lib/md5.h: Likewise.
24249         * lib/sha1.h: Likewise.
24250         * lib/sha256.h: Likewise.
24251         * lib/sha512.h: Likewise.
24252
24253         tests-sha1: don't assign literal string to 'char *' variable
24254         * tests/test-sha1.c (main): Declare locals with "const" to match
24255         attributes of the right hand side.
24256
24257 2009-07-21  Eric Blake  <ebb9@byu.net>
24258
24259         dup2: fix more mingw problems
24260         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
24261         fd to itself.
24262         * doc/posix-functions/dup2.texi (dup2): Document the bug.
24263         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
24264         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
24265         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
24266         care of mingw bugs.
24267
24268 2009-07-21  Jim Meyering  <meyering@redhat.com>
24269
24270         vc-list-files: avoid failure when /bin/sh is dash
24271         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
24272         On some Debian based systems, /bin/sh is a symlink to dash, and running
24273         this command would omit the "/" following each 'tests' prefix:
24274           dash -x build-aux/vc-list-files -C . tests
24275         That is because bash and dash work differently:
24276           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
24277           bash ok
24278           dash odd
24279
24280 2009-07-21  Eric Blake  <ebb9@byu.net>
24281
24282         dup2-tests: test previous patch
24283         * modules/dup2-tests: New file.
24284         * tests/test-dup2.c: Likewise.
24285         * tests/test-open.c (main): Avoid unspecified behavior.
24286         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
24287         test.
24288
24289         dup2: work around mingw and cygwin 1.5 bug
24290         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
24291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24292         * modules/unistd (Makefile.am): Substitute it.
24293         * lib/unistd.in.h (dup2): Declare the replacement.
24294         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
24295         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
24296         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
24297         * modules/execute (Depends-on): Add dup2.
24298         * modules/fseterr (Depends-on): Likewise.
24299         * modules/pipe (Depends-on): Likewise.
24300         * modules/posix_spawn-internal (Depends-on): Likewise.
24301
24302 2009-07-21  Bruno Haible  <bruno@clisp.org>
24303
24304         * modules/.gitattributes: New file.
24305
24306 2009-07-20  Bruno Haible  <bruno@clisp.org>
24307
24308         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
24309         (main): Use it.
24310
24311 2009-07-20  Eric Blake  <ebb9@byu.net>
24312
24313         test-pipe: make a bit more robust.
24314         * tests/test-pipe.c (myerr): Allow error messages regardless of
24315         what we do to stderr.
24316         (test_pipe): Rearrange to avoid deadlock.
24317         (child_main): Try a larger read, to ensure we avoided deadlock.
24318         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
24319         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
24320         if misused.
24321
24322 2009-07-19  Jim Meyering  <meyering@redhat.com>
24323
24324         fts: avoid false-positive cycle-detection
24325         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
24326         for each new command line argument.
24327
24328 2009-07-19  Bruno Haible  <bruno@clisp.org>
24329
24330         Fix build error on mingw with the modules sys_select and unistd.
24331         * modules/acl-tests (Depends-on): Add close.
24332         * modules/binary-io-tests (Depends-on): Likewise.
24333         * modules/closein-tests (Depends-on): Likewise.
24334         * modules/flock-tests (Depends-on): Likewise.
24335         * modules/fsync-tests (Depends-on): Likewise.
24336         * modules/lseek-tests (Depends-on): Likewise.
24337         * modules/pipe-tests (Depends-on): Likewise.
24338         * modules/posix_spawn-tests (Depends-on): Likewise.
24339         * modules/posix_spawnp-tests (Depends-on): Likewise.
24340         * modules/stat-time-tests (Depends-on): Likewise.
24341         * modules/yesno-tests (Depends-on): Likewise.
24342
24343 2009-07-19  Bruno Haible  <bruno@clisp.org>
24344
24345         Unify conditionals.
24346         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
24347         macros, not at the compiler macros.
24348         * lib/pipe.c: Likewise.
24349         * lib/execute.c: Likewise.
24350         * lib/spawni.c: Likewise.
24351
24352 2009-07-19  Bruno Haible  <bruno@clisp.org>
24353
24354         Fix handling of closed stdin/stdout/stderr on mingw.
24355         * lib/w32spawn.h: Include unistd.h.
24356         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
24357         file descriptor with O_NOINHERIT flag.
24358         (fd_safer_noinherit): New function, based on fd-safer.c.
24359         (dup_safer_noinherit): New function, based on dup-safer.c.
24360         (undup_safer_noinherit): New function.
24361         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
24362         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
24363         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
24364         instead of fd_safer.
24365         * tests/test-pipe.c: Include <windows.h>.
24366         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
24367
24368         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
24369         from main.
24370         (test_pipe): Pass an extra argument for disambiguation.
24371         (main): Invoke parent_main or child_main.
24372
24373         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
24374         consistently.
24375
24376 2009-07-18  Eric Blake  <ebb9@byu.net>
24377
24378         test-pipe: fix mingw build
24379         * tests/test-pipe.c (main): Avoid fcntl on mingw.
24380
24381 2009-07-18  Bruno Haible  <bruno@clisp.org>
24382
24383         * modules/pipe-tests (Makefile.am): Fix typo.
24384
24385 2009-07-18  Eric Blake  <ebb9@byu.net>
24386
24387         error: fix mingw build
24388         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
24389         Reported by Bruno Haible.
24390
24391         error: avoid undefined use of stdout
24392         * lib/error.c (error, error_at_line): Check that fd 1 is open
24393         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
24394         is handling faults and the close_stdout module wants to report the
24395         detection of closed stdout as an error.
24396
24397 2009-07-17  Eric Blake  <ebb9@byu.net>
24398
24399         pipe: be robust in face of closed fds
24400         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
24401         should cause child to misbehave.
24402         * modules/pipe-tests: New module.
24403         * tests/test-pipe.c: New file.
24404         * tests/test-pipe.sh: New file.
24405         Reported by Akim Demaille.
24406
24407 2009-07-14  Bruno Haible  <bruno@clisp.org>
24408
24409         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
24410         Reported by anonymous kc.
24411
24412 2009-07-07  Jim Meyering  <meyering@redhat.com>
24413
24414         maint.mk: don't look for translatable strings in *.m4 or *.mk
24415         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
24416         when searching for translatable strings.
24417
24418 2009-07-05  Jim Meyering  <meyering@redhat.com>
24419
24420         remove superfluous parentheses in STREQ definition
24421         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
24422         * lib/getugroups.c (STREQ): Likewise.
24423         * lib/fnmatch.c (STREQ): Likewise.
24424         Spotted by Bruno Haible.
24425
24426 2009-07-04  Jim Meyering  <meyering@redhat.com>
24427
24428         argv-iter: new module
24429         * MODULES.html.sh: Add argv-iter.
24430         * lib/argv-iter.c, lib/argv-iter.h: New files.
24431         * modules/argv-iter: New file.
24432         * modules/argv-iter-tests: New file.
24433         * tests/test-argv-iter.c: Test it.
24434
24435 2009-07-04  Bruno Haible  <bruno@clisp.org>
24436
24437         Fix assertion.
24438         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
24439         contains more exact copies of a given entry than file2, leave the extra
24440         copies unpaired rather than aborting.
24441         Reported by Eric Blake.
24442
24443 2009-07-02  Bruno Haible  <bruno@clisp.org>
24444
24445         Speedup git-merge-changelog for git cherry-pick.
24446         * lib/git-merge-changelog.c (struct entries_mapping): New type.
24447         (entries_mapping_get): New function, extracted from compute_mapping.
24448         (entries_mapping_reverse_get): New function.
24449         (compute_mapping): Add a 'full' argument. Return the result in a
24450         'struct entries_mapping'.
24451         (main): Update. Access the mappings through entries_mapping_get.
24452         Reported by Eric Blake.
24453
24454 2009-07-02  Bruno Haible  <bruno@clisp.org>
24455
24456         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
24457         best_i.
24458
24459 2009-07-02  Bruno Haible  <bruno@clisp.org>
24460
24461         Speed up approximate search for matching ChangeLog entries.
24462         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
24463         argument. Call fstrcmp_bounded instead of fstrcmp.
24464         (compute_mapping, try_split_merged_entry, main): Update callers.
24465
24466 2009-07-02  Bruno Haible  <bruno@clisp.org>
24467
24468         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
24469
24470 2009-06-30  Bruno Haible  <bruno@clisp.org>
24471
24472         Reduce the number of uc_is_cased calls.
24473         * lib/unicase.h (casing_suffix_context_t): Add
24474         'first_char_except_ignorable' field.
24475         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
24476         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
24477         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
24478         Update initializer.
24479         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
24480         case-ignorable characters.
24481         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
24482         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
24483         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
24484         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
24485         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
24486
24487 2009-06-30  Bruno Haible  <bruno@clisp.org>
24488
24489         Tests for module 'unicase/ignorable'.
24490         * modules/unicase/ignorable-tests: New file.
24491         * tests/unicase/test-ignorable.c: New file, generated by
24492         gen-uni-tables.
24493
24494         Tests for module 'unicase/cased'.
24495         * modules/unicase/cased-tests: New file.
24496         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
24497         * tests/unicase/test-predicate-part1.h: New file, derived from
24498         tests/unictype/test-predicate-part1.h.
24499         * tests/unicase/test-predicate-part2.h: New file, same as
24500         tests/unictype/test-predicate-part2.h.
24501
24502         Fix evaluation of "Before C" condition of FINAL_SIGMA.
24503         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
24504         (output_casing_properties): New function.
24505         (main): Call it.
24506         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
24507         * lib/unicase/cased.c: Include unictype/bitmap.h.
24508         (uc_is_cased): Define through a bitmap lookup.
24509         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
24510         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
24511         (uc_is_case_ignorable): Define through a bitmap lookup.
24512         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
24513         lib/unictype/bitmap.h.
24514         (Depends-on): Add inline. Clean up.
24515         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
24516         lib/unictype/bitmap.h.
24517         (Depends-on): Add inline. Clean up.
24518         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
24519         recognition.
24520         * tests/unicase/test-u16-tolower.c (main): Likewise.
24521         * tests/unicase/test-u32-tolower.c (main): Likewise.
24522
24523 2009-06-30  Bruno Haible  <bruno@clisp.org>
24524
24525         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
24526         * lib/unicase/u16-casemap.c: Likewise.
24527         * lib/unicase/u32-casemap.c: Likewise.
24528
24529 2009-06-29  Bruno Haible  <bruno@clisp.org>
24530
24531         Define u32_casefold as a wrapper around u32_ct_casefold.
24532         * lib/unicase/u32-casefold.c: Update.
24533         * modules/unicase/u32-casefold (Depends-on): Add
24534         unicase/u32-ct-casefold, unicase/empty-prefix-context,
24535         unicase/empty-suffix-context. Clean up.
24536
24537         Define u16_casefold as a wrapper around u16_ct_casefold.
24538         * lib/unicase/u16-casefold.c: Update.
24539         * modules/unicase/u16-casefold (Depends-on): Add
24540         unicase/u16-ct-casefold, unicase/empty-prefix-context,
24541         unicase/empty-suffix-context. Clean up.
24542
24543         Define u8_casefold as a wrapper around u8_ct_casefold.
24544         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
24545         * lib/unicase/u8-casefold.c: Update.
24546         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
24547         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
24548
24549         Define u32_totitle as a wrapper around u32_ct_totitle.
24550         * lib/unicase/u32-totitle.c: Update.
24551         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
24552         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
24553
24554         Define u16_totitle as a wrapper around u16_ct_totitle.
24555         * lib/unicase/u16-totitle.c: Update.
24556         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
24557         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
24558
24559         Define u8_totitle as a wrapper around u8_ct_totitle.
24560         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
24561         functions.
24562         (FUNC): Delegate to U_CT_TOTITLE.
24563         * lib/unicase/u8-totitle.c: Update.
24564         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
24565         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
24566
24567         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
24568         invocation.
24569         * modules/unicase/u32-tolower (Depends-on): Add
24570         unicase/empty-prefix-context, unicase/empty-suffix-context.
24571
24572         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
24573         invocation.
24574         * modules/unicase/u16-tolower (Depends-on): Add
24575         unicase/empty-prefix-context, unicase/empty-suffix-context.
24576
24577         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
24578         * modules/unicase/u8-tolower (Depends-on): Add
24579         unicase/empty-prefix-context, unicase/empty-suffix-context.
24580
24581         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
24582         invocation.
24583         * modules/unicase/u32-toupper (Depends-on): Add
24584         unicase/empty-prefix-context, unicase/empty-suffix-context.
24585
24586         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
24587         invocation.
24588         * modules/unicase/u16-toupper (Depends-on): Add
24589         unicase/empty-prefix-context, unicase/empty-suffix-context.
24590
24591         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
24592         * modules/unicase/u8-toupper (Depends-on): Add
24593         unicase/empty-prefix-context, unicase/empty-suffix-context.
24594
24595         New module 'unicase/u32-ct-casefold'.
24596         * lib/unicase/u32-ct-casefold.c: New file.
24597         * modules/unicase/u32-ct-casefold: New file.
24598
24599         New module 'unicase/u16-ct-casefold'.
24600         * lib/unicase/u16-ct-casefold.c: New file.
24601         * modules/unicase/u16-ct-casefold: New file.
24602
24603         New module 'unicase/u8-ct-casefold'.
24604         * lib/unicase/u8-ct-casefold.c: New file.
24605         * lib/unicase/u-ct-casefold.h: New file, derived from
24606         lib/unicase/u-casefold.h.
24607         * modules/unicase/u8-ct-casefold: New file.
24608
24609         New module 'unicase/u32-ct-totitle'.
24610         * lib/unicase/u32-ct-totitle.c: New file.
24611         * modules/unicase/u32-ct-totitle: New file.
24612
24613         New module 'unicase/u16-ct-totitle'.
24614         * lib/unicase/u16-ct-totitle.c: New file.
24615         * modules/unicase/u16-ct-totitle: New file.
24616
24617         New module 'unicase/u8-ct-totitle'.
24618         * lib/unicase/u8-ct-totitle.c: New file.
24619         * lib/unicase/u-ct-totitle.h: New file, derived from
24620         lib/unicase/u-totitle.h.
24621         * modules/unicase/u8-ct-totitle: New file.
24622
24623         New module 'unicase/u32-ct-tolower'.
24624         * lib/unicase/u32-ct-tolower.c: New file.
24625         * modules/unicase/u32-ct-tolower: New file.
24626
24627         New module 'unicase/u16-ct-tolower'.
24628         * lib/unicase/u16-ct-tolower.c: New file.
24629         * modules/unicase/u16-ct-tolower: New file.
24630
24631         New module 'unicase/u8-ct-tolower'.
24632         * lib/unicase/u8-ct-tolower.c: New file.
24633         * modules/unicase/u8-ct-tolower: New file.
24634
24635         New module 'unicase/u32-ct-toupper'.
24636         * lib/unicase/u32-ct-toupper.c: New file.
24637         * modules/unicase/u32-ct-toupper: New file.
24638
24639         New module 'unicase/u16-ct-toupper'.
24640         * lib/unicase/u16-ct-toupper.c: New file.
24641         * modules/unicase/u16-ct-toupper: New file.
24642
24643         New module 'unicase/u8-ct-toupper'.
24644         * lib/unicase/u8-ct-toupper.c: New file.
24645         * modules/unicase/u8-ct-toupper: New file.
24646
24647         Add context arguments to u*_casemap functions.
24648         * lib/unicase/unicasemap.h: Include unicase.h.
24649         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
24650         suffix_context arguments.
24651         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
24652         functions.
24653         (FUNC): Add prefix_context and suffix_context arguments. Use
24654         uc_is_cased and uc_is_case_ignorable.
24655         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
24656         * lib/unicase/u16-casemap.c: Likewise.
24657         * lib/unicase/u32-casemap.c: Likewise.
24658         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
24659         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
24660         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
24661         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
24662         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
24663         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
24664
24665         New module 'unicase/u32-suffix-context'.
24666         * lib/unicase/u32-suffix-context.c: New file.
24667         * modules/unicase/u32-suffix-context: New file.
24668
24669         New module 'unicase/u16-suffix-context'.
24670         * lib/unicase/u16-suffix-context.c: New file.
24671         * modules/unicase/u16-suffix-context: New file.
24672
24673         New module 'unicase/u8-suffix-context'.
24674         * lib/unicase/u8-suffix-context.c: New file.
24675         * lib/unicase/u-suffix-context.h: New file.
24676         * modules/unicase/u8-suffix-context: New file.
24677
24678         New module 'unicase/empty-suffix-context'.
24679         * lib/unicase/empty-suffix-context.c: New file.
24680         * modules/unicase/empty-suffix-context: New file.
24681
24682         New module 'unicase/u32-prefix-context'.
24683         * lib/unicase/u32-prefix-context.c: New file.
24684         * modules/unicase/u32-prefix-context: New file.
24685
24686         New module 'unicase/u16-prefix-context'.
24687         * lib/unicase/u16-prefix-context.c: New file.
24688         * modules/unicase/u16-prefix-context: New file.
24689
24690         New module 'unicase/u8-prefix-context'.
24691         * lib/unicase/u8-prefix-context.c: New file.
24692         * lib/unicase/u-prefix-context.h: New file.
24693         * lib/unicase/context.h: New file.
24694         * modules/unicase/u8-prefix-context: New file.
24695
24696         New module 'unicase/empty-prefix-context'.
24697         * lib/unicase/empty-prefix-context.c: New file.
24698         * modules/unicase/empty-prefix-context: New file.
24699
24700         New module 'unicase/ignorable'.
24701         * lib/unicase/ignorable.c: New file.
24702         * modules/unicase/ignorable: New file.
24703
24704         New module 'unicase/cased'.
24705         * lib/unicase/caseprop.h: New file.
24706         * lib/unicase/cased.c: New file.
24707         * modules/unicase/cased: New file.
24708
24709         New functions for case mapping of substrings.
24710         * lib/unicase.h (casing_prefix_context_t): New type.
24711         (unicase_empty_prefix_context): New variable.
24712         (u8_casing_prefix_context, u16_casing_prefix_context,
24713         u32_casing_prefix_context, u8_casing_prefixes_context,
24714         u16_casing_prefixes_context, u32_casing_prefixes_context): New
24715         declarations.
24716         (casing_suffix_context_t): New type.
24717         (unicase_empty_suffix_context): New variable.
24718         (u8_casing_suffix_context, u16_casing_suffix_context,
24719         u32_casing_suffix_context, u8_casing_suffixes_context,
24720         u16_casing_suffixes_context, u32_casing_suffixes_context,
24721         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
24722         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
24723         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
24724         declarations.
24725
24726 2009-06-28  Jim Meyering  <meyering@redhat.com>
24727
24728         boostrap: indent only with spaces
24729         * build-aux/bootstrap: Indent only with spaces, never TABs.
24730
24731         bootstrap: split long lines
24732         * build-aux/bootstrap: Keep line length < 80.
24733
24734         bootstrap: sync from coreutils
24735         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
24736         just as autoreconf does.  Verify a list of prerequisite
24737         package-name,version-number pairs if defined in bootstrap.conf.
24738         Refer to README-prereq, if prerequisites are not satisfied.
24739
24740 2009-06-27  Eric Blake  <ebb9@byu.net>
24741
24742         tests: add test for bogus NULL definition
24743         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
24744         * tests/test-stdlib.c: Likewise.
24745         * tests/test-string.c: Likewise.
24746         * tests/test-locale.c: Likewise.
24747         * tests/test-unistd.c: Likewise.
24748         * modules/stdio-tests (Depends-on): Add verify.
24749         * modules/stdlib-tests (Depends-on): Likewise.
24750         * modules/string-tests (Depends-on): Likewise.
24751         * modules/locale-tests (Depends-on): Likewise.
24752         * modules/unistd-tests (Depends-on): Likewise.
24753
24754 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
24755
24756         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
24757         self-explaining comment.
24758         * m4/selinux-selinux-h: Update serial.
24759         (gl_LIBSELINUX): New macro, adding a warning for missing development
24760         packages to code extracted from...
24761         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
24762         Add warning for missing development packages here, too.
24763
24764 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
24765
24766         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
24767
24768 2009-06-25  Eric Blake  <ebb9@byu.net>
24769
24770         version-etc: fix regression
24771         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
24772         gcc.
24773         (version_etc): Use it, to catch bugs with trailing NULL.
24774         * lib/version-etc.c (version_etc_arn): Delete unused argument.
24775         (version_etc_va): Fix logic bug.
24776         * modules/version-etc-tests: Add test.
24777         * tests/test-version-etc.c: New file.
24778         * tests/test-version-etc.sh: Likewise.
24779
24780 2009-06-25  Sam Steingold  <sds@gnu.org>
24781
24782         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
24783         mbtowc declaration.
24784
24785 2009-06-25  Eric Blake  <ebb9@byu.net>
24786
24787         fpurge: migrate into <stdio.h>
24788         * lib/fpurge.h: Delete...
24789         * lib/stdio.in.h (fpurge): ...and declare here, instead.
24790         * lib/fpurge.c (fpurge): Change declaring header.
24791         * modules/fpurge (Files): Drop deleted file.
24792         (Depends-on): Add stdio.
24793         (configure.ac): Set witness.
24794         * modules/stdio (Makefile.am): Support fpurge macros.
24795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24796         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
24797         * lib/fflush.c: Update client.
24798         * tests/test-fpurge.c: Likewise.
24799         * NEWS: Mention the change.
24800
24801 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24802
24803         * lib/argp-version-etc.c (program_authors): Add const
24804         qualifier.
24805         * lib/version-etc.c: Fix typos in the comments.
24806         * modules/argp-version-etc: Depends on version-etc.
24807
24808 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24809
24810         argp-version-etc: new module.
24811
24812         * lib/argp-version-etc.c: New file.
24813         * lib/argp-version-etc.h: New file.
24814         * modules/argp-version-etc: New file.
24815         * modules/argp-version-etc-tests: New file.
24816         * tests/test-argp-version-etc.c: New test.
24817         * tests/test-argp-version-etc-1.sh: New test.
24818
24819 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24820
24821         Provide additional interfaces and documentation for version-etc
24822         module.
24823
24824         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
24825         interfaces.
24826         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
24827         prototypes.
24828
24829 2009-06-24  Bruno Haible  <bruno@clisp.org>
24830
24831         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
24832         HAVE_LIB${NAME} macro.
24833         Reported by Sam Steingold <sds@gnu.org>.
24834
24835 2009-06-23  Simon Josefsson  <simon@josefsson.org>
24836
24837         * modules/hash-tests (test_hash_LDADD): Link to libintl when
24838         needed.
24839
24840 2009-06-21  Bruno Haible  <bruno@clisp.org>
24841
24842         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
24843         work.
24844         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
24845         together with LIB${NAME}, LTLIB${NAME}.
24846         Reported by Sam Steingold <sds@gnu.org>.
24847
24848 2009-06-20  Jim Meyering  <meyering@redhat.com>
24849
24850         tests: make sc_require_test_exit_idiom more generic
24851         * top/maint.mk (Exit_witness_file): New overridable variable.
24852         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
24853         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
24854
24855 2009-06-19  Jim Meyering  <meyering@redhat.com>
24856
24857         hash: reverse order of src/dst parameters in an internal interface
24858         * lib/hash.c (transfer_entries): Reverse order of parameters to
24859         put DST before SRC.  Adjust callers.
24860
24861         tests: test-hash: avoid wholesale duplication
24862         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
24863         Instead, use a loop and add a single conditional.
24864
24865         tests: test-hash: allow seed selection via a command line argument
24866         * tests/test-hash.c (get_seed): New function.
24867         (main): Use it.
24868
24869 2009-06-19  Eric Blake  <ebb9@byu.net>
24870
24871         hash: avoid memory leak on allocation failure
24872         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
24873         failure.  Factor repeated algorithm...
24874         (transfer_entries): ...into new helper routine.
24875         (hash_delete): React to hash_rehash return value.
24876
24877         hash: reduce memory pressure in hash_rehash no-op case
24878         * lib/hash.c (next_prime): Avoid overflow.
24879         (hash_initialize): Factor bucket size computation...
24880         (compute_bucket_size): ...into new helper function.
24881         (hash_rehash): Use new function and open coding to reduce memory
24882         pressure, and avoid a memory leak in USE_OBSTACK code.
24883         Reported by Jim Meyering.
24884
24885 2009-06-18  Eric Blake  <ebb9@byu.net>
24886
24887         hash: make rotation more obvious
24888         * modules/hash (Depends-on): Add bitrotate and stdint.
24889         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
24890         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
24891         (SIZE_MAX): Rely on headers for definition.
24892         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
24893         (raw_hasher): Use rotr_sz.
24894         Suggested by Jim Meyering.
24895
24896         hash: fix memory leak in last patch
24897         * lib/hash.c (hash_rehash): Avoid memory leak.
24898
24899         hash: avoid no-op rehashing
24900         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
24901
24902         hash: provide default callback functions
24903         * lib/hash.c (raw_hasher, raw_comparator): New functions.
24904         (hash_initialize): Use them as defaults.
24905         * tests/test-hash.c (main): Test this.
24906
24907         hash: minor optimization
24908         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
24909         when possible.
24910         (hash_initialize): Document this promise.
24911         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
24912         * tests/test-hash.c (hash_compare_strings): Test this.
24913
24914 2009-06-18  Bruno Haible  <bruno@clisp.org>
24915
24916         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
24917         going to be replaced anyway.
24918
24919 2009-06-18  Bruno Haible  <bruno@clisp.org>
24920
24921         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
24922         in one place.
24923         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
24924         be replaced anyway.
24925
24926 2009-06-18  Eric Blake  <ebb9@byu.net>
24927
24928         hash: check for resize before insertion
24929         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
24930         threshold before insertion, so that a pathological hash_rehash
24931         that fills every bucket can still trigger another rehash.
24932
24933 2009-06-18  Jim Meyering  <meyering@redhat.com>
24934
24935         hash-tests: add a loop around the small tests
24936         * tests/test-hash.c (main): Repeat small tests with selected
24937         small initial table sizes.
24938
24939 2009-06-17  Eric Blake  <ebb9@byu.net>
24940
24941         hash: minor cleanups
24942         * lib/hash.h (hash_entry): Make opaque, by moving...
24943         * lib/hash.c (hash_entry): ...here.
24944         (hash_insert): Clarify restrictions on what can be inserted.
24945         (hash_get_next): Clarify when it is safe to remove an element
24946         during traversal.
24947         (check_tuning): Skip verification when tuning is known safe.
24948         (hash_initialize): Clarify restrictions on tuning.
24949
24950 2009-06-17  Jim Meyering  <jim@meyering.net>
24951         and Eric Blake  <ebb9@byu.net>
24952
24953         hash-tests: new module
24954         * modules/hash-tests: New file.
24955         * tests/test-hash.c: New file.
24956
24957 2009-06-17  Eric Blake  <ebb9@byu.net>
24958
24959         strstr-simple: document new module
24960         * MODULES.html.sh: Document new module.
24961
24962         strstr, strcasestr: replace on platforms with broken memchr
24963         * modules/strstr: Split into...
24964         * modules/strstr-simple: ...new module that does not care about
24965         performance, but does care about glibc bug.
24966         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
24967         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
24968         if platform memchr is broken, per Debian bug 521737.
24969         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
24970         memchr.
24971         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
24972         * doc/posix-functions/strstr.texi (strstr): Document the fix.
24973         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24974         * modules/mountlist (Depends-on): Add strstr-simple.
24975         * modules/gen-uni-tables (Depends-on): Likewise.
24976         * modules/argz (Depends-on): Add strstr.
24977
24978 2009-06-17  Bruno Haible  <bruno@clisp.org>
24979
24980         * modules/posix_spawn-internal (Depends-on): Add errno.
24981
24982 2009-06-17  Bruno Haible  <bruno@clisp.org>
24983
24984         Define missing ESTALE on Interix 3.5.
24985         * lib/errno.in.h (ESTALE): Assign a value if missing.
24986         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
24987         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
24988         missing.
24989         * doc/posix-headers/errno.texi: Mention the Interix bug.
24990         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
24991
24992 2009-06-15  Eric Blake  <ebb9@byu.net>
24993
24994         memchr, memchr2: add valgrind exception
24995         * lib/memchr.valgrind: New file.
24996         * lib/memchr2.valgrind: New file.
24997         * modules/memchr (Files): Distribute valgrind file.
24998         * modules/memchr2 (Files): Likewise.
24999
25000         docs: memchr is no longer obsolete
25001         * MODULES.html.sh: Move memchr from obsolete to string.h section.
25002         * lib/string.in.h (memchr): Simplify logic.
25003
25004 2009-06-14  Jim Meyering  <meyering@redhat.com>
25005
25006         link-follow: fix the "checking..." message to not mention trailing slash
25007         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
25008         never considered trailing slashes.
25009
25010 2009-06-14  Bruno Haible  <bruno@clisp.org>
25011
25012         * m4/memchr.m4: Mention also the bug on IA-64.
25013         * doc/posix-functions/memchr.texi: Likewise.
25014
25015 2009-06-12  Eric Blake  <ebb9@byu.net>
25016
25017         memchr: detect broken x86_64 and alpha implementations
25018         * modules/memchr-tests (Depends-on): Move mmap detection...
25019         * modules/memchr (Depends-on): ...here.
25020         (configure.ac): Set indicator.
25021         * lib/string.in.h (memchr): Declare replacement.
25022         * modules/string (Makefile.am): Trigger replacement.
25023         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
25024         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
25025         bugs.
25026         * doc/posix-functions/memchr.texi (memchr): Document the bug.
25027         * modules/getpagesize (License): Relax license.
25028
25029 2009-06-11  Bruno Haible  <bruno@clisp.org>
25030
25031         * lib/idpriv.h: Add more references.
25032
25033 2009-06-08  Bruno Haible  <bruno@clisp.org>
25034
25035         Tests for module 'idpriv-droptemp'.
25036         * modules/idpriv-droptemp-tests: New file.
25037         * tests/test-idpriv-droptemp.sh: New file.
25038         * tests/test-idpriv-droptemp.su.sh: New file.
25039         * tests/test-idpriv-droptemp.c: New file.
25040
25041         New module 'idpriv-droptemp'.
25042         * lib/idpriv-droptemp.c: New file.
25043         * modules/idpriv-droptemp: New file.
25044
25045 2009-06-08  Bruno Haible  <bruno@clisp.org>
25046
25047         Tests for module 'idpriv-drop'.
25048         * modules/idpriv-drop-tests: New file.
25049         * tests/test-idpriv-drop.sh: New file.
25050         * tests/test-idpriv-drop.su.sh: New file.
25051         * tests/test-idpriv-drop.c: New file.
25052
25053         New module 'idpriv-drop'.
25054         * lib/idpriv.h: New file.
25055         * lib-idpriv-drop.c: New file.
25056         * m4/idpriv.m4: New file.
25057         * modules/idpriv-drop: New file.
25058
25059 2009-06-08  Bruno Haible  <bruno@clisp.org>
25060
25061         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
25062         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25063         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25064         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25065         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25066         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25067         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25068
25069 2009-06-08  Eric Blake  <ebb9@byu.net>
25070
25071         test-strstr: use memory fence, when possible
25072         * tests/test-strstr.c (main): Use memory fence, in order to be
25073         more likely to trigger Debian bug 521737.
25074         * modules/strstr-tests (Files): Pull in additional files.
25075
25076         memchr: no longer obsolete, for wider field testing
25077         * modules/memchr (Status, Notice): Delete, this module is no
25078         longer obsolete.
25079         * modules/vasnprintf (Depends-on): Add memchr.
25080
25081 2009-06-07  Jim Meyering  <meyering@redhat.com>
25082
25083         hash: declare some functions with the warn_unused_result attribute
25084         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
25085
25086 2009-06-07  Bruno Haible  <bruno@clisp.org>
25087
25088         * tests/test-alignof.c: Don't test int64_t if it does not exist.
25089         Reported by Eric Blake.
25090
25091 2009-06-06  Eric Blake  <ebb9@byu.net>
25092
25093         test-alignof: fix typo with long double
25094         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
25095         compiler error.
25096
25097 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
25098
25099         Escape non-texinfo { and }s.
25100         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
25101         markup error.
25102
25103 2009-06-04  Jim Meyering  <meyering@redhat.com>
25104
25105         gitlog-to-changelog: don't infloop on an empty commit log
25106         * build-aux/gitlog-to-changelog: Warn about an empty log message.
25107         Reported by Boris Petersen <transacid@centerim.org>.
25108
25109 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
25110
25111         version-etc: extend for packagers
25112         Add three new configure options, intended for packagers:
25113           --with-packager="packager name"
25114           --with-packager-version="packager-specific version"
25115           --with-packager-bug-reports="packager bug reporting"
25116         An example with coreutils:
25117           $ ./configure \
25118             --with-packager=Gentoo \
25119             --with-packager-bug-report=http://bugs.gentoo.org/ \
25120             --with-packager-version="patchset 1.6"
25121           $ ./src/ls --version | head -n2
25122           ls (GNU coreutils) 7.1-dirty
25123           Packaged by Gentoo (patchset 1.6)
25124         Note that the bug reporting info via --help doesn't show up because
25125         coreutils uses its own custom emit_bug_reporting_address() implementation
25126         in src/system.h.  If it didn't, it'd look like:
25127           $ ./src/ls --help | tail -n4
25128           Report bugs to <bug-coreutils@gnu.org>.
25129           Report Gentoo bugs to <http://bugs.gentoo.org/>.
25130           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
25131           General help using GNU software: <http://www.gnu.org/gethelp/>.
25132         * lib/version-etc.c: Print new information, if provided.
25133         * m4/version-etc.m4: New file.
25134         * modules/version-etc (Files): Add m4/version-etc.m4.
25135         (configure.ac): Add gl_VERSION_ETC.
25136
25137 2009-05-31  Bruno Haible  <bruno@clisp.org>
25138
25139         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
25140         and 'int64_t'.
25141         * modules/alignof-tests (Dependencies): Add stdint.
25142         Reported by Eric Blake.
25143
25144 2009-05-31  Bruno Haible  <bruno@clisp.org>
25145
25146         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
25147         restriction due to compiler bugs.
25148         Reported by Eric Blake.
25149
25150 2009-05-31  Simon Josefsson  <simon@josefsson.org>
25151             Bruno Haible  <bruno@clisp.org>
25152
25153         Fix test-alignof failure.
25154         * lib/alignof.h (alignof_slot): New macro.
25155         (alignof_type): New macro, with the same semantics as the previous
25156         'alignof'.
25157         (alignof): Alias to alignof_slot.
25158         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
25159         check that the results are usable as constant expressions.
25160
25161 2009-05-31  Bruno Haible  <bruno@clisp.org>
25162
25163         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
25164         * tests/test-memchr.c (main): Check that memchr does not read past the
25165         first occurrence of the byte.
25166         * tests/test-strstr.c (main): Update comment.
25167         Suggested by Eric Blake.
25168
25169 2009-05-30  Bruno Haible  <bruno@clisp.org>
25170
25171         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
25172         detail how to use dumpbin.
25173         Reported by David Byron <dbyron@dbyron.com>.
25174
25175 2009-06-02  Simon Josefsson  <simon@josefsson.org>
25176
25177         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
25178
25179 2009-06-02  Simon Josefsson  <simon@josefsson.org>
25180
25181         * m4/manywarnings.m4: Add GCC 4.4 warnings.
25182
25183 2009-05-28  Bruno Haible  <bruno@clisp.org>
25184
25185         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
25186         build-aux/ files.
25187
25188 2009-05-28  Simon Josefsson  <simon@josefsson.org>
25189
25190         * gnulib-tool (func_import): Transform license on build-aux/ files too.
25191
25192 2009-05-27  Simon Josefsson  <simon@josefsson.org>
25193
25194         * gnulib-tool (sed_transform_main_lib_file)
25195         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
25196         regexps.
25197
25198 2009-05-26  Simon Josefsson  <simon@josefsson.org>
25199
25200         * tests/test-strstr.c: Add another self-test.
25201         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
25202         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
25203
25204 2009-05-23  Bruno Haible  <bruno@clisp.org>
25205
25206         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
25207         change.
25208
25209 2009-05-21  Bruno Haible  <bruno@clisp.org>
25210
25211         Simplify use of mode_t varargs.
25212         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
25213         uses 'mode_t' or 'int'.
25214         * lib/openat.c (openat): Likewise.
25215         * lib/open-safer.c (open_safer): Likewise.
25216         * m4/mode_t.m4: New file.
25217         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
25218         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
25219         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
25220         * modules/open (Files): Add m4/mode_t.m4.
25221         * modules/openat (Files): Likewise.
25222         * modules/fcntl-safer (Files): Likewise.
25223         Suggested by Eric Blake.
25224
25225 2009-05-21  Pádraig Brady  <P@draigbrady.com>
25226
25227         * doc/glibc-functions/fallocate.texi: New file.
25228         * doc/gnulib.texi: Include it.
25229
25230 2009-05-21  Eric Blake  <ebb9@byu.net>
25231             Bruno Haible  <bruno@clisp.org>
25232
25233         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
25234         invocations.
25235         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25236
25237 2009-05-21  Eric Blake  <ebb9@byu.net>
25238             Bruno Haible  <bruno@clisp.org>
25239
25240         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
25241         include_next. Fix of 2008-11-20 commit.
25242         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
25243         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
25244         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
25245         NEXT_MATH_H.
25246         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
25247         instead of NEXT_MATH_H.
25248
25249 2009-05-21  Bruno Haible  <bruno@clisp.org>
25250
25251         Avoid redefinition warnings for SIZE_MAX.
25252         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
25253         Reported by Simon Josefsson.
25254
25255 2009-05-21  Bruno Haible  <bruno@clisp.org>
25256
25257         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
25258         AC_CACHE_VAL.
25259
25260 2009-05-20  Bruno Haible  <bruno@clisp.org>
25261
25262         Make zeroptr.h work on mingw.
25263         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
25264         mprotect.
25265         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
25266         * modules/memchr2-tests (configure.ac): Likewise.
25267         * modules/memcmp-tests (configure.ac): Likewise.
25268         * modules/memmem-tests (configure.ac): Likewise.
25269         * modules/memrchr-tests (configure.ac): Likewise.
25270         Reported by Simon Josefsson.
25271
25272 2009-05-20  Simon Josefsson  <simon@josefsson.org>
25273
25274         * tests/test-glob.c: Include string.h for strcmp prototype.
25275
25276 2009-05-20  Simon Josefsson  <simon@josefsson.org>
25277
25278         * modules/getdelim (Depends-on): Add explicit stdint, although it
25279         was implicitly already pulled in via realloc-posix.
25280         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
25281
25282 2009-05-20  Simon Josefsson  <simon@josefsson.org>
25283
25284         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
25285         G. Christensen" <tgc@jupiterrise.com>.
25286         * m4/sys_socket_h.m4: Check for sa_family_t.
25287         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
25288         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
25289         * tests/test-sys_socket.c: Check that sa_family_t works.
25290
25291 2009-05-18  Eric Blake  <ebb9@byu.net>
25292
25293         maint.mk: allow gnulib_dir in VPATH build
25294         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
25295
25296 2009-05-15  Jim Meyering  <meyering@redhat.com>
25297
25298         maint.mk: Give gnulib_dir a default definition.
25299         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
25300         Thus, most packages no longer need to specify this variable in cfg.mk
25301
25302 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
25303
25304         rename.m4: fix typos that would make non-mingw cross-configure fail
25305         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
25306
25307 2009-05-13  Eric Blake  <ebb9@byu.net>
25308
25309         mmap-anon: avoid out-of-order autoconf expansion
25310         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
25311         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
25312         * modules/memchr-tests (Depends-on): Add extensions.
25313         * modules/memchr2-tests (Depends-on): Add extensions.
25314         * modules/memcmp-tests (Depends-on): Add extensions.
25315         * modules/memmem-tests (Depends-on): Add extensions.
25316         * modules/memrchr-tests (Depends-on): Add extensions.
25317
25318 2009-05-13  Bruno Haible  <bruno@clisp.org>
25319
25320         Make some tests ISO C 99 compliant.
25321         * tests/zerosize-ptr.h: New file.
25322         * tests/test-memchr.c: Include zerosize-ptr.h.
25323         (main): Use a zero-size object pointer instead of NULL.
25324         * tests/test-memchr2.c: Include zerosize-ptr.h.
25325         (main): Use a zero-size object pointer instead of NULL.
25326         * tests/test-memcmp.c: Include zerosize-ptr.h.
25327         (main): Use a zero-size object pointer instead of NULL.
25328         * tests/test-memmem.c: Include zerosize-ptr.h.
25329         (main): Use a zero-size object pointer instead of NULL.
25330         * tests/test-memrchr.c: Include zerosize-ptr.h.
25331         (main): Use a zero-size object pointer instead of NULL.
25332         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
25333         m4/mmap-anon.m4.
25334         (Depends-on): Add getpagesize.
25335         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25336         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
25337         m4/mmap-anon.m4.
25338         (Depends-on): Add getpagesize.
25339         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25340         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
25341         m4/mmap-anon.m4.
25342         (Depends-on): Add getpagesize.
25343         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25344         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
25345         m4/mmap-anon.m4.
25346         (Depends-on): Add getpagesize.
25347         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25348         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
25349         m4/mmap-anon.m4.
25350         (Depends-on): Add getpagesize.
25351         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25352
25353 2009-05-12  Bruno Haible  <bruno@clisp.org>
25354
25355         Tests for module 'alignof'.
25356         * modules/alignof-tests: New file.
25357         * tests/test-alignof.c: New file.
25358
25359 2009-05-12  Bruno Haible  <bruno@clisp.org>
25360
25361         Fix alignof macro.
25362         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
25363         vendor compilers that are always correct.
25364
25365 2009-05-12  Bruno Haible  <bruno@clisp.org>
25366
25367         Make the MAP_ANONYMOUS detection work on HP-UX 11.
25368         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
25369         not whether its fully works.
25370
25371 2009-05-12  Bruno Haible  <bruno@clisp.org>
25372
25373         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
25374
25375 2009-05-12  Jim Meyering  <meyering@redhat.com>
25376
25377         * top/maint.mk: Adjust backslash alignment.
25378
25379 2009-05-11  Simon Josefsson  <simon@josefsson.org>
25380
25381         * top/maint.mk: Make $(srcdir)/build-aux configurable.
25382
25383 2009-05-11  Eric Blake  <ebb9@byu.net>
25384
25385         argp: avoid undefined behavior
25386         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
25387         macros.
25388
25389 2009-05-08  Simon Josefsson  <simon@josefsson.org>
25390
25391         * tests/test-vc-list-files-git.sh: Do git config of user.email and
25392         user.name to prevent git commit from complaining.
25393
25394 2009-05-10  Bruno Haible  <bruno@clisp.org>
25395
25396         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
25397         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
25398         it rewrites every file name only once.
25399         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
25400
25401 2009-05-08  Bruno Haible  <bruno@clisp.org>
25402
25403         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
25404         instead of 'max'.
25405
25406 2009-05-08  Simon Josefsson  <simon@josefsson.org>
25407
25408         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
25409         sockaddr_storage test.
25410
25411 2009-05-07  Simon Josefsson  <simon@josefsson.org>
25412
25413         * modules/sys_socket (Makefile.am): Substitute
25414         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
25415         * m4/sys_socket_h.m4: Check for sockaddr_storage.
25416         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
25417         * tests/test-sys_socket.c: Check sockaddr_storage.
25418
25419 2009-05-08  Bruno Haible  <bruno@clisp.org>
25420
25421         New module 'alignof'.
25422         * lib/alignof.h: New file.
25423         * modules/alignof: New file.
25424
25425 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
25426             Bruno Haible  <bruno@clisp.org>
25427
25428         Fix test-file-has-acl on FreeBSD.
25429         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
25430         mask is implicitly added.
25431         * tests/test-file-has-acl.c: Include <signal.h>.
25432         (main): Terminate the test after 5 seconds.
25433         * modules/acl-tests (configure.ac): Check for alarm function.
25434
25435 2009-05-04  Bruno Haible  <bruno@clisp.org>
25436
25437         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
25438         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
25439         * modules/errno (configure.ac): Drop AC_REQUIRE.
25440         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
25441         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
25442
25443 2009-05-04  Simon Josefsson  <simon@josefsson.org>
25444
25445         * modules/glob-tests: New module.
25446         * tests/test-glob.c: Add.
25447
25448 2009-05-04  Simon Josefsson  <simon@josefsson.org>
25449
25450         * modules/fnmatch-tests: New module.
25451         * tests/test-fnmatch.c: Add.
25452
25453 2009-05-04  Eric Blake  <ebb9@byu.net>
25454
25455         maint: make the new no-submodule-changes rule VPATH-safe
25456         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
25457
25458 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
25459             Bruno Haible  <bruno@clisp.org>
25460
25461         acl: Fix infinite loop on FreeBSD.
25462         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
25463         of return value from acl_get_entry.
25464         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
25465         Likewise.
25466
25467 2009-05-03  Bruno Haible  <bruno@clisp.org>
25468
25469         * lib/acl-internal.h (acl_entries): Clarify return value.
25470         * lib/acl_entries.c (acl_entries): Likewise.
25471
25472 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
25473
25474         Bug fix in acl module.
25475         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
25476
25477 2009-05-03  Bruno Haible  <bruno@clisp.org>
25478
25479         Create gperf-generated file in the source dir, not in the build dir.
25480         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
25481         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
25482         * modules/unicase/locale-language (unicase/locale-languages.h):
25483         Likewise.
25484         * modules/unicase/special-casing (unicase/special-casing-table.h):
25485         Likewise.
25486         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
25487         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
25488         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
25489         Reported by Ralf Wildenhues.
25490
25491 2009-05-03  Bruno Haible  <bruno@clisp.org>
25492
25493         * modules/fnmatch (Description, configure.ac): Taken from
25494         fnmatch-posix.
25495         * modules/fnmatch-posix: Turn into a symbolic reference to the
25496         'fnmatch' module, and deprecate.
25497         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
25498
25499 2009-05-03  Bruno Haible  <bruno@clisp.org>
25500
25501         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
25502         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
25503         Reported by Ralf Wildenhues.
25504
25505 2009-05-04  Simon Josefsson  <simon@josefsson.org>
25506
25507         * m4/fnmatch.m4: Fix fnmatch re-define.
25508
25509 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
25510
25511         priv-set: new module and tests; adapt write-any-file
25512         * lib/priv-set.c: New file.
25513         * lib/priv-set.h: New file.
25514         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
25515         * lib/write-any-file.c: Simplify by using priv-set module.
25516         * m4/priv-set.m4: New file.
25517         * modules/priv-set: New file.
25518         * modules/unlinkdir: Add dependency on priv-set module.
25519         * modules/write-any-file: Likewise.
25520
25521         Tests for module 'priv-set'.
25522         * modules/priv-set-tests: New file.
25523         * tests/test-priv-set.c: New file.
25524
25525 2009-05-03  Jim Meyering  <meyering@redhat.com>
25526             Bruno Haible  <bruno@clisp.org>
25527
25528         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
25529         use the converted UTF-8 variant of the name instead.
25530
25531 2009-05-03  Jim Meyering  <meyering@redhat.com>
25532
25533         tests: tighten some getdate tests
25534         * tests/test-getdate.c (main): Tighten tests: require equality,
25535         not just greater than.  Set TZ envvar to UTC0.
25536
25537 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
25538
25539         getdate: correctly interpret "next monday" when run on a Monday
25540         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
25541         that e.g., "next tues" (when run on a tuesday) results in a date
25542         that is one week in the future, and not today's date.
25543         I.e., add a week when the wday is the same as the current one.
25544         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
25545         and earlier by Martin Bernreuther and Jan Minář.
25546         * tests/test-getdate.c (main): Check that "next DAY" is always in
25547         the future and that "last DAY" is always in the past.
25548
25549 2009-05-02  Jim Meyering  <meyering@redhat.com>
25550
25551         build: ensure that a release build fails when a submodule is unclean
25552         * top/maint.mk (no-submodule-changes): New rule.
25553         (alpha beta major): Depend on it.
25554
25555 2009-05-02  Bruno Haible  <bruno@clisp.org>
25556
25557         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
25558         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
25559         shell variable gl_fnmatch_required to detect which variant is
25560         requested.
25561         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
25562         gl_FUNC_FNMATCH_POSIX.
25563         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
25564         exclude fnmatch-posix.
25565
25566 2009-05-02  Bruno Haible  <bruno@clisp.org>
25567
25568         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
25569         * modules/mbsrtowcs (License): Change to LGPLv2+.
25570         * modules/strnlen1 (License): Likewise.
25571         Reported by Simon Josefsson.
25572
25573 2009-05-02  Bruno Haible  <bruno@clisp.org>
25574
25575         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
25576         "cross".
25577         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
25578         gnulib-tool was called with option --source-base=lib.
25579
25580 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25581
25582         Use automake *-local hooks without commands, for extensibility.
25583         * modules/localcharset (Makefile.am): Rename install-exec-local
25584         rule to install-exec-localcharset, and make it a prerequisite of
25585         install-exec-local.  Likewise, rename the uninstall-local rule to
25586         uninstall-localcharset, and make it a prerequisite of the former.
25587
25588 2009-05-01  Bruno Haible  <bruno@clisp.org>
25589
25590         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
25591         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
25592         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
25593         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
25594         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
25595         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
25596         m4/locale-zh.m4, m4/codeset.m4.
25597
25598         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
25599         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
25600         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
25601         m4/locale-zh.m4.
25602
25603         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
25604         REPLACE_WCRTOMB if mbstate_t must be replaced.
25605         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
25606         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
25607
25608 2009-05-01  Bruno Haible  <bruno@clisp.org>
25609
25610         Avoid compiler warnings when redefining macros defined by <libintl.h>.
25611         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
25612         dngettext, dcngettext, textdomain, bindtextdomain,
25613         bind_textdomain_codeset): Undefine before redefining.
25614
25615 2009-04-30  Bruno Haible  <bruno@clisp.org>
25616
25617         Fix bug introduced on 2009-04-25.
25618         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
25619         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
25620         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
25621         is defined.
25622         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
25623         is defined.
25624         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
25625         is defined.
25626         Reported by Elbert_Pol <elbert.pol@gmail.com>.
25627
25628 2009-04-28  Bruno Haible  <bruno@clisp.org>
25629
25630         Comment tweaks.
25631         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
25632         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
25633         * lib/unicase.h (u*_casexfrm): Likewise.
25634         Reported by Paolo Bonzini.
25635
25636 2009-04-28  Bruno Haible  <bruno@clisp.org>
25637
25638         Fix a compilation error.
25639         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
25640         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
25641         Reported by Jim Meyering.
25642
25643 2009-04-27  Bruno Haible  <bruno@clisp.org>
25644
25645         New module 'libunistring'.
25646         * modules/libunistring: New file.
25647         * m4/libunistring.m4: New file.
25648         * MODULES.html.sh (Unicode string functions): Add it.
25649
25650 2009-04-27  Eric Blake  <ebb9@byu.net>
25651
25652         maint.mk: allow package-specific header to provide <config.h>
25653         * top/maint.mk (sc_require_config_h): New variable.
25654         (sc_require_config_h, sc_require_config_h_first): Use it.
25655
25656 2009-04-27  Simon Josefsson  <simon@josefsson.org>
25657
25658         * top/maint.mk (sc_avoid_if_before_free): Except
25659         useless-if-before-free script.
25660
25661 2009-04-27  Eric Blake  <ebb9@byu.net>
25662
25663         maintainer-makefile: depend on all required helper scripts
25664         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
25665         useless-if-before-free.
25666         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
25667         version, rather than assuming gnulib checkout is available.
25668         Reported by Simen Josefsson.
25669
25670 2009-04-26  Bruno Haible  <bruno@clisp.org>
25671
25672         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
25673         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
25674         "../" or "..".
25675
25676 2009-04-26  Bruno Haible  <bruno@clisp.org>
25677
25678         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
25679         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
25680         AC_LIB_HAVE_LINKFLAGS.
25681
25682 2009-04-26  Bruno Haible  <bruno@clisp.org>
25683
25684         Simplify calling convention of u*_conv_from_encoding.
25685         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
25686         u32_conv_from_encoding): Expect a resultbuf argument and return the
25687         result directly as a pointer.
25688         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
25689         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
25690         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
25691         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
25692         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
25693         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
25694         Update.
25695         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
25696         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
25697         * lib/vasnprintf.c (VASNPRINTF): Update.
25698         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
25699         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
25700         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
25701         * NEWS: Mention the change.
25702
25703 2009-04-26  Bruno Haible  <bruno@clisp.org>
25704
25705         Simplify calling convention of u*_conv_to_encoding.
25706         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
25707         u32_conv_to_encoding): Expect a resultbuf argument and return the
25708         result directly as a pointer.
25709         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
25710         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
25711         freeing scaled_offsets if mem_iconveha failed.
25712         * lib/unicase/u-casexfrm.h (FUNC): Update.
25713         * lib/uninorm/u-normxfrm.h (FUNC): Update.
25714         * lib/vasnprintf.c (VASNPRINTF): Update.
25715         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
25716         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
25717         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
25718         * NEWS: Mention the change.
25719
25720 2009-04-26  Bruno Haible  <bruno@clisp.org>
25721
25722         Avoid test failures on AIX and OSF/1.
25723         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
25724         malloc(0).
25725         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
25726         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
25727         Likewise.
25728         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
25729         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
25730         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
25731         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
25732         * doc/posix-functions/malloc.texi: Document the portability problem
25733         related to malloc(0).
25734
25735 2009-04-26  Bruno Haible  <bruno@clisp.org>
25736
25737         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
25738         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
25739         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
25740
25741 2009-04-25  Bruno Haible  <bruno@clisp.org>
25742
25743         Avoid link error when creating a namespace clean library.
25744         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
25745         as macro with arguments if already defined as an alias.
25746         * lib/signbitf.c (gl_signbitf): Don't undefine.
25747         * lib/signbitd.c (gl_signbitd): Don't undefine.
25748         * lib/signbitl.c (gl_signbitl): Don't undefine.
25749
25750 2009-04-25  Jim Meyering  <meyering@redhat.com>
25751
25752         vc-list-files: fix another quoting bug
25753         * build-aux/vc-list-files: Avoid sed backslash expansion
25754         of pathological directory names.
25755
25756 2009-04-25  Eric Blake  <ebb9@byu.net>
25757
25758         vc-list-files: fix shell quoting error
25759         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
25760         timestamp.
25761
25762 2009-04-25  Jim Meyering  <meyering@redhat.com>
25763
25764         vc-list-files: restore lost functionality with subdir argument
25765         * build-aux/vc-list-files: When given a non-"." sub-directory
25766         argument, substitute the $dir/ prefix back onto each resulting name.
25767         Otherwise, coreutils' root_tests check would fail.
25768
25769 2009-04-24  Eric Blake  <ebb9@byu.net>
25770
25771         vc-list-files: ignore git symlinks
25772         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
25773         than ls-files, to ignore git symlinks.
25774
25775         maint.mk: import improvements from m4
25776         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
25777         (move_if_change): Delete unused macro.
25778         (news-date-check, vc-diff-check): Support VPATH builds.
25779         (announcement): Likewise.  Split --bootstrap-tools list...
25780         (boostrap-tools): ...into separate list, which can be overridden
25781         in cfg.mk.
25782         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
25783         requiring dependency on useless-if-before-free module.
25784         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
25785         Support VPATH builds.
25786
25787 2009-04-24  Jim Meyering  <meyering@redhat.com>
25788
25789         maint.mk: remove coreutils-specific rules and variables
25790         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
25791         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
25792         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
25793
25794         maint.mk: remove obsolete rule
25795         * top/maint.mk (rel-check): Remove rule.
25796         (WGET, WGETFLAGS): Remove now-unused variables.
25797
25798 2009-04-24  Simon Josefsson  <simon@josefsson.org>
25799
25800         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
25801         consistency.
25802
25803         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
25804         '$(PATH_SEPARATOR)' instead of ':'.
25805
25806 2009-04-24  Simon Josefsson  <simon@josefsson.org>
25807
25808         * lib/getopt1.c (main): Use 'const' for static array.
25809
25810 2009-04-24  Simon Josefsson  <simon@josefsson.org>
25811
25812         * top/maint.mk: Sync with coreutils.
25813         * NEWS: Explain incompatibilities.
25814
25815 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25816             Bruno Haible  <bruno@clisp.org>
25817
25818         Fix cross-compilation results.
25819         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
25820         statement, as third argument of AC_TRY_RUN.
25821         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25822         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25823         Likewise.
25824         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25825         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
25826         Likewise.
25827         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25828         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
25829         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
25830
25831 2009-04-20  Bruno Haible  <bruno@clisp.org>
25832
25833         Avoid test failure on mingw.
25834         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
25835
25836 2009-04-20  Bruno Haible  <bruno@clisp.org>
25837
25838         Avoid compilation error on mingw.
25839         * modules/localename-tests (Depends-on): Add locale.
25840
25841 2009-04-19  Bruno Haible  <bruno@clisp.org>
25842
25843         Support for building a shared library on Windows platforms.
25844         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
25845         (main): Test the presence of UNINORM_NFC here.
25846         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
25847         (main): Test the presence of UNINORM_NFD here.
25848         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
25849         (main): Test the presence of UNINORM_NFKC here.
25850         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
25851         (main): Test the presence of UNINORM_NFKD here.
25852
25853 2009-04-19  Bruno Haible  <bruno@clisp.org>
25854
25855         Avoid a compiler warning.
25856         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
25857         Change type of variable 'sequence'.
25858
25859 2009-04-19  Bruno Haible  <bruno@clisp.org>
25860
25861         * modules/configmake (Makefile.am): When the contents of configmake.h
25862         does not change, arrange to preserve its modification time.
25863
25864 2009-04-17  Simon Josefsson  <simon@josefsson.org>
25865
25866         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
25867         gettext domain.
25868
25869 2009-04-16  Jim Meyering  <meyering@redhat.com>
25870
25871         useless-if-before-free: improve conversion code
25872         * build-aux/useless-if-before-free: Adjust code-in-comment to match
25873         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
25874
25875 2009-04-14  Bruno Haible  <bruno@clisp.org>
25876
25877         * modules/fcntl (Depends-on): Add extensions.
25878         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
25879
25880 2009-04-12  Ben Pfaff  <blp@gnu.org>
25881
25882         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
25883         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
25884
25885 2009-03-20  Ben Pfaff  <blp@gnu.org>
25886
25887         Make rename replace existing destinations on Windows.
25888         * m4/rename.m4: Add test for Mingw.
25889         * lib/rename.c: Add rename replacement that uses MoveFileEx with
25890         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
25891         * doc/posix-functions/rename.texi: Document.
25892
25893 2009-04-10  Bruno Haible  <bruno@clisp.org>
25894
25895         New include file "iconveh.h".
25896         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
25897         * lib/striconveh.h: Include it.
25898         (enum iconv_ilseq_handler): Remove definition.
25899         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
25900         striconveh.h.
25901         * lib/striconveha.c: Include striconveh.h.
25902         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
25903         * modules/striconveh (Files): Add lib/iconveh.h.
25904         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
25905         lib/striconveh.h.
25906
25907 2009-04-10  Bruno Haible  <bruno@clisp.org>
25908
25909         * lib/uniconv.h: Update comment.
25910
25911 2009-04-10  Bruno Haible  <bruno@clisp.org>
25912
25913         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
25914         always.
25915         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
25916         * lib/unistr/u16-mbtouc-aux.c: Likewise.
25917         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
25918         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
25919         "unistring-notinline.h", so that the function gets defined always.
25920         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
25921         * lib/unistr/u8-uctomb.c: Likewise.
25922         * lib/unistr/u16-mbtouc.c: Likewise.
25923         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
25924         * lib/unistr/u16-uctomb.c: Likewise.
25925         * lib/unistr/u32-mbtouc.c: Likewise.
25926         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
25927         * lib/unistr/u32-uctomb.c: Likewise.
25928
25929 2009-04-10  Bruno Haible  <bruno@clisp.org>
25930
25931         Mark 'utime' obsolete.
25932         * modules/utime (Status, Notice): New sections.
25933         Suggested by Jim Meyering.
25934
25935         Fix cross-compile guess for utime test.
25936         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
25937         autoconf.
25938         * doc/posix-functions/utime.texi: Give more precisions.
25939         Reported by Jan <ipif@ymail.com>.
25940
25941 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
25942
25943         filevercmp: correct today's change
25944         * lib/filevercmp.c: Also handle coreutils' test inputs.
25945         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
25946
25947         Fix regression in 'filevercmp' module. Thanks Sven Joachim
25948         for reporting it.
25949         * lib/filevercmp.c: Special handle for "", "." and "..".
25950         * tests/test-filevercmp.c: Enlarge the set suite.
25951
25952 2009-04-07  Jim Meyering  <meyering@redhat.com>
25953
25954         useless-if-before-free: show how to remove braced useless free, too
25955         * build-aux/useless-if-before-free: still only in a comment, though.
25956
25957 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
25958
25959         maint.mk: import changes to syntax-check macros from coreutils
25960         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
25961         Use them in the relevant macros.
25962
25963 2009-04-06  Bruno Haible  <bruno@clisp.org>
25964
25965         Fix unportable use of bit-fields.
25966         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
25967         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
25968         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
25969
25970 2009-04-06  Bruno Haible  <bruno@clisp.org>
25971
25972         Avoid test failures on AIX and OSF/1.
25973         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
25974         that malloc(0) = NULL.
25975         * tests/unicase/test-u8-tolower.c (check): Likewise.
25976         * tests/unicase/test-u8-totitle.c (check): Likewise.
25977         * tests/unicase/test-u8-toupper.c (check): Likewise.
25978         * tests/unicase/test-u16-casefold.c (check): Likewise.
25979         * tests/unicase/test-u16-tolower.c (check): Likewise.
25980         * tests/unicase/test-u16-totitle.c (check): Likewise.
25981         * tests/unicase/test-u16-toupper.c (check): Likewise.
25982         * tests/unicase/test-u32-casefold.c (check): Likewise.
25983         * tests/unicase/test-u32-tolower.c (check): Likewise.
25984         * tests/unicase/test-u32-totitle.c (check): Likewise.
25985         * tests/unicase/test-u32-toupper.c (check): Likewise.
25986         * tests/uninorm/test-u8-nfc.c (check): Likewise.
25987         * tests/uninorm/test-u8-nfd.c (check): Likewise.
25988         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
25989         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
25990         * tests/uninorm/test-u16-nfc.c (check): Likewise.
25991         * tests/uninorm/test-u16-nfd.c (check): Likewise.
25992         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
25993         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
25994         * tests/uninorm/test-u32-nfc.c (check): Likewise.
25995         * tests/uninorm/test-u32-nfd.c (check): Likewise.
25996         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
25997         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
25998
25999 2009-04-05  Bruno Haible  <bruno@clisp.org>
26000
26001         Work around an autoconf limitation.
26002         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
26003         comment line if it would be longer than 3 KB.
26004
26005 2009-04-05  Bruno Haible  <bruno@clisp.org>
26006
26007         Avoid test failure with libiconv-1.13.
26008         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
26009         of the expected test results.
26010
26011 2009-04-05  Bruno Haible  <bruno@clisp.org>
26012
26013         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
26014         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
26015         that it should be installed.
26016
26017 2009-04-05  Bruno Haible  <bruno@clisp.org>
26018
26019         * gnulib-tool: New option --copy-file.
26020         (func_usage): Document it.
26021         (func_dest_tmpfilename): Moved out of func_import.
26022         (func_add_file, func_update_file): New functions, extracted from
26023         func_import.
26024         (func_import): Update.
26025
26026 2009-04-05  Karl Berry  <karl@gnu.org>
26027
26028         * README: prominently mention gnulib-tool.
26029         Rearrange sections so getting the code is near the top.
26030
26031 2009-04-05  Bruno Haible  <bruno@clisp.org>
26032
26033         * lib/unicase.h: Mention u*_cmp2.
26034         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
26035         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
26036         * lib/unicase/ulc-casecmp.c: Likewise.
26037         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
26038         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
26039         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
26040         unistr/u8-cmp.
26041         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
26042         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
26043         unistr/u16-cmp.
26044         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
26045         unistr/u32-cmp.
26046
26047         * lib/uninorm.h: Mention u*_cmp2.
26048         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
26049         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
26050         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
26051         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
26052         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
26053         unistr/u8-cmp.
26054         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
26055         unistr/u16-cmp.
26056         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
26057         unistr/u32-cmp.
26058
26059         New module 'unistr/u32-cmp2'.
26060         * lib/unistr/u32-cmp2.c: New file.
26061         * modules/unistr/u32-cmp2: New file.
26062
26063         New module 'unistr/u16-cmp2'.
26064         * lib/unistr/u16-cmp2.c: New file.
26065         * modules/unistr/u16-cmp2: New file.
26066
26067         New module 'unistr/u8-cmp2'.
26068         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
26069         * lib/unistr/u8-cmp2.c: New file.
26070         * lib/unistr/u-cmp2.h: New file.
26071         * modules/unistr/u8-cmp2: New file.
26072
26073 2009-04-05  Bruno Haible  <bruno@clisp.org>
26074
26075         * lib/unictype.h (uc_property_is_valid): New macro.
26076         * tests/unictype/test-pr_byname.c (main): Use it.
26077
26078         * lib/unistr.h: Doc fixes.
26079         * lib/uniconv.h: Doc fixes.
26080         * lib/unictype.h: Doc fixes.
26081
26082 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
26083
26084         Port coreutils 7.2 to Solaris 8.
26085
26086         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
26087         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
26088         for Solaris 8.  This is a bit of a hack, as it means it's the
26089         caller's responsibility to add -lnsl if needed, but most likely it
26090         won't be needed since only getaddrinfo uses this and getaddrinfo
26091         isn't needed on Solaris 8.
26092
26093         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
26094         problem to Solaris 8 encountered with coreutils 7.2, which
26095         resulted in a message "fnmatch.c:292: warning: passing argument 4
26096         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
26097         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
26098
26099 2009-04-03  Simon Josefsson  <simon@josefsson.org>
26100
26101         * m4/ld-version-script.m4: Add FIXME comment.
26102
26103 2009-04-02  Simon Josefsson  <simon@josefsson.org>
26104
26105         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
26106         SOVERSION variable.
26107
26108 2009-04-02  Bruno Haible  <bruno@clisp.org>
26109
26110         * Makefile (info, html, dvi, pdf): Combine the rules.
26111         Suggested by Jim Meyering.
26112
26113 2009-04-01  Bruno Haible  <bruno@clisp.org>
26114
26115         * Makefile (info, html, dvi, pdf): New targets.
26116         Reported by Reuben Thomas <rrt@sc3d.org>.
26117
26118 2009-04-01  Bruno Haible  <bruno@clisp.org>
26119
26120         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
26121         can be put into PATH.
26122         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
26123
26124 2009-04-01  Bruno Haible  <bruno@clisp.org>
26125
26126         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
26127
26128 2009-04-01  Bruno Haible  <bruno@clisp.org>
26129
26130         Rename module 'visibility'.
26131         * modules/lib-symbol-visibility: Renamed from modules/visibility.
26132         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
26133         * doc/gnulib.texi: Update.
26134         * MODULES.html.sh (Misc): Update.
26135         * NEWS: Mention the change.
26136
26137 2009-04-01  Simon Josefsson  <simon@josefsson.org>
26138
26139         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
26140         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
26141         Eric Blake <ebb9@byu.net> for review.
26142         * MODULES.html.sh: Add lib-msvc-compat.
26143         * doc/gnulib.texi: Link to new section.
26144         * m4/ld-output-def.m4: New file.
26145         * doc/ld-output-def.texi: New file.
26146
26147 2009-04-01  Simon Josefsson  <simon@josefsson.org>
26148
26149         Rename ld-version-script to lib-symbol-versions.  Suggested by
26150         Bruno Haible <bruno@clisp.org>.
26151         * modules/ld-version-script: Renamed to lib-symbol-versions.
26152         * doc/ld-version-script.texi: Fix module name.
26153         * MODULES.html.sh: Add lib-symbol-versions.
26154
26155 2009-03-31  Simon Josefsson  <simon@josefsson.org>
26156
26157         * modules/u64-tests: New file.
26158         * tests/test-u64.c: New file.
26159
26160 2009-03-04  Simon Josefsson  <simon@josefsson.org>
26161
26162         * MODULES.html.sh: Mention u64.
26163         * modules/u64: New module.
26164         * modules/crypto/sha512: Depend on u64 module instead of providing
26165         u64.h.
26166
26167 2009-03-27  Eric Blake  <ebb9@byu.net>
26168
26169         test-strerror: make debugging EAI_SYSTEM easier
26170         * modules/getaddrinfo-tests (Depends-on): Add strerror.
26171         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
26172         failure was EAI_SYSTEM.
26173
26174 2009-03-25  Bruno Haible  <bruno@clisp.org>
26175
26176         Fix a problem with --enable-relocatable on Solaris 7.
26177         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
26178         since 2008-02-24.
26179
26180 2009-03-25  Eric Blake  <ebb9@byu.net>
26181
26182         test-sockets: avoid gcc warning
26183         * tests/test-sockets.c (main): Silence compiler warning.
26184
26185 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
26186
26187         New modules nproc, pthread, contributed by Glen Lenker.
26188
26189         * MODULES.html.sh: Add pthread, nproc.
26190         * lib/nproc.c: New file.
26191         * lib/nproc.h: New file.
26192         * lib/pthread.in.h: New file.
26193         * m4/pthread.m4: New file.
26194         * modules/nproc: New file.
26195         * modules/pthread: New file.
26196
26197 2009-03-24  Simon Josefsson  <simon@josefsson.org>
26198
26199         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
26200         New variable.
26201
26202 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
26203
26204         filevercmp: handle simple~ and numbered.~3~ backup suffixes
26205         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
26206         * tests/test-filevercmp.c: Add tests for backup suffixes.
26207
26208 2009-03-24  Simon Josefsson  <simon@josefsson.org>
26209
26210         * modules/stdlib (Depends-on): Add stdint, needed when defining
26211         struct random_data on, for example, HP-UX 10.20.  Reported by
26212         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26213
26214 2009-03-24  Simon Josefsson  <simon@josefsson.org>
26215
26216         * lib/readline.c (readline): Call fflush on stdout after printing
26217         prompt.
26218
26219 2009-03-20  Bruno Haible  <bruno@clisp.org>
26220
26221         Remove dependency from 'close' module to -lws2_32 on native Windows.
26222         * lib/close-hook.h: New file.
26223         * lib/close-hook.c: New file.
26224         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
26225         w32sock.h.
26226         (_gl_close_fd_maybe_socket): Remove function.
26227         (rpl_close): Invoke execute_all_close_hooks instead of
26228         _gl_close_fd_maybe_socket.
26229         * lib/sockets.c: Include close-hook.h, w32sock.h.
26230         (close_fd_maybe_socket): New function, essentially from lib/close.c.
26231         (close_sockets_hook): New variable.
26232         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
26233         (gl_sockets_cleanup): Unregister it.
26234         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
26235         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
26236         * modules/close-hook: New file.
26237         * modules/close (Files): Remove lib/w32sock.h.
26238         (Depends-on): Add close-hook.
26239         (Link): Remove section.
26240         * modules/sockets (Files): Add lib/w32sock.h.
26241         (Depends-on): Add close-hook.
26242         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
26243         invocation.
26244         * NEWS: Mention that LIB_CLOSE is gone.
26245
26246 2009-03-23  Eric Blake  <ebb9@byu.net>
26247
26248         signal-tests: test previous patch
26249         * tests/test-signal.c: New file.
26250         * modules/signal-tests: Likewise.
26251
26252         signal.h: always support 'volatile sig_atomic_t'
26253         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
26254         (gl_SIGNAL_H_DEFAULTS): Add a default.
26255         * modules/signal (Makefile.am): Substitute if needed.
26256         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
26257         users can blindly add volatile.
26258         * doc/posix-headers/signal.texi (signal.h): Document it.
26259         Reported by Matthew Woehlke.
26260
26261 2009-03-23  Jim Meyering  <meyering@redhat.com>
26262
26263         pathmax: PATH_MAX: use pathconf only when available
26264         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
26265         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
26266         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
26267         This avoids a link failure in a PSP cross-compilation environment
26268         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
26269
26270         * lib/vasnprintf.c (divide): Fix typo in comment.
26271
26272 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26273
26274         * gnulib-tool (func_filter_filelist): Fix comment.
26275
26276 2009-03-20  Bruno Haible  <bruno@clisp.org>
26277
26278         Make sockets.h self-contained.
26279         * lib/sockets.c: Include sockets.h first.
26280         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
26281
26282 2009-03-19  Eric Blake  <ebb9@byu.net>
26283
26284         doc: mention more functions added in cygwin 1.7.0
26285         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
26286         addition.
26287         * doc/posix-functions/log2f.texi: Likewise.
26288
26289 2009-03-19  Jim Meyering  <meyering@redhat.com>
26290
26291         fsusage: avoid syntax error due to statement-before-declaration
26292         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
26293         after all declarations.  Reported by Matthew Woehlke in
26294         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
26295
26296 2009-03-18  Eric Blake  <ebb9@byu.net>
26297
26298         build-aux/compile: sync from automake
26299         * build-aux/compile: New file, from automake.
26300         * config/srclist.txt: Mention build-aux/compile.
26301
26302 2009-03-17  Bruno Haible  <bruno@clisp.org>
26303
26304         * lib/git-merge-changelog.c: Fix typo in comment.
26305         Reported by Reuben Thomas <rrt@sc3d.org>.
26306
26307 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
26308
26309         * m4/regex.m4: update and improve help for
26310         --without-included-regex.
26311
26312 2009-03-17  Simon Josefsson  <simon@josefsson.org>
26313
26314         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
26315         failure on missing include files.
26316
26317 2009-03-17  Eric Blake  <ebb9@byu.net>
26318
26319         doc: mention more functions added in cygwin 1.7.0
26320         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
26321         addition.
26322         * doc/posix-functions/fwscanf.texi: Likewise.
26323         * doc/posix-functions/swprintf.texi: Likewise.
26324         * doc/posix-functions/swscanf.texi: Likewise.
26325         * doc/posix-functions/vfwprintf.texi: Likewise.
26326         * doc/posix-functions/vfwscanf.texi: Likewise.
26327         * doc/posix-functions/vswprintf.texi: Likewise.
26328         * doc/posix-functions/vswscanf.texi: Likewise.
26329         * doc/posix-functions/vwprintf.texi: Likewise.
26330         * doc/posix-functions/vwscanf.texi: Likewise.
26331         * doc/posix-functions/wcscasecmp.texi: Likewise.
26332         * doc/posix-functions/wcsdup.texi: Likewise.
26333         * doc/posix-functions/wcsftime.texi: Likewise.
26334         * doc/posix-functions/wcsncasecmp.texi: Likewise.
26335         * doc/posix-functions/wprintf.texi: Likewise.
26336         * doc/posix-functions/wscanf.texi: Likewise.
26337         * doc/glibc-functions/gethostbyname2.texi: Likewise.
26338
26339 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26340
26341         maint.mk: really add $(AM_MAKEFLAGS)
26342         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
26343         was inadvertently omitted in the last commit.
26344         Spotted by Bruno Haible.
26345
26346         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
26347         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
26348         $(AM_MAKEFLAGS)' rather than plain `make'.
26349
26350         gnulib-tool: execute $MAKE not make
26351         * gnulib-tool: Default $MAKE to 'make'.
26352         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
26353         than make.  Initialize $MAKE in the do-autobuild script.
26354
26355         gnulib-tool: use $MAKE not make in generated files
26356         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
26357         make, in generated files.  Initialize $MAKE in the do-autobuild
26358         script.
26359
26360         * top/GNUmakefile (_have-git-version-gen): Fix typo.
26361
26362         GNUmakefile: disable parallelism only for multiple, recursive targets
26363         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
26364         additions in the Makefile.
26365         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
26366         by Automake.
26367         (.NOTPARALLEL): Only disable parallel builds if multiple targets
26368         are listed on the command line and at least one of them is
26369         listed in $(ALL_RECURSIVE_TARGETS).
26370
26371 2009-03-14  Bruno Haible  <bruno@clisp.org>
26372
26373         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
26374         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
26375         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
26376         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
26377         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
26378         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
26379         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
26380         unistr/u8-uctomb.
26381         * modules/unistr/u8-strchr (Depends-on): Likewise.
26382         * modules/unistr/u8-strrchr (Depends-on): Likewise.
26383         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
26384         unistr/u16-uctomb.
26385         * modules/unistr/u16-strchr (Depends-on): Likewise.
26386         * modules/unistr/u16-strrchr (Depends-on): Likewise.
26387
26388 2009-03-12  Bruno Haible  <bruno@clisp.org>
26389
26390         Work around select() bug on Interix 3.5.
26391         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
26392         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
26393         * m4/select.m4: New file.
26394         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
26395         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
26396         * modules/select (Files): Add m4/select.m4.
26397         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
26398         * modules/nanosleep (Depends-on): Add select.
26399         * modules/poll (Depends-on): Likewise.
26400         * doc/posix-functions/select.texi: Mention the Interix bug.
26401         Reported by Markus Duft <mduft@gentoo.org>.
26402
26403         * lib/select.c: Renamed from lib/winsock-select.c.
26404         * modules/select (Files): Add lib/select.c, remove
26405         lib/winsock-select.c.
26406         (configure.ac): Update.
26407
26408 2009-03-12  Jim Meyering  <meyering@redhat.com>
26409
26410         avoid gcc warnings about unused macro definitions
26411         * lib/readtokens.c (STREQ): Remove unused definition.
26412         * lib/xmalloc.c (SIZE_MAX): Likewise.
26413         * lib/openat-die.c (N_): Likewise.
26414         * lib/mountlist.c (SIZE_MAX): Remove definition.
26415         Instead, include <stdint.h>.
26416         * lib/readutmp.c: Likewise.
26417         * modules/readutmp (Depends-on): Add stdint.
26418         * modules/mountlist (Depends-on): Add stdint.
26419         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
26420
26421 2009-03-10  Bruno Haible  <bruno@clisp.org>
26422
26423         Tests for module 'mbmemcasecoll'.
26424         * modules/mbmemcasecoll-tests: New file.
26425         * tests/test-mbmemcasecoll1.sh: New file.
26426         * tests/test-mbmemcasecoll2.sh: New file.
26427         * tests/test-mbmemcasecoll3.sh: New file.
26428         * tests/test-mbmemcasecoll.c: New file.
26429
26430         New module 'mbmemcasecoll'.
26431         * lib/mbmemcasecoll.h: New file.
26432         * lib/mbmemcasecoll.c: New file.
26433         * modules/mbmemcasecoll: New file.
26434
26435         * tests/test-mbmemcasecmp.h: New file, extracted from
26436         tests/test-mbmemcasecmp.c.
26437         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
26438         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
26439         (main): Update.
26440         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
26441
26442 2009-03-09  Bruno Haible  <bruno@clisp.org>
26443
26444         Tests for module 'mbmemcasecmp'.
26445         * modules/mbmemcasecmp-tests: New file.
26446         * tests/test-mbmemcasecmp1.sh: New file.
26447         * tests/test-mbmemcasecmp2.sh: New file.
26448         * tests/test-mbmemcasecmp3.sh: New file.
26449         * tests/test-mbmemcasecmp.c: New file.
26450
26451         New module 'mbmemcasecmp'.
26452         * lib/mbmemcasecmp.h: New file.
26453         * lib/mbmemcasecmp.c: New file.
26454         * modules/mbmemcasecmp: New file.
26455
26456 2009-03-09  Bruno Haible  <bruno@clisp.org>
26457
26458         Tests for module 'unicase/ulc-casecoll'.
26459         * modules/unicase/ulc-casecoll-tests: New file.
26460         * tests/unicase/test-ulc-casecoll1.sh: New file.
26461         * tests/unicase/test-ulc-casecoll2.sh: New file.
26462         * tests/unicase/test-ulc-casecoll.c: New file.
26463
26464         New module 'unicase/ulc-casecoll'.
26465         * lib/unicase.h (ulc_casecoll): New declaration.
26466         * lib/unicase/ulc-casecoll.c: New file.
26467         * modules/unicase/ulc-casecoll: New file.
26468
26469         New module 'unicase/ulc-casexfrm'.
26470         * lib/unicase.h (ulc_casexfrm): New declaration.
26471         * lib/unicase/ulc-casexfrm.c: New file.
26472         * modules/unicase/ulc-casexfrm: New file.
26473
26474 2009-03-09  Bruno Haible  <bruno@clisp.org>
26475
26476         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
26477         invocations.
26478
26479         * m4/mbscasecmp.m4: Remove file.
26480         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
26481         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
26482
26483         * m4/mbscasestr.m4: Remove file.
26484         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
26485         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
26486
26487         * m4/mbschr.m4: Remove file.
26488         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
26489         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
26490
26491         * m4/mbscspn.m4: Remove file.
26492         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
26493         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
26494
26495         * m4/mbslen.m4: Remove file.
26496         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
26497         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
26498
26499         * m4/mbsncasecmp.m4: Remove file.
26500         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
26501         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
26502
26503         * m4/mbsnlen.m4: Remove file.
26504         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
26505         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
26506
26507         * m4/mbspbrk.m4: Remove file.
26508         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
26509         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
26510
26511         * m4/mbspcasecmp.m4: Remove file.
26512         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
26513         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
26514
26515         * m4/mbsrchr.m4: Remove file.
26516         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
26517         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
26518
26519         * m4/mbssep.m4: Remove file.
26520         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
26521         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
26522
26523         * m4/mbsspn.m4: Remove file.
26524         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
26525         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
26526
26527         * m4/mbsstr.m4: Remove file.
26528         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
26529         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
26530
26531         * m4/mbstok_r.m4: Remove file.
26532         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
26533         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
26534
26535         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
26536
26537         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
26538         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
26539
26540         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
26541
26542 2009-03-08  Bruno Haible  <bruno@clisp.org>
26543
26544         Tests for module 'unicase/ulc-casecmp'.
26545         * modules/unicase/ulc-casecmp-tests: New file.
26546         * tests/unicase/test-ulc-casecmp1.sh: New file.
26547         * tests/unicase/test-ulc-casecmp2.sh: New file.
26548         * tests/unicase/test-ulc-casecmp.c: New file.
26549
26550         New module 'unicase/ulc-casecmp'.
26551         * lib/unicase.h (ulc_casecmp): New declaration.
26552         * lib/unicase/ulc-casecmp.c: New file.
26553         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
26554         'const SRC_UNIT *'.
26555         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
26556         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
26557         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
26558         * modules/unicase/ulc-casecmp: New file.
26559
26560         Tests for module 'unicase/u32-is-cased'.
26561         * modules/unicase/u32-is-cased-tests: New file.
26562         * tests/unicase/test-u32-is-cased.c: New file.
26563
26564         Tests for module 'unicase/u16-is-cased'.
26565         * modules/unicase/u16-is-cased-tests: New file.
26566         * tests/unicase/test-u16-is-cased.c: New file.
26567
26568         Tests for module 'unicase/u8-is-cased'.
26569         * modules/unicase/u8-is-cased-tests: New file.
26570         * tests/unicase/test-u8-is-cased.c: New file.
26571         * tests/unicase/test-is-cased.h: New file.
26572
26573         New module 'unicase/u32-is-cased'.
26574         * lib/unicase/u32-is-cased.c: New file.
26575         * modules/unicase/u32-is-cased: New file.
26576
26577         New module 'unicase/u16-is-cased'.
26578         * lib/unicase/u16-is-cased.c: New file.
26579         * modules/unicase/u16-is-cased: New file.
26580
26581         New module 'unicase/u8-is-cased'.
26582         * lib/unicase/u8-is-cased.c: New file.
26583         * lib/unicase/u-is-cased.h: New file.
26584         * modules/unicase/u8-is-cased: New file.
26585
26586         Tests for module 'unicase/u32-is-casefolded'.
26587         * modules/unicase/u32-is-casefolded-tests: New file.
26588         * tests/unicase/test-u32-is-casefolded.c: New file.
26589
26590         Tests for module 'unicase/u16-is-casefolded'.
26591         * modules/unicase/u16-is-casefolded-tests: New file.
26592         * tests/unicase/test-u16-is-casefolded.c: New file.
26593
26594         Tests for module 'unicase/u8-is-casefolded'.
26595         * modules/unicase/u8-is-casefolded-tests: New file.
26596         * tests/unicase/test-u8-is-casefolded.c: New file.
26597         * tests/unicase/test-is-casefolded.h: New file.
26598
26599         New module 'unicase/u32-is-casefolded'.
26600         * lib/unicase/u32-is-casefolded.c: New file.
26601         * modules/unicase/u32-is-casefolded: New file.
26602
26603         New module 'unicase/u16-is-casefolded'.
26604         * lib/unicase/u16-is-casefolded.c: New file.
26605         * modules/unicase/u16-is-casefolded: New file.
26606
26607         New module 'unicase/u8-is-casefolded'.
26608         * lib/unicase/u8-is-casefolded.c: New file.
26609         * modules/unicase/u8-is-casefolded: New file.
26610
26611         Tests for module 'unicase/u32-is-titlecase'.
26612         * modules/unicase/u32-is-titlecase-tests: New file.
26613         * tests/unicase/test-u32-is-titlecase.c: New file.
26614
26615         Tests for module 'unicase/u16-is-titlecase'.
26616         * modules/unicase/u16-is-titlecase-tests: New file.
26617         * tests/unicase/test-u16-is-titlecase.c: New file.
26618
26619         Tests for module 'unicase/u8-is-titlecase'.
26620         * modules/unicase/u8-is-titlecase-tests: New file.
26621         * tests/unicase/test-u8-is-titlecase.c: New file.
26622         * tests/unicase/test-is-titlecase.h: New file.
26623
26624         New module 'unicase/u32-is-titlecase'.
26625         * lib/unicase/u32-is-titlecase.c: New file.
26626         * modules/unicase/u32-is-titlecase: New file.
26627
26628         New module 'unicase/u16-is-titlecase'.
26629         * lib/unicase/u16-is-titlecase.c: New file.
26630         * modules/unicase/u16-is-titlecase: New file.
26631
26632         New module 'unicase/u8-is-titlecase'.
26633         * lib/unicase/u8-is-titlecase.c: New file.
26634         * modules/unicase/u8-is-titlecase: New file.
26635
26636         Tests for module 'unicase/u32-is-lowercase'.
26637         * modules/unicase/u32-is-lowercase-tests: New file.
26638         * tests/unicase/test-u32-is-lowercase.c: New file.
26639
26640         Tests for module 'unicase/u16-is-lowercase'.
26641         * modules/unicase/u16-is-lowercase-tests: New file.
26642         * tests/unicase/test-u16-is-lowercase.c: New file.
26643
26644         Tests for module 'unicase/u8-is-lowercase'.
26645         * modules/unicase/u8-is-lowercase-tests: New file.
26646         * tests/unicase/test-u8-is-lowercase.c: New file.
26647         * tests/unicase/test-is-lowercase.h: New file.
26648
26649         New module 'unicase/u32-is-lowercase'.
26650         * lib/unicase/u32-is-lowercase.c: New file.
26651         * modules/unicase/u32-is-lowercase: New file.
26652
26653         New module 'unicase/u16-is-lowercase'.
26654         * lib/unicase/u16-is-lowercase.c: New file.
26655         * modules/unicase/u16-is-lowercase: New file.
26656
26657         New module 'unicase/u8-is-lowercase'.
26658         * lib/unicase/u8-is-lowercase.c: New file.
26659         * modules/unicase/u8-is-lowercase: New file.
26660
26661         Tests for module 'unicase/u32-is-uppercase'.
26662         * modules/unicase/u32-is-uppercase-tests: New file.
26663         * tests/unicase/test-u32-is-uppercase.c: New file.
26664
26665         Tests for module 'unicase/u16-is-uppercase'.
26666         * modules/unicase/u16-is-uppercase-tests: New file.
26667         * tests/unicase/test-u16-is-uppercase.c: New file.
26668
26669         Tests for module 'unicase/u8-is-uppercase'.
26670         * modules/unicase/u8-is-uppercase-tests: New file.
26671         * tests/unicase/test-u8-is-uppercase.c: New file.
26672         * tests/unicase/test-is-uppercase.h: New file.
26673
26674         New module 'unicase/u32-is-uppercase'.
26675         * lib/unicase/u32-is-uppercase.c: New file.
26676         * modules/unicase/u32-is-uppercase: New file.
26677
26678         New module 'unicase/u16-is-uppercase'.
26679         * lib/unicase/u16-is-uppercase.c: New file.
26680         * modules/unicase/u16-is-uppercase: New file.
26681
26682         New module 'unicase/u8-is-uppercase'.
26683         * lib/unicase/u8-is-uppercase.c: New file.
26684         * modules/unicase/u8-is-uppercase: New file.
26685
26686         New module 'unicase/u32-is-invariant'.
26687         * lib/unicase/u32-is-invariant.c: New file.
26688         * modules/unicase/u32-is-invariant: New file.
26689
26690         New module 'unicase/u16-is-invariant'.
26691         * lib/unicase/u16-is-invariant.c: New file.
26692         * modules/unicase/u16-is-invariant: New file.
26693
26694         New module 'unicase/u8-is-invariant'.
26695         * lib/unicase/u8-is-invariant.c: New file.
26696         * lib/unicase/invariant.h: New file.
26697         * lib/unicase/u-is-invariant.h: New file.
26698         * modules/unicase/u8-is-invariant: New file.
26699
26700         Tests for module 'unicase/u32-casecoll'.
26701         * modules/unicase/u32-casecoll-tests: New file.
26702         * tests/unicase/test-u32-casecoll.c: New file.
26703
26704         Tests for module 'unicase/u16-casecoll'.
26705         * modules/unicase/u16-casecoll-tests: New file.
26706         * tests/unicase/test-u16-casecoll.c: New file.
26707
26708         Tests for module 'unicase/u8-casecoll'.
26709         * modules/unicase/u8-casecoll-tests: New file.
26710         * tests/unicase/test-u8-casecoll.c: New file.
26711
26712         New module 'unicase/u32-casecoll'.
26713         * lib/unicase/u32-casecoll.c: New file.
26714         * modules/unicase/u32-casecoll: New file.
26715
26716         New module 'unicase/u16-casecoll'.
26717         * lib/unicase/u16-casecoll.c: New file.
26718         * modules/unicase/u16-casecoll: New file.
26719
26720         New module 'unicase/u8-casecoll'.
26721         * lib/unicase/u8-casecoll.c: New file.
26722         * lib/unicase/u-casecoll.h: New file.
26723         * modules/unicase/u8-casecoll: New file.
26724
26725         New module 'unicase/u32-casexfrm'.
26726         * lib/unicase/u32-casexfrm.c: New file.
26727         * modules/unicase/u32-casexfrm: New file.
26728
26729         New module 'unicase/u16-casexfrm'.
26730         * lib/unicase/u16-casexfrm.c: New file.
26731         * modules/unicase/u16-casexfrm: New file.
26732
26733         New module 'unicase/u8-casexfrm'.
26734         * lib/unicase/u8-casexfrm.c: New file.
26735         * lib/unicase/u-casexfrm.h: New file.
26736         * modules/unicase/u8-casexfrm: New file.
26737
26738         Tests for module 'unicase/u32-casecmp'.
26739         * modules/unicase/u32-casecmp-tests: New file.
26740         * tests/unicase/test-u32-casecmp.c: New file.
26741
26742         Tests for module 'unicase/u16-casecmp'.
26743         * modules/unicase/u16-casecmp-tests: New file.
26744         * tests/unicase/test-u16-casecmp.c: New file.
26745
26746         Tests for module 'unicase/u8-casecmp'.
26747         * modules/unicase/u8-casecmp-tests: New file.
26748         * tests/unicase/test-u8-casecmp.c: New file.
26749         * tests/unicase/test-casecmp.h: New file.
26750
26751         New module 'unicase/u32-casecmp'.
26752         * lib/unicase/u32-casecmp.c: New file.
26753         * modules/unicase/u32-casecmp: New file.
26754
26755         New module 'unicase/u16-casecmp'.
26756         * lib/unicase/u16-casecmp.c: New file.
26757         * modules/unicase/u16-casecmp: New file.
26758
26759         New module 'unicase/u8-casecmp'.
26760         * lib/unicase/u8-casecmp.c: New file.
26761         * lib/unicase/u-casecmp.h: New file.
26762         * modules/unicase/u8-casecmp: New file.
26763
26764         Tests for module 'unicase/u32-casefold'.
26765         * modules/unicase/u32-casefold-tests: New file.
26766         * tests/unicase/test-u32-casefold.c: New file.
26767
26768         Tests for module 'unicase/u16-casefold'.
26769         * modules/unicase/u16-casefold-tests: New file.
26770         * tests/unicase/test-u16-casefold.c: New file.
26771
26772         Tests for module 'unicase/u8-casefold'.
26773         * modules/unicase/u8-casefold-tests: New file.
26774         * tests/unicase/test-u8-casefold.c: New file.
26775
26776         New module 'unicase/u32-casefold'.
26777         * lib/unicase/u32-casefold.c: New file.
26778         * modules/unicase/u32-casefold: New file.
26779
26780         New module 'unicase/u16-casefold'.
26781         * lib/unicase/u16-casefold.c: New file.
26782         * modules/unicase/u16-casefold: New file.
26783
26784         New module 'unicase/u8-casefold'.
26785         * lib/unicase/u8-casefold.c: New file.
26786         * lib/unicase/u-casefold.h: New file.
26787         * modules/unicase/u8-casefold: New file.
26788
26789         New module 'unicase/tocasefold'.
26790         * lib/unicase/casefold.h: New file.
26791         * lib/unicase/tocasefold.c: New file.
26792         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
26793         * modules/unicase/tocasefold: New file.
26794
26795         Tests for module 'unicase/u32-totitle'.
26796         * modules/unicase/u32-totitle-tests: New file.
26797         * tests/unicase/test-u32-totitle.c: New file.
26798
26799         Tests for module 'unicase/u16-totitle'.
26800         * modules/unicase/u16-totitle-tests: New file.
26801         * tests/unicase/test-u16-totitle.c: New file.
26802
26803         Tests for module 'unicase/u8-totitle'.
26804         * modules/unicase/u8-totitle-tests: New file.
26805         * tests/unicase/test-u8-totitle.c: New file.
26806
26807         New module 'unicase/u32-totitle'.
26808         * lib/unicase/u32-totitle.c: New file.
26809         * modules/unicase/u32-totitle: New file.
26810
26811         New module 'unicase/u16-totitle'.
26812         * lib/unicase/u16-totitle.c: New file.
26813         * modules/unicase/u16-totitle: New file.
26814
26815         New module 'unicase/u8-totitle'.
26816         * lib/unicase/u8-totitle.c: New file.
26817         * lib/unicase/u-totitle.h: New file.
26818         * modules/unicase/u8-totitle: New file.
26819
26820         Tests for module 'unicase/u32-tolower'.
26821         * modules/unicase/u32-tolower-tests: New file.
26822         * tests/unicase/test-u32-tolower.c: New file.
26823
26824         Tests for module 'unicase/u16-tolower'.
26825         * modules/unicase/u16-tolower-tests: New file.
26826         * tests/unicase/test-u16-tolower.c: New file.
26827
26828         Tests for module 'unicase/u8-tolower'.
26829         * modules/unicase/u8-tolower-tests: New file.
26830         * tests/unicase/test-u8-tolower.c: New file.
26831
26832         New module 'unicase/u32-tolower'.
26833         * lib/unicase/u32-tolower.c: New file.
26834         * modules/unicase/u32-tolower: New file.
26835
26836         New module 'unicase/u16-tolower'.
26837         * lib/unicase/u16-tolower.c: New file.
26838         * modules/unicase/u16-tolower: New file.
26839
26840         New module 'unicase/u8-tolower'.
26841         * lib/unicase/u8-tolower.c: New file.
26842         * modules/unicase/u8-tolower: New file.
26843
26844         Tests for module 'unicase/u32-toupper'.
26845         * modules/unicase/u32-toupper-tests: New file.
26846         * tests/unicase/test-u32-toupper.c: New file.
26847
26848         Tests for module 'unicase/u16-toupper'.
26849         * modules/unicase/u16-toupper-tests: New file.
26850         * tests/unicase/test-u16-toupper.c: New file.
26851
26852         Tests for module 'unicase/u8-toupper'.
26853         * modules/unicase/u8-toupper-tests: New file.
26854         * tests/unicase/test-u8-toupper.c: New file.
26855
26856         New module 'unicase/u32-toupper'.
26857         * lib/unicase/u32-toupper.c: New file.
26858         * modules/unicase/u32-toupper: New file.
26859
26860         New module 'unicase/u16-toupper'.
26861         * lib/unicase/u16-toupper.c: New file.
26862         * modules/unicase/u16-toupper: New file.
26863
26864         New module 'unicase/u8-toupper'.
26865         * lib/unicase/u8-toupper.c: New file.
26866         * modules/unicase/u8-toupper: New file.
26867
26868         New module 'unicase/u32-casemap'.
26869         * lib/unicase/u32-casemap.c: New file.
26870         * modules/unicase/u32-casemap: New file.
26871
26872         New module 'unicase/u16-casemap'.
26873         * lib/unicase/u16-casemap.c: New file.
26874         * modules/unicase/u16-casemap: New file.
26875
26876         New module 'unicase/u8-casemap'.
26877         * lib/unicase/unicasemap.h: New file.
26878         * lib/unicase/u8-casemap.c: New file.
26879         * lib/unicase/u-casemap.h: New file.
26880         * modules/unicase/u8-casemap: New file.
26881
26882         New module 'unicase/special-casing'.
26883         * lib/unicase/special-casing.h: New file.
26884         * lib/unicase/special-casing.c: New file.
26885         * lib/unicase/special-casing-table.gperf: New file, generated by
26886         gen-uni-tables.c.
26887         * modules/unicase/special-casing: New file.
26888
26889         Tests for module 'unicase/locale-language'.
26890         * modules/unicase/locale-language-tests: New file.
26891         * tests/unicase/test-locale-language.sh: New file.
26892         * tests/unicase/test-locale-language.c: New file.
26893
26894         New module 'unicase/locale-language'.
26895         * lib/unicase/locale-language.c: New file.
26896         * lib/unicase/locale-languages.gperf: New file.
26897         * modules/unicase/locale-language: New file.
26898
26899         Generate more tables for case conversion and case folding.
26900         * lib/gen-uni-tables.c (SCC_*): New enum items.
26901         (struct special_casing_rule): New type.
26902         (casing_rules, num_casing_rules, allocated_casing_rules): New
26903         variables.
26904         (add_casing_rule, fill_casing_rules): New functions.
26905         (struct casefold_rule): New type.
26906         (casefolding_rules, num_casefolding_rules,
26907         allocated_casefolding_rules): New variables.
26908         (fill_casefolding_rules): New function.
26909         (unicode_casefold): New variable.
26910         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
26911         sort_casing_rules, output_casing_rules): New functions.
26912         (main): Accept to more arguments: SpecialCasing.txt and
26913         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
26914         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
26915         Output mapping for casefolding.
26916
26917         * lib/unicase.h: Include stdbool.h, uninorm.h.
26918         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
26919         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
26920         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
26921         arguments.
26922         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
26923         resultp arguments.
26924         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
26925         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
26926         resultp arguments.
26927         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
26928         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
26929         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
26930         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
26931         declarations.
26932         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
26933
26934 2009-03-08  Bruno Haible  <bruno@clisp.org>
26935
26936         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
26937         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
26938         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
26939         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
26940
26941 2009-03-07  Bruno Haible  <bruno@clisp.org>
26942
26943         Adjust u*_normcmp, u*_normcoll API.
26944         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
26945         u16_normcoll, u32_normcoll): Change failure conventions.
26946         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
26947         errno and return -1.
26948         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
26949
26950 2009-03-07  Bruno Haible  <bruno@clisp.org>
26951
26952         Tests for module 'uninorm/u32-normcoll'.
26953         * modules/uninorm/u32-normcoll-tests: New file.
26954         * tests/uninorm/test-u32-normcoll.c: New file.
26955
26956         Tests for module 'uninorm/u16-normcoll'.
26957         * modules/uninorm/u16-normcoll-tests: New file.
26958         * tests/uninorm/test-u16-normcoll.c: New file.
26959
26960         Tests for module 'uninorm/u8-normcoll'.
26961         * modules/uninorm/u8-normcoll-tests: New file.
26962         * tests/uninorm/test-u8-normcoll.c: New file.
26963
26964 2009-03-07  Bruno Haible  <bruno@clisp.org>
26965
26966         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
26967         tests/uninorm/test-u32-normcmp.c.
26968         * tests/uninorm/test-u32-normcmp.c: Include it.
26969         (test_nonascii): New function, extracted from main. Add some more
26970         tests.
26971         (main): Invoke test_ascii and test_nonascii.
26972         * modules/uninorm/u32-normcmp-tests (Files): Add
26973         tests/uninorm/test-u32-normcmp.h.
26974         (Depends-on): Remove uninorm/u32-normcmp.
26975
26976         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
26977         tests/uninorm/test-u16-normcmp.c.
26978         * tests/uninorm/test-u16-normcmp.c: Include it.
26979         (test_nonascii): New function, extracted from main. Add some more
26980         tests.
26981         (main): Invoke test_ascii and test_nonascii.
26982         * modules/uninorm/u16-normcmp-tests (Files): Add
26983         tests/uninorm/test-u16-normcmp.h.
26984         (Depends-on): Remove uninorm/u16-normcmp.
26985
26986         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
26987         tests/uninorm/test-u8-normcmp.c.
26988         * tests/uninorm/test-u8-normcmp.c: Include it.
26989         (test_nonascii): New function, extracted from main. Add some more
26990         tests.
26991         (main): Invoke test_ascii and test_nonascii.
26992         * modules/uninorm/u8-normcmp-tests (Files): Add
26993         tests/uninorm/test-u8-normcmp.h.
26994         (Depends-on): Remove uninorm/u8-normcmp.
26995
26996 2009-03-07  Bruno Haible  <bruno@clisp.org>
26997
26998         New module 'uninorm/u32-normcoll'.
26999         * lib/uninorm/u32-normcoll.c: New file.
27000         * modules/uninorm/u32-normcoll: New file.
27001
27002         New module 'uninorm/u16-normcoll'.
27003         * lib/uninorm/u16-normcoll.c: New file.
27004         * modules/uninorm/u16-normcoll: New file.
27005
27006         New module 'uninorm/u8-normcoll'.
27007         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
27008         declarations.
27009         * lib/uninorm/u8-normcoll.c: New file.
27010         * lib/uninorm/u-normcoll.h: New file.
27011         * modules/uninorm/u8-normcoll: New file.
27012
27013         New module 'uninorm/u32-normxfrm'.
27014         * lib/uninorm/u32-normxfrm.c: New file.
27015         * modules/uninorm/u32-normxfrm: New file.
27016
27017         New module 'uninorm/u16-normxfrm'.
27018         * lib/uninorm/u16-normxfrm.c: New file.
27019         * modules/uninorm/u16-normxfrm: New file.
27020
27021         New module 'uninorm/u8-normxfrm'.
27022         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
27023         declarations.
27024         * lib/uninorm/u8-normxfrm.c: New file.
27025         * lib/uninorm/u-normxfrm.h: New file.
27026         * modules/uninorm/u8-normxfrm: New file.
27027
27028 2009-03-07  Bruno Haible  <bruno@clisp.org>
27029
27030         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
27031         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
27032         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
27033
27034 2009-03-07  Bruno Haible  <bruno@clisp.org>
27035
27036         New module 'memxfrm'.
27037         * lib/memxfrm.h: New file.
27038         * lib/memxfrm.c: New file.
27039         * modules/memxfrm: New file.
27040
27041 2009-03-07  Bruno Haible  <bruno@clisp.org>
27042
27043         New module 'memcmp2'.
27044         * lib/memcmp2.h: New file.
27045         * lib/memcmp2.c: New file.
27046         * modules/memcmp2: New file.
27047
27048 2009-03-07  Bruno Haible  <bruno@clisp.org>
27049
27050         Tests for module 'uninorm/decomposing-form'.
27051         * modules/uninorm/decomposing-form-tests: New file.
27052         * tests/uninorm/test-decomposing-form.c: New file.
27053
27054         New module 'uninorm/decomposing-form'.
27055         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
27056         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
27057         Add 'decomposing_variant' field.
27058         * lib/uninorm/decomposing-form.c: New file.
27059         * lib/uninorm/nfc.c (uninorm_nfc): Update.
27060         * lib/uninorm/nfd.c (uninorm_nfd): Update.
27061         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
27062         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
27063         * modules/uninorm/decomposing-form: New file.
27064         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
27065         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
27066
27067 2009-03-07  Bruno Haible  <bruno@clisp.org>
27068
27069         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
27070         strings.
27071
27072 2009-03-06  Bruno Haible  <bruno@clisp.org>
27073
27074         Tests for module 'uninorm/u32-normcmp'.
27075         * tests/uninorm/test-u32-normcmp.c: New file.
27076         * modules/uninorm/u32-normcmp-tests: New file.
27077
27078         Tests for module 'uninorm/u16-normcmp'.
27079         * tests/uninorm/test-u16-normcmp.c: New file.
27080         * modules/uninorm/u16-normcmp-tests: New file.
27081
27082         Tests for module 'uninorm/u8-normcmp'.
27083         * tests/uninorm/test-u8-normcmp.c: New file.
27084         * modules/uninorm/u8-normcmp-tests: New file.
27085
27086         New module 'uninorm/u32-normcmp'.
27087         * lib/uninorm/u32-normcmp.c: New file.
27088         * modules/uninorm/u32-normcmp: New file.
27089
27090         New module 'uninorm/u16-normcmp'.
27091         * lib/uninorm/u16-normcmp.c: New file.
27092         * modules/uninorm/u16-normcmp: New file.
27093
27094         New module 'uninorm/u8-normcmp'.
27095         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
27096         declarations.
27097         * lib/uninorm/u8-normcmp.c: New file.
27098         * lib/uninorm/u-normcmp.h: New file.
27099         * modules/uninorm/u8-normcmp: New file.
27100
27101 2009-03-06  Bruno Haible  <bruno@clisp.org>
27102
27103         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
27104         Reported by Eric Blake.
27105
27106 2009-03-06  Eric Blake  <ebb9@byu.net>
27107             Bruno Haible  <bruno@clisp.org>
27108
27109         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
27110         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
27111         condition.
27112         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
27113         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
27114         condition.
27115         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
27116
27117 2009-03-06  Eric Blake  <ebb9@byu.net>
27118
27119         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
27120         to avoid compiler warnings.
27121         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
27122
27123 2009-03-05  Bruno Haible  <bruno@clisp.org>
27124
27125         * tests/test-ftell.c (main): Disable test beyond end of file on
27126         FreeMiNT.
27127         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
27128
27129 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
27130
27131         * lib/filevercmp.c: Move hidden files up in ordering.
27132         * tests/test-filevercmp.c: Add tests for hidden files.
27133
27134 2009-03-04  Bruno Haible  <bruno@clisp.org>
27135
27136         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
27137         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
27138         AM_CFLAGS.
27139         Reported by Simon Josefsson.
27140
27141 2009-03-03  Bruno Haible  <bruno@clisp.org>
27142
27143         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
27144         Reported by Simon Josefsson.
27145
27146         * doc/ld-version-script.texi: Update node reference.
27147
27148 2009-03-03  Bruno Haible  <bruno@clisp.org>
27149
27150         * modules/visibility (License): Change to 'unlimited'.
27151         Suggested by Simon Josefsson.
27152
27153 2009-03-03  Jim Meyering  <meyering@redhat.com>
27154
27155         unlinkdir: cannot_unlink_dir may modify process state
27156         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
27157         it's neither thread-safe nor appropriate for use in a library.
27158
27159 2009-03-03  Eric Blake  <ebb9@byu.net>
27160
27161         test-closein: silence test under Darwin
27162         * tests/test-closein.sh: Ignore stderr from cat, since we don't
27163         care if it dies from EPIPE or EBADF.
27164
27165 2009-03-03  Bruno Haible  <bruno@clisp.org>
27166
27167         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
27168         earlier.
27169         * doc/visibility.texi: Fix @node and @section.
27170
27171 2009-03-03  Simon Josefsson  <simon@josefsson.org>
27172
27173         * doc/gnulib.texi: Link to sections for ld version script and
27174         visibility.
27175         * doc/visibility.texi: Add @node and @section.
27176         * modules/ld-version-script: New module.
27177         * m4/ld-version-script.m4: New file.
27178         * doc/ld-version-script.texi: New file.
27179
27180 2009-03-02  David Lutterkort  <lutter@redhat.com>
27181
27182         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
27183         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27184
27185 2009-03-02  Bruno Haible  <bruno@clisp.org>
27186
27187         * doc/visibility.texi: Mention libtool's -export-symbols option.
27188
27189 2009-03-02  Jim Meyering  <meyering@redhat.com>
27190
27191         announce-gen: new option: --no-print-checksums
27192         * build-aux/announce-gen (usage): Describe it.
27193         (print_checksums): Print a newline here, not in the [*] footnote.
27194         (main): Honor it.
27195
27196 2009-03-01  Bruno Haible  <bruno@clisp.org>
27197
27198         Use socklen_t in the native Windows replacements prototypes.
27199         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
27200         instead of 'int'.
27201         * lib/getsockopt.c (rpl_getsockopt): Likewise.
27202         * lib/setsockopt.c (rpl_setsockopt): Likewise.
27203         * modules/getsockopt (Depends-on): Add socklen.
27204         * modules/setsockopt (Depends-on): Add socklen.
27205
27206 2009-03-01  Bruno Haible  <bruno@clisp.org>
27207
27208         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
27209         least 4.2.
27210
27211 2009-03-01  Eric Blake  <ebb9@byu.net>
27212             Bruno Haible  <bruno@clisp.org>
27213
27214         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
27215         error messages.
27216         * lib/wait-process.c (wait_subprocess): Omit error message about
27217         deadly signal sent to the child of termsigp != NULL.
27218
27219 2009-03-01  Eric Blake  <ebb9@byu.net>
27220
27221         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
27222
27223 2009-03-01  Bruno Haible  <bruno@clisp.org>
27224
27225         Avoid a gcc warning.
27226         * tests/test-sched.c (b): Make global.
27227         Reported by Eric Blake.
27228
27229 2009-01-19  Martin Lambers  <marlam@marlam.de>
27230
27231         Provide POSIX semantics for socket timeout options on W32.
27232         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
27233         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
27234         * modules/setsockopt: Depend on sys_time module for struct timeval.
27235         * modules/getsockopt: Depend on sys_time module for struct timeval.
27236
27237 2009-03-01  Simon Josefsson  <simon@josefsson.org>
27238
27239         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
27240         __USE_GNU, for consistency with netdb.in.h.
27241         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27242
27243 2009-03-01  Bruno Haible  <bruno@clisp.org>
27244
27245         More support for FreeMiNT.
27246         * lib/fseeko.c (rpl_fseeko): Complete last commit.
27247         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27248
27249 2009-03-01  Bruno Haible  <bruno@clisp.org>
27250
27251         More support for FreeMiNT.
27252         * lib/fpurge.c (fpurge): Correct last commit.
27253         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27254
27255 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27256
27257         Fix unportable awk script in vc-list-files.
27258         * build-aux/vc-list-files: In the replacement awk script, use
27259         substr with a second argument of 1, not zero.
27260         Report by Simon Josefsson.
27261
27262 2009-02-28  Bruno Haible  <bruno@clisp.org>
27263
27264         More support for FreeMiNT.
27265         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
27266         to FreeMiNT today.
27267         * lib/fwriting.c (fwriting): Likewise.
27268         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
27269
27270 2009-02-28  Bruno Haible  <bruno@clisp.org>
27271
27272         * tests/test-freadseek.c (main): Disable test beyond end of file on
27273         FreeMiNT.
27274         * tests/test-ftello.c (main): Likewise.
27275         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
27276
27277 2009-02-28  Bruno Haible  <bruno@clisp.org>
27278
27279         Add tentative support for FreeMiNT.
27280         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
27281         * lib/fpurge.c (fpurge): Likewise.
27282         * lib/freadable.c (freadable): Likewise.
27283         * lib/freading.c (freading): Likewise.
27284         * lib/freadptr.c (freadptr): Likewise.
27285         * lib/freadseek.c (freadptrinc): Likewise.
27286         * lib/fseeko.c (rpl_fseeko): Likewise.
27287         * lib/fseterr.c (fseterr): Likewise.
27288         * lib/fwritable.c (fwritable): Likewise.
27289         * lib/fwriting.c (fwriting): Likewise.
27290         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
27291         Hourihane.
27292         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27293
27294 2009-02-28  Bruno Haible  <bruno@clisp.org>
27295
27296         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
27297         SIGCHLD.
27298         Reported by Jim Meyering.
27299
27300 2009-02-28  Bruno Haible  <bruno@clisp.org>
27301
27302         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
27303         Mention the results of these tests on various platforms.
27304         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
27305         order.
27306         * doc/posix-functions/printf.texi: Likewise.
27307         * doc/posix-functions/snprintf.texi: Likewise.
27308         * doc/posix-functions/sprintf.texi: Likewise.
27309         * doc/posix-functions/vfprintf.texi: Likewise.
27310         * doc/posix-functions/vprintf.texi: Likewise.
27311         * doc/posix-functions/vsnprintf.texi: Likewise.
27312         * doc/posix-functions/vsprintf.texi: Likewise.
27313         * doc/glibc-functions/obstack_printf.texi: Likewise.
27314         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27315
27316 2009-02-28  Bruno Haible  <bruno@clisp.org>
27317
27318         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
27319         Reported by Loïc Minier <lool@dooz.org>.
27320
27321 2009-02-27  Bruno Haible  <bruno@clisp.org>
27322
27323         * gnulib-tool (func_import): Make the sed expression used to create the
27324         sed script for updating the .gitignore file POSIX compliant.
27325         Reported by Eric Blake.
27326
27327 2009-02-27  Bruno Haible  <bruno@clisp.org>
27328
27329         * gnulib-tool (sed): Don't alias as "sed --posix".
27330         Reported by Eric Blake.
27331
27332 2009-02-27  Bruno Haible  <bruno@clisp.org>
27333
27334         Avoid test link errors.
27335         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
27336         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
27337         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
27338         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
27339         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27340
27341 2009-02-27  Bruno Haible  <bruno@clisp.org>
27342
27343         Avoid spurious "(cached)" in configure output.
27344         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
27345         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
27346         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27347         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27348         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27349         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
27350         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27351         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
27352         Reported by Eric Blake.
27353
27354 2009-02-27  Eric Blake  <ebb9@byu.net>
27355
27356         printf: fix regression in previous patch
27357         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
27358
27359 2009-02-27  Bruno Haible  <bruno@clisp.org>
27360
27361         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
27362         value.
27363         * lib/stdint.in.h: Likewise.
27364         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
27365
27366 2009-02-27  Eric Blake  <ebb9@byu.net>
27367
27368         doc: mention more functions added in cygwin 1.7.0
27369         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
27370         addition.
27371         * doc/posix-functions/open_wmemstream.texi: Likewise.
27372         * doc/posix-functions/wcsnlen.texi: Likewise.
27373         * doc/posix-functions/wcsnrtombs.texi: Likewise.
27374         * doc/posix-functions/wcstod.texi: Likewise.
27375         * doc/posix-functions/wcstof.texi: Likewise.
27376         * doc/posix-functions/wcstoimax.texi: Likewise.
27377         * doc/posix-functions/wcstok.texi: Likewise.
27378         * doc/posix-functions/wcstoumax.texi: Likewise.
27379
27380         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
27381         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
27382         * doc/posix-functions/fprintf.texi: Update.
27383         * doc/posix-functions/printf.texi: Update.
27384         * doc/posix-functions/snprintf.texi: Update.
27385         * doc/posix-functions/sprintf.texi: Update.
27386         * doc/posix-functions/vfprintf.texi: Update.
27387         * doc/posix-functions/vprintf.texi: Update.
27388         * doc/posix-functions/vsnprintf.texi: Update.
27389         * doc/posix-functions/vsprintf.texi: Update.
27390         * doc/glibc-functions/obstack_printf.texi: Update.
27391         * doc/glibc-functions/obstack_vprintf.texi: Update.
27392
27393 2009-02-26  Eric Blake  <ebb9@byu.net>
27394
27395         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
27396         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
27397         compilation bug by using runtime conversion.
27398         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
27399         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
27400         * modules/ceill-tests (Files): Use nan.h.
27401         * modules/floorl-tests (Files): Likewise.
27402         * modules/frexpl-tests (Files): Likewise.
27403         * modules/isnanl-tests (Files): Likewise.
27404         * modules/ldexpl-tests (Files): Likewise.
27405         * modules/roundl-tests (Files): Likewise.
27406         * modules/truncl-tests (Files): Likewise.
27407         * tests/test-ceill.c (main): Use a working NaN.
27408         * tests/test-floorl.c (main): Likewise.
27409         * tests/test-frexpl.c (main): Likewise.
27410         * tests/test-isnan.c (test_long_double): Likewise.
27411         * tests/test-isnanl.h (main): Likewise.
27412         * tests/test-ldexpl.h (main): Likewise.
27413         * tests/test-roundl.h (main): Likewise.
27414         * tests/test-truncl.h (main): Likewise.
27415         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
27416
27417 2009-02-26  Eric Blake  <ebb9@byu.net>
27418             Bruno Haible  <bruno@clisp.org>
27419
27420         Work around a *printf bug with %ls on Solaris.
27421         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
27422         precision is specified, sprintf stops converting the wide string
27423         argument when the number of bytes that have been produced by this
27424         conversion equals or exceeds the precision.
27425         * doc/posix-functions/fprintf.texi: Update.
27426         * doc/posix-functions/printf.texi: Update.
27427         * doc/posix-functions/snprintf.texi: Update.
27428         * doc/posix-functions/sprintf.texi: Update.
27429         * doc/posix-functions/vfprintf.texi: Update.
27430         * doc/posix-functions/vprintf.texi: Update.
27431         * doc/posix-functions/vsnprintf.texi: Update.
27432         * doc/posix-functions/vsprintf.texi: Update.
27433         * doc/glibc-functions/obstack_printf.texi: Update.
27434         * doc/glibc-functions/obstack_vprintf.texi: Update.
27435
27436 2009-02-26  Eric Blake  <ebb9@byu.net>
27437
27438         stdlib: favor compiler check of random.h
27439         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
27440         to avoid an ObjC random.h installed by Swarm.
27441
27442 2009-02-26  Bruno Haible  <bruno@clisp.org>
27443
27444         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
27445         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
27446         Reported by Gary V. Vaughan <gary@gnu.org>.
27447
27448 2009-02-26  Bruno Haible  <bruno@clisp.org>
27449
27450         Fix *printf behaviour regarding the %ls directive.
27451         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
27452         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
27453         NEED_PRINTF_DIRECTIVE_LS.
27454         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
27455         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27456         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27457         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
27458         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
27459         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
27460         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
27461         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27462         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27463         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27464         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27465         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
27466         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27467         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27468         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27469         * doc/posix-functions/fprintf.texi: Update.
27470         * doc/posix-functions/printf.texi: Update.
27471         * doc/posix-functions/snprintf.texi: Update.
27472         * doc/posix-functions/sprintf.texi: Update.
27473         * doc/posix-functions/vfprintf.texi: Update.
27474         * doc/posix-functions/vprintf.texi: Update.
27475         * doc/posix-functions/vsnprintf.texi: Update.
27476         * doc/posix-functions/vsprintf.texi: Update.
27477         * doc/glibc-functions/obstack_printf.texi: Update.
27478         * doc/glibc-functions/obstack_vprintf.texi: Update.
27479         Reported by Eric Blake.
27480
27481 2009-02-25  Bruno Haible  <bruno@clisp.org>
27482
27483         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
27484         with known value.
27485         Reported by Gary V. Vaughan <gary@gnu.org>.
27486
27487 2009-02-25  Bruno Haible  <bruno@clisp.org>
27488
27489         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
27490         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
27491         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
27492         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
27493         Reported by Gary V. Vaughan <gary@gnu.org>.
27494
27495 2009-02-25  Bruno Haible  <bruno@clisp.org>
27496
27497         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
27498         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
27499         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
27500         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
27501         Reported by Gary V. Vaughan <gary@gnu.org>.
27502
27503 2009-02-25  Eric Blake  <ebb9@byu.net>
27504
27505         tests: skip fseek/ftell tests if ungetc is broken
27506         * m4/ungetc.m4: New file.
27507         * modules/fseek-tests: Split test, so ungetc dependency is
27508         separate from rest of test.
27509         * modules/fseeko-tests: Likewise.
27510         * modules/ftell-tests: Likewise.
27511         * modules/ftello-tests: Likewise.
27512         * tests/test-fseek.c (main): Isolate ungetc dependency.
27513         * tests/test-fseeko.c (main): Likewise.
27514         * tests/test-ftell.c (main): Likewise.
27515         * tests/test-ftello.c (main): Likewise.
27516         * tests/test-fseek2.sh: New file.
27517         * tests/test-fseeko2.sh: Likewise.
27518         * tests/test-ftell2.sh: Likewise.
27519         * tests/test-ftello2.sh: Likewise.
27520
27521 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
27522
27523         test-getaddrinfo: fix usage of skip return code 77
27524         * tests/test-gettaddrinfo.c: Return skip code 77 only
27525         for first occurance of skip (4x77 is not 77)
27526
27527 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
27528
27529         strtod: avoid C99 decl-after-statement
27530         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
27531
27532 2009-02-24  Eric Blake  <ebb9@byu.net>
27533
27534         strtod: detect HP-UX 11.31 bug
27535         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
27536         Reported by Gary V. Vaughan.
27537
27538 2009-02-23  Bruno Haible  <bruno@clisp.org>
27539
27540         Fix invalid read past end of memory block.
27541         * lib/vasnprintf.c (DCHAR_SET): Define.
27542         (local_wcslen): Define only when needed.
27543         (local_strnlen, local_wcsnlen): New functions.
27544         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
27545         directives that involve a conversion ourselves.
27546         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
27547         wcsnlen, mbrtowc, wcrtomb.
27548         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
27549         * tests/test-vasprintf-posix.c (test_function): Likewise.
27550         * tests/test-snprintf-posix.h (test_function): Likewise.
27551         * tests/test-sprintf-posix.h (test_function): Likewise.
27552         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27553
27554 2009-02-22  Bruno Haible  <bruno@clisp.org>
27555
27556         Implement new clarified decomposition of Hangul syllables.
27557         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
27558         of type LTV, return only a pairwise decomposition.
27559         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
27560         Likewise.
27561         * tests/uninorm/test-decomposition.c (main): Updated expected result.
27562         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
27563         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
27564
27565 2009-02-22  Bruno Haible  <bruno@clisp.org>
27566
27567         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
27568         zero-length results and shrink excess allocated memory.
27569         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
27570         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
27571         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
27572         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
27573         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
27574         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
27575         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
27576         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
27577         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
27578         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
27579         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
27580         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
27581
27582 2009-02-21  Bruno Haible  <bruno@clisp.org>
27583
27584         * doc/gnulib.texi: Include safe-alloc.texi earlier.
27585         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
27586         spaces after a period. Put a space between a macro name and its
27587         argument list. Trivial rewordings.
27588         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
27589         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
27590         (main): Return 0 explicitly.
27591
27592 2009-02-21  Bruno Haible  <bruno@clisp.org>
27593
27594         Tests for module 'uninorm/filter'.
27595         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
27596         * modules/uninorm/filter-tests: New file.
27597
27598         New module 'uninorm/filter'.
27599         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
27600         uninorm_filter_flush, uninorm_filter_free): New declarations.
27601         * lib/uninorm/uninorm-filter.c: New file.
27602         * modules/uninorm/filter: New file.
27603
27604 2009-02-21  Bruno Haible  <bruno@clisp.org>
27605
27606         Tests for module 'uninorm/nfkc'.
27607         * tests/uninorm/test-nfkc.c: New file.
27608         * tests/uninorm/test-u8-nfkc.c: New file.
27609         * tests/uninorm/test-u16-nfkc.c: New file.
27610         * tests/uninorm/test-u32-nfkc.c: New file.
27611         * tests/uninorm/test-u32-nfkc-big.sh: New file.
27612         * tests/uninorm/test-u32-nfkc-big.c: New file.
27613         * modules/uninorm/nfkc-tests: New file.
27614
27615         New module 'uninorm/nfkc'.
27616         * lib/uninorm/nfkc.c: New file.
27617         * modules/uninorm/nfkc: New file.
27618
27619         Tests for module 'uninorm/nfkd'.
27620         * tests/uninorm/test-nfkd.c: New file.
27621         * tests/uninorm/test-u8-nfkd.c: New file.
27622         * tests/uninorm/test-u16-nfkd.c: New file.
27623         * tests/uninorm/test-u32-nfkd.c: New file.
27624         * tests/uninorm/test-u32-nfkd-big.sh: New file.
27625         * tests/uninorm/test-u32-nfkd-big.c: New file.
27626         * modules/uninorm/nfkd-tests: New file.
27627
27628         New module 'uninorm/nfkd'.
27629         * lib/uninorm/nfkd.c: New file.
27630         * modules/uninorm/nfkd: New file.
27631
27632         Tests for module 'uninorm/nfc'.
27633         * tests/uninorm/test-nfc.c: New file.
27634         * tests/uninorm/test-u8-nfc.c: New file.
27635         * tests/uninorm/test-u16-nfc.c: New file.
27636         * tests/uninorm/test-u32-nfc.c: New file.
27637         * tests/uninorm/test-u32-nfc-big.sh: New file.
27638         * tests/uninorm/test-u32-nfc-big.c: New file.
27639         * modules/uninorm/nfc-tests: New file.
27640
27641         New module 'uninorm/nfc'.
27642         * lib/uninorm/nfc.c: New file.
27643         * modules/uninorm/nfc: New file.
27644
27645         Tests for module 'uninorm/nfd'.
27646         * tests/uninorm/test-nfd.c: New file.
27647         * tests/uninorm/test-u8-nfd.c: New file.
27648         * tests/uninorm/test-u16-nfd.c: New file.
27649         * tests/uninorm/test-u32-nfd.c: New file.
27650         * tests/uninorm/test-u32-nfd-big.sh: New file.
27651         * tests/uninorm/test-u32-nfd-big.c: New file.
27652         * tests/uninorm/test-u32-normalize-big.h: New file.
27653         * tests/uninorm/test-u32-normalize-big.c: New file.
27654         * tests/uninorm/NormalizationTest.txt: New file, created from
27655         Unicode 5.1.0 NormalizationTest.txt.
27656         * modules/uninorm/nfd-tests: New file.
27657
27658         New module 'uninorm/nfd'.
27659         * lib/uninorm/nfd.c: New file.
27660         * modules/uninorm/nfd: New file.
27661
27662         New module 'uninorm/u32-normalize'.
27663         * lib/uninorm/u32-normalize.c: New file.
27664         * modules/uninorm/u32-normalize: New file.
27665
27666         New module 'uninorm/u16-normalize'.
27667         * lib/uninorm/u16-normalize.c: New file.
27668         * modules/uninorm/u16-normalize: New file.
27669
27670         New module 'uninorm/u8-normalize'.
27671         * lib/uninorm/u8-normalize.c: New file.
27672         * lib/uninorm/normalize-internal.h: New file.
27673         * lib/uninorm/u-normalize-internal.h: New file.
27674         * modules/uninorm/u8-normalize: New file.
27675
27676         New module 'uninorm/decompose-internal'.
27677         * lib/uninorm/decompose-internal.c: New file.
27678         * modules/uninorm/decompose-internal: New file.
27679
27680         Tests for module 'uninorm/composition'.
27681         * tests/uninorm/test-composition.c: New file.
27682         * modules/uninorm/composition-tests: New file.
27683
27684         New module 'uninorm/composition'.
27685         * lib/uninorm/composition.c: New file.
27686         * lib/uninorm/composition-table.gperf: New file, generated by
27687         gen-uni-tables.
27688         * modules/uninorm/composition: New file.
27689
27690         Tests for module 'uninorm/compat-decomposition'.
27691         * tests/uninorm/test-compat-decomposition.c: New file.
27692         * modules/uninorm/compat-decomposition-tests: New file.
27693
27694         New module 'uninorm/compat-decomposition'.
27695         * lib/uninorm/decompose-internal.h: New file.
27696         * lib/uninorm/compat-decomposition.c: New file.
27697         * modules/uninorm/compat-decomposition: New file.
27698
27699         Tests for module 'uninorm/canonical-decomposition'.
27700         * tests/uninorm/test-canonical-decomposition.c: New file.
27701         * modules/uninorm/canonical-decomposition-tests: New file.
27702
27703         New module 'uninorm/canonical-decomposition'.
27704         * lib/uninorm/canonical-decomposition.c: New file.
27705         * modules/uninorm/canonical-decomposition: New file.
27706
27707         Tests for module 'uninorm/decomposition'.
27708         * tests/uninorm/test-decomposition.c: New file.
27709         * modules/uninorm/decomposition-tests: New file.
27710
27711         New module 'uninorm/decomposition'.
27712         * lib/uninorm/decomposition.c: New file.
27713         * modules/uninorm/decomposition: New file.
27714
27715         New module 'uninorm/decomposition-table'.
27716         * lib/uninorm/decomposition-table.h: New file.
27717         * lib/uninorm/decomposition-table.c: New file.
27718         * lib/uninorm/decomposition-table1.h: New file, generated by
27719         gen-uni-tables.
27720         * lib/uninorm/decomposition-table2.h: New file, generated by
27721         gen-uni-tables.
27722         * modules/uninorm/decomposition-table: New file.
27723
27724         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
27725         (UC_DECOMP_*): New enumeration items.
27726         (get_decomposition): New function.
27727         (struct decomp_table): New type.
27728         (output_decomposition, output_decomposition_tables): New functions.
27729         (unicode_composition_exclusions): New variable.
27730         (fill_composition_exclusions, debug_output_composition_tables): New
27731         functions.
27732         (main): Accept one more argument. Invoke fill_composition_exclusions.
27733         Output decomposition and composition tables.
27734
27735         New module 'uninorm/base'.
27736         * lib/uninorm.h: New file.
27737         * lib/unictype.h: Update comment.
27738         * modules/uninorm/base: New file.
27739
27740 2009-02-21  David Lutterkort  <lutter@redhat.com>
27741
27742         Tests for module 'safe-alloc'.
27743         * tests/test-safe-alloc.c: New file.
27744         * modules/safe-alloc-tests: New file.
27745
27746         New module 'safe-alloc'.
27747         * lib/safe-alloc.h: New file.
27748         * lib/safe-alloc.c: New file.
27749         * m4/safe-alloc.m4: New file.
27750         * modules/safe-alloc: New file.
27751         * doc/safe-alloc.texi: New file.
27752         * doc/gnulib.texi: Include it.
27753         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
27754         safe-alloc.
27755
27756 2009-02-18  Bruno Haible  <bruno@clisp.org>
27757
27758         Fix link error on non-glibc systems.
27759         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
27760         variable.
27761         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27762
27763 2009-02-18  Jim Meyering  <meyering@redhat.com>
27764
27765         fts: avoid used-uninitialized error due to recent change
27766         * lib/fts.c (fts_read): Guard uses of the new member,
27767         parent->fts_n_dirs_remaining, since it's not relevant for
27768         the parent of a directory specified on the command-line.
27769
27770 2009-02-17  James Youngman  <jay@gnu.org>
27771             Bruno Haible  <bruno@clisp.org>
27772
27773         * m4/include_next.m4: Reformulate comment.
27774
27775 2009-02-16  Jim Meyering  <meyering@redhat.com>
27776
27777         fts: add #if guards so that the fts_lgpl module still builds
27778         * lib/fts.c: Guard just-added hash-table-using parts with
27779         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
27780         Reported by Simon Josefsson.
27781
27782 2009-02-15  Bruno Haible  <bruno@clisp.org>
27783
27784         * modules/array-mergesort-tests: New file.
27785         * tests/test-array-mergesort.c: New file.
27786
27787         New module 'array-mergesort'.
27788         * modules/array-mergesort: New file.
27789         * lib/array-mergesort.h: New file.
27790
27791 2009-02-15  Bruno Haible  <bruno@clisp.org>
27792
27793         Fix 2009-02-07 commit.
27794         * lib/gen-uni-tables.c (output_predicate, output_category,
27795         output_combclass, output_bidi_category, output_decimal_digit,
27796         output_digit, output_numeric, output_mirror, output_scripts,
27797         output_ident_category, output_simple_mapping): Fix format directives.
27798         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
27799
27800 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
27801
27802         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
27803         fixes are available from IBM.
27804
27805 2009-02-13  Jim Meyering  <meyering@redhat.com>
27806
27807         fts: arrange not to stat non-directories in more cases
27808         This makes GNU find (when it doesn't need to stat each file)
27809         *much* more efficient at traversing reiserfs file systems.
27810         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
27811         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
27812         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
27813         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
27814         (leaf_optimization_applies): New function.
27815         (LCO_hash, LCO_compare): New helper functions.
27816         (link_count_optimize_ok): New function.
27817         (fts_stat): Initialize new member (if dir).
27818         (fts_read): Decrement parent's fts_n_dirs_remaining count if
27819         we've just stat'ed a directory.  Skip the stat call when possible.
27820         ---
27821         Note this AFS-related exchange:
27822         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
27823         and note find's pioctl call in find/fstype.c.
27824         But that is necessary only if you want to enable the
27825         optimization for AFS, and for now, I don't.
27826
27827         fts: move a function definition "up" (no semantic change)
27828         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
27829         "up" to precede upcoming use of a related function.
27830
27831 2009-02-11  Jim Meyering  <meyering@redhat.com>
27832
27833         fts: correct internal computation of nlinks (optimization-related)
27834         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
27835         whether the current entry is a directory, so don't test it.
27836
27837 2009-02-10  Bruno Haible  <bruno@clisp.org>
27838
27839         Tests for module 'uniwbrk/ulc-wordbreaks'.
27840         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
27841         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
27842         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
27843
27844         Tests for module 'uniwbrk/u32-wordbreaks'.
27845         * modules/uniwbrk/u32-wordbreaks-tests: New file.
27846         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
27847
27848         Tests for module 'uniwbrk/u16-wordbreaks'.
27849         * modules/uniwbrk/u16-wordbreaks-tests: New file.
27850         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
27851
27852         Tests for module 'uniwbrk/u8-wordbreaks'.
27853         * modules/uniwbrk/u8-wordbreaks-tests: New file.
27854         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
27855
27856 2009-02-10  Bruno Haible  <bruno@clisp.org>
27857
27858         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
27859         property.
27860         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
27861         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
27862         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
27863
27864 2009-02-10  Simon Josefsson  <simon@josefsson.org>
27865
27866         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
27867         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
27868
27869 2009-02-10  Bruno Haible  <bruno@clisp.org>
27870
27871         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
27872         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
27873         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
27874         * lib/unilbrk/u8-possible-linebreaks.c: Update.
27875         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
27876         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
27877
27878 2009-02-09  Simon Josefsson  <simon@josefsson.org>
27879
27880         * lib/sockets.h (gl_fd_to_handle): New function.
27881
27882         * tests/test-sockets.c: Call gl_fd_to_handle.
27883
27884 2009-02-09  Bruno Haible  <bruno@clisp.org>
27885
27886         * doc/havelib.texi: Document the conventions on bi-arch systems.
27887
27888 2009-02-08  Bruno Haible  <bruno@clisp.org>
27889
27890         Document the AC_LIB_LINKFLAGS macro.
27891         * doc/havelib.texi: New file, mostly written on 2005-05-24.
27892         * doc/gnulib.texi: Include it.
27893
27894 2009-02-08  Bruno Haible  <bruno@clisp.org>
27895
27896         Fix wrong order of sections, compared to TOC.
27897         * doc/gnulib.texi: Include relocatable-maint.texi after the
27898         "Regular expressions" node, not before.
27899
27900 2009-02-08  Bruno Haible  <bruno@clisp.org>
27901
27902         Tests for module 'unicase/totitle'.
27903         * modules/unicase/totitle-tests: New file.
27904
27905         Tests for module 'unicase/tolower'.
27906         * modules/unicase/tolower-tests: New file.
27907
27908         Tests for module 'unicase/toupper'.
27909         * modules/unicase/toupper-tests: New file.
27910         * tests/unicase/test-mapping-part1.h: New file.
27911         * tests/unicase/test-mapping-part2.h: New file.
27912
27913         New module 'unicase/totitle'.
27914         * modules/unicase/totitle: New file.
27915         * lib/unicase/totitle.c: New file.
27916
27917         New module 'unicase/tolower'.
27918         * modules/unicase/tolower: New file.
27919         * lib/unicase/tolower.c: New file.
27920
27921         New module 'unicase/toupper'.
27922         * modules/unicase/toupper: New file.
27923         * lib/unicase/toupper.c: New file.
27924         * lib/unicase/simple-mapping.h: New file.
27925
27926         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
27927         (mapping_table): New structure.
27928         (output_simple_mapping): New function.
27929         (main): Invoke output_simple_mapping_test and output_simple_mapping.
27930         * modules/gen-uni-tables (Description): Update.
27931         * lib/unicase/toupper.h: New file, automatically generated by
27932         gen-uni-tables.
27933         * lib/unicase/tolower.h: New file, automatically generated by
27934         gen-uni-tables.
27935         * lib/unicase/totitle.h: New file, automatically generated by
27936         gen-uni-tables.
27937         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
27938         gen-uni-tables.
27939         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
27940         gen-uni-tables.
27941         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
27942         gen-uni-tables.
27943
27944         New module 'unicase/base'.
27945         * modules/unicase/base: New file.
27946         * lib/unicase.h: New file.
27947
27948 2009-02-08  Bruno Haible  <bruno@clisp.org>
27949
27950         New module 'uniwbrk/ulc-wordbreaks'.
27951         * modules/uniwbrk/ulc-wordbreaks: New file.
27952         * lib/uniwbrk/ulc-wordbreaks.c: New file.
27953
27954         New module 'uniwbrk/u32-wordbreaks'.
27955         * modules/uniwbrk/u32-wordbreaks: New file.
27956         * lib/uniwbrk/u32-wordbreaks.c: New file.
27957
27958         New module 'uniwbrk/u16-wordbreaks'.
27959         * modules/uniwbrk/u16-wordbreaks: New file.
27960         * lib/uniwbrk/u16-wordbreaks.c: New file.
27961
27962         New module 'uniwbrk/u8-wordbreaks'.
27963         * modules/uniwbrk/u8-wordbreaks: New file.
27964         * lib/uniwbrk/u8-wordbreaks.c: New file.
27965         * lib/uniwbrk/u-wordbreaks.h: New file.
27966
27967         New module 'uniwbrk/table'.
27968         * modules/uniwbrk/table: New file.
27969         * lib/uniwbrk/wbrktable.h: New file.
27970         * lib/uniwbrk/wbrktable.c: New file.
27971
27972         New module 'uniwbrk/wordbreak-property'.
27973         * modules/uniwbrk/wordbreak-property: New file.
27974         * lib/uniwbrk/wordbreak-property.c: New file.
27975
27976         * lib/gen-uni-tables.c (WBP_*): New enum items.
27977         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
27978         (unicode_org_wbp): New variable.
27979         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
27980         New functions.
27981         (wbp_table): New structure.
27982         (output_wbp, output_wbrk_tables): New functions.
27983         (main): Accept additional argument. Invoke fill_org_wbp,
27984         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
27985         output_wbrk_tables.
27986         * modules/gen-uni-tables (Description): Update.
27987         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
27988         gen-uni-tables.
27989
27990         New module 'uniwbrk/base'.
27991         * modules/uniwbrk/base: New file.
27992         * lib/uniwbrk.h: New file.
27993
27994 2009-02-08  Bruno Haible  <bruno@clisp.org>
27995
27996         Update to Unicode 5.1.0.
27997         * lib/gen-uni-tables.c (is_property_alphabetic): Include
27998         U+2185..U+2188.
27999         (is_property_default_ignorable_code_point): Don't include characters
28000         of category Cc or Cs and not-a-characters.
28001         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
28002         U+0D79, U+109E, U+109F, U+A60C.
28003         * lib/unictype/bidi_of.h: Regenerated.
28004         * lib/unictype/blocks.h: Regenerated.
28005         * lib/unictype/categ_C.h: Regenerated.
28006         * lib/unictype/categ_Cf.h: Regenerated.
28007         * lib/unictype/categ_Cn.h: Regenerated.
28008         * lib/unictype/categ_L.h: Regenerated.
28009         * lib/unictype/categ_Ll.h: Regenerated.
28010         * lib/unictype/categ_Lm.h: Regenerated.
28011         * lib/unictype/categ_Lo.h: Regenerated.
28012         * lib/unictype/categ_Lu.h: Regenerated.
28013         * lib/unictype/categ_M.h: Regenerated.
28014         * lib/unictype/categ_Mc.h: Regenerated.
28015         * lib/unictype/categ_Me.h: Regenerated.
28016         * lib/unictype/categ_Mn.h: Regenerated.
28017         * lib/unictype/categ_N.h: Regenerated.
28018         * lib/unictype/categ_Nd.h: Regenerated.
28019         * lib/unictype/categ_Nl.h: Regenerated.
28020         * lib/unictype/categ_No.h: Regenerated.
28021         * lib/unictype/categ_P.h: Regenerated.
28022         * lib/unictype/categ_Pd.h: Regenerated.
28023         * lib/unictype/categ_Pe.h: Regenerated.
28024         * lib/unictype/categ_Pf.h: Regenerated.
28025         * lib/unictype/categ_Pi.h: Regenerated.
28026         * lib/unictype/categ_Po.h: Regenerated.
28027         * lib/unictype/categ_Ps.h: Regenerated.
28028         * lib/unictype/categ_S.h: Regenerated.
28029         * lib/unictype/categ_Sk.h: Regenerated.
28030         * lib/unictype/categ_Sm.h: Regenerated.
28031         * lib/unictype/categ_So.h: Regenerated.
28032         * lib/unictype/categ_of.h: Regenerated.
28033         * lib/unictype/combining.h: Regenerated.
28034         * lib/unictype/ctype_alnum.h: Regenerated.
28035         * lib/unictype/ctype_alpha.h: Regenerated.
28036         * lib/unictype/ctype_graph.h: Regenerated.
28037         * lib/unictype/ctype_lower.h: Regenerated.
28038         * lib/unictype/ctype_print.h: Regenerated.
28039         * lib/unictype/ctype_punct.h: Regenerated.
28040         * lib/unictype/ctype_upper.h: Regenerated.
28041         * lib/unictype/decdigit.h: Regenerated.
28042         * lib/unictype/digit.h: Regenerated.
28043         * lib/unictype/mirror.h: Regenerated.
28044         * lib/unictype/numeric.h: Regenerated.
28045         * lib/unictype/pr_alphabetic.h: Regenerated.
28046         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
28047         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
28048         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
28049         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
28050         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
28051         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
28052         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
28053         * lib/unictype/pr_combining.h: Regenerated.
28054         * lib/unictype/pr_dash.h: Regenerated.
28055         * lib/unictype/pr_decimal_digit.h: Regenerated.
28056         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
28057         * lib/unictype/pr_deprecated.h: Regenerated.
28058         * lib/unictype/pr_diacritic.h: Regenerated.
28059         * lib/unictype/pr_extender.h: Regenerated.
28060         * lib/unictype/pr_format_control.h: Regenerated.
28061         * lib/unictype/pr_grapheme_base.h: Regenerated.
28062         * lib/unictype/pr_grapheme_extend.h: Regenerated.
28063         * lib/unictype/pr_grapheme_link.h: Regenerated.
28064         * lib/unictype/pr_id_continue.h: Regenerated.
28065         * lib/unictype/pr_id_start.h: Regenerated.
28066         * lib/unictype/pr_ideographic.h: Regenerated.
28067         * lib/unictype/pr_ignorable_control.h: Regenerated.
28068         * lib/unictype/pr_lowercase.h: Regenerated.
28069         * lib/unictype/pr_math.h: Regenerated.
28070         * lib/unictype/pr_numeric.h: Regenerated.
28071         * lib/unictype/pr_other_alphabetic.h: Regenerated.
28072         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
28073         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
28074         * lib/unictype/pr_other_id_continue.h: Regenerated.
28075         * lib/unictype/pr_other_lowercase.h: Regenerated.
28076         * lib/unictype/pr_other_math.h: Regenerated.
28077         * lib/unictype/pr_punctuation.h: Regenerated.
28078         * lib/unictype/pr_sentence_terminal.h: Regenerated.
28079         * lib/unictype/pr_soft_dotted.h: Regenerated.
28080         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
28081         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
28082         * lib/unictype/pr_unified_ideograph.h: Regenerated.
28083         * lib/unictype/pr_uppercase.h: Regenerated.
28084         * lib/unictype/pr_xid_continue.h: Regenerated.
28085         * lib/unictype/pr_xid_start.h: Regenerated.
28086         * lib/unictype/pr_zero_width.h: Regenerated.
28087         * lib/unictype/scripts.h: Regenerated.
28088         * lib/unictype/scripts_byname.gperf: Regenerated.
28089         * lib/unictype/sy_java_ident.h: Regenerated.
28090         * lib/unilbrk/lbrkprop1.h: Regenerated.
28091         * lib/unilbrk/lbrkprop2.h: Regenerated.
28092         * tests/unictype/test-categ_C.c: Regenerated.
28093         * tests/unictype/test-categ_Cf.c: Regenerated.
28094         * tests/unictype/test-categ_Cn.c: Regenerated.
28095         * tests/unictype/test-categ_L.c: Regenerated.
28096         * tests/unictype/test-categ_Ll.c: Regenerated.
28097         * tests/unictype/test-categ_Lm.c: Regenerated.
28098         * tests/unictype/test-categ_Lo.c: Regenerated.
28099         * tests/unictype/test-categ_Lu.c: Regenerated.
28100         * tests/unictype/test-categ_M.c: Regenerated.
28101         * tests/unictype/test-categ_Mc.c: Regenerated.
28102         * tests/unictype/test-categ_Me.c: Regenerated.
28103         * tests/unictype/test-categ_Mn.c: Regenerated.
28104         * tests/unictype/test-categ_N.c: Regenerated.
28105         * tests/unictype/test-categ_Nd.c: Regenerated.
28106         * tests/unictype/test-categ_Nl.c: Regenerated.
28107         * tests/unictype/test-categ_No.c: Regenerated.
28108         * tests/unictype/test-categ_P.c: Regenerated.
28109         * tests/unictype/test-categ_Pd.c: Regenerated.
28110         * tests/unictype/test-categ_Pe.c: Regenerated.
28111         * tests/unictype/test-categ_Pf.c: Regenerated.
28112         * tests/unictype/test-categ_Pi.c: Regenerated.
28113         * tests/unictype/test-categ_Po.c: Regenerated.
28114         * tests/unictype/test-categ_Ps.c: Regenerated.
28115         * tests/unictype/test-categ_S.c: Regenerated.
28116         * tests/unictype/test-categ_Sk.c: Regenerated.
28117         * tests/unictype/test-categ_Sm.c: Regenerated.
28118         * tests/unictype/test-categ_So.c: Regenerated.
28119         * tests/unictype/test-ctype_alnum.c: Regenerated.
28120         * tests/unictype/test-ctype_alpha.c: Regenerated.
28121         * tests/unictype/test-ctype_graph.c: Regenerated.
28122         * tests/unictype/test-ctype_lower.c: Regenerated.
28123         * tests/unictype/test-ctype_print.c: Regenerated.
28124         * tests/unictype/test-ctype_punct.c: Regenerated.
28125         * tests/unictype/test-ctype_upper.c: Regenerated.
28126         * tests/unictype/test-decdigit.h: Regenerated.
28127         * tests/unictype/test-digit.h: Regenerated.
28128         * tests/unictype/test-numeric.h: Regenerated.
28129         * tests/unictype/test-pr_alphabetic.c: Regenerated.
28130         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
28131         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
28132         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
28133         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
28134         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
28135         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
28136         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
28137         * tests/unictype/test-pr_combining.c: Regenerated.
28138         * tests/unictype/test-pr_dash.c: Regenerated.
28139         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
28140         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
28141         * tests/unictype/test-pr_deprecated.c: Regenerated.
28142         * tests/unictype/test-pr_diacritic.c: Regenerated.
28143         * tests/unictype/test-pr_extender.c: Regenerated.
28144         * tests/unictype/test-pr_format_control.c: Regenerated.
28145         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
28146         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
28147         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
28148         * tests/unictype/test-pr_id_continue.c: Regenerated.
28149         * tests/unictype/test-pr_id_start.c: Regenerated.
28150         * tests/unictype/test-pr_ideographic.c: Regenerated.
28151         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
28152         * tests/unictype/test-pr_lowercase.c: Regenerated.
28153         * tests/unictype/test-pr_math.c: Regenerated.
28154         * tests/unictype/test-pr_numeric.c: Regenerated.
28155         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
28156         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
28157         Regenerated.
28158         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
28159         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
28160         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
28161         * tests/unictype/test-pr_other_math.c: Regenerated.
28162         * tests/unictype/test-pr_punctuation.c: Regenerated.
28163         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
28164         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
28165         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
28166         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
28167         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
28168         * tests/unictype/test-pr_uppercase.c: Regenerated.
28169         * tests/unictype/test-pr_xid_continue.c: Regenerated.
28170         * tests/unictype/test-pr_xid_start.c: Regenerated.
28171         * tests/unictype/test-pr_zero_width.c: Regenerated.
28172
28173         Update to Unicode 5.1.0.
28174         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
28175         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
28176         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
28177         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
28178         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
28179         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
28180         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
28181         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
28182         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
28183         (nonspacing_table_ind): Update.
28184         * tests/uniwidth/test-uc_width2.sh: Update expected result.
28185
28186         Update to Unicode 5.1.0.
28187         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
28188         code transform.
28189         * lib/uniname/uniname.c (unicode_character_name,
28190         unicode_name_character): Add the range 0x1Fxxx to the code transform.
28191         * lib/uniname/uninames.h: Regenerated.
28192         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
28193
28194 2009-02-07  Bruno Haible  <bruno@clisp.org>
28195
28196         Merge gen-ctype and gen-lbrk into a single program.
28197         * lib/gen-uni-tables.c: New file, incorporating
28198         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
28199         Add directory prefixes to the names of the generated files.
28200         * lib/unictype/gen-ctype.c: Remove file.
28201         * lib/unilbrk/gen-lbrk.c: Remove file.
28202         * modules/gen-uni-tables: New file.
28203         * modules/unictype/gen-ctype: Remove file.
28204         * modules/unilbrk/gen-lbrk: Remove file.
28205
28206 2009-02-07  Bruno Haible  <bruno@clisp.org>
28207
28208         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
28209
28210         New module 'unistr/u32-strcoll'.
28211         * modules/unistr/u32-strcoll: New file.
28212         * lib/unistr/u32-strcoll.c: New file.
28213
28214         New module 'unistr/u16-strcoll'.
28215         * modules/unistr/u16-strcoll: New file.
28216         * lib/unistr/u16-strcoll.c: New file.
28217
28218         New module 'unistr/u8-strcoll'.
28219         * modules/unistr/u8-strcoll: New file.
28220         * lib/unistr/u8-strcoll.c: New file.
28221         * lib/unistr/u-strcoll.h: New file.
28222
28223 2009-02-07  Bruno Haible  <bruno@clisp.org>
28224
28225         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
28226         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
28227         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
28228         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
28229         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
28230         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
28231
28232 2009-02-07  Bruno Haible  <bruno@clisp.org>
28233
28234         Make 64-bit clean.
28235         * lib/unictype/gen-ctype.c (output_predicate, output_category,
28236         output_combclass, output_bidi_category, output_decimal_digit,
28237         output_digit, output_numeric, output_mirror, output_scripts,
28238         output_ident_category): Use proper width specifier in format strings.
28239
28240 2009-02-07  Bruno Haible  <bruno@clisp.org>
28241
28242         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
28243         failure behaviour.
28244
28245 2009-02-07  Jim Meyering  <meyering@redhat.com>
28246
28247         regex: avoid compilation failure with upcoming gcc-4.4
28248         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
28249         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
28250         "... error: integer overflow in preprocessor expression".
28251
28252 2009-02-05  Ben Pfaff  <blp@gnu.org>
28253
28254         Fix link errors on Windows when close module is used.
28255         * modules/close: Add $(LIB_CLOSE) to Link section.
28256         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
28257         $(LIB_CLOSE) on Windows.
28258
28259 2009-02-05  Jim Meyering  <meyering@redhat.com>
28260
28261         still avoid unused-parameter warnings, but do it cleanly
28262         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
28263         (get_fs_usage): Cast to void instead.
28264         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
28265         (dev_from_mount_options, read_file_system_list): Cast to void.
28266         Prompted by Bruno Haible.
28267
28268 2009-02-04  Jim Meyering  <meyering@redhat.com>
28269
28270         fsusage.c: correct copyright year
28271         * lib/fsusage.c: Reflect year in which the change is pushed into
28272
28273         avoid misc. warnings
28274         * lib/fsusage.c (UNUSED_PARAM): Define.
28275         (get_fs_usage): Mark parameter "disk" as unused.
28276         * lib/getugroups.c (getgrent): Use "void" in prototype.
28277         * lib/mountlist.c: Mark unused parameters.
28278         (read_file_system_list): Declare a local with "const".
28279         * lib/nanosleep.c (getnow): Declare static.
28280         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
28281
28282         dirfd: set errno upon failure
28283         * lib/dirfd.c: Include <errno.h>.
28284         Set errno to ENOTSUP when returning -1.
28285         * modules/dirfd (Depends-on): Add errno.
28286         Suggested by John Kodis <kodis@comcast.net>.
28287
28288 2009-02-01  Bruno Haible  <bruno@clisp.org>
28289
28290         Don't assume sizeof (long) >= sizeof (void *).
28291         * lib/memcmp.c: Include stdint.h.
28292         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
28293         srcp2 to 'const byte *'.
28294         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
28295         types to uintptr_t.
28296         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
28297         * modules/memcmp (Depends-on): Add stdint.
28298         Reported by Ozkan Sezer <sezeroz@gmail.com>.
28299
28300 2009-01-30  Eric Blake  <ebb9@byu.net>
28301
28302         fix more require-before-expand issues
28303         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
28304         expand, AC_PROG_AWK.
28305         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
28306
28307 2009-01-28  Eric Blake  <ebb9@byu.net>
28308
28309         version-etc: use consistent URL formatting
28310         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
28311         Improve formatting.  Use fputs for string without %.
28312
28313 2009-01-28  Jim Meyering  <meyering@redhat.com>
28314
28315         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
28316         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
28317         "underquoted definition of NAME" from autoconf-2.59.
28318
28319 2009-01-28  Bruno Haible  <bruno@clisp.org>
28320
28321         * doc/gnulib.texi: Add "Obsolete modules" to index.
28322
28323 2009-01-28  Jim Meyering  <meyering@redhat.com>
28324
28325         useless-if-before-free: recognize more variants
28326         * build-aux/useless-if-before-free: Also recognize e.g.,
28327         if (NULL != p) free (p);
28328
28329 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
28330
28331         test-getaddrinfo: skip (don't fail) this test when there's no network
28332         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
28333         on the presumption that it means you lack network access.
28334
28335 2009-01-26  Jim Meyering  <meyering@redhat.com>
28336
28337         fflush: avoid warnings on modern systems
28338         * lib/fflush.c (rpl_fflush): Move declarations of locals,
28339         pos and result, into scopes where they're used.
28340
28341 2009-01-26  Eric Blake  <ebb9@byu.net>
28342
28343         Silence warning reintroduced by recent extensions patch.
28344         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
28345         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
28346         autoconf.
28347
28348         Backport improved autoconf semantics of AC_DEFUN_ONCE.
28349         * m4/00gnulib.m4: New file.
28350         * gnulib-tool (func_get_filelist): Always use it.
28351         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
28352         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
28353
28354 2009-01-25  Bruno Haible  <bruno@clisp.org>
28355
28356         Make test-quotearg work on MacOS X and AIX.
28357         * tests/test-quotearg.sh: New file.
28358         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
28359         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
28360         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
28361         include <libintl.h>.
28362         (fake_locale): Remove variable.
28363         (gettext, dgettext, dcgettext): Remove functions.
28364         (main): Instead of setting a fake locale, set a real locale. Call
28365         textdomain and bindtextdomain.
28366         * modules/quotearg-tests (Files): Add the new files.
28367         (Depends-on): Add gettext, setenv, unsetenv.
28368         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
28369         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
28370         Augment TESTS_ENVIRONMENT.
28371
28372 2009-01-25  Bruno Haible  <bruno@clisp.org>
28373
28374         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
28375         fr_FR.ISO8859-1 locale on MacOS X.
28376         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
28377         ja_JP.eucJP locale on MacOS X.
28378         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
28379         zh_CN.GB18030 locale on MacOS X.
28380
28381 2009-01-25  Bruno Haible  <bruno@clisp.org>
28382
28383         Avoid link errors on MacOS X 10.3.
28384         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
28385         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
28386
28387 2009-01-25  Bruno Haible  <bruno@clisp.org>
28388
28389         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
28390         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
28391         * modules/pipe (Files): Remove m4/posix_spawn.m4.
28392         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
28393         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
28394         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
28395         posix_spawnattr_init, posix_spawnattr_setsigmask,
28396         posix_spawnattr_setflags, posix_spawnattr_destroy.
28397
28398         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
28399         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
28400         * modules/execute (Files): Remove m4/posix_spawn.m4.
28401         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
28402         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
28403         posix_spawnattr_init, posix_spawnattr_setsigmask,
28404         posix_spawnattr_setflags, posix_spawnattr_destroy.
28405
28406 2009-01-25  Bruno Haible  <bruno@clisp.org>
28407
28408         * lib/glthread/threadlib.c: Include <stdlib.h>.
28409
28410 2009-01-25  Bruno Haible  <bruno@clisp.org>
28411
28412         * lib/glthread/threadlib.c (dummy): New declaration.
28413
28414 2009-01-25  Bruno Haible  <bruno@clisp.org>
28415
28416         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
28417         multibyte characters also for the GB18030 encoding. Don't crash when
28418         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
28419
28420 2009-01-25  Bruno Haible  <bruno@clisp.org>
28421
28422         Avoid redefining 'struct random_data' on OSF/1 5.1.
28423         * lib/stdlib.in.h: Include <random.h> if it exists.
28424         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
28425         HAVE_RANDOM_H. Include <random.h> when testing whether
28426         'struct random_data' exists.
28427         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
28428
28429 2009-01-25  Bruno Haible  <bruno@clisp.org>
28430
28431         Don't install charset.alias on MacOS X >= 10.3.
28432         * lib/localcharset.c (DARWIN7): New macro.
28433         (get_charset_aliases): Hardcode the result for Darwin7.
28434         * modules/localcharset (install-exec-local): Don't install
28435         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
28436
28437 2009-01-25  Bruno Haible  <bruno@clisp.org>
28438
28439         Don't install charset.alias on mingw and Cygwin.
28440         * modules/localcharset (install-exec-local): Don't install
28441         charset.alias on mingw and Cygwin, if the file does not yet exist.
28442         The result for these platforms is hardcoded in localcharset.c.
28443
28444 2009-01-25  Bruno Haible  <bruno@clisp.org>
28445
28446         Make it possible again to use AC_GNU_SOURCE together with gnulib.
28447         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
28448         before requiring AC_USE_SYSTEM_EXTENSIONS.
28449
28450 2009-01-25  Jim Meyering  <meyering@redhat.com>
28451
28452         c-strtod: avoid warnings
28453         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
28454         "assignment discards qualifiers from pointer target type" warnings.
28455
28456 2009-01-24  Bruno Haible  <bruno@clisp.org>
28457
28458         Add support for non-UTF-8 locales on MacOS X.
28459         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
28460         canonical encodings. For Darwin 7 and newer, don't map traditional
28461         encodings to UTF-8.
28462         Reported by Vincent Lefevre <vincent@vinc17.org>
28463         at <http://savannah.gnu.org/bugs/?25235>.
28464
28465 2009-01-24  Bruno Haible  <bruno@clisp.org>
28466
28467         * doc/gnulib.texi (Obsolete modules): New section.
28468         Reported by Mike Frysinger <vapier@gentoo.org>.
28469
28470 2009-01-24  Bruno Haible  <bruno@clisp.org>
28471
28472         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
28473         (%.dvi): New rule.
28474
28475 2009-01-24  Bruno Haible  <bruno@clisp.org>
28476
28477         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
28478         Reported by Eric Blake.
28479
28480 2009-01-24  Bruno Haible  <bruno@clisp.org>
28481
28482         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
28483         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
28484         Reported by Gary V. Vaughan <gary@gnu.org>.
28485
28486 2009-01-24  Bruno Haible  <bruno@clisp.org>
28487
28488         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
28489
28490 2009-01-23  Bruno Haible  <bruno@clisp.org>
28491
28492         Make c-strtod, c-strtold usable in libraries.
28493         * lib/c-strtod.c: Include string.h instead of xalloc.h.
28494         (C_STRTOD): Call strdup instead of xstrdup.
28495         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
28496         * modules/c-strtold (Depends-on): Likewise.
28497         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
28498         * NEWS: Mention the change.
28499         Reported by Michael Gold <mgold@ncf.ca>.
28500
28501 2009-01-23  Jim Meyering  <meyering@redhat.com>
28502
28503         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
28504         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
28505         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
28506
28507 2009-01-23  Simon Josefsson  <simon@josefsson.org>
28508
28509         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
28510         GNU CoreUtils.
28511         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
28512         * modules/version-etc (Description): Update.
28513
28514 2009-01-22  Bruno Haible  <bruno@clisp.org>
28515
28516         Cache the C locale object.
28517         * lib/c-strtod.c (c_locale_cache): New variable.
28518         (c_locale): New function.
28519         (C_STRTOD): Use it, and don't call freelocale.
28520         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
28521         Suggested by Paolo Bonzini.
28522
28523 2009-01-21  Bruno Haible  <bruno@clisp.org>
28524
28525         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
28526         conditions other than overflow.
28527
28528 2009-01-21  Bruno Haible  <bruno@clisp.org>
28529
28530         * lib/c-strtod.c: Include errno.h.
28531         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
28532         value from STRTOD_L and STRTOD.
28533
28534 2009-01-21  Bruno Haible  <bruno@clisp.org>
28535         and Jim Meyering  <meyering@redhat.com>
28536
28537         nanosleep: skip configure test (fail it) for apple universal builds
28538         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
28539         universal builds, assume that nanosleep does not work.
28540         * modules/nanosleep (Depends-on): Add multiarch.
28541
28542         mktime: skip configure test (fail it) for apple universal builds
28543         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
28544         universal builds, assume that mktime does not work.
28545         * modules/mktime (Depends-on): Add multiarch.
28546
28547 2009-01-21  Eric Blake  <ebb9@byu.net>
28548
28549         multiarch: avoid expand-before-require warning
28550         * modules/multiarch (configure.ac): Require, rather than expand,
28551         gl_MULTIARCH.
28552         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
28553         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
28554         enforce that all clients require it.  Partial reversion of
28555         2008-12-29 patch.
28556
28557         error: avoid expand-before-require warning
28558         * modules/errno (configure.ac): Require, rather than expand,
28559         gl_HEADER_ERRNO_H.
28560         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
28561         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
28562         enforce that all clients require it.
28563
28564         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
28565         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
28566         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
28567         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
28568
28569 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
28570
28571         Revert:
28572         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
28573
28574         regex: do not depend on obsolete modules.
28575         * modules/regex: Remove memcmp and memmove.
28576
28577 2009-01-20  Bruno Haible  <bruno@clisp.org>
28578
28579         Make the 'link' module link on Windows NT 4.
28580         * lib/link.c (_WIN32_WINNT): Don't define.
28581         (CreateHardLinkFuncType): New type.
28582         (CreateHardLinkFunc, initialized): New variables.
28583         (initialize): New function.
28584         (link): Invoke CreateHardLink indirectly through the function pointer.
28585
28586 2009-01-20  Bruno Haible  <bruno@clisp.org>
28587
28588         Fix compilation failure on mingw.
28589         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
28590
28591 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
28592
28593         * doc/c-strtod.texi: Mention a couple of restrictions.
28594
28595 2009-01-20  Jim Meyering  <meyering@redhat.com>
28596
28597         gettimeofday: move more declarations out of functions
28598         * lib/gettimeofday.c: Move extern declarations of tzset and
28599         gmtime out of containing functions.  Prompted by Bruno Haible.
28600
28601 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
28602
28603         regex: do not depend on obsolete modules.
28604         * modules/regex: Remove memcmp and memmove.
28605
28606 2009-01-19  Bruno Haible  <bruno@clisp.org>
28607
28608         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
28609         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
28610         gl_BIGENDIAN, not AC_C_BIGENDIAN.
28611         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
28612         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
28613
28614 2009-01-19  Bruno Haible  <bruno@clisp.org>
28615
28616         * tests/test-link.c: Include <errno.h>.
28617         (main): Exit with code 77 when a hard link cannot be created due to
28618         the file system.
28619         * tests/test-link.sh: Skip test when a hard link cannot be created due
28620         to the file system.
28621         Suggested by Eric Blake.
28622
28623 2009-01-19  Martin Lambers  <marlam@marlam.de>
28624
28625         * modules/link-tests: New file.
28626         * tests/test-link.sh: New file.
28627         * tests/test-link.c: New file.
28628
28629 2009-01-19  Eric Blake  <ebb9@byu.net>
28630
28631         doc: mention another function added in cygwin 1.7.0
28632         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
28633         Another new function in cygwin 1.7.
28634
28635 2009-01-19  Bruno Haible  <bruno@clisp.org>
28636
28637         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
28638         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
28639         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
28640         gl_BIGENDIAN, not AC_C_BIGENDIAN.
28641         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28642         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
28643         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28644         * m4/md4.m4 (gl_MD4): Likewise.
28645         * m4/md5.m4 (gl_MD5): Likewise.
28646         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
28647         * m4/sha1.m4 (gl_SHA1): Likewise.
28648         * m4/sha256.m4 (gl_SHA256): Likewise.
28649         * m4/sha512.m4 (gl_SHA512): Likewise.
28650
28651 2009-01-19  Bruno Haible  <bruno@clisp.org>
28652
28653         * modules/uniname/uniname-tests (Depends-on): Add progname.
28654         * tests/uniname/test-uninames.c: Include progname.h.
28655         (main): Call set_program_name.
28656
28657         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
28658         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
28659         (main): Call set_program_name.
28660
28661         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
28662         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
28663         (main): Call set_program_name.
28664
28665         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
28666         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
28667         (main): Call set_program_name.
28668
28669         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
28670         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
28671         (main): Call set_program_name.
28672
28673         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
28674         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
28675         (main): Call set_program_name.
28676
28677         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
28678         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
28679         (main): Call set_program_name.
28680
28681         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
28682         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
28683         (main): Call set_program_name.
28684
28685         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
28686         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
28687         (main): Call set_program_name.
28688
28689 2009-01-19  Eric Blake  <ebb9@byu.net>
28690
28691         test-unistd: test previous patch
28692         * tests/test-unistd.c: Test *_FILENO macros.
28693
28694         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
28695         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
28696         Guarantee a definition.
28697         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
28698         * modules/unistd-safer (Depends-on): Add dependency on unistd.
28699         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
28700         * lib/dup-safer.c (STDERR_FILENO): Likewise.
28701         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
28702         Likewise.
28703         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
28704         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
28705         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
28706         Likewise.
28707         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
28708         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
28709         (STDERR_FILENO): Likewise.
28710         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
28711         (STDERR_FILENO): Likewise.
28712         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
28713         (STDERR_FILENO): Likewise.
28714         Reported by Elbert Pol.
28715
28716 2009-01-19  Eric Blake  <ebb9@byu.net>
28717
28718         doc: mention more functions added in cygwin 1.7.0
28719         * doc/posix-functions/abort.texi (abort): Update wording related
28720         to cygwin.
28721         * doc/posix-functions/daylight.texi (daylight): Likewise.
28722         * doc/posix-functions/optarg.texi (optarg): Likewise.
28723         * doc/posix-functions/optarg.texi (opterr): Likewise.
28724         * doc/posix-functions/optarg.texi (optind): Likewise.
28725         * doc/posix-functions/optarg.texi (optopt): Likewise.
28726         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
28727         worked in 1.5.x, and was withdrawn in 1.7.
28728         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
28729         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
28730         cygwin versions.
28731         * doc/posix-functions/perror.texi (perror): Likewise.
28732         * doc/posix-functions/printf.texi (printf): Likewise.
28733         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
28734         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
28735         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
28736         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
28737         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
28738         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
28739         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
28740         Likewise.
28741         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
28742         Likewise.
28743         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
28744         this function.
28745         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
28746         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
28747         Likewise.
28748         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
28749         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
28750         * doc/posix-functions/confstr.texi (confstr): Likewise.
28751         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
28752         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
28753         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
28754         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
28755         * doc/posix-functions/fputws.texi (fputws): Likewise.
28756         * doc/posix-functions/fwide.texi (fwide): Likewise.
28757         * doc/posix-functions/getwc.texi (getwc): Likewise.
28758         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
28759         * doc/posix-functions/putwc.texi (putwc): Likewise.
28760         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
28761         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
28762         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
28763         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
28764         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
28765         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
28766         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
28767         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
28768         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
28769         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
28770         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
28771
28772 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
28773
28774         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
28775         * lib/ioctl.c: Include <sys/ioctl.h>.
28776
28777 2009-01-19  Simon Josefsson  <simon@josefsson.org>
28778
28779         * modules/getdate-tests (Depends-on): Add progname.
28780         * tests/test-getdate.c: Use progname module, to avoid link errors
28781         on non-glibc systems.
28782
28783 2009-01-18  Simon Josefsson  <simon@josefsson.org>
28784
28785         * modules/filenamecat-tests (Depends-on): Add progname.
28786         * modules/fstrcmp-tests (Depends-on): Likewise.
28787
28788         * tests/test-filenamecat.c: Use progname module, to avoid link
28789         errors on non-glibc systems.
28790         * tests/test-fstrcmp.c: Likewise.
28791
28792 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
28793
28794         gettimeofday: avoid warning: nested extern declaration of 'localtime'
28795         * lib/gettimeofday.c: Move extern declaration out of function.
28796
28797 2009-01-18  Bruno Haible  <bruno@clisp.org>
28798
28799         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
28800         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
28801         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
28802
28803 2009-01-18  Bruno Haible  <bruno@clisp.org>
28804
28805         * lib/strftime.c (MEMPCPY): Remove unused macro.
28806         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
28807
28808 2009-01-18  Martin Lambers  <marlam@marlam.de>
28809
28810         New module 'link'.
28811         * lib/unistd.in.h (link): New declaration.
28812         * lib/link.c: New file.
28813         * m4/link.m4: New file.
28814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
28815         HAVE_LINK.
28816         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
28817         * modules/link: New file.
28818         * doc/posix-functions/link.texi: Mention the new module.
28819
28820 2009-01-18  Bruno Haible  <bruno@clisp.org>
28821
28822         * tests/test-avltree_list.c (main): Call set_program_name.
28823         * tests/test-avltree_oset.c (main): Likewise.
28824         * tests/test-obstack-printf.c: Include progname.h.
28825         (main): Call set_program_name.
28826         * tests/test-quotearg.c: Include progname.h.
28827         (main): Call set_program_name.
28828         * tests/test-xmemdup0.c: Include progname.h.
28829         (main): Call set_program_name.
28830
28831 2009-01-18  Bruno Haible  <bruno@clisp.org>
28832
28833         New module 'alphasort'.
28834         * lib/dirent.in.h (alphasort): New declaration.
28835         * lib/alphasort.c: New file, from glibc with modifications.
28836         * m4/alphasort.m4: New file.
28837         * modules/alphasort: New file.
28838         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
28839         HAVE_ALPHASORT.
28840         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
28841         HAVE_ALPHASORT.
28842         * doc/posix-functions/alphasort.texi: Mention the new module and the
28843         portability problems.
28844
28845 2009-01-18  Bruno Haible  <bruno@clisp.org>
28846
28847         New module 'scandir'.
28848         * lib/dirent.in.h (scandir): New declaration.
28849         * lib/scandir.c: New file, from glibc with modifications.
28850         * m4/scandir.m4: New file.
28851         * modules/scandir: New file.
28852         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
28853         HAVE_SCANDIR.
28854         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
28855         HAVE_SCANDIR.
28856         * doc/posix-functions/scandir.texi: Mention the new module and the
28857         portability problems.
28858
28859 2009-01-17  Bruno Haible  <bruno@clisp.org>
28860
28861         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
28862         Update documentation.
28863         (func_remove_suffix): Escape all dots in the suffix. Update
28864         documentation.
28865         (func_filter_filelist): Update documentation.
28866         Reported by Ralf Wildenhues.
28867
28868 2009-01-17  Bruno Haible  <bruno@clisp.org>
28869
28870         * modules/dprintf-posix-tests: New file.
28871         * tests/test-dprintf-posix.sh: New file.
28872         * tests/test-dprintf-posix.c: New file.
28873
28874         New modules 'dprintf', 'dprintf-posix'.
28875         * lib/stdio.in.h (dprintf): New declaration.
28876         * lib/dprintf.c: New file.
28877         * m4/dprintf.m4: New file.
28878         * m4/dprintf-posix.m4: New file.
28879         * modules/dprintf: New file.
28880         * modules/dprintf-posix: New file.
28881         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
28882         HAVE_DPRINTF, REPLACE_DPRINTF.
28883         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
28884         HAVE_DPRINTF, REPLACE_DPRINTF.
28885         * doc/posix-functions/dprintf.texi: Mention the new modules.
28886
28887 2009-01-17  Bruno Haible  <bruno@clisp.org>
28888
28889         * modules/vdprintf-posix-tests: New file.
28890         * tests/test-vdprintf-posix.sh: New file.
28891         * tests/test-vdprintf-posix.c: New file.
28892
28893         New modules 'vdprintf', 'vdprintf-posix'.
28894         * lib/stdio.in.h (vdprintf): New declaration.
28895         * lib/vdprintf.c: New file.
28896         * m4/vdprintf.m4: New file.
28897         * m4/vdprintf-posix.m4: New file.
28898         * modules/vdprintf: New file.
28899         * modules/vdprintf-posix: New file.
28900         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
28901         HAVE_VDPRINTF, REPLACE_VDPRINTF.
28902         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
28903         HAVE_VDPRINTF, REPLACE_VDPRINTF.
28904         * doc/posix-functions/vdprintf.texi: Mention the new modules.
28905
28906 2009-01-17  Bruno Haible  <bruno@clisp.org>
28907
28908         Fix replacement of fopen on mingw.
28909         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
28910         mingw.
28911
28912 2009-01-17  Bruno Haible  <bruno@clisp.org>
28913
28914         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
28915         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
28916
28917 2009-01-17  Bruno Haible  <bruno@clisp.org>
28918
28919         Avoid test-fflush2.sh failure on mingw.
28920         * tests/test-fflush2.c: Include binary-io.h.
28921         (main): Put standard input into binary mode.
28922         * modules/fflush-tests (Depends-on): Add binary-io.
28923
28924 2009-01-17  Bruno Haible  <bruno@clisp.org>
28925
28926         * lib/wchar.in.h: In another particular situation, include only the
28927         system's <wchar.h> file.
28928         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
28929         Reported by Albert Chin-A-Young <china@thewrittenword.com>
28930         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
28931
28932 2009-01-17  Bruno Haible  <bruno@clisp.org>
28933
28934         Support for stripping executables in --enable-relocatable.
28935         * build-aux/install-reloc: Expect one more argument, or an environment
28936         variable RELOC_STRIP_PROG. If set, strip the destination program and
28937         its wrapper.
28938         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
28939         RELOC_STRIP_PROG.
28940         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
28941         to set RELOCATABLE_STRIP.
28942         * NEWS: Mention the new Makefile requirement.
28943
28944 2009-01-17  Bruno Haible  <bruno@clisp.org>
28945
28946         * build-aux/install-reloc: Remove debugging information left over by
28947         C compiler on MacOS X.
28948
28949 2009-01-17  Bruno Haible  <bruno@clisp.org>
28950
28951         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
28952         * lib/progreloc.c (find_executable): Fix type of pointer passed to
28953         _NSGetExecutablePath.
28954
28955 2009-01-16  Jim Meyering  <meyering@redhat.com>
28956
28957         strerror: avoid warnings about discarding "const"
28958         * lib/strerror.c (rpl_strerror): Instead of returning a const
28959         string from each and every "case", use a variable, and add a single
28960         cast after the switch.
28961
28962 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
28963
28964         * lib/arpa_inet.in.h: Add extern "C" block for C++.
28965
28966 2009-01-16  Bruno Haible  <bruno@clisp.org>
28967
28968         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
28969         array initializer syntax that also works in C++ mode.
28970         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28971
28972 2009-01-16  Jim Meyering  <meyering@redhat.com>
28973
28974         poll: suppress a warning
28975         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
28976         to ignore "...unsigned expression < 0 is always false" warnings.
28977
28978 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
28979
28980         poll: remove declarations of unused variables
28981         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
28982         sockbuf and optlen.
28983
28984 2009-01-15  Bruno Haible  <bruno@clisp.org>
28985
28986         Make fflush-after-ungetc POSIX compliant on BSD systems.
28987         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
28988         (clear_ungetc_buffer): Implement also for other systems.
28989         (rpl_fflush): On glibc systems, invoke
28990         clear_ungetc_buffer_preserving_position. Otherwise, invoke
28991         clear_ungetc_buffer after fetching the stream's position, not before.
28992
28993 2009-01-15  Bruno Haible  <bruno@clisp.org>
28994
28995         Make fflush-after-ungetc POSIX compliant on glibc systems.
28996         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
28997         after ungetc.
28998         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
28999         (rpl_fflush): On glibc systems, simply call the system's fflush
29000         function after clearing the ungetc buffer.
29001         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
29002         Instead, lseek only to the end of file, then use the system's fseeko
29003         for the rest. On glibc systems, reset the EOF indicator bit.
29004
29005 2009-01-15  Jim Meyering  <meyering@redhat.com>
29006
29007         openmp.m4: revert quote-adding change, for portability to older autoconf
29008         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
29009         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
29010         Simon Josefsson noticed the problem when using autoconf-2.61.
29011
29012 2009-01-15  Bruno Haible  <bruno@clisp.org>
29013
29014         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
29015         * tests/test-fflush2.c (ASSERT): Always fail.
29016         (main): Add two tests for fflush() after ungetc(), taking into account
29017         the Austin Group's clarification.
29018         Suggested by Eric Blake.
29019
29020 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
29021
29022         mktime.m4: remove K&R-style function prototypes
29023         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
29024         for the Sun C++ compiler.
29025
29026 2009-01-14  Bruno Haible  <bruno@clisp.org>
29027
29028         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
29029         while including <wchar.h>.
29030         * lib/wchar.in.h: In two particular situations on HP-UX, include only
29031         the system's <wchar.h> file.
29032         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29033
29034 2009-01-14  Bruno Haible  <bruno@clisp.org>
29035
29036         * m4/csharp.m4: Don't mention gettext on the serial number line.
29037         * m4/csharpexec.m4: Likewise.
29038         * m4/eaccess.m4: Likewise.
29039         * m4/javaexec.m4: Likewise.
29040         * m4/sig_atomic_t.m4: Likewise.
29041         * m4/tmpdir.m4: Likewise.
29042         * m4/intldir.m4: Bump gettext version.
29043         * m4/lib-ld.m4: Likewise.
29044
29045 2009-01-14  Bruno Haible  <bruno@clisp.org>
29046
29047         * lib/progname.c (set_program_name): Add more comments.
29048         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
29049
29050 2009-01-14  Simon Josefsson  <simon@josefsson.org>
29051
29052         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
29053         were sys/stat.h does not define it.
29054
29055 2009-01-14  Jim Meyering  <meyering@redhat.com>
29056
29057         many *.m4 files: improve m4 quoting
29058         99% of this change was performed by running the following commands:
29059         git ls-files | grep '\.m4$' | xargs perl -pi \
29060           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
29061           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
29062           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
29063           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
29064         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
29065         The remainder were to add Copyright dates, increment serial numbers,
29066         undo some changes in comments, exclude m4/intl.m4, and add quotes
29067         around the "1" in ",1" where the unusual spacing prohibited the
29068         above regexps from doing the job.  For more details, see
29069         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
29070         * m4/acl.m4: Modified.
29071         * m4/afs.m4: Likewise.
29072         * m4/alloca.m4: Likewise.
29073         * m4/argp.m4: Likewise.
29074         * m4/argz.m4: Likewise.
29075         * m4/atexit.m4: Likewise.
29076         * m4/bison-i18n.m4: Likewise.
29077         * m4/bison.m4: Likewise.
29078         * m4/byteswap.m4: Likewise.
29079         * m4/c-stack.m4: Likewise.
29080         * m4/c-strtod.m4: Likewise.
29081         * m4/calloc.m4: Likewise.
29082         * m4/canonicalize-lgpl.m4: Likewise.
29083         * m4/chown.m4: Likewise.
29084         * m4/clock_time.m4: Likewise.
29085         * m4/codeset.m4: Likewise.
29086         * m4/copy-file.m4: Likewise.
29087         * m4/csharp.m4: Likewise.
29088         * m4/csharpcomp.m4: Likewise.
29089         * m4/csharpexec.m4: Likewise.
29090         * m4/d-ino.m4: Likewise.
29091         * m4/d-type.m4: Likewise.
29092         * m4/dirfd.m4: Likewise.
29093         * m4/double-slash-root.m4: Likewise.
29094         * m4/eaccess.m4: Likewise.
29095         * m4/eealloc.m4: Likewise.
29096         * m4/environ.m4: Likewise.
29097         * m4/errno_h.m4: Likewise.
29098         * m4/euidaccess.m4: Likewise.
29099         * m4/execute.m4: Likewise.
29100         * m4/fatal-signal.m4: Likewise.
29101         * m4/fchdir.m4: Likewise.
29102         * m4/fcntl_h.m4: Likewise.
29103         * m4/fileblocks.m4: Likewise.
29104         * m4/filenamecat.m4: Likewise.
29105         * m4/findprog.m4: Likewise.
29106         * m4/flexmember.m4: Likewise.
29107         * m4/fnmatch.m4: Likewise.
29108         * m4/fopen.m4: Likewise.
29109         * m4/fpending.m4: Likewise.
29110         * m4/fprintf-posix.m4: Likewise.
29111         * m4/free.m4: Likewise.
29112         * m4/frexp.m4: Likewise.
29113         * m4/frexpl.m4: Likewise.
29114         * m4/fsusage.m4: Likewise.
29115         * m4/ftruncate.m4: Likewise.
29116         * m4/gc-camellia.m4: Likewise.
29117         * m4/gc-random.m4: Likewise.
29118         * m4/gc.m4: Likewise.
29119         * m4/getaddrinfo.m4: Likewise.
29120         * m4/getcwd-abort-bug.m4: Likewise.
29121         * m4/getcwd-path-max.m4: Likewise.
29122         * m4/getdate.m4: Likewise.
29123         * m4/getdomainname.m4: Likewise.
29124         * m4/getgroups.m4: Likewise.
29125         * m4/gethostname.m4: Likewise.
29126         * m4/gethrxtime.m4: Likewise.
29127         * m4/getline.m4: Likewise.
29128         * m4/getloadavg.m4: Likewise.
29129         * m4/getndelim2.m4: Likewise.
29130         * m4/getpass.m4: Likewise.
29131         * m4/gettext.m4: Likewise.
29132         * m4/gettime.m4: Likewise.
29133         * m4/gettimeofday.m4: Likewise.
29134         * m4/gnulib-common.m4: Likewise.
29135         * m4/group-member.m4: Likewise.
29136         * m4/host-os.m4: Likewise.
29137         * m4/iconv.m4: Likewise.
29138         * m4/iconv_open.m4: Likewise.
29139         * m4/inet_ntop.m4: Likewise.
29140         * m4/inet_pton.m4: Likewise.
29141         * m4/inline.m4: Likewise.
29142         * m4/intldir.m4: Likewise.
29143         * m4/intlmacosx.m4: Likewise.
29144         * m4/intmax.m4: Likewise.
29145         * m4/intmax_t.m4: Likewise.
29146         * m4/inttypes.m4: Likewise.
29147         * m4/inttypes_h.m4: Likewise.
29148         * m4/inttypes-pri.m4: Likewise.
29149         * m4/isapipe.m4: Likewise.
29150         * m4/isnand.m4: Likewise.
29151         * m4/isnanf.m4: Likewise.
29152         * m4/isnanl.m4: Likewise.
29153         * m4/javacomp.m4: Likewise.
29154         * m4/javaexec.m4: Likewise.
29155         * m4/jm-winsz1.m4: Likewise.
29156         * m4/jm-winsz2.m4: Likewise.
29157         * m4/lchown.m4: Likewise.
29158         * m4/lcmessage.m4: Likewise.
29159         * m4/ldexpl.m4: Likewise.
29160         * m4/lib-ld.m4: Likewise.
29161         * m4/lib-link.m4: Likewise.
29162         * m4/libsigsegv.m4: Likewise.
29163         * m4/link-follow.m4: Likewise.
29164         * m4/localcharset.m4: Likewise.
29165         * m4/locale-fr.m4: Likewise.
29166         * m4/locale-ja.m4: Likewise.
29167         * m4/locale-tr.m4: Likewise.
29168         * m4/locale-zh.m4: Likewise.
29169         * m4/lock.m4: Likewise.
29170         * m4/longlong.m4: Likewise.
29171         * m4/ls-mntd-fs.m4: Likewise.
29172         * m4/lstat.m4: Likewise.
29173         * m4/malloc.m4: Likewise.
29174         * m4/mathl.m4: Likewise.
29175         * m4/mbrtowc.m4: Likewise.
29176         * m4/mbstate_t.m4: Likewise.
29177         * m4/mbswidth.m4: Likewise.
29178         * m4/memchr.m4: Likewise.
29179         * m4/memcmp.m4: Likewise.
29180         * m4/memcpy.m4: Likewise.
29181         * m4/memmem.m4: Likewise.
29182         * m4/memmove.m4: Likewise.
29183         * m4/mempcpy.m4: Likewise.
29184         * m4/memrchr.m4: Likewise.
29185         * m4/memset.m4: Likewise.
29186         * m4/minmax.m4: Likewise.
29187         * m4/mkdir-slash.m4: Likewise.
29188         * m4/mkdtemp.m4: Likewise.
29189         * m4/mktime.m4: Likewise.
29190         * m4/mmap-anon.m4: Likewise.
29191         * m4/mountlist.m4: Likewise.
29192         * m4/nanosleep.m4: Likewise.
29193         * m4/nls.m4: Likewise.
29194         * m4/nocrash.m4: Likewise.
29195         * m4/open.m4: Likewise.
29196         * m4/openat.m4: Likewise.
29197         * m4/openmp.m4: Likewise.
29198         * m4/pathmax.m4: Likewise.
29199         * m4/perl.m4: Likewise.
29200         * m4/physmem.m4: Likewise.
29201         * m4/pipe.m4: Likewise.
29202         * m4/po.m4: Likewise.
29203         * m4/poll.m4: Likewise.
29204         * m4/posixtm.m4: Likewise.
29205         * m4/posixver.m4: Likewise.
29206         * m4/printf-frexp.m4: Likewise.
29207         * m4/printf-frexpl.m4: Likewise.
29208         * m4/printf-posix.m4: Likewise.
29209         * m4/printf-posix-rpl.m4: Likewise.
29210         * m4/printf.m4: Likewise.
29211         * m4/progtest.m4: Likewise.
29212         * m4/putenv.m4: Likewise.
29213         * m4/readline.m4: Likewise.
29214         * m4/readlink.m4: Likewise.
29215         * m4/readutmp.m4: Likewise.
29216         * m4/realloc.m4: Likewise.
29217         * m4/regex.m4: Likewise.
29218         * m4/relocatable.m4: Likewise.
29219         * m4/relocatable-lib.m4: Likewise.
29220         * m4/rename-dest-slash.m4: Likewise.
29221         * m4/rename.m4: Likewise.
29222         * m4/rmdir-errno.m4: Likewise.
29223         * m4/rmdir.m4: Likewise.
29224         * m4/roundf.m4: Likewise.
29225         * m4/roundl.m4: Likewise.
29226         * m4/rpmatch.m4: Likewise.
29227         * m4/save-cwd.m4: Likewise.
29228         * m4/selinux-selinux-h.m4: Likewise.
29229         * m4/setenv.m4: Likewise.
29230         * m4/settime.m4: Likewise.
29231         * m4/sig2str.m4: Likewise.
29232         * m4/sig_atomic_t.m4: Likewise.
29233         * m4/signalblocking.m4: Likewise.
29234         * m4/signbit.m4: Likewise.
29235         * m4/sigpipe.m4: Likewise.
29236         * m4/sockets.m4: Likewise.
29237         * m4/sockpfaf.m4: Likewise.
29238         * m4/st_dm_mode.m4: Likewise.
29239         * m4/stat-time.m4: Likewise.
29240         * m4/stdbool.m4: Likewise.
29241         * m4/stdint.m4: Likewise.
29242         * m4/stdint_h.m4: Likewise.
29243         * m4/stpcpy.m4: Likewise.
29244         * m4/stpncpy.m4: Likewise.
29245         * m4/strcase.m4: Likewise.
29246         * m4/strchrnul.m4: Likewise.
29247         * m4/strcspn.m4: Likewise.
29248         * m4/strdup.m4: Likewise.
29249         * m4/strftime.m4: Likewise.
29250         * m4/strndup.m4: Likewise.
29251         * m4/strnlen.m4: Likewise.
29252         * m4/strpbrk.m4: Likewise.
29253         * m4/strptime.m4: Likewise.
29254         * m4/strsep.m4: Likewise.
29255         * m4/strtod.m4: Likewise.
29256         * m4/strtoimax.m4: Likewise.
29257         * m4/strtok_r.m4: Likewise.
29258         * m4/strtol.m4: Likewise.
29259         * m4/strtoll.m4: Likewise.
29260         * m4/strtoul.m4: Likewise.
29261         * m4/strtoull.m4: Likewise.
29262         * m4/strtoumax.m4: Likewise.
29263         * m4/strverscmp.m4: Likewise.
29264         * m4/threadlib.m4: Likewise.
29265         * m4/timegm.m4: Likewise.
29266         * m4/tm_gmtoff.m4: Likewise.
29267         * m4/tmpdir.m4: Likewise.
29268         * m4/tmpfile.m4: Likewise.
29269         * m4/tzset.m4: Likewise.
29270         * m4/uintmax_t.m4: Likewise.
29271         * m4/unlinkdir.m4: Likewise.
29272         * m4/unlocked-io.m4: Likewise.
29273         * m4/uptime.m4: Likewise.
29274         * m4/userspec.m4: Likewise.
29275         * m4/utimbuf.m4: Likewise.
29276         * m4/utime.m4: Likewise.
29277         * m4/utimes-null.m4: Likewise.
29278         * m4/utimes.m4: Likewise.
29279         * m4/vararrays.m4: Likewise.
29280         * m4/vasnprintf.m4: Likewise.
29281         * m4/vfprintf-posix.m4: Likewise.
29282         * m4/vprintf-posix.m4: Likewise.
29283         * m4/wait-process.m4: Likewise.
29284         * m4/wchar_t.m4: Likewise.
29285         * m4/wint_t.m4: Likewise.
29286         * m4/write-any-file.m4: Likewise.
29287         * m4/yield.m4: Likewise.
29288
29289 2009-01-13  Bruno Haible  <bruno@clisp.org>
29290
29291         Avoid test-copy-file.sh failures when ACL support insufficient.
29292         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
29293         TESTS_ENVIRONMENT.
29294         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
29295         Reported by Jim Meyering.
29296
29297 2009-01-13  Bruno Haible  <bruno@clisp.org>
29298
29299         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
29300         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
29301         * modules/unistdio/u8-printf-parse (Files): Likewise.
29302         * modules/unistdio/u32-printf-parse (Files): Likewise.
29303         * modules/unistdio/ulc-printf-parse (Files): Likewise.
29304
29305 2009-01-13  Simon Josefsson  <simon@josefsson.org>
29306
29307         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
29308         and m4/inttypes_h.m4 too.
29309
29310 2009-01-12  Eric Blake  <ebb9@byu.net>
29311
29312         tests: IRIX 6.2 cc can't compile -0.0 into .data
29313         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
29314         rather than at compile-time.
29315         * tests/test-floorl.c (minus_zero): Likewise.
29316         * tests/test-frexpl.c (minus_zero): Likewise.
29317         * tests/test-isnan.c (minus_zerol): Likewise.
29318         * tests/test-isnanl.h (minus_zero): Likewise.
29319         * tests/test-ldexpl.c (minus_zero): Likewise.
29320         * tests/test-roundl.c (minus_zero): Likewise.
29321         * tests/test-signbit.c (minus_zerol): Likewise.
29322         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
29323         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
29324         * tests/test-truncl.c (minus_zero): Likewise.
29325         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
29326         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
29327         Reported by Tom G. Christensen and Nelson H. F. Beebe.
29328
29329 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
29330
29331         regex: fix glibc bug 9697
29332         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
29333         handling.
29334
29335 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
29336
29337         regex: fix glibc bug 697
29338         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
29339         being NULL also if there are no backreferences.
29340
29341 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
29342
29343         regex: merge glibc changes
29344         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
29345         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
29346         re_string_skip_chars, re_string_reconstruct): Likewise.
29347         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
29348
29349 2009-01-07  Jim Meyering  <meyering@redhat.com>
29350
29351         poll: filter through cppi
29352         * lib/poll.c: Indent cpp directives to reflect nesting.
29353
29354 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
29355
29356         poll: don't return uninitialized
29357         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
29358
29359 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
29360
29361         avoid compile failure on AIX 6.1
29362         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
29363         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
29364
29365 2009-01-04  Jim Meyering  <meyering@redhat.com>
29366
29367         remove duplicate inclusion of <stdio.h>
29368         * tests/test-fprintf-posix.c: Likewise.
29369         * tests/test-printf-posix.c: Likewise.
29370         * tests/test-snprintf-posix.c: Likewise.
29371         * tests/test-sprintf-posix.c: Likewise.
29372         * tests/test-vasprintf-posix.c: Likewise.
29373         * tests/test-vfprintf-posix.c: Likewise.
29374         * tests/test-vprintf-posix.c: Likewise.
29375         * tests/test-vsnprintf-posix.c: Likewise.
29376         * tests/test-vsprintf-posix.c: Likewise.
29377
29378 2009-01-03  Jim Meyering  <meyering@redhat.com>
29379
29380         gnulib-tool: fix sed-based filtering
29381         * gnulib-tool (func_filter_filelist): Remove extra backslash
29382         in sed_fff_filter definition.
29383
29384 2009-01-02  Jim Meyering  <meyering@redhat.com>
29385
29386         strftime: avoid compilation failure on Solaris 2.6
29387         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
29388         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
29389         Don't #define mbrlen or mbsinit, since now they're guaranteed to
29390         be available.  Reported by Tom G. Christensen.  Details in
29391         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
29392
29393 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29394             Bruno Haible  <bruno@clisp.org>
29395
29396         Speed up gnulib-tool by doing more string processing through shell
29397         built-ins.
29398         * gnulib-tool (fast_func_append): New variable.
29399         (func_remove_prefix, func_remove_suffix): New functions.
29400         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
29401         (func_filter_filelist): New function.
29402         (func_get_dependencies): Use func_remove_suffix instead of sed.
29403         (func_get_automake_snippet): Use func_filter_filelist instead of a
29404         subshell and sed invocation.
29405
29406 2009-01-01  Bruno Haible  <bruno@clisp.org>
29407
29408         Fix a security bug.
29409         * gnulib-tool (func_import, import, update): Don't allow the characters
29410         '"', '$', '`', '\' in macro arguments that become part of commands that
29411         are evaluated.
29412
29413 2009-01-01  Bruno Haible  <bruno@clisp.org>
29414
29415         * gnulib-tool (func_reset_sigpipe): Add more comments.
29416
29417 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29418
29419         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
29420         func_emit_tests_Makefile_am, func_import): Abort loops early if we
29421         already know the answer.
29422
29423 2009-01-01  Jim Meyering  <meyering@redhat.com>
29424
29425         * lib/version-etc.c (version_etc_va): Update copyright year.
29426
29427 2008-12-30  Bruno Haible  <bruno@clisp.org>
29428
29429         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
29430         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
29431         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
29432
29433 2008-12-29  Eric Blake  <ebb9@byu.net>
29434
29435         multiarch: avoid autoconf AC_REQUIRE bug
29436         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
29437         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
29438         2.63 and older.
29439         Reported by Bruno Haible, and analyzed in
29440         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
29441
29442 2008-12-29  Bruno Haible  <bruno@clisp.org>
29443
29444         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
29445         files in subdirectories correctly.
29446         Reported by Ralf Wildenhues.
29447
29448 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29449
29450         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
29451         rather than 'join FILE -', for Solaris join.
29452
29453 2008-12-29  Bruno Haible  <bruno@clisp.org>
29454
29455         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
29456         quoting.
29457         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29458         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
29459         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
29460         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
29461         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29462         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
29463         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
29464         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
29465         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29466         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
29467         * m4/nls.m4 (AM_NLS): Likewise.
29468         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
29469         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
29470         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29471         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
29472         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
29473         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29474         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
29475         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
29476         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
29477         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29478         * m4/xsize.m4 (gl_XSIZE): Likewise.
29479         Suggested by Jim Meyering.
29480
29481 2008-11-17  Bruce Korb  <bkorb@gnu.org>
29482
29483         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
29484         * lib/parse-duration.c: use a switch instead of cascading if's.
29485
29486 2008-12-29  Eric Blake  <ebb9@byu.net>
29487
29488         wchar.h: supply WEOF on Irix 5.3
29489         * lib/wchar.in.h (wint_t): Also supply WEOF.
29490         * lib/wctype.in.h (wint_t): Likewise.
29491         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
29492         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
29493         Reported by Tom G. Christensen.
29494
29495 2008-12-26  Bruno Haible  <bruno@clisp.org>
29496
29497         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
29498         i486, i586, i686.
29499
29500 2008-12-26  Bruno Haible  <bruno@clisp.org>
29501
29502         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
29503
29504 2008-12-26  Bruno Haible  <bruno@clisp.org>
29505
29506         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
29507         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
29508         not __STDC_CONSTANT_MACROS.
29509         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
29510
29511 2008-12-25  Bruno Haible  <bruno@clisp.org>
29512
29513         Add support for universal builds to vasnprintf.
29514         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
29515         universal builds, guess no.
29516         * modules/vasnprintf-posix (Depends-on): Add multiarch.
29517         * modules/vasprintf-posix (Depends-on): Likewise.
29518         * modules/fprintf-posix (Depends-on): Likewise.
29519         * modules/vfprintf-posix (Depends-on): Likewise.
29520         * modules/snprintf-posix (Depends-on): Likewise.
29521         * modules/vsnprintf-posix (Depends-on): Likewise.
29522         * modules/sprintf-posix (Depends-on): Likewise.
29523         * modules/vsprintf-posix (Depends-on): Likewise.
29524         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29525         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29526         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29527         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29528         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29529         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29530         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29531
29532         Add support for universal builds to <inttypes.h>.
29533         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
29534         _SCNu64_PREFIX): In Apple
29535         universal builds, define directly, using _LP64.
29536         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
29537         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
29538         * modules/inttypes (Depends-on): Add multiarch.
29539         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
29540
29541         Add support for universal builds to <stdint.h>.
29542         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
29543         universal builds, define directly, using _LP64.
29544         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
29545         Apple universal builds, don't test for the size and suffix of ptrdiff_t
29546         and size_t.
29547         * modules/stdint (Depends-on): Add multiarch.
29548         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
29549
29550         New module 'multiarch'.
29551         * modules/multiarch: New file.
29552         * m4/multiarch.m4: New file.
29553
29554 2008-12-25  Bruno Haible  <bruno@clisp.org>
29555
29556         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
29557
29558 2008-12-25  Bruno Haible  <bruno@clisp.org>
29559
29560         * modules/btowc (License): Relicense under LGPLv2+.
29561         * modules/mbsinit (License): Likewise.
29562         * modules/mbrtowc (License): Likewise.
29563         * modules/wcrtomb (License): Likewise.
29564         * modules/streq (License): Likewise.
29565         Reported by David Lutterkort <lutter@redhat.com>.
29566
29567 2008-12-23  Bruno Haible  <bruno@clisp.org>
29568
29569         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
29570
29571 2008-12-23  Bruno Haible  <bruno@clisp.org>
29572
29573         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
29574         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
29575         GETADDRINFO_LIB, not in LIBS.
29576         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
29577         * modules/canon-host (Link): Likewise.
29578         * NEWS: Mention the change.
29579         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
29580         GETADDRINFO_LIB.
29581
29582 2008-12-22  Bruno Haible  <bruno@clisp.org>
29583
29584         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
29585         * doc/posix-functions/iswalpha_l.texi: Likewise.
29586         * doc/posix-functions/iswblank_l.texi: Likewise.
29587         * doc/posix-functions/iswcntrl_l.texi: Likewise.
29588         * doc/posix-functions/iswctype_l.texi: Likewise.
29589         * doc/posix-functions/iswdigit_l.texi: Likewise.
29590         * doc/posix-functions/iswgraph_l.texi: Likewise.
29591         * doc/posix-functions/iswlower_l.texi: Likewise.
29592         * doc/posix-functions/iswprint_l.texi: Likewise.
29593         * doc/posix-functions/iswpunct_l.texi: Likewise.
29594         * doc/posix-functions/iswspace_l.texi: Likewise.
29595         * doc/posix-functions/iswupper_l.texi: Likewise.
29596         * doc/posix-functions/iswxdigit_l.texi: Likewise.
29597         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
29598         * doc/posix-functions/open_wmemstream.texi: Likewise.
29599         * doc/posix-functions/swscanf.texi: Likewise.
29600         * doc/posix-functions/towctrans_l.texi: Likewise.
29601         * doc/posix-functions/towlower.texi: Likewise.
29602         * doc/posix-functions/towlower_l.texi: Likewise.
29603         * doc/posix-functions/towupper.texi: Likewise.
29604         * doc/posix-functions/towupper_l.texi: Likewise.
29605         * doc/posix-functions/vfwprintf.texi: Likewise.
29606         * doc/posix-functions/vfwscanf.texi: Likewise.
29607         * doc/posix-functions/vswscanf.texi: Likewise.
29608         * doc/posix-functions/vwprintf.texi: Likewise.
29609         * doc/posix-functions/vwscanf.texi: Likewise.
29610         * doc/posix-functions/wcpcpy.texi: Likewise.
29611         * doc/posix-functions/wcpncpy.texi: Likewise.
29612         * doc/posix-functions/wcscasecmp.texi: Likewise.
29613         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
29614         * doc/posix-functions/wcscoll_l.texi: Likewise.
29615         * doc/posix-functions/wcsdup.texi: Likewise.
29616         * doc/posix-functions/wcsncasecmp.texi: Likewise.
29617         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
29618         * doc/posix-functions/wcsnlen.texi: Likewise.
29619         * doc/posix-functions/wcsnrtombs.texi: Likewise.
29620         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
29621         * doc/posix-functions/wctrans_l.texi: Likewise.
29622         * doc/posix-functions/wctype_l.texi: Likewise.
29623         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
29624         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
29625         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
29626         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
29627         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
29628         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
29629         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
29630         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
29631         * doc/glibc-functions/wcschrnul.texi: Likewise.
29632         * doc/glibc-functions/wcsftime_l.texi: Likewise.
29633         * doc/glibc-functions/wcstod_l.texi: Likewise.
29634         * doc/glibc-functions/wcstof_l.texi: Likewise.
29635         * doc/glibc-functions/wcstol_l.texi: Likewise.
29636         * doc/glibc-functions/wcstold_l.texi: Likewise.
29637         * doc/glibc-functions/wcstoll_l.texi: Likewise.
29638         * doc/glibc-functions/wcstoq.texi: Likewise.
29639         * doc/glibc-functions/wcstoul_l.texi: Likewise.
29640         * doc/glibc-functions/wcstoull_l.texi: Likewise.
29641         * doc/glibc-functions/wcstouq.texi: Likewise.
29642         * doc/glibc-functions/wmempcpy.texi: Likewise.
29643
29644 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
29645             Eric Blake  <ebb9@byu.net>
29646             Paolo Bonzini  <bonzini@gnu.org>
29647             Bruno Haible  <bruno@clisp.org>
29648
29649         Make c-stack work on Haiku.
29650         * lib/c-stack.c (SA_ONSTACK): Define fallback.
29651         (c_stack_action): Use SA_ONSTACK flag.
29652
29653 2008-12-22  Bruno Haible  <bruno@clisp.org>
29654
29655         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
29656
29657 2008-12-22  Bruno Haible  <bruno@clisp.org>
29658
29659         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
29660         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
29661         being overridden.
29662         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
29663         New macros.
29664         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
29665         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
29666         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
29667         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
29668
29669 2008-12-22  Bruno Haible  <bruno@clisp.org>
29670
29671         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
29672         from test code.
29673
29674 2008-12-22  Eric Blake  <ebb9@byu.net>
29675
29676         Avoid gcc warnings on cygwin.
29677         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
29678         Avoid unused variable.
29679         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
29680         Likewise.
29681
29682 2008-12-22  Bruno Haible  <bruno@clisp.org>
29683
29684         Remove HAVE_MBRTOWC conditionals.
29685         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
29686         (mbscasecmp): Assume mbrtowc function.
29687         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
29688         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
29689         * lib/mbschr.c: Include mbuiter.h unconditionally.
29690         (mbschr): Assume mbrtowc function.
29691         * lib/mbscspn.c: Include mbuiter.h unconditionally.
29692         (mbscspn): Assume mbrtowc function.
29693         * lib/mbslen.c: Include mbuiter.h unconditionally.
29694         (mbslen): Assume mbrtowc function.
29695         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
29696         (mbsncasecmp): Assume mbrtowc function.
29697         * lib/mbsnlen.c: Include mbiter.h unconditionally.
29698         (mbsnlen): Assume mbrtowc function.
29699         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
29700         (mbspbrk): Assume mbrtowc function.
29701         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
29702         (mbspcasecmp): Assume mbrtowc function.
29703         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
29704         (mbsrchr): Assume mbrtowc function.
29705         * lib/mbssep.c: Include mbuiter.h unconditionally.
29706         (mbssep): Assume mbrtowc function.
29707         * lib/mbsspn.c: Include mbuiter.h unconditionally.
29708         (mbsspn): Assume mbrtowc function.
29709         * lib/mbsstr.c: Include mbuiter.h unconditionally.
29710         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
29711         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
29712         (mbstok_r): Assume mbrtowc function.
29713         * lib/propername.c: Include mbuiter.h unconditionally.
29714         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
29715         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
29716         (trim2): Assume mbrtowc function.
29717         * lib/mbswidth.c (mbsinit): Remove fallback definition.
29718         (mbsnwidth): Assume mbrtowc function.
29719         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
29720         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
29721         fallback definitions.
29722         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
29723
29724 2008-12-22  Bruno Haible  <bruno@clisp.org>
29725
29726         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
29727
29728 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
29729
29730         * modules/regex: Request emulations for the mb*/wc* functions we need.
29731         * m4/regex.m4: Don't look for those functions here.
29732         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
29733
29734 2008-12-22  Bruno Haible  <bruno@clisp.org>
29735
29736         * modules/fnmatch (Depends-on): Remove duplicated dependency.
29737
29738 2008-12-21  Bruno Haible  <bruno@clisp.org>
29739
29740         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
29741         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
29742         (Include): Remove conditionalization.
29743         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
29744         (Include): Remove conditionalization.
29745         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
29746         (Include): Remove conditionalization.
29747         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
29748         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29749         * NEWS: Mention the change.
29750         Reported by Alan Hourihane <alanh@fairlite.co.uk>
29751         via Sergey Poznyakoff <gray@gnu.org.ua>.
29752
29753 2008-12-21  Bruno Haible  <bruno@clisp.org>
29754
29755         * MODULES.html.sh (Extended multibyte and wide character utilities
29756         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
29757         wcrtomb, wcsrtombs.
29758         (Support for systems lacking POSIX:2008): Add accept, bind, close,
29759         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
29760         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
29761         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
29762
29763 2008-12-21  Bruno Haible  <bruno@clisp.org>
29764
29765         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
29766
29767 2008-12-21  Bruno Haible  <bruno@clisp.org>
29768
29769         * modules/wcsnrtombs-tests: New file.
29770         * tests/test-wcsnrtombs1.sh: New file.
29771         * tests/test-wcsnrtombs2.sh: New file.
29772         * tests/test-wcsnrtombs3.sh: New file.
29773         * tests/test-wcsnrtombs4.sh: New file.
29774         * tests/test-wcsnrtombs.c: New file.
29775
29776         New module 'wcsnrtombs'.
29777         * lib/wchar.in.h (wcsnrtombs): New declaration.
29778         * lib/wcsnrtombs.c: New file.
29779         * lib/wcsrtombs-state.c: New file.
29780         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
29781         (internal_state): Remove variable.
29782         * m4/wcsnrtombs.m4: New file.
29783         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
29784         compilation units.
29785         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
29786         HAVE_WCSNRTOMBS.
29787         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
29788         HAVE_WCSNRTOMBS.
29789         * modules/wcsnrtombs: New file.
29790         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
29791         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
29792
29793 2008-12-21  Bruno Haible  <bruno@clisp.org>
29794
29795         * modules/wcsrtombs-tests: New file.
29796         * tests/test-wcsrtombs1.sh: New file.
29797         * tests/test-wcsrtombs2.sh: New file.
29798         * tests/test-wcsrtombs3.sh: New file.
29799         * tests/test-wcsrtombs4.sh: New file.
29800         * tests/test-wcsrtombs.c: New file.
29801
29802         New module 'wcsrtombs'.
29803         * lib/wchar.in.h (wcsrtombs): New declaration.
29804         * lib/wcsrtombs.c: New file.
29805         * m4/wcsrtombs.m4: New file.
29806         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
29807         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
29808         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
29809         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
29810         * modules/wcsrtombs: New file.
29811         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
29812         bugs.
29813
29814 2008-12-21  Bruno Haible  <bruno@clisp.org>
29815
29816         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
29817         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
29818         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
29819         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
29820         if not correct.
29821         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
29822         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
29823         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
29824         m4/locale-zh.m4, m4/codeset.m4.
29825         * doc/posix-functions/wcrtomb.texi: Document the bug.
29826
29827 2008-12-21  Bruno Haible  <bruno@clisp.org>
29828
29829         Work around a btowc() bug on IRIX 6.5.
29830         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
29831         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
29832         REPLACE_WTOBC if not.
29833         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
29834         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
29835         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
29836
29837 2008-12-21  Bruno Haible  <bruno@clisp.org>
29838
29839         * modules/wcrtomb-tests: New file.
29840         * tests/test-wcrtomb.sh: New file.
29841         * tests/test-wcrtomb.c: New file.
29842
29843         New module 'wcrtomb'.
29844         * lib/wchar.in.h (wcrtomb): New declaration.
29845         * lib/wcrtomb.c: New file.
29846         * m4/wcrtomb.m4: New file.
29847         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
29848         HAVE_WCRTOMB.
29849         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
29850         HAVE_WCRTOMB.
29851         * modules/wcrtomb: New file.
29852         * doc/posix-functions/wcrtomb.texi: Mention the new module.
29853
29854 2008-12-21  Bruno Haible  <bruno@clisp.org>
29855
29856         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
29857         * modules/mbsrtowcs (Files): Likewise.
29858         * modules/wctob (Files): Likewise.
29859         * modules/c-strcase-tests (Files): Likewise.
29860         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
29861         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
29862         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
29863         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
29864         * modules/vasnprintf-posix-tests (Files): Likewise.
29865
29866 2008-12-21  William Pursell  <bill.pursell@gmail.com>
29867
29868         gitlog-to-changelog: pass all command-line arguments to git-log
29869         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
29870         it is sometimes convenient to filter the commits in various ways.
29871         gitlog-to-changelog only allows --since to specify a start date,
29872         but git-log itself supports many other filtering mechanisms.
29873         At the moment, I want to filter by branch name.  Rather than
29874         adding a --branch option to gitlog-to-changelog, it seems more
29875         flexible to simply pass all options directly to git-log and let
29876         git do the work.  Notice that this effectively makes --since a
29877         redundant option for gitlog-to-changelog, but removing it would
29878         require current usage to change since calls would then require
29879         an additional '--'.
29880
29881 2008-12-21  Bruno Haible  <bruno@clisp.org>
29882
29883         * modules/mbsnrtowcs-tests: New file.
29884         * tests/test-mbsnrtowcs1.sh: New file.
29885         * tests/test-mbsnrtowcs2.sh: New file.
29886         * tests/test-mbsnrtowcs3.sh: New file.
29887         * tests/test-mbsnrtowcs4.sh: New file.
29888         * tests/test-mbsnrtowcs.c: New file.
29889
29890         New module 'mbsnrtowcs'.
29891         * lib/wchar.in.h (mbsnrtowcs): New declaration.
29892         * lib/mbsnrtowcs.c: New file.
29893         * lib/mbsrtowcs-state.c: New file.
29894         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
29895         (internal_state): Remove variable.
29896         * m4/mbsnrtowcs.m4: New file.
29897         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
29898         compilation units.
29899         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
29900         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
29901         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
29902         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
29903         * modules/mbsnrtowcs: New file.
29904         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
29905         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
29906         portability problem.
29907
29908 2008-12-21  Bruno Haible  <bruno@clisp.org>
29909
29910         Work around mbsrtowcs bug.
29911         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
29912         (gl_FUNC_MBSRTOWCS): Invoke it.
29913         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
29914         m4/locale-zh.m4.
29915         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
29916
29917 2008-12-21  Bruno Haible  <bruno@clisp.org>
29918
29919         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
29920
29921 2008-12-21  Bruno Haible  <bruno@clisp.org>
29922
29923         Update doc for AIX.
29924         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
29925         16-bit wchar_t type.
29926         * doc/posix-functions/btowc.texi: Likewise.
29927         * doc/posix-functions/fgetwc.texi: Likewise.
29928         * doc/posix-functions/fgetws.texi: Likewise.
29929         * doc/posix-functions/fputwc.texi: Likewise.
29930         * doc/posix-functions/fputws.texi: Likewise.
29931         * doc/posix-functions/fwide.texi: Likewise.
29932         * doc/posix-functions/fwprintf.texi: Likewise.
29933         * doc/posix-functions/fwscanf.texi: Likewise.
29934         * doc/posix-functions/getwchar.texi: Likewise.
29935         * doc/posix-functions/getwc.texi: Likewise.
29936         * doc/posix-functions/iswalnum.texi: Likewise.
29937         * doc/posix-functions/iswalpha.texi: Likewise.
29938         * doc/posix-functions/iswblank.texi: Likewise.
29939         * doc/posix-functions/iswcntrl.texi: Likewise.
29940         * doc/posix-functions/iswctype.texi: Likewise.
29941         * doc/posix-functions/iswdigit.texi: Likewise.
29942         * doc/posix-functions/iswgraph.texi: Likewise.
29943         * doc/posix-functions/iswlower.texi: Likewise.
29944         * doc/posix-functions/iswprint.texi: Likewise.
29945         * doc/posix-functions/iswpunct.texi: Likewise.
29946         * doc/posix-functions/iswspace.texi: Likewise.
29947         * doc/posix-functions/iswupper.texi: Likewise.
29948         * doc/posix-functions/iswxdigit.texi: Likewise.
29949         * doc/posix-functions/mbrtowc.texi: Likewise.
29950         * doc/posix-functions/mbsrtowcs.texi: Likewise.
29951         * doc/posix-functions/mbstowcs.texi: Likewise.
29952         * doc/posix-functions/mbtowc.texi: Likewise.
29953         * doc/posix-functions/putwchar.texi: Likewise.
29954         * doc/posix-functions/putwc.texi: Likewise.
29955         * doc/posix-functions/swprintf.texi: Likewise.
29956         * doc/posix-functions/tolower.texi: Likewise.
29957         * doc/posix-functions/toupper.texi: Likewise.
29958         * doc/posix-functions/towctrans.texi: Likewise.
29959         * doc/posix-functions/ungetwc.texi: Likewise.
29960         * doc/posix-functions/vswprintf.texi: Likewise.
29961         * doc/posix-functions/wcrtomb.texi: Likewise.
29962         * doc/posix-functions/wcscat.texi: Likewise.
29963         * doc/posix-functions/wcschr.texi: Likewise.
29964         * doc/posix-functions/wcscmp.texi: Likewise.
29965         * doc/posix-functions/wcscoll.texi: Likewise.
29966         * doc/posix-functions/wcscpy.texi: Likewise.
29967         * doc/posix-functions/wcscspn.texi: Likewise.
29968         * doc/posix-functions/wcsftime.texi: Likewise.
29969         * doc/posix-functions/wcslen.texi: Likewise.
29970         * doc/posix-functions/wcsncat.texi: Likewise.
29971         * doc/posix-functions/wcsncmp.texi: Likewise.
29972         * doc/posix-functions/wcsncpy.texi: Likewise.
29973         * doc/posix-functions/wcspbrk.texi: Likewise.
29974         * doc/posix-functions/wcsrchr.texi: Likewise.
29975         * doc/posix-functions/wcsrtombs.texi: Likewise.
29976         * doc/posix-functions/wcsspn.texi: Likewise.
29977         * doc/posix-functions/wcsstr.texi: Likewise.
29978         * doc/posix-functions/wcstod.texi: Likewise.
29979         * doc/posix-functions/wcstof.texi: Likewise.
29980         * doc/posix-functions/wcstoimax.texi: Likewise.
29981         * doc/posix-functions/wcstok.texi: Likewise.
29982         * doc/posix-functions/wcstold.texi: Likewise.
29983         * doc/posix-functions/wcstoll.texi: Likewise.
29984         * doc/posix-functions/wcstol.texi: Likewise.
29985         * doc/posix-functions/wcstombs.texi: Likewise.
29986         * doc/posix-functions/wcstoull.texi: Likewise.
29987         * doc/posix-functions/wcstoul.texi: Likewise.
29988         * doc/posix-functions/wcstoumax.texi: Likewise.
29989         * doc/posix-functions/wcswidth.texi: Likewise.
29990         * doc/posix-functions/wcsxfrm.texi: Likewise.
29991         * doc/posix-functions/wctob.texi: Likewise.
29992         * doc/posix-functions/wctomb.texi: Likewise.
29993         * doc/posix-functions/wctrans.texi: Likewise.
29994         * doc/posix-functions/wctype.texi: Likewise.
29995         * doc/posix-functions/wcwidth.texi: Likewise.
29996         * doc/posix-functions/wmemchr.texi: Likewise.
29997         * doc/posix-functions/wmemcmp.texi: Likewise.
29998         * doc/posix-functions/wmemcpy.texi: Likewise.
29999         * doc/posix-functions/wmemmove.texi: Likewise.
30000         * doc/posix-functions/wmemset.texi: Likewise.
30001         * doc/posix-functions/wprintf.texi: Likewise.
30002         * doc/posix-functions/wscanf.texi: Likewise.
30003
30004 2008-12-21  Bruno Haible  <bruno@clisp.org>
30005
30006         Update doc for HP-UX 11.11.
30007         * doc/posix-functions/btowc.texi: Clarify that the function is missing
30008         in HP-UX version 11.00, not in all versions of HP-UX 11.
30009         * doc/posix-functions/fwide.texi: Likewise.
30010         * doc/posix-functions/fwprintf.texi: Likewise.
30011         * doc/posix-functions/fwscanf.texi: Likewise.
30012         * doc/posix-functions/inet_ntop.texi: Likewise.
30013         * doc/posix-functions/inet_pton.texi: Likewise.
30014         * doc/posix-functions/mbrlen.texi: Likewise.
30015         * doc/posix-functions/mbrtowc.texi: Likewise.
30016         * doc/posix-functions/mbsinit.texi: Likewise.
30017         * doc/posix-functions/mbsrtowcs.texi: Likewise.
30018         * doc/posix-functions/swprintf.texi: Likewise.
30019         * doc/posix-functions/swscanf.texi: Likewise.
30020         * doc/posix-functions/towctrans.texi: Likewise.
30021         * doc/posix-functions/vfwprintf.texi: Likewise.
30022         * doc/posix-functions/vswprintf.texi: Likewise.
30023         * doc/posix-functions/vwprintf.texi: Likewise.
30024         * doc/posix-functions/wcrtomb.texi: Likewise.
30025         * doc/posix-functions/wcsrtombs.texi: Likewise.
30026         * doc/posix-functions/wcsstr.texi: Likewise.
30027         * doc/posix-functions/wctob.texi: Likewise.
30028         * doc/posix-functions/wctrans.texi: Likewise.
30029         * doc/posix-functions/wmemchr.texi: Likewise.
30030         * doc/posix-functions/wmemcmp.texi: Likewise.
30031         * doc/posix-functions/wmemcpy.texi: Likewise.
30032         * doc/posix-functions/wmemmove.texi: Likewise.
30033         * doc/posix-functions/wmemset.texi: Likewise.
30034         * doc/posix-functions/wprintf.texi: Likewise.
30035         * doc/posix-functions/wscanf.texi: Likewise.
30036
30037 2008-12-21  Bruno Haible  <bruno@clisp.org>
30038
30039         Work around a portability problem.
30040         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
30041         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
30042
30043 2008-12-20  Bruno Haible  <bruno@clisp.org>
30044
30045         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
30046         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
30047         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
30048         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
30049         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
30050
30051         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
30052         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
30053         set.
30054         (GNULIB_defined_mbstate_t): New macro.
30055         (mbsinit): Redefine if REPLACE_MBSINIT is set.
30056         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
30057         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
30058         reuses the system's mbrtowc function but works around the bugs.
30059         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
30060         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
30061         macros.
30062         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
30063         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
30064         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
30065         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
30066         REPLACE_MBSINIT if mbsinit needs to be overridden.
30067         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
30068         REPLACE_MBSINIT, REPLACE_MBRTOWC.
30069         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
30070         REPLACE_MBSINIT, REPLACE_MBRTOWC.
30071         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
30072         m4/locale-zh.m4.
30073         (Depends): Add mbsinit.
30074         * modules/mbsinit (Depends): Add mbrtowc.
30075         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
30076
30077 2008-12-20  Bruno Haible  <bruno@clisp.org>
30078
30079         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
30080         so that there are no conversion errors on AIX.
30081         * tests/test-mbsrtowcs.c (main): LIkewise.
30082
30083 2008-12-20  Bruno Haible  <bruno@clisp.org>
30084
30085         Work around wctob bug on Solaris <= 9.
30086         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
30087         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
30088         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
30089         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
30090         * modules/wctob (Files): Add m4/locale-fr.m4.
30091         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
30092
30093 2008-12-20  Bruno Haible  <bruno@clisp.org>
30094
30095         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
30096         /dev/null.
30097         * tests/test-select-in.sh: Likewise.
30098         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30099
30100 2008-12-20  Bruno Haible  <bruno@clisp.org>
30101
30102         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
30103         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
30104         Cygwin 1.5.x.
30105
30106 2008-12-20  Bruno Haible  <bruno@clisp.org>
30107
30108         Ensure mbstate_t is defined on HP-UX 11.11.
30109         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
30110         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
30111         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
30112         AC_USE_SYSTEM_EXTENSIONS.
30113         * modules/fnmatch (Depends-on): Add extensions.
30114         * modules/mbrlen (Depends-on): Likewise.
30115         * modules/mbrtowc (Depends-on): Likewise.
30116         * modules/mbsinit (Depends-on): Likewise.
30117         * modules/mbsrtowcs (Depends-on): Likewise.
30118         * modules/mbswidth (Depends-on): Likewise.
30119         * modules/quotearg (Depends-on): Likewise.
30120         * modules/strftime (Depends-on): Likewise.
30121
30122 2008-12-20  Bruno Haible  <bruno@clisp.org>
30123
30124         Ensure wctob is declared on IRIX 6.5.
30125         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
30126         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
30127         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
30128         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
30129         of HAVE_WCTOB.
30130         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
30131         HAVE_WCTOB.
30132         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
30133
30134 2008-12-19  Bruno Haible  <bruno@clisp.org>
30135
30136         * modules/mbsrtowcs-tests: New file.
30137         * tests/test-mbsrtowcs1.sh: New file.
30138         * tests/test-mbsrtowcs2.sh: New file.
30139         * tests/test-mbsrtowcs3.sh: New file.
30140         * tests/test-mbsrtowcs4.sh: New file.
30141         * tests/test-mbsrtowcs.c: New file.
30142
30143         New module 'mbsrtowcs'.
30144         * lib/wchar.in.h (mbsrtowcs): New declaration.
30145         * lib/mbsrtowcs.c: New file.
30146         * m4/mbsrtowcs.m4: New file.
30147         * modules/mbsrtowcs: New file.
30148         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
30149         HAVE_MBSRTOWCS.
30150         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
30151         HAVE_MBSRTOWCS.
30152         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
30153
30154 2008-12-19  Bruno Haible  <bruno@clisp.org>
30155
30156         New module 'mbrlen'.
30157         * lib/wchar.in.h (mbrlen): New declaration.
30158         * lib/mbrlen.c: New file.
30159         * m4/mbrlen.m4: New file.
30160         * modules/mbrlen: New file.
30161         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
30162         HAVE_MBRLEN.
30163         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
30164         HAVE_MBRLEN.
30165         * doc/posix-functions/mbrlen.texi: Document the new module.
30166
30167 2008-12-19  Bruno Haible  <bruno@clisp.org>
30168
30169         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
30170         * modules/mbrtowc (Depends-on): Add verify.
30171         Suggested by Paul Eggert.
30172
30173 2008-12-18  Bruno Haible  <bruno@clisp.org>
30174
30175         * modules/mbsinit-tests: New file.
30176         * tests/test-mbsinit.sh: New file.
30177         * tests/test-mbsinit.c: New file.
30178
30179 2008-12-18  Bruno Haible  <bruno@clisp.org>
30180
30181         * modules/mbrtowc-tests: New file.
30182         * tests/test-mbrtowc1.sh: New file.
30183         * tests/test-mbrtowc2.sh: New file.
30184         * tests/test-mbrtowc3.sh: New file.
30185         * tests/test-mbrtowc4.sh: New file.
30186         * tests/test-mbrtowc.c: New file.
30187
30188         New module 'mbrtowc'.
30189         * lib/wchar.in.h (mbstate_t): Override when the system does not have
30190         mbsinit and mbrtowc.
30191         (mbrtowc): New declaration.
30192         * lib/mbrtowc.c: New file.
30193         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
30194         * modules/mbrtowc: New file.
30195         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
30196         HAVE_MBRTOWC.
30197         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
30198         HAVE_MBRTOWC.
30199         * doc/posix-functions/mbrtowc.texi: Document the new module.
30200
30201 2008-12-18  Bruno Haible  <bruno@clisp.org>
30202
30203         New module 'wctob'.
30204         * lib/wchar.in.h (wctob): New declaration.
30205         * lib/wctob.c: New file.
30206         * m4/wctob.m4: New file.
30207         * modules/wctob: New file.
30208         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
30209         HAVE_WCTOB.
30210         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
30211         * doc/posix-functions/wctob.texi: Document the new module.
30212
30213 2008-12-18  Bruno Haible  <bruno@clisp.org>
30214
30215         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
30216         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
30217
30218 2008-12-18  Simon Josefsson  <simon@josefsson.org>
30219
30220         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
30221         G. Christensen" <tgc@jupiterrise.com>.
30222
30223         * lib/flock.c: Need to include errno.h.  Reported by "Tom
30224         G. Christensen" <tgc@jupiterrise.com>.
30225
30226         * lib/flock.c: Need to include string.h.  Reported by "Tom
30227         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
30228         <ebb9@byu.net>.
30229
30230 2008-12-18  Bruno Haible  <bruno@clisp.org>
30231
30232         * m4/locale-ja.m4: New file, from GNU gettext.
30233
30234 2008-12-17  Bruno Haible  <bruno@clisp.org>
30235
30236         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
30237         Suggested by Eric Blake.
30238
30239 2008-12-17  Bruno Haible  <bruno@clisp.org>
30240
30241         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
30242
30243 2008-12-17  Bruno Haible  <bruno@clisp.org>
30244
30245         * lib/mbsinit.c: Include verify.h. Verify an assumption.
30246         * modules/mbsinit (Depends-on): Add verify.
30247         Suggested by Paul Eggert.
30248
30249 2008-12-17  Bruno Haible  <bruno@clisp.org>
30250
30251         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
30252         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
30253         gl_FUNC_MBRTOWC.
30254         * m4/mbiter.m4 (gl_MBITER): LIkewise.
30255         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
30256         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
30257         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
30258         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
30259         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
30260         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
30261         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
30262         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
30263         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
30264         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
30265         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
30266         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
30267         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
30268         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
30269         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30270         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
30271         * modules/trim (configure.ac): Likewise.
30272
30273 2008-12-17  Bruno Haible  <bruno@clisp.org>
30274
30275         * modules/btowc-tests: New file.
30276         * tests/test-btowc1.sh: New file.
30277         * tests/test-btowc2.sh: New file.
30278         * tests/test-btowc.c: New file.
30279
30280         New module 'btowc'.
30281         * lib/wchar.in.h (btowc): New declaration.
30282         * lib/btowc.c: New file.
30283         * m4/btowc.m4: New file.
30284         * modules/btowc: New file.
30285         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
30286         HAVE_BTOWC.
30287         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
30288         * doc/posix-functions/btowc.texi: Document the new module.
30289
30290 2008-12-17  Bruno Haible  <bruno@clisp.org>
30291
30292         New module 'mbsinit'.
30293         * lib/wchar.in.h (mbsinit): New declaration.
30294         * lib/mbsinit.c: New file.
30295         * m4/mbsinit.m4: New file.
30296         * modules/mbsinit: New file.
30297         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
30298         HAVE_MBSINIT.
30299         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
30300         HAVE_MBSINIT.
30301         * doc/posix-functions/mbsinit.texi: Document the new module.
30302
30303 2008-12-16  Bruno Haible  <bruno@clisp.org>
30304
30305         * lib/unistd.in.h: Add comment.
30306         * tests/test-environ.c: Don't include <stdlib.h>.
30307
30308 2008-12-16  Bruno Haible  <bruno@clisp.org>
30309
30310         * lib/parse-duration.h (parse_duration): Document return value
30311         convention.
30312         * lib/parse-duration.c: Include specification header first. Add
30313         comments.
30314         (_): Remove macro.
30315         (parse_year_month_day, parse_hour_minute_second): Move side effects
30316         outside of strchr call.
30317         (parse_non_iso8601): Move side effects outside of isspace call.
30318         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
30319         call.
30320
30321 2008-12-16  Bruno Haible  <bruno@clisp.org>
30322
30323         * tests/test-parse-duration.sh: Produce no output when the test
30324         succeeds.
30325
30326 2008-12-16  Bruno Haible  <bruno@clisp.org>
30327
30328         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
30329         expressions.
30330
30331 2008-12-15  Bruno Haible  <bruno@clisp.org>
30332
30333         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
30334         * doc/glibc-functions/flistxattr.texi: Likewise.
30335         * doc/glibc-functions/fopencookie.texi: Likewise.
30336         * doc/glibc-functions/fremovexattr.texi: Likewise.
30337         * doc/glibc-functions/fsetxattr.texi: Likewise.
30338         * doc/glibc-functions/getxattr.texi: Likewise.
30339         * doc/glibc-functions/lgetxattr.texi: Likewise.
30340         * doc/glibc-functions/listxattr.texi: Likewise.
30341         * doc/glibc-functions/llistxattr.texi: Likewise.
30342         * doc/glibc-functions/lremovexattr.texi: Likewise.
30343         * doc/glibc-functions/lsetxattr.texi: Likewise.
30344         * doc/glibc-functions/removexattr.texi: Likewise.
30345         * doc/glibc-functions/setxattr.texi: Likewise.
30346         * doc/posix-functions/open_memstream.texi: Likewise.
30347
30348 2008-12-15  Eric Blake  <ebb9@byu.net>
30349
30350         Update doc for cygwin 1.7.
30351         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
30352         functions.
30353         * doc/posix-functions/fchmodat.texi: Likewise.
30354         * doc/posix-functions/fchownat.texi: Likewise.
30355         * doc/posix-functions/fdopendir.texi: Likewise.
30356         * doc/posix-functions/fmemopen.texi: Likewise.
30357         * doc/posix-functions/freeaddrinfo.texi: Likewise.
30358         * doc/posix-functions/fstatat.texi: Likewise.
30359         * doc/posix-functions/futimens.texi: Likewise.
30360         * doc/posix-functions/gai_strerror.texi: Likewise.
30361         * doc/posix-functions/getaddrinfo.texi: Likewise.
30362         * doc/posix-functions/getnameinfo.texi: Likewise.
30363         * doc/posix-functions/if_freenameindex.texi: Likewise.
30364         * doc/posix-functions/if_indextoname.texi: Likewise.
30365         * doc/posix-functions/if_nameindex.texi: Likewise.
30366         * doc/posix-functions/if_nametoindex.texi: Likewise.
30367         * doc/posix-functions/insque.texi: Likewise.
30368         * doc/posix-functions/linkat.texi: Likewise.
30369         * doc/posix-functions/llrint.texi: Likewise.
30370         * doc/posix-functions/llrintf.texi: Likewise.
30371         * doc/posix-functions/llrintl.texi: Likewise.
30372         * doc/posix-functions/lockf.texi: Likewise.
30373         * doc/posix-functions/lrintl.texi: Likewise.
30374         * doc/posix-functions/mkdirat.texi: Likewise.
30375         * doc/posix-functions/mkfifoat.texi: Likewise.
30376         * doc/posix-functions/mknodat.texi: Likewise.
30377         * doc/posix-functions/mq_close.texi: Likewise.
30378         * doc/posix-functions/mq_getattr.texi: Likewise.
30379         * doc/posix-functions/mq_notify.texi: Likewise.
30380         * doc/posix-functions/mq_open.texi: Likewise.
30381         * doc/posix-functions/mq_receive.texi: Likewise.
30382         * doc/posix-functions/mq_send.texi: Likewise.
30383         * doc/posix-functions/mq_setattr.texi: Likewise.
30384         * doc/posix-functions/mq_timedreceive.texi: Likewise.
30385         * doc/posix-functions/mq_timedsend.texi: Likewise.
30386         * doc/posix-functions/mq_unlink.texi: Likewise.
30387         * doc/posix-functions/open_memstream.texi: Likewise.
30388         * doc/posix-functions/openat.texi: Likewise.
30389         * doc/posix-functions/posix_fadvise.texi: Likewise.
30390         * doc/posix-functions/posix_fallocate.texi: Likewise.
30391         * doc/posix-functions/posix_madvise.texi: Likewise.
30392         * doc/posix-functions/posix_memalign.texi: Likewise.
30393         * doc/posix-functions/posix_openpt.texi: Likewise.
30394         * doc/posix-functions/readlinkat.texi: Likewise.
30395         * doc/posix-functions/remque.texi: Likewise.
30396         * doc/posix-functions/renameat.texi: Likewise.
30397         * doc/posix-functions/rintl.texi: Likewise.
30398         * doc/posix-functions/sem_unlink.texi: Likewise.
30399         * doc/posix-functions/shm_open.texi: Likewise.
30400         * doc/posix-functions/shm_unlink.texi: Likewise.
30401         * doc/posix-functions/signgam.texi: Likewise.
30402         * doc/posix-functions/sigset.texi: Likewise.
30403         * doc/posix-functions/stpcpy.texi: Likewise.
30404         * doc/posix-functions/stpncpy.texi: Likewise.
30405         * doc/posix-functions/strerror.texi: Likewise.
30406         * doc/posix-functions/strtod.texi: Likewise.
30407         * doc/posix-functions/symlinkat.texi: Likewise.
30408         * doc/posix-functions/unlinkat.texi: Likewise.
30409         * doc/posix-functions/utimensat.texi: Likewise.
30410         * doc/glibc-functions/bindresvport.texi: Likewise.
30411         * doc/glibc-functions/dn_expand.texi: Likewise.
30412         * doc/glibc-functions/exp10.texi: Likewise.
30413         * doc/glibc-functions/exp10f.texi: Likewise.
30414         * doc/glibc-functions/fgetxattr.texi: Likewise.
30415         * doc/glibc-functions/flistxattr.texi: Likewise.
30416         * doc/glibc-functions/fopencookie.texi: Likewise.
30417         * doc/glibc-functions/freeifaddrs.texi: Likewise.
30418         * doc/glibc-functions/fremovexattr.texi: Likewise.
30419         * doc/glibc-functions/fsetxattr.texi: Likewise.
30420         * doc/glibc-functions/getifaddrs.texi: Likewise.
30421         * doc/glibc-functions/getxattr.texi: Likewise.
30422         * doc/glibc-functions/lgetxattr.texi: Likewise.
30423         * doc/glibc-functions/listxattr.texi: Likewise.
30424         * doc/glibc-functions/llistxattr.texi: Likewise.
30425         * doc/glibc-functions/lremovexattr.texi: Likewise.
30426         * doc/glibc-functions/lsetxattr.texi: Likewise.
30427         * doc/glibc-functions/pow10.texi: Likewise.
30428         * doc/glibc-functions/pow10f.texi: Likewise.
30429         * doc/glibc-functions/rcmd_af.texi: Likewise.
30430         * doc/glibc-functions/removexattr.texi: Likewise.
30431         * doc/glibc-functions/res_init.texi: Likewise.
30432         * doc/glibc-functions/res_mkquery.texi: Likewise.
30433         * doc/glibc-functions/res_query.texi: Likewise.
30434         * doc/glibc-functions/res_querydomain.texi: Likewise.
30435         * doc/glibc-functions/res_send.texi: Likewise.
30436         * doc/glibc-functions/rresvport_af.texi: Likewise.
30437         * doc/glibc-functions/setxattr.texi: Likewise.
30438         * doc/glibc-functions/strcasestr.texi: Likewise.
30439
30440 2008-12-15  Bruno Haible  <bruno@clisp.org>
30441
30442         Fix compilation error on OSF/1 4.0.
30443         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
30444         <sys/time.h>, simply delegate to the system header.
30445         Reported by Daniel Richard G. <oss@teragram.com>.
30446
30447 2008-12-15  Bruno Haible  <bruno@clisp.org>
30448
30449         * doc/posix-functions/openat.texi: Mention the 'openat' module.
30450         * doc/posix-functions/fchmodat.texi: Likewise.
30451         * doc/posix-functions/fchownat.texi: Likewise.
30452         * doc/posix-functions/fdopendir.texi: Likewise.
30453         * doc/posix-functions/fstatat.texi: Likewise.
30454         * doc/posix-functions/mkdirat.texi: Likewise.
30455         * doc/posix-functions/unlinkat.texi: Likewise.
30456
30457 2008-12-14  Bruno Haible  <bruno@clisp.org>
30458
30459         Update doc for POSIX:2008.
30460         * doc/posix-functions/faccessat.texi: New file.
30461         * doc/posix-functions/fchmodat.texi: New file.
30462         * doc/posix-functions/fchownat.texi: New file.
30463         * doc/posix-functions/fdopendir.texi: New file.
30464         * doc/posix-functions/fstatat.texi: New file.
30465         * doc/posix-functions/futimens.texi: New file.
30466         * doc/posix-functions/linkat.texi: New file.
30467         * doc/posix-functions/mkdirat.texi: New file.
30468         * doc/posix-functions/mkfifoat.texi: New file.
30469         * doc/posix-functions/mknodat.texi: New file.
30470         * doc/posix-functions/open_wmemstream.texi: New file.
30471         * doc/posix-functions/openat.texi: New file.
30472         * doc/posix-functions/psiginfo.texi: New file.
30473         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
30474         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
30475         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
30476         * doc/posix-functions/readlinkat.texi: New file.
30477         * doc/posix-functions/renameat.texi: New file.
30478         * doc/posix-functions/strerror_l.texi: New file.
30479         * doc/posix-functions/symlinkat.texi: New file.
30480         * doc/posix-functions/unlinkat.texi: New file.
30481         * doc/posix-functions/utimensat.texi: New file.
30482         * doc/gnulib.texi (Function Substitutes): Add these subsections.
30483
30484 2008-12-14  Bruno Haible  <bruno@clisp.org>
30485
30486         Update doc for POSIX:2008.
30487         * doc/posix-functions/alphasort.texi: Renamed from
30488         doc/glibc-functions/alphasort.texi.
30489         * doc/posix-functions/dirfd.texi: Renamed from
30490         doc/glibc-functions/dirfd.texi.
30491         * doc/posix-functions/dprintf.texi: Renamed from
30492         doc/glibc-functions/dprintf.texi.
30493         * doc/posix-functions/duplocale.texi: Renamed from
30494         doc/glibc-functions/duplocale.texi.
30495         * doc/posix-functions/fexecve.texi: Renamed from
30496         doc/glibc-functions/fexecve.texi.
30497         * doc/posix-functions/fmemopen.texi: Renamed from
30498         doc/glibc-functions/fmemopen.texi.
30499         * doc/posix-functions/freelocale.texi: Renamed from
30500         doc/glibc-functions/freelocale.texi.
30501         * doc/posix-functions/getdate_err.texi: Renamed from
30502         doc/glibc-functions/getdate_err.texi.
30503         * doc/posix-functions/isalnum_l.texi: Renamed from
30504         doc/glibc-functions/isalnum_l.texi.
30505         * doc/posix-functions/isalpha_l.texi: Renamed from
30506         doc/glibc-functions/isalpha_l.texi.
30507         * doc/posix-functions/isblank_l.texi: Renamed from
30508         doc/glibc-functions/isblank_l.texi.
30509         * doc/posix-functions/iscntrl_l.texi: Renamed from
30510         doc/glibc-functions/iscntrl_l.texi.
30511         * doc/posix-functions/isdigit_l.texi: Renamed from
30512         doc/glibc-functions/isdigit_l.texi.
30513         * doc/posix-functions/isgraph_l.texi: Renamed from
30514         doc/glibc-functions/isgraph_l.texi.
30515         * doc/posix-functions/islower_l.texi: Renamed from
30516         doc/glibc-functions/islower_l.texi.
30517         * doc/posix-functions/isprint_l.texi: Renamed from
30518         doc/glibc-functions/isprint_l.texi.
30519         * doc/posix-functions/ispunct_l.texi: Renamed from
30520         doc/glibc-functions/ispunct_l.texi.
30521         * doc/posix-functions/isspace_l.texi: Renamed from
30522         doc/glibc-functions/isspace_l.texi.
30523         * doc/posix-functions/isupper_l.texi: Renamed from
30524         doc/glibc-functions/isupper_l.texi.
30525         * doc/posix-functions/iswalnum_l.texi: Renamed from
30526         doc/glibc-functions/iswalnum_l.texi.
30527         * doc/posix-functions/iswalpha_l.texi: Renamed from
30528         doc/glibc-functions/iswalpha_l.texi.
30529         * doc/posix-functions/iswblank_l.texi: Renamed from
30530         doc/glibc-functions/iswblank_l.texi.
30531         * doc/posix-functions/iswcntrl_l.texi: Renamed from
30532         doc/glibc-functions/iswcntrl_l.texi.
30533         * doc/posix-functions/iswctype_l.texi: Renamed from
30534         doc/glibc-functions/iswctype_l.texi.
30535         * doc/posix-functions/iswdigit_l.texi: Renamed from
30536         doc/glibc-functions/iswdigit_l.texi.
30537         * doc/posix-functions/iswgraph_l.texi: Renamed from
30538         doc/glibc-functions/iswgraph_l.texi.
30539         * doc/posix-functions/iswlower_l.texi: Renamed from
30540         doc/glibc-functions/iswlower_l.texi.
30541         * doc/posix-functions/iswprint_l.texi: Renamed from
30542         doc/glibc-functions/iswprint_l.texi.
30543         * doc/posix-functions/iswpunct_l.texi: Renamed from
30544         doc/glibc-functions/iswpunct_l.texi.
30545         * doc/posix-functions/iswspace_l.texi: Renamed from
30546         doc/glibc-functions/iswspace_l.texi.
30547         * doc/posix-functions/iswupper_l.texi: Renamed from
30548         doc/glibc-functions/iswupper_l.texi.
30549         * doc/posix-functions/iswxdigit_l.texi: Renamed from
30550         doc/glibc-functions/iswxdigit_l.texi.
30551         * doc/posix-functions/isxdigit_l.texi: Renamed from
30552         doc/glibc-functions/isxdigit_l.texi.
30553         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
30554         doc/glibc-functions/mbsnrtowcs.texi.
30555         * doc/posix-functions/mkdtemp.texi: Renamed from
30556         doc/glibc-functions/mkdtemp.texi.
30557         * doc/posix-functions/newlocale.texi: Renamed from
30558         doc/glibc-functions/newlocale.texi.
30559         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
30560         doc/glibc-functions/nl_langinfo_l.texi.
30561         * doc/posix-functions/open_memstream.texi: Renamed from
30562         doc/glibc-functions/open_memstream.texi.
30563         * doc/posix-functions/opterr.texi: Renamed from
30564         doc/glibc-functions/opterr.texi.
30565         * doc/posix-functions/optind.texi: Renamed from
30566         doc/glibc-functions/optind.texi.
30567         * doc/posix-functions/optopt.texi: Renamed from
30568         doc/glibc-functions/optopt.texi.
30569         * doc/posix-functions/psignal.texi: Renamed from
30570         doc/glibc-functions/psignal.texi.
30571         * doc/posix-functions/scandir.texi: Renamed from
30572         doc/glibc-functions/scandir.texi.
30573         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
30574         doc/glibc-functions/sched_get_priority_min.texi.
30575         * doc/posix-functions/signgam.texi: Renamed from
30576         doc/glibc-functions/signgam.texi.
30577         * doc/posix-functions/stpcpy.texi: Renamed from
30578         doc/glibc-functions/stpcpy.texi.
30579         * doc/posix-functions/stpncpy.texi: Renamed from
30580         doc/glibc-functions/stpncpy.texi.
30581         * doc/posix-functions/strcasecmp_l.texi: Renamed from
30582         doc/glibc-functions/strcasecmp_l.texi.
30583         * doc/posix-functions/strcoll_l.texi: Renamed from
30584         doc/glibc-functions/strcoll_l.texi.
30585         * doc/posix-functions/strfmon_l.texi: Renamed from
30586         doc/glibc-functions/strfmon_l.texi.
30587         * doc/posix-functions/strftime_l.texi: Renamed from
30588         doc/glibc-functions/strftime_l.texi.
30589         * doc/posix-functions/strncasecmp_l.texi: Renamed from
30590         doc/glibc-functions/strncasecmp_l.texi.
30591         * doc/posix-functions/strndup.texi: Renamed from
30592         doc/glibc-functions/strndup.texi.
30593         * doc/posix-functions/strnlen.texi: Renamed from
30594         doc/glibc-functions/strnlen.texi.
30595         * doc/posix-functions/strsignal.texi: Renamed from
30596         doc/glibc-functions/strsignal.texi.
30597         * doc/posix-functions/strxfrm_l.texi: Renamed from
30598         doc/glibc-functions/strxfrm_l.texi.
30599         * doc/posix-functions/timer_gettime.texi: Renamed from
30600         doc/glibc-functions/timer_gettime.texi.
30601         * doc/posix-functions/tolower_l.texi: Renamed from
30602         doc/glibc-functions/tolower_l.texi.
30603         * doc/posix-functions/toupper_l.texi: Renamed from
30604         doc/glibc-functions/toupper_l.texi.
30605         * doc/posix-functions/towctrans_l.texi: Renamed from
30606         doc/glibc-functions/towctrans_l.texi.
30607         * doc/posix-functions/towlower_l.texi: Renamed from
30608         doc/glibc-functions/towlower_l.texi.
30609         * doc/posix-functions/towupper_l.texi: Renamed from
30610         doc/glibc-functions/towupper_l.texi.
30611         * doc/posix-functions/uselocale.texi: Renamed from
30612         doc/glibc-functions/uselocale.texi.
30613         * doc/posix-functions/vdprintf.texi: Renamed from
30614         doc/glibc-functions/vdprintf.texi.
30615         * doc/posix-functions/wcpcpy.texi:
30616         Renamed from doc/glibc-functions/wcpcpy.texi.
30617         * doc/posix-functions/wcpncpy.texi: Renamed from
30618         doc/glibc-functions/wcpncpy.texi.
30619         * doc/posix-functions/wcscasecmp.texi: Renamed from
30620         doc/glibc-functions/wcscasecmp.texi.
30621         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
30622         doc/glibc-functions/wcscasecmp_l.texi.
30623         * doc/posix-functions/wcscoll_l.texi: Renamed from
30624         doc/glibc-functions/wcscoll_l.texi.
30625         * doc/posix-functions/wcsdup.texi: Renamed from
30626         doc/glibc-functions/wcsdup.texi.
30627         * doc/posix-functions/wcsncasecmp.texi: Renamed from
30628         doc/glibc-functions/wcsncasecmp.texi.
30629         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
30630         doc/glibc-functions/wcsncasecmp_l.texi.
30631         * doc/posix-functions/wcsnlen.texi: Renamed from
30632         doc/glibc-functions/wcsnlen.texi.
30633         * doc/posix-functions/wcsnrtombs.texi: Renamed from
30634         doc/glibc-functions/wcsnrtombs.texi.
30635         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
30636         doc/glibc-functions/wcsxfrm_l.texi.
30637         * doc/posix-functions/wctrans_l.texi: Renamed from
30638         doc/glibc-functions/wctrans_l.texi.
30639         * doc/posix-functions/wctype_l.texi: Renamed from
30640         doc/glibc-functions/wctype_l.texi.
30641         * doc/gnulib.texi (Function Substitutes): Add these subsections.
30642         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
30643         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
30644         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
30645         these subsections.
30646         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
30647         Remove sections.
30648
30649 2008-12-14  Bruno Haible  <bruno@clisp.org>
30650
30651         Update doc for POSIX:2008.
30652         * doc/posix-functions/*.texi: Update URL of POSIX specification.
30653
30654 2008-12-14  Bruno Haible  <bruno@clisp.org>
30655
30656         Update doc for POSIX:2008.
30657         * doc/pastposix-functions/bcmp.texi: Renamed from
30658         doc/posix-functions/bcmp.texi.
30659         * doc/pastposix-functions/bcopy.texi: Renamed from
30660         doc/posix-functions/bcopy.texi.
30661         * doc/pastposix-functions/bsd_signal.texi: Renamed from
30662         doc/posix-functions/bsd_signal.texi.
30663         * doc/pastposix-functions/bzero.texi: Renamed from
30664         doc/posix-functions/bzero.texi.
30665         * doc/pastposix-functions/ecvt.texi: Renamed from
30666         doc/posix-functions/ecvt.texi.
30667         * doc/pastposix-functions/fcvt.texi: Renamed from
30668         doc/posix-functions/fcvt.texi.
30669         * doc/pastposix-functions/ftime.texi: Renamed from
30670         doc/posix-functions/ftime.texi.
30671         * doc/pastposix-functions/gcvt.texi: Renamed from
30672         doc/posix-functions/gcvt.texi.
30673         * doc/pastposix-functions/getcontext.texi: Renamed from
30674         doc/posix-functions/getcontext.texi.
30675         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
30676         doc/posix-functions/gethostbyaddr.texi.
30677         * doc/pastposix-functions/gethostbyname.texi: Renamed from
30678         doc/posix-functions/gethostbyname.texi.
30679         * doc/pastposix-functions/getwd.texi: Renamed from
30680         doc/posix-functions/getwd.texi.
30681         * doc/pastposix-functions/h_errno.texi: Renamed from
30682         doc/posix-functions/h_errno.texi.
30683         * doc/pastposix-functions/index.texi: Renamed from
30684         doc/posix-functions/index.texi.
30685         * doc/pastposix-functions/makecontext.texi: Renamed from
30686         doc/posix-functions/makecontext.texi.
30687         * doc/pastposix-functions/mktemp.texi: Renamed from
30688         doc/posix-functions/mktemp.texi.
30689         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
30690         doc/posix-functions/pthread_attr_getstackaddr.texi.
30691         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
30692         doc/posix-functions/pthread_attr_setstackaddr.texi.
30693         * doc/pastposix-functions/rindex.texi: Renamed from
30694         doc/posix-functions/rindex.texi.
30695         * doc/pastposix-functions/scalb.texi: Renamed from
30696         doc/posix-functions/scalb.texi.
30697         * doc/pastposix-functions/setcontext.texi: Renamed from
30698         doc/posix-functions/setcontext.texi.
30699         * doc/pastposix-functions/swapcontext.texi: Renamed from
30700         doc/posix-functions/swapcontext.texi.
30701         * doc/pastposix-functions/ualarm.texi: Renamed from
30702         doc/posix-functions/ualarm.texi.
30703         * doc/pastposix-functions/usleep.texi: Renamed from
30704         doc/posix-functions/usleep.texi.
30705         * doc/pastposix-functions/vfork.texi: Renamed from
30706         doc/posix-functions/vfork.texi.
30707         * doc/pastposix-functions/wcswcs.texi: Renamed from
30708         doc/posix-functions/wcswcs.texi.
30709         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
30710         (Function Substitutes): Update.
30711
30712 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30713
30714         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
30715         m4/strerror.m4.
30716
30717 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30718             Bruno Haible  <bruno@clisp.org>
30719
30720         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
30721
30722 2008-12-13  Bruno Haible  <bruno@clisp.org>
30723
30724         * modules/strtoull (Depends-on): Remove unistd.
30725
30726 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30727
30728         * modules/strtoull (Depends-on): Add stdlib.
30729
30730 2008-12-11  Simon Josefsson  <simon@josefsson.org>
30731
30732         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
30733
30734 2008-12-10  Jim Meyering  <meyering@redhat.com>
30735
30736         gl_ASSERT: don't say assertions are disabled when they're not
30737         * m4/assert.m4 (gl_ASSERT): Do not make configure report
30738         "checking whether to enable assertions... no", when they are in
30739         fact enabled.  This is solely a bug in the output of configure.
30740         In spite of saying "no", NDEBUG was not defined in that case.
30741         Also, as noted by Eric Blake, leave assertions enabled upon
30742         --enable-assert=INVALID.
30743
30744 2008-12-10  Bruno Haible  <bruno@clisp.org>
30745
30746         Change MODULES.html to refer to POSIX:2008 where possible.
30747         * MODULES.html.sh (POSIX2008_URL): New variable.
30748         (posix_headers): Remove sys/timeb, ucontext.
30749         (posix2001_headers): New variable.
30750         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
30751         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
30752         index, makecontext, mktemp, pthread_attr_getstackaddr,
30753         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
30754         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
30755         (posix2001_functions): New variable.
30756         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
30757         otherwise.
30758
30759 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30760
30761         add missing include to parse-duration.c
30762         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
30763         * modules/parse-duration (Depends-on): Add xalloc.
30764
30765         fix sed script reading maint.mk
30766         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
30767         (syntax-check-rules): Use it.
30768
30769 2008-12-09  Bruno Haible  <bruno@clisp.org>
30770
30771         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
30772         MacOS X 10.4/PowerPC.
30773         Reported by Simon Josefsson.
30774
30775 2008-12-08  Jim Meyering  <meyering@redhat.com>
30776
30777         work around mingw's lack of some S_IF definitions
30778         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
30779         Reported by Simon Josefsson.
30780
30781 2008-12-08  Bruno Haible  <bruno@clisp.org>
30782
30783         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
30784         applied to variables. Needed on MacOS X 10.4/PowerPC.
30785         Reported by Simon Josefsson.
30786
30787 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
30788         and Eric Blake  <ebb9@byu.net>
30789
30790         assert: honor --enable-assert
30791         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
30792         order to honor --enable-assert, rather than treating it as a
30793         synonym for --disable-assert.
30794
30795 2008-12-08  Jim Meyering  <meyering@redhat.com>
30796
30797         * lib/posixtm.c: Remove now-useless declaration of mktime.
30798
30799         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
30800
30801 2008-12-07  Bruno Haible  <bruno@clisp.org>
30802
30803         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
30804         test_once): Mark functions as static.
30805         * tests/test-tls.c (test_tls): Likewise.
30806
30807 2008-12-07  Bruno Haible  <bruno@clisp.org>
30808
30809         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
30810         iconv_register_autodetect.
30811
30812 2008-12-07  Jim Meyering  <meyering@redhat.com>
30813
30814         posixtm.c: avoid a warning
30815         * lib/posixtm.c (posixtime): Don't initialize tm0.
30816         It's no longer needed to placate gcc4's -Wuninitialized,
30817         and the attempt to placate would elicit a new warning.
30818
30819         unicodeio.c: mark unused parameters
30820         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
30821         (fallback_failure_callback): Likewise.
30822
30823 2008-12-07  Bruno Haible  <bruno@clisp.org>
30824
30825         * gnulib-tool (func_create_testdir): When building the tests
30826         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
30827         Reported by Simon Josefsson.
30828
30829 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30830
30831         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
30832
30833 2008-12-06  Bruno Haible  <bruno@clisp.org>
30834
30835         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
30836         Suggested by Eric Blake.
30837
30838 2008-12-06  Bruno Haible  <bruno@clisp.org>
30839
30840         Fix a c-stack test failure on MacOS X.
30841         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
30842         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
30843         handler for SIGBUS as well.
30844         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
30845         install a signal handler for SIGBUS as well.
30846         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
30847
30848 2008-12-06  Bruno Haible  <bruno@clisp.org>
30849
30850         Advocacy documentation.
30851         * doc/gnulib-intro.texi (Benefits): New section.
30852         * doc/gnulib.texi: Update.
30853
30854 2008-12-06  Bruno Haible  <bruno@clisp.org>
30855
30856         Document the 'manywarnings' module.
30857         * doc/manywarnings.texi: New file.
30858         * doc/gnulib.texi: Include it.
30859
30860 2008-12-05  Eric Blake  <ebb9@byu.net>
30861
30862         tests: silence some gcc warnings
30863         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
30864         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
30865         type mismatches.
30866
30867 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30868             Bruno Haible  <bruno@clisp.org>
30869
30870         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
30871
30872 2008-11-29  Jim Meyering  <meyering@redhat.com>
30873
30874         unicodeio.c: mark unused parameters
30875         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
30876         (fallback_failure_callback): Likewise.
30877
30878         fts: fix a thinko
30879         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
30880         (set_stat_type): Return S_IF*-valued "type" directly.
30881         Prompted by James Youngman's spotting a related bug.
30882         Confirmed by further testing through find.
30883
30884         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
30885         * lib/fts.c (D_TYPE): Define.
30886         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
30887         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
30888         (s_ifmt_shift_bits): New function.
30889         (set_stat_type): New function.
30890         (fts_build): When not calling fts_stat, call set_stat_type
30891         to propagate dirent.d_type info to fts_read caller.
30892         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
30893         fts_statp->st_mode type information may be valid.
30894
30895 2008-11-28  Simon Josefsson  <simon@josefsson.org>
30896
30897         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
30898         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
30899         <sds@gnu.org>.
30900
30901 2008-11-20  Bruno Haible  <bruno@clisp.org>
30902
30903         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
30904         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
30905         INCLUDE_NEXT.
30906         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
30907         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
30908         * modules/math (Makefile.am): Substitute
30909         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
30910         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30911
30912 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
30913             Bruno Haible  <bruno@clisp.org>
30914
30915         * lib/stdint.in.h: Define all type macros so that their expansion is
30916         a single typedef'ed token. Fixes a compilation failure in Boost which
30917         does "using ::int8_t;".
30918
30919 2008-11-18  Simon Josefsson  <simon@josefsson.org>
30920
30921         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
30922         gl_MANYWARN_ALL_GCC.
30923         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
30924         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
30925         * modules/manywarnings: New file.
30926         * MODULES.html.sh: Mention manywarnings module.
30927
30928 2008-11-18  Bruno Haible  <bruno@clisp.org>
30929
30930         * doc/gnulib-tool.texi (Unit tests): New section.
30931
30932 2008-11-18  Simon Josefsson  <simon@josefsson.org>
30933
30934         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
30935         paths like 'lib/po/foo.po'.
30936
30937 2008-11-17  Simon Josefsson  <simon@josefsson.org>
30938
30939         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
30940         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
30941
30942 2008-11-17  Simon Josefsson  <simon@josefsson.org>
30943
30944         * m4/warnings.m4: Use CPPFLAGS to really check whether the
30945         parameter works.
30946
30947 2008-11-17  Simon Josefsson  <simon@josefsson.org>
30948
30949         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
30950
30951 2008-11-17  Bruce Korb  <bkorb@gnu.org>
30952
30953         * modules/parse-duration-tests: New file.
30954         * tests/test-parse-duration.sh: New file.
30955         * tests/test-parse-duration.c: New file.
30956
30957         New module 'parse-duration'.
30958         * lib/parse-duration.h: New file.
30959         * lib/parse-duration.c: New file.
30960         * modules/parse-duration: New file.
30961
30962 2008-11-17  Bruno Haible  <bruno@clisp.org>
30963
30964         * tests/test-select-out.sh: Comment out the first pipe test.
30965         Reported by Simon Josefsson.
30966
30967 2008-11-17  Bruno Haible  <bruno@clisp.org>
30968
30969         * modules/getaddrinfo (Depends-on): Add servent, hostent.
30970         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
30971         gl_HOSTENT.
30972
30973 2008-11-17  Bruno Haible  <bruno@clisp.org>
30974
30975         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
30976         -lnetwork and -lnet. Needed for Haiku and BeOS.
30977
30978 2008-11-16  Bruno Haible  <bruno@clisp.org>
30979
30980         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
30981
30982 2008-11-16  Bruno Haible  <bruno@clisp.org>
30983
30984         Avoid test failure on Haiku.
30985         * tests/test-fsync.c: Include <errno.h>.
30986         (main): Don't require that fsync (0) fails.
30987
30988 2008-11-15  Bruno Haible  <bruno@clisp.org>
30989
30990         New module 'hostent'.
30991         * modules/hostent: New file.
30992         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
30993
30994 2008-11-15  Bruno Haible  <bruno@clisp.org>
30995
30996         New module 'servent'.
30997         * modules/servent: New file.
30998         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
30999
31000 2008-11-15  Bruno Haible  <bruno@clisp.org>
31001
31002         Avoid generating same test program with two different rules.
31003         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
31004         test-frexp to test-frexp-nolibm.
31005         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
31006         test-frexpl to test-frexpl-nolibm.
31007
31008 2008-11-15  Bruno Haible  <bruno@clisp.org>
31009
31010         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
31011         $(FREXPL_LIBM).
31012
31013 2008-11-15  Bruno Haible  <bruno@clisp.org>
31014
31015         * lib/netdb.in.h: Activate the definitions also when the system's
31016         <netdb.h> has 'struct addrinfo'.
31017         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
31018         EAI_OVERFLOW or AI_NUMERICSERV.
31019         * doc/posix-headers/netdb.texi: Document the problem.
31020
31021 2008-11-15  Bruno Haible  <bruno@clisp.org>
31022
31023         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
31024
31025         Make the 'sched' module work on platforms where <sched.h> exists but
31026         is incomplete (such as Haiku).
31027         * lib/sched.in.h; Include the system's <sched.h> if it exists.
31028         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
31029         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
31030         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
31031         HAVE_STRUCT_SCHED_PARAM.
31032         * modules/sched (Depends-on): Add include_next.
31033         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
31034         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
31035         * doc/posix-headers/sched.texi: Document the issue.
31036
31037 2008-11-13  Jim Meyering  <meyering@redhat.com>
31038
31039         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
31040         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
31041         test would fail due to the difference in the Report bugs to ...
31042         line.  The expected address is empty, "<>", while the actual
31043         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
31044
31045 2008-11-12  Bruno Haible  <bruno@clisp.org>
31046
31047         lstat: don't compile lstat.c on systems lacking lstat
31048         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
31049         which don't have lstat; this is handled by lib/sys_stat.in.h already.
31050         Reported by Daniel P. Berrange via Jim Meyering.
31051
31052 2008-11-12  Jim Meyering  <meyering@redhat.com>
31053
31054         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
31055
31056 2008-11-12  Simon Josefsson  <simon@josefsson.org>
31057
31058         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
31059         instead.
31060
31061 2008-11-12  Bruno Haible  <bruno@clisp.org>
31062
31063         * lib/unicodeio.c: Include unistr.h.
31064         (utf8_wctomb): Remove function.
31065         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
31066
31067 2008-11-12  Simon Josefsson  <simon@josefsson.org>
31068
31069         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
31070         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
31071         <bruno@clisp.org>.
31072         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
31073
31074 2008-11-12  Simon Josefsson  <simon@josefsson.org>
31075
31076         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
31077         * doc/gnulib.texi: Add section for warnings.
31078
31079 2008-11-11  Bruno Haible  <bruno@clisp.org>
31080
31081         * lib/sockets.h: Add a comment.
31082
31083 2008-11-11  Karl Berry  <karl@gnu.org>
31084
31085         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
31086
31087 2008-11-11  Eric Blake  <ebb9@byu.net>
31088
31089         fdl.texi: avoid git symlinks
31090         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
31091
31092 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31093
31094         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
31095
31096 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31097
31098         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
31099         (gl_WARN_ADD): Substitute $2 if literal.
31100
31101 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31102
31103         * m4/warning.m4: Remove.
31104
31105 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31106
31107         * m4/warnings.m4: Almost complete rewrite. :-)
31108
31109 2008-11-10  Simon Josefsson  <simon@josefsson.org>
31110
31111         * modules/warnings: New module.
31112         * m4/warnings.m4: New file.
31113         * MODULES.html.sh: Mention warnings module.
31114         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
31115         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31116
31117 2008-11-10  Eric Blake  <ebb9@byu.net>
31118
31119         fdl.texi: make a symlink to the latest version
31120         * doc/standards.texi: Revert today's earlier change.
31121         * doc/fdl-1.2.texi: Rename from old fdl.texi...
31122         * doc/fdl.texi: ...and replace this with a symlink to the newer
31123         fdl-1.3.texi.
31124
31125 2008-11-10  Bruno Haible  <bruno@clisp.org>
31126
31127         * tests/test-select-fd.c (main): Accept the result file name as fourth
31128         argument.
31129         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
31130         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
31131
31132 2008-11-10  Bruno Haible  <bruno@clisp.org>
31133
31134         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
31135         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
31136         as autoconf-substituted macros.
31137         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
31138         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
31139         gl_NETDB_H_DEFAULTS. Set these variables.
31140         * modules/netdb (Makefile.am): Substitute these variables.
31141
31142 2008-11-10  Eric Blake  <ebb9@byu.net>
31143
31144         standards.texi: include correct file for FDL 1.3
31145         * doc/standards.texi (GNU Free Documentation License): Change
31146         include file to pull in FDL 1.3, not 1.2.
31147
31148         fdl.texi: revert accidental change to license
31149         * doc/fdl.texi: This is FDL 1.2, not 1.3.
31150
31151 2008-11-10  Bruno Haible  <bruno@clisp.org>
31152
31153         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
31154         cross-compiling guesses also when the native compile gives no result.
31155
31156 2008-11-10  Bruno Haible  <bruno@clisp.org>
31157
31158         * lib/spawni.c (__spawni): Force variable into the stack.
31159
31160 2008-11-10  Bruno Haible  <bruno@clisp.org>
31161
31162         Add support for Haiku.
31163         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
31164         glibc and BeOS, but also on Haiku.
31165         * lib/fpurge.c (fpurge): Likewise.
31166         * lib/freadable.c (freadable): Likewise.
31167         * lib/freadahead.c (freadahead): Likewise.
31168         * lib/freading.c (freading): Likewise.
31169         * lib/freadptr.c (freadptr): Likewise.
31170         * lib/freadseek.c (freadptrinc): Likewise.
31171         * lib/fseeko.c (rpl_fseeko): Likewise.
31172         * lib/fseterr.c (fseterr): Likewise.
31173         * lib/fwritable.c (fwritable): Likewise.
31174         * lib/fwriting.c (fwriting): Likewise.
31175         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
31176
31177 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
31178
31179         * lib/config.charset: Treat Haiku like BeOS.
31180
31181 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
31182
31183         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
31184         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
31185
31186 2008-11-08  Bruno Haible  <bruno@clisp.org>
31187
31188         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
31189         AC_CACHE_CHECK.
31190
31191 2008-11-08  Bruno Haible  <bruno@clisp.org>
31192
31193         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
31194
31195 2008-11-08  Bruno Haible  <bruno@clisp.org>
31196
31197         * tests/test-select-fd.c: New file.
31198         * tests/test-select-in.sh: New file.
31199         * tests/test-select-out.sh: New file.
31200         * tests/test-select-stdin.c: New file.
31201         * modules/select-tests (Files): Add the new files.
31202         (Depends-on): Add gettimeofday.
31203         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
31204         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
31205         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
31206
31207 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
31208             Bruno Haible  <bruno@clisp.org>
31209
31210         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
31211
31212 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
31213
31214         * build-aux/pmccabe2html: Added support for C++ source files.
31215
31216 2008-11-05  Ben Pfaff  <blp@gnu.org>
31217
31218         Fix lib/close.c build on Windows.
31219         * modules/close (Files): Add lib/w32sock.h.
31220
31221 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
31222
31223         Accept Bison's NEWS format.
31224         * build-aux/announce-gen (print_news_deltas): Tweak
31225         $re_prefix.
31226
31227 2008-11-04  Bruno Haible  <bruno@clisp.org>
31228
31229         * modules/random_r (Maintainer): Add glibc.
31230
31231 2008-11-04  Simon Josefsson  <simon@josefsson.org>
31232
31233         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
31234         by karl@freefriends.org (Karl Berry).
31235         * doc/alloca.texi: Likewise.
31236         * doc/c-ctype.texi: Likewise.
31237         * doc/c-strcase.texi: Likewise.
31238         * doc/c-strcaseeq.texi: Likewise.
31239         * doc/c-strcasestr.texi: Likewise.
31240         * doc/c-strstr.texi: Likewise.
31241         * doc/c-strtod.texi: Likewise.
31242         * doc/c-strtold.texi: Likewise.
31243         * doc/ctime.texi: Likewise.
31244         * doc/error.texi: Likewise.
31245         * doc/fdl.texi: Likewise.
31246         * doc/gcd.texi: Likewise.
31247         * doc/getdate.texi: Likewise.
31248         * doc/gnulib-intro.texi: Likewise.
31249         * doc/gnulib-tool.texi: Likewise.
31250         * doc/gnulib.texi: Likewise.
31251         * doc/inet_ntoa.texi: Likewise.
31252         * doc/maintain.texi: Likewise.
31253         * doc/make-stds.texi: Likewise.
31254         * doc/quote.texi: Likewise.
31255         * doc/regexprops-generic.texi: Likewise.
31256         * doc/standards.texi: Likewise.
31257         * doc/verify.texi: Likewise.
31258         * doc/visibility.texi: Likewise.
31259         * doc/gnulib.texi (GNU Free Documentation License): Include
31260         fdl-1.3.texi instead of fdl.texi.
31261
31262 2008-11-04  Simon Josefsson  <simon@josefsson.org>
31263
31264         * doc/fdl-1.3.texi: New file, from
31265         <http://www.gnu.org/licenses/fdl-1.3.texi>.
31266         * modules/fdl-1.3: Add.
31267         * MODULES.html.sh: Add fdl-1.3.
31268
31269 2008-11-03  Bruno Haible  <bruno@clisp.org>
31270
31271         Make determination of absolute name of header file work with AIX xlc.
31272         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
31273         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
31274         preprocessing.
31275         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31276         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
31277
31278 2008-11-03  Simon Josefsson  <simon@josefsson.org>
31279
31280         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
31281         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
31282         <ludo@gnu.org>.
31283
31284 2008-11-02  Bruno Haible  <bruno@clisp.org>
31285
31286         Mark 'strpbrk' obsolete.
31287         * modules/strpbrk (Status, Notice): New sections.
31288         * modules/strtok_r (Depends-on): Add strpbrk.
31289
31290 2008-11-02  Bruno Haible  <bruno@clisp.org>
31291
31292         Mark 'strdup' obsolete.
31293         * modules/strdup (Status, Notice): New sections.
31294         * modules/findprog (Depends-on): Add strdup.
31295         * modules/getaddrinfo (Depends-on): Likewise.
31296         * modules/localename (Depends-on): Likewise.
31297         * modules/relocatable-lib (Depends-on): Likewise.
31298         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
31299         * modules/relocatable-prog (Depends-on): Likewise.
31300         * modules/trim (Depends-on): Likewise.
31301         * modules/unictype/gen-ctype (Depends-on): Likewise.
31302         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
31303
31304 2008-11-02  Bruno Haible  <bruno@clisp.org>
31305
31306         Mark 'strcspn' obsolete.
31307         * modules/strcspn (Status, Notice): New sections.
31308
31309 2008-11-02  Bruno Haible  <bruno@clisp.org>
31310
31311         Mark 'rmdir' obsolete.
31312         * modules/rmdir (Status, Notice): New sections.
31313         * modules/clean-temp (Depends-on): Add rmdir.
31314         * modules/openat (Depends-on): Likewise.
31315
31316 2008-11-02  Bruno Haible  <bruno@clisp.org>
31317
31318         Mark 'raise' obsolete.
31319         * modules/raise (Status, Notice): New sections.
31320         (Include): Specify <signal.h>.
31321         * modules/stdio (Depends-on): Add raise.
31322         * modules/write (Depends-on): Likewise.
31323
31324 2008-11-02  Bruno Haible  <bruno@clisp.org>
31325
31326         Mark 'memset' obsolete.
31327         * modules/memset (Status, Notice): New sections.
31328
31329 2008-11-02  Bruno Haible  <bruno@clisp.org>
31330
31331         Mark 'memmove' obsolete.
31332         * modules/memmove (Status, Notice): New sections.
31333         * modules/argp (Depends-on): Add memmove.
31334         * modules/argz (Depends-on): Likewise.
31335         * modules/canonicalize (Depends-on): Likewise.
31336         * modules/canonicalize-lgpl (Depends-on): Likewise.
31337         * modules/fts (Depends-on): Likewise.
31338         * modules/getcwd (Depends-on): Likewise.
31339         * modules/human (Depends-on): Likewise.
31340         * modules/regex (Depends-on): Likewise.
31341         * modules/striconveh (Depends-on): Likewise.
31342         * modules/trim (Depends-on): Likewise.
31343         * modules/unistr/u8-move (Depends-on): Likewise.
31344         * modules/unistr/u16-move (Depends-on): Likewise.
31345         * modules/unistr/u32-move (Depends-on): Likewise.
31346
31347 2008-11-02  Bruno Haible  <bruno@clisp.org>
31348
31349         Mark 'memcpy' obsolete.
31350         * modules/memcpy (Status, Notice): New sections.
31351
31352 2008-11-02  Bruno Haible  <bruno@clisp.org>
31353
31354         Mark 'memcmp' obsolete.
31355         * modules/memcmp (Status, Notice): New sections.
31356         * modules/argmatch (Depends-on): Add memchr.
31357         * modules/backupfile (Depends-on): Likewise.
31358         * modules/c-strcasestr (Depends-on): Likewise.
31359         * modules/crypto/des (Depends-on): Likewise.
31360         * modules/csharpcomp (Depends-on): Likewise.
31361         * modules/fnmatch (Depends-on): Likewise.
31362         * modules/git-merge-changelog (Depends-on): Likewise.
31363         * modules/isnand (Depends-on): Likewise.
31364         * modules/isnand-nolibm (Depends-on): Likewise.
31365         * modules/isnanf (Depends-on): Likewise.
31366         * modules/isnanf-nolibm (Depends-on): Likewise.
31367         * modules/isnanl (Depends-on): Likewise.
31368         * modules/isnanl-nolibm (Depends-on): Likewise.
31369         * modules/mbchar (Depends-on): Likewise.
31370         * modules/memcoll (Depends-on): Likewise.
31371         * modules/quotearg (Depends-on): Likewise.
31372         * modules/regex (Depends-on): Likewise.
31373         * modules/relocatable-prog (Depends-on): Likewise.
31374         * modules/same (Depends-on): Likewise.
31375         * modules/signbit (Depends-on): Likewise.
31376         * modules/strcasestr-simple (Depends-on): Likewise.
31377         * modules/unictype/gen-ctype (Depends-on): Likewise.
31378         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
31379         * modules/uniname/uniname (Depends-on): Likewise.
31380         * modules/unistr/u8-cmp (Depends-on): Likewise.
31381
31382 2008-11-02  Bruno Haible  <bruno@clisp.org>
31383
31384         Mark 'memchr' obsolete.
31385         * modules/memchr (Status, Notice): New sections.
31386         * modules/argp (Depends-on): Add memchr.
31387         * modules/base64 (Depends-on): Likewise.
31388         * modules/c-strcasestr (Depends-on): Likewise.
31389         * modules/chdir-long (Depends-on): Likewise.
31390         * modules/fnmatch (Depends-on): Likewise.
31391         * modules/getsubopt (Depends-on): Likewise.
31392         * modules/git-merge-changelog (Depends-on): Likewise.
31393         * modules/glob (Depends-on): Likewise.
31394         * modules/strcasestr-simple (Depends-on): Likewise.
31395         * modules/strnlen (Depends-on): Likewise.
31396
31397 2008-11-02  Bruno Haible  <bruno@clisp.org>
31398
31399         Mark 'atexit' obsolete.
31400         * modules/atexit (Status, Notice): New sections.
31401         * modules/chdir-long (Depends-on): Add atexit.
31402         * modules/wait-process (Depends-on): Likewise.
31403
31404 2008-11-02  Bruno Haible  <bruno@clisp.org>
31405
31406         * gnulib-tool: New option --with-obsolete.
31407         (func_usage): Document it.
31408         (func_modules_transitive_closure): Drop obsolete dependencies if
31409         incobsolete is not true.
31410         (func_import): Read and save the incobsolete variable to the cache.
31411
31412 2008-11-02  Bruno Haible  <bruno@clisp.org>
31413
31414         * modules/TEMPLATE-EXTENDED: New field 'Status'.
31415         * gnulib-tool: New option --extract-status.
31416         (func_usage): Document it.
31417         (sed_extract_prog): Recognize it.
31418         (func_get_status): New function.
31419
31420 2008-10-30  Simon Josefsson  <simon@josefsson.org>
31421
31422         * modules/sockets (License): Change from LGPL to LGPLv2+.
31423
31424 2008-10-28  Simon Josefsson  <simon@josefsson.org>
31425
31426         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
31427
31428 2008-10-28  Simon Josefsson  <simon@josefsson.org>
31429
31430         * MODULES.html.sh (Support for systems lacking POSIX:2001):
31431         Mention times and sys_times.
31432         * modules/sys_times, modules/sys_times-tests: New modules.
31433         * modules/times, modules/times-tests: Likewise
31434         * m4/sys_times_h.m4: New file.
31435         * lib/sys_times.in.h: Likewise
31436         * lib/times.c: Likewise.
31437         * tests/test-sys_times.c: Likewise.
31438         * tests/test-times.c: Likewise.
31439         * doc/posix-headers/sys_times.texi: Update.
31440         * doc/posix-functions/times.texi: Update.
31441
31442 2008-10-28  Jim Meyering  <meyering@redhat.com>
31443
31444         * modules/tempname (Depends-on): Add lstat.
31445
31446         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
31447
31448 2008-10-28  Simon Josefsson  <simon@josefsson.org>
31449
31450         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
31451         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
31452         using idiom used elsewhere in gnulib.
31453
31454 2008-10-27  Jim Meyering  <meyering@redhat.com>
31455
31456         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
31457
31458 2008-10-27  Simon Josefsson  <simon@josefsson.org>
31459
31460         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
31461         TESTS_ENVIRONMENT, for shell scripts that needs to call built
31462         programs.
31463         * tests/test-argp-2.sh: Use $EXEEXT when needed.
31464
31465 2008-10-27  Simon Josefsson  <simon@josefsson.org>
31466
31467         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
31468
31469 2008-10-27  Bruno Haible  <bruno@clisp.org>
31470
31471         * tests/test-lstat.c: Include <stdio.h>.
31472
31473 2008-10-27  Simon Josefsson  <simon@josefsson.org>
31474
31475         * modules/lstat-tests: New module.
31476         * tests/test-lstat.c: New file.
31477
31478 2008-10-26  Jim Meyering  <meyering@redhat.com>
31479
31480         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
31481
31482 2008-10-26  Simon Josefsson  <simon@josefsson.org>
31483             Bruno Haible  <bruno@clisp.org>
31484
31485         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
31486         * modules/configmake (Include): Add a note that the include must come
31487         after all system headers.
31488         * lib/javaversion.c: Include configmake.h after all other includes.
31489
31490 2008-10-26  Bruno Haible  <bruno@clisp.org>
31491
31492         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
31493         HAVE_STRUCT_RANDOM_DATA to 1.
31494         (gl_STDLIB_H): Simplify.
31495
31496 2008-10-26  Simon Josefsson  <simon@josefsson.org>
31497
31498         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
31499         substitute HAVE_STRUCT_RANDOM_DATA.
31500         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
31501         random_data.
31502         * modules/stdlib (Makefile.am): Substitute
31503         HAVE_STRUCT_RANDOM_DATA.
31504
31505 2008-10-26  Simon Josefsson  <simon@josefsson.org>
31506
31507         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
31508         * doc/gnulib-intro.texi (Copyright): Likewise.
31509
31510 2008-10-26  Simon Josefsson  <simon@josefsson.org>
31511
31512         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
31513         findings.
31514
31515 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
31516             Bruno Haible  <bruno@clisp.org>
31517
31518         * lib/unistd.in.h: Include <winsock2.h>.
31519         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
31520         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
31521         Provide dummy declarations.
31522         (gethostname): Override.
31523         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
31524         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
31525         gl_PREREQ_SYS_H_WINSOCK2.
31526         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
31527         * doc/posix-functions/gethostname.texi: More details.
31528
31529 2008-10-25  Bruno Haible  <bruno@clisp.org>
31530
31531         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
31532         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
31533         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
31534
31535         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
31536         here ...
31537         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
31538         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
31539         gl_UNISTD_H_DEFAULTS.
31540
31541 2008-10-25  Eric Blake  <ebb9@byu.net>
31542
31543         signbit: avoid spurious compiler failure
31544         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
31545         declarations inside function.
31546
31547 2008-10-24  Simon Josefsson  <simon@josefsson.org>
31548             Bruno Haible  <bruno@clisp.org>
31549
31550         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
31551         * modules/random_r (Depends-on): Add stdint.
31552
31553 2008-10-24  Bruno Haible  <bruno@clisp.org>
31554
31555         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
31556         Eggert.
31557         * modules/strerror (License): Likewise.
31558
31559 2008-10-24  Jim Meyering  <meyering@redhat.com>
31560
31561         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
31562         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
31563
31564 2008-10-24  Eric Blake  <ebb9@byu.net>
31565
31566         getgroups: fix compilation when getgroups is available
31567         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
31568         but with <config.h> override of getgroups disabled.
31569
31570 2008-10-24  Simon Josefsson  <simon@josefsson.org>
31571
31572         * doc/gnulib.texi (Header files): Add note about C++ problems.
31573         Explained by Bruno Haible <bruno@clisp.org>.
31574
31575 2008-10-23  Bruno Haible  <bruno@clisp.org>
31576
31577         Define a dummy SA_NODEFER macro on Interix.
31578         * lib/signal.in.h (SA_NODEFER): Define fallback.
31579         Reported by Aleksey Cheusov <cheusov@tut.by> via
31580         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
31581
31582 2008-10-23  Bruno Haible  <bruno@clisp.org>
31583
31584         * modules/freadahead (License): Change to LGPLv2+.
31585         Suggested by Simon Josefsson.
31586
31587 2008-10-23  Jim Meyering  <meyering@redhat.com>
31588
31589         random_r: new module
31590         * modules/random_r: New file.
31591         * m4/random_r.m4: New file.
31592         * lib/random_r.c: New file, from glibc.
31593         * modules/random_r-tests: New file.
31594         * tests/test-random_r.c: New file.
31595         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
31596          Declare.
31597         (RAND_MAX): Define.
31598         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
31599         * modules/stdlib: Substitute them, too.
31600         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
31601         * doc/glibc-functions/initstate_r.texi: Mention the new module.
31602         * doc/glibc-functions/random_r.texi: Likewise.
31603         * doc/glibc-functions/setstate_r.texi: Likewise.
31604         * doc/glibc-functions/srandom_r.texi: Likewise.
31605         * config/srclist.txt: Mention it.
31606
31607 2008-10-23  David Lutterkort  <lutter@redhat.com>
31608
31609         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
31610         link requirement
31611
31612 2008-10-23  Jim Meyering  <meyering@redhat.com>
31613
31614         selinux-h: mark parameters of stub functions as intentionally unused
31615         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
31616         * lib/se-context.in.h: Likewise.
31617
31618 2008-10-22  Simon Josefsson  <simon@josefsson.org>
31619
31620         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
31621
31622 2008-10-22  Simon Josefsson  <simon@josefsson.org>
31623
31624         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
31625
31626 2008-10-22  Eric Blake  <ebb9@byu.net>
31627
31628         glthread/thread: avoid compiler warning
31629         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
31630         Add unreachable abort to silence compiler.
31631
31632 2008-10-22  Eric Blake  <ebb9@byu.net>
31633
31634         netdb: also supply struct addrinfo for cygwin 1.5.x
31635         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
31636         older cygwin.
31637         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
31638         cygwin.
31639         * doc/posix-headers/netdb.texi (netdb.h): Document this.
31640
31641 2008-10-22  Bruno Haible  <bruno@clisp.org>
31642
31643         * users.txt: Update entry about pspp.
31644
31645 2008-10-21  Bruno Haible  <bruno@clisp.org>
31646
31647         Simplification.
31648         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
31649         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
31650
31651         Simplification.
31652         * lib/ioctl.c (ioctl): Don't undefine.
31653         * lib/socket.c (socket): Don't undefine.
31654
31655         Remove unused module indicator macros.
31656         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
31657         GNULIB_$1 as a C macro.
31658
31659         * doc/posix-functions/close.texi: Undo last change.
31660         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
31661         Windows platforms.
31662
31663 2008-10-21  Bruno Haible  <bruno@clisp.org>
31664
31665         Add gethostname() declaration to <unistd.h>.
31666         * lib/unistd.in.h (gethostname): New declaration.
31667         * lib/gethostname.c: Include <unistd.h>.
31668         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
31669         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
31670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
31671         and HAVE_GETHOSTNAME.
31672         * modules/gethostname (Depends-on): Add unistd.
31673         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31674         (Include): Specify <unistd.h>.
31675         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
31676         HAVE_GETHOSTNAME.
31677         * tests/test-gethostname.c: Include <unistd.h> first.
31678
31679 2008-10-21  Bruno Haible  <bruno@clisp.org>
31680
31681         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
31682         * modules/select-tests (Depends-on): Likewise.
31683         Reported by Simon Josefsson.
31684
31685 2008-10-21  Simon Josefsson  <simon@josefsson.org>
31686
31687         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
31688         * lib/accept.c: New file, based on winsock.c.
31689         * lib/bind.c: New file, based on winsock.c.
31690         * lib/connect.c: New file, based on winsock.c.
31691         * lib/getpeername.c: New file, based on winsock.c.
31692         * lib/getsockname.c: New file, based on winsock.c.
31693         * lib/getsockopt.c: New file, based on winsock.c.
31694         * lib/ioctl.c: New file, based on winsock.c.
31695         * lib/listen.c: New file, based on winsock.c.
31696         * lib/recv.c: New file, based on winsock.c.
31697         * lib/recvfrom.c: New file, based on winsock.c.
31698         * lib/send.c: New file, based on winsock.c.
31699         * lib/sendto.c: New file, based on winsock.c.
31700         * lib/setsockopt.c: New file, based on winsock.c.
31701         * lib/shutdown.c: New file, based on winsock.c.
31702         * lib/socket.c: New file, based on winsock.c.
31703         * lib/w32sock.h: New file, based on winsock.c.
31704         * lib/winsock.c: Remove file.
31705         * modules/accept: Likewise.
31706         * modules/bind: Likewise.
31707         * modules/connect: Likewise.
31708         * modules/getpeername: Likewise.
31709         * modules/getsockname: Likewise.
31710         * modules/getsockopt: Likewise.
31711         * modules/ioctl: Likewise.
31712         * modules/listen: Likewise.
31713         * modules/recv: Likewise.
31714         * modules/recvfrom: Likewise.
31715         * modules/send: Likewise.
31716         * modules/sendto: Likewise.
31717         * modules/setsockopt: Likewise.
31718         * modules/shutdown: Likewise.
31719         * modules/socket: Use socket.c instead of winsock.c.
31720         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
31721         * doc/posix-functions/accept.texi: Doc fix.
31722         * doc/posix-functions/bind.texi: Doc fix.
31723         * doc/posix-functions/close.texi: Doc fix.
31724         * doc/posix-functions/connect.texi: Doc fix.
31725         * doc/posix-functions/getpeername.texi: Doc fix.
31726         * doc/posix-functions/getsockname.texi: Doc fix.
31727         * doc/posix-functions/getsockopt.texi: Doc fix.
31728         * doc/posix-functions/ioctl.texi: Doc fix.
31729         * doc/posix-functions/listen.texi: Doc fix.
31730         * doc/posix-functions/recv.texi: Doc fix.
31731         * doc/posix-functions/recvfrom.texi: Doc fix.
31732         * doc/posix-functions/send.texi: Doc fix.
31733         * doc/posix-functions/sendto.texi: Doc fix.
31734         * doc/posix-functions/setsockopt.texi: Doc fix.
31735         * doc/posix-functions/shutdown.texi: Doc fix.
31736         * doc/posix-functions/socket.texi: Doc fix.
31737
31738 2008-10-20  Bruno Haible  <bruno@clisp.org>
31739
31740         Take into account the role of SIGABRT_COMPAT on Windows 2008.
31741         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
31742         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
31743         as an alias for SIGABRT.
31744         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
31745         (sigaction): Map it to SIGABRT.
31746         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
31747
31748 2008-10-20  Bruno Haible  <bruno@clisp.org>
31749
31750         * lib/fts.c: Don't include lstat.h.
31751         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
31752
31753         Move the lstat() declaration to <sys/stat.h>.
31754         * lib/lstat.h: Remove file.
31755         * lib/sys_stat.in.h: Add special invocation convention.
31756         (lstat): New declaration.
31757         * lib/lstat.c (orig_lstat): New function.
31758         (rpl_lstat): Use orig_lstat instead of lstat.
31759         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
31760         AC_C_INLINE. Set REPLACE_LSTAT.
31761         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
31762         and REPLACE_LSTAT.
31763         * modules/lstat (Files): Remove lib/lstat.h.
31764         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
31765         (Include): Specify <sys/stat.h> instead of lstat.h.
31766         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
31767         REPLACE_LSTAT.
31768         * NEWS: Mention the change.
31769
31770 2008-10-20  Bruno Haible  <bruno@clisp.org>
31771
31772         * modules/posix_spawn-tests: New file.
31773         * tests/test-posix_spawn3.c: New file.
31774
31775 2008-10-20  Bruno Haible  <bruno@clisp.org>
31776
31777         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
31778         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
31779         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
31780         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
31781         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
31782
31783 2008-10-20  Bruno Haible  <bruno@clisp.org>
31784
31785         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
31786         of posix_spawn on AIX 5.3.
31787
31788 2008-10-20  Bruno Haible  <bruno@clisp.org>
31789
31790         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
31791
31792 2008-10-20  Bruno Haible  <bruno@clisp.org>
31793
31794         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
31795         of AC_LANG_PROGRAM.
31796
31797 2008-10-20  Simon Josefsson  <simon@josefsson.org>
31798
31799         * lib/netdb.in.h: Don't define GNU specific constants until they
31800         are supported or needed.  Reported by Bruno Haible
31801         <bruno@clisp.org>.
31802
31803 2008-10-20  Simon Josefsson  <simon@josefsson.org>
31804
31805         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
31806
31807 2008-10-20  Simon Josefsson  <simon@josefsson.org>
31808
31809         * lib/getaddrinfo.h: Remove file.
31810         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
31811         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
31812         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
31813         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
31814         * modules/netdb: Substitute GNULIB_GETADDRINFO.
31815         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
31816         * tests/test-getaddrinfo.c: Likewise.
31817         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
31818         * NEWS: Mention change.
31819
31820 2008-10-19  Bruno Haible  <bruno@clisp.org>
31821
31822         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
31823
31824 2008-10-19  Bruno Haible  <bruno@clisp.org>
31825
31826         * lib/wait-process.c: Include simply <sys/wait.h>.
31827         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
31828         WIFSTOPPED): Remove fallback definitions.
31829         * modules/wait-process (Depends-on): Add sys_wait.
31830
31831         New module 'sys_wait'.
31832         * modules/sys_wait: New file.
31833         * lib/sys_wait.in.h: New file, partially copied from
31834         lib/wait-process.c.
31835         * m4/sys_wait_h.m4: New file.
31836         * doc/posix-headers/sys_wait.texi: Mention the new module.
31837
31838 2008-10-19  Bruno Haible  <bruno@clisp.org>
31839
31840         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
31841
31842 2008-10-19  Bruno Haible  <bruno@clisp.org>
31843
31844         Assume that waitpid() fills an 'int' status, not a 'union wait'.
31845         * lib/wait-process.c (WAIT_T): Remove type.
31846         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
31847         (wait_subprocess): Update.
31848
31849 2008-10-19  Bruno Haible  <bruno@clisp.org>
31850
31851         New module 'atoll'.
31852         * modules/atoll: New file.
31853         * lib/stdlib.in.h (atoll): New declaration.
31854         * lib/atoll.c: New file, from glibc with modifications.
31855         * m4/atoll.m4: New file.
31856         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
31857         HAVE_ATOLL.
31858         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
31859         * doc/posix-functions/atoll.texi: Mention the new module.
31860
31861 2008-10-19  Bruno Haible  <bruno@clisp.org>
31862
31863         Add strtoull() declaration to <stdlib.h>.
31864         * lib/stdlib.in.h (strtoull): New declaration.
31865         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
31866         Set HAVE_STRTOULL.
31867         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
31868         HAVE_STRTOULL.
31869         * modules/strtoull (Depends-on): Add stdlib.
31870         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31871         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
31872         HAVE_STRTOULL.
31873
31874 2008-10-19  Bruno Haible  <bruno@clisp.org>
31875
31876         Add strtoll() declaration to <stdlib.h>.
31877         * lib/stdlib.in.h (strtoll): New declaration.
31878         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
31879         Set HAVE_STRTOLL.
31880         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
31881         HAVE_STRTOLL.
31882         * modules/strtoll (Depends-on): Add stdlib.
31883         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31884         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
31885
31886 2008-10-19  Bruno Haible  <bruno@clisp.org>
31887
31888         * modules/bcopy (Depends-on): Add strings.
31889         (Include): Specify <strings.h>.
31890
31891 2008-10-19  Bruno Haible  <bruno@clisp.org>
31892
31893         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
31894
31895 2008-10-19  Bruno Haible  <bruno@clisp.org>
31896
31897         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
31898         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
31899         mingw.
31900
31901 2008-10-19  Bruno Haible  <bruno@clisp.org>
31902
31903         * lib/atanl.c: Don't include isnanl.h.
31904         * lib/cosl.c: Likewise.
31905         * lib/ldexpl.c: Likewise.
31906         * lib/logl.c: Likewise.
31907         * lib/sinl.c: Likewise.
31908         * lib/sqrtl.c: Likewise.
31909         * lib/tanl.c: Likewise.
31910
31911         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
31912         * lib/isnanf.h: Remove file.
31913         * lib/isnand.h: Remove file.
31914         * lib/isnanl.h: Remove file.
31915         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
31916         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
31917         macros.
31918         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
31919         HAVE_ISNANF, don't define it as a C macro.
31920         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
31921         HAVE_ISNAND, don't define it as a C macro.
31922         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
31923         HAVE_ISNANL, don't define it as a C macro.
31924         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
31925         HAVE_ISNAN[FDL].
31926         * modules/isnanf (Files): Remove lib/isnanf.h.
31927         (Depends-on): Add math.
31928         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
31929         (Include): Specify <math.h> instead of isnanf.h.
31930         * modules/isnand (Files): Remove lib/isnand.h.
31931         (Depends-on): Add math.
31932         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
31933         (Include): Specify <math.h> instead of isnand.h.
31934         * modules/isnanl (Files): Remove lib/isnanl.h.
31935         (Depends-on): Add math.
31936         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
31937         (Include): Specify <math.h> instead of isnanl.h.
31938         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
31939         HAVE_ISNAN[FDL].
31940         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
31941         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
31942         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
31943         * NEWS: Mention the change.
31944
31945 2008-10-18  Bruno Haible  <bruno@clisp.org>
31946
31947         Add getusershell(), setusershell(), endusershell() declarations to
31948         <unistd.h>.
31949         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
31950         declarations.
31951         * lib/getusershell.c: Include unistd.h.
31952         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
31953         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
31954         HAVE_GETUSERSHELL.
31955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
31956         and HAVE_GETUSERSHELL.
31957         * modules/getusershell (Depends-on): Add unistd, extensions.
31958         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31959         (Include): Specify <unistd.h>.
31960         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
31961         HAVE_GETUSERSHELL.
31962
31963 2008-10-18  Bruno Haible  <bruno@clisp.org>
31964
31965         Add a getloadavg() declaration to <stdlib.h>.
31966         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
31967         getloadavg declaration.
31968         (getloadavg): New declaration.
31969         * lib/getloadavg.c: Include <stdlib.h> first.
31970         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
31971         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
31972         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
31973         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
31974         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
31975         * modules/getloadavg (Depends-on): Add stdlib, extensions.
31976         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31977         (Include): Specify <stdlib.h>.
31978         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
31979         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
31980
31981 2008-10-18  Bruno Haible  <bruno@clisp.org>
31982
31983         * lib/dirchownmod.c: Don't include lchmod.h.
31984
31985         Move the lchmod() declaration to <sys/stat.h>.
31986         * lib/lchmod.h: Remove file.
31987         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
31988         (lchmod): New declaration, moved here from lib/lchown.h.
31989         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
31990         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
31991         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
31992         and HAVE_LCHMOD.
31993         * modules/lchmod (Files): Remove lib/lchmod.h.
31994         (Depends-on): Add sys_stat, extensions.
31995         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
31996         (Include): Specify <sys/stat.h> instead of lchmod.h.
31997         * modules/sys_stat (Depends-on): Add link-warning.
31998         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
31999         definition of GL_LINK_WARNING.
32000         * NEWS: Mention the change.
32001
32002 2008-10-18  Bruno Haible  <bruno@clisp.org>
32003
32004         * lib/fchdir.c: Don't include dirfd.h.
32005         * lib/fts.c: Likewise.
32006         * lib/getcwd.c: Likewise.
32007         * lib/glob.c: Likewise.
32008
32009         Move the dirfd() declaration to <dirent.h>.
32010         * lib/dirfd.h: Remove file.
32011         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
32012         (dirfd): New declaration.
32013         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
32014         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
32015         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
32016         HAVE_DECL_DIRFD.
32017         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
32018         HAVE_DECL_DIRFD.
32019         * modules/dirfd (Files): Remove lib/dirfd.h.
32020         (Depends-on): Add dirent, extensions.
32021         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
32022         (Include): Specify <dirent.h> instead of dirfd.h.
32023         * modules/dirent (Depends-on): Add link-warning.
32024         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
32025         definition of GL_LINK_WARNING.
32026         * NEWS: Mention the change.
32027
32028 2008-10-18  Bruno Haible  <bruno@clisp.org>
32029
32030         Move the euidaccess() declaration to <unistd.h>.
32031         * lib/euidaccess.h: Remove file.
32032         * lib/unistd.in.h (euidaccess): New declaration.
32033         * lib/euidaccess.c: Don't include euidaccess.h.
32034         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
32035         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
32036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
32037         and HAVE_EUIDACCESS.
32038         * modules/euidaccess (Files): Remove lib/euidaccess.h.
32039         (Depends-on): Add unistd.
32040         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32041         (Include): Specify <unistd.h> instead of euidaccess.h.
32042         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
32043         HAVE_EUIDACCESS.
32044         * NEWS: Mention the change.
32045
32046 2008-10-18  Bruno Haible  <bruno@clisp.org>
32047
32048         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
32049
32050         Move the getdomainname() declaration to <unistd.h>.
32051         * lib/getdomainname.h: Remove file.
32052         * lib/unistd.in.h (getdomainname): New declaration.
32053         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
32054         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
32055         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
32056         HAVE_GETDOMAINNAME.
32057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32058         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
32059         * modules/getdomainname (Files): Remove lib/getdomainname.h.
32060         (Depends-on): Add unistd, extensions.
32061         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32062         (Includes): Specify <unistd.h> instead of getdomainname.h.
32063         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
32064         HAVE_GETDOMAINNAME.
32065         * NEWS: Mention the change.
32066
32067 2008-10-18  Bruno Haible  <bruno@clisp.org>
32068
32069         * modules/dirent: New file.
32070         * m4/dirent_h.m4: New file.
32071         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
32072         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
32073         * modules/fchdir (Files): Remove lib/dirent.in.h.
32074         (Depends-on): Add dirent.
32075         (Makefile.am): Move rules to modules/dirent.
32076         * doc/posix-headers/dirent.texi: Mention the new module.
32077
32078 2008-10-18  Bruno Haible  <bruno@clisp.org>
32079
32080         Avoid -Wunused-parameter warnings in public gnulib header files.
32081         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
32082         macro.
32083         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
32084
32085 2008-10-18  Bruno Haible  <bruno@clisp.org>
32086
32087         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
32088         * doc/glibc-functions/error.texi: Mention the module 'error'.
32089         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
32090         * doc/glibc-functions/getdomainname.texi: Mention the module
32091         'getdomainname'.
32092         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
32093         * doc/glibc-functions/getpagesize.texi: Mention the module
32094         'getpagesize'.
32095         * doc/glibc-functions/getusershell.texi: Mention the module
32096         'getusershell'.
32097         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
32098         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
32099         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
32100         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
32101         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
32102         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
32103         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
32104         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
32105         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
32106         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
32107         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
32108         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
32109         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
32110         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
32111
32112 2008-10-17  Bruno Haible  <bruno@clisp.org>
32113
32114         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
32115         HP-UX and IRIX, use -0.0L.
32116         * tests/test-ceill.c (minus_zero): Likewise.
32117         * tests/test-floorl.c (minus_zero): Likewise.
32118         * tests/test-frexpl.c (minus_zero): Likewise.
32119         * tests/test-isnan.c (minus_zerol): Likewise.
32120         * tests/test-isnanl.h (minus_zero): Likewise.
32121         * tests/test-ldexpl.c (minus_zero): Likewise.
32122         * tests/test-roundl.c (minus_zero): Likewise.
32123         * tests/test-signbit.c (minus_zerol): Likewise.
32124         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
32125         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
32126         * tests/test-truncl.c (minus_zero): Likewise.
32127         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
32128         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
32129         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
32130         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
32131
32132 2008-10-17  Bruno Haible  <bruno@clisp.org>
32133
32134         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
32135         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
32136         that it gets activated only for gcc >= 3.0.
32137         * lib/dirent.in.h: Likewise.
32138         * lib/errno.in.h: Likewise.
32139         * lib/fcntl.in.h: Likewise.
32140         * lib/float.in.h: Likewise.
32141         * lib/iconv.in.h: Likewise.
32142         * lib/inttypes.in.h: Likewise.
32143         * lib/locale.in.h: Likewise.
32144         * lib/math.in.h: Likewise.
32145         * lib/netdb.in.h: Likewise.
32146         * lib/netinet_in.in.h: Likewise.
32147         * lib/search.in.h: Likewise.
32148         * lib/signal.in.h: Likewise.
32149         * lib/spawn.in.h: Likewise.
32150         * lib/stdarg.in.h: Likewise.
32151         * lib/stdint.in.h: Likewise.
32152         * lib/stdio.in.h: Likewise.
32153         * lib/stdlib.in.h: Likewise.
32154         * lib/string.in.h: Likewise.
32155         * lib/strings.in.h: Likewise.
32156         * lib/sys_file.in.h: Likewise.
32157         * lib/sys_ioctl.in.h: Likewise.
32158         * lib/sys_select.in.h: Likewise.
32159         * lib/sys_socket.in.h: Likewise.
32160         * lib/sys_stat.in.h: Likewise.
32161         * lib/sys_time.in.h: Likewise.
32162         * lib/sysexits.in.h: Likewise.
32163         * lib/time.in.h: Likewise.
32164         * lib/unistd.in.h: Likewise.
32165         * lib/wchar.in.h: Likewise.
32166         * lib/wctype.in.h: Likewise.
32167         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32168
32169 2008-10-17  Jim Meyering  <meyering@redhat.com>
32170
32171         ignore-value: don't depend on inline module
32172         * modules/ignore-value (Depends-on): Remove 'inline'.
32173         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
32174         Suggestion from Bruno Haible.
32175
32176 2008-10-17  Bruno Haible  <bruno@clisp.org>
32177
32178         New implementation of condition variables for Win32.
32179         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
32180         (gl_linked_waitqueue_t): New type.
32181         (gl_cond_t): Use it.
32182         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
32183         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
32184         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
32185         (glthread_cond_init_func, glthread_cond_wait_func,
32186         glthread_cond_timedwait_func, glthread_cond_signal_func,
32187         glthread_cond_broadcast_func, glthread_cond_destroy_func):
32188         Reimplemented on the basis of gl_linked_waitqueue_t.
32189         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
32190         gl_waitqueue_t.
32191         (gl_rwlock_t): Update.
32192         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
32193
32194 2008-10-17  Simon Josefsson  <simon@josefsson.org>
32195
32196         * modules/recvfrom (Depends-on): Add dependency on getpeername.
32197         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32198
32199 2008-10-17  Jim Meyering  <meyering@redhat.com>
32200
32201         ignore-value: new module
32202         * modules/ignore-value: New file.
32203         * lib/ignore-value.h: New file.
32204         * MODULES.html.sh (Compiler warning management): New section,
32205         just for this module.  More to come.
32206
32207 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
32208
32209         open-safer.c: avoid 'signed and unsigned in conditional...' warning
32210         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
32211         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
32212
32213 2008-10-16  Jim Meyering  <meyering@redhat.com>
32214
32215         openat-die.c: avoid 'no previous prototype' warning
32216         * lib/openat-die.c: Include "openat.h".
32217         Reported by Reuben Thomas <rrt@sc3d.org>.
32218
32219 2008-10-16  Simon Josefsson  <simon@josefsson.org>
32220
32221         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
32222         * lib/netdb.in.h: Fix typo.
32223         Reported by Bruno Haible  <bruno@clisp.org>
32224
32225         * lib/netdb.in.h: Include sys/socket.h for platforms without
32226         netdb.h, to get structures like hostent on MinGW.
32227         * modules/netdb (Depends-on): Add sys_socket.
32228
32229 2008-10-15  Simon Josefsson  <simon@josefsson.org>
32230
32231         * modules/netdb, modules/netdb-tests: New file.
32232         * m4/netdb_h.m4: New file.
32233         * lib/netdb.in.h: Add, currently just an empty file pending
32234         definitions.
32235         * tests/test-netdb.c: New file.
32236         * doc/posix-headers/netdb.texi: Mention that we replace it if
32237         needed.
32238         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32239         netdb.
32240
32241 2008-10-15  Simon Josefsson  <simon@josefsson.org>
32242
32243         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
32244         with code.
32245
32246 2008-10-13  Bruno Haible  <bruno@clisp.org>
32247
32248         * lib/glthread/cond.c (glthread_cond_wait_func,
32249         glthread_cond_timedwait_func): Add a comment.
32250
32251 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32252
32253         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
32254         * tests/test-select.c: Likewise,
32255
32256 2008-10-13  Bruno Haible  <bruno@clisp.org>
32257
32258         * lib/glthread/cond.c (glthread_cond_wait_func,
32259         glthread_cond_timedwait_func): Fix variable name.
32260         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32261
32262 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
32263
32264         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
32265         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
32266         struct sockaddr.sa_len.
32267         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
32268
32269 2008-10-13  Simon Josefsson  <simon@josefsson.org>
32270
32271         * build-aux/pmccabe2html: Add css and css_url parameters.
32272
32273 2008-10-12  Bruno Haible  <bruno@clisp.org>
32274
32275         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
32276         calling aclx_get.
32277         Reported by Rainer Tammer <tammer@tammer.net>.
32278
32279 2008-10-12  Bruno Haible  <bruno@clisp.org>
32280
32281         Use msvcrt aware primitives for creation/termination of Win32 threads.
32282         * lib/glthread/thread.c: Include <process.h>.
32283         (glthread_create_func): Use _beginthreadex instead of CreateThread.
32284         (wrapper_func): Update signature.
32285         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
32286
32287 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32288             Bruno Haible  <bruno@clisp.org>
32289
32290         Provide a Win32 implementation of the 'cond' module.
32291         * lib/glthread/cond.h [USE_WIN32]: New implementation.
32292         * lib/glthread/cond.c (glthread_cond_init_func,
32293         glthread_cond_wait_func, glthread_cond_timedwait_func,
32294         glthread_cond_signal_func, glthread_cond_broadcast_func,
32295         glthread_cond_destroy_func) [USE_WIN32]: New functions.
32296         * modules/cond (Dependencies): Add gettimeofday.
32297
32298 2008-10-11  Bruno Haible  <bruno@clisp.org>
32299
32300         Make sleep work on older versions of mingw.
32301         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
32302         only whether it exists.
32303         * doc/posix-functions/sleep.texi: Mention the problem with older
32304         versions of mingw.
32305
32306 2008-10-11  Bruno Haible  <bruno@clisp.org>
32307
32308         New module 'shutdown'.
32309         * modules/shutdown: New file.
32310         * lib/sys_socket.in.h (shutdown): New declaration.
32311         * lib/winsock.c (shutdown): New function.
32312         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32313         GNULIB_SHUTDOWN.
32314         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
32315         * doc/posix-functions/shutdown.texi: Document the new module.
32316
32317 2008-10-11  Jim Meyering  <meyering@redhat.com>
32318
32319         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
32320
32321 2008-10-11  Bruno Haible  <bruno@clisp.org>
32322
32323         New module 'fclose'.
32324         * modules/fclose: New file.
32325         * lib/stdio.in.h (fclose): New declaration.
32326         * lib/fclose.c: New file.
32327         * m4/fclose.m4: New file.
32328         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
32329         REPLACE_FCLOSE.
32330         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
32331         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
32332         REPLACE_FCLOSE.
32333         * modules/close (Depends-on): fclose.
32334         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
32335
32336 2008-10-11  Bruno Haible  <bruno@clisp.org>
32337
32338         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
32339         set errno and don't call _close.
32340
32341 2008-10-10  Bruno Haible  <bruno@clisp.org>
32342
32343         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
32344         ACL, not afterwards. Fixes test failure on Cygwin.
32345
32346 2008-10-09  Ben Pfaff  <blp@gnu.org>
32347
32348         * build-aux/announce-gen: Fix gnulib version related part of usage
32349         message.  Die with a useful error message if no tarballs are
32350         found.
32351
32352 2008-10-10  Jim Meyering  <meyering@redhat.com>
32353
32354         bootstrap: use git's --depth=N option only if it's supported
32355         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
32356         recognize the --depth option.  Reported by Pádraig Brady.
32357
32358 2008-10-09  Bruno Haible  <bruno@clisp.org>
32359
32360         New module 'ioctl'.
32361         * modules/ioctl: New file.
32362         * lib/sys_socket.in.h (ioctl): Remove declaration.
32363         * lib/winsock.c: Include <sys/ioctl.h>.
32364         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
32365         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
32366         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
32367         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
32368         * doc/posix-functions/ioctl.texi: Mention the new module.
32369
32370 2008-10-09  Bruno Haible  <bruno@clisp.org>
32371
32372         New module 'sys_ioctl'.
32373         * lib/sys_ioctl.in.h: New file.
32374         * m4/sys_ioctl_h.m4: New file.
32375         * modules/sys_ioctl: New file.
32376         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
32377
32378 2008-10-09  Bruno Haible  <bruno@clisp.org>
32379
32380         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
32381         * lib/winsock.c: Include <stdarg.h>.
32382         (rpl_ioctl): Change to second argument 'int' and then varargs.
32383
32384 2008-10-09  Bruno Haible  <bruno@clisp.org>
32385
32386         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
32387         when the sys_socket module is present and the system has <winsock2.h>.
32388
32389 2008-10-09  Bruno Haible  <bruno@clisp.org>
32390
32391         * doc/posix-functions/close.texi: Mention module 'close' instead of
32392         module 'sys_socket'.
32393
32394 2008-10-09  Bruno Haible  <bruno@clisp.org>
32395
32396         * doc/glibc-headers/sys_ioctl.texi: New file.
32397         * doc/gnulib.texi: Include it.
32398
32399 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
32400             Bruno Haible  <bruno@clisp.org>
32401
32402         Combine the two replacements of 'close'.
32403         * lib/sys_socket.in.h (close): Define to a reminder to include
32404         <unistd.h>.
32405         (_gl_close_fd_maybe_socket): New declaration.
32406         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
32407         * lib/winsock.c (close): Remove undefinition.
32408         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
32409         needed for the gnulib module 'close'.
32410         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
32411         define to an error symbol or to a warning, if suitable.
32412         * lib/close.c: Include <sys/socket.h>.
32413         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
32414         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
32415         UNISTD_H_HAVE_WINSOCK2_H.
32416         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
32417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32418         UNISTD_H_HAVE_WINSOCK2_H.
32419         * modules/sys_socket (Files): Add m4/unistd_h.m4.
32420         (configure.ac): Set a module indicator.
32421         (Makefile.am): Substitute GNULIB_CLOSE.
32422         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
32423         * modules/poll-tests (Depends-on): Add close.
32424         * modules/select-tests (Depends-on): Likewise.
32425
32426 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
32427             Bruno Haible  <bruno@clisp.org>
32428
32429         New module 'close'.
32430         * modules/close: New file.
32431         * lib/unistd.in.h (close): Move declaration out of the
32432         FCHDIR_REPLACEMENT scope.
32433         (_gl_unregister_fd): New declaration.
32434         * lib/close.c: New file.
32435         * lib/fchdir.c (rpl_close): Remove function.
32436         * m4/close.m4: New file.
32437         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
32438         close.
32439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
32440         REPLACE_CLOSE.
32441         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
32442         REPLACE_CLOSE.
32443         * modules/fchdir (Depends-on): Add close.
32444
32445 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
32446             Bruno Haible  <bruno@clisp.org>
32447
32448         * lib/fcntl.in.h (open): Simplify conditionals.
32449         (_gl_register_fd): New declaration.
32450         * lib/fchdir.c (rpl_open): Remove function.
32451         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
32452         also.
32453         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
32454         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
32455         open.
32456
32457 2008-10-09  Jim Meyering  <meyering@redhat.com>
32458
32459         GNUmakefile: use the more name-space-friendly "_version"
32460         * top/GNUmakefile (_dummy): Update.
32461         (_version): Rename from "version".
32462
32463 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
32464             Bruno Haible  <bruno@clisp.org>
32465
32466         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
32467         rpl_close.
32468         (_gl_register_fd): New function, extracted from rpl_open.
32469         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
32470         (rpl_open, rpl_opendir): Use _gl_register_fd.
32471
32472 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
32473
32474         Fix organization of 'open' replacement.
32475         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
32476         (gl_FUNC_OPEN): Use it.
32477         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
32478
32479 2008-10-08  Bruno Haible  <bruno@clisp.org>
32480
32481         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
32482
32483 2008-10-08  Simon Josefsson  <simon@josefsson.org>
32484
32485         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
32486         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
32487         listen).
32488
32489 2008-10-08  Eric Blake  <ebb9@byu.net>
32490
32491         GNUmakefile: add 'make version' target
32492         * top/GNUmakefile (_curr-ver): Split version update rules...
32493         (version): ...into a target.
32494
32495 2008-10-07  Bruno Haible  <bruno@clisp.org>
32496
32497         Use a more portable replacement expression for -0.0L.
32498         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
32499         instead of -0.0L. Fix m4 quotation.
32500
32501         * tests/test-signbit.c: Include <float.h>.
32502         (minus_zero): New variable.
32503         (test_signbitl): Use minus_zero instead of -zero.
32504         * modules/signbit-tests (Depends-on): Add float.
32505
32506         * tests/test-ceill.c: Include <float.h>.
32507         (zero): Remove variable.
32508         (minus_zero): New variable.
32509         (main): Use minus_zero instead of -zero.
32510         * modules/ceill-tests (Depends-on): Add float.
32511
32512         * tests/test-floorl.c: Include <float.h>.
32513         (zero): Remove variable.
32514         (minus_zero): New variable.
32515         (main): Use minus_zero instead of -zero.
32516         * modules/floorl-tests (Depends-on): Add float.
32517
32518         * tests/test-roundl.c: Include <float.h>.
32519         (zero): Remove variable.
32520         (minus_zero): New variable.
32521         (main): Use minus_zero instead of -zero.
32522         * modules/roundl-tests (Depends-on): Add float.
32523
32524         * tests/test-truncl.c: Include <float.h>.
32525         (zero): Remove variable.
32526         (minus_zero): New variable.
32527         (main): Use minus_zero instead of -zero.
32528         * modules/truncl-tests (Depends-on): Add float.
32529
32530         * tests/test-frexpl.c (zero): Remove variable.
32531         (minus_zero): New variable.
32532         (main): Use minus_zero instead of -zero.
32533         * modules/frexpl-tests (Depends-on): Add float.
32534
32535         * tests/test-isnan.c (zerol): Remove variable.
32536         (minus_zerol): New variable.
32537         (test_long_double): Use minus_zerol instead of -zerol.
32538         * modules/isnan-tests (Depends-on): Add float.
32539
32540         * tests/test-isnanl.h (zero): Remove variable.
32541         (minus_zero): New variable.
32542         (main): Use minus_zero instead of -zero.
32543         * modules/isnanl-nolibm-tests (Depends-on): Add float.
32544         * modules/isnanl-tests (Depends-on): Add float.
32545
32546         * tests/test-ldexpl.c (zero): Remove variable.
32547         (minus_zero): New variable.
32548         (main): Use minus_zero instead of -zero.
32549         * modules/ldexpl-tests (Depends-on): Add float.
32550
32551         * tests/test-snprintf-posix.h (zerol): Remove variable.
32552         (minus_zerol): New variable.
32553         (test_function): Use minus_zerol instead of -zerol.
32554         * modules/snprintf-posix-tests (Depends-on): Add float.
32555         * modules/vsnprintf-posix-tests (Depends-on): Add float.
32556
32557         * tests/test-sprintf-posix.h (zerol): Remove variable.
32558         (minus_zerol): New variable.
32559         (test_function): Use minus_zerol instead of -zerol.
32560         * modules/sprintf-posix-tests (Depends-on): Add float.
32561         * modules/vsprintf-posix-tests (Depends-on): Add float.
32562
32563         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
32564         (minus_zerol): New variable.
32565         (test_function): Use minus_zerol instead of -zerol.
32566         * modules/vasnprintf-posix-tests (Depends-on): Add float.
32567
32568         * tests/test-vasprintf-posix.c (zerol): Remove variable.
32569         (minus_zerol): New variable.
32570         (test_function): Use minus_zerol instead of -zerol.
32571         * modules/vasprintf-posix-tests (Depends-on): Add float.
32572
32573 2008-10-07  Simon Josefsson  <simon@josefsson.org>
32574
32575         * MODULES.html.sh (Support for building documentation): Mention
32576         pmccabe2html.  Sort entries.
32577
32578         Add pmccabe2html module, from gnupdf.
32579         * build-aux/pmccabe.css: New file.
32580         * build-aux/pmccabe2html: New file.
32581         * m4/pmccabe2html.m4: New file.
32582         * modules/pmccabe2html: New file.
32583
32584 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
32585
32586         flock: new module
32587         * MODULES.html.sh: Add to list of modules.
32588         * lib/flock.c: flock implementation for Windows and Unix systems
32589         which have fcntl.
32590         * doc/glibc-functions/flock.texi: Update documentation.
32591         * lib/sys_file.in.h: <sys/file.h> header file.
32592         * m4/flock.m4: M4 macros.
32593         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
32594         * modules/flock: flock module.
32595         * modules/flock-tests: flock tests module.
32596         * modules/sys_file: sys/file.h module.
32597         * tests/test-flock.c: test suite for flock.
32598
32599 2008-10-06  Jim Meyering  <meyering@redhat.com>
32600
32601         bootstrap: check for LT_INIT more portably still ;-)
32602         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
32603         Spotted by Bruno Haible.
32604
32605 2008-10-06  Eric Blake  <ebb9@byu.net>
32606
32607         test-signbit: avoid tripping Irix cc bug on -0.0L
32608         * tests/test-signbit.c (minus_zerol): Delete, and replace with
32609         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
32610         entire testsuite consistent and avoids an Irix 6.2 bug.
32611
32612 2008-10-05  Bruno Haible  <bruno@clisp.org>
32613             Jim Meyering  <jim@meyering.net>
32614
32615         Add an option for ignoring EPIPE during close_stdout.
32616         * lib/closeout.h: Include <stdbool.h>.
32617         (close_stdout_set_ignore_EPIPE): New declaration.
32618         * lib/closeout.c: Include <stdbool.h>.
32619         (ignore_EPIPE): New variable.
32620         (close_stdout_set_ignore_EPIPE): New function.
32621         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
32622         * lib/close-stream.c (close_stream): Mention the possible EPIPE
32623         failure.
32624         * modules/closeout (Depends-on): Add stdbool.
32625
32626 2008-10-05  Bruno Haible  <bruno@clisp.org>
32627
32628         * modules/accept: New file.
32629         * modules/bind: New file.
32630         * modules/connect: New file.
32631         * modules/getpeername: New file.
32632         * modules/getsockname: New file.
32633         * modules/getsockopt: New file.
32634         * modules/listen: New file.
32635         * modules/recv: New file.
32636         * modules/recvfrom: New file.
32637         * modules/send: New file.
32638         * modules/sendto: New file.
32639         * modules/setsockopt: New file.
32640         * modules/socket: New file.
32641         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
32642         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32643         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
32644         the particular module is requested. Add a link warning when the
32645         particular module is not requested.
32646         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
32647         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
32648         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
32649         the particular module is requested.
32650         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
32651         gl_SYS_SOCKET_H_DEFAULTS): New macros.
32652         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
32653         * modules/sys_socket (Depends-on): Add link-warning.
32654         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
32655         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
32656         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
32657         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
32658         GL_LINK_WARNING.
32659         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
32660         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
32661         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
32662         * doc/posix-functions/getpeername.texi: Mention the new module
32663         'getpeername'.
32664         * doc/posix-functions/getsockname.texi: Mention the new module
32665         'getsockname'.
32666         * doc/posix-functions/getsockopt.texi: Mention the new module
32667         'getsockopt'.
32668         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
32669         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
32670         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
32671         * doc/posix-functions/send.texi: Mention the new module 'send'.
32672         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
32673         * doc/posix-functions/setsockopt.texi: Mention the new module
32674         'setsockopt'.
32675         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
32676         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
32677         listen, connect, accept.
32678         * modules/select-tests (Depends-on): Likewise.
32679
32680 2008-10-05  Bruno Haible  <bruno@clisp.org>
32681
32682         * lib/winsock.c (strerror): Remove unused #undef.
32683         (rpl_close): Remove unused local variable.
32684
32685         * modules/sys_socket (Depends-on); Add errno.
32686
32687 2008-10-05  Bruno Haible  <bruno@clisp.org>
32688
32689         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
32690         (select): Add a link warning when the 'select' module is not used.
32691         * modules/sys_select (Depends-on): Add link-warning.
32692         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
32693         Suggested by Paolo Bonzini.
32694
32695 2008-10-05  Jim Meyering  <meyering@redhat.com>
32696
32697         bootstrap: check for LT_INIT more portably
32698         * build-aux/bootstrap: Avoid using grep -E, since it's not
32699         portable enough.  Suggestion from Bruno Haible.
32700
32701 2008-10-05  Bruno Haible  <bruno@clisp.org>
32702
32703         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
32704         as being fixed by gnulib.
32705
32706 2008-10-05  Bruno Haible  <bruno@clisp.org>
32707
32708         * modules/select-tests: New file, mostly copied from
32709         modules/sys_select-tests.
32710         * tests/test-select.c: New file, mostly copied from
32711         tests/test-sys_select.c.
32712         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
32713         * modules/sys_select-tests (Depends-on): Remove all dependencies.
32714         (Makefile.am): Remove test_sys_select_LDADD.
32715
32716         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
32717         to an undefined symbol, for an error message.
32718         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
32719         (gl_SYS_SELECT_H_DEFAULTS): New macro.
32720         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
32721         winsock-select.c here.
32722         * modules/sys_select (Files): Remove lib/winsock-select.c.
32723         (Depends-on): Remove alloca.
32724         (Makefile.am): Substitute GNULIB_SELECT.
32725         * modules/select: New file.
32726         * doc/posix-functions/select.texi: Update.
32727
32728 2008-10-05  Bruno Haible  <bruno@clisp.org>
32729
32730         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
32731         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
32732         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
32733         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
32734         getdtablesize.
32735         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
32736         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
32737
32738 2008-10-05  Bruno Haible  <bruno@clisp.org>
32739
32740         * modules/getdtablesize-tests: New file.
32741         * tests/test-getdtablesize.c: New file.
32742
32743         New module 'getdtablesize'.
32744         * lib/unistd.in.h (getdtablesize): New declaration.
32745         * lib/getdtablesize.c: New file.
32746         * m4/getdtablesize.m4: New file.
32747         * modules/getdtablesize: New file.
32748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32749         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
32750         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
32751         HAVE_GETDTABLESIZE.
32752         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
32753
32754 2008-10-05  Bruno Haible  <bruno@clisp.org>
32755
32756         * modules/sched (Makefile.am): Fix typo.
32757         Reported by Simon Josefsson.
32758
32759 2008-10-05  Jim Meyering  <meyering@redhat.com>
32760
32761         bootstrap: check for LT_INIT, too
32762         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
32763         are deprecated.  Suggestion from Ralf Wildenhues.
32764
32765 2008-10-05  Bruno Haible  <bruno@clisp.org>
32766
32767         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
32768         overriding them by ours.
32769         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
32770
32771 2008-10-05  Jim Meyering  <meyering@redhat.com>
32772
32773         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
32774         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
32775         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
32776
32777 2008-10-04  Bruno Haible  <bruno@clisp.org>
32778
32779         * modules/dup2 (License): Change to LGPLv2+.
32780         * modules/sleep (License): Likewise.
32781         * modules/perror (License): Likewise.
32782         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
32783         Blake.
32784         * modules/signal (License): Likewise.
32785         * modules/sigprocmask (License): Likewise.
32786         * modules/raise (License): Change to LGPLv2+, with approval by Jim
32787         Meyering.
32788
32789 2008-10-04  Bruno Haible  <bruno@clisp.org>
32790
32791         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
32792         Reported by Rainer Tammer <tammer@tammer.net>.
32793
32794 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
32795             Bruno Haible  <bruno@clisp.org>
32796
32797         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
32798         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
32799         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
32800
32801 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
32802
32803         filevercmp: new module
32804         * lib/filevercmp.h: New function filevercmp comparing version strings.
32805         * lib/filevercmp.c: Implementation of filevercmp function.
32806         * modules/filevercmp: Module metadata.
32807         * tests/test-filevercmp.c: Unit test for new module.
32808         * modules/filevercmp-tests: Unit test metadata.
32809         * MODULES.html.sh: Add filevercmp module.
32810
32811 2008-10-03  Bruno Haible  <bruno@clisp.org>
32812
32813         * lib/c-ctype.h: Add comment.
32814         Reported by Jim Meyering.
32815
32816 2008-10-02  Bruno Haible  <bruno@clisp.org>
32817
32818         * modules/posix_spawn-internal (Depends-on): Add 'open'.
32819
32820 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
32821
32822         * build-aux/bootstrap: Allow renaming bootstrap, and change the
32823         name of bootstrap.conf accordingly.
32824
32825 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
32826
32827         * build-aux/bootstrap: Install git-merge-changelog configuration
32828         items into .gitconfig if needed.
32829
32830 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
32831
32832         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
32833         git repository, and initialize/update it accordingly.
32834
32835 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
32836
32837         * modules/fsync-tests: New file.
32838         * tests/test-fsync.c: New file.
32839
32840         New module 'fsync'.
32841         * lib/fsync.c: New file.
32842         * m4/fsync.m4: New file.
32843         * modules/fsync: New file.
32844         * lib/unistd.in.h (fsync): New declaration.
32845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
32846         GNULIB_FSYNC and HAVE_FSYNC.
32847         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
32848         * MODULES.html.sh (posix_functions): Add fsync.
32849         * doc/posix-functions/fsync.texi: Mention the new module.
32850
32851 2008-10-02  Jim Meyering  <meyering@redhat.com>
32852
32853         fts.c: sync with similar code from coreutils' remove.c
32854         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
32855         Guard also with "#if defined __linux__", since for now at least,
32856         this code is Linux-kernel-specific.
32857
32858 2008-10-02  Jim Meyering  <meyering@redhat.com>
32859
32860         fts: bug fixes
32861         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
32862         Include <sys/vfs.h>, not <sys/statfs.h>.
32863
32864         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
32865         Include <sys/vfs.h>, not <sys/statfs.h>.
32866
32867 2008-10-01  Bruno Haible  <bruno@clisp.org>
32868
32869         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
32870         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
32871         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
32872         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
32873         * doc/posix-functions/posix_spawnp.texi: Likewise.
32874         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
32875         whether posix_spawn actually works.
32876         * m4/pipe.m4 (gl_PIPE): Likewise.
32877         * modules/execute (Files): Add m4/posix_spawn.m4.
32878         * modules/pipe (Files): Add m4/posix_spawn.m4.
32879         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
32880
32881 2008-10-01  Jim Meyering  <meyering@redhat.com>
32882
32883         remove trailing spaces
32884         * NEWS: Likewise.
32885         * lib/poll.c (poll): Likewise.
32886         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
32887         * lib/winsock.c (rpl_close): Likewise.
32888         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
32889         * modules/yield: Likewise.
32890         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
32891         * tests/test-sys_select.c (connect_to_socket): Likewise.
32892
32893         fts.c: adjust a new interface to be more generally useful
32894         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
32895         (fts_build): Adjust caller.
32896
32897 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32898
32899         * modules/cond-tests: New file.
32900         * tests/test-cond.c: New file.
32901
32902 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32903             Bruno Haible  <bruno@clisp.org>
32904
32905         * modules/cond (Dependencies): Add errno, time.
32906         * lib/glthread/cond.h: Include <time.h>.
32907         (gl_cond_define, gl_cond_define_initialized): Use the same definition
32908         across platforms.
32909
32910 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32911             Bruno Haible  <bruno@clisp.org>
32912
32913         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
32914
32915 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32916             Bruno Haible  <bruno@clisp.org>
32917
32918         * modules/tls-tests (Depends-on): Add thread, yield.
32919         (configure.ac): Remove all checks.
32920         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
32921         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
32922         gl_thread_self): Remove definitions. Include glthread/thread.h and
32923         glthread/yield.h instead.
32924         (test_tls): Pass an additional NULL argument to gl_thread_join.
32925
32926 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32927             Bruno Haible  <bruno@clisp.org>
32928
32929         * modules/lock-tests (Depends-on): Add thread, yield.
32930         (configure.ac): Remove all checks.
32931         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
32932         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
32933         gl_thread_self): Remove definitions. Include glthread/thread.h and
32934         glthread/yield.h instead.
32935         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
32936         additional NULL argument to gl_thread_join.
32937
32938 2008-09-30  Bruno Haible  <bruno@clisp.org>
32939
32940         Fix the Win32 implementation of the 'thread' module.
32941         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
32942         pointer type.
32943         (gl_thread_self): Invoke gl_thread_self_func.
32944         (gl_thread_self_func): New declaration.
32945         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
32946         (do_init_self_key, init_self_key): New functions.
32947         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
32948         Remove some fields.
32949         (running_threads, running_lock): Remove variables.
32950         (get_current_thread_handle): New function.
32951         (gl_thread_self_func, wrapper_func, glthread_create_func,
32952         glthread_join_func, gl_thread_exit_func): Largely rewritten and
32953         simplified.
32954
32955 2008-09-30  Bruno Haible  <bruno@clisp.org>
32956
32957         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
32958         files.
32959
32960 2008-09-30  Jim Meyering  <meyering@redhat.com>
32961
32962         fts.m4: correct the test for statfs.f_type
32963         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
32964         when checking for statfs.f_type.
32965
32966 2008-09-15  Simon Josefsson  <simon@josefsson.org>
32967
32968         tests: avoid some compiler warnings
32969         * tests/test-memchr.c (main): Pass NULL indirectly.
32970         * tests/test-getdate.c (main): Remove unused variable 'ret'.
32971
32972 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
32973
32974         getdate.y: disallow countable dayshifts like "4 yesterday ago"
32975         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
32976         exactly specified dayshifts.
32977         (dayshift): New rule.
32978         (rel): Add dayshift.
32979         (relative_time_table) [tomorrow, yesterday, today, now]:
32980         Use tDAY_SHIFT in place of tDAY_UNIT.
32981         * tests/test-getdate.c: Add tests for now-disallowed countable
32982         dayshifts, e.g., "4 yesterday ago".
32983
32984 2008-09-29  Bruno Haible  <bruno@clisp.org>
32985
32986         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
32987         * tests/test-posix_spawn1.in.sh: Renamed from
32988         tests/test-posix_spawn.in.sh.
32989         * tests/test-posix_spawn2.c: New file.
32990         * tests/test-posix_spawn2.in.sh: New file.
32991         * modules/posix_spawnp-tests (Files): Update.
32992         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
32993
32994 2008-09-29  Bruno Haible  <bruno@clisp.org>
32995
32996         Propagate effects of putenv/setenv/unsetenv to child processes.
32997         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
32998         * lib/pipe.c (create_pipe): Likewise.
32999
33000 2008-09-29  Bruno Haible  <bruno@clisp.org>
33001
33002         Enable use of shell scripts as executables in mingw.
33003         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
33004         run the program as a shell script.
33005         * lib/pipe.c (create_pipe): Likewise.
33006         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
33007         resulting array.
33008
33009 2008-09-29  Eric Blake  <ebb9@byu.net>
33010
33011         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
33012
33013 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
33014
33015         * doc/posix-functions/accept.texi: Update mingw problems.
33016         * doc/posix-functions/bind.texi: Update mingw problems.
33017         * doc/posix-functions/close.texi: Update mingw problems.
33018         * doc/posix-functions/connect.texi: Update mingw problems.
33019         * doc/posix-functions/getpeername.texi: Update mingw problems.
33020         * doc/posix-functions/getsockname.texi: Update mingw problems.
33021         * doc/posix-functions/getsockopt.texi: Update mingw problems.
33022         * doc/posix-functions/ioctl.texi: Update mingw problems.
33023         * doc/posix-functions/listen.texi: Update mingw problems.
33024         * doc/posix-functions/recv.texi: Update mingw problems.
33025         * doc/posix-functions/recvfrom.texi: Update mingw problems.
33026         * doc/posix-functions/select.texi: Update mingw problems.
33027         * doc/posix-functions/send.texi: Update mingw problems.
33028         * doc/posix-functions/sendto.texi: Update mingw problems.
33029         * doc/posix-functions/setsockopt.texi: Update mingw problems.
33030         * doc/posix-functions/socket.texi: Update mingw problems.
33031
33032 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
33033             Bruno Haible  <bruno@clisp.org>
33034
33035         * lib/sys_select.in.h: Include sys/time.h.
33036         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
33037         * modules/sys_select: Depend on sys_time.
33038         * tests/test-sys_select.c: Test that sys/select.h defines struct
33039         timeval fully.
33040
33041 2008-09-29  Bruno Haible  <bruno@clisp.org>
33042
33043         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
33044         * lib/sys_select.in.h: Likewise.
33045
33046 2008-09-29  Bruno Haible  <bruno@clisp.org>
33047
33048         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
33049
33050 2008-09-29  Bruno Haible  <bruno@clisp.org>
33051
33052         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
33053         Set LIBSOCKET instead of augmenting LIBS.
33054         * modules/sockets (Link): New section.
33055         * modules/sockets-tests (test_sockets_LDADD): New variable.
33056         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
33057         * modules/poll-tests (test_poll_LDADD): New variable.
33058         * NEWS: Document the change.
33059
33060 2008-09-29  Bruno Haible  <bruno@clisp.org>
33061
33062         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
33063         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
33064         ARPA_INET_H directly.
33065         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33066
33067 2008-09-28  Bruno Haible  <bruno@clisp.org>
33068
33069         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
33070         from gl_HEADER_SYS_SOCKET.
33071         (gl_HEADER_SYS_SOCKET): Invoke it.
33072         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33073
33074 2008-09-28  Bruno Haible  <bruno@clisp.org>
33075
33076         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
33077         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
33078         Needed on OSF/1 4.0.
33079
33080 2008-09-28  Bruno Haible  <bruno@clisp.org>
33081
33082         Override open more carefully.
33083         * lib/open.c (orig_open): New function.
33084         (rpl_open): Use orig_open instead of open.
33085         * lib/fcntl.in.h: Add special invocation convention.
33086         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
33087         (gl_FUNC_OPEN): Invoke it.
33088
33089         Override freopen more carefully.
33090         * lib/freopen.c (orig_freopen): New function.
33091         (rpl_freopen): Use orig_freopen instead of freopen.
33092         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
33093         (gl_FUNC_FREOPEN): Invoke it.
33094
33095         Override fopen more carefully.
33096         * lib/fopen.c (orig_fopen): New function.
33097         (rpl_fopen): Use orig_fopen instead of fopen.
33098         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
33099         (gl_FUNC_FOPEN): Invoke it.
33100         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
33101
33102 2008-09-28  Bruno Haible  <bruno@clisp.org>
33103
33104         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
33105         SIGPIPE.
33106
33107 2008-09-28  Bruno Haible  <bruno@clisp.org>
33108
33109         * tests/test-sigaction.c (handler, main): Disable the check whether
33110         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
33111         glibc systems with LinuxThreads.
33112
33113 2008-09-28  Bruno Haible  <bruno@clisp.org>
33114
33115         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
33116
33117         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
33118         with AIX xlc.
33119         * lib/fcntl.in.h (open): Likewise.
33120         Reported by Rainer Tammer <tammer@tammer.net>.
33121
33122 2008-09-28  Bruno Haible  <bruno@clisp.org>
33123
33124         * modules/posix_spawnp-tests: New file.
33125         * tests/test-posix_spawn.c: New file.
33126         * tests/test-posix_spawn.in.sh: New file.
33127
33128         New module 'posix_spawnp'.
33129         * modules/posix_spawnp: New file.
33130         * lib/spawnp.c: New file, from GNU libc with modifications.
33131         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
33132
33133         New module 'posix_spawn'.
33134         * modules/posix_spawn: New file.
33135         * lib/spawn.c: New file, from GNU libc with modifications.
33136         * doc/posix-functions/posix_spawn.texi: Mention the new module.
33137
33138         New module 'posix_spawnattr_destroy'.
33139         * modules/posix_spawnattr_destroy: New file.
33140         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
33141         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
33142         module.
33143
33144         New module 'posix_spawnattr_setsigmask'.
33145         * modules/posix_spawnattr_setsigmask: New file.
33146         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
33147         modifications.
33148         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
33149         new module.
33150
33151         New module 'posix_spawnattr_getsigmask'.
33152         * modules/posix_spawnattr_getsigmask: New file.
33153         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
33154         modifications.
33155         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
33156         new module.
33157
33158         New module 'posix_spawnattr_setsigdefault'.
33159         * modules/posix_spawnattr_setsigdefault: New file.
33160         * lib/spawnattr_setdefault.c: New file, from GNU libc with
33161         modifications.
33162         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
33163         new module.
33164
33165         New module 'posix_spawnattr_getsigdefault'.
33166         * modules/posix_spawnattr_getsigdefault: New file.
33167         * lib/spawnattr_getdefault.c: New file, from GNU libc with
33168         modifications.
33169         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
33170         new module.
33171
33172         New module 'posix_spawnattr_setschedpolicy'.
33173         * modules/posix_spawnattr_setschedpolicy: New file.
33174         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
33175         modifications.
33176         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
33177         new module.
33178
33179         New module 'posix_spawnattr_getschedpolicy'.
33180         * modules/posix_spawnattr_getschedpolicy: New file.
33181         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
33182         modifications.
33183         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
33184         new module.
33185
33186         New module 'posix_spawnattr_setschedparam'.
33187         * modules/posix_spawnattr_setschedparam: New file.
33188         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
33189         modifications.
33190         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
33191         new module.
33192
33193         New module 'posix_spawnattr_getschedparam'.
33194         * modules/posix_spawnattr_getschedparam: New file.
33195         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
33196         modifications.
33197         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
33198         new module.
33199
33200         New module 'posix_spawnattr_setpgroup'.
33201         * modules/posix_spawnattr_setpgroup: New file.
33202         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
33203         modifications.
33204         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
33205         module.
33206
33207         New module 'posix_spawnattr_getpgroup'.
33208         * modules/posix_spawnattr_getpgroup: New file.
33209         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
33210         modifications.
33211         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
33212         module.
33213
33214         New module 'posix_spawnattr_setflags'.
33215         * modules/posix_spawnattr_setflags: New file.
33216         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
33217         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
33218         module.
33219
33220         New module 'posix_spawnattr_getflags'.
33221         * modules/posix_spawnattr_getflags: New file.
33222         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
33223         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
33224         module.
33225
33226         New module 'posix_spawnattr_init'.
33227         * modules/posix_spawnattr_init: New file.
33228         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
33229         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
33230         module.
33231
33232         New module 'posix_spawn_file_actions_destroy'.
33233         * modules/posix_spawn_file_actions_destroy: New file.
33234         * lib/spawn_faction_destroy.c: New file, from GNU libc with
33235         modifications.
33236         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
33237         the new module.
33238
33239         New module 'posix_spawn_file_actions_addopen'.
33240         * modules/posix_spawn_file_actions_addopen: New file.
33241         * lib/spawn_faction_addopen.c: New file, from GNU libc with
33242         modifications.
33243         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
33244         the new module.
33245
33246         New module 'posix_spawn_file_actions_adddup2'.
33247         * modules/posix_spawn_file_actions_adddup2: New file.
33248         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
33249         modifications.
33250         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
33251         the new module.
33252
33253         New module 'posix_spawn_file_actions_addclose'.
33254         * modules/posix_spawn_file_actions_addclose: New file.
33255         * lib/spawn_faction_addclose.c: New file, from GNU libc with
33256         modifications.
33257         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
33258         the new module.
33259
33260         New module 'posix_spawn_file_actions_init'.
33261         * modules/posix_spawn_file_actions_init: New file.
33262         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
33263         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
33264         new module.
33265
33266         New module 'posix_spawn-internal'.
33267         * modules/posix_spawn-internal: New file.
33268         * lib/spawn_int.h: New file, from GNU libc with modifications.
33269         * lib/spawni.c: New file, from GNU libc with modifications.
33270         * m4/posix_spawn.m4: New file.
33271
33272         New module 'spawn'.
33273         * modules/spawn: New file.
33274         * lib/spawn.in.h: New file, from GNU libc with modifications.
33275         * m4/spawn_h.m4: New file.
33276         * doc/posix-headers/spawn.texi: Mention the new module.
33277
33278 2008-09-28  Bruno Haible  <bruno@clisp.org>
33279
33280         * modules/sched-tests: New file.
33281         * tests/test-sched.c: New file.
33282
33283         New module 'sched'.
33284         * modules/sched: New file.
33285         * lib/sched.in.h: New file.
33286         * m4/sched_h.m4: New file.
33287         * doc/posix-headers/sched.texi: Mention the new module.
33288
33289 2008-09-27  Eric Blake  <ebb9@byu.net>
33290
33291         Fix previous patch, and tweak references to $0.
33292         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
33293         (func_version, func_gnulib_dir): Don't call this program
33294         gnulib-tool.
33295         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
33296         with using $0 in function.
33297         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
33298         (func_fatal_error): Reuse the name the user invoked us with.
33299
33300 2008-09-27  Bruno Haible  <bruno@clisp.org>
33301
33302         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
33303         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
33304         (gl_ICONV_H): Not here.
33305         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
33306         instead of assigning ICONV_H directly.
33307
33308         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
33309         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
33310         WCHAR_H directly.
33311
33312 2008-09-27  Bruno Haible  <bruno@clisp.org>
33313
33314         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
33315         * modules/arpa_inet (Depends-on): Add link-warning.
33316         (Makefile.am): Insert the definition of GL_LINK-WARNING.
33317         * modules/unistd (Makefile.am): Likewise.
33318
33319 2008-09-26  Bruno Haible  <bruno@clisp.org>
33320
33321         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
33322         variables.
33323         (func_version): Essentially copied from gnulib-tool.
33324         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
33325         func_readlink): Copied from gnulib-tool.
33326
33327 2008-09-26  Bruno Haible  <bruno@clisp.org>
33328
33329         * gnulib-tool (func_version): Change directory to $gnulib_dir before
33330         invoking git-version-gen.
33331
33332 2008-09-26  Bruno Haible  <bruno@clisp.org>
33333
33334         * posix-modules: Update to directory names changed on 2008-01-19.
33335         Remove commas in output before splitting into words. No more need to
33336         avoid 'ftruncate' since 2007-02-19.
33337
33338 2008-09-26  Bruno Haible  <bruno@clisp.org>
33339
33340         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
33341
33342 2008-09-26  Bruno Haible  <bruno@clisp.org>
33343
33344         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
33345         * modules/fwriteerror (Depends-on): Add errno.
33346
33347 2008-09-26  Bruno Haible  <bruno@clisp.org>
33348
33349         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
33350         * tests/test-vc-list-files-cvs.sh: Likewise.
33351
33352 2008-09-26  Bruno Haible  <bruno@clisp.org>
33353
33354         * doc/posix-headers/sys_resource.texi: Reorder items.
33355
33356 2008-09-26  Jim Meyering  <meyering@redhat.com>
33357
33358         fts: tweak inode comparison function
33359         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
33360         inode numbers, as documented.
33361
33362         fts: sort dirent entries on inode number before traversing
33363         This avoids a quadratic, seek-related performance penalty when
33364         operating on a directory containing many entries (measurable at 10k;
33365         3.5 hours at 2 million entries with a cold cache) on certain types
33366         of file systems, including ext3 and ext4, but not tmpfs.
33367         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
33368         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
33369         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
33370         (fs_handles_readdir_ordered_dirents_efficiently): New function.
33371         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
33372         (fts_build): Set the stat.st_ino member from D_INO.
33373         If it is likely to be useful, sort dirent entries on inode number.
33374
33375         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
33376         and the struct statfs.f_type member.
33377         * modules/fts (Depends-on): Add d-ino.
33378
33379 2008-09-26  Bruno Haible  <bruno@clisp.org>
33380
33381         * modules/sigpipe-die (Depends-on): Add sigpipe.
33382
33383         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
33384         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
33385         and GNULIB_STDIO_H_SIGPIPE are set.
33386         * lib/stdio-write.c: New file.
33387         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
33388         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
33389         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
33390         REPLACE_STDIO_WRITE_FUNCS.
33391         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
33392         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
33393         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
33394         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
33395         * modules/stdio (Files): Add lib/stdio-write.c.
33396         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
33397         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
33398         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
33399         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
33400         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
33401         REPLACE_FPRINTF_POSIX.
33402         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
33403         REPLACE_PRINTF_POSIX.
33404         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
33405         REPLACE_VFPRINTF_POSIX.
33406         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
33407         REPLACE_VPRINTF_POSIX.
33408         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
33409         SIGPIPE issue.
33410         * doc/posix-functions/fputc.texi: Likewise.
33411         * doc/posix-functions/fputs.texi: Likewise.
33412         * doc/posix-functions/fwrite.texi: Likewise.
33413         * doc/posix-functions/printf.texi: Likewise.
33414         * doc/posix-functions/putc.texi: Likewise.
33415         * doc/posix-functions/putchar.texi: Likewise.
33416         * doc/posix-functions/puts.texi: Likewise.
33417         * doc/posix-functions/vfprintf.texi: Likewise.
33418         * doc/posix-functions/vprintf.texi: Likewise.
33419
33420         * modules/safe-write (Depends-on): Add write.
33421
33422         * modules/sigpipe-tests: New file.
33423         * tests/test-sigpipe.c: New file.
33424         * tests/test-sigpipe.sh: New file.
33425
33426         * modules/write: New file.
33427         * lib/unistd.in.h: Include <sys/types.h>.
33428         (write): New declaration.
33429         * lib/write.c: New file.
33430         * m4/write.m4: New file.
33431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33432         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
33433         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
33434         GNULIB_WRITE, REPLACE_WRITE.
33435         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
33436         and the SIGPIPE issue.
33437
33438         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
33439         (raise): New declaration.
33440         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
33441         (ext_signal): New function.
33442         (rpl_raise): New function.
33443         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
33444         GNULIB_SIGNAL_H_SIGPIPE.
33445         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
33446         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
33447
33448         * modules/sigpipe: New file.
33449         * m4/sigpipe.m4: New file.
33450
33451 2008-09-25  Derek Price  <derek@ximbiot.com>
33452             Bruno Haible  <bruno@clisp.org>
33453
33454         * gnulib-tool (func_import): Report all license incompatibilities, not
33455         just the first one.
33456
33457 2008-09-25  Bruno Haible  <bruno@clisp.org>
33458
33459         * gnulib-tool (func_import): When computing the edits, consider not
33460         only the Makefile.ams that exist but also those that will be generated.
33461
33462 2008-09-25  Simon Josefsson  <simon@josefsson.org>
33463
33464         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
33465         fixes gnulib-tool --test warning about duplicate dependency.
33466
33467 2008-09-25  Bruno Haible  <bruno@clisp.org>
33468
33469         * gnulib-tool: Don't ask the user to perform edits in the generated
33470         Makefile.ams.
33471         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
33472         apply to the Makefile.am being generated.
33473         (func_emit_tests_Makefile_am): Execute edits that apply to the
33474         Makefile.am being generated.
33475         (func_import): Setup list of Makefile.am edits before emitting the
33476         Makefile.ams, not at the end.
33477         (func_create_testdir): Update.
33478         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33479
33480 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33481
33482         * gnulib-tool (func_import): Store the --tests-base option in the
33483         comment in gnulib-cache.m4.
33484
33485 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
33486
33487         * NEWS: Document increased portability that sys_select now provides.
33488
33489         * lib/sys_select.in.h: Install select wrapper.
33490         * lib/sys_socket.in.h: Use more descriptive name when there is no
33491         select wrapper.
33492         * lib/winsock-select.c: New.
33493         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
33494         Require gl_HEADER_SYS_SOCKET.
33495         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
33496         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
33497         * tests/test-sys_select.c: Add functional tests.
33498
33499 2008-09-24  Eric Blake  <ebb9@byu.net>
33500
33501         open, fopen: close fd leak in last patch
33502         * lib/open.c (rpl_open): Close fd before returning error.
33503         * lib/fopen.c (rpl_fopen): Close fd before returning error.
33504         * doc/posix-functions/open.texi (open): Document that Irix also
33505         has the bug.
33506         * doc/posix-functions/fopen.texi (fopen): Likewise.
33507         Reported by Paolo Bonzini.
33508
33509 2008-09-24  Bruno Haible  <bruno@clisp.org>
33510
33511         Ensure that a filename ending in a slash cannot be used to access a
33512         non-directory.
33513         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
33514         to check whether it's really a directory.
33515         * lib/fopen.c: Include fcntl.h, unistd.h.
33516         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
33517         and fdopen().
33518         * modules/fopen (Depends-on): Add unistd.
33519         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
33520         * tests/test-fopen.c (main): Likewise.
33521         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
33522         * doc/posix-functions/fopen.texi: Likewise.
33523         Reported by Eric Blake.
33524
33525 2008-09-23  Eric Blake  <ebb9@byu.net>
33526
33527         c-stack: avoid compiler optimizations when provoking overflow
33528         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
33529         recursion harder to optimize, to ensure a stack overflow occurs.
33530         * tests/test-c-stack.c (recurse): Likewise.
33531         Borrowed from libsigsegv.
33532
33533         c-stack: work around Irix sigaltstack bug
33534         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
33535         whether sigaltstack uses wrong end of stack_t (copied in part from
33536         libsigsegv).
33537         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
33538         Irix bug, without requiring an over-allocation.
33539         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
33540         bug.
33541
33542         fopen: document mingw bug on directories
33543         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
33544         not allowing a stream visiting a directory, even though reading
33545         from such a stream is not portable.
33546
33547 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
33548
33549         * lib/poll.c: Rewrite.
33550         * modules/poll: Depend on alloca.
33551
33552 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
33553
33554         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
33555         instead define prototypes for a full set of wrappers.  Ensure
33556         that Cygwin does not use the compatibility code, which is only
33557         for MinGW.
33558         * lib/winsock.c: New.
33559         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
33560         * modules/sys_socket: Add lib/winsock.c.
33561
33562         * modules/poll-tests: Add errno and perror.
33563         * tests/test-poll.c: Use ioctl, not ioctlsocket.
33564
33565 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
33566
33567         * tests/test-poll.c: Downgrade minimum needed Winsock version.
33568
33569 2008-09-23  Bruno Haible  <bruno@clisp.org>
33570
33571         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
33572         * doc/glibc-functions/*: Likewise.
33573
33574 2008-09-23  Simon Josefsson  <simon@josefsson.org>
33575
33576         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
33577         success.
33578
33579 2008-09-22  Eric Blake  <ebb9@byu.net>
33580             Bruno Haible  <bruno@clisp.org>
33581
33582         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
33583         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
33584         supply %A but mishandle pseudo-NaN.
33585         Reported by Simon Josefsson.
33586
33587 2008-09-21  Bruno Haible  <bruno@clisp.org>
33588
33589         * tests/test-lock.c (main): Tweak skip message.
33590         * tests/test-tls.c (main): Likewise.
33591
33592 2008-09-21  Bruno Haible  <bruno@clisp.org>
33593
33594         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
33595         whether 'struct sigaction' has sa_sigaction here...
33596         (gl_PREREQ_SIG_HANDLER_H): ... not here.
33597         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
33598
33599 2008-09-21  Bruno Haible  <bruno@clisp.org>
33600
33601         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
33602         section.
33603         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
33604         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
33605         the new section.
33606         (Support for obsolete systems lacking POSIX:2001): New section.
33607         (String handling <string.h>): Move strdup to the new section.
33608         Suggested by Simon Josefsson and Paolo Bonzini.
33609
33610 2008-09-21  Bruno Haible  <bruno@clisp.org>
33611
33612         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
33613         exponents in %e and %g results on 'long double'. Needed for mingw's
33614         improved *printf functions.
33615         * tests/test-vasprintf-posix.c (test_function): Likewise.
33616         * tests/test-snprintf-posix.h (test_function): Likewise.
33617         * tests/test-sprintf-posix.h (test_function): Likewise.
33618         Reported by Eric Blake.
33619
33620 2008-09-21  Bruno Haible  <bruno@clisp.org>
33621
33622         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
33623         * tests/test-sprintf-posix.h (test_function): Likewise.
33624
33625 2008-09-21  Bruno Haible  <bruno@clisp.org>
33626
33627         * modules/getpass (Depends-on): Add strdup-posix.
33628
33629         New module 'strdup-posix'.
33630         * modules/strdup-posix: New file.
33631         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
33632         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
33633         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33634         REPLACE_STRDUP.
33635         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
33636         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
33637         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33638         strdup-posix.
33639
33640         * modules/strdup (Depends-on): Remove malloc-posix.
33641
33642 2008-09-20  Bruno Haible  <bruno@clisp.org>
33643
33644         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
33645         Wildenhues.
33646
33647 2008-09-20  Bruno Haible  <bruno@clisp.org>
33648
33649         Ensure that wint_t gets defined on IRIX 5.3.
33650         * lib/wchar.in.h (wint_t): Define if not defined by the system.
33651         * lib/wctype.in.h (wint_t): Likewise.
33652         (__wctype_wint_t): Remove type.
33653         (isw*): Use wint_t instead of __wctype_wint_t.
33654         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
33655         * modules/wchar (Files): Add m4/wint_t.m4.
33656         (Makefile.am): Substitute HAVE_WINT_T.
33657         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
33658         * tests/test-wctype.c: Check that wint_t is defined.
33659         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
33660         * doc/posix-headers/wctype.texi: Likewise.
33661         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33662
33663 2008-09-18  Bruno Haible  <bruno@clisp.org>
33664
33665         * gnulib-tool (func_exit): Update comment.
33666
33667 2008-09-18  Simon Josefsson  <simon@josefsson.org>
33668
33669         * modules/getaddrinfo (Depends-on): Remove strdup, this module
33670         assumes strdup exists and does not depend on strdup to return
33671         ENOMEM on out of memory conditions.
33672
33673 2008-09-18  Bruno Haible  <bruno@clisp.org>
33674
33675         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
33676         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
33677         digits for the exponent.
33678
33679 2008-09-18  Jim Meyering  <meyering@redhat.com>
33680             Bruno Haible  <bruno@clisp.org>
33681
33682         * lib/vasnprintf.c (decimal_point_char): Define also if
33683         NEED_PRINTF_INFINITE_LONG_DOUBLE.
33684
33685 2008-09-16  Bruno Haible  <bruno@clisp.org>
33686         and Eric Blake  <ebb9@byu.net>
33687
33688         vasnprintf: support Irix 5.3
33689         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
33690         that mishandle long double infinity.
33691         Reported by Tom G. Christensen.
33692
33693 2008-09-16  Bruno Haible  <bruno@clisp.org>
33694
33695         * doc/glibc-functions/scandir.texi: Mention the function is missing on
33696         Solaris 9.
33697         * doc/glibc-functions/alphasort.texi: Likewise.
33698         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
33699
33700 2008-09-16  Jim Meyering  <meyering@redhat.com>
33701
33702         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
33703         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
33704         a umask modification leak out of a subshell.  Otherwise, the
33705         opensolaris /bin/sh would be accepted and thus cause unwarranted
33706         failures in the coreutils test suite.
33707
33708 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
33709
33710         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
33711         to succeed.
33712
33713 2008-09-16  Jim Meyering  <meyering@redhat.com>
33714
33715         avoid spurious test failure when library is built without ACL support
33716         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
33717         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
33718         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
33719         * tests/test-copy-acl.sh: Likewise.
33720
33721 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33722
33723         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
33724         based on character occurrence counts.
33725
33726 2008-09-15  Eric Blake  <ebb9@byu.net>
33727
33728         tests: avoid some compiler warnings
33729         * tests/test-memchr.c (main): Pass NULL indirectly.
33730         * tests/test-closein.c (main): Avoid unused variable.
33731
33732 2008-09-15  Bruno Haible  <bruno@clisp.org>
33733
33734         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
33735         are missing on OpenBSD 4.0 individually.
33736         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33737
33738 2008-09-15  Bruno Haible  <bruno@clisp.org>
33739
33740         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
33741         * doc/posix-functions/strerror.texi: Mention also Cygwin.
33742         * doc/posix-functions/perror.texi: Likewise.
33743         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
33744         is missing.
33745         Reported by Eric Blake.
33746
33747         * lib/errno.in.h: Use replacement values >= 2000.
33748         Reported by Eric Blake.
33749
33750 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33751
33752         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
33753         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
33754         limit.
33755         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
33756         compareseq was aborted.
33757
33758 2008-09-14  Bruno Haible  <bruno@clisp.org>
33759
33760         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
33761         yvec_edit_count.
33762         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
33763         (fstrcmp_bounded): Simplify result computation accordingly.
33764
33765 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33766
33767         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
33768         (fstrcmp): Define in terms of fstrcmp_bounded.
33769         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
33770         lower_bound argument.
33771         Return quickly if the result is certainly < lower_bound.
33772         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
33773
33774 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33775
33776         * lib/diffseq.h (EARLY_ABORT): New macro.
33777         (compareseq): Change return type to bool. Return true when EARLY_ABORT
33778         evaluates to true.
33779
33780 2008-09-14  Bruno Haible  <bruno@clisp.org>
33781
33782         * modules/perror-tests: New file.
33783         * tests/test-perror.sh: New file.
33784         * tests/test-perror.c: New file.
33785
33786         New module 'perror'.
33787         * lib/stdio.in.h (perror): New declaration.
33788         * lib/perror.c: New file.
33789         * m4/perror.m4: New file.
33790         * modules/perror: New file.
33791         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
33792         * doc/posix-functions/perror.texi: Mention the perror module.
33793         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
33794         REPLACE_PERROR.
33795         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
33796         REPLACE_PERROR.
33797
33798 2008-09-14  Bruno Haible  <bruno@clisp.org>
33799
33800         * modules/stdio (Makefile.am): Reorder to match the order in
33801         lib/stdio.in.h.
33802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33803
33804 2008-09-13  Bruno Haible  <bruno@clisp.org>
33805
33806         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
33807
33808 2008-09-13  Bruno Haible  <bruno@clisp.org>
33809
33810         Extend strerror to cover the added errno values.
33811         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
33812         (rpl_strerror): Provide error messages for the added errno values and
33813         for the WSA* values.
33814         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
33815         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
33816         strerror.
33817         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
33818         * modules/strerror (Depends-on): Add errno.
33819         * doc/posix-functions/strerror.texi: Document the change.
33820         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
33821         and EOVERFLOW.
33822
33823 2008-09-13  Bruno Haible  <bruno@clisp.org>
33824
33825         * modules/EOVERFLOW: Remove file.
33826         * m4/eoverflow.m4: Remove file.
33827         * modules/EOVERFLOW-tests: Remove file.
33828         * tests/test-EOVERFLOW.c: Remove file.
33829         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
33830         * modules/ftell (Depends-on): Likewise.
33831         * modules/getdelim (Depends-on): Likewise.
33832         * modules/getugroups (Depends-on): Likewise.
33833         * modules/poll (Depends-on): Likewise.
33834         * modules/snprintf (Depends-on): Likewise.
33835         * modules/sprintf-posix (Depends-on): Likewise.
33836         * modules/vasnprintf (Depends-on): Likewise.
33837         * modules/vasprintf (Depends-on): Likewise.
33838         * modules/vfprintf-posix (Depends-on): Likewise.
33839         * modules/vsnprintf (Depends-on): Likewise.
33840         * modules/vsprintf-posix (Depends-on): Likewise.
33841         * modules/xvasprintf (Depends-on): Likewise.
33842         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33843         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
33844         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
33845         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
33846         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33847         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
33848         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
33849         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
33850         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33851         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
33852         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
33853         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
33854         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33855         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
33856         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
33857         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
33858         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33859         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
33860         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
33861         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
33862         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33863         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
33864         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
33865         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
33866         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
33867         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33868         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
33869         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
33870         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
33871         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
33872         * MODULES.html.sh: Remove EOVERFLOW.
33873         * NEWS: Mention the change.
33874
33875 2008-09-13  Bruno Haible  <bruno@clisp.org>
33876
33877         * modules/errno-tests: New file.
33878         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
33879
33880         * lib/errno.in.h: New file.
33881         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
33882         * modules/errno: New file.
33883         * doc/posix-headers/errno.texi: Update documentation.
33884         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
33885
33886 2008-09-13  Bruno Haible  <bruno@clisp.org>
33887
33888         * tests/test-poll.c: Use #if for native Windows, rather than testing
33889         __MSVCRT__.
33890
33891 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33892             Bruno Haible  <bruno@clisp.org>
33893
33894         * lib/glob.c: Don't include <pwd.h> on native Windows.
33895         (WINDOWS32): New macro.
33896         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
33897
33898 2008-09-13  Bruno Haible  <bruno@clisp.org>
33899
33900         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
33901         (ETIMEDOUT): Remove macro.
33902         (glthread_cond_timedwait_multithreaded): New declaration.
33903         (glthread_cond_timedwait): Use it.
33904         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
33905         (glthread_cond_timedwait_multithreaded): New function.
33906
33907 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
33908
33909         * modules/poll-tests: Do not check for io.h.
33910         * tests/test-poll.c: Check for __MSVCRT__ instead.
33911
33912 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
33913
33914         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
33915         * modules/poll-tests: Add inet_pton, stdbool, sockets.
33916         * tests/test-poll.c: Use them.  Use _pipe on Windows.
33917
33918 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
33919
33920         * modules/poll-tests: New.
33921         * tests/test-poll.c: New.
33922
33923 2008-09-12  Eric Blake  <ebb9@byu.net>
33924
33925         frexp: test for NetBSD failure on -0.0
33926         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
33927         not all, bugs from NetBSD 3.0 have been fixed.
33928         * doc/posix-functions/frexp.texi (frexp): Document bug.
33929         Reported by Thomas Klausner.
33930
33931         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
33932         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
33933         literal -0.0.
33934         Reported by Jonathan C. Patschke <jp@centtech.com>.
33935
33936 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33937
33938         * lib/glthread/cond.h: Use dummy implementation also if
33939         USE_WIN32_THREADS.
33940
33941 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33942
33943         * modules/fnmatch-posix (License): Change to LGPLv2+.
33944         * modules/fnmatch-gnu (License): Likewise.
33945
33946 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33947
33948         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
33949
33950 2008-09-11  Jim Meyering  <meyering@redhat.com>
33951
33952         * users.txt: Add gtk-vnc.
33953
33954 2008-09-08  Simon Josefsson  <simon@josefsson.org>
33955
33956         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
33957         rotate amounts.
33958
33959         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
33960         required for 16-bit and 8-bit rotates.
33961         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
33962         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
33963         UINT8_MAX instead of hard-coded constants.
33964         Suggested by Paul Eggert.
33965
33966 2008-09-07  Bruno Haible  <bruno@clisp.org>
33967
33968         * tests/test-striconveh.c (main): Check behaviour when converting from
33969         UTF-7.
33970
33971         Make striconveh work better with stateful encodings.
33972         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
33973         that iconv does not increment the inptr when returning -1/EINVAL.
33974
33975 2008-09-07  Bruno Haible  <bruno@clisp.org>
33976
33977         * build-aux/config.rpath: Update according to libtool-2.2.6.
33978         * build-aux/config.libpath: Likewise.
33979
33980 2008-09-06  Bruno Haible  <bruno@clisp.org>
33981
33982         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
33983         * lib/freadptr.c (freadptr): Likewise.
33984         * lib/freadseek.c (freadptrinc): Likewise.
33985         Reported by Simon Josefsson.
33986
33987 2008-09-06  Bruno Haible  <bruno@clisp.org>
33988
33989         * modules/freadptr (License): Change to LGPLv2+.
33990         * modules/freadseek (License): Likewise.
33991         Suggested by Eric Blake.
33992
33993         * modules/memchr2 (License): Change to LGPLv2+.
33994         Approved by Eric Blake.
33995
33996 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33997             Bruno Haible  <bruno@clisp.org>
33998
33999         Make gnulib-tool work with native 'sed' on AIX.
34000         * gnulib-tool (sed_noop): New variable.
34001         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
34002         func_add_or_update, func_create_testdir): Use it to initialize sed
34003         script variables.
34004         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34005
34006 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
34007             Bruno Haible  <bruno@clisp.org>
34008
34009         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
34010         also works after #include directives.
34011
34012 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
34013
34014         getdate.y: reject an out-of-range timezone value
34015         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
34016         the range [-24...+24].  When specified with only one or two digits,
34017         * tests/test-getdate.c: Tests for the fix.
34018         * doc/getdate.texi: Document this change.
34019
34020 2008-09-03  Bruno Haible  <bruno@clisp.org>
34021
34022         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
34023
34024 2008-09-02  Simon Josefsson  <simon@josefsson.org>
34025
34026         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
34027         <bruce.korb@gmail.com> with ideas from Ben Pfaff
34028         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
34029         Blake <ebb9@byu.net>.
34030
34031         * tests/test-bitrotate.c: Add more test vectors.
34032
34033 2008-09-02  Eric Blake  <ebb9@byu.net>
34034
34035         vasnprintf-posix: handle large precision via %.*d
34036         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
34037         when handling it ourselves.
34038         * tests/test-vasnprintf-posix.c (test_function): Add test.
34039         * tests/test-snprintf-posix.h (test_function): Likewise.
34040         * tests/test-sprintf-posix.h (test_function): Likewise.
34041         * tests/test-vasprintf-posix.c (test_function): Likewise.
34042         Reported by Alain Guibert.
34043
34044 2008-09-01  Eric Blake  <ebb9@byu.net>
34045
34046         c-stack: make configure-time check more robust
34047         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
34048         successful sigaction call.
34049         Reported by Tom G. Christensen.
34050
34051 2008-09-01  Bruno Haible  <bruno@clisp.org>
34052
34053         New module 'findprog-lgpl'.
34054         * modules/findprog-lgpl: New file.
34055         * lib/findprog-lgpl.c: New file.
34056         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
34057         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
34058         to decide whether to use strdup or xstrdup, concatenated_filename or
34059         xconcatenated_filename.
34060
34061 2008-09-01  Bruno Haible  <bruno@clisp.org>
34062
34063         Split module 'concat-filename' into 'concat-filename' (LGPL) and
34064         'xconcat-filename' (GPL).
34065         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
34066         (License): Change to LGPLv2+.
34067         * modules/xconcat-filename: New file.
34068         * lib/concat-filename.h (concatenated_filename): Change specification.
34069         (xconcatenated_filename): New declaration.
34070         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
34071         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
34072         memory situations.
34073         * lib/xconcat-filename.c: New file.
34074         * NEWS: Mention the change.
34075         * lib/findprog.c: Include concat-filename.h, not filename.h.
34076         (find_in_path): Use xconcatenated_filename instead of
34077         concatenated_filename.
34078         * lib/javacomp.c: Include concat-filename.h, not filename.h.
34079         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
34080         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
34081         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
34082         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
34083         instead of concatenated_filename.
34084         * lib/javaexec.c: Include concat-filename.h, not filename.h.
34085         (execute_java_class): Use xconcatenated_filename instead of
34086         concatenated_filename.
34087         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
34088         * modules/javacomp (Depends-on): Likewise.
34089         * modules/javaexec (Depends-on): Likewise.
34090
34091 2008-09-01  Bruno Haible  <bruno@clisp.org>
34092
34093         Split module 'filename' into 'filename' and 'concat-filename'.
34094         * modules/filename: Keep only lib/filename.h.
34095         (License): Change to LGPLv2+.
34096         * modules/concat-filename: New file, extracted from modules/filename.
34097         * lib/filename.h (concatenated_filename): Remove declaration.
34098         * lib/concat-filename.h: New file, extracted from lib/filename.h.
34099         * lib/concat-filename.c: Include concat-filename.h.
34100         * NEWS: Mention the change.
34101
34102 2008-09-01  Simon Josefsson  <simon@josefsson.org>
34103
34104         * lib/bitrotate.h (rotl8, rotr8): Add.
34105
34106         * modules/bitrotate (configure.ac): Need
34107         AC_REQUIRE([AC_C_INLINE]).
34108         (Description): Mention stdint.h.  Reported by Bruno Haible
34109         <bruno@clisp.org>.
34110
34111         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
34112         Paolo Bonzini <bonzini@gnu.org>.
34113
34114 2008-08-31  Bruno Haible  <bruno@clisp.org>
34115
34116         Assume Solaris specific bi-arch conventions on Solaris systems.
34117         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
34118         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
34119         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
34120         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
34121         like acl_libdirstem.
34122         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
34123         acl_libdirstem.
34124         * NEWS: Mention the change.
34125         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
34126
34127 2008-08-31  Jim Meyering  <meyering@redhat.com>
34128
34129         * lib/strftime.h: Add comments describing the two added arguments.
34130
34131         remove duplicate #include directives
34132         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
34133         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
34134
34135 2008-08-31  Bruno Haible  <bruno@clisp.org>
34136
34137         New module 'sigpipe-die'.
34138         * modules/sigpipe-die: New file.
34139         * lib/sigpipe-die.h: New file.
34140         * lib/sigpipe-die.c: New file.
34141         * MODULES.html.sh (Signal handling): Add sigpipe-die.
34142
34143 2008-08-31  Bruno Haible  <bruno@clisp.org>
34144
34145         Don't override previously installed signal handlers.
34146         * lib/fatal-signal.c (saved_sigactions): New variable.
34147         (uninstall_handlers): Reset the signal to the saved handler, not
34148         to SIG_DFL (except when ignored).
34149         (install_handlers): Save the previous handlers.
34150
34151 2008-08-30  Bruno Haible  <bruno@clisp.org>
34152
34153         * gnulib-tool (func_reset_sigpipe): New function.
34154         (func_get_automake_snippet, func_modules_transitive_closure,
34155         func_import): Invoke it before a join command that reads from stdin,
34156         to avoid "echo: write error: Broken pipe" error messages on stderr.
34157         Reported by Sam Steingold <sds@gnu.org>.
34158
34159 2008-08-30  Bruno Haible  <bruno@clisp.org>
34160
34161         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
34162         Code copied from m4/open.m4.
34163         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
34164         access and the filename ends in a slash. Code copied from lib/open.c.
34165         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
34166         * tests/test-fopen.c (main): Check against bug with trailing slash.
34167
34168 2008-08-29  Bruno Haible  <bruno@clisp.org>
34169
34170         Avoid some "gcc -pedantic" warnings.
34171         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
34172         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
34173         * lib/dirent.in.h: Likewise.
34174         * lib/fcntl.in.h: Likewise.
34175         * lib/float.in.h: Likewise.
34176         * lib/iconv.in.h: Likewise.
34177         * lib/inttypes.in.h: Likewise.
34178         * lib/locale.in.h: Likewise.
34179         * lib/math.in.h: Likewise.
34180         * lib/netinet_in.in.h: Likewise.
34181         * lib/search.in.h: Likewise.
34182         * lib/signal.in.h: Likewise.
34183         * lib/stdarg.in.h: Likewise.
34184         * lib/stdint.in.h: Likewise.
34185         * lib/stdio.in.h: Likewise.
34186         * lib/stdlib.in.h: Likewise.
34187         * lib/string.in.h: Likewise.
34188         * lib/strings.in.h: Likewise.
34189         * lib/sys_select.in.h: Likewise.
34190         * lib/sys_socket.in.h: Likewise.
34191         * lib/sys_stat.in.h: Likewise.
34192         * lib/sys_time.in.h: Likewise.
34193         * lib/sysexits.in.h: Likewise.
34194         * lib/time.in.h: Likewise.
34195         * lib/unistd.in.h: Likewise.
34196         * lib/wchar.in.h: Likewise.
34197         * lib/wctype.in.h: Likewise.
34198         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
34199         * modules/fchdir (Makefile.am): Likewise.
34200         * modules/fcntl (Makefile.am): Likewise.
34201         * modules/float (Makefile.am): Likewise.
34202         * modules/iconv_open (Makefile.am): Likewise.
34203         * modules/inttypes (Makefile.am): Likewise.
34204         * modules/locale (Makefile.am): Likewise.
34205         * modules/math (Makefile.am): Likewise.
34206         * modules/netinet_in (Makefile.am): Likewise.
34207         * modules/search (Makefile.am): Likewise.
34208         * modules/signal (Makefile.am): Likewise.
34209         * modules/stdarg (Makefile.am): Likewise.
34210         * modules/stdint (Makefile.am): Likewise.
34211         * modules/stdio (Makefile.am): Likewise.
34212         * modules/stdlib (Makefile.am): Likewise.
34213         * modules/string (Makefile.am): Likewise.
34214         * modules/strings (Makefile.am): Likewise.
34215         * modules/sys_select (Makefile.am): Likewise.
34216         * modules/sys_socket (Makefile.am): Likewise.
34217         * modules/sys_stat (Makefile.am): Likewise.
34218         * modules/sys_time (Makefile.am): Likewise.
34219         * modules/sysexits (Makefile.am): Likewise.
34220         * modules/time (Makefile.am): Likewise.
34221         * modules/unistd (Makefile.am): Likewise.
34222         * modules/wchar (Makefile.am): Likewise.
34223         * modules/wctype (Makefile.am): Likewise.
34224         Reported by Reuben Thomas <rrt@sc3d.org>.
34225
34226 2008-08-29  Bruno Haible  <bruno@clisp.org>
34227
34228         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
34229         any more.
34230
34231 2008-08-29  Simon Josefsson  <simon@josefsson.org>
34232
34233         * MODULES.html.sh (Misc): Add bitrotate.
34234
34235         * modules/bitrotate: New file.
34236
34237         * lib/bitrotate.h: New file.
34238
34239         * modules/bitrotate-tests: New file.
34240
34241         * tests/test-bitrotate.c: New file.
34242
34243         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
34244         on the bitrotate module.
34245
34246         * lib/arctwo.c: Use new bitrotate module.
34247
34248 2008-08-29  Jim Meyering  <meyering@redhat.com>
34249
34250         bootstrap: merge changes from coreutils
34251         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
34252         of copied files.  Remove a kludge, now that this is fixed.
34253         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
34254         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
34255         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
34256
34257 2008-08-29  Bruno Haible  <bruno@clisp.org>
34258
34259         * MODULES.html.sh: Remove --cvs-urls option.
34260
34261 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
34262
34263         maint.mk: adjust to file name change
34264         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
34265
34266 2008-08-28  Jim Meyering  <meyering@redhat.com>
34267
34268         * modules/getndelim2 (License): Relicense to LGPLv2+.
34269         Approved by Richard Stallman for the version of 1995, and by
34270         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
34271
34272 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
34273
34274         * lib/getdelim.c (flockfile, funlockfile): Make all of them
34275         dummy if one is not available.  Do not touch them if
34276         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
34277         (getc_maybe_unlocked): New.
34278         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
34279
34280 2008-08-26  Eric Blake  <ebb9@byu.net>
34281
34282         doc/INSTALL: resync from autoconf
34283         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
34284         (INSTALL_PRELUDE): Delete; this is done more efficiently by
34285         moving...
34286         * install.texi [!autoconf]: ...here.  Resync from autoconf.
34287         * INSTALL: Regenerate.
34288         * INSTALL.ISO: New file.
34289         * INSTALL.UTF-8: Likewise.
34290
34291 2008-08-26  Jim Meyering  <meyering@redhat.com>
34292
34293         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
34294         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
34295         these definitions conditional, so that they may be overridden, too.
34296
34297 2008-08-26  Bruno Haible  <bruno@clisp.org>
34298
34299         Generate INSTALL file variants with prettier quotes.
34300         * doc/Makefile (INSTALL_PRELUDE): New macro.
34301         (INSTALL): Use it.
34302         (INSTALL.ISO, INSTALL.UTF-8): New rules.
34303
34304 2008-08-26  Bruno Haible  <bruno@clisp.org>
34305
34306         Run makeinfo in an English locale.
34307         * doc/Makefile (MAKEINFO): New variable.
34308
34309 2008-08-26  Bruno Haible  <bruno@clisp.org>
34310
34311         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
34312         Suggested by Eric Blake.
34313
34314 2008-08-25  Bruno Haible  <bruno@clisp.org>
34315
34316         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
34317
34318 2008-08-25  Eric Blake  <ebb9@byu.net>
34319
34320         c-stack: test that stack overflow can be caught
34321         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
34322         that platform allows handling stack overflow; at least OS/2 EMX
34323         has sigaltstack, but crashes before transferring control to
34324         handler on stack overflow.
34325         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
34326         check for HAVE_STACK_OVERFLOW_HANDLING.
34327         Reported by Elbert Pol.
34328
34329 2008-08-25  Bruno Haible  <bruno@clisp.org>
34330
34331         * doc/posix-functions/strftime.texi: Fix description of strftime
34332         module.
34333
34334 2008-08-24  Bruno Haible  <bruno@clisp.org>
34335
34336         * tests/uniwidth/test-uc_width2.c: New file.
34337         * tests/uniwidth/test-uc_width2.sh: New file.
34338         * modules/uniwidth/width-tests (Files): Add the new files.
34339         (TESTS): Add uniwidth/test-uc_width2.sh.
34340         (TESTS_ENVIRONMENT): New variable.
34341         (check_PROGRAMS): Add test-uc_width2.
34342         (test_uc_width2_SOURCES): New variable.
34343
34344         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
34345         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
34346         not 0x00AB.
34347         Reported by Alexander V. Lukyanov <lav@netis.ru>.
34348
34349 2008-08-22  Eric Blake  <ebb9@byu.net>
34350
34351         test-lock, test-tls: mention why a test is skipped
34352         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
34353         skipped.
34354         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
34355
34356         count-one-bits: relax license
34357         * modules/count-one-bits (License): Relicense to LGPLv2+.
34358         Suggested by Ludovic Courtès, approved by Ben Pfaff.
34359
34360 2008-08-22  Andreas Schwab  <schwab@suse.de>
34361
34362         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
34363         Remove spurious space in assignment.
34364
34365 2008-08-21  Simon Josefsson  <simon@josefsson.org>
34366
34367         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
34368         Paul Eggert <eggert@CS.UCLA.EDU>.
34369
34370 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
34371
34372         * modules/gettext: Add m4/threadlib.m4.
34373
34374 2008-08-19  Eric Blake  <ebb9@byu.net>
34375
34376         test-c-stack: fix compilation failure on FreeBSD 5.0
34377         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
34378         headers before <sys/resource.h>.
34379         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
34380         the bug.
34381         Reported by Nelson H. F. Beebe.
34382
34383         strverscmp: migrate from "strverscmp.h" to <string.h>
34384         * modules/string (Makefile.am): Add new hooks.
34385         * modules/strverscmp (Files): Remove strverscmp.h.
34386         (Depends-on): Add string.
34387         (configure.ac): Add indicator.
34388         (Include): Mention new header.
34389         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
34390         defaults.
34391         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
34392         results.
34393         * lib/strverscmp.h: Delete.
34394         * lib/string.in.h (strverscmp): Provide declaration, when needed.
34395         * tests/test-strverscmp.c (includes): Adjust client.
34396         * lib/check-version.c (includes): Likewise.
34397         * NEWS: Document the change.
34398
34399         strverscmp: add unit test
34400         * modules/strverscmp-tests: New file.
34401         * tests/test-strverscmp.c: Likewise.
34402
34403 2008-08-19  Simon Josefsson  <simon@josefsson.org>
34404
34405         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
34406         regarding Windows crypto stuff, from Mono.
34407
34408 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
34409
34410         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
34411         if present, for intel RND.  Return error on failures.
34412
34413 2008-08-18  Ben Pfaff  <blp@gnu.org>
34414
34415         gitlog-to-changelog: give better diagnostic for failed pipe-open
34416         * build-aux/gitlog-to-changelog: Improve error message: suggest
34417         that the version of Git may be too old.
34418
34419 2008-08-18  Simon Josefsson  <simon@josefsson.org>
34420
34421         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
34422         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
34423
34424 2008-08-18  Bruno Haible  <bruno@clisp.org>
34425
34426         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
34427         pthread_in_use().
34428
34429 2008-08-18  Bruno Haible  <bruno@clisp.org>
34430
34431         * lib/glthread/threadlib.c: Include <pthread.h>.
34432
34433 2008-08-18  Bruno Haible  <bruno@clisp.org>
34434
34435         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
34436         glthread_recursive_lock_* macros.
34437         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
34438         Fix syntax error.
34439
34440 2008-08-18  Bruno Haible  <bruno@clisp.org>
34441
34442         * lib/glthread/thread.c: Avoid forcing a context switch right after
34443         thread creation.
34444
34445 2008-08-17  Bruno Haible  <bruno@clisp.org>
34446
34447         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
34448         * lib/glthread/thread.h: Provide Win32 specific implementation.
34449         * modules/thread (Files): Add lib/glthread/thread.c.
34450         (Depends-on): Add lock.
34451         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
34452
34453 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34454
34455         New module 'yield'.
34456         * modules/yield: New file.
34457         * lib/glthread/yield.h: New file.
34458         * m4/yield.m4: New file.
34459         * MODULES.html.sh (Multithreading): Add yield.
34460
34461 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34462
34463         New module 'thread'.
34464         * modules/thread: New file.
34465         * lib/glthread/thread.h: New file.
34466         * m4/thread.m4: New file.
34467         * MODULES.html.sh (Multithreading): Add thread.
34468
34469 2008-08-17  Bruno Haible  <bruno@clisp.org>
34470
34471         * lib/glthread/lock.h: Include <stdlib.h> always.
34472         * lib/glthread/tls.h: Likewise.
34473         * lib/glthread/cond.h: Likewise.
34474
34475 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34476
34477         New module 'cond'.
34478         * modules/cond: New file.
34479         * lib/glthread/cond.h: New file.
34480         * lib/glthread/cond.c: New file.
34481         * m4/cond.m4: New file.
34482         * MODULES.html.sh (Multithreading): Add cond.
34483
34484 2008-08-16  Eric Blake  <ebb9@byu.net>
34485
34486         c-stack: fix regression on Irix 5.3 from 2008-06-21
34487         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
34488         sa_sigaction...
34489         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
34490         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
34491         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
34492         * modules/signal (Makefile.am): Use the value.
34493         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
34494         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
34495         * doc/posix-headers/signal.texi (signal.h): Document this
34496         portability issue.
34497         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
34498         Reported by Tom G. Christensen.
34499
34500 2008-08-17  Bruno Haible  <bruno@clisp.org>
34501
34502         New module 'threadlib'.
34503         * modules/threadlib: New file.
34504         * lib/glthread/threadlib.c: New file, extracted from
34505         lib/glthread/lock.c.
34506         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
34507         functions.
34508         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
34509         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
34510         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
34511         macros.
34512         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
34513         (gl_DISABLE_THREADS): Remove macro.
34514         * modules/lock (Files): Remove build-aux/config.rpath.
34515         (Depends-on): Remove havelib. Add threadlib.
34516         (configure.ac-early): Remove section.
34517         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
34518         * modules/tls (Depends-on): Remove lock. Add threadlib.
34519         (Link): New section, copied from threadlib.
34520         * MODULES.html.sh (Multithreading): Add threadlib.
34521
34522 2008-08-14  Bruno Haible  <bruno@clisp.org>
34523
34524         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
34525         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
34526         glthread_rwlock_unlock, glthread_rwlock_destroy,
34527         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
34528         glthread_recursive_lock_destroy): Define as macros always.
34529         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
34530         glthread_lock_lock.
34531         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
34532         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
34533         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
34534         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
34535         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
34536         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
34537         (glthread_recursive_lock_lock_func): Renamed from
34538         glthread_recursive_lock_lock.
34539         (glthread_recursive_lock_unlock_func): Renamed from
34540         glthread_recursive_lock_unlock.
34541         (glthread_recursive_lock_destroy_func): Renamed from
34542         glthread_recursive_lock_destroy.
34543
34544 2008-08-14  Bruno Haible  <bruno@clisp.org>
34545
34546         * lib/glthread/lock.h: Renamed from lib/lock.h.
34547         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
34548         * lib/glthread/tls.h: Renamed from lib/tls.h.
34549         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
34550         * lib/fstrcmp.c: Update includes.
34551         * lib/strsignal.c: Update includes.
34552         * modules/lock (Files, Makefile.am): Update.
34553         (Include): Change to "glthread/lock.h".
34554         * modules/tls (Files, Makefile.am): Update.
34555         (Include): Change to "glthread/tls.h".
34556         * tests/test-lock.c: Update includes.
34557         * tests/test-tls.c: Update includes.
34558         * NEWS: Mention the renamed header files.
34559
34560 2008-08-11  Jim Meyering  <meyering@redhat.com>
34561
34562         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
34563
34564 2008-08-11  Eric Blake  <ebb9@byu.net>
34565
34566         test-c-stack: avoid C99-ism
34567         * tests/test-c-stack.c (main): Fix whitespace, move declaration
34568         before statement.
34569         Reported by Alain Guibert.
34570
34571 2008-08-10  Jim Meyering  <meyering@redhat.com>
34572
34573         ensure that return value of uinttostr et al are not ignored
34574         * lib/inttostr.h (__GNUC_PREREQ): Define.
34575         (__attribute_warn_unused_result__): Define.
34576         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
34577
34578 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
34579
34580         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
34581         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
34582
34583 2008-08-07  Jim Meyering  <meyering@redhat.com>
34584
34585         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
34586
34587         * modules/mkstemp (License): Relicense under LGPLv2+.
34588         * modules/tempname (License): Likewise.
34589
34590 2008-08-06  Bruno Haible  <bruno@clisp.org>
34591
34592         * lib/poll.c (poll): Further micro-optimization.
34593
34594 2008-08-06  Jim Meyering  <meyering@redhat.com>
34595
34596         inet_pton.c: use locale-independent tolower
34597         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
34598         (inet_pton6): Use c_tolower rather than tolower.
34599         * modules/inet_pton (Depends-on): Add c-ctype.
34600
34601 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
34602
34603         * lib/poll.c (poll): Avoid division when timeout is 0, cache
34604         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
34605
34606 2008-08-06  Jim Meyering  <meyering@redhat.com>
34607
34608         * modules/inet_pton (License): Relicense under LGPLv2+.
34609
34610 2008-08-03  Bruno Haible  <bruno@clisp.org>
34611
34612         Additional non-aborting API for lock and tls.
34613         * lib/lock.h: Include <errno.h>.
34614         (glthread_lock_init): New macro/function.
34615         (gl_lock_init): Define as wrapper around glthread_lock_init.
34616         (glthread_lock_lock): New macro/function.
34617         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
34618         (glthread_lock_unlock): New macro/function.
34619         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
34620         (glthread_lock_destroy): New macro/function.
34621         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
34622         (glthread_rwlock_init): New macro/function.
34623         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
34624         (glthread_rwlock_rdlock): New macro/function.
34625         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
34626         (glthread_rwlock_wrlock): New macro/function.
34627         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
34628         (glthread_rwlock_unlock): New macro/function.
34629         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
34630         (glthread_rwlock_destroy): New macro/function.
34631         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
34632         (glthread_recursive_lock_init): New macro/function.
34633         (gl_recursive_lock_init): Define as wrapper around
34634         glthread_recursive_lock_init.
34635         (glthread_recursive_lock_lock): New macro/function.
34636         (gl_recursive_lock_lock): Define as wrapper around
34637         glthread_recursive_lock_lock.
34638         (glthread_recursive_lock_unlock): New macro/function.
34639         (gl_recursive_lock_unlock): Define as wrapper around
34640         glthread_recursive_lock_unlock.
34641         (glthread_recursive_lock_destroy): New macro/function.
34642         (gl_recursive_lock_destroy): Define as wrapper around
34643         glthread_recursive_lock_destroy.
34644         (glthread_once): New macro/function.
34645         (gl_once): Define as wrapper around glthread_once.
34646         Update function declarations.
34647         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
34648         glthread_rwlock_init. Return error code.
34649         (glthread_rwlock_rdlock_multithreaded): Renamed from
34650         glthread_rwlock_rdlock. Return error code.
34651         (glthread_rwlock_wrlock_multithreaded): Renamed from
34652         glthread_rwlock_wrlock. Return error code.
34653         (glthread_rwlock_unlock_multithreaded): Renamed from
34654         glthread_rwlock_unlock. Return error code.
34655         (glthread_rwlock_destroy_multithreaded): Renamed from
34656         glthread_rwlock_destroy. Return error code.
34657         (glthread_recursive_lock_init_multithreaded): Renamed from
34658         glthread_recursive_lock_init. Return error code.
34659         (glthread_recursive_lock_lock_multithreaded): Renamed from
34660         glthread_recursive_lock_lock. Return error code.
34661         (glthread_recursive_lock_unlock_multithreaded): Renamed from
34662         glthread_recursive_lock_unlock. Return error code.
34663         (glthread_recursive_lock_destroy_multithreaded): Renamed from
34664         glthread_recursive_lock_destroy. Return error code.
34665         (glthread_once_call): Make static.
34666         (glthread_once_multithreaded): Renamed from glthread_once.
34667         * lib/tls.h: Include <errno.h>.
34668         (glthread_tls_key_init): New macro/function.
34669         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
34670         (glthread_tls_set): New macro/function.
34671         (gl_tls_set): Define as wrapper around glthread_tls_set.
34672         (glthread_tls_key_destroy): New macro/function.
34673         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
34674         Update function declarations.
34675         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
34676         glthread_tls_get.
34677         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34678
34679 2008-08-04  Eric Blake  <ebb9@byu.net>
34680
34681         gnumakefile: use space, not TAB, outside of targets
34682         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
34683
34684 2008-08-02  Jim Meyering  <meyering@redhat.com>
34685
34686         getdate.y: avoid locale-dependent date parsing failure
34687         In Turkish locales, getdate would fail to recognize keywords
34688         containing a lowercase "i".  The solution is not to rely on
34689         locale-sensitive case-conversion.
34690         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
34691         (lookup_word): Use c_toupper in place of toupper.
34692         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
34693         Reported by Vefa Bicakci <bicave@superonline.com> in
34694         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
34695         * modules/getdate (Depends-on): Add c-ctype.
34696
34697 2008-08-02  Bruno Haible  <bruno@clisp.org>
34698
34699         * gnulib-tool (func_import): When updating or creating a .gitignore
34700         file, prepend each added line with a slash, and ignore leading slashes
34701         from the existing lines.
34702         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
34703
34704 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34705
34706         Portability fix for GNU make 3.79.1.
34707         * top/GNUmakefile: Avoid 'else COND', which older GNU make
34708         versions do not understand.
34709
34710 2008-08-01  Bruno Haible  <bruno@clisp.org>
34711
34712         Work around bug of HP-UX 10.20 cc with -0.0 literal.
34713         * tests/test-isnanf.h (zero): New variable.
34714         (main): Avoid literal -0.0f.
34715         * tests/test-isnand.h (zero): New variable.
34716         (main): Avoid literal -0.0.
34717         * tests/test-isnanl.h (zero): New variable.
34718         (main): Avoid literal -0.0L.
34719         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
34720         (test_float, test_double, test_long_double): Avoid literals -0.0f,
34721         -0.0, -0.0L.
34722         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
34723         (test_signbitd): Avoid literal -0.0.
34724         (test_signbitl): Avoid literal -0.0L.
34725         * tests/test-ceilf1.c (zero): New variable.
34726         (main): Avoid literal -0.0f.
34727         * tests/test-ceill.c (zero): New variable.
34728         (main): Avoid literal -0.0L.
34729         * tests/test-floorf1.c (zero): New variable.
34730         (main): Avoid literal -0.0f.
34731         * tests/test-floorl.c (zero): New variable.
34732         (main): Avoid literal -0.0L.
34733         * tests/test-roundf1.c (zero): New variable.
34734         (main): Avoid literal -0.0f.
34735         * tests/test-round1.c (zero): New variable.
34736         (main): Avoid literal -0.0.
34737         * tests/test-roundl.c (zero): New variable.
34738         (main): Avoid literal -0.0L.
34739         * tests/test-truncf1.c (zero): New variable.
34740         (main): Avoid literal -0.0f.
34741         * tests/test-trunc1.c (zero): New variable.
34742         (main): Avoid literal -0.0.
34743         * tests/test-truncl.c (zero): New variable.
34744         (main): Avoid literal -0.0L.
34745         * tests/test-frexp.c (zero): New variable.
34746         (main): Avoid literal -0.0.
34747         * tests/test-frexpl.c (zero): New variable.
34748         (main): Avoid literal -0.0L.
34749         * tests/test-ldexpl.c (zero): New variable.
34750         (main): Avoid literal -0.0L.
34751         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
34752         (zerod, zerol): New variables.
34753         (test_function): Avoid literals -0.0, -0.0L.
34754         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
34755         (zerod, zerol): New variables.
34756         (test_function): Avoid literals -0.0, -0.0L.
34757         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
34758         (zerod, zerol): New variables.
34759         (test_function): Avoid literals -0.0, -0.0L.
34760         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
34761         (zerod, zerol): New variables.
34762         (test_function): Avoid literals -0.0, -0.0L.
34763         * tests/test-strtod.c (zero): New variable.
34764         (main): Avoid literal -0.0.
34765         Reported by Jonathan C. Patschke <jp@centtech.com>.
34766
34767 2008-07-31  Jim Meyering  <meyering@redhat.com>
34768
34769         sha256.h: correct definition of SHA224_DIGEST_SIZE
34770         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
34771         Reported by Paulie Pena IV <paulie4@gmail.com>.
34772         Define as 224 / 8, rather than as a literal.
34773         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
34774         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
34775         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
34776
34777 2008-07-31  Bruno Haible  <bruno@clisp.org>
34778
34779         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
34780         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
34781         Reported by Jonathan Patschke <jp@centtech.com>.
34782
34783 2008-07-31  Bruno Haible  <bruno@clisp.org>
34784
34785         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
34786         Reported by Paolo Bonzini <bonzini@gnu.org>.
34787
34788 2008-07-30  Eric Blake  <ebb9@byu.net>
34789
34790         test-strtod: allow compilation without -lm
34791         * tests/test-strtod.c (main): Avoid link dependence on fabs.
34792         Reported by Dennis Clarke <blastwave@gmail.com>.
34793
34794 2008-07-28  Jim Meyering  <meyering@redhat.com>
34795
34796         bootstrap: work also when there are no .po files in po/
34797         * build-aux/bootstrap (update_po_files): Complete the change
34798         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
34799
34800 2008-07-27  Jim Meyering  <meyering@redhat.com>
34801
34802         * users.txt: Add zile.
34803
34804 2008-07-26  Ben Pfaff  <blp@gnu.org>
34805
34806         Add missing dependencies on new m4/exponent[fdl].m4 files.
34807         * modules/isnanf-nolibm: Add m4/exponentf.m4.
34808         * modules/isnand-nolibm: Add m4/exponentd.m4.
34809         * modules/isnanl-nolibm: Add m4/exponentl.m4.
34810         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
34811         m4/isnan[fdl].m4, because the macros actually used moved.
34812         Reported by Jim Meyering.
34813
34814 2008-07-14  Ben Pfaff  <blp@gnu.org>
34815
34816         Add isinf module.
34817         * lib/isinf.c: New file.
34818         * lib/math.in.h: Define isinf macro if we have decided to replace
34819         it.
34820         * m4/isinf.m4: New file.
34821         * m4/math_h.m4: Initialize and substitute variables for isinf
34822         module.
34823         * modules/isinf: New file.
34824         * modules/isinf-tests: New file.
34825         * modules/math: Add substitutions for new module.
34826         * tests/test-isinf.c: New file.
34827         * doc/posix-functions/isinf.texi: Mention new module.
34828         * MODULES.html.sh: Mention new module.
34829
34830 2008-07-14  Ben Pfaff  <blp@gnu.org>
34831
34832         Factor out some macros for use by additional modules.
34833         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
34834         exponentf.m4.
34835         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
34836         exponentd.m4.
34837         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
34838         file exponentl.m4.
34839         * m4/exponentf.m4: New file.
34840         * m4/exponentd.m4: New file.
34841         * m4/exponentl.m4: New file.
34842         * modules/isnanf: Use new file m4/exponentf.m4.
34843         * modules/isnand: Use new file m4/exponentd.m4.
34844         * modules/isnanl: Use new file m4/exponentl.m4.
34845
34846 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
34847
34848         mktime.c: normalize tp->tm_isdst value to -1/0/1.
34849         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
34850         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
34851         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
34852
34853         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
34854         readlink on platforms without PATH_MAX.
34855
34856 2008-07-21  Eric Blake  <ebb9@byu.net>
34857
34858         Warn, not fail, on stale version.
34859         * top/GNUmakefile (_curr-ver): Tone down previous patch.
34860
34861         Don't allow installation with stale devel version number.
34862         * top/GNUmakefile (_is-install-target): New macro.
34863         (_curr-ver): Forbid installation with stale version number.
34864
34865 2008-07-20  Bruno Haible  <bruno@clisp.org>
34866
34867         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
34868         TESTS_ENVIRONMENT.
34869         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
34870
34871 2008-07-20  Bruno Haible  <bruno@clisp.org>
34872
34873         * lib/c-stack.h (c_stack_action): Add documentation.
34874         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
34875
34876 2008-07-20  Bruno Haible  <bruno@clisp.org>
34877
34878         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
34879         * modules/readlink (License): Likewise.
34880
34881 2008-07-17  Eric Blake  <ebb9@byu.net>
34882
34883         * modules/c-stack (Link): Fix typo.
34884
34885         Make c-stack use libsigsegv, when available.
34886         * modules/c-stack (Depends-on): Add libsigsegv.
34887         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
34888         needed.
34889         * lib/c-stack.c (SIGSTKSZ): Define fallback.
34890         (segv_handler, overflow_handler, c_stack_action)
34891         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
34892         implementation when libsigsegv is available, but only when using
34893         the library is necessary.
34894         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
34895         comment, explaining why XSI check fails on Linux.
34896         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
34897         * tests/test-c-stack2.sh: Tweak skip message.
34898         * NEWS: Document new link-time requirements.
34899
34900 2008-07-16  Eric Blake  <ebb9@byu.net>
34901
34902         c-stack: Expose false positives when not using libsigsegv.
34903         * modules/c-stack-tests (Files): Expand test.
34904         * tests/test-c-stack.c (main): Add means to conditionally trigger
34905         non-overflow SIGSEGV.
34906         * tests/test-c-stack2.sh: New file.
34907
34908 2008-07-14  Bruno Haible  <bruno@clisp.org>
34909
34910         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
34911         Reported by Eric Blake.
34912
34913 2008-07-14  Sam Steingold  <sds@gnu.org>
34914             Bruno Haible  <bruno@clisp.org>
34915
34916         New module libsigsegv.
34917         * modules/libsigsegv: New file.
34918         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
34919         modifications.
34920         * MODULES.html.sh (Signal handling): New section.
34921
34922 2008-07-14  Bruno Haible  <bruno@clisp.org>
34923
34924         * modules/unictype/ctype-* (Description): Add the word "function".
34925         Improves the resulting doc in MODULES.html.
34926
34927 2008-07-12  Ben Pfaff  <blp@gnu.org>
34928
34929         Add longlong module.
34930         * modules/longlong: New file.
34931
34932 2008-07-12  Bruno Haible  <bruno@clisp.org>
34933
34934         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
34935         to empty.
34936
34937 2008-07-10  Ben Pfaff  <blp@gnu.org>
34938
34939         Add isnan module.
34940         * doc/posix-functions/isnan.texi: Mention new module.
34941         * lib/math.in.h: Define isnan macro if we have decided to replace
34942         it.
34943         * m4/isnan.m4: New file.
34944         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
34945         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
34946         also.
34947         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
34948         redundancy.
34949         * m4/math_h.m4: Initialize and substitute variables for isnan
34950         module.
34951         * modules/isnan: New file.
34952         * modules/isnan-tests: New file.
34953         * modules/math: Add substitutions for new module.
34954         * tests/test-isnan.c: New file.
34955         * MODULES.html.sh: Mention new module.
34956
34957 2008-07-10  Ben Pfaff  <blp@gnu.org>
34958
34959         Add isnanf module.
34960         * lib/isnanf.m4: New file.
34961         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
34962         (gl_HAVE_ISNANF_IN_LIBM): New macro.
34963         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
34964         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
34965         * modules/isnanf: New file.
34966         * modules/isnanf-tests: New file.
34967         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
34968         files.
34969         * tests/test-isnanf-nolibm.c: factored most of its contents into
34970         new file tests/test-isnanf.h.
34971         * tests/test-isnanf.h: New file.
34972         * tests/test-isnanf.c: New file.
34973         * MODULES.html.sh: Mention new module.
34974         * doc/glibc-functions/isnanf.texi: Mention new module.
34975
34976 2008-07-10  Ben Pfaff  <blp@gnu.org>
34977
34978         Add isnand module.
34979         * lib/isnand.h: New file.
34980         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
34981         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
34982         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
34983         functionality also.
34984         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
34985         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
34986         (gl_HAVE_ISNAND_IN_LIBM): New macro.
34987         * modules/isnand: New file.
34988         * modules/isnand-tests: New file.
34989         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
34990         files.
34991         * tests/test-isnand-nolibm.c: factored most of its contents into
34992         new file tests/test-isnand.h.
34993         * tests/test-isnand.h: New file.
34994         * tests/test-isnand.c: New file.
34995         * MODULES.html.sh: Mention new module.
34996
34997 2008-07-10  Ben Pfaff  <blp@gnu.org>
34998
34999         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
35000         * lib/isnand.h: Rename lib/isnand-nolibm.h.
35001         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
35002         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
35003         * modules/isnanf-nolibm: Update references to renamed files.
35004         * modules/isnand-nolibm: Likewise.
35005         * modules/isnanf-nolibm-tests: Likewise.
35006         * modules/isnand-nolibm-tests: Likewise.
35007         * lib/frexp.c: Likewise.
35008         * lib/isfinite.c: Likewise.
35009         * lib/signbitd.c: Likewise.
35010         * lib/signbitf.c: Likewise.
35011         * lib/vasnprintf.c: Likewise.
35012         * tests/test-ceilf1.c: Likewise.
35013         * tests/test-ceilf2.c: Likewise.
35014         * tests/test-floorf1.c: Likewise.
35015         * tests/test-floorf2.c: Likewise.
35016         * tests/test-frexp.c: Likewise.
35017         * tests/test-round1.c: Likewise.
35018         * tests/test-round2.c: Likewise.
35019         * tests/test-roundf1.c: Likewise.
35020         * tests/test-strtod.c: Likewise.
35021         * tests/test-trunc1.c: Likewise.
35022         * tests/test-trunc2.c: Likewise.
35023         * tests/test-truncf1.c: Likewise.
35024         * tests/test-truncf2.c: Likewise.
35025         * NEWS: Mention the renamed header files.
35026
35027 2008-07-11  Jim Meyering  <meyering@redhat.com>
35028
35029         vc-list-files: make the last-resort awk code more portable
35030         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
35031         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
35032         does not support it.
35033
35034 2008-07-10  Eric Blake  <ebb9@byu.net>
35035
35036         Work with tar's bootstrap.
35037         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
35038         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
35039         an m4 comment.
35040
35041 2008-07-09  Jim Meyering  <meyering@redhat.com>
35042
35043         posix-shell.m4: fix typo that made this test malfunction
35044         * m4/posix-shell.m4: Remove capitalization in variable name.
35045
35046 2008-07-08  Bruno Haible  <bruno@clisp.org>
35047
35048         * m4/onceonly.m4: Update comments.
35049         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35050
35051 2008-07-04  Jim Meyering  <meyering@redhat.com>
35052
35053         * users.txt: Add vc-dwim.
35054         (bison, coreutils): Use the gitweb URL.
35055
35056 2008-07-03  Jim Meyering  <meyering@redhat.com>
35057
35058         * users.txt: Add libffcall.  From Sam Steingold.
35059
35060 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
35061
35062         getdate.y: do not ignore TZ with relative day, month or year offset
35063         * lib/getdate.y (get_date): Move the tz-handling block to follow the
35064         relative-date-handling, since otherwise, the latter would clobber the
35065         sole output (an updated Start value) of the tz-handling block.
35066         * tests/test-getdate.c: Tests for the fix
35067
35068 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35069
35070         Recognize 'foo_LIBRARIES += libgnu.a'.
35071         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
35072         makefile snippet has already specified an installation location,
35073         also using '+='.
35074
35075 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
35076
35077         getdate.y: factor out common actions
35078         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
35079         Use them in place of open-coded actions.
35080
35081 2008-07-01  Simon Josefsson  <simon@josefsson.org>
35082
35083         Add self-test for getdate module.
35084         * modules/getdate-tests: New file.
35085         * tests/test-getdate.c: New file.
35086
35087 2008-06-29  Bruno Haible  <bruno@clisp.org>
35088
35089         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
35090         .gitignore.
35091         Reported by Sylvain Beucler <beuc@beuc.net>.
35092
35093 2008-06-29  Bruno Haible  <bruno@clisp.org>
35094
35095         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
35096         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
35097
35098 2008-06-29  Bruno Haible  <bruno@clisp.org>
35099
35100         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
35101         EXTRA_DIST.
35102         Reported by Sylvain Beucler <beuc@beuc.net>.
35103
35104 2008-06-26  Jim Meyering  <meyering@redhat.com>
35105
35106         make several modules depend on the "open" module
35107         This provides slightly increased consistency when opening-for-write
35108         the name of a non-directory spelled with a trailing slash.
35109         * modules/chdir-safer: Likewise.
35110         * modules/chown: Likewise.
35111         * modules/clean-temp: Likewise.
35112         * modules/copy-file: Likewise.
35113         * modules/fchdir: Likewise.
35114         * modules/fcntl-safer: Likewise.
35115         * modules/pipe: Likewise.
35116         * modules/utime: Likewise.
35117         Prompted by Eric Blake and Bruno Haible.
35118
35119 2008-06-24  Andreas Schwab  <schwab@suse.de>
35120
35121         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
35122         literals can be used as initializers for global variables.
35123
35124 2008-06-23  Eric Blake  <ebb9@byu.net>
35125
35126         Make gnulib-cache.m4 easier to diff.
35127         * gnulib-tool (func_import): Allow newlines when reading cached
35128         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
35129
35130 2008-06-23  Bruno Haible  <bruno@clisp.org>
35131
35132         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
35133         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
35134         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
35135         m4/signalblocking.m4.
35136         (gl_PREREQ_SIGACTION): Don't invoke it.
35137         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
35138         gl_PREREQ_SIG_HANDLER_H.
35139         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35140         Don't check for sigaction here.
35141
35142 2008-06-23  Bruno Haible  <bruno@clisp.org>
35143
35144         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
35145         (install_handlers): Don't set the SA_RESETHAND flag.
35146
35147 2008-06-23  Bruno Haible  <bruno@clisp.org>
35148
35149         * m4/sigaction.m4: Comment fixes.
35150         * lib/signal.in.h: Likewise.
35151
35152 2008-06-23  Eric Blake  <ebb9@byu.net>
35153
35154         Fix typo.
35155         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
35156
35157         Avoid SA_ namespace.
35158         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
35159         Reported by Ralf Wildenhues.
35160
35161         Avoid test failure due to SA_RESTORER.
35162         * tests/test-sigaction.c (SA_MASK): New macro.
35163         (main): Avoid failing due to extension flags being set.
35164         Reported by Jim Meyering.
35165
35166         Revert use of sig-handler.h in sigprocmask.c.
35167         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
35168         it requires the existence of struct sigaction.
35169         * lib/sigprocmask.c (handler_t): Restore typedef.
35170         (rpl_signal, old_handlers): Use local type.
35171
35172 2008-06-22  Bruno Haible  <bruno@clisp.org>
35173
35174         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
35175         conditionally.
35176         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35177
35178 2008-06-22  Bruno Haible  <bruno@clisp.org>
35179
35180         * doc/posix-functions/siginterrupt.texi: Move note.
35181
35182         * lib/signal.in.h (SA_RESTART): New macro.
35183         * lib/sigaction.c: Update comment.
35184
35185         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
35186
35187         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
35188         (gl_PREREQ_SIGPROCMASK): Invoke it.
35189         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
35190
35191         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
35192
35193         * lib/sigprocmask.c: Update a comment.
35194
35195 2008-06-21  Eric Blake  <ebb9@byu.net>
35196
35197         Use sigaction module rather than signal().
35198         * modules/c-stack (Depends-on): Add sigaction.
35199         * modules/fatal-signal (Depends-on): Likewise.
35200         * modules/nanosleep (Depends-on): Likewise.
35201         * modules/sigprocmask (Files): Add sig-handler.h.
35202         * modules/sigaction (Files): Likewise.
35203         * lib/sig-handler.h (get_handler): New file, suggested by Paul
35204         Eggert.
35205         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
35206         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
35207         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
35208         (init_fatal_signals): Likewise.
35209         * lib/nanosleep.c (rpl_nanosleep): Likewise.
35210         (siginterrupt): Delete fallback.
35211         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
35212         instead.
35213         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
35214         siginterrupt.
35215
35216         New module sigaction, for mingw.
35217         * modules/sigaction: New module...
35218         * modules/sigaction-tests: ...and its test.
35219         * m4/sigaction.m4: New file.
35220         * lib/sigaction.c: Likewise.
35221         * tests/test-sigaction.c: Likewise.
35222         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
35223         * modules/signal (Makefile.am): Likewise.
35224         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
35225         needed.
35226         * doc/posix-headers/signal.texi (signal.h): Mention provided
35227         types.
35228         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
35229         that sigaction is preferable.
35230         * doc/posix-functions/sigaction.texi (sigaction): Mention new
35231         module.
35232         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35233         sigaction.
35234
35235         Improve robustness of sigprocmask by overriding signal.
35236         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
35237         is in use.
35238         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
35239         (SIGKILL, SIGSTOP): Provide fallbacks.
35240         (rpl_signal): Implement.
35241         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
35242         signal can be called inside handlers.
35243
35244         Fix nanosleep module on mingw.
35245         * modules/nanosleep (Depends-on): Add sys_select.
35246         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
35247
35248         Fix licensing of sigprocmask.
35249         * modules/raise (License): Relicense as LGPL.
35250
35251 2008-06-21  Bruno Haible  <bruno@clisp.org>
35252
35253         * lib/propername.c (proper_name_utf8): Don't use the transliterated
35254         result if it contains question marks.
35255         Reported by Michael Geng <linux@michaelgeng.de>.
35256
35257 2008-06-19  Bruno Haible  <bruno@clisp.org>
35258
35259         Fix CVS-ism.
35260         * doc/gnulib.texi: Include updated-stamp.texi.
35261         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
35262         (updated-stamp.texi): New rule.
35263         (gnulib.info): Depend on it.
35264         * doc/.gitignore: Add updated-stamp.texi.
35265         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
35266
35267 2008-06-19  Bruno Haible  <bruno@clisp.org>
35268
35269         * doc/Makefile (gnulib.info): Update and simplify dependencies.
35270         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
35271
35272 2008-06-19  Eric Blake  <ebb9@byu.net>
35273
35274         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
35275         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
35276         Reported by Stepan Kasal.
35277
35278 2008-06-18  Bruno Haible  <bruno@clisp.org>
35279
35280         * lib/fatal-signal.c (init_fatal_signals): Add comment.
35281         Reported by Eric Blake.
35282
35283 2008-06-18  Eric Blake  <ebb9@byu.net>
35284
35285         Work around cygwin 1.5.25 strsignal bug.
35286         * tests/test-strsignal.c: Allow for const char *.
35287         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
35288
35289 2008-06-18  Simon Josefsson  <simon@josefsson.org>
35290
35291         * users.txt: Update URL to article and add author/date
35292         information.
35293
35294 2008-06-17  Bruno Haible  <bruno@clisp.org>
35295
35296         New macro gl_DISABLE_THREADS.
35297         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
35298         if the user did not pass --enable-threads or --disable-threads option.
35299         (gl_DISABLE_THREADS): New macro.
35300         Reported by Eric Blake <ebb9@byu.net>.
35301
35302 2008-06-17  Bruno Haible  <bruno@clisp.org>
35303
35304         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
35305         when the macro ignores it.
35306         Based on a patch by Eric Blake <ebb9@byu.net>.
35307
35308 2008-06-17  Bruno Haible  <bruno@clisp.org>
35309
35310         * modules/tls (License): Change to LGPLv2+.
35311         Reported by Eric Blake.
35312
35313 2008-06-17  Eric Blake  <ebb9@byu.net>
35314
35315         Simplify c-stack prerequisites.
35316         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
35317         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
35318         no longer requires <ucontext.h> to exist.  Optimize setrlimit
35319         check.
35320         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
35321         <sys/resource.h>.
35322
35323         Move c-stack test into testsuite.
35324         * modules/c-stack-tests: New file.
35325         * lib/c-stack.c [DEBUG]: Move test program...
35326         * tests/test-c-stack.c: ...into this new file.  Skip rather than
35327         fail test if sigaltstack is lacking.
35328         * tests/test-c-stack.sh: New driver file.
35329
35330 2008-06-16  Eric Blake  <ebb9@byu.net>
35331
35332         Use raise module consistently.
35333         * modules/fatal-signal (Depends-on): Add raise.
35334         * modules/sigprocmask (Depends-on): Likewise.
35335         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
35336         * lib/sigprocmask.c (sigprocmask): Likewise.
35337         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35338         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
35339
35340         Fix compliance bug in sigpending.
35341         * lib/sigprocmask.c (sigpending): Return pending array via
35342         parameter, not return value.
35343
35344 2008-06-14  Eric Blake  <ebb9@byu.net>
35345
35346         Improve obstack-printf test code.
35347         * tests/test-obstack-printf.c (test_function): Fix comment, and
35348         simplify usage of obstack_* in macros.  Add a test for coverage.
35349         Reported by Bruno Haible.
35350
35351 2008-06-14  Bruno Haible  <bruno@clisp.org>
35352
35353         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
35354         array size as a constant, not as a const variable.
35355         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
35356         AC_USE_SYSTEM_EXTENSIONS.
35357         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
35358         Test whether the obstack_printf function actually exists.
35359         * modules/obstack-printf (Depends-on): Add extensions.
35360         (Include): Remove obstack.h.
35361         * modules/obstack-printf-posix (Depends-on): Add extensions.
35362         (Include): Remove obstack.h.
35363
35364 2008-06-13  Eric Blake  <ebb9@byu.net>
35365
35366         Add obstack-printf and obstack-printf-posix modules.
35367         * modules/obstack-printf: New file.
35368         * modules/obstack-printf-posix: Likewise.
35369         * MODULES.html.sh (Misc): Mention them.
35370         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
35371         Likewise.
35372         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
35373         Likewise.
35374         * modules/stdio (Makefile.am): Accomodate new modules.
35375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35376         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
35377         Declare.
35378         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
35379         functions.
35380         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
35381         (gl_REPLACE_OBSTACK_PRINTF): New macros
35382         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
35383         * tests/test-obstack-printf.c: New file.
35384         * modules/obstack-printf-tests: Likewise.
35385         * modules/obstack-printf-posix-tests: Likewise.
35386
35387 2008-06-11  Bruno Haible  <bruno@clisp.org>
35388
35389         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
35390         * lib/open.c: Include errno.h.
35391         (open): Fail when attempting to write to a file that has a trailing
35392         slash.
35393         * tests/test-open.c (main): Test against trailing slash bug.
35394         * doc/posix-functions/open.texi: Mention the trailing slash bug.
35395
35396 2008-06-10  Bruno Haible  <bruno@clisp.org>
35397
35398         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
35399         for $? to work inside the trap command, with various /bin/sh-s.
35400         * tests/test-vc-list-files-cvs.sh: Likewise.
35401
35402 2008-06-10  Bruno Haible  <bruno@clisp.org>
35403
35404         * lib/acl-internal.h: Don't include gettext.h here.
35405         * lib/set-mode-acl.c: Include gettext.h here.
35406         * lib/copy-acl.c: Likewise.
35407
35408 2008-06-10  Bruno Haible  <bruno@clisp.org>
35409
35410         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
35411         * lib/wait-process.c (wait_subprocess): Likewise.
35412         * lib/execute.h (execute): Add termsigp argument.
35413         * lib/execute.c (execute): Likewise.
35414         * lib/csharpcomp.c (compile_csharp_using_pnet,
35415         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
35416         * lib/csharpexec.c (execute_csharp_using_pnet,
35417         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
35418         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
35419         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
35420         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
35421         is_jikes_present): Update.
35422         * lib/javaexec.c (execute_java_class): Update.
35423         * lib/javaversion.c (execute_and_read_line): Update.
35424         * NEWS: Document the changes.
35425         Reported by Eric Blake.
35426
35427 2008-06-10  Eric Blake  <ebb9@byu.net>
35428
35429         Add missing include.
35430         * tests/test-strstr.c (includes): Add <signal.h>.
35431         * tests/test-strcasestr.c (includes): Likewise.
35432         * tests/test-memmem.c (includes): Likewise.
35433
35434 2008-06-10  Bruno Haible  <bruno@clisp.org>
35435
35436         * lib/wait-process.c (wait_subprocess): Add an assertion.
35437
35438 2008-06-10  Bruno Haible  <bruno@clisp.org>
35439
35440         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
35441
35442 2008-06-10  Bruno Haible  <bruno@clisp.org>
35443
35444         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
35445         using alarm().
35446         * tests/test-strcasestr.c (main): Likewise.
35447         * tests/test-strstr.c (main): Likewise.
35448
35449 2008-06-09  Bruno Haible  <bruno@clisp.org>
35450
35451         Work around the Solaris 10 ACE ACLs ABI change.
35452         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
35453         declare if ACL_NO_TRIVIAL is present.
35454         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
35455         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
35456         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
35457         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
35458         define if ACL_NO_TRIVIAL is present.
35459         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
35460         and use the current ABI.
35461         (file_has_acl): Use same #if condition as elsewhere.
35462         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
35463         in use, and use the current ABI.
35464         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
35465         Reported by Jim Meyering.
35466
35467 2008-06-09  Eric Blake  <ebb9@byu.net>
35468
35469         Work around environments that (stupidly) ignore SIGALRM.
35470         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
35471         before using alarm().
35472         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35473         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
35474         Reported by Ian Beckwith <ianb@erislabs.net>.
35475
35476         Produce autobuild blurb earlier in log.
35477         * modules/autobuild (configure.ac-early): Move AB_INIT here.
35478
35479 2008-06-09  Jim Meyering  <meyering@redhat.com>
35480         and Ondřej Vašík  <ovasik@redhat.com>
35481
35482         utimens.c: correct kernel bug work-around
35483         Ondřej Vašík found that the invalid return value of 280 indicates
35484         failure, not success, and the kernel bug we're trying to work
35485         around affects not just the utimensat call, but also the fallback
35486         futimens call.
35487         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
35488         not success.
35489         [HAVE_FUTIMENS]: Use the same work-around, here.
35490
35491 2008-06-09  Jim Meyering  <meyering@redhat.com>
35492
35493         add more guards around definition of ACE_-related code
35494         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
35495         ALLOW and ACE_OWNER are also defined.
35496
35497 2008-06-08  Bruno Haible  <bruno@clisp.org>
35498
35499         * lib/acl-internal.h: Add me as co-author.
35500         * lib/file-has-acl.c: Likewise.
35501         * lib/set-mode-acl.c: Likewise.
35502         * lib/copy-acl.c: Likewise.
35503
35504 2008-06-08  Bruno Haible  <bruno@clisp.org>
35505
35506         Add support for AIX ACLs.
35507         * lib/acl-internal.h (acl_nontrivial): New declaration.
35508         * lib/file-has-acl.c (acl_nontrivial): New function.
35509         (file_has_acl): Add implementation using AIX 4 ACL API.
35510         * lib/set-mode-acl.c (qset_acl): Likewise.
35511         * lib/copy-acl.c (qcopy_acl): Likewise.
35512
35513 2008-06-08  Bruno Haible  <bruno@clisp.org>
35514
35515         Add support for HP-UX ACLs.
35516         * lib/acl-internal.h (acl_nontrivial): New declaration.
35517         * lib/file-has-acl.c (acl_nontrivial): New function.
35518         (file_has_acl): Add implementation using HP-UX 11 ACL API.
35519         * lib/set-mode-acl.c (qset_acl): Likewise.
35520         * lib/copy-acl.c (qcopy_acl): Likewise.
35521
35522 2008-06-08  Bruno Haible  <bruno@clisp.org>
35523
35524         Add support for Cygwin ACLs.
35525         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
35526         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
35527         the chmod_or_fchmod call.
35528         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
35529
35530 2008-06-08  Bruno Haible  <bruno@clisp.org>
35531
35532         Fix bug with setuid modes in Solaris 10+ code.
35533         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
35534         succeeded, when the mode contains some special bits.
35535
35536 2008-06-08  Bruno Haible  <bruno@clisp.org>
35537
35538         Add support for Solaris 7..10 ACLs.
35539         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
35540         declarations.
35541         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
35542         functions.
35543         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
35544         * lib/set-mode-acl.c (qset_acl): Likewise.
35545         * lib/copy-acl.c (qcopy_acl): Likewise.
35546
35547 2008-06-08  Bruno Haible  <bruno@clisp.org>
35548
35549         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
35550         declaration.
35551         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
35552         (acl_access_nontrivial): Remove MacOS X case.
35553         (file_has_acl): Use acl_extended_nontrivial.
35554         * lib/copy-acl.c (qcopy_acl): Likewise.
35555
35556 2008-06-08  Bruno Haible  <bruno@clisp.org>
35557
35558         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
35559
35560 2008-06-08  Jim Meyering  <meyering@redhat.com>
35561
35562         * modules/acl (Maintainer): Add Bruno Haible.
35563
35564 2008-06-07  Bruno Haible  <bruno@clisp.org>
35565
35566         Improve support for Tru64 ACLs.
35567         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
35568         ACL on OSF/1.
35569
35570 2008-06-07  Bruno Haible  <bruno@clisp.org>
35571
35572         Add support for MacOS X ACLs.
35573         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
35574         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
35575         * lib/set-mode-acl.c (qset_acl): Likewise.
35576         * lib/copy-acl.c (qcopy_acl): Likewise.
35577
35578 2008-06-07  Bruno Haible  <bruno@clisp.org>
35579
35580         Fix memory leak introduced on 2008-05-22.
35581         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
35582         use.
35583
35584 2008-06-07  Bruno Haible  <bruno@clisp.org>
35585
35586         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
35587         to construct an empty ACL.
35588
35589 2008-06-07  Bruno Haible  <bruno@clisp.org>
35590
35591         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
35592         precisely.
35593         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
35594
35595 2008-06-07  Bruno Haible  <bruno@clisp.org>
35596
35597         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
35598         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
35599
35600 2008-06-07  Bruno Haible  <bruno@clisp.org>
35601
35602         * doc/posix-functions/_setjmp.texi: Explain the use of this function
35603         regardless of POSIX.
35604         * doc/posix-functions/_longjmp.texi: Likewise.
35605         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
35606         SystemV platform in this case.
35607
35608 2008-06-06  Eric Blake  <ebb9@byu.net>
35609
35610         Document abort() bugs.
35611         * doc/posix-functions/abort.texi (abort): Mention anomalies.
35612
35613         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
35614         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
35615         sigsetjmp.
35616         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
35617         siglongjmp, but only as a macro.
35618         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
35619         is obsolete.
35620         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
35621
35622         Tweak documentation to cover cygwin argz bugs.
35623         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
35624         argz bug fix; no code change needed since no cygwin releases
35625         occurred between the last fix and the bug being tested.
35626         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
35627         module and recently fixed cygwin bugs.
35628         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
35629         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
35630         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
35631         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
35632         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
35633         Likewise.
35634         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
35635         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
35636         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
35637         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
35638         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
35639         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
35640         Likewise.
35641
35642         Avoid gcc warning on cygwin.
35643         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
35644         !ACL_NO_TRIVIAL]: Avoid unused variable.
35645
35646 2008-06-05  Eric Blake  <ebb9@byu.net>
35647
35648         Be tolerant of UNKNOWN version in gnulib-tool test dir.
35649         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
35650         git-version-gen fails to come up with a version.
35651         Reported by Simon Josefsson.
35652
35653 2008-06-05  Jim Meyering  <meyering@redhat.com>
35654             Paul Eggert  <eggert@cs.ucla.edu>
35655
35656         utimens.c: work around a probable Linux kernel bug
35657         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
35658         appears to be a kernel bug that causes utimensat to return 280
35659         instead of 0, indicating success.
35660
35661 2008-06-04  Bruno Haible  <bruno@clisp.org>
35662
35663         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
35664         2008-06-01 commit.
35665
35666 2008-06-04  Bruno Haible  <bruno@clisp.org>
35667
35668         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
35669         * lib/file-has-acl.c (acl_access_nontrivial): New function.
35670         (file_has_acl): Use it. Save errno afterwards.
35671         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
35672
35673 2008-06-03  Bruno Haible  <bruno@clisp.org>
35674
35675         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
35676         draft code. Simplify #ifs.
35677         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
35678         Put Solaris code after POSIX-draft code. Fix comments regarding
35679         Solaris 10, HP-UX. Mention Cygwin.
35680         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
35681
35682 2008-06-03  Eric Blake  <ebb9@byu.net>
35683
35684         Provide fallback for older kernels.
35685         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
35686         Provide runtime fallback if kernel lacks support.
35687         Reported by Mike Frysinger.
35688
35689 2008-06-02  Bruno Haible  <bruno@clisp.org>
35690
35691         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
35692         it exists.
35693
35694 2008-06-02  Bruno Haible  <bruno@clisp.org>
35695
35696         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
35697         * lib/copy-acl.c (qcopy_acl): Update comment.
35698
35699 2008-06-02  Bruno Haible  <bruno@clisp.org>
35700
35701         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
35702         like ACL APIs.
35703
35704 2008-06-02  Bruno Haible  <bruno@clisp.org>
35705
35706         * tests/test-file-has-acl.sh: Use different code for Cygwin.
35707         * tests/test-set-mode-acl.sh: Likewise.
35708         * tests/test-copy-acl.sh: Likewise.
35709         * tests/test-copy-file.sh: Likewise.
35710
35711 2008-06-02  Bruno Haible  <bruno@clisp.org>
35712
35713         * tests/test-file-has-acl.sh: Remove unused code.
35714
35715 2008-06-01  Bruno Haible  <bruno@clisp.org>
35716
35717         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
35718         (copy_acl): Just a wrapper around qcopy_acl that emits the error
35719         messages.
35720         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
35721
35722 2008-06-01  Bruno Haible  <bruno@clisp.org>
35723
35724         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
35725         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
35726         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
35727         APIs.
35728         * modules/acl-tests (configure.ac): Remove tests now contained in
35729         m4/acl.m4.
35730
35731 2008-06-02  Jim Meyering  <meyering@redhat.com>
35732
35733         announce-gen: use a better key-server host name
35734         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
35735         it may be more consistently reliable.  Suggested by Werner Koch
35736         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
35737
35738 2008-06-01  Bruno Haible  <bruno@clisp.org>
35739
35740         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
35741         Reported by Voroskoi Andras <voroskoi@gmail.com>.
35742
35743 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
35744
35745         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
35746
35747 2008-06-01  Bruno Haible  <bruno@clisp.org>
35748
35749         New ACL tests.
35750         * tests/test-file-has-acl.sh: New file.
35751         * tests/test-file-has-acl.c: New file.
35752         * tests/test-set-mode-acl.sh: New file.
35753         * tests/test-set-mode-acl.c: New file.
35754         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
35755         * tests/test-copy-acl.c: New file.
35756         * modules/acl-tests: New file, based on modules/copy-file-tests.
35757         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
35758         (Depends-on): Add acl-tests.
35759         (configure.ac): Remove checks.
35760         (Makefile.am): Don't create test-sameacls program here any more.
35761
35762 2008-06-01  Bruno Haible  <bruno@clisp.org>
35763
35764         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
35765         * tests/test-sameacls.c: Include progname.h.
35766         (main): Invoke set_program_name. Portability fixes for MacOS X,
35767         Solaris, HP-UX.
35768
35769 2008-06-01  Bruno Haible  <bruno@clisp.org>
35770
35771         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
35772         function.
35773         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
35774
35775 2008-06-01  Bruno Haible  <bruno@clisp.org>
35776
35777         * modules/rpmatch (Depends-on): Add strdup.
35778
35779 2008-06-01  Bruno Haible  <bruno@clisp.org>
35780
35781         * lib/pipe.c: Include unistd-safer.h.
35782         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
35783         * modules/pipe (Depends-on): Add unistd-safer.
35784
35785 2008-05-30  Simon Josefsson  <simon@josefsson.org>
35786
35787         * modules/autobuild (configure.ac): Call AB_INIT.
35788
35789 2008-05-30  Simon Josefsson  <simon@josefsson.org>
35790
35791         * tests/test-getaddrinfo.c: Don't print debug messages by default.
35792         Suggested by Bruno Haible <bruno@clisp.org>.
35793
35794 2008-05-30  Simon Josefsson  <simon@josefsson.org>
35795
35796         * tests/test-base64.c: Cast size_t to unsigned long when invoking
35797         printf.  Use %lu instead of %d.  Reported by Bruno Haible
35798         <bruno@clisp.org>.
35799
35800 2008-05-29  Eric Blake  <ebb9@byu.net>
35801
35802         Prefer new POSIX 200x interfaces over futimesat.
35803         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
35804         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
35805         when available.
35806         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
35807
35808 2008-05-28  Bruno Haible  <bruno@clisp.org>
35809
35810         * modules/stpcpy (License): Change to LGPLv2+.
35811         Requested by David Lutterkort <dlutter@redhat.com>.
35812
35813 2008-05-27  Bruno Haible  <bruno@clisp.org>
35814
35815         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
35816         current mingw.
35817         Reported by Jose E. Marchesi <jemarch@gnu.org>.
35818
35819 2008-05-27  Bruno Haible  <bruno@clisp.org>
35820
35821         * modules/iconv_open (Link): New section, from module 'iconv'.
35822         * modules/striconv (Link): Likewise.
35823         * modules/striconveh (Link): Likewise.
35824         * modules/xstriconv (Link): Likewise.
35825         * modules/unicodeio (Link): Likewise.
35826         * modules/propername (Link): Likewise.
35827         Reported by Jim Meyering.
35828
35829 2008-05-26  Jim Meyering  <meyering@redhat.com>
35830
35831         sha256: do not artificially restrict buffer length to be < 2^32
35832         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
35833         uint32_t to size_t.
35834         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
35835         to match.
35836
35837         avoid unaligned access errors, e.g., on sparc
35838         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
35839         direct access through a possibly-unaligned uint64* pointer.
35840         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
35841         direct access through a possibly-unaligned uint32* pointer.
35842         Prompted by this patch from Tom "spot" Callaway:
35843         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
35844
35845         sha512.c: fix typo in comment
35846         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
35847
35848 2008-05-25  Bruno Haible  <bruno@clisp.org>
35849
35850         * lib/set-mode-acl.c: Renamed from lib/acl.c.
35851         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
35852         (Makefile.am): Update lib_SOURCES.
35853
35854 2008-05-25  Bruno Haible  <bruno@clisp.org>
35855
35856         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
35857
35858 2008-05-25  Jim Meyering  <meyering@redhat.com>
35859
35860         useless-if-before-free: freed expr may have white-space differences
35861         * build-aux/useless-if-before-free: Recognize cases in which the
35862         freed expression differs from the tested one in embedded white
35863         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
35864         $1 was used, so we can't make any regexp shy.  Improved tests now
35865         detect this.
35866
35867         useless-if-before-free: accept white space in the expression.
35868         * build-aux/useless-if-before-free: For now, any white space
35869         in the expression must be identical in the free argument.
35870
35871         useless-if-before-free: efficiency tweak
35872         * build-aux/useless-if-before-free: Make the expression-matching
35873         regexp "shy".
35874         Make the *outer* regexp shy, not the expr-matching one.
35875
35876         update code-in-comment to accept cast of free arg
35877         * build-aux/useless-if-before-free: Update regexp.
35878
35879 2008-05-25  Bruno Haible  <bruno@clisp.org>
35880
35881         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
35882         * modules/copy-file-tests (Files, Makefile.am): Update.
35883         * tests/test-copy-file.c (func_test_copy): Update.
35884
35885 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
35886
35887         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
35888
35889 2008-05-23  Bruno Haible  <bruno@clisp.org>
35890
35891         Improve support for ACLs on OSF/1.
35892         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
35893         Remove fallback for unknown flavors of ACLs.
35894
35895 2008-05-22  Bruno Haible  <bruno@clisp.org>
35896
35897         Add support for ACLs on OSF/1.
35898         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
35899         replacements.
35900         (acl_free_text): New macro fallback.
35901         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
35902         acl_free.
35903         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
35904         acl_free_text function. Require AC_C_INLINE.
35905
35906 2008-05-22  Bruno Haible  <bruno@clisp.org>
35907
35908         Make copy_acl work on MacOS X 10.5.
35909         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
35910         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
35911         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
35912         If MODE_INSIDE_ACL, don't assume that every system has the same text
35913         representation for ACLs as FreeBSD.
35914         * lib/copy-acl.c (copy_acl): Add support for platforms with
35915         !MODE_INSIDE_ACL.
35916         * lib/file-has-acl.c (file_has_acl): Likewise.
35917         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
35918         FreeBSD, MacOS X, or IRIX, respectively.
35919
35920 2008-05-22  Bruno Haible  <bruno@clisp.org>
35921
35922         * lib/acl.h: Don't include <sys/acl.h>.
35923         (GETACLCNT): Move fallback to lib/acl-internal.h.
35924         * lib/acl-internal.h: Include <sys/acl.h> here.
35925         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
35926
35927 2008-05-22  Bruno Haible  <bruno@clisp.org>
35928
35929         Split off copy_acl function to separate file.
35930         * lib/copy-acl.c: New file, extracted from lib/acl.c.
35931         * lib/acl.c (copy_acl): Moved function to separate file.
35932         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
35933         * modules/acl (Files): Add lib/copy-acl.c.
35934         (Makefiles.am): Augment lib_SOURCES.
35935
35936 2008-05-22  Bruno Haible  <bruno@clisp.org>
35937
35938         * modules/copy-file-tests: New file.
35939         * tests/test-copy-file.sh: New file.
35940         * tests/test-copy-file.c: New file.
35941         * tests/test-copy-file-sameacls.c: New file.
35942
35943 2008-05-22  Eric Blake  <ebb9@byu.net>
35944
35945         Avoid gcc warning.
35946         * tests/test-memcmp.c (main): Pass NULL indirectly.
35947
35948 2008-05-21  Bruno Haible  <bruno@clisp.org>
35949
35950         Add reference doc about ACLs.
35951         * doc/acl-resources.txt: New file.
35952         * doc/acl-cygwin.txt: New file.
35953
35954 2008-05-21  Bruno Haible  <bruno@clisp.org>
35955
35956         Avoid one more warning from gcc.
35957         * lib/vasnprintf.c (IF_LINT): Update comments.
35958         (VASNPRINTF): Use it also for the 'prefix' array initializer.
35959
35960 2008-05-21  Jim Meyering  <meyering@redhat.com>
35961
35962         avoid a warning from gcc
35963         * lib/vasnprintf.c (IF_LINT): Define.
35964         (scale10_round_decimal_long_double):
35965         Use it to avoid a "may be used uninitialized" warning.
35966         (scale10_round_decimal_double): Likewise.
35967
35968 2008-05-21  Simon Josefsson  <simon@josefsson.org>
35969
35970         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
35971         declared.
35972
35973 2008-05-20  Bruno Haible  <bruno@clisp.org>
35974
35975         * tests/test-memcmp.c (main): Test also the sign of the result. Test
35976         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
35977
35978 2008-05-20  Simon Josefsson  <simon@josefsson.org>
35979
35980         * modules/memcmp-tests: New file.
35981         * tests/test-memcmp.c: New file.
35982
35983 2008-05-19  Bruno Haible  <bruno@clisp.org>
35984
35985         * modules/propername (Notice, configure.ac): Put quoted "..." into
35986         --keyword option.
35987         * lib/propername.h: Update comments accordingly.
35988         Reported by Eric Blake.
35989
35990 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
35991
35992         * modules/getpass-gnu (Depends-on): Add fseeko.
35993
35994 2008-05-19  Simon Josefsson  <simon@josefsson.org>
35995
35996         * modules/base64-tests: New file.
35997
35998 2008-05-19  Bo Borgerson <gigabo@gmail.com>
35999
36000         * lib/base64.c (base64_decode_ctx): If a decode context structure
36001         was passed in use it to ignore newlines.  If a context structure
36002         was _not_ passed in, continue to treat newlines as garbage (this
36003         is the historical behavior).  Formerly base64_decode.
36004         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
36005         takes a decode context structure.
36006         * lib/base64.h (base64_decode): Macro for four-argument calls.
36007         (base64_decode_alloc): Likewise.
36008         * lib/base64.c (base64_decode_ctx): If a decode context structure
36009         was passed in use it to ignore newlines.  If a context structure
36010         was _not_ passed in, continue to treat newlines as garbage (this
36011         is the historical behavior).  Formerly base64_decode.
36012         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
36013         takes a decode context structure.
36014         * lib/base64.h (base64_decode): Macro for four-argument calls.
36015         (base64_decode_alloc): Likewise.
36016
36017 2008-05-19  Jim Meyering  <meyering@redhat.com>
36018
36019         avoid a warning from gcc
36020         * lib/trim.c (IF_LINT): Define.
36021         (trim2): Use it to avoid a "may be used uninitialized" warning.
36022
36023         Fix doc typo.
36024         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
36025
36026 2008-05-19  Bruno Haible  <bruno@clisp.org>
36027
36028         * doc/glibc-functions/getpass.texi: Document limits of other
36029         implementations.
36030
36031 2008-05-19  Simon Josefsson  <simon@josefsson.org>
36032             Bruno Haible <bruno@clisp.org>
36033
36034         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
36035
36036 2008-05-18  Bruno Haible  <bruno@clisp.org>
36037
36038         * modules/propername: New file, from GNU gettext.
36039         * lib/propername.h: New file, from GNU gettext.
36040         * lib/propername.c: New file, from GNU gettext.
36041         * MODULES.html.sh (Internationalization functions): Add propername.
36042
36043 2008-05-16  Jim Meyering  <meyering@redhat.com>
36044             Bruno Haible  <bruno@clisp.org>
36045
36046         Avoid some warnings from "gcc -Wshadow".
36047         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
36048
36049 2008-05-15  Eric Blake  <ebb9@byu.net>
36050
36051         Extend previous patch to cygwin 1.7.0.
36052         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
36053         fast implementation in cygwin >= 1.7.0.
36054         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
36055         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36056
36057 2008-05-15  Bruno Haible  <bruno@clisp.org>
36058
36059         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
36060         implementation in glibc >= 2.9.
36061         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
36062         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36063
36064 2008-05-15  Bruno Haible  <bruno@clisp.org>
36065
36066         * MODULES.html.sh (Internationalization functions): Remove linebreak.
36067         (Unicode string functions): Add unilbrk/*.
36068         Reported by Karl Berry.
36069
36070 2008-05-15  Eric Blake  <ebb9@byu.net>
36071
36072         Fix violation of <stdbool.h> replacement in regex.
36073         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
36074         * lib/regexec.c (re_search_internal): Likewise.
36075         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
36076
36077 2008-05-15  Jim Meyering  <meyering@redhat.com>
36078
36079         avoid distracting test output when git or cvs is not found
36080         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
36081         * tests/test-vc-list-files-git.sh: Likewise.
36082
36083 2008-05-15  Eric Blake  <ebb9@byu.net>
36084
36085         Glibc finally accepted the memmem speedup code, bugzilla #5514.
36086         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
36087         glibc version.
36088         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
36089         * doc/posix-functions/strstr.texi (strstr): Likewise.
36090         * lib/str-two-way.h (MAX): Sychronize with glibc.
36091
36092 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
36093
36094         * lib/regcomp.c (optimize_utf8): Add a note on why we test
36095         opr.ctx_type.
36096         (calc_first): Initialize constraint field.
36097         (duplicate_node_closure): Use it instead of special casing ANCHORS.
36098         Fix grammar.
36099         (duplicate_node): Merge constraint field for all node types.
36100         (calc_eclosure_iter): Look at constraint field for all node types.
36101         * lib/regex_internal.c (create_cd_newstate): Don't look at
36102         opr.ctx_type.
36103
36104 2008-05-14  Bruno Haible  <bruno@clisp.org>
36105
36106         Help GCC to do better code generation.
36107         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
36108         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
36109         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
36110         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
36111         Declare with attribute 'malloc' if supported.
36112
36113 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
36114
36115         use "echo STR|wc -c" rather than unportable "expr length STR"
36116         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
36117         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
36118
36119 2008-05-14  Jim Meyering  <meyering@redhat.com>
36120
36121         use dd ibs=$n count=1 ... rather than less-portable head -c$n
36122         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
36123         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
36124         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
36125         via Collin Lasse.
36126
36127 2008-05-14  Eric Blake  <ebb9@byu.net>
36128
36129         Avoid quadratic growth in gl_LIBSOURCES.
36130         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
36131         Suggested by Bruno Haible.
36132
36133         Test xmemdup0.
36134         * modules/xmemdup0-tests: New file.
36135         * tests/test-xmemdup0.c: Likewise.
36136
36137 2008-05-13  Eric Blake  <ebb9@byu.net>
36138
36139         Split xmemdup0 into its own module.
36140         * modules/xmemdup0: New file.
36141         * lib/xmemdup0.h: Likewise.
36142         * lib/xmemdup0.c: Likewise.
36143         * MODULES.html.sh (Memory management functions): Add xmemdup0.
36144         * lib/xalloc.h (xmemdup0): Remove.
36145         * lib/xmalloc.c (xmemdup0): Likewise.
36146
36147 2008-05-13  Eric Blake  <ebb9@byu.net>
36148             Bruno Haible  <bruno@clisp.org>
36149
36150         Reduce number of forks required during autoconf.
36151         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
36152         and gl_LIBSOURCES_DIR.
36153         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
36154         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
36155         m4_syscmd per file.
36156         <m4_foreach_w>: Move...
36157         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
36158
36159 2008-05-13  Eric Blake  <ebb9@byu.net>
36160
36161         * gnulib-tool: Fix various comment typos.
36162
36163 2008-05-12  Bruno Haible  <bruno@clisp.org>
36164
36165         Tailor the linebreaking algorithm.
36166         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
36167
36168 2008-05-12  Bruno Haible  <bruno@clisp.org>
36169
36170         Update to Unicode 5.0.0.
36171         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
36172         LBP_JV, LBP_JT. Redistribute values.
36173         (unilbrk_table): Change size.
36174         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
36175         Unicode TR#14 rev. 22.
36176         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
36177         LBP_JV, LBP_JT. Redistribute values.
36178         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
36179         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
36180         Update.
36181         * lib/unilbrk/lbrkprop1.h: Regenerated.
36182         * lib/unilbrk/lbrkprop2.h: Regenerated.
36183         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
36184         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
36185         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
36186         Likewise.
36187         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
36188         Likewise.
36189         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
36190         result.
36191         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
36192         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
36193         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
36194         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
36195         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
36196         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
36197
36198 2008-05-11  Bruno Haible  <bruno@clisp.org>
36199
36200         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
36201
36202 2008-05-11  Bruno Haible  <bruno@clisp.org>
36203
36204         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
36205         * modules/unilbrk/gen-lbrk: New file.
36206
36207 2008-05-11  Bruno Haible  <bruno@clisp.org>
36208
36209         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
36210         * m4/sha512.m4 (gl_SHA512): Likewise.
36211
36212 2008-05-11  Jim Meyering  <meyering@redhat.com>
36213
36214         New modules: crypto/sha256, crypto/sha512 (from coreutils)
36215         * modules/crypto/sha256: New file.
36216         * modules/crypto/sha512: Likewise.
36217         * lib/sha256.c: Likewise.
36218         * lib/sha256.h: Likewise.
36219         * lib/sha512.c: Likewise.
36220         * lib/sha512.h: Likewise.
36221         * lib/u64.h: Likewise.
36222         * m4/sha256.m4: Likewise.
36223         * m4/sha512.m4: Likewise.
36224         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
36225
36226 2008-05-10  Bruno Haible  <bruno@clisp.org>
36227
36228         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
36229         (Input/Output <stdio.h>): Add xprintf.
36230         (Signal handling <signal.h>): Add strsignal.
36231         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
36232         (Core language properties): Add func.
36233         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
36234         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
36235         strings.
36236         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
36237         (Input/output): New section.
36238         (File system functions): Add openat-die, stat-macros.
36239         (Networking functions): Add sockets.
36240         (Unicode string functions): Add unictype/*.
36241         (Support for building libraries and executables): Add gperf.
36242         (Support for building documentation): Add agpl-3.0.
36243         (Misc): Add nocrash.
36244
36245 2008-05-10  Bruno Haible  <bruno@clisp.org>
36246
36247         * modules/unictype/gen-ctype: New file.
36248
36249 2008-05-10  Jim Meyering  <meyering@redhat.com>
36250
36251         Make chdir-safer.c more efficient on a system with no symlinks.
36252         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
36253         also if ELOOP is zero.  Suggested by Bruno Haible.
36254
36255         Make chdir-safer.c slightly safer.
36256         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
36257         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
36258
36259         Avoid compile failure on systems without ELOOP (like mingw).
36260         * lib/chdir-safer.c (ELOOP): Define if not already defined.
36261         Reported by Bruno Haible.
36262
36263 2008-05-10  Bruno Haible  <bruno@clisp.org>
36264
36265         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
36266         (is_utf8_encoding): Use a case-insensitive comparison.
36267         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
36268         streq.
36269
36270 2008-05-10  Bruno Haible  <bruno@clisp.org>
36271
36272         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
36273         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
36274         * lib/unilbrk/ulc-common.h (iconv_string_length,
36275         iconv_string_keeping_offsets): Remove declarations.
36276         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
36277         Don't include <iconv.h>, streq.h, xsize.h.
36278         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
36279         conversion.
36280         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
36281         <iconv.h>, streq.h, xsize.h.
36282         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
36283         conversion.
36284         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
36285         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
36286         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
36287         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
36288
36289 2008-05-10  Bruno Haible  <bruno@clisp.org>
36290
36291         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
36292         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
36293
36294         * modules/unilbrk/u32-width-linebreaks-tests: New file.
36295         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
36296
36297         * modules/unilbrk/u16-width-linebreaks-tests: New file.
36298         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
36299
36300         * modules/unilbrk/u8-width-linebreaks-tests: New file.
36301         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
36302
36303         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
36304         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
36305
36306         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
36307         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
36308
36309         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
36310         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
36311
36312         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
36313         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
36314
36315 2008-05-10  Bruno Haible  <bruno@clisp.org>
36316
36317         Split up 'linebreak' module.
36318         * lib/unilbrk.h: New file, based on lib/linebreak.h.
36319         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
36320         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
36321         modifications.
36322         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
36323         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
36324         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
36325         lib/linebreak.c.
36326         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
36327         lib/linebreak.c.
36328         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
36329         lib/linebreak.c.
36330         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
36331         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
36332         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
36333         lib/linebreak.c.
36334         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
36335         lib/linebreak.c.
36336         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
36337         lib/linebreak.c.
36338         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
36339         lib/linebreak.c.
36340         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
36341         lib/linebreak.c.
36342         * modules/unilbrk/base: New file.
36343         * modules/unilbrk/tables: New file.
36344         * modules/unilbrk/u8-possible-linebreaks: New file.
36345         * modules/unilbrk/u16-possible-linebreaks: New file.
36346         * modules/unilbrk/u32-possible-linebreaks: New file.
36347         * modules/unilbrk/ulc-common: New file.
36348         * modules/unilbrk/ulc-possible-linebreaks: New file.
36349         * modules/unilbrk/u8-width-linebreaks: New file.
36350         * modules/unilbrk/u16-width-linebreaks: New file.
36351         * modules/unilbrk/u32-width-linebreaks: New file.
36352         * modules/unilbrk/ulc-width-linebreaks: New file.
36353         * lib/linebreak.h: Remove file.
36354         * lib/linebreak.c: Remove file.
36355         * m4/linebreak.m4: Remove file.
36356         * modules/linebreak: Remove file.
36357         * NEWS: Mention the changes.
36358
36359 2008-05-09  Eric Blake  <ebb9@byu.net>
36360
36361         Add xmemdup0.
36362         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
36363         implementation.
36364         * lib/xmalloc.c (xmemdup0): New C implementation.
36365
36366 2008-05-08  Bruno Haible  <bruno@clisp.org>
36367
36368         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
36369
36370 2008-05-07  Eric Blake  <ebb9@byu.net>
36371
36372         Support cross-compilation of <wctype.h>.
36373         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
36374         AC_CACHE_CHECK.
36375
36376 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
36377
36378         * build-aux/vc-list-files: Add support for bzr.
36379
36380 2008-05-03  Jim Meyering  <meyering@redhat.com>
36381
36382         avoid failed assertion with tight malloc
36383         * tests/test-getndelim2.c: Correct an off-by-one assertion.
36384
36385 2008-05-03  Simon Josefsson  <simon@josefsson.org>
36386
36387         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
36388         are needed from arpa/inet.h.
36389         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
36390         Reported by Bruno Haible.
36391
36392 2008-05-02  Jim Meyering  <meyering@redhat.com>
36393
36394         avoid compilation error on FreeBSD 6
36395         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
36396
36397 2008-05-01  Jim Meyering  <meyering@redhat.com>
36398
36399         useless-if-before-free: correct --help's exit status description
36400         * build-aux/useless-if-before-free (usage): Like grep, exit 0
36401         for one or more matches, etc.  Reported by Bruno Haible.
36402
36403         vc-list-files: make the stand-alone gnulib test work
36404         * modules/vc-list-files-tests (configure.ac):
36405         Define and AC_SUBST abs_aux_dir.
36406         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
36407         $(abs_top_srcdir) to each script and having each of them
36408         duplicate the work of setting PATH, set PATH here, using
36409         the new variable, abs_aux_dir instead.
36410         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
36411         * tests/test-vc-list-files-git.sh: Likewise.
36412         Reported by Bruno Haible.
36413
36414 2008-05-01  Bruno Haible  <bruno@clisp.org>
36415
36416         * lib/getndelim2.c (getndelim2): Fix newsize computation during
36417         reallocation. Rename 'done' to 'found_delimiter'.
36418
36419 2008-05-01  Jim Meyering  <meyering@redhat.com>
36420
36421         vc-list-files: accommodate /bin/sh like the one from Solaris 10
36422         * build-aux/vc-list-files: Use `...`, not $(...).
36423
36424 2008-04-30  Jim Meyering  <meyering@redhat.com>
36425
36426         add tests for vc-list-files
36427         * modules/vc-list-files-tests: New module.
36428         * tests/test-vc-list-files-cvs.sh: New file.
36429         * tests/test-vc-list-files-git.sh: New file.
36430
36431         avoid a warning from gcc
36432         * lib/getndelim2.c (IF_LINT): Define.
36433         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
36434
36435         vc-list-files: work properly with build-aux/cvsu, too
36436         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
36437         to all cvs-based clauses.
36438
36439         vc-list-files: work properly in the CVS+awk case, too
36440         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
36441
36442         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
36443         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
36444         take more than one file argument, so .  Add quotes, just in case $dir
36445         ever contains a shell meta-character.  Prompted by Soren Hansen in
36446         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
36447
36448 2008-04-29  Eric Blake  <ebb9@byu.net>
36449
36450         Optimize getndelim2 to use block operations when possible.
36451         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
36452         freadseek, and memchr2.
36453         * lib/getndelim2.c (getndelim2): Use them for block reads.
36454
36455 2008-04-29  Bruno Haible  <bruno@clisp.org>
36456
36457         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
36458         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36459         * modules/inet_ntop (Depends-on): Add extensions.
36460         * modules/inet_pton (Depends-on): Likewise.
36461         Reported by Simon Josefsson.
36462
36463 2008-04-29  Jim Meyering  <meyering@redhat.com>
36464
36465         When the is more than one match in a block, match all of them.
36466         * build-aux/useless-if-before-free: Iterate through each block
36467         until there are no more matches.
36468
36469         Fix broken useless-if-before-free script.
36470         * build-aux/useless-if-before-free: Fix typo: missing "?" after
36471         the expression to match cast of argument to free-like function.
36472
36473 2008-04-29  Eric Blake  <ebb9@byu.net>
36474
36475         Use new header.
36476         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
36477
36478 2008-04-29  Jim Meyering  <meyering@redhat.com>
36479
36480         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
36481         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
36482         by gnulib to exist and to declare e.g., inet_ntop.
36483         Don't include "inet_ntop.h", now removed.
36484
36485         * m4/arpa_inet_h.m4: Remove trailing blanks.
36486
36487 2008-04-29  Eric Blake  <ebb9@byu.net>
36488
36489         Silence valgrind on safe reads beyond potential array bounds.
36490         * lib/rawmemchr.valgrind: New file.
36491         * lib/strchrnul.valgrind: Likewise.
36492         * modules/rawmemchr (Files): Distribute new file.
36493         * modules/strchrnul (Files): Likewise.
36494         Suggested by Bruno Haible.
36495
36496 2008-04-29  Bruno Haible  <bruno@clisp.org>
36497
36498         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
36499         (inet_ntop, inet_pton): Change portability warning's wording.
36500         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
36501         Invoke gl_CHECK_NEXT_HEADERS.
36502         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
36503         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
36504         set ARPA_INET_H.
36505         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36506         * modules/arpa_inet (Description): No longer only for systems that
36507         lack it.
36508         (Depends-on): Add include_next.
36509         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
36510         HAVE_ARPA_INET_H.
36511
36512 2008-04-29  Jim Meyering  <meyering@redhat.com>
36513
36514         * modules/mkdir (License): Re-license as LGPLv2+.
36515
36516 2008-04-29  Bruno Haible  <bruno@clisp.org>
36517
36518         * modules/rawmemchr (Maintainer): Set to Eric.
36519         * modules/strchrnul (Maintainer): Likewise.
36520
36521 2008-04-29  Simon Josefsson  <simon@josefsson.org>
36522
36523         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
36524         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
36525
36526         * modules/arpa_inet (arpa/inet.h): Use them.
36527
36528 2008-04-28  Eric Blake  <ebb9@byu.net>
36529
36530         Test getndelim2.
36531         * modules/getndelim2-tests: New file.
36532         * tests/test-getndelim2.c: Likewise.
36533         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
36534         stream.
36535         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
36536
36537         * MODULES.html.sh: Document new module.
36538
36539 2008-04-20  Bruno Haible  <bruno@clisp.org>
36540
36541         * lib/c-stack.c (die): Use raise.
36542         * modules/c-stack (Depends-on): Add raise.
36543
36544 2008-04-28  Bruno Haible  <bruno@clisp.org>
36545
36546         Expect rpmatch to be declared.
36547         * lib/yesno.c (rpmatch): Remove declaration.
36548
36549         Declare rpmatch.
36550         * lib/stdlib.in.h (rpmatch): New declaration.
36551         * lib/rpmatch.c: Include <stdlib.h> first.
36552         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
36553         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
36554         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
36555         HAVE_RPMATCH.
36556         * modules/rpmatch (Depends-on): Add stdlib, extensions.
36557         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36558         (Include): Set to <stdlib.h>.
36559         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
36560         HAVE_RPMATCH.
36561         * NEWS: Document the change.
36562
36563 2008-04-28  Bruno Haible  <bruno@clisp.org>
36564
36565         Change rpmatch to use nl_langinfo when appropriate.
36566         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
36567         (N_): New macro.
36568         (localized_pattern): New function/macro.
36569         (try): Remove match, nomatch arguments. Copy the pattern into safe
36570         memory before caching it.
36571         (rpmatch): Use localized_pattern. Add translator comments.
36572         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
36573         Suggested by Eric Blake.
36574         * modules/rpmatch (Depends-on): Add stdbool.
36575
36576 2008-04-28  Eric Blake  <ebb9@byu.net>
36577
36578         Add rawmemchr module, matching glibc.
36579         * modules/string (Makefile.am): New indicator.
36580         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
36581         * lib/string.in.h (rawmemchr): Declare when appropriate.
36582         * modules/rawmemchr: New file.
36583         * m4/rawmemchr.m4: Likewise.
36584         * lib/rawmemchr.c: Likewise.
36585         * modules/rawmemchr-tests: Likewise.
36586         * tests/test-rawmemchr.c: Likewise.
36587         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
36588         module.
36589         * modules/strchrnul (Depends-on): Add rawmemchr.
36590         * lib/strchrnul.c (strchrnul): Optimize a corner case.
36591
36592         Whitespace cleanup.
36593         * tests/test-strchrnul.c: Reindent.
36594         * lib/strchrnul.c: Likewise.
36595
36596         Optimize and test strchrnul.
36597         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
36598         * modules/strchrnul-tests: New file.
36599         * tests/test-strchrnul.c: Likewise.
36600
36601         Remove intprops dependency.
36602         * modules/memchr (Depends-on): Remove intprops.
36603         * modules/memrchr (Depends-on): Likewise.
36604         * modules/memchr2 (Depends-on): Likewise.
36605         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
36606         * lib/memrchr.c (__memrchr): Likewise.
36607         * lib/memrchr2.c (memchr2): Likewise.
36608         Reported by Simon Josefsson.
36609
36610 2008-04-28  Simon Josefsson  <simon@josefsson.org>
36611
36612         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
36613         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36614
36615 2008-04-28  Simon Josefsson  <simon@josefsson.org>
36616
36617         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
36618
36619         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
36620
36621         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
36622
36623         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
36624         declarations.
36625         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
36626
36627         * m4/inet_pton.m4: Don't check for header files.
36628
36629         * m4/inet_ntop.m4: Don't check for header files.
36630
36631 2008-04-28  Simon Josefsson  <simon@josefsson.org>
36632
36633         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
36634         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
36635         trigger for cygwin).
36636         Reported by Bruno Haible  <bruno@clisp.org>.
36637
36638 2008-04-28  Bruno Haible  <bruno@clisp.org>
36639
36640         * doc/posix-functions/strdup.texi: Mention mingw problem.
36641
36642 2008-04-27  Bruno Haible  <bruno@clisp.org>
36643
36644         * modules/stat-time-tests (Depends-on): Add sleep.
36645         * tests/test-stat-time.c (force_unlink): New function.
36646         (cleanup): Use it.
36647         (test_mtime): Remove the ctime related tests.
36648         (test_ctime): New function, containing the ctime related tests.
36649         (main): Call test_ctime, except on native Windows platforms.
36650
36651 2008-04-27  Bruno Haible  <bruno@clisp.org>
36652
36653         * lib/rpmatch.c (rpmatch): Add some comments.
36654         Reported by James Youngman <jay@gnu.org>.
36655
36656 2008-04-27  Bruno Haible  <bruno@clisp.org>
36657
36658         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
36659         quiet NaNs.
36660
36661 2008-04-27  Bruno Haible  <bruno@clisp.org>
36662
36663         Make test-yesno.sh work on mingw.
36664         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
36665         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
36666         (main): Set stdin to binary mode.
36667         * modules/yesno-tests (Depends-on): Add binary-io.
36668
36669 2008-04-27  Bruno Haible  <bruno@clisp.org>
36670
36671         Fix 'isfinite' on x86, x86_64, ia64 platforms.
36672         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
36673         argument that lie outside the IEEE 854 domain.
36674         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
36675         (gl_ISFINITE): Use it.
36676         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
36677
36678 2008-04-27  Bruno Haible  <bruno@clisp.org>
36679
36680         Allow local renaming in config.h.
36681         * lib/memrchr.c (memrchr): Don't undefine outside libc.
36682
36683 2008-04-27  Bruno Haible  <bruno@clisp.org>
36684
36685         * lib/memchr.c (__memchr): Change type of 'i'.
36686         * lib/memchr2.c (memchr2): Likewise.
36687
36688 2008-04-26  Eric Blake  <ebb9@byu.net>
36689         and Bruno Haible  <bruno@clisp.org>
36690
36691         Optimize and test memrchr.
36692         * modules/memrchr (Depends-on): Add intprops.
36693         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
36694         * modules/memrchr-tests: New file.
36695         * tests/test-memrchr.c: New file.
36696
36697 2008-04-26  Bruno Haible  <bruno@clisp.org>
36698
36699         Add tentative support for DragonFly BSD.
36700         * lib/stdio-impl.h: Add macros for DragonFly BSD.
36701         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
36702         fp.
36703         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
36704         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
36705         * lib/fpurge.c (fpurge): Likewise.
36706         * lib/freadable.c (freaadable): Likewise.
36707         * lib/freadahead.c (freadahead): Likewise.
36708         * lib/freading.c (freading): Likewise.
36709         * lib/freadptr.c (freadptr): Likewise.
36710         * lib/freadseek.c (freadptrinc): Likewise.
36711         * lib/fseeko.c (fseeko): Likewise.
36712         * lib/fseterr.c (fseterr): Likewise.
36713         * lib/fwritable.c (fwritable): Likewise.
36714         * lib/fwriting.c (fwriting): Likewise.
36715
36716 2008-04-26  Bruno Haible  <bruno@clisp.org>
36717
36718         * lib/stdio-impl.h: New file.
36719         * lib/fbufmode.c: Include stdio-impl.h.
36720         (fbufmode): Use fp_, remove redundant #defines.
36721         * lib/fflush.c: Include stdio-impl.h.
36722         (clear_ungetc_buffer): Remove redundant #defines.
36723         * lib/fpurge.c: Include stdio-impl.h.
36724         (fpurge): Remove redundant #defines.
36725         * lib/freadable.c: Include stdio-impl.h.
36726         (freadable): Remove redundant #defines.
36727         * lib/freadahead.c: Include stdio-impl.h.
36728         (freadahead): Remove redundant #defines.
36729         * lib/freading.c: Include stdio-impl.h.
36730         (freading): Remove redundant #defines.
36731         * lib/freadptr.c: Include stdio-impl.h.
36732         (freadptr): Remove redundant #defines.
36733         * lib/freadseek.c: Include stdio-impl.h.
36734         (freadptrinc): Remove redundant #defines.
36735         * lib/fseeko.c: Include stdio-impl.h.
36736         (rpl_fseeko): Remove redundant #defines.
36737         * lib/fseterr.c: Include stdio-impl.h.
36738         (fseterr): Remove redundant #defines.
36739         * lib/fwritable.c: Include stdio-impl.h.
36740         (fwritable: Remove redundant #defines.
36741         * lib/fwriting.c: Include stdio-impl.h.
36742         (fwriting): Remove redundant #defines.
36743         * modules/fbufmode (Files): Add lib/stdio-impl.h.
36744         * modules/fflush (Files): Likewise.
36745         * modules/fpurge (Files): Likewise.
36746         * modules/freadable (Files): Likewise.
36747         * modules/freadahead (Files): Likewise.
36748         * modules/freading (Files): Likewise.
36749         * modules/freadptr (Files): Likewise.
36750         * modules/freadseek (Files): Likewise.
36751         * modules/fseeko (Files): Likewise.
36752         * modules/fseterr (Files): Likewise.
36753         * modules/fwritable (Files): Likewise.
36754         * modules/fwriting (Files): Likewise.
36755
36756 2008-04-26  Bruno Haible  <bruno@clisp.org>
36757
36758         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
36759         restore_seek_optimization, update_fpos_cache): New functions, extracted
36760         from rpl_fflush.
36761         (rpl_fflush): Use them.
36762         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
36763         (gl_REPLACE_FFLUSH): Use it.
36764
36765 2008-04-26  Bruno Haible  <bruno@clisp.org>
36766
36767         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
36768         on Solaris.
36769         * tests/test-xstrtoimax.sh: Likewise.
36770         * tests/test-xstrtoumax.sh: Likewise.
36771         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36772
36773 2008-04-26  Bruno Haible  <bruno@clisp.org>
36774
36775         * modules/memchr-tests: New file.
36776         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
36777
36778 2008-04-26  Eric Blake  <ebb9@byu.net>
36779             Bruno Haible  <bruno@clisp.org>
36780
36781         * lib/memchr.c: Include intprops.h.
36782         (__memchr): Optimize parallel detection of matching bytes. Rename local
36783         variables. Add explanatory comments.
36784
36785 2008-04-26  Bruno Haible  <bruno@clisp.org>
36786
36787         Fix module 'memchr', broken since 2000-10-28.
36788         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
36789
36790 2008-04-26  Bruno Haible  <bruno@clisp.org>
36791
36792         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
36793         comments.
36794
36795 2008-04-25  Eric Blake  <ebb9@byu.net>
36796
36797         Use native fstatat on cygwin 1.7.0.
36798         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
36799         first.
36800
36801 2008-04-23  Eric Blake  <ebb9@byu.net>
36802
36803         Improve memchr2 performance.
36804         * lib/memchr2.c (memchr2): Further optimize parallel detection of
36805         NUL bytes.
36806         * modules/memchr2 (Depends-on): Use intprops.h.
36807
36808 2008-04-23  Simon Josefsson  <simon@josefsson.org>
36809
36810         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
36811         an inline function instead of a CPP macro.  Patch by Ben Pfaff
36812         <blp@cs.stanford.edu>.
36813
36814 2008-04-23  Simon Josefsson  <simon@josefsson.org>
36815
36816         * lib/arpa_inet.in.h: New file.
36817
36818         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
36819         (Makefile.am): Sed in substitute header file.
36820
36821         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
36822         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
36823
36824         * modules/inet_ntop (configure.ac): Use
36825         gl_ARPA_INET_MODULE_INDICATOR.
36826
36827         * modules/inet_pton (configure.ac): Use
36828         gl_ARPA_INET_MODULE_INDICATOR.
36829
36830 2008-04-22  Jim Meyering  <meyering@redhat.com>
36831
36832         * modules/verify (License): Re-license as LGPLv2+.
36833
36834 2008-04-22  Simon Josefsson  <simon@josefsson.org>
36835
36836         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
36837         parameter to void* as per POSIX standard (MinGW uses char*).
36838
36839 2008-04-21  Bruno Haible  <bruno@clisp.org>
36840
36841         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
36842         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
36843         Define to replacements if REPLACE_ISWCNTRL is 1.
36844         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
36845         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
36846         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
36847         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
36848         what it fixes.
36849         * doc/posix-functions/iswalpha.texi: Likewise.
36850         * doc/posix-functions/iswblank.texi: Likewise.
36851         * doc/posix-functions/iswcntrl.texi: Likewise.
36852         * doc/posix-functions/iswdigit.texi: Likewise.
36853         * doc/posix-functions/iswgraph.texi: Likewise.
36854         * doc/posix-functions/iswlower.texi: Likewise.
36855         * doc/posix-functions/iswprint.texi: Likewise.
36856         * doc/posix-functions/iswpunct.texi: Likewise.
36857         * doc/posix-functions/iswspace.texi: Likewise.
36858         * doc/posix-functions/iswupper.texi: Likewise.
36859         * doc/posix-functions/iswxdigit.texi: Likewise.
36860         Reported by Alain Guibert.
36861
36862 2008-04-21  Bruno Haible  <bruno@clisp.org>
36863
36864         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
36865         Patch by Alain Guibert.
36866
36867 2008-04-21  Bruno Haible  <bruno@clisp.org>
36868
36869         Fix test failures on mingw.
36870         * tests/test-xstrtol.c (print_no_progname): New function.
36871         (main): Install it in error_print_progname hook.
36872         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
36873         * tests/test-xstrtoimax.sh: Likewise.
36874         * tests/test-xstrtoumax.sh: Likewise.
36875
36876 2008-04-21  Bruno Haible  <bruno@clisp.org>
36877
36878         Fix test failure on mingw.
36879         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
36880
36881 2008-04-21  Bruno Haible  <bruno@clisp.org>
36882
36883         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
36884         Actually assign a value.
36885
36886 2008-04-20  Bruno Haible  <bruno@clisp.org>
36887
36888         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
36889         take 2.
36890         * lib/canonicalize.c (canonicalize_file_name): Elide if the
36891         'canonicalize-lgpl' module is also used.
36892         * lib/canonicalize-lgpl.c: Undo last change.
36893         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
36894
36895 2008-04-20  Bruno Haible  <bruno@clisp.org>
36896
36897         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
36898         config.h. Provide _mkdir based fallback for mingw.
36899         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
36900         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
36901         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
36902         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
36903         rather than defining mkdir in config.h.
36904         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
36905         (gl_SYS_STAT_H_DEFAULTS): New macro.
36906         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
36907         HAVE_IO_H any more.
36908         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
36909         HAVE_DECL_MKDIR and HAVE_IO_H.
36910
36911 2008-04-20  Bruno Haible  <bruno@clisp.org>
36912
36913         * lib/isapipe.c: Port to native Windows platforms.
36914
36915 2008-04-20  Bruno Haible  <bruno@clisp.org>
36916
36917         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
36918
36919 2008-04-21  Eric Blake  <ebb9@byu.net>
36920
36921         Work around preprocessors that don't handle UINTMAX_MAX.
36922         * lib/memchr2.c (memchr2): Avoid embedded #if.
36923         Reported by Alain Guibert, fix suggested by Bruno Haible.
36924
36925 2008-04-21  Simon Josefsson  <simon@josefsson.org>
36926
36927         * doc/posix-functions/strftime.texi (strftime): Explain better
36928         Windows incompatibility.  Suggested by Micah Cowan
36929         <micah@cowan.name>.
36930
36931 2008-04-20  Bruno Haible  <bruno@clisp.org>
36932
36933         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
36934         unistr/u8-mblen.
36935
36936 2008-04-20  Bruno Haible  <bruno@clisp.org>
36937
36938         Fix test failure on platforms with non-GNU iconv.
36939         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
36940         (U_TO_U8): Use it, rather than u16_to_u8.
36941         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
36942         units at the end of the input string.
36943         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
36944
36945 2008-04-20  Bruno Haible  <bruno@clisp.org>
36946
36947         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
36948         when the resulting length is 0.
36949         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
36950
36951 2008-04-20  Bruno Haible  <bruno@clisp.org>
36952
36953         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
36954         works.
36955         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
36956
36957 2008-04-20  Bruno Haible  <bruno@clisp.org>
36958
36959         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
36960         * modules/tsearch-tests (configure.ac): Test for initstate function.
36961
36962 2008-04-20  Bruno Haible  <bruno@clisp.org>
36963
36964         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
36965         for nlink_t if missing.
36966         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
36967
36968 2008-04-19  Bruno Haible  <bruno@clisp.org>
36969
36970         Work around snprintf bug on Linux libc5.
36971         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
36972         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
36973         gl_SNPRINTF_SIZE1.
36974         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36975         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
36976         that test failed.
36977         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
36978         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
36979         * modules/snprintf (Files): Add m4/printf.m4.
36980         * modules/vsnprintf (Files): Likewise.
36981         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
36982         * doc/posix-functions/vsnprintf.texi: Likewise.
36983
36984 2008-04-19  Bruno Haible  <bruno@clisp.org>
36985
36986         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
36987         from 0.0058 to less than 10^-7.
36988
36989 2008-04-19  Bruno Haible  <bruno@clisp.org>
36990
36991         Fix rounding when a precision is given.
36992         * lib/vasnprintf.c (is_borderline): New function.
36993         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
36994         9...9x.
36995         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
36996         %e, %g.
36997         * tests/test-vasprintf-posix.c (test_function): Likewise.
36998         * tests/test-snprintf-posix.h (test_function): Likewise.
36999         * tests/test-sprintf-posix.h (test_function): Likewise.
37000         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
37001         * tests/test-printf-posix.h (test_function): Likewise.
37002         * tests/test-printf-posix.output: Update.
37003         Reported by John Darrington <john@darrington.wattle.id.au> via
37004         Ben Pfaff <blp@cs.stanford.edu>.
37005
37006 2008-04-18  Simon Josefsson  <simon@josefsson.org>
37007
37008         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
37009         Suggested by Bruno Haible <bruno@clisp.org>.
37010
37011 2008-04-17  Bruno Haible  <bruno@clisp.org>
37012
37013         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
37014         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
37015         implementation.
37016         Patch by Bruce Merry <bmerry@gmail.com>.
37017
37018 2008-04-17  Simon Josefsson  <simon@josefsson.org>
37019
37020         * doc/posix-functions/strftime.texi (strftime): Mention that %e
37021         doesn't work under Windows.
37022
37023 2008-04-16  Bruno Haible  <bruno@clisp.org>
37024
37025         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
37026         New macros.
37027         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
37028         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
37029         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
37030         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
37031         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
37032         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
37033         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
37034         macros.
37035         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
37036         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
37037         Northern Sotho, Uighur.
37038
37039 2008-04-16  Bruno Haible  <bruno@clisp.org>
37040
37041         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
37042         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
37043         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
37044         Reported by Daniel Bergström <daniel@octocode.com>.
37045
37046 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
37047             Bruno Haible  <bruno@clisp.org>
37048
37049         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
37050         function.
37051         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
37052         New functions, mostly extracted from gl_locale_name_default.
37053         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
37054
37055 2008-04-16  Eric Blake  <ebb9@byu.net>
37056
37057         Adjust strtod detection to catch glibc 2.7 bug.
37058         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
37059         Reported by John Gatewood Ham.
37060
37061 2008-04-16  Bruno Haible  <bruno@clisp.org>
37062
37063         Add tentative support for Linux libc5.
37064         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
37065         * lib/fpurge.c (fpurge): Likewise.
37066         * lib/freadable.c (freadable): Likewise.
37067         * lib/freadahead.c (freadahead): Likewise.
37068         * lib/freading.c (freading): Likewise.
37069         * lib/freadptr.c (freadptr): Likewise.
37070         * lib/freadseek.c (freadptrinc): Likewise.
37071         * lib/fseeko.c (rpl_fseeko): Likewise.
37072         * lib/fseterr.c (fseterr): Likewise.
37073         * lib/fwritable.c (fwritable): Likewise.
37074         * lib/fwriting.c (fwriting): Likewise.
37075         Reported by Alain Guibert <alguibert+bts@free.fr>.
37076
37077 2008-04-15  Bruno Haible  <bruno@clisp.org>
37078
37079         * modules/mathl (configure.ac): Define module indicator.
37080
37081 2008-04-15  Bruno Haible  <bruno@clisp.org>
37082
37083         * lib/logl.c (logl): Remove unused variables.
37084
37085 2008-04-15  Bruno Haible  <bruno@clisp.org>
37086
37087         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
37088         fails.
37089
37090 2008-04-15  Bruno Haible  <bruno@clisp.org>
37091
37092         * lib/trim.c (trim2): Fix argument of isspace() macro.
37093
37094 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
37095
37096         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
37097         to 0.
37098         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
37099
37100 2008-04-14  Bruno Haible  <bruno@clisp.org>
37101
37102         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
37103         AC_LANG_PROGRAM argument.
37104         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
37105         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
37106         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
37107         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37108         * m4/math_h.m4 (gl_MATH_H): Likewise.
37109         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
37110         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37111         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
37112         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
37113         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
37114         * m4/regex.m4 (gl_REGEX): Likewise.
37115         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
37116         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
37117         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37118         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
37119         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37120         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37121         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37122         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37123
37124 2008-04-14  Jim Meyering  <meyering@redhat.com>
37125
37126         test-strtod: fix typos: s/abs/fabs/
37127         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
37128
37129 2008-04-13  Bruno Haible  <bruno@clisp.org>
37130
37131         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
37132         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
37133         module is also used and while not building the reloc-wrapper.
37134
37135 2008-04-13  Bruno Haible  <bruno@clisp.org>
37136
37137         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
37138
37139 2008-04-13  Bruno Haible  <bruno@clisp.org>
37140
37141         Fix AIX compilation failure introduced on 2008-04-02.
37142         * tests/test-frexp.c (exp): Undefine before redefining.
37143         * tests/test-frexpl.c (exp): Likewise.
37144
37145 2008-04-13  Bruno Haible  <bruno@clisp.org>
37146
37147         Work around a HP-UX stdio bug.
37148         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
37149         * tests/test-ftello.c (main): Likewise.
37150         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
37151         * doc/posix-functions/ftello.texi: Likewise.
37152
37153 2008-04-13  Bruno Haible  <bruno@clisp.org>
37154
37155         Make test-signbit pass on HP-UX/hppa.
37156         * tests/test-signbit.c (minus_zerol): New variable.
37157         (test_signbitl): Use it.
37158
37159 2008-04-13  Bruno Haible  <bruno@clisp.org>
37160
37161         Make truncl work on OSF/1 4.0.
37162         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
37163         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
37164         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
37165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
37166         HAVE_DECL_TRUNCL.
37167         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
37168         HAVE_DECL_TRUNCL.
37169         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
37170
37171 2008-04-13  Bruno Haible  <bruno@clisp.org>
37172
37173         * lib/unictype.h: Remove trailing comma from enumeration definitions.
37174
37175 2008-04-13  Bruno Haible  <bruno@clisp.org>
37176
37177         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
37178         expression, so as to avoid HP-UX 11 cc compiler bug.
37179
37180 2008-04-13  Bruno Haible  <bruno@clisp.org>
37181
37182         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
37183
37184 2008-04-13  Bruno Haible  <bruno@clisp.org>
37185
37186         * lib/git-merge-changelog.c: Remove empty declaration outside of
37187         functions.
37188
37189 2008-04-13  Bruno Haible  <bruno@clisp.org>
37190
37191         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
37192
37193 2008-04-13  Bruno Haible  <bruno@clisp.org>
37194
37195         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
37196         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
37197         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
37198         also if it exists but lacks definitions of the SHUT_* macros.
37199         * modules/sys_socket (Description): Update.
37200         Reported by Elbert Pol <e.pol@chello.nl>.
37201
37202 2008-04-13  Bruno Haible  <bruno@clisp.org>
37203
37204         * lib/localcharset.c (OS2): Don't redefine if already defined.
37205         Reported by Elbert Pol <e.pol@chello.nl>.
37206
37207 2008-04-13  Bruno Haible  <bruno@clisp.org>
37208
37209         * lib/binary-io.h [__EMX__]: Include <io.h>.
37210         Reported by Elbert Pol <e.pol@chello.nl>.
37211
37212 2008-04-12  Bruno Haible  <bruno@clisp.org>
37213
37214         * lib/fpucw.h: Enable the definitions also for x86_64.
37215         Needed for NetBSD/x86_64.
37216         Reported by Thomas Klausner <tk@giga.or.at>.
37217
37218 2008-04-12  Bruno Haible  <bruno@clisp.org>
37219
37220         * tests/test-strtod.c: Include isnand.h.
37221         (main): Use isnand instead of isnan.
37222         Reported by Jim Meyering.
37223
37224 2008-04-12  Bruno Haible  <bruno@clisp.org>
37225
37226         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
37227         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
37228
37229 2008-04-12  Jim Meyering  <meyering@redhat.com>
37230
37231         * m4/math_h.m4 (gl_MATH_H): Fix typos.
37232
37233 2008-04-12  Bruno Haible  <bruno@clisp.org>
37234
37235         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
37236         Reported by Elbert Pol <e.pol@chello.nl>.
37237
37238 2008-04-12  Eric Blake  <ebb9@byu.net>
37239
37240         Work around Solaris 10 math.h bug.
37241         * m4/math_h.m4 (gl_MATH_H): Check for bug.
37242         (gl_MATH_H_DEFAULTS): Set up default.
37243         * modules/math (Makefile.am): Replace new indicators.
37244         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
37245         * tests/test-math.c (main): Test this.
37246         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
37247         * doc/posix-headers/math.texi (math.h): Mention bug.
37248         Reported by Nelson H. F. Beebe and Jim Meyering.
37249
37250 2008-04-11  Bruno Haible  <bruno@clisp.org>
37251
37252         Adapt to future versions of Apple GCC.
37253         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
37254         Reported by Peter O'Gorman <peter@pogma.com>.
37255
37256 2008-04-11  Bruno Haible  <bruno@clisp.org>
37257
37258         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
37259
37260 2008-04-11  Bruno Haible  <bruno@clisp.org>
37261
37262         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
37263
37264         * modules/getaddrinfo-tests (Makefile.am): Define
37265         test_getaddrinfo_LDADD.
37266
37267 2008-04-11  Bruno Haible  <bruno@clisp.org>
37268
37269         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
37270         (init): Fix syntax error.
37271         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
37272         is declared.
37273
37274 2008-04-11  Bruno Haible  <bruno@clisp.org>
37275
37276         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
37277         * modules/glob (Depends-on): Add stdbool.
37278
37279 2008-04-11  Bruno Haible  <bruno@clisp.org>
37280
37281         * lib/trim.c: Include <string.h>.
37282
37283 2008-04-11  Eric Blake  <ebb9@byu.net>
37284
37285         Avoid compile failure on OS/2.
37286         * lib/regex_internal.h (internal_function): Disable optimization
37287         on OS/2 (__EMX__), where it caused compiler error.
37288         Reported by Elbert Pol.
37289
37290 2008-04-11  Bruno Haible  <bruno@clisp.org>
37291
37292         Flush the standard error stream before aborting. Needed on mingw.
37293         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
37294         * tests/test-array_list.c (ASSERT): Likewise.
37295         * tests/test-array_oset.c (ASSERT): Likewise.
37296         * tests/test-avltree_list.c (ASSERT): Likewise.
37297         * tests/test-avltree_oset.c (ASSERT): Likewise.
37298         * tests/test-avltreehash_list.c (ASSERT): Likewise.
37299         * tests/test-binary-io.c (ASSERT): Likewise.
37300         * tests/test-byteswap.c (ASSERT): Likewise.
37301         * tests/test-c-ctype.c (ASSERT): Likewise.
37302         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
37303         * tests/test-c-strcasestr.c (ASSERT): Likewise.
37304         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
37305         * tests/test-c-strstr.c (ASSERT): Likewise.
37306         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
37307         * tests/test-canonicalize.c (ASSERT): Likewise.
37308         * tests/test-carray_list.c (ASSERT): Likewise.
37309         * tests/test-ceilf1.c (ASSERT): Likewise.
37310         * tests/test-ceilf2.c (ASSERT): Likewise.
37311         * tests/test-ceill.c (ASSERT): Likewise.
37312         * tests/test-count-one-bits.c (ASSERT): Likewise.
37313         * tests/test-fbufmode.c (ASSERT): Likewise.
37314         * tests/test-fflush2.c (ASSERT): Likewise.
37315         * tests/test-floorf1.c (ASSERT): Likewise.
37316         * tests/test-floorf2.c (ASSERT): Likewise.
37317         * tests/test-floorl.c (ASSERT): Likewise.
37318         * tests/test-fopen.c (ASSERT): Likewise.
37319         * tests/test-fpending.c (ASSERT): Likewise.
37320         * tests/test-fprintf-posix.c (ASSERT): Likewise.
37321         * tests/test-fpurge.c (ASSERT): Likewise.
37322         * tests/test-freadable.c (ASSERT): Likewise.
37323         * tests/test-freadahead.c (ASSERT): Likewise.
37324         * tests/test-freading.c (ASSERT): Likewise.
37325         * tests/test-freadptr.c (ASSERT): Likewise.
37326         * tests/test-freadptr2.c (ASSERT): Likewise.
37327         * tests/test-freadseek.c (ASSERT): Likewise.
37328         * tests/test-freopen.c (ASSERT): Likewise.
37329         * tests/test-frexp.c (ASSERT): Likewise.
37330         * tests/test-frexpl.c (ASSERT): Likewise.
37331         * tests/test-fseek.c (ASSERT): Likewise.
37332         * tests/test-fseeko.c (ASSERT): Likewise.
37333         * tests/test-fstrcmp.c (ASSERT): Likewise.
37334         * tests/test-ftell.c (ASSERT): Likewise.
37335         * tests/test-ftello.c (ASSERT): Likewise.
37336         * tests/test-func.c (ASSERT): Likewise.
37337         * tests/test-fwritable.c (ASSERT): Likewise.
37338         * tests/test-fwriting.c (ASSERT): Likewise.
37339         * tests/test-getdelim.c (ASSERT): Likewise.
37340         * tests/test-getline.c (ASSERT): Likewise.
37341         * tests/test-i-ring.c (ASSERT): Likewise.
37342         * tests/test-iconv-utf.c (ASSERT): Likewise.
37343         * tests/test-iconv.c (ASSERT): Likewise.
37344         * tests/test-isfinite.c (ASSERT): Likewise.
37345         * tests/test-isnand.c (ASSERT): Likewise.
37346         * tests/test-isnanf.c (ASSERT): Likewise.
37347         * tests/test-isnanl.h (ASSERT): Likewise.
37348         * tests/test-ldexpl.c (ASSERT): Likewise.
37349         * tests/test-linked_list.c (ASSERT): Likewise.
37350         * tests/test-linkedhash_list.c (ASSERT): Likewise.
37351         * tests/test-localename.c (ASSERT): Likewise.
37352         * tests/test-lseek.c (ASSERT): Likewise.
37353         * tests/test-mbscasecmp.c (ASSERT): Likewise.
37354         * tests/test-mbscasestr1.c (ASSERT): Likewise.
37355         * tests/test-mbscasestr2.c (ASSERT): Likewise.
37356         * tests/test-mbscasestr3.c (ASSERT): Likewise.
37357         * tests/test-mbscasestr4.c (ASSERT): Likewise.
37358         * tests/test-mbschr.c (ASSERT): Likewise.
37359         * tests/test-mbscspn.c (ASSERT): Likewise.
37360         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
37361         * tests/test-mbspbrk.c (ASSERT): Likewise.
37362         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
37363         * tests/test-mbsrchr.c (ASSERT): Likewise.
37364         * tests/test-mbsspn.c (ASSERT): Likewise.
37365         * tests/test-mbsstr1.c (ASSERT): Likewise.
37366         * tests/test-mbsstr2.c (ASSERT): Likewise.
37367         * tests/test-mbsstr3.c (ASSERT): Likewise.
37368         * tests/test-memchr2.c (ASSERT): Likewise.
37369         * tests/test-memmem.c (ASSERT): Likewise.
37370         * tests/test-open.c (ASSERT): Likewise.
37371         * tests/test-printf-frexp.c (ASSERT): Likewise.
37372         * tests/test-printf-frexpl.c (ASSERT): Likewise.
37373         * tests/test-printf-posix.c (ASSERT): Likewise.
37374         * tests/test-quotearg.c (ASSERT): Likewise.
37375         * tests/test-rbtree_list.c (ASSERT): Likewise.
37376         * tests/test-rbtree_oset.c (ASSERT): Likewise.
37377         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
37378         * tests/test-round1.c (ASSERT): Likewise.
37379         * tests/test-roundf1.c (ASSERT): Likewise.
37380         * tests/test-roundl.c (ASSERT): Likewise.
37381         * tests/test-signbit.c (ASSERT): Likewise.
37382         * tests/test-sleep.c (ASSERT): Likewise.
37383         * tests/test-snprintf-posix.c (ASSERT): Likewise.
37384         * tests/test-snprintf.c (ASSERT): Likewise.
37385         * tests/test-sprintf-posix.c (ASSERT): Likewise.
37386         * tests/test-stat-time.c (ASSERT): Likewise.
37387         * tests/test-strcasestr.c (ASSERT): Likewise.
37388         * tests/test-strerror.c (ASSERT): Likewise.
37389         * tests/test-striconv.c (ASSERT): Likewise.
37390         * tests/test-striconveh.c (ASSERT): Likewise.
37391         * tests/test-striconveha.c (ASSERT): Likewise.
37392         * tests/test-strsignal.c (ASSERT): Likewise.
37393         * tests/test-strstr.c (ASSERT): Likewise.
37394         * tests/test-strtod.c (ASSERT): Likewise.
37395         * tests/test-trunc1.c (ASSERT): Likewise.
37396         * tests/test-trunc2.c (ASSERT): Likewise.
37397         * tests/test-truncf1.c (ASSERT): Likewise.
37398         * tests/test-truncf2.c (ASSERT): Likewise.
37399         * tests/test-truncl.c (ASSERT): Likewise.
37400         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
37401         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
37402         * tests/test-vasnprintf.c (ASSERT): Likewise.
37403         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
37404         * tests/test-vasprintf.c (ASSERT): Likewise.
37405         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
37406         * tests/test-vprintf-posix.c (ASSERT): Likewise.
37407         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
37408         * tests/test-vsnprintf.c (ASSERT): Likewise.
37409         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
37410         * tests/test-wcwidth.c (ASSERT): Likewise.
37411         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
37412         * tests/test-xprintf-posix.c (ASSERT): Likewise.
37413         * tests/test-xvasprintf.c (ASSERT): Likewise.
37414         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
37415         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
37416         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
37417         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
37418         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
37419         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
37420         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
37421         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
37422         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
37423         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
37424         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
37425         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
37426         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
37427         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
37428         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
37429         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
37430         * tests/unictype/test-block_list.c (ASSERT): Likewise.
37431         * tests/unictype/test-block_of.c (ASSERT): Likewise.
37432         * tests/unictype/test-block_test.c (ASSERT): Likewise.
37433         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
37434         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
37435         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
37436         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
37437         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
37438         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
37439         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
37440         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
37441         * tests/unictype/test-combining.c (ASSERT): Likewise.
37442         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
37443         * tests/unictype/test-digit.c (ASSERT): Likewise.
37444         * tests/unictype/test-mirror.c (ASSERT): Likewise.
37445         * tests/unictype/test-numeric.c (ASSERT): Likewise.
37446         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
37447         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
37448         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
37449         * tests/unictype/test-scripts.c (ASSERT): Likewise.
37450         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
37451         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
37452         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
37453         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
37454         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
37455         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
37456         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
37457         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
37458         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
37459         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
37460         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
37461         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
37462         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
37463         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
37464         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
37465         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
37466         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
37467         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
37468         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
37469         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
37470         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
37471         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
37472         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
37473         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
37474         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
37475         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
37476         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
37477         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
37478         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
37479         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
37480         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
37481         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
37482         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
37483         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
37484         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
37485         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
37486         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
37487         Reported by Eric Blake.
37488
37489 2008-04-11  Bruno Haible  <bruno@clisp.org>
37490
37491         * lib/wchar.in.h: Tweak comment.
37492
37493 2008-04-11  Bruno Haible  <bruno@clisp.org>
37494
37495         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
37496         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
37497         gl_COMMON.
37498         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
37499
37500 2008-04-11  Bruno Haible  <bruno@clisp.org>
37501
37502         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
37503
37504 2008-04-11  Simon Josefsson  <simon@josefsson.org>
37505
37506         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
37507         of attempting to use non-existing /dev/*random.  Based on patch
37508         from Adam Strzelecki <ono@java.pl> in
37509         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
37510
37511 2008-04-08  Bruno Haible  <bruno@clisp.org>
37512
37513         Add tentative support for emx+gcc.
37514         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
37515         * lib/fpurge.c (fpurge): Likewise.
37516         * lib/freadable.c (freadable): Likewise.
37517         * lib/freadahead.c (freadahead): Likewise.
37518         * lib/freading.c (freading): Likewise.
37519         * lib/freadptr.c (freadptr): Likewise.
37520         * lib/freadseek.c (freadptrinc): Likewise.
37521         * lib/fseeko.c (rpl_fseeko): Likewise.
37522         * lib/fseterr.c (fseterr): Likewise.
37523         * lib/fwritable.c (fwritable): Likewise.
37524         * lib/fwriting.c (fwriting): Likewise.
37525         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
37526
37527 2008-04-09  Eric Blake  <ebb9@byu.net>
37528
37529         Avoid some autoconf warnings.
37530         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
37531         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
37532         * m4/afs.m4 (gl_AFS): Likewise.
37533         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
37534         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
37535         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37536         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
37537         (gl_INTEGER_TYPE_SUFFIX): Likewise.
37538         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
37539         (AC_CHECK_DECLS_ONCE): Likewise.
37540         Rename file...
37541         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
37542         gnulib-tool requires autoconf 2.59 or better.
37543         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
37544
37545 2008-04-08  Eric Blake  <ebb9@byu.net>
37546
37547         Use 'git describe --match' if present (added in git 1.5.5).
37548         * build-aux/git-version-gen: Limit result to tags that match 'v*'
37549         if possible.
37550
37551 2008-04-08  Bruno Haible  <bruno@clisp.org>
37552
37553         Add tentative support for OpenServer.
37554         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
37555         _ptr, _cnt.
37556         * lib/fpurge.c (fpurge): Likewise.
37557         * lib/freadable.c (freadable): Likewise.
37558         * lib/freadahead.c (freadahead): Likewise.
37559         * lib/freading.c (freading): Likewise.
37560         * lib/freadptr.c (freadptr): Likewise.
37561         * lib/freadseek.c (freadptrinc): Likewise.
37562         * lib/fseeko.c (rpl_fseeko): Likewise.
37563         * lib/fseterr.c (fseterr): Likewise.
37564         * lib/fwritable.c (fwritable): Likewise.
37565         * lib/fwriting.c (fwriting): Likewise.
37566         Reported by Roger Cornelius <rac@tenzing.org> and
37567         Brian K. White <brian@aljex.com>.
37568
37569 2008-04-06  Jim Meyering  <meyering@redhat.com>
37570
37571         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
37572
37573 2008-04-06  Bruno Haible  <bruno@clisp.org>
37574
37575         Avoid possible error with non-ASCII bytes in UTF-8 locales.
37576         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
37577         * tests/test-printf-posix.sh: Likewise.
37578         * tests/test-vfprintf-posix.sh: Likewise.
37579         * tests/test-vprintf-posix.sh: Likewise.
37580         * tests/test-xprintf-posix.sh: Likewise.
37581
37582 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37583
37584         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
37585         hide error from 'ls', needed on OS/2.
37586         Report by Elbert Pol <elbert.pol@gmail.com>.
37587
37588 2008-04-04  Eric Blake  <ebb9@byu.net>
37589
37590         Make test-fseeko.c failures meaningful.
37591         * tests/test-fseeko.c: Print line number on failure.
37592         * tests/test-fseek.c: Likewise.
37593         Reported by Nelson H. F. Beebe.
37594
37595         Improve strtod bug detection check.
37596         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
37597         required for Solaris 10.
37598         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
37599
37600 2008-04-04  Bruno Haible  <bruno@clisp.org>
37601
37602         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
37603         by m4/setenv.m4.
37604
37605 2008-04-03  Eric Blake  <ebb9@byu.net>
37606
37607         Ensure sane .version contents.
37608         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
37609         version string.
37610         * build-aux/git-version-gen: Improve documentation.
37611
37612         Make GNU make output nicer.
37613         * top/GNUmakefile [!_have-Makefile]: Add dependency on
37614         MAKECMDGOALS to enforce message for all command line targets.  Set
37615         srcdir for use in maint.mk.
37616
37617         Another maintainer tweak.
37618         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
37619         a target that regenerates version.
37620
37621 2008-04-03  Jim Meyering  <meyering@redhat.com>
37622
37623         vc-list-files: don't cause coreutils "make po-check" failure
37624         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
37625
37626 2008-04-03  Eric Blake  <ebb9@byu.net>
37627
37628         Allow VPATH usage of vc-list-files.
37629         * build-aux/vc-list-files (scriptversion): Add timestamp.
37630         (options): Add --help, --version, -C.
37631         (CVS): Support installed cvsu.
37632
37633 2008-04-02  Bruno Haible  <bruno@clisp.org>
37634
37635         Avoid some "statement with no effect" warnings from gcc.
37636         * tests/test-wctype.c (main): Explicitly ignore unused values.
37637         Reported by Jim Meyering.
37638
37639 2008-04-02  Jim Meyering  <meyering@redhat.com>
37640
37641         Avoid some warnings from "gcc -Wshadow".
37642         * tests/test-frexp.c (exp): Define to a different identifier.
37643         * tests/test-frexpl.c (exp): Likewise.
37644
37645 2008-04-03  Jim Meyering  <meyering@redhat.com>
37646
37647         bootstrap: remove dangling *.[ch] symlinks from lib
37648         * build-aux/bootstrap [dangling symlink removal]: Move find's
37649         -depth option to precede all others, to avoid a warning.
37650         Remove *.[ch] files too, and from "$source_base" (usually lib/).
37651
37652 2008-04-02  Bruno Haible  <bruno@clisp.org>
37653
37654         Avoid some warnings from "gcc -Wshadow".
37655         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
37656         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
37657         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
37658         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
37659         Reported by Jim Meyering.
37660
37661 2008-04-01  Bruno Haible  <bruno@clisp.org>
37662
37663         Fix test to work on IRIX 6.5 with cc.
37664         * tests/test-math.c (numeric_equal): New function.
37665         (main): Use it.
37666
37667 2008-04-01  Bruno Haible  <bruno@clisp.org>
37668
37669         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
37670
37671 2008-04-01  Bruno Haible  <bruno@clisp.org>
37672
37673         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
37674         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
37675         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
37676         (Depends-on): Remove math.
37677
37678         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
37679         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
37680         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
37681         (Depends-on): Remove math.
37682
37683         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
37684         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
37685         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
37686         (Depends-on): Remove math.
37687         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
37688         (Depends-on): Remove math.
37689
37690         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
37691         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
37692         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
37693         (Depends-on): Remove math.
37694         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
37695         (Depends-on): Remove math.
37696
37697         * tests/test-round1.c: Include nan.h.
37698         (main): Use NaNd instead of NAN.
37699         * modules/round-tests (Files): Add tests/nan.h.
37700
37701         * tests/test-trunc1.c: Include nan.h.
37702         (main): Use NaNd instead of NAN.
37703         * modules/trunc-tests (Files): Add tests/nan.h.
37704
37705         * tests/test-roundf1.c: Include nan.h.
37706         (main): Use NaNf instead of NAN.
37707         * modules/roundf-tests (Files): Add tests/nan.h.
37708
37709         * tests/test-truncf1.c: Include nan.h.
37710         (main): Use NaNf instead of NAN.
37711         * modules/truncf-tests (Files): Add tests/nan.h.
37712
37713         * tests/test-ceilf1.c: Include nan.h.
37714         (main): Use NaNf instead of NAN.
37715         * modules/ceilf-tests (Files): Add tests/nan.h.
37716
37717         * tests/test-floorf1.c: Include nan.h.
37718         (main): Use NaNf instead of NAN.
37719         * modules/floorf-tests (Files): Add tests/nan.h.
37720
37721         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
37722         (main): Use NaNf instead of NAN.
37723         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
37724
37725         * tests/test-isnand.c: Include nan.h instead of <math.h>.
37726         (main): Use NaNd instead of NAN.
37727         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
37728
37729         * tests/test-frexp.c: Include nan.h.
37730         (main): Use NaNd instead of NAN.
37731         * modules/frexp-tests (Files): Add tests/nan.h.
37732
37733         * lib/isnan.c: Don't include <math.h>.
37734         (FUNC): Don't use NAN macro.
37735         * modules/isnand-nolibm (Depends-on): Remove math.
37736         * modules/isnanf-nolibm (Depends-on): Remove math.
37737         * modules/isnanl (Depends-on): Remove math.
37738         * modules/isnanl-nolibm (Depends-on): Remove math.
37739
37740         * tests/nan.h: New file.
37741
37742 2008-04-01  Eric Blake  <ebb9@byu.net>
37743
37744         Fix typos.
37745         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
37746         values to be the right type.
37747
37748         For now, cater to gnulib strtod inaccuracies.
37749         * tests/test-strtod.c (main): Allow 1-ulp error on expected
37750         fractional results.  While not as nice from a QoI perspective, it
37751         is a quicker patch than correctly implementing decimal to binary
37752         rounding.
37753
37754 2008-03-31  Eric Blake  <ebb9@byu.net>
37755
37756         Guarantee a definition of NAN.
37757         * lib/math.in.h (NAN): Define if missing.
37758         * tests/test-math.c (main): Test it.
37759         * doc/posix-headers/math.texi (math.h): Document this.
37760         * lib/isnan.c (rpl_isnand): Use it.
37761         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
37762         * tests/test-floorf1.c (NaN): Likewise.
37763         * tests/test-frexp.c (NaN): Likewise.
37764         * tests/test-isnand.c (NaN): Likewise.
37765         * tests/test-isnanf.c (NaN): Likewise.
37766         * tests/test-round1.c (NaN): Likewise.
37767         * tests/test-roundf1.c (NaN): Likewise.
37768         * tests/test-snprintf-posix.h (NaN): Likewise.
37769         * tests/test-sprintf-posix.h (NaN): Likewise.
37770         * tests/test-trunc1.c (NaN): Likewise.
37771         * tests/test-truncf1.c (NaN): Likewise.
37772         * tests/test-vasnprintf-posix.c (NaN): Likewise.
37773         * tests/test-vasprintf-posix.c (NaN): Likewise.
37774         * modules/isnand-nolibm (Depends-on): Add math.
37775         * modules/isnanf-nolibm (Depends-on): Likewise.
37776         * modules/isnanl (Depends-on): Likewise.
37777         * modules/isnanl-nolibm (Depends-on): Likewise.
37778         * modules/snprintf-posix-tests (Depends-on): Likewise.
37779         * modules/sprintf-posix-tests (Depends-on): Likewise.
37780         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
37781         * modules/vsprintf-posix-tests (Depends-on): Likewise.
37782         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
37783         * modules/vasprintf-posix-tests (Depends-on): Likewise.
37784
37785 2008-03-31  Bruno Haible  <bruno@clisp.org>
37786
37787         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
37788         * doc/posix-functions/strtod.texi: Likewise.
37789
37790 2008-03-31  Bruno Haible  <bruno@clisp.org>
37791
37792         * tests/test-strtod.c (main): Don't use C99 syntax.
37793
37794 2008-03-31  Bruno Haible  <bruno@clisp.org>
37795
37796         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
37797         Reported by Eric Blake.
37798
37799 2008-03-31  Jim Meyering  <meyering@redhat.com>
37800
37801         Don't compare actual signbit return values.
37802         * tests/test-strtod.c (main): Rather, compare only their
37803         zero/non-zero nature.
37804
37805 2008-03-31  Eric Blake  <ebb9@byu.net>
37806
37807         More strtod documentation.
37808         * doc/posix-functions/strtod.texi (strtod): Interpret more test
37809         failures as distinct bugs.
37810
37811 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
37812
37813         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
37814         Problem reported by Erik Benada in
37815         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
37816
37817 2008-03-30  Bruno Haible  <bruno@clisp.org>
37818
37819         * tests/test-strtod.c: Add comments about which assertion fails on which
37820         platform.
37821         * doc/posix-functions/strtod.texi: Add info about many more platforms.
37822
37823 2008-03-30  Eric Blake  <ebb9@byu.net>
37824
37825         Test signbit behavior on zeros.
37826         * tests/test-signbit.c (test_signbitf): Add tests for zero.
37827         (test_signbitd, test_signbitl): Likewise.
37828
37829         More strtod touchups.
37830         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
37831         sign of negative underflow, for now.  Use .5, not .1.
37832         * doc/posix-functions/strtod.texi (strtod): Mention these
37833         limitations.
37834         Reported by Jim Meyering.
37835
37836 2008-03-30  Bruno Haible  <bruno@clisp.org>
37837
37838         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
37839         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
37840
37841 2008-03-30  Bruno Haible  <bruno@clisp.org>
37842
37843         Avoid failure when attempting to return empty iconv results on some
37844         platforms.
37845         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
37846         allocation, don't report ENOMEM when the resulting string is empty.
37847
37848 2008-03-30  Bruno Haible  <bruno@clisp.org>
37849
37850         Fix buffer overrun.
37851         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
37852         Don't consider the width for tmp_length. Check count against tmp_length
37853         before doing the padding. Ensure enough allocation during padding.
37854
37855 2008-03-30  Eric Blake  <ebb9@byu.net>
37856
37857         strtod touchups.
37858         * lib/strtod.c (strtod): Avoid compiler warnings.
37859         Reported by Jim Meyering.
37860
37861 2008-03-30  Bruno Haible  <bruno@clisp.org>
37862
37863         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
37864         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
37865         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
37866         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
37867         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
37868         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
37869         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
37870         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
37871
37872         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
37873         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
37874         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
37875         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
37876         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
37877         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
37878         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
37879         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
37880
37881         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
37882         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
37883         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
37884         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
37885         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
37886         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
37887         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
37888         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
37889
37890         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
37891         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
37892
37893         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
37894         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
37895
37896         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
37897         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
37898
37899         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
37900         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
37901         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
37902
37903         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
37904         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
37905         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
37906
37907         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
37908         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
37909         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
37910
37911         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
37912         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
37913         * modules/vasprintf (Depends-on): Add EOVERFLOW.
37914
37915         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
37916         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
37917         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
37918         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
37919         (Depends-on): Add EOVERFLOW.
37920         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
37921         (Depends-on): Add EOVERFLOW.
37922         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
37923         (Depends-on): Add EOVERFLOW.
37924         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
37925         (Depends-on): Add EOVERFLOW.
37926         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
37927         (Depends-on): Add EOVERFLOW.
37928         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
37929         (Depends-on): Add EOVERFLOW.
37930         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
37931         (Depends-on): Add EOVERFLOW.
37932         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
37933         (Depends-on): Add EOVERFLOW.
37934
37935         * lib/sprintf.c (EOVERFLOW): Remove fallback.
37936         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
37937         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
37938
37939         * lib/snprintf.c (EOVERFLOW): Remove fallback.
37940         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
37941         * modules/snprintf (Depends-on): Add EOVERFLOW.
37942
37943         * lib/poll.c (EOVERFLOW): Remove fallback.
37944         * modules/poll (Depends-on): Add EOVERFLOW.
37945
37946         * lib/getugroups.c (EOVERFLOW): Remove fallback.
37947         * modules/getugroups (Depends-on): Add EOVERFLOW.
37948
37949         * lib/getdelim.c (EOVERFLOW): Remove fallback.
37950         * modules/getdelim (Depends-on): Add EOVERFLOW.
37951
37952         * lib/ftell.c (EOVERFLOW): Remove fallback.
37953         * modules/ftell (Depends-on): Add EOVERFLOW.
37954
37955         * lib/fprintf.c (EOVERFLOW): Remove fallback.
37956         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
37957         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
37958
37959         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
37960
37961         * modules/EOVERFLOW-tests: New file.
37962         * tests/test-EOVERFLOW.c: New file.
37963
37964         * modules/EOVERFLOW: New file.
37965         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
37966
37967 2008-03-30  Bruno Haible  <bruno@clisp.org>
37968
37969         Fix bug introduced on 2007-06-10.
37970         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
37971         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
37972
37973 2008-03-30  Bruno Haible  <bruno@clisp.org>
37974
37975         Improve freadseek's efficiency after ungetc.
37976         * lib/freadseek.c: Include freadahead.h.
37977         (freadptrinc): New function, extracted from freadseek.
37978         (freadseek): Use it in a loop. Use freadahead to determine the number
37979         of loop iterations.
37980         * modules/freadseek (Depends-on): Add freadahead.
37981         (configure.ac): Require AC_C_INLINE.
37982
37983 2008-03-30  Bruno Haible  <bruno@clisp.org>
37984
37985         * lib/freadseek.c (freadseek): Don't ignore the return value of
37986         freadptr.
37987
37988 2008-03-29  Eric Blake  <ebb9@byu.net>
37989
37990         Add hex float support.
37991         * modules/strtod (Depends-on): Add c-ctype.
37992         (Link): Mention POW_LIB.
37993         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
37994         whitespace between 'e' and exponent.
37995         * tests/test-strtod.c (main): Enable hex float tests.
37996         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
37997         now provides.
37998
37999         Document various strtod bugs, with some fixes.
38000         * doc/posix-functions/strtod.texi (strtod): Document bugs with
38001         "-0x", "inf", "nan", and hex constants.
38002         * doc/posix-functions/atof.texi (atof): Likewise.
38003         * modules/stdlib (Makefile.am): Support strtod.
38004         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
38005         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
38006         detect additional strtod bugs.
38007         * lib/stdlib.in.h (rpl_strtod): Add declarations.
38008         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
38009         bool where appropriate.  Parse 'inf' and 'nan'.
38010         * tests/test-strtod.c: New file.
38011         * modules/strtod (Depends-on): Add stdbool, stdlib.
38012         (configure.ac): Turn on module indicator.
38013         * modules/strtod-tests: New module.
38014
38015 2008-03-29  Eric Blake  <ebb9@byu.net>
38016
38017         Fix ftell on mingw.
38018         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
38019         * modules/ftell-tests (Depends-on): Add binary-io.
38020         * modules/ftello-tests (Depends-on): Likewise.
38021         * tests/test-ftell.c (main): Enhance test to cover behavior after
38022         ungetc.  Enforce binary mode.
38023         * tests/test-ftello.c (main): Likewise.
38024
38025         Pass test-freadseek on cygwin.
38026         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
38027         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
38028         ungetc buffer.
38029
38030         * tests/test-fflush2.c (main): Fix typo.
38031
38032 2008-03-29  Bruno Haible  <bruno@clisp.org>
38033
38034         * tests/test-fflush2.c (main): Temporarily disable the contents of
38035         this test.
38036         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
38037         Reported by Eric Blake.
38038
38039 2008-03-28  Simon Josefsson  <simon@josefsson.org>
38040
38041         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
38042         (GC_SHA224_DIGEST_SIZE): Add.
38043
38044         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
38045         (gc_hash_digest_length): Likewise.
38046         (gc_hash_buffer): Likewise.
38047
38048 2008-03-25  Bruno Haible  <bruno@clisp.org>
38049
38050         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
38051         detail which gettext release to use.
38052         Reported by Simon Josefsson.
38053
38054 2008-03-26  Jim Meyering  <meyering@redhat.com>
38055
38056         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
38057         * modules/gnumakefile (clean-GNUmakefile): Also, use
38058         test ... && ... || : syntax rather than if-then ... fi.
38059
38060         gnumakefile: Don't double-quote-expand $(VPATH) value.
38061         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
38062
38063 2008-03-24  Eric Blake  <ebb9@byu.net>
38064
38065         Alter GNUmakefile to install into top directory.
38066         * modules/maintainer-makefile: Split, and add dependency...
38067         * modules/gnumakefile: to this new module.
38068         * build-aux/GNUmakefile: Move...
38069         * top/GNUmakefile: ...here.
38070         * build-aux/maint.mk: Move...
38071         * top/maint.mk: ...here.
38072         * MODULES.html.sh (Support for maintaining...): Document new
38073         module.
38074
38075 2008-03-23  Bruno Haible  <bruno@clisp.org>
38076
38077         * gnulib-tool: New options --vc-files, --no-vc-files.
38078         (func_usage): Document them.
38079         (vc_files): New variable.
38080         (func_import): Consider vc_files.
38081         (func_create_testdir): Set vc_files to empty.
38082         Suggested by Jim Meyering and Karl Berry.
38083
38084 2008-03-23  Bruno Haible  <bruno@clisp.org>
38085
38086         Fix regex compilation error on HP-UX 11.
38087         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
38088         * modules/regex (Files): Add m4/mbstate_t.m4.
38089         Reported by Ton Voon <ton.voon@altinity.com>.
38090
38091 2008-03-23  Bruno Haible  <bruno@clisp.org>
38092
38093         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
38094
38095 2008-03-23  Eric Blake  <ebb9@byu.net>
38096             Bruno Haible  <bruno@clisp.org>
38097
38098         Install files from top/ in the destination directory.
38099         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
38100         augmentation also for the files from top/.
38101         (func_import, func_create_testdir): Rewrite file names:
38102         top/filename -> filename.
38103
38104 2008-03-23  Bruno Haible  <bruno@clisp.org>
38105
38106         Tweak "gnulib --version" output.
38107         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
38108
38109 2008-03-23  Bruno Haible  <bruno@clisp.org>
38110
38111         Tweak "gnulib --version" output.
38112         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
38113         rather than contents of ChangeLog, when possible.
38114
38115 2008-03-21  Eric Blake  <ebb9@byu.net>
38116
38117         More --version tweaks.
38118         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
38119         date of last ChangeLog entry.
38120
38121 2008-03-21  Jim Meyering  <meyering@redhat.com>
38122
38123         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
38124
38125 2008-03-20  Eric Blake  <ebb9@byu.net>
38126
38127         VPATH fix.
38128         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
38129
38130 2008-03-20  Simon Josefsson  <simon@josefsson.org>
38131
38132         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
38133         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
38134
38135 2008-03-20  Eric Blake  <ebb9@byu.net>
38136
38137         Sync GNUmakefile with coreutils.
38138         * build-aux/GNUmakefile (have-Makefile): Rename...
38139         (_have-Makefile): ...to this, for namespace consideration.
38140         (GNUmakefile.cfg): Include, if present.
38141         (_autoreconf): Define a default.
38142         (_is-dist-target): New rule for rebuilds to pick up intra-release
38143         version.
38144         (maint-cfg.mk): Rename...
38145         (cfg.mk): ...to this.
38146
38147 2008-03-18  Jim Meyering  <meyering@redhat.com>
38148
38149         New script and module: mktempd
38150         * MODULES.html.sh (maint+release support): Add mktempd.
38151         * build-aux/mktempd: New file.
38152         * modules/mktempd: New file.
38153
38154 2008-03-15  Jim Meyering  <meyering@redhat.com>
38155
38156         Undo last change.
38157         * lib/sha1.c, lib/md5.c: 63 != ~63.
38158         Reported by Andreas Schwab.
38159
38160         sha1.c, md5.c: Hoist a redundant expression.
38161         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
38162         "ctx->buflen" only once, before calling *_process_block.
38163         * lib/md5.c (md5_process_bytes): Likewise.
38164
38165 2008-03-14  Eric Blake  <ebb9@byu.net>
38166
38167         Bump copyright year in files generated by gnulib-tool.
38168         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
38169         gnulib-tool, rather than hard-coding it.
38170
38171         Fix 'gnulib-tool --version' output to work with git.
38172         * gnulib-tool (func_gnulib_dir): New function, extracted from...
38173         (startup): ...here.
38174         (func_version): Use it to invoke git-version-gen, rather than
38175         relying on CVS keyword expansion.  Modernize wording.
38176         (cvsdatestamp, last_checkin_date, version): Kill unused
38177         variables.
38178
38179 2008-03-12  Jim Meyering  <meyering@redhat.com>
38180
38181         Recognize optional cast of the argument to free.
38182         * build-aux/useless-if-before-free: Update regexps.
38183
38184         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
38185
38186 2008-03-11  Bruno Haible  <bruno@clisp.org>
38187
38188         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
38189         by a single package.
38190         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
38191         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
38192         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
38193         Reported by Sam Steingold <sds@gnu.org>.
38194
38195 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38196
38197         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
38198         repositories.
38199
38200 2008-03-11  Bruno Haible  <bruno@clisp.org>
38201
38202         Avoid conflicts between local macro definitions.
38203         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
38204         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
38205
38206 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
38207             Bruno Haible  <bruno@clisp.org>
38208
38209         Make va_copy work with some version of xlc on AIX 5.1.
38210         * lib/stdarg.in.h: New file.
38211         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
38212         On AIX, use a <stdarg.h> file substitute.
38213         * modules/stdarg (Files): Add lib/stdarg.in.h.
38214         (Depends-on): Add include_next.
38215         (Makefile.am): Build a stdarg.h substitute if requested.
38216         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
38217
38218 2008-03-10  Bruno Haible  <bruno@clisp.org>
38219
38220         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
38221         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38222         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
38223
38224 2008-03-10  Bruno Haible  <bruno@clisp.org>
38225
38226         * modules/stdlib (Depends-on): Add include_next, remove
38227         absolute-header.
38228
38229 2008-03-09  Bruno Haible  <bruno@clisp.org>
38230
38231         * lib/freadahead.h (freadahead): Document more precisely.
38232         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
38233         the sum of both buffer sizes.
38234         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
38235         * NEWS: Document the change.
38236
38237 2008-03-09  Bruno Haible  <bruno@clisp.org>
38238
38239         Extend freadptr to return also the buffer size.
38240         * lib/freadptr.h (freadptr): Add sizep argument.
38241         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
38242         (freadptr): Add sizep argument. Determine buffer size like freadahead
38243         does.
38244         * tests/test-freadptr.c: Don't include freadahead.h.
38245         (main): Adapt for new calling convention of freadptr.
38246         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
38247         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
38248         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
38249         tests/test-freadptr2.sh.
38250         (Depends): Remove freadahead.
38251         (TESTS): Add test-freadptr2.sh.
38252         (check_PROGRAMS): Add test-freadptr2.
38253
38254 2008-03-09  Bruno Haible  <bruno@clisp.org>
38255
38256         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
38257         Report and solution by Simon Josefsson.
38258
38259 2008-03-06  Bruno Haible  <bruno@clisp.org>
38260
38261         Make fflush after ungetc work on BSD platforms.
38262         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
38263         * tests/test-fflush2.c: New file.
38264         * tests/test-fflush2.sh: New file.
38265         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
38266         tests/test-fflush2.c.
38267         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
38268         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
38269
38270 2008-03-06  Eric Blake  <ebb9@byu.net>
38271
38272         Likewise for ftello.
38273         * modules/ftello (Dependencies): Add extensions.
38274         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
38275
38276 2008-03-06  Bruno Haible  <bruno@clisp.org>
38277
38278         * modules/fseeko (Dependencies): Add extensions.
38279         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
38280         Needed on glibc systems.
38281
38282 2008-03-06  Bruno Haible  <bruno@clisp.org>
38283
38284         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
38285         email address.
38286         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
38287
38288 2008-03-06  Bruno Haible  <bruno@clisp.org>
38289
38290         * users.txt: Add libgnupdf.
38291
38292 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
38293
38294         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
38295         (Header File Substitutes, Function Substitutes,
38296         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
38297         (Build robot for gnulib): Fix typo.
38298
38299 2008-03-06  Bruno Haible  <bruno@clisp.org>
38300
38301         * doc/gnulib-tool.texi (VCS Issues): Small updates.
38302         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
38303
38304 2008-03-06  Bruno Haible  <bruno@clisp.org>
38305
38306         * doc/func.texi: New file, extracted from doc/gnulib.texi.
38307         * doc/gnulib.texi: Include it.
38308
38309 2008-03-06  Simon Josefsson  <simon@josefsson.org>
38310
38311         * modules/func (License): Change license to unlimited; there was
38312         no LGPL parts in the module anyway.
38313
38314 2008-03-06  Simon Josefsson  <simon@josefsson.org>
38315
38316         * modules/__func__: Renamed to modules/func.
38317         * modules/__func__-tests: Renamed to modules/func-tests.
38318         * tests/test-__func__.c: Renamed to tests/test-func.c.
38319         * m4/__func__.m4: Renamed to m4/func.m4.
38320         * doc/gnulib.texi (__func__): Section renamed to func.
38321         Suggested by Eric Blake <ebb9@byu.net>.
38322
38323 2008-03-06  Simon Josefsson  <simon@josefsson.org>
38324
38325         * doc/gnulib.texi (__func__): Use C99 terminology when talking
38326         about __func__.  Make example self-contained.  Suggested by Eric
38327         Blake <ebb9@byu.net>.
38328
38329         * tests/test-__func__.c (main): Avoid extraneous () around __func.
38330         Suggested by Eric Blake <ebb9@byu.net>.
38331
38332 2008-03-06  Simon Josefsson  <simon@josefsson.org>
38333
38334         * modules/__func__: New file.
38335         * modules/__func__-tests: New file.
38336         * tests/test-__func__.c: New file.
38337         * m4/__func__.m4: New file.
38338         * doc/gnulib.texi (__func__): Document __func__ module.
38339
38340 2008-03-05  Simon Josefsson  <simon@josefsson.org>
38341
38342         * modules/byteswap (License): Re-license as LGPLv2+.
38343
38344 2008-03-05  Simon Josefsson  <simon@josefsson.org>
38345
38346         * doc/Makefile: Add pdf target.
38347
38348 2008-03-05  Simon Josefsson  <simon@josefsson.org>
38349
38350         * modules/inline (License): Use 'unlimited', since there are only
38351         *.m4 files in this module.
38352
38353 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
38354             Bruno Haible  <bruno@clisp.org>
38355
38356         Add support for HP C 7.1 on OpenVMS 8.3.
38357         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
38358
38359 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
38360
38361         Update VMS specifics.
38362         * lib/getopt.c [VMS]: Remove include of unixlib.h.
38363
38364 2008-03-02  Jim Meyering  <meyering@redhat.com>
38365
38366         Remove the last dependency on the "free" module.
38367         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
38368         Reported by Bob Proulx.
38369
38370         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
38371
38372         Remove useless "if" tests before free.  Deprecate "free" module.
38373         * doc/posix-functions/free.texi: Mention that this
38374         module is no longer useful.
38375         * modules/free (Notice): Say this module is obsolete.
38376         * modules/readutmp (Depends-on): Remove free.
38377         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
38378         * lib/putenv.c (putenv): Likewise.
38379         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
38380         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
38381         * tests/test-c-strcasestr.c (main): Likewise.
38382         * tests/test-c-strstr.c (main): Likewise.
38383         * tests/test-mbscasestr1.c (main): Likewise.
38384         * tests/test-mbscasestr2.c (main): Likewise.
38385         * tests/test-mbsstr1.c (main): Likewise.
38386         * tests/test-mbsstr2.c (main): Likewise.
38387         * tests/test-memmem.c (main): Likewise.
38388         * tests/test-strcasestr.c (main): Likewise.
38389         * tests/test-striconv.c (main): Likewise.
38390         * tests/test-striconveh.c (main): Likewise.
38391         * tests/test-striconveha.c (main): Likewise.
38392         * tests/test-strstr.c (main): Likewise.
38393
38394         * build-aux/git-version-gen: Adjust a comment and the Usage string.
38395
38396         bootstrap: sync from coreutils again
38397         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
38398
38399 2008-03-01  Jim Meyering  <meyering@redhat.com>
38400
38401         bootstrap: sync from coreutils
38402         * build-aux/bootstrap (update_po_files): Copy a .po file into place
38403         also when the target doesn't exist.
38404
38405 2008-03-01  Eric Blake  <ebb9@byu.net>
38406
38407         Fix bugs in last patch.
38408         * lib/memchr2.c (memchr2): Fix typo.
38409         * tests/test-memchr2.c: Test previous bug, and don't use GNU
38410         extension.
38411         Reported by Bruce Korb.
38412
38413         New module 'memchr2'.
38414         * modules/memchr2: New file.
38415         * modules/memchr2-tests: Likewise.
38416         * lib/memchr2.h: Likewise.
38417         * lib/memchr2.c: Likewise, based on memchr.c.
38418         * tests/test-memchr2.c: New test.
38419         * MODULES.html.sh (String handling): Add memchr2.
38420
38421 2008-02-29  Bruno Haible  <bruno@clisp.org>
38422
38423         * modules/freadseek-tests: New file.
38424         * tests/test-freadseek.sh: New file.
38425         * tests/test-freadseek.c: New file.
38426
38427         New module 'freadseek'.
38428         * modules/freadseek: New file.
38429         * lib/freadseek.h: New file.
38430         * lib/freadseek.c: New file.
38431         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
38432
38433 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
38434
38435         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
38436         wydawca.
38437
38438         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
38439         program_invocation_name and program_invocation_short_name are
38440         present.
38441
38442 2008-02-28  Bruno Haible  <bruno@clisp.org>
38443
38444         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
38445         * tests/test-freadptr.sh: Also test non-seekable stdin.
38446
38447 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
38448
38449         * build-aux/bootstrap (source_base, m4_base)
38450         (doc_base, tests_base): New variables.
38451         (gnulib_tool_options): Do not hardcode base directories, use
38452         the above variables instead.
38453
38454 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
38455
38456         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
38457
38458 2008-02-28  Bruno Haible  <bruno@clisp.org>
38459
38460         * modules/freadptr-tests: New file.
38461         * tests/test-freadptr.sh: New file.
38462         * tests/test-freadptr.c: New file.
38463
38464         New module 'freadptr'.
38465         * modules/freadptr: New file.
38466         * lib/freadptr.h: New file.
38467         * lib/freadptr.c: New file.
38468         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
38469
38470 2008-02-26  Karl Berry  <karl@freefriends.org>
38471
38472         Sync from Libtool:
38473         * libltdl/argz.c (argz_add, argz_count): New functions.
38474         * libltdl/argz.in.h: Declare them.
38475         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
38476
38477 2008-02-22  Bruno Haible  <bruno@clisp.org>
38478
38479         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
38480         is a pointer type.  Needed for HP-UX 10.
38481         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
38482         * doc/posix-functions/gmtime_r.texi: Likewise.
38483         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
38484
38485 2008-02-24  Bruno Haible  <bruno@clisp.org>
38486
38487         * modules/environ-tests: New file.
38488         * tests/test-environ.c: New file.
38489
38490         New module 'environ'.
38491         * modules/environ: New file.
38492         * lib/unistd.in.h (environ): New declaration.
38493         * m4/environ.m4: New file.
38494         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
38495         after use.
38496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
38497         HAVE_DECL_ENVIRON.
38498         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
38499         HAVE_DECL_ENVIRON.
38500         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
38501         wrong claim that 'environ' is missing on some systems.
38502         * modules/execute (Depends-on): Add environ.
38503         * lib/execute.c (environ): Remove fallback declaration.
38504         * modules/pipe (Depends-on): Add environ.
38505         * lib/pipe.c (environ): Remove fallback declaration.
38506         * modules/setenv (Depends-on): Add environ.
38507         * lib/setenv.c (environ): Remove fallback declaration.
38508         * modules/unsetenv (Depends-on): Add environ.
38509         * lib/unsetenv.c (environ): Remove fallback declaration.
38510         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
38511         m4/environ.m4.
38512         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
38513         (gl_PREREQ_UNSETENV): Likewise.
38514
38515 2008-02-24  Bruno Haible  <bruno@clisp.org>
38516
38517         * doc/posix-functions/environ.texi: Document the MacOS X problem.
38518
38519 2008-02-20  Bob Proulx  <bob@proulx.com>
38520
38521         Enable use of older two part flavor 'git describe'.
38522         * build-aux/git-version-gen: If using the older two part flavor of
38523         git version then recreate the third part now present in the
38524         newer three part flavor of git describe.
38525
38526 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
38527
38528         * lib/fts.c (fts_build): Typo correction to comment.
38529
38530 2008-02-17  Bruno Haible  <bruno@clisp.org>
38531
38532         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
38533         generating no-op conflicts.
38534
38535 2008-02-17  Bruno Haible  <bruno@clisp.org>
38536
38537         Speed up by 10%.
38538         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
38539         result_entries, rather than an index-based loop.
38540
38541 2008-02-17  Bruno Haible  <bruno@clisp.org>
38542
38543         Speed up by 25%.
38544         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
38545         'hashcode_cached'.
38546         (entry_create): New function.
38547         (entry_hashcode): Use the cached hashcode if possible.
38548         (read_changelog_file, try_split_merged_entry): Use entry_create.
38549
38550 2008-02-17  Bruno Haible  <bruno@clisp.org>
38551
38552         Speed up from O(n^2) to O(n) for long ChangeLog files.
38553         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
38554         (read_changelog_file): Change implementation of entries_reversed list
38555         to rbtreehash.
38556         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
38557
38558 2008-02-17  Bruno Haible  <bruno@clisp.org>
38559
38560         New option --split-merged-entry.
38561         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
38562         (find_paragraph_end, try_split_merged_entry): New functions.
38563         (long_options): Add option --split-merged-entry.
38564         (usage): Document option --split-merged-entry.
38565         (main): Implement option --split-merged-entry.
38566         Reported by Eric Blake.
38567
38568 2008-02-17  Bruno Haible  <bruno@clisp.org>
38569
38570         * lib/git-merge-changelog.c: Include c-strstr.h.
38571         (main): Support the "git pull --rebase" situation.
38572         * modules/git-merge-changelog (Depends-on): Add c-strstr.
38573         Reported by Eric Blake.
38574
38575 2008-02-16  Eric Blake  <ebb9@byu.net>
38576
38577         Avoid doubling \ in common case of "c-maybe" quoting style.
38578         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
38579         eliding outer quotes.
38580         * lib/quotearg.h: Document this.
38581         * tests/test-quotearg.c (result_strings, inputs, results_g)
38582         (flag_results, locale_results): Test it by adding a new string to
38583         each test group.
38584         (compare_strings): Test new string.
38585
38586 2008-02-13  Eric Blake  <ebb9@byu.net>
38587
38588         Avoid trigraph quoting in default output.
38589         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
38590         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
38591         unless explicitly requested.
38592         * tests/test-quotearg.c (flag_results, main): Add additional tests.
38593
38594 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
38595
38596         Don't rely on signed integer overflowing to negative value.
38597         * lib/getugroups.c (getugroups): Include <limits.h>.
38598         Instead, compare against INT_MAX, and increment only if the test passes.
38599
38600 2008-02-13  Jim Meyering  <meyering@redhat.com>
38601         and Eric Blake  <ebb9@byu.net>
38602
38603         Avoid shadowing warning and compile errors on Linux.
38604         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
38605         forwarding macros on Linux.
38606         (dcgettext): Define a stub, for Linux.
38607         (results_g, main): Avoid warnings.
38608
38609 2008-02-12  Eric Blake  <ebb9@byu.net>
38610
38611         Silence warning in last patch.
38612         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
38613
38614         Quotearg part 4: add tests, fix c-maybe colon quoting.
38615         * lib/quotearg.h: Improve documentation.
38616         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
38617         escapes when adding outer quotes.  When quoting trigraphs, use
38618         valid C notation.  When quoting NUL, omit extra characters if next
38619         character is not digit.  Alter prototype.
38620         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
38621         callers.
38622         * modules/quotearg-tests: New module.
38623         * tests/test-quotearg.c: New test.
38624
38625 2008-02-07  Eric Blake  <ebb9@byu.net>
38626
38627         Quotearg part 3: add flag to control outer quote elision.
38628         * lib/quotearg.h (c_maybe_quoting_style): New style.
38629         (enum quoting_flags): Better documentation of flags.
38630         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
38631         c-maybe style.
38632         (quotearg_buffer_restyled): Handle new flag to elide outer
38633         quotes.
38634
38635         Quotearg part 2: add flag that can control NUL elision.
38636         * lib/quotearg.h (set_quoting_flags): New prototype.
38637         * lib/quotearg.c (struct quoting_options): Add flag field.
38638         (set_quoting_flags): New function.
38639         (quotearg_buffer_restyled): Add flags parameter.
38640         (quotearg_alloc_mem): Set the flag if length cannot be returned.
38641         (quotearg_n_options): Set the flag, since length cannot be
38642         returned.
38643         (quoting_options_from_style): Default flags correctly.
38644
38645         Quotearg part 1: more wrappers, restore quotearg_char state.
38646         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
38647         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
38648         (quotearg_colon_mem): New wrappers.
38649         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
38650         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
38651         functions.
38652         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
38653         (quotearg_colon_mem): New functions.
38654
38655 2008-02-11  Bruno Haible  <bruno@clisp.org>
38656
38657         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
38658         library in the current directory: it does not work with parallel make.
38659         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38660
38661 2008-02-11  Bruno Haible  <bruno@clisp.org>
38662
38663         * .gitattributes: New file.
38664
38665 2008-02-11  Jim Meyering  <meyering@redhat.com>
38666
38667         useless-if-before-free: Fix reversed exit values.
38668         * build-aux/useless-if-before-free: Use correct values
38669         for EXIT_MATCH and EXIT_NO_MATCH.
38670
38671         * build-aux/useless-if-before-free: Close stdout carefully.
38672
38673 2008-02-10  Bruno Haible  <bruno@clisp.org>
38674
38675         New module 'git-merge-changelog'.
38676         * modules/git-merge-changelog: New file.
38677         * lib/git-merge-changelog.c: New file.
38678
38679 2008-02-10  Jim Meyering  <meyering@redhat.com>
38680
38681         useless-if-before-free: New option: --list (-l).
38682
38683         useless-if-before-free: Don't exit immediately upon open failure.
38684         * build-aux/useless-if-before-free: Exit 2 for errors.
38685         Upon failure to open a file, don't exit immediately.
38686         Rather, just warn and continue with any remaining files.
38687
38688 2008-02-10  Bruno Haible  <bruno@clisp.org>
38689
38690         New abstract list operation 'node_set_value'.
38691         * lib/gl_list.h (gl_list_node_set_value): New function.
38692         (struct gl_list_implementation): New field node_set_value.
38693         * lib/gl_list.c (gl_list_node_set_value): New function.
38694         * lib/gl_array_list.c (gl_array_node_set_value): New function.
38695         (gl_array_list_implementation): Update.
38696         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
38697         (gl_carray_list_implementation): Update.
38698         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
38699         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
38700         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
38701         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
38702         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
38703         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
38704         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
38705         Update.
38706         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
38707         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
38708         (gl_sublist_list_implementation): Update.
38709
38710 2008-02-10  Bruno Haible  <bruno@clisp.org>
38711
38712         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
38713         Needed when ELEMENT is #defined to 'some_type *'.
38714
38715 2008-02-10  Jim Meyering  <meyering@redhat.com>
38716
38717         New script and module: useless-if-before-free
38718         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
38719         * build-aux/useless-if-before-free: New file.
38720         * modules/useless-if-before-free: New file.
38721
38722         * build-aux/gitlog-to-changelog: Use committer date, not author date.
38723
38724         xstrtol_error: Fix typo.
38725         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
38726         s/exit_failure/exit_status/.
38727
38728 2008-02-09  Jim Meyering  <meyering@redhat.com>
38729
38730         New script and module: gitlog-to-changelog
38731         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
38732         * modules/gitlog-to-changelog: New file.
38733         * build-aux/gitlog-to-changelog: New file.
38734
38735 2008-02-08  Jim Meyering  <meyering@redhat.com>
38736
38737         Avoid two "parameter unused" warnings.
38738         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
38739         Mark "st" as used.
38740
38741         Use "git COMMAND", not "git-COMMAND".
38742         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
38743         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
38744         * build-aux/git-version-gen: Use "git status", not "git-status".
38745
38746 2008-02-07  Bruno Haible  <bruno@clisp.org>
38747
38748         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
38749         Avoids a crash on Windows Vista.
38750         Reported by Adam Strzelecki <ono@java.pl> via
38751         Simon Josefsson <simon@josefsson.org>.
38752
38753 2008-02-06  Bruno Haible  <bruno@clisp.org>
38754
38755         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
38756         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
38757         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
38758         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
38759         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38760         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38761         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
38762         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
38763         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38764         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38765         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38766         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38767         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38768         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38769         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38770         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
38771         left-adjust flag.
38772         * tests/test-snprintf-posix.h (test_function): Likewise.
38773         * tests/test-sprintf-posix.h (test_function): Likewise.
38774         * tests/test-vasprintf-posix.c (test_function): Likewise.
38775         * doc/posix-functions/fprintf.texi: Update.
38776         * doc/posix-functions/printf.texi: Update.
38777         * doc/posix-functions/snprintf.texi: Update.
38778         * doc/posix-functions/sprintf.texi: Update.
38779         * doc/posix-functions/vfprintf.texi: Update.
38780         * doc/posix-functions/vprintf.texi: Update.
38781         * doc/posix-functions/vsnprintf.texi: Update.
38782         * doc/posix-functions/vsprintf.texi: Update.
38783         Reported by Peter Fales <psfales@alcatel-lucent.com>.
38784
38785 2008-02-06  Bruno Haible  <bruno@clisp.org>
38786
38787         Fix bug introduced on 2008-01-26.
38788         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
38789
38790 2008-02-06  Bruno Haible  <bruno@clisp.org>
38791
38792         Fix bug introduced on 2007-06-10.
38793         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
38794         !NEED_PRINTF_FLAG_ZERO.
38795
38796 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
38797
38798         getloadavg: use libperfstat on AIX5
38799         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
38800
38801 2008-02-03  Bruno Haible  <bruno@clisp.org>
38802
38803         * lib/diffseq.h: Add comments about required #includes.
38804         Reported by Michael Biggs <gnulib@doubleplum.net>.
38805
38806 2008-02-01  Bruno Haible  <bruno@clisp.org>
38807
38808         * users.txt: Add gnuit.
38809
38810 2008-01-31  Bruno Haible  <bruno@clisp.org>
38811
38812         * lib/md4.c (set_uint32): Mark as inline.
38813         * lib/md5.c (set_uint32): Likewise.
38814         * lib/sha1.c (set_uint32): Likewise.
38815         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
38816         * m4/md5.m4 (gl_MD5): Likewise.
38817         * m4/sha1.m4 (gl_SHA1): Likewise.
38818
38819 2008-01-31  Jim Meyering  <meyering@redhat.com>
38820
38821         Use "sizeof VAR", rather than a literal "4".
38822         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
38823         * lib/md4.c (md4_read_ctx): Likewise.
38824         * lib/sha1.c (sha1_read_ctx): Likewise.
38825
38826 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38827
38828         * tests/test-sha1.c: New file, based on test-md5.c.
38829
38830         * modules/crypto/sha1-tests: New file.
38831
38832 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38833
38834         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
38835
38836 2008-01-31  Jim Meyering  <meyering@redhat.com>
38837
38838         Prefer "sizeof v" over the equivalent "4".
38839         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
38840         * lib/md5.c (set_uint32): Likewise.
38841         * lib/sha1.c (set_uint32): Likewise.
38842
38843 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38844
38845         * lib/sha1.c (set_uint32): Mark function as static.
38846
38847 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38848
38849         md2: clarify comments to say that alignment is not required.
38850         * lib/md2.h: Remove warning about alignment in comment.
38851         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
38852         never been required.
38853
38854 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38855
38856         md4: adapt alignment constraint fix from sha1.
38857         * lib/md4.c (set_uint32): New function, from sha1.c
38858         (md4_read_ctx): Use it.
38859         (md4_finish_ctx): Doc fix.
38860         * lib/md4.h: Doc fix.
38861
38862 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38863
38864         md5: adapt alignment constraint fix from sha1.
38865         * lib/md5.c (set_uint32): New function, from sha1.c
38866         (md5_read_ctx): Use it.
38867         (md5_finish_ctx): Doc fix.
38868         * lib/md5.h: Doc fix.
38869
38870 2008-01-30  Peter Palfrader  <weasel@debian.org>
38871
38872         sha1: remove the result buffer alignment constraint
38873         * lib/sha1.c (set_uint32): New function.
38874         (sha1_read_ctx): Rewrite to remove the result buffer alignment
38875         constraint.
38876         (sha1_finish_ctx): Remove comment warning about alignment constraint.
38877         * lib/sha1.h: Likewise.
38878
38879 2008-01-30  Andreas Schwab  <schwab@suse.de>
38880             Bruno Haible  <bruno@clisp.org>
38881
38882         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
38883         correct definition of LDBL_MIN_EXP.
38884
38885 2008-01-30  Karl Berry  <karl@gnu.org>
38886
38887         * config/srclist-update: try to preserve x bit on updates.
38888         * config/srclistvars.sh: update for karl.
38889
38890 2008-01-29  Jim Meyering  <meyering@redhat.com>
38891
38892         vasnprintf.c: Avoid warning about unused label
38893         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
38894         "overflow" label definition and associated code with the
38895         same cpp condition that guards the sole use of that label.
38896
38897 2008-01-26  Bruno Haible  <bruno@clisp.org>
38898
38899         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
38900         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
38901         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
38902         * lib/isnanl-nolibm.h (isnanl): Likewise.
38903         Reported by Paul Eggert <eggert@cs.ucla.edu>.
38904
38905 2008-01-26  Bruno Haible  <bruno@clisp.org>
38906
38907         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
38908         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
38909
38910 2008-01-26  Bruno Haible  <bruno@clisp.org>
38911
38912         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
38913         GCC >= 4.0 built-in.
38914         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
38915
38916 2008-01-26  Bruno Haible  <bruno@clisp.org>
38917
38918         Rename isnan, applicable to 'double' only, to isnand.
38919         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
38920         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
38921         (configure.ac): Update.
38922         (Include): Replace "isnan.h" with "isnand.h".
38923         * m4/isnand.m4: Renamed from m4/isnan.m4.
38924         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
38925         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
38926         instead of isnan.c.
38927         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
38928         instead of HAVE_ISNAN_IN_LIBC.
38929         (isnand): Renamed from isnan.
38930         * lib/isnand.c: New file.
38931         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
38932         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
38933         (Makefile.am): Update.
38934         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
38935         Include isnand.h instead of isnan.h.
38936         (main): Test isnand instead of isnan.
38937         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
38938         isnan-nolibm.
38939         * modules/frexp (Depends-on): Likewise.
38940         * modules/frexp-tests (Depends-on): Likewise.
38941         * modules/frexp-nolibm (Depends-on): Likewise.
38942         * modules/frexp-nolibm-tests (Depends-on): Likewise.
38943         * modules/isfinite (Depends-on): Likewise.
38944         * modules/round-tests (Depends-on): Likewise.
38945         * modules/signbit (Depends-on): Likewise.
38946         * modules/signbit-tests (Depends-on): Likewise.
38947         * modules/snprintf-posix (Depends-on): Likewise.
38948         * modules/sprintf-posix (Depends-on): Likewise.
38949         * modules/trunc-tests (Depends-on): Likewise.
38950         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38951         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38952         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38953         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38954         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38955         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38956         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38957         * modules/vasnprintf-posix (Depends-on): Likewise.
38958         * modules/vasprintf-posix (Depends-on): Likewise.
38959         * modules/vfprintf-posix (Depends-on): Likewise.
38960         * modules/vsnprintf-posix (Depends-on): Likewise.
38961         * modules/vsprintf-posix (Depends-on): Likewise.
38962         * lib/frexp.c: Include isnand.h instead of isnan.h.
38963         (ISNAN): Set to isnand instead of isnan.
38964         * lib/isfinite.c: Include isnand.h instead of isnan.h.
38965         (gl_isfinited): Use isnand instead of isnan.
38966         * lib/signbitd.c: Include isnand.h instead of isnan.h.
38967         (gl_signbitd): Use isnand instead of isnan.
38968         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
38969         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
38970         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
38971         (main): Use isnand instead of isnan.
38972         * tests/test-round1.c: Include isnand.h.
38973         (main): Use isnand instead of isnan.
38974         * tests/test-round2.c: Include isnand.h instead of isnan.h.
38975         (ISNAN): Set to isnand instead of isnan.
38976         * tests/test-trunc1.c: Include isnand.h.
38977         (main): Use isnand instead of isnan.
38978         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
38979         (equal): Use isnand instead of isnan.
38980         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
38981         isnand-nolibm.
38982         * NEWS: Mention the change.
38983
38984 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
38985             Bruno Haible  <bruno@clisp.org>
38986
38987         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
38988         the GCC builtins for signbits are present and set
38989         REPLACE_SIGNBIT_USING_GCC if so.
38990         * lib/math.in.h (signbit): Define using GCC builtins if
38991         REPLACE_SIGNBIT_USING_GCC is set.
38992         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
38993         REPLACE_SIGNBIT_USING_GCC.
38994         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
38995
38996 2008-01-25  Jim Meyering  <meyering@redhat.com>
38997
38998         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
38999         * lib/poll.c: Include <config.h>, not "config.h".
39000         * tests/test-getaddrinfo.c: Likewise.
39001
39002 2008-01-25  Simon Josefsson  <simon@josefsson.org>
39003
39004         * modules/sockets-tests: New file.
39005
39006 2008-01-24  Simon Josefsson  <simon@josefsson.org>
39007
39008         * modules/sockets: New module, can be used to call WSA_Startup and
39009         WSA_Cleanup when needed.
39010
39011         * lib/sockets.h, lib/sockets.c: New files.
39012
39013         * m4/sockets.m4: New file.
39014
39015         * tests/test-sockets.c: New file.
39016
39017 2008-01-19  Bruno Haible  <bruno@clisp.org>
39018
39019         * doc/posix-headers: Renamed from doc/headers.
39020         * doc/posix-functions: Renamed from doc/functions.
39021         * doc/gnulib.texi: Update.
39022
39023 2008-01-19  Bruno Haible  <bruno@clisp.org>
39024
39025         * doc/glibc-functions/strcasestr.texi: Include contents of
39026         doc/functions/strcasestr.texi, fixing the list of platforms.
39027         * doc/functions/strcasestr.texi: Remove file.
39028
39029 2008-01-19  Bruno Haible  <bruno@clisp.org>
39030
39031         * doc/glibc-functions/memmem.texi: Include contents of
39032         doc/functions/memmem.texi.
39033         * doc/functions/memmem.texi: Remove file.
39034
39035 2008-01-18  Bruno Haible  <bruno@clisp.org>
39036
39037         * doc/glibc-functions/*.texi: New files.
39038         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
39039         to use the new files.
39040
39041 2008-01-17  Bruno Haible  <bruno@clisp.org>
39042
39043         * tests/test-gethostname.c (main): Fix printf statement.
39044
39045 2008-01-17  Simon Josefsson  <simon@josefsson.org>
39046
39047         * modules/gethostname-tests: New file.
39048
39049         * tests/test-gethostname.c: New file.
39050
39051 2008-01-17  Simon Josefsson  <simon@josefsson.org>
39052
39053         * lib/gethostname.c: Include string.h unconditionally, strncpy is
39054         used by the UNAME case.  Reported by Bruno Haible
39055         <bruno@clisp.org>.
39056
39057 2008-01-17  Eric Blake  <ebb9@byu.net>
39058
39059         Convert c-strcasestr to be more efficient.
39060         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
39061         (Depends-on): Add c-strcase, remove malloca, strnlen.
39062         * tests/test-c-strcasestr.c (main): Enhance test.
39063         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
39064
39065 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
39066
39067         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
39068         Use it in creating po/Makevars.
39069
39070 2008-01-15  Simon Josefsson  <simon@josefsson.org>
39071
39072         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
39073         Applications that requires it should initialize libgcrypt
39074         manually.
39075
39076 2008-01-16  Simon Josefsson  <simon@josefsson.org>
39077
39078         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
39079
39080 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
39081
39082         Fix problem with getdate on mingw32 reported by Simon Josefsson
39083         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
39084         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
39085         tzname", when deciding whether to declare tzname.
39086         * lib/strftime.c (tzname): Likewise.
39087
39088 2008-01-15  Bruno Haible  <bruno@clisp.org>
39089
39090         Work around a MacOS X 10.5 bug in frexpl().
39091         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
39092         * doc/functions/frexpl.texi: Document the bug.
39093         Reported by Elias Pipping <pipping@gentoo.org>.
39094
39095 2008-01-14  Eric Blake  <ebb9@byu.net>
39096
39097         Touch up previous patch.
39098         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
39099         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
39100
39101         Convert strcasestr module to use Two-Way algorithm.
39102         * modules/strcasestr-simple: New module, based on the old
39103         strcasestr, but with Two-Way rather than KMP.
39104         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
39105         * lib/string.in.h (rpl_strcasestr): Declare.
39106         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
39107         performance.
39108         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
39109         * modules/string (Makefile.am): Support strcasestr.
39110         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39111         * modules/strcasestr-tests (Depends-on): Check for alarm.
39112         * tests/test-strcasestr.c: Augment test.
39113         * lib/str-two-way.h: Clean up stray macro.
39114         * NEWS: Document new module.
39115         * MODULES.html.sh (string handling): Likewise.
39116         * doc/functions/strcasestr.texi: New file.
39117         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
39118         here, since it is not a POSIX function.
39119
39120 2008-01-14  Colin Watson  <cjwatson@debian.org>
39121             Bruno Haible  <bruno@clisp.org>
39122
39123         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
39124         works fine; if not, set REPLACE_STRSIGNAL.
39125         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
39126         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39127         REPLACE_STRSIGNAL.
39128         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
39129         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
39130         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
39131
39132 2008-01-14  Bruno Haible  <bruno@clisp.org>
39133
39134         * modules/strsignal (Include): Change to <string.h>.
39135
39136 2008-01-14  Colin Watson  <cjwatson@debian.org>
39137
39138         * modules/argp (Notice): Add a notice recommending to change
39139         XGETTEXT_OPTIONS.
39140         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
39141
39142 2008-01-13  Colin Watson  <cjwatson@debian.org>
39143
39144         * modules/strsignal-tests: New file.
39145         * tests/test-strsignal.c: New file.
39146
39147         * lib/strsignal.c: New file, from glibc with modifications.
39148         * lib/siglist.h: New file, from glibc with modifications.
39149         * lib/string.in.h (strsignal): New declaration.
39150         * m4/strsignal.m4: New file.
39151         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39152         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
39153         * modules/strsignal: New file.
39154         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
39155         HAVE_DECL_STRSIGNAL.
39156
39157 2008-01-13  Bruno Haible  <bruno@clisp.org>
39158
39159         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
39160         locale encoding is not ASCII. Needed for OpenBSD 4.0.
39161         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
39162         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39163
39164 2008-01-13  Bruno Haible  <bruno@clisp.org>
39165
39166         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
39167         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
39168         * lib/argp.h (__attribute__): Likewise.
39169         * lib/c-stack.c (__attribute__): Likewise.
39170         * lib/error.h (__attribute__): Likewise.
39171         * lib/fts.c (__attribute__): Likewise.
39172         * lib/openat.h (__attribute__): Likewise.
39173         * lib/stdio.in.h (__attribute__): Likewise.
39174         * lib/string.in.h (__attribute__): Likewise.
39175         * lib/utimens.c (__attribute__): Likewise.
39176         * lib/vasnprintf.h (__attribute__): Likewise.
39177         * lib/xalloc.h (__attribute__): Likewise.
39178         * lib/xprintf.h (__attribute__): Likewise.
39179         * lib/xstrtol.h (__attribute__): Likewise.
39180         * lib/xvasprintf.h (__attribute__): Likewise.
39181
39182 2008-01-12  Bruno Haible  <bruno@clisp.org>
39183
39184         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
39185         * doc/glibc-headers/a.out.texi: New file.
39186         * doc/glibc-headers/aliases.texi: New file.
39187         * doc/glibc-headers/alloca.texi: New file.
39188         * doc/glibc-headers/ar.texi: New file.
39189         * doc/glibc-headers/argp.texi: New file.
39190         * doc/glibc-headers/argz.texi: New file.
39191         * doc/glibc-headers/byteswap.texi: New file.
39192         * doc/glibc-headers/crypt.texi: New file.
39193         * doc/glibc-headers/endian.texi: New file.
39194         * doc/glibc-headers/envz.texi: New file.
39195         * doc/glibc-headers/err.texi: New file.
39196         * doc/glibc-headers/error.texi: New file.
39197         * doc/glibc-headers/execinfo.texi: New file.
39198         * doc/glibc-headers/fpu_control.texi: New file.
39199         * doc/glibc-headers/fstab.texi: New file.
39200         * doc/glibc-headers/fts.texi: New file.
39201         * doc/glibc-headers/getopt.texi: New file.
39202         * doc/glibc-headers/ieee754.texi: New file.
39203         * doc/glibc-headers/ifaddrs.texi: New file.
39204         * doc/glibc-headers/libintl.texi: New file.
39205         * doc/glibc-headers/mcheck.texi: New file.
39206         * doc/glibc-headers/mntent.texi: New file.
39207         * doc/glibc-headers/obstack.texi: New file.
39208         * doc/glibc-headers/paths.texi: New file.
39209         * doc/glibc-headers/printf.texi: New file.
39210         * doc/glibc-headers/pty.texi: New file.
39211         * doc/glibc-headers/resolv.texi: New file.
39212         * doc/glibc-headers/shadow.texi: New file.
39213         * doc/glibc-headers/sysexits.texi: New file.
39214         * doc/glibc-headers/ttyent.texi: New file.
39215
39216 2008-01-12  Jim Meyering  <meyering@redhat.com>
39217
39218         announce-gen: emit Gnulib's git-based version string.
39219         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
39220         New option --gnulib-version=V, where V is expected to be
39221         the output of running git describe in the gnulib directory.
39222         (get_tool_versions): Request feedback on xdelta.  I suspect it's
39223         not useful, and plan to stop publishing an xdelta file with each
39224         coreutils release.
39225
39226         * build-aux/announce-gen: Also check for lzma-compressed files.
39227
39228 2008-01-11  Bruno Haible  <bruno@clisp.org>
39229
39230         * tests/test-memmem.c (main): Increase maximum allowed time.
39231         * tests/test-strstr.c (main): Likewise.
39232
39233 2008-01-11  Bruno Haible  <bruno@clisp.org>
39234
39235         * doc/functions/memmem.texi: Add more precisions about platforms.
39236         * doc/functions/strstr.texi: Likewise.
39237
39238 2008-01-10  Eric Blake  <ebb9@byu.net>
39239
39240         * m4/strstr.m4: Delete cruft from copy-n-paste.
39241         Reported by Bruno Haible.
39242
39243 2008-01-10  Bruno Haible  <bruno@clisp.org>
39244
39245         Make c-strstr rely on strstr.
39246         * lib/c-strstr.c: Don't include str-kmp.h.
39247         (c_strstr): Define in terms of strstr.
39248         * modules/c-strstr (Files): Remove lib/str-kmp.h.
39249         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
39250
39251 2008-01-10  Bruno Haible  <bruno@clisp.org>
39252
39253         * doc/gnulib.texi (String Functions in C Locale): New section.
39254         * doc/c-ctype.texi: New file.
39255         * doc/c-strcase.texi: New file.
39256         * doc/c-strcaseeq.texi: New file.
39257         * doc/c-strcasestr.texi: New file.
39258         * doc/c-strstr.texi: New file.
39259         * doc/c-strtod.texi: New file.
39260         * doc/c-strtold.texi: New file.
39261
39262 2008-01-10  Eric Blake  <ebb9@byu.net>
39263
39264         * lib/relocatable.h: Fix a comment.
39265
39266 2008-01-10  Eric Blake  <ebb9@byu.net>
39267
39268         Share two-way algorithm.
39269         * lib/str-two-way.h: New file, merged from...
39270         * lib/memmem.c: ...here...
39271         * lib/strstr.c: ...and here.
39272         * modules/memmem (Files): Use it.
39273         * modules/strstr (Files): Likewise.
39274
39275         Avoid quadratic strstr implementations.
39276         * lib/strstr.c: New file.
39277         * m4/strstr.m4: Likewise.
39278         * modules/strstr: Likewise.
39279         * modules/strstr-tests: Likewise.
39280         * tests/test-strstr.c: Likewise.
39281         * lib/string.in.h (rpl_strstr): Declare.
39282         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
39283         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
39284         * modules/string (Makefile.am): Likewise.
39285         * MODULES.html.sh (string handling): Mention new module.
39286         * doc/functions/strstr.texi (strstr): Document the bug.
39287
39288 2008-01-10  Bruno Haible  <bruno@clisp.org>
39289
39290         * lib/relocatable.h (relocate): State whether result is freshly
39291         allocated or not.
39292         * lib/relocatable.c (relocate): Return a freshly allocated string
39293         instead of a pointer to a privately held string.
39294         Reported by Sylvain Beucler <beuc@gnu.org>.
39295
39296 2008-01-10  Colin Watson  <cjwatson@debian.org>
39297
39298         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
39299         s/S_ISNLK/S_ISLNK/.
39300
39301 2008-01-09  Bruno Haible  <bruno@clisp.org>
39302
39303         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
39304         and other files.
39305         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
39306         if it's only a guess.
39307         * modules/memmem: Simplify by depending on memmem-simple.
39308
39309 2008-01-09  Bruno Haible  <bruno@clisp.org>
39310
39311         Work around OpenBSD 4.0 tdelete() bug.
39312         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
39313         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
39314         macros and don't redefine the enum values.
39315         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
39316         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
39317         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
39318
39319 2008-01-09  Bruno Haible  <bruno@clisp.org>
39320
39321         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
39322         (main): Don't perform the tests if setlocale did not install a UTF-8
39323         locale. Needed on OpenBSD 4.0.
39324         * modules/wcwidth-tests (Depends-on): Add localcharset.
39325
39326 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
39327
39328         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
39329         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
39330         * NEWS: announce this.
39331         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
39332
39333 2008-01-09  Simon Josefsson  <simon@josefsson.org>
39334         and Eric Blake  <ebb9@byu.net>
39335
39336         Add memmem-simple module.
39337         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
39338         (gl_FUNC_MEMMEM): Separate performance from presence checks.
39339         * modules/memmem-simple: New file.
39340         * modules/memmem (Description): Tweak.
39341         * MODULES.html.sh (string handling): Mention new module.
39342         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
39343         addressed by memmem-simple.
39344         * NEWS: Document the difference.
39345
39346 2008-01-09  Eric Blake  <ebb9@byu.net>
39347
39348         Give gcc some memmem optimization hints.
39349         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
39350         (strcasestr): Declare as pure.
39351         * modules/memmem (Maintainer): Claim my implementation.
39352
39353 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39354
39355         Support AIX 6.1 and higher.
39356         * build-aux/config.libpath: Likewise.
39357         * build-aux/config.rpath: Likewise.
39358
39359 2008-01-08  Jim Meyering  <meyering@redhat.com>
39360             Bruno Haible  <bruno@clisp.org>
39361
39362         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
39363         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
39364         Reported by Peter Fales in
39365         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
39366
39367 2008-01-08  Bruno Haible  <bruno@clisp.org>
39368
39369         * modules/unictype/category-of (Depends-on): Add
39370         unictype/category-none.
39371         * modules/unictype/category-and-tests (Depends-on): Add
39372         unictype/category-{L,N,Lu,Nd}.
39373         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
39374         * modules/unictype/category-or-tests (Depends-on): Add
39375         unictype/category-{L,N}.
39376         * modules/unictype/category-name-tests (Depends-on): Add
39377         unictype/category-{Z,Nl}.
39378         Reported by Simon Josefsson.
39379
39380 2008-01-08  Bruno Haible  <bruno@clisp.org>
39381
39382         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
39383         convention better.
39384         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
39385         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
39386         Reported by Peter Miller <millerp@canb.auug.org.au>.
39387
39388 2008-01-08  Eric Blake  <ebb9@byu.net>
39389
39390         Rewrite memmem to guarantee linear complexity without malloc.
39391         * lib/memmem.c (memmem): Use Two-Way rather than
39392         Knuth-Morris-Pratt, to allow O(1) space usage.
39393         (critical_factorization, two_way_short_needle)
39394         (two_way_long_needle): New functions.
39395         (knuth_morris_pratt): Delete.
39396         * modules/memmem (Depends-on): No longer need malloca or stdbool.
39397         Add stdint.
39398         * tests/test-memmem.c (main): Add tests for periodic needle and
39399         sublinear performance.
39400         * doc/functions/memmem.texi (memmem): Document other deficiencies
39401         in cygwin and older glibc.
39402
39403 2008-01-08  Bruno Haible  <bruno@clisp.org>
39404
39405         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
39406         augmentation.
39407
39408 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
39409
39410         Add a configure time option: --disable-acl.
39411         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
39412         AC_ARG_ENABLE(acl).
39413
39414 2008-01-06  Simon Josefsson  <simon@josefsson.org>
39415
39416         * tests/test-localename.c: Don't include obsolete "setenv.h".
39417
39418         * modules/localename-tests (Depends-on): Need unsetenv.
39419
39420 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39421
39422         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
39423
39424 2008-01-06  Colin Watson  <cjwatson@debian.org>
39425
39426         * users.txt: Add man-db.
39427
39428 2008-01-07  Bruno Haible  <bruno@clisp.org>
39429
39430         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
39431         previous section name.
39432
39433 2008-01-07  Bruno Haible  <bruno@clisp.org>
39434
39435         * lib/progname.c (set_program_name): Don't strip off a leading
39436         "lt-" prefix outside a .libs directory.
39437         Suggested by Paul Eggert.
39438
39439 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
39440             Bruno Haible  <bruno@clisp.org>
39441
39442         Improve memory cleanup in 'relocatable' module.
39443         * lib/relocatable.h (compute_curr_prefix): Change return type to
39444         'char *'.
39445         * lib/relocatable.c (compute_curr_prefix): Change return type to
39446         'char *'. Free curr_installdir after use.
39447         (relocate): Free curr_prefix_better after use.
39448         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
39449
39450 2008-01-01  Bruno Haible  <bruno@clisp.org>
39451
39452         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
39453         failure on older glibc systems.
39454         Reported by Peter Fales <psfales@alcatel-lucent.com>.
39455
39456 2008-01-05  Eric Blake  <ebb9@byu.net>
39457
39458         Avoid quadratic system memmem.
39459         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
39460         Reported by Ralf Wildenhues.
39461
39462         Fix memmem test for mingw.
39463         * modules/memmem-tests (configure.ac): Check for alarm.
39464         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
39465         it.
39466         * doc/functions/memmem.texi: New file.
39467         * doc/gnulib.texi (Function Substitutes): Add memmem.
39468         Reported by Bruno Haible.
39469
39470 2008-01-04  Bruno Haible  <bruno@clisp.org>
39471
39472         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
39473         Require gl_HEADER_STRINGS_H_DEFAULTS, not
39474         gl_HEADER_STRING_H_DEFAULTS.
39475
39476 2008-01-04  Eric Blake  <ebb9@byu.net>
39477
39478         Shorten duration of memmem test.
39479         * tests/test-memmem.c (main): Use alarm to declare failure if test
39480         is taking too long.
39481         Reported by Ralf Wildenhues.
39482
39483 2007-12-21  Simon Josefsson  <simon@josefsson.org>
39484
39485         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
39486         string, needed by strerror.
39487
39488 2008-01-03  Colin Watson  <cjwatson@debian.org>
39489             Bruno Haible  <bruno@clisp.org>
39490
39491         * doc/gnulib-tool.texi (Localization): New section.
39492
39493 2008-01-02  Bruno Haible  <bruno@clisp.org>
39494
39495         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
39496         variables to 'unsigned char *' type.
39497         Reported by Paul Eggert.
39498
39499 2008-01-02  Jim Meyering  <jim@meyering.net>
39500
39501         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
39502
39503 2007-12-31  Jim Meyering  <jim@meyering.net>
39504
39505         Avoid use of private FTS type name.
39506         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
39507
39508 2007-12-30  Karl Berry  <karl@gnu.org>
39509
39510         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
39511         work around defect in Texinfo and/or the standalone Info browser.
39512
39513 2007-12-30  Bruno Haible  <bruno@clisp.org>
39514
39515         Unify 5 copies of the KMP code.
39516         * lib/str-kmp.h: New file.
39517         * lib/c-strcasestr.c: Include str-kmp.h.
39518         (knuth_morris_pratt): Remove function.
39519         (c_strcasestr): Update.
39520         * lib/c-strstr.c: Include str-kmp.h.
39521         (knuth_morris_pratt): Remove function.
39522         (c_strcasestr): Update.
39523         * lib/mbscasestr.c: Include str-kmp.h.
39524         (knuth_morris_pratt_unibyte): Remove function.
39525         * lib/mbsstr.c: Include str-kmp.h.
39526         (knuth_morris_pratt_unibyte): Remove function.
39527         * lib/strcasestr.c: Include str-kmp.h.
39528         (knuth_morris_pratt): Remove function.
39529         (strcasestr): Update.
39530         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
39531         * modules/c-strstr (Files): Likewise.
39532         * modules/mbscasestr (Files): Likewise.
39533         * modules/mbsstr (Files): Likewise.
39534         * modules/strcasestr (Files): Likewise.
39535         Suggested by Paul Eggert.
39536
39537 2007-12-30  Bruno Haible  <bruno@clisp.org>
39538
39539         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
39540         defined.
39541
39542 2007-12-30  Bruno Haible  <bruno@clisp.org>
39543
39544         * lib/xmalloca.h: Include xalloc.h.
39545         (xnmalloca): New macro.
39546
39547 2007-12-30  Bruno Haible  <bruno@clisp.org>
39548
39549         * lib/malloca.h (nmalloca): New macro.
39550         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
39551         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
39552         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
39553         knuth_morris_pratt_multibyte): Likewise.
39554         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
39555         knuth_morris_pratt_multibyte): Likewise.
39556         * lib/memmem.c (knuth_morris_pratt): Likewise.
39557         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
39558
39559 2007-12-25  Bruno Haible  <bruno@clisp.org>
39560
39561         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
39562         * lib/glob.c: Don't include openat.h.
39563         (link_exists2_p): Add back the code that deals with the
39564         !GLOB_ALTDIRFUNC case.
39565         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
39566         let it do the filename concatenation.
39567         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
39568         * modules/glob (Depends-on): Remove openat.
39569
39570 2007-12-31  Bruno Haible  <bruno@clisp.org>
39571
39572         * modules/dirfd (License): Change to LGPLv2+.
39573         Approved by Jim Meyering.
39574
39575 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
39576
39577         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
39578         when multiplying M by sizeof (size_t).
39579
39580 2007-12-10  Martin Lambers  <marlam@marlam.de>
39581
39582         Override getpagesize on mingw.
39583         * lib/getpagesize.c: New file.
39584         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
39585         * modules/getpagesize (Files): Add lib/getpagesize.c.
39586         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
39587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39588         REPLACE_GETPAGESIZE.
39589         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
39590
39591 2007-12-25  Bruno Haible  <bruno@clisp.org>
39592
39593         * modules/localcharset (Notice): New field.
39594         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
39595         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
39596
39597 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
39598             Bruno Haible  <bruno@clisp.org>
39599
39600         Avoid using the syntax symbol() in formatted documentation.
39601         * MODULES.html.sh (func_module): When replacing symbol() with a
39602         hyperlink, remove the parentheses. Show an error if some remain.
39603         Recognize and render the '...' syntax.
39604         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
39605         Rework. Add paragraph about GCC's inlining.
39606         * doc/alloca.texi: Likewise.
39607         * doc/error.texi: Remove parentheses from symbol reference.
39608         * doc/gnulib-intro.texi: Likewise.
39609         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
39610         * modules/fnmatch (Description): Reword to say "the ... function".
39611         * modules/full-read (Description): Likewise.
39612         * modules/full-write (Description): Likewise.
39613         * modules/safe-read (Description): Likewise.
39614         * modules/safe-write (Description): Likewise.
39615         * modules/strchrnul (Description): Likewise.
39616         * modules/trim (Description): Likewise.
39617         * modules/error (Description): Remove parentheses from symbol
39618         references.
39619         * modules/verror (Description): Likewise.
39620         Reported by Karl Berry.
39621
39622 2007-12-25  Bruno Haible  <bruno@clisp.org>
39623
39624         Fixup after 2007-10-16 commit.
39625         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
39626
39627 2007-12-24  Bruno Haible  <bruno@clisp.org>
39628
39629         Make --enable-relocatable work with DESTDIR.
39630         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
39631         to compute installdir from destprog.
39632         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
39633         also set the RELOC_DESTDIR variable.
39634         Reported by Левашев Иван <octagram@bluebottle.com>.
39635
39636 2007-12-24  Bruno Haible  <bruno@clisp.org>
39637
39638         Fix link error due to xalloc_die().
39639         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
39640         of xreadlink.
39641         * lib/relocwrapper.c: Update comments.
39642         * build-aux/install-reloc: Remove xreadlink.c from file list.
39643         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
39644         xreadlink.c.
39645         Reported by Левашев Иван <octagram@bluebottle.com>.
39646
39647 2007-12-24  Bruno Haible  <bruno@clisp.org>
39648
39649         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
39650         * lib/setenv.h: Remove file.
39651         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
39652         lib/setenv.h.
39653         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
39654         (Depends-on): Add stdlib.
39655         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
39656         gl_FUNC_UNSETENV.
39657         (Include): Replace setenv.h with <stdlib.h>.
39658         * modules/unsetenv: New file.
39659         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
39660         * lib/unsetenv.c: Include <stdlib.h> first.
39661         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
39662         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
39663         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
39664         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
39665         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
39666         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
39667         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
39668         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
39669         * doc/functions/unsetenv.texi: Update.
39670         * modules/xsetenv (Depends-on): Add unsetenv.
39671         * modules/getdate (Depends-on): Likewise.
39672         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
39673         * lib/xsetenv.c: Don't include setenv.h.
39674         * lib/getdate.y: Likewise.
39675         * lib/relocwrapper.c: Likewise.
39676         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
39677         (Depends-on): Add stdlib.
39678         * NEWS: Mention the changes.
39679         Reported by Левашев Иван <octagram@bluebottle.com>.
39680
39681 2007-12-23  Bruno Haible  <bruno@clisp.org>
39682
39683         * lib/memmem.c (memmem): Use lowercase variable names. Tab
39684         indentation.
39685
39686 2007-12-23  Bruno Haible  <bruno@clisp.org>
39687
39688         * lib/c-strcasestr.c: Add more comments.
39689         * lib/c-strstr.c: Likewise.
39690         * lib/mbscasestr.c: Likewise.
39691         * lib/mbsstr.c: Likewise.
39692         * lib/strcasestr.c: Likewise.
39693         * lib/memmem.c: Likewise.
39694
39695 2007-12-23  Bruno Haible  <bruno@clisp.org>
39696
39697         * tests/test-memmem.c: Include <string.h> first.
39698
39699 2007-12-22  Bruno Haible  <bruno@clisp.org>
39700
39701         * gnulib-tool (func_create_testdir): Change $auxdir while generating
39702         the contents of $testsbase.
39703         Reported by Ralf Wildenhues.
39704
39705 2007-12-22  Bruno Haible  <bruno@clisp.org>
39706
39707         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
39708         two variables local_ldadd_before, local_ldadd_last.
39709
39710 2007-12-20  Eric Blake  <ebb9@byu.net>
39711
39712         Work around circular library issue when cross-compiling.
39713         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
39714         that progname.o does not need to pull in rpl_memcmp.
39715
39716 2007-12-19  Eric Blake  <ebb9@byu.net>
39717
39718         Fix memmem to avoid O(n^2) worst-case complexity.
39719         * lib/memmem.c (knuth_morris_pratt): New function.
39720         (memmem): Use it if first few naive iterations fail.
39721         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
39722         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
39723         * modules/memchr (License): Likewise.
39724         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
39725         malloca.
39726         * tests/test-memmem.c: Rewrite, borrowing ideas from
39727         test-mbsstr1.c; the old version wouldn't even compile!
39728         * modules/memmem-tests: New file.
39729         * lib/string.in.h (rpl_memmem): Add declaration.
39730         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
39731         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
39732         REPLACE_MEMMEM.
39733
39734 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39735
39736         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
39737         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
39738         before any system include files, and undef after them all.  This
39739         should fix a problem on VMS reported by John E. Malmberg in
39740         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
39741
39742 2007-12-17  Eric Blake  <ebb9@byu.net>
39743
39744         Revert addition of verify, for BSD/OS.
39745         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
39746         can't handle large files, for the sake of obsolete platforms.
39747         * modules/fseeko (Depends-on): Remove verify.
39748         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
39749         * doc/functions/ftello.texi (ftello): Likewise.
39750         * doc/functions/fgetpos.texi (fgetpos): Likewise.
39751         Reported by Larry Jones.
39752
39753 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
39754
39755         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
39756         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
39757
39758 2007-12-17  Jim Meyering  <meyering@redhat.com>
39759
39760         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
39761         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
39762         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
39763         * modules/getcwd (Depends-on): Add openat.
39764         Reported by Petr Salinger.
39765
39766 2007-12-17  Bruno Haible  <bruno@clisp.org>
39767
39768         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
39769         avoid a segmentation fault of the configure test on x86_64 systems.
39770
39771 2007-12-15  Jim Meyering  <meyering@redhat.com>
39772
39773         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
39774
39775 2007-12-13  Eric Blake  <ebb9@byu.net>
39776
39777         Another fseek test.
39778         * tests/test-fseek.c (main): Also test ungetc handling.
39779         * tests/test-fseeko.c (main): Likewise.
39780         * modules/fseeko (Depends-on): Add verify.
39781         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
39782         large.
39783         Reported by Larry Jones.
39784
39785         Fix fseeko on mingw.
39786         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
39787         seek.
39788
39789         Beef up fseek tests.
39790         * tests/test-fseek.c (main): Also test eof handling.
39791         * tests/test-fseeko.c (main): Likewise.
39792         Reported by Larry Jones.
39793
39794 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
39795
39796         Fix fseeko on BSD-based platforms.
39797         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
39798         successful seek.
39799
39800 2007-12-12  Eric Blake  <ebb9@byu.net>
39801
39802         Allow circular dependency of separate libtests.a
39803         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
39804         when use_libtests.
39805
39806 2007-12-11  Eric Blake  <ebb9@byu.net>
39807
39808         Fix bug with -0.0L in previous patch.
39809         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
39810         * tests/test-isnan.c (main): Also test on zeroes.
39811         * tests/test-isnanf.c (main): Likewise.
39812         * tests/test-isnanl.h (main): Likewise.
39813
39814         Detect pseudo-denormals on x86 even when cross-compiling.
39815         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
39816         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
39817         invalid bit patterns that happen to satisfy ==.
39818
39819         Avoid link failures with separate libtests.a.
39820         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
39821         last, to satisfy circular dependencies.
39822
39823 2007-12-11  Eric Blake  <ebb9@byu.net>
39824         and Bruno Haible  <bruno@clisp.org>
39825
39826         Fix OpenBSD 4.0 <float.h> handling of long double.
39827         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
39828         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
39829         * doc/headers/float.texi (float.h): Document OpenBSD bug.
39830
39831 2007-12-11  Jim Meyering  <meyering@redhat.com>
39832
39833         * users.txt: Add libvirt.
39834
39835         Support versions of autoconf prior to 2.59c.
39836         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
39837         if it is not already defined.
39838
39839 2007-12-09  Bruno Haible  <bruno@clisp.org>
39840
39841         Let 'gnulib-tool --import' collect sources needed for the tests in
39842         tests/ rather than in lib/.
39843         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
39844         argument. If true, add rules to generate libtests.a, and put libtests.a
39845         into $(LDADD). Consider source files in subdirectories and set
39846         uses_subdirs.
39847         (func_emit_initmacro_start, func_emit_initmacro_end,
39848         func_emit_initmacro_done): Pass all arguments explicitly.
39849         (func_import): Determine two module lists main_modules,
39850         testsrelated_modules. Determine use_libtests. Determine two variables
39851         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
39852         instead of just sed_transform_lib_file. Determine two variables
39853         main_files and testsrelated_files. Compute 'files' as the union of
39854         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
39855         func_add_or_update. In the generated gnulib-comp.m4, collect the
39856         object files for tests/ in different variables than those for lib/.
39857         Substitute LIBTESTS_LIBDEPS.
39858         (func_create_testdir): Combine the uses_subdirs results from
39859         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
39860
39861 2007-12-09  Bruno Haible  <bruno@clisp.org>
39862
39863         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
39864         the build-aux directory.
39865
39866 2007-12-09  Bruno Haible  <bruno@clisp.org>
39867
39868         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
39869         introduced on 2006-09-09.
39870
39871 2007-12-07  Jim Meyering  <meyering@redhat.com>
39872
39873         Let these macros work also with autoconf-2.59.
39874         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
39875         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
39876         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
39877
39878 2007-12-06  Jim Meyering  <meyering@redhat.com>
39879
39880         Avoid a configure-time syntax error in gl_FUNC_ACL.
39881         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
39882         function in each branch, before testing the cache variable.
39883
39884 2007-12-04  Eric Blake  <ebb9@byu.net>
39885
39886         Make scripts executable.
39887         * build-aux/config.guess: Add execute permissions.
39888         * build-aux/config.sub: Likewise.
39889         * build-aux/gendocs.sh: Likewise.
39890
39891         Fix frexp on mingw.
39892         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
39893         cross-compiling.
39894         * doc/functions/frexp.texi (frexp): Document the bug.
39895
39896         Make cygwin fseeko check more reliable.
39897         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
39898         version numbers, rather than unrelated feature check.
39899         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
39900         * doc/functions/ftello.texi (ftello): Likewise.
39901         Reported by Bruno Haible.
39902
39903         * m4/strerror.m4: Bump version number.
39904
39905 2007-12-03  Bruno Haible  <bruno@clisp.org>
39906
39907         * doc/functions/mprotect.texi: Mention the mingw problem.
39908
39909 2007-12-03  Eric Blake  <ebb9@byu.net>
39910
39911         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
39912         REPLACE_STRERROR is initialized before this macro.
39913
39914 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
39915
39916         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
39917         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
39918         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
39919         put -lsec in even for programs other than 'ls'.  This fixes a problem
39920         for gettext reported by Bruno Haible in
39921         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
39922         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
39923         Add support for Solaris 10.  This isn't efficient, but should get the
39924         job done for now.
39925
39926 2007-12-03  James Youngman  <jay@gnu.org>
39927
39928         * doc/regexprops-generic.texi: change "an close-group" to "a
39929         close-group" and "illegal" to "not allowed".
39930
39931 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39932
39933         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
39934         pr_byname.h. Needed for the rare case when the maintainer has done
39935         "make maintainer-clean" in the source directory and then attempts a
39936         build outside the source directory.
39937         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
39938         scripts_byname.h.
39939
39940 2007-12-02  Martin Lambers <marlam@marlam.de>
39941             Bruno Haible  <bruno@clisp.org>
39942
39943         * lib/getpagesize.h: Remove file.
39944         * lib/unistd.in.h: Include declaration of getpagesize here.
39945         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
39946         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
39947         HAVE_SYS_PARAM_H.
39948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
39949         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
39950         * modules/getpagesize (Files): Remove lib/getpagesize.h.
39951         (Depends-on): Add unistd.
39952         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39953         (Include): Use <unistd.h> instead of getpagesize.h.
39954         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
39955         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
39956         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
39957         gl_GETPAGESIZE invocation, already handled by module dependency.
39958         * lib/pagealign_alloc.c: Don't include getpagesize.h.
39959
39960 2007-12-02  Bruno Haible  <bruno@clisp.org>
39961
39962         * modules/strings-tests: New file.
39963         * tests/test-strings.c: New file.
39964
39965         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
39966         * lib/strings.in.h: New file.
39967         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
39968         * m4/strings_h.m4: New file.
39969         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
39970         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
39971         * modules/strings: New file.
39972         * modules/string (Makefile.am): Update.
39973         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
39974         Reported by Karl Berry.
39975
39976 2007-12-01  Eric Blake  <ebb9@byu.net>
39977
39978         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
39979         accomodate fix in cygwin 1.5.25.
39980
39981 2007-12-01  Jim Meyering  <meyering@redhat.com>
39982
39983         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
39984         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
39985         that would inhibit utf8-optimization of a regexp containing line-
39986         or buffer-anchors, e.g., `^', `$'.
39987
39988 2007-11-30  Bruno Haible  <bruno@clisp.org>
39989
39990         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
39991         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
39992         glthread_recursive_lock_init.
39993         * lib/lock.c (glthread_recursive_lock_init)
39994         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
39995         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39996
39997 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
39998
39999         New function qset_acl, like set_acl but with syscall semantics.
40000         * lib/acl.h (qset_acl): New decl.
40001         * lib/acl.c (qset_acl): New function.
40002         (set_acl): Use new function.  Use more-consistent diagnostics.
40003
40004 2007-11-28  Jim Meyering  <meyering@redhat.com>
40005
40006         * modules/physmem (License): Change from GPL to LGPLv2+.
40007
40008 2007-11-26  Bruno Haible  <bruno@clisp.org>
40009
40010         * lib/vasnprintf.c (decode_long_double): Don't abort if the
40011         'long double' type has excess precision.
40012         Reported by Jim Meyering in
40013         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
40014
40015 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40016
40017         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
40018         Sync from <http://gnu.org/licenses>.
40019         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
40020         with license text from same location.
40021         * doc/maintain.texi, doc/standards.texi:  Sync from
40022         <http://savannah.gnu.org/projects/gnustandards>.
40023
40024 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
40025         and Jim Meyering  <meyering@redhat.com>
40026
40027         Adjust getdate' grammar to accept a slightly more regular language.
40028         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
40029         Before, the former was rejected.
40030         * lib/getdate.y (digits_to_date_time): New function, factored
40031         out of ...
40032         (number): ...here.  Just call digits_to_date_time.
40033         (hybrid): New non-terminal to handle an <unsigned number,
40034         signed relative offset> sequence consistently.
40035
40036 2007-11-18  Jim Meyering  <meyering@redhat.com>
40037
40038         Pull my changes from coreutils:
40039         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
40040         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
40041         use of $gnulib_tool_option_extras, so that it's separated from the
40042         preceding argument.
40043
40044         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
40045         * build-aux/bootstrap (cp_mark_as_generated): Create any required
40046         parent destination directories before copying a file into place.
40047
40048 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
40049
40050         bootstrap: work also with 4-argument variant of AC_INIT
40051         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
40052
40053 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40054
40055         Port test-getaddrinfo to Solaris.
40056         Problem reported by Bruno Haible in
40057         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
40058         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
40059         explanation of setting 'hints'.
40060         Don't reject an implementation merely because it returns EAI_SERVICE.
40061         (EAI_SERVICE): Define to 0 if not defined.
40062
40063 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
40064
40065         The license of gnu-make and posix-shell is now "GPLed build tool".
40066         * modules/gnu-make (License): Likewise.
40067         * modules/posix-shell (License): Likewise.
40068
40069         New module posix-shell, for determining a POSIX shell
40070         or perhaps something that is close enough to a POSIX shell.
40071         * m4/posix-shell.m4: New file.
40072         * modules/posix-shell: New file.
40073
40074         * MODULES.html.sh: Mention new module.
40075
40076         New module gnu-make, for determining whether we're using GNU Make.
40077         * m4/gnu-make.m4: New file.
40078         * modules/gnu-make: New file.
40079         * MODULES.html.sh: Mention new module.
40080
40081 2007-11-14  Jim Meyering  <meyering@redhat.com>
40082
40083         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
40084         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
40085         use this macro to create a function _definition_.
40086         Remove useless "#undef ARGMATCH_DIE".
40087
40088 2007-11-14  Bruno Haible  <bruno@clisp.org>
40089
40090         * lib/config.charset: Update for OpenBSD 4.1.
40091         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
40092
40093 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
40094
40095         Document 64-bit #if problems in stdint.texi.
40096         * doc/headers/stdint.texi (stdint.h): Mention problems with
40097         64-bit-#if, and how to work around them.
40098
40099         Don't insist on 'long long int' support in the preprocessor.  It
40100         breaks too many things.  For example, PRIdMAX still uses a 'long
40101         long int' format with the latest Sun compiler, even though
40102         HAVE_LONG_LONG_INT isn't defined due to that compiler's
40103         preprocessor problem.  This causes the latest coreutils to dump
40104         core on Solaris 10 sparc with the Sun C compiler.
40105         Instead, fix the 2007-10-16 problem in a different way, by evaluating
40106         the troublesome expressions at configure-time, not at #if-time.
40107         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
40108         preprocessor.
40109         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
40110         compile-time C checks, done at 'configure'-time.
40111         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
40112         * modules/inttypes (Makefile): Substitute the new symbols that
40113         gl_INTTYPES_H now generates.
40114         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
40115
40116 2007-11-12  Bruno Haible  <bruno@clisp.org>
40117
40118         Tests for Unicode character classification functions.
40119
40120         * modules/unictype/bidicategory-byname-tests: New file.
40121         * modules/unictype/bidicategory-name-tests: New file.
40122         * modules/unictype/bidicategory-of-tests: New file.
40123         * modules/unictype/bidicategory-test-tests: New file.
40124         * modules/unictype/block-list-tests: New file.
40125         * modules/unictype/block-of-tests: New file.
40126         * modules/unictype/block-test-tests: New file.
40127         * modules/unictype/category-C-tests: New file.
40128         * modules/unictype/category-Cc-tests: New file.
40129         * modules/unictype/category-Cf-tests: New file.
40130         * modules/unictype/category-Cn-tests: New file.
40131         * modules/unictype/category-Co-tests: New file.
40132         * modules/unictype/category-Cs-tests: New file.
40133         * modules/unictype/category-L-tests: New file.
40134         * modules/unictype/category-Ll-tests: New file.
40135         * modules/unictype/category-Lm-tests: New file.
40136         * modules/unictype/category-Lo-tests: New file.
40137         * modules/unictype/category-Lt-tests: New file.
40138         * modules/unictype/category-Lu-tests: New file.
40139         * modules/unictype/category-M-tests: New file.
40140         * modules/unictype/category-Mc-tests: New file.
40141         * modules/unictype/category-Me-tests: New file.
40142         * modules/unictype/category-Mn-tests: New file.
40143         * modules/unictype/category-N-tests: New file.
40144         * modules/unictype/category-Nd-tests: New file.
40145         * modules/unictype/category-Nl-tests: New file.
40146         * modules/unictype/category-No-tests: New file.
40147         * modules/unictype/category-P-tests: New file.
40148         * modules/unictype/category-Pc-tests: New file.
40149         * modules/unictype/category-Pd-tests: New file.
40150         * modules/unictype/category-Pe-tests: New file.
40151         * modules/unictype/category-Pf-tests: New file.
40152         * modules/unictype/category-Pi-tests: New file.
40153         * modules/unictype/category-Po-tests: New file.
40154         * modules/unictype/category-Ps-tests: New file.
40155         * modules/unictype/category-S-tests: New file.
40156         * modules/unictype/category-Sc-tests: New file.
40157         * modules/unictype/category-Sk-tests: New file.
40158         * modules/unictype/category-Sm-tests: New file.
40159         * modules/unictype/category-So-tests: New file.
40160         * modules/unictype/category-Z-tests: New file.
40161         * modules/unictype/category-Zl-tests: New file.
40162         * modules/unictype/category-Zp-tests: New file.
40163         * modules/unictype/category-Zs-tests: New file.
40164         * modules/unictype/category-and-not-tests: New file.
40165         * modules/unictype/category-and-tests: New file.
40166         * modules/unictype/category-byname-tests: New file.
40167         * modules/unictype/category-name-tests: New file.
40168         * modules/unictype/category-none-tests: New file.
40169         * modules/unictype/category-of-tests: New file.
40170         * modules/unictype/category-or-tests: New file.
40171         * modules/unictype/category-test-withtable-tests: New file.
40172         * modules/unictype/combining-class-tests: New file.
40173         * modules/unictype/ctype-alnum-tests: New file.
40174         * modules/unictype/ctype-alpha-tests: New file.
40175         * modules/unictype/ctype-blank-tests: New file.
40176         * modules/unictype/ctype-cntrl-tests: New file.
40177         * modules/unictype/ctype-digit-tests: New file.
40178         * modules/unictype/ctype-graph-tests: New file.
40179         * modules/unictype/ctype-lower-tests: New file.
40180         * modules/unictype/ctype-print-tests: New file.
40181         * modules/unictype/ctype-punct-tests: New file.
40182         * modules/unictype/ctype-space-tests: New file.
40183         * modules/unictype/ctype-upper-tests: New file.
40184         * modules/unictype/ctype-xdigit-tests: New file.
40185         * modules/unictype/decimal-digit-tests: New file.
40186         * modules/unictype/digit-tests: New file.
40187         * modules/unictype/mirror-tests: New file.
40188         * modules/unictype/numeric-tests: New file.
40189         * modules/unictype/property-alphabetic-tests: New file.
40190         * modules/unictype/property-ascii-hex-digit-tests: New file.
40191         * modules/unictype/property-bidi-arabic-digit-tests: New file.
40192         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
40193         * modules/unictype/property-bidi-block-separator-tests: New file.
40194         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
40195         * modules/unictype/property-bidi-common-separator-tests: New file.
40196         * modules/unictype/property-bidi-control-tests: New file.
40197         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
40198         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
40199         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
40200         * modules/unictype/property-bidi-european-digit-tests: New file.
40201         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
40202         * modules/unictype/property-bidi-left-to-right-tests: New file.
40203         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
40204         * modules/unictype/property-bidi-other-neutral-tests: New file.
40205         * modules/unictype/property-bidi-pdf-tests: New file.
40206         * modules/unictype/property-bidi-segment-separator-tests: New file.
40207         * modules/unictype/property-bidi-whitespace-tests: New file.
40208         * modules/unictype/property-byname-tests: New file.
40209         * modules/unictype/property-combining-tests: New file.
40210         * modules/unictype/property-composite-tests: New file.
40211         * modules/unictype/property-currency-symbol-tests: New file.
40212         * modules/unictype/property-dash-tests: New file.
40213         * modules/unictype/property-decimal-digit-tests: New file.
40214         * modules/unictype/property-default-ignorable-code-point-tests: New file.
40215         * modules/unictype/property-deprecated-tests: New file.
40216         * modules/unictype/property-diacritic-tests: New file.
40217         * modules/unictype/property-extender-tests: New file.
40218         * modules/unictype/property-format-control-tests: New file.
40219         * modules/unictype/property-grapheme-base-tests: New file.
40220         * modules/unictype/property-grapheme-extend-tests: New file.
40221         * modules/unictype/property-grapheme-link-tests: New file.
40222         * modules/unictype/property-hex-digit-tests: New file.
40223         * modules/unictype/property-hyphen-tests: New file.
40224         * modules/unictype/property-id-continue-tests: New file.
40225         * modules/unictype/property-id-start-tests: New file.
40226         * modules/unictype/property-ideographic-tests: New file.
40227         * modules/unictype/property-ids-binary-operator-tests: New file.
40228         * modules/unictype/property-ids-trinary-operator-tests: New file.
40229         * modules/unictype/property-ignorable-control-tests: New file.
40230         * modules/unictype/property-iso-control-tests: New file.
40231         * modules/unictype/property-join-control-tests: New file.
40232         * modules/unictype/property-left-of-pair-tests: New file.
40233         * modules/unictype/property-line-separator-tests: New file.
40234         * modules/unictype/property-logical-order-exception-tests: New file.
40235         * modules/unictype/property-lowercase-tests: New file.
40236         * modules/unictype/property-math-tests: New file.
40237         * modules/unictype/property-non-break-tests: New file.
40238         * modules/unictype/property-not-a-character-tests: New file.
40239         * modules/unictype/property-numeric-tests: New file.
40240         * modules/unictype/property-other-alphabetic-tests: New file.
40241         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
40242         * modules/unictype/property-other-grapheme-extend-tests: New file.
40243         * modules/unictype/property-other-id-continue-tests: New file.
40244         * modules/unictype/property-other-id-start-tests: New file.
40245         * modules/unictype/property-other-lowercase-tests: New file.
40246         * modules/unictype/property-other-math-tests: New file.
40247         * modules/unictype/property-other-uppercase-tests: New file.
40248         * modules/unictype/property-paired-punctuation-tests: New file.
40249         * modules/unictype/property-paragraph-separator-tests: New file.
40250         * modules/unictype/property-pattern-syntax-tests: New file.
40251         * modules/unictype/property-pattern-white-space-tests: New file.
40252         * modules/unictype/property-private-use-tests: New file.
40253         * modules/unictype/property-punctuation-tests: New file.
40254         * modules/unictype/property-quotation-mark-tests: New file.
40255         * modules/unictype/property-radical-tests: New file.
40256         * modules/unictype/property-sentence-terminal-tests: New file.
40257         * modules/unictype/property-soft-dotted-tests: New file.
40258         * modules/unictype/property-space-tests: New file.
40259         * modules/unictype/property-terminal-punctuation-tests: New file.
40260         * modules/unictype/property-test-tests: New file.
40261         * modules/unictype/property-titlecase-tests: New file.
40262         * modules/unictype/property-unassigned-code-value-tests: New file.
40263         * modules/unictype/property-unified-ideograph-tests: New file.
40264         * modules/unictype/property-uppercase-tests: New file.
40265         * modules/unictype/property-variation-selector-tests: New file.
40266         * modules/unictype/property-white-space-tests: New file.
40267         * modules/unictype/property-xid-continue-tests: New file.
40268         * modules/unictype/property-xid-start-tests: New file.
40269         * modules/unictype/property-zero-width-tests: New file.
40270         * modules/unictype/scripts-tests: New file.
40271         * modules/unictype/syntax-c-ident-tests: New file.
40272         * modules/unictype/syntax-c-whitespace-tests: New file.
40273         * modules/unictype/syntax-java-ident-tests: New file.
40274         * modules/unictype/syntax-java-whitespace-tests: New file.
40275         * tests/unictype/test-bidi_byname.c: New file.
40276         * tests/unictype/test-bidi_name.c: New file.
40277         * tests/unictype/test-bidi_of.c: New file.
40278         * tests/unictype/test-bidi_test.c: New file.
40279         * tests/unictype/test-block_list.c: New file.
40280         * tests/unictype/test-block_of.c: New file.
40281         * tests/unictype/test-block_test.c: New file.
40282         * tests/unictype/test-categ_and.c: New file.
40283         * tests/unictype/test-categ_and_not.c: New file.
40284         * tests/unictype/test-categ_byname.c: New file.
40285         * tests/unictype/test-categ_name.c: New file.
40286         * tests/unictype/test-categ_none.c: New file.
40287         * tests/unictype/test-categ_of.c: New file.
40288         * tests/unictype/test-categ_or.c: New file.
40289         * tests/unictype/test-categ_test_withtable.c: New file.
40290         * tests/unictype/test-combining.c: New file.
40291         * tests/unictype/test-decdigit.c: New file.
40292         * tests/unictype/test-digit.c: New file.
40293         * tests/unictype/test-mirror.c: New file.
40294         * tests/unictype/test-numeric.c: New file.
40295         * tests/unictype/test-pr_byname.c: New file.
40296         * tests/unictype/test-pr_test.c: New file.
40297         * tests/unictype/test-predicate-part1.h: New file.
40298         * tests/unictype/test-predicate-part2.h: New file.
40299         * tests/unictype/test-scripts.c: New file.
40300         * tests/unictype/test-sy_c_ident.c: New file.
40301         * tests/unictype/test-sy_java_ident.c: New file.
40302
40303         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
40304         for Unicode 5.0.0.
40305         * tests/unictype/test-categ_Cc.c: Likewise.
40306         * tests/unictype/test-categ_Cf.c: Likewise.
40307         * tests/unictype/test-categ_Cn.c: Likewise.
40308         * tests/unictype/test-categ_Co.c: Likewise.
40309         * tests/unictype/test-categ_Cs.c: Likewise.
40310         * tests/unictype/test-categ_L.c: Likewise.
40311         * tests/unictype/test-categ_Ll.c: Likewise.
40312         * tests/unictype/test-categ_Lm.c: Likewise.
40313         * tests/unictype/test-categ_Lo.c: Likewise.
40314         * tests/unictype/test-categ_Lt.c: Likewise.
40315         * tests/unictype/test-categ_Lu.c: Likewise.
40316         * tests/unictype/test-categ_M.c: Likewise.
40317         * tests/unictype/test-categ_Mc.c: Likewise.
40318         * tests/unictype/test-categ_Me.c: Likewise.
40319         * tests/unictype/test-categ_Mn.c: Likewise.
40320         * tests/unictype/test-categ_N.c: Likewise.
40321         * tests/unictype/test-categ_Nd.c: Likewise.
40322         * tests/unictype/test-categ_Nl.c: Likewise.
40323         * tests/unictype/test-categ_No.c: Likewise.
40324         * tests/unictype/test-categ_P.c: Likewise.
40325         * tests/unictype/test-categ_Pc.c: Likewise.
40326         * tests/unictype/test-categ_Pd.c: Likewise.
40327         * tests/unictype/test-categ_Pe.c: Likewise.
40328         * tests/unictype/test-categ_Pf.c: Likewise.
40329         * tests/unictype/test-categ_Pi.c: Likewise.
40330         * tests/unictype/test-categ_Po.c: Likewise.
40331         * tests/unictype/test-categ_Ps.c: Likewise.
40332         * tests/unictype/test-categ_S.c: Likewise.
40333         * tests/unictype/test-categ_Sc.c: Likewise.
40334         * tests/unictype/test-categ_Sk.c: Likewise.
40335         * tests/unictype/test-categ_Sm.c: Likewise.
40336         * tests/unictype/test-categ_So.c: Likewise.
40337         * tests/unictype/test-categ_Z.c: Likewise.
40338         * tests/unictype/test-categ_Zl.c: Likewise.
40339         * tests/unictype/test-categ_Zp.c: Likewise.
40340         * tests/unictype/test-categ_Zs.c: Likewise.
40341         * tests/unictype/test-ctype_alnum.c: Likewise.
40342         * tests/unictype/test-ctype_alpha.c: Likewise.
40343         * tests/unictype/test-ctype_blank.c: Likewise.
40344         * tests/unictype/test-ctype_cntrl.c: Likewise.
40345         * tests/unictype/test-ctype_digit.c: Likewise.
40346         * tests/unictype/test-ctype_graph.c: Likewise.
40347         * tests/unictype/test-ctype_lower.c: Likewise.
40348         * tests/unictype/test-ctype_print.c: Likewise.
40349         * tests/unictype/test-ctype_punct.c: Likewise.
40350         * tests/unictype/test-ctype_space.c: Likewise.
40351         * tests/unictype/test-ctype_upper.c: Likewise.
40352         * tests/unictype/test-ctype_xdigit.c: Likewise.
40353         * tests/unictype/test-decdigit.h: Likewise.
40354         * tests/unictype/test-digit.h: Likewise.
40355         * tests/unictype/test-numeric.h: Likewise.
40356         * tests/unictype/test-pr_alphabetic.c: Likewise.
40357         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
40358         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
40359         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
40360         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
40361         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
40362         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
40363         * tests/unictype/test-pr_bidi_control.c: Likewise.
40364         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
40365         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
40366         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
40367         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
40368         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
40369         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
40370         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
40371         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
40372         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
40373         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
40374         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
40375         * tests/unictype/test-pr_combining.c: Likewise.
40376         * tests/unictype/test-pr_composite.c: Likewise.
40377         * tests/unictype/test-pr_currency_symbol.c: Likewise.
40378         * tests/unictype/test-pr_dash.c: Likewise.
40379         * tests/unictype/test-pr_decimal_digit.c: Likewise.
40380         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
40381         * tests/unictype/test-pr_deprecated.c: Likewise.
40382         * tests/unictype/test-pr_diacritic.c: Likewise.
40383         * tests/unictype/test-pr_extender.c: Likewise.
40384         * tests/unictype/test-pr_format_control.c: Likewise.
40385         * tests/unictype/test-pr_grapheme_base.c: Likewise.
40386         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
40387         * tests/unictype/test-pr_grapheme_link.c: Likewise.
40388         * tests/unictype/test-pr_hex_digit.c: Likewise.
40389         * tests/unictype/test-pr_hyphen.c: Likewise.
40390         * tests/unictype/test-pr_id_continue.c: Likewise.
40391         * tests/unictype/test-pr_id_start.c: Likewise.
40392         * tests/unictype/test-pr_ideographic.c: Likewise.
40393         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
40394         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
40395         * tests/unictype/test-pr_ignorable_control.c: Likewise.
40396         * tests/unictype/test-pr_iso_control.c: Likewise.
40397         * tests/unictype/test-pr_join_control.c: Likewise.
40398         * tests/unictype/test-pr_left_of_pair.c: Likewise.
40399         * tests/unictype/test-pr_line_separator.c: Likewise.
40400         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
40401         * tests/unictype/test-pr_lowercase.c: Likewise.
40402         * tests/unictype/test-pr_math.c: Likewise.
40403         * tests/unictype/test-pr_non_break.c: Likewise.
40404         * tests/unictype/test-pr_not_a_character.c: Likewise.
40405         * tests/unictype/test-pr_numeric.c: Likewise.
40406         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
40407         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
40408         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
40409         * tests/unictype/test-pr_other_id_continue.c: Likewise.
40410         * tests/unictype/test-pr_other_id_start.c: Likewise.
40411         * tests/unictype/test-pr_other_lowercase.c: Likewise.
40412         * tests/unictype/test-pr_other_math.c: Likewise.
40413         * tests/unictype/test-pr_other_uppercase.c: Likewise.
40414         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
40415         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
40416         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
40417         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
40418         * tests/unictype/test-pr_private_use.c: Likewise.
40419         * tests/unictype/test-pr_punctuation.c: Likewise.
40420         * tests/unictype/test-pr_quotation_mark.c: Likewise.
40421         * tests/unictype/test-pr_radical.c: Likewise.
40422         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
40423         * tests/unictype/test-pr_soft_dotted.c: Likewise.
40424         * tests/unictype/test-pr_space.c: Likewise.
40425         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
40426         * tests/unictype/test-pr_titlecase.c: Likewise.
40427         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
40428         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
40429         * tests/unictype/test-pr_uppercase.c: Likewise.
40430         * tests/unictype/test-pr_variation_selector.c: Likewise.
40431         * tests/unictype/test-pr_white_space.c: Likewise.
40432         * tests/unictype/test-pr_xid_continue.c: Likewise.
40433         * tests/unictype/test-pr_xid_start.c: Likewise.
40434         * tests/unictype/test-pr_zero_width.c: Likewise.
40435         * tests/unictype/test-sy_c_whitespace.c: Likewise.
40436         * tests/unictype/test-sy_java_whitespace.c: Likewise.
40437
40438 2007-11-12  Bruno Haible  <bruno@clisp.org>
40439
40440         Unicode character classification functions.
40441         * lib/unictype.h: New file.
40442         * modules/unictype/base: New file.
40443         * modules/unictype/category-L: New file.
40444         * modules/unictype/category-Lu: New file.
40445         * modules/unictype/category-Ll: New file.
40446         * modules/unictype/category-Lt: New file.
40447         * modules/unictype/category-Lm: New file.
40448         * modules/unictype/category-Lo: New file.
40449         * modules/unictype/category-M: New file.
40450         * modules/unictype/category-Mn: New file.
40451         * modules/unictype/category-Mc: New file.
40452         * modules/unictype/category-Me: New file.
40453         * modules/unictype/category-N: New file.
40454         * modules/unictype/category-Nd: New file.
40455         * modules/unictype/category-Nl: New file.
40456         * modules/unictype/category-No: New file.
40457         * modules/unictype/category-P: New file.
40458         * modules/unictype/category-Pc: New file.
40459         * modules/unictype/category-Pd: New file.
40460         * modules/unictype/category-Ps: New file.
40461         * modules/unictype/category-Pe: New file.
40462         * modules/unictype/category-Pi: New file.
40463         * modules/unictype/category-Pf: New file.
40464         * modules/unictype/category-Po: New file.
40465         * modules/unictype/category-S: New file.
40466         * modules/unictype/category-Sm: New file.
40467         * modules/unictype/category-Sc: New file.
40468         * modules/unictype/category-Sk: New file.
40469         * modules/unictype/category-So: New file.
40470         * modules/unictype/category-Z: New file.
40471         * modules/unictype/category-Zs: New file.
40472         * modules/unictype/category-Zl: New file.
40473         * modules/unictype/category-Zp: New file.
40474         * modules/unictype/category-C: New file.
40475         * modules/unictype/category-Cc: New file.
40476         * modules/unictype/category-Cf: New file.
40477         * modules/unictype/category-Cs: New file.
40478         * modules/unictype/category-Co: New file.
40479         * modules/unictype/category-Cn: New file.
40480         * modules/unictype/category-or: New file.
40481         * modules/unictype/category-of: New file.
40482         * modules/unictype/category-test: New file.
40483         * modules/unictype/category-test-withtable: New file.
40484         * modules/unictype/category-byname: New file.
40485         * modules/unictype/category-none: New file.
40486         * modules/unictype/category-and: New file.
40487         * modules/unictype/category-and-not: New file.
40488         * modules/unictype/category-name: New file.
40489         * modules/unictype/combining-class: New file.
40490         * modules/unictype/category-all: New file.
40491         * modules/unictype/bidicategory-all: New file.
40492         * modules/unictype/bidicategory-byname: New file.
40493         * modules/unictype/bidicategory-name: New file.
40494         * modules/unictype/bidicategory-of: New file.
40495         * modules/unictype/bidicategory-test: New file.
40496         * modules/unictype/decimal-digit: New file.
40497         * modules/unictype/digit: New file.
40498         * modules/unictype/numeric: New file.
40499         * modules/unictype/mirror: New file.
40500         * modules/unictype/property-white-space: New file.
40501         * modules/unictype/property-alphabetic: New file.
40502         * modules/unictype/property-other-alphabetic: New file.
40503         * modules/unictype/property-not-a-character: New file.
40504         * modules/unictype/property-default-ignorable-code-point: New file.
40505         * modules/unictype/property-other-default-ignorable-code-point: New
40506         file.
40507         * modules/unictype/property-deprecated: New file.
40508         * modules/unictype/property-logical-order-exception: New file.
40509         * modules/unictype/property-variation-selector: New file.
40510         * modules/unictype/property-private-use: New file.
40511         * modules/unictype/property-unassigned-code-value: New file.
40512         * modules/unictype/property-uppercase: New file.
40513         * modules/unictype/property-other-uppercase: New file.
40514         * modules/unictype/property-lowercase: New file.
40515         * modules/unictype/property-other-lowercase: New file.
40516         * modules/unictype/property-titlecase: New file.
40517         * modules/unictype/property-soft-dotted: New file.
40518         * modules/unictype/property-id-start: New file.
40519         * modules/unictype/property-other-id-start: New file.
40520         * modules/unictype/property-id-continue: New file.
40521         * modules/unictype/property-other-id-continue: New file.
40522         * modules/unictype/property-xid-start: New file.
40523         * modules/unictype/property-xid-continue: New file.
40524         * modules/unictype/property-pattern-white-space: New file.
40525         * modules/unictype/property-pattern-syntax: New file.
40526         * modules/unictype/property-join-control: New file.
40527         * modules/unictype/property-grapheme-base: New file.
40528         * modules/unictype/property-grapheme-extend: New file.
40529         * modules/unictype/property-other-grapheme-extend: New file.
40530         * modules/unictype/property-grapheme-link: New file.
40531         * modules/unictype/property-bidi-control: New file.
40532         * modules/unictype/property-bidi-left-to-right: New file.
40533         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
40534         * modules/unictype/property-bidi-arabic-right-to-left: New file.
40535         * modules/unictype/property-bidi-european-digit: New file.
40536         * modules/unictype/property-bidi-eur-num-separator: New file.
40537         * modules/unictype/property-bidi-eur-num-terminator: New file.
40538         * modules/unictype/property-bidi-arabic-digit: New file.
40539         * modules/unictype/property-bidi-common-separator: New file.
40540         * modules/unictype/property-bidi-block-separator: New file.
40541         * modules/unictype/property-bidi-segment-separator: New file.
40542         * modules/unictype/property-bidi-whitespace: New file.
40543         * modules/unictype/property-bidi-non-spacing-mark: New file.
40544         * modules/unictype/property-bidi-boundary-neutral: New file.
40545         * modules/unictype/property-bidi-pdf: New file.
40546         * modules/unictype/property-bidi-embedding-or-override: New file.
40547         * modules/unictype/property-bidi-other-neutral: New file.
40548         * modules/unictype/property-hex-digit: New file.
40549         * modules/unictype/property-ascii-hex-digit: New file.
40550         * modules/unictype/property-ideographic: New file.
40551         * modules/unictype/property-unified-ideograph: New file.
40552         * modules/unictype/property-radical: New file.
40553         * modules/unictype/property-ids-binary-operator: New file.
40554         * modules/unictype/property-ids-trinary-operator: New file.
40555         * modules/unictype/property-zero-width: New file.
40556         * modules/unictype/property-space: New file.
40557         * modules/unictype/property-non-break: New file.
40558         * modules/unictype/property-iso-control: New file.
40559         * modules/unictype/property-format-control: New file.
40560         * modules/unictype/property-dash: New file.
40561         * modules/unictype/property-hyphen: New file.
40562         * modules/unictype/property-punctuation: New file.
40563         * modules/unictype/property-line-separator: New file.
40564         * modules/unictype/property-paragraph-separator: New file.
40565         * modules/unictype/property-quotation-mark: New file.
40566         * modules/unictype/property-sentence-terminal: New file.
40567         * modules/unictype/property-terminal-punctuation: New file.
40568         * modules/unictype/property-currency-symbol: New file.
40569         * modules/unictype/property-math: New file.
40570         * modules/unictype/property-other-math: New file.
40571         * modules/unictype/property-paired-punctuation: New file.
40572         * modules/unictype/property-left-of-pair: New file.
40573         * modules/unictype/property-combining: New file.
40574         * modules/unictype/property-composite: New file.
40575         * modules/unictype/property-decimal-digit: New file.
40576         * modules/unictype/property-numeric: New file.
40577         * modules/unictype/property-diacritic: New file.
40578         * modules/unictype/property-extender: New file.
40579         * modules/unictype/property-ignorable-control: New file.
40580         * modules/unictype/property-test: New file.
40581         * modules/unictype/property-byname: New file.
40582         * modules/unictype/property-all: New file.
40583         * modules/unictype/scripts: New file.
40584         * modules/unictype/scripts-all: New file.
40585         * modules/unictype/block-of: New file.
40586         * modules/unictype/block-test: New file.
40587         * modules/unictype/block-list: New file.
40588         * modules/unictype/block-all: New file.
40589         * modules/unictype/syntax-c-whitespace: New file.
40590         * modules/unictype/syntax-java-whitespace: New file.
40591         * modules/unictype/syntax-c-ident: New file.
40592         * modules/unictype/syntax-java-ident: New file.
40593         * modules/unictype/ctype-alnum: New file.
40594         * modules/unictype/ctype-alpha: New file.
40595         * modules/unictype/ctype-cntrl: New file.
40596         * modules/unictype/ctype-digit: New file.
40597         * modules/unictype/ctype-graph: New file.
40598         * modules/unictype/ctype-lower: New file.
40599         * modules/unictype/ctype-print: New file.
40600         * modules/unictype/ctype-punct: New file.
40601         * modules/unictype/ctype-space: New file.
40602         * modules/unictype/ctype-upper: New file.
40603         * modules/unictype/ctype-xdigit: New file.
40604         * modules/unictype/ctype-blank: New file.
40605         * lib/unictype/bidi_byname.c: New file.
40606         * lib/unictype/bidi_name.c: New file.
40607         * lib/unictype/bidi_of.c: New file.
40608         * lib/unictype/bidi_test.c: New file.
40609         * lib/unictype/bitmap.h: New file.
40610         * lib/unictype/block_test.c: New file.
40611         * lib/unictype/blocks.c: New file.
40612         * lib/unictype/categ_C.c: New file.
40613         * lib/unictype/categ_Cc.c: New file.
40614         * lib/unictype/categ_Cf.c: New file.
40615         * lib/unictype/categ_Cn.c: New file.
40616         * lib/unictype/categ_Co.c: New file.
40617         * lib/unictype/categ_Cs.c: New file.
40618         * lib/unictype/categ_L.c: New file.
40619         * lib/unictype/categ_Ll.c: New file.
40620         * lib/unictype/categ_Lm.c: New file.
40621         * lib/unictype/categ_Lo.c: New file.
40622         * lib/unictype/categ_Lt.c: New file.
40623         * lib/unictype/categ_Lu.c: New file.
40624         * lib/unictype/categ_M.c: New file.
40625         * lib/unictype/categ_Mc.c: New file.
40626         * lib/unictype/categ_Me.c: New file.
40627         * lib/unictype/categ_Mn.c: New file.
40628         * lib/unictype/categ_N.c: New file.
40629         * lib/unictype/categ_Nd.c: New file.
40630         * lib/unictype/categ_Nl.c: New file.
40631         * lib/unictype/categ_No.c: New file.
40632         * lib/unictype/categ_P.c: New file.
40633         * lib/unictype/categ_Pc.c: New file.
40634         * lib/unictype/categ_Pd.c: New file.
40635         * lib/unictype/categ_Pe.c: New file.
40636         * lib/unictype/categ_Pf.c: New file.
40637         * lib/unictype/categ_Pi.c: New file.
40638         * lib/unictype/categ_Po.c: New file.
40639         * lib/unictype/categ_Ps.c: New file.
40640         * lib/unictype/categ_S.c: New file.
40641         * lib/unictype/categ_Sc.c: New file.
40642         * lib/unictype/categ_Sk.c: New file.
40643         * lib/unictype/categ_Sm.c: New file.
40644         * lib/unictype/categ_So.c: New file.
40645         * lib/unictype/categ_Z.c: New file.
40646         * lib/unictype/categ_Zl.c: New file.
40647         * lib/unictype/categ_Zp.c: New file.
40648         * lib/unictype/categ_Zs.c: New file.
40649         * lib/unictype/categ_and.c: New file.
40650         * lib/unictype/categ_and_not.c: New file.
40651         * lib/unictype/categ_byname.c: New file.
40652         * lib/unictype/categ_name.c: New file.
40653         * lib/unictype/categ_none.c: New file.
40654         * lib/unictype/categ_of.c: New file.
40655         * lib/unictype/categ_or.c: New file.
40656         * lib/unictype/categ_test.c: New file.
40657         * lib/unictype/combining.c: New file.
40658         * lib/unictype/ctype_alnum.c: New file.
40659         * lib/unictype/ctype_alpha.c: New file.
40660         * lib/unictype/ctype_blank.c: New file.
40661         * lib/unictype/ctype_cntrl.c: New file.
40662         * lib/unictype/ctype_digit.c: New file.
40663         * lib/unictype/ctype_graph.c: New file.
40664         * lib/unictype/ctype_lower.c: New file.
40665         * lib/unictype/ctype_print.c: New file.
40666         * lib/unictype/ctype_punct.c: New file.
40667         * lib/unictype/ctype_space.c: New file.
40668         * lib/unictype/ctype_upper.c: New file.
40669         * lib/unictype/ctype_xdigit.c: New file.
40670         * lib/unictype/decdigit.c: New file.
40671         * lib/unictype/digit.c: New file.
40672         * lib/unictype/identsyntaxmap.h: New file.
40673         * lib/unictype/mirror.c: New file.
40674         * lib/unictype/numeric.c: New file.
40675         * lib/unictype/pr_alphabetic.c: New file.
40676         * lib/unictype/pr_ascii_hex_digit.c: New file.
40677         * lib/unictype/pr_bidi_arabic_digit.c: New file.
40678         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
40679         * lib/unictype/pr_bidi_block_separator.c: New file.
40680         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
40681         * lib/unictype/pr_bidi_common_separator.c: New file.
40682         * lib/unictype/pr_bidi_control.c: New file.
40683         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
40684         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
40685         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
40686         * lib/unictype/pr_bidi_european_digit.c: New file.
40687         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
40688         * lib/unictype/pr_bidi_left_to_right.c: New file.
40689         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
40690         * lib/unictype/pr_bidi_other_neutral.c: New file.
40691         * lib/unictype/pr_bidi_pdf.c: New file.
40692         * lib/unictype/pr_bidi_segment_separator.c: New file.
40693         * lib/unictype/pr_bidi_whitespace.c: New file.
40694         * lib/unictype/pr_byname.c: New file.
40695         * lib/unictype/pr_byname.gperf: New file.
40696         * lib/unictype/pr_combining.c: New file.
40697         * lib/unictype/pr_composite.c: New file.
40698         * lib/unictype/pr_currency_symbol.c: New file.
40699         * lib/unictype/pr_dash.c: New file.
40700         * lib/unictype/pr_decimal_digit.c: New file.
40701         * lib/unictype/pr_default_ignorable_code_point.c: New file.
40702         * lib/unictype/pr_deprecated.c: New file.
40703         * lib/unictype/pr_diacritic.c: New file.
40704         * lib/unictype/pr_extender.c: New file.
40705         * lib/unictype/pr_format_control.c: New file.
40706         * lib/unictype/pr_grapheme_base.c: New file.
40707         * lib/unictype/pr_grapheme_extend.c: New file.
40708         * lib/unictype/pr_grapheme_link.c: New file.
40709         * lib/unictype/pr_hex_digit.c: New file.
40710         * lib/unictype/pr_hyphen.c: New file.
40711         * lib/unictype/pr_id_continue.c: New file.
40712         * lib/unictype/pr_id_start.c: New file.
40713         * lib/unictype/pr_ideographic.c: New file.
40714         * lib/unictype/pr_ids_binary_operator.c: New file.
40715         * lib/unictype/pr_ids_trinary_operator.c: New file.
40716         * lib/unictype/pr_ignorable_control.c: New file.
40717         * lib/unictype/pr_iso_control.c: New file.
40718         * lib/unictype/pr_join_control.c: New file.
40719         * lib/unictype/pr_left_of_pair.c: New file.
40720         * lib/unictype/pr_line_separator.c: New file.
40721         * lib/unictype/pr_logical_order_exception.c: New file.
40722         * lib/unictype/pr_lowercase.c: New file.
40723         * lib/unictype/pr_math.c: New file.
40724         * lib/unictype/pr_non_break.c: New file.
40725         * lib/unictype/pr_not_a_character.c: New file.
40726         * lib/unictype/pr_numeric.c: New file.
40727         * lib/unictype/pr_other_alphabetic.c: New file.
40728         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
40729         * lib/unictype/pr_other_grapheme_extend.c: New file.
40730         * lib/unictype/pr_other_id_continue.c: New file.
40731         * lib/unictype/pr_other_id_start.c: New file.
40732         * lib/unictype/pr_other_lowercase.c: New file.
40733         * lib/unictype/pr_other_math.c: New file.
40734         * lib/unictype/pr_other_uppercase.c: New file.
40735         * lib/unictype/pr_paired_punctuation.c: New file.
40736         * lib/unictype/pr_paragraph_separator.c: New file.
40737         * lib/unictype/pr_pattern_syntax.c: New file.
40738         * lib/unictype/pr_pattern_white_space.c: New file.
40739         * lib/unictype/pr_private_use.c: New file.
40740         * lib/unictype/pr_punctuation.c: New file.
40741         * lib/unictype/pr_quotation_mark.c: New file.
40742         * lib/unictype/pr_radical.c: New file.
40743         * lib/unictype/pr_sentence_terminal.c: New file.
40744         * lib/unictype/pr_soft_dotted.c: New file.
40745         * lib/unictype/pr_space.c: New file.
40746         * lib/unictype/pr_terminal_punctuation.c: New file.
40747         * lib/unictype/pr_test.c: New file.
40748         * lib/unictype/pr_titlecase.c: New file.
40749         * lib/unictype/pr_unassigned_code_value.c: New file.
40750         * lib/unictype/pr_unified_ideograph.c: New file.
40751         * lib/unictype/pr_uppercase.c: New file.
40752         * lib/unictype/pr_variation_selector.c: New file.
40753         * lib/unictype/pr_white_space.c: New file.
40754         * lib/unictype/pr_xid_continue.c: New file.
40755         * lib/unictype/pr_xid_start.c: New file.
40756         * lib/unictype/pr_zero_width.c: New file.
40757         * lib/unictype/scripts.c: New file.
40758         * lib/unictype/sy_c_ident.c: New file.
40759         * lib/unictype/sy_c_whitespace.c: New file.
40760         * lib/unictype/sy_java_ident.c: New file.
40761         * lib/unictype/sy_java_whitespace.c: New file.
40762
40763         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
40764         Unicode 5.0.0.
40765         * lib/unictype/blocks.h: Likewise.
40766         * lib/unictype/categ_C.h: Likewise.
40767         * lib/unictype/categ_Cc.h: Likewise.
40768         * lib/unictype/categ_Cf.h: Likewise.
40769         * lib/unictype/categ_Cn.h: Likewise.
40770         * lib/unictype/categ_Co.h: Likewise.
40771         * lib/unictype/categ_Cs.h: Likewise.
40772         * lib/unictype/categ_L.h: Likewise.
40773         * lib/unictype/categ_Ll.h: Likewise.
40774         * lib/unictype/categ_Lm.h: Likewise.
40775         * lib/unictype/categ_Lo.h: Likewise.
40776         * lib/unictype/categ_Lt.h: Likewise.
40777         * lib/unictype/categ_Lu.h: Likewise.
40778         * lib/unictype/categ_M.h: Likewise.
40779         * lib/unictype/categ_Mc.h: Likewise.
40780         * lib/unictype/categ_Me.h: Likewise.
40781         * lib/unictype/categ_Mn.h: Likewise.
40782         * lib/unictype/categ_N.h: Likewise.
40783         * lib/unictype/categ_Nd.h: Likewise.
40784         * lib/unictype/categ_Nl.h: Likewise.
40785         * lib/unictype/categ_No.h: Likewise.
40786         * lib/unictype/categ_P.h: Likewise.
40787         * lib/unictype/categ_Pc.h: Likewise.
40788         * lib/unictype/categ_Pd.h: Likewise.
40789         * lib/unictype/categ_Pe.h: Likewise.
40790         * lib/unictype/categ_Pf.h: Likewise.
40791         * lib/unictype/categ_Pi.h: Likewise.
40792         * lib/unictype/categ_Po.h: Likewise.
40793         * lib/unictype/categ_Ps.h: Likewise.
40794         * lib/unictype/categ_S.h: Likewise.
40795         * lib/unictype/categ_Sc.h: Likewise.
40796         * lib/unictype/categ_Sk.h: Likewise.
40797         * lib/unictype/categ_Sm.h: Likewise.
40798         * lib/unictype/categ_So.h: Likewise.
40799         * lib/unictype/categ_Z.h: Likewise.
40800         * lib/unictype/categ_Zl.h: Likewise.
40801         * lib/unictype/categ_Zp.h: Likewise.
40802         * lib/unictype/categ_Zs.h: Likewise.
40803         * lib/unictype/categ_of.h: Likewise.
40804         * lib/unictype/combining.h: Likewise.
40805         * lib/unictype/ctype_alnum.h: Likewise.
40806         * lib/unictype/ctype_alpha.h: Likewise.
40807         * lib/unictype/ctype_blank.h: Likewise.
40808         * lib/unictype/ctype_cntrl.h: Likewise.
40809         * lib/unictype/ctype_digit.h: Likewise.
40810         * lib/unictype/ctype_graph.h: Likewise.
40811         * lib/unictype/ctype_lower.h: Likewise.
40812         * lib/unictype/ctype_print.h: Likewise.
40813         * lib/unictype/ctype_punct.h: Likewise.
40814         * lib/unictype/ctype_space.h: Likewise.
40815         * lib/unictype/ctype_upper.h: Likewise.
40816         * lib/unictype/ctype_xdigit.h: Likewise.
40817         * lib/unictype/decdigit.h: Likewise.
40818         * lib/unictype/digit.h: Likewise.
40819         * lib/unictype/mirror.h: Likewise.
40820         * lib/unictype/numeric.h: Likewise.
40821         * lib/unictype/pr_alphabetic.h: Likewise.
40822         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
40823         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
40824         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
40825         * lib/unictype/pr_bidi_block_separator.h: Likewise.
40826         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
40827         * lib/unictype/pr_bidi_common_separator.h: Likewise.
40828         * lib/unictype/pr_bidi_control.h: Likewise.
40829         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
40830         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
40831         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
40832         * lib/unictype/pr_bidi_european_digit.h: Likewise.
40833         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
40834         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
40835         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
40836         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
40837         * lib/unictype/pr_bidi_pdf.h: Likewise.
40838         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
40839         * lib/unictype/pr_bidi_whitespace.h: Likewise.
40840         * lib/unictype/pr_combining.h: Likewise.
40841         * lib/unictype/pr_composite.h: Likewise.
40842         * lib/unictype/pr_currency_symbol.h: Likewise.
40843         * lib/unictype/pr_dash.h: Likewise.
40844         * lib/unictype/pr_decimal_digit.h: Likewise.
40845         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
40846         * lib/unictype/pr_deprecated.h: Likewise.
40847         * lib/unictype/pr_diacritic.h: Likewise.
40848         * lib/unictype/pr_extender.h: Likewise.
40849         * lib/unictype/pr_format_control.h: Likewise.
40850         * lib/unictype/pr_grapheme_base.h: Likewise.
40851         * lib/unictype/pr_grapheme_extend.h: Likewise.
40852         * lib/unictype/pr_grapheme_link.h: Likewise.
40853         * lib/unictype/pr_hex_digit.h: Likewise.
40854         * lib/unictype/pr_hyphen.h: Likewise.
40855         * lib/unictype/pr_id_continue.h: Likewise.
40856         * lib/unictype/pr_id_start.h: Likewise.
40857         * lib/unictype/pr_ideographic.h: Likewise.
40858         * lib/unictype/pr_ids_binary_operator.h: Likewise.
40859         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
40860         * lib/unictype/pr_ignorable_control.h: Likewise.
40861         * lib/unictype/pr_iso_control.h: Likewise.
40862         * lib/unictype/pr_join_control.h: Likewise.
40863         * lib/unictype/pr_left_of_pair.h: Likewise.
40864         * lib/unictype/pr_line_separator.h: Likewise.
40865         * lib/unictype/pr_logical_order_exception.h: Likewise.
40866         * lib/unictype/pr_lowercase.h: Likewise.
40867         * lib/unictype/pr_math.h: Likewise.
40868         * lib/unictype/pr_non_break.h: Likewise.
40869         * lib/unictype/pr_not_a_character.h: Likewise.
40870         * lib/unictype/pr_numeric.h: Likewise.
40871         * lib/unictype/pr_other_alphabetic.h: Likewise.
40872         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
40873         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
40874         * lib/unictype/pr_other_id_continue.h: Likewise.
40875         * lib/unictype/pr_other_id_start.h: Likewise.
40876         * lib/unictype/pr_other_lowercase.h: Likewise.
40877         * lib/unictype/pr_other_math.h: Likewise.
40878         * lib/unictype/pr_other_uppercase.h: Likewise.
40879         * lib/unictype/pr_paired_punctuation.h: Likewise.
40880         * lib/unictype/pr_paragraph_separator.h: Likewise.
40881         * lib/unictype/pr_pattern_syntax.h: Likewise.
40882         * lib/unictype/pr_pattern_white_space.h: Likewise.
40883         * lib/unictype/pr_private_use.h: Likewise.
40884         * lib/unictype/pr_punctuation.h: Likewise.
40885         * lib/unictype/pr_quotation_mark.h: Likewise.
40886         * lib/unictype/pr_radical.h: Likewise.
40887         * lib/unictype/pr_sentence_terminal.h: Likewise.
40888         * lib/unictype/pr_soft_dotted.h: Likewise.
40889         * lib/unictype/pr_space.h: Likewise.
40890         * lib/unictype/pr_terminal_punctuation.h: Likewise.
40891         * lib/unictype/pr_titlecase.h: Likewise.
40892         * lib/unictype/pr_unassigned_code_value.h: Likewise.
40893         * lib/unictype/pr_unified_ideograph.h: Likewise.
40894         * lib/unictype/pr_uppercase.h: Likewise.
40895         * lib/unictype/pr_variation_selector.h: Likewise.
40896         * lib/unictype/pr_white_space.h: Likewise.
40897         * lib/unictype/pr_xid_continue.h: Likewise.
40898         * lib/unictype/pr_xid_start.h: Likewise.
40899         * lib/unictype/pr_zero_width.h: Likewise.
40900         * lib/unictype/scripts.h: Likewise.
40901         * lib/unictype/scripts_byname.gperf: Likewise.
40902         * lib/unictype/sy_c_ident.h: Likewise.
40903         * lib/unictype/sy_c_whitespace.h: Likewise.
40904         * lib/unictype/sy_java_ident.h: Likewise.
40905         * lib/unictype/sy_java_whitespace.h: Likewise.
40906
40907         * lib/unictype/Makefile: New file.
40908         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
40909         glibc.
40910         * lib/unictype/3level.h: New file, copied from glibc.
40911         * lib/unictype/3levelbit.h: New file.
40912
40913 2007-11-11  Bruno Haible  <bruno@clisp.org>
40914
40915         * modules/gperf: New file.
40916         * modules/iconv_open (Depends-on): Add it.
40917         (Makefile.am): Remove the GPERF definition.
40918
40919 2007-11-11  Bruno Haible  <bruno@clisp.org>
40920
40921         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
40922         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
40923
40924 2007-11-11  Bruno Haible  <bruno@clisp.org>
40925
40926         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
40927         (usage): Remove function.
40928
40929 2007-11-11  Bruno Haible  <bruno@clisp.org>
40930
40931         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
40932         gl_FUNC_CEILF_LIBS.
40933         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
40934         gl_FUNC_CEIL_LIBS.
40935         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
40936         gl_FUNC_CEILL_LIBS.
40937         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
40938         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
40939         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
40940
40941 2007-11-11  Bruno Haible  <bruno@clisp.org>
40942
40943         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
40944         roundf were declared but do not exist on functions.
40945         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
40946         roundl were declared but do not exist on functions.
40947         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
40948         HAVE_FLOORL_AND_CEILL, respectively.
40949         Needed for Sun C on Solaris 10.
40950
40951 2007-11-11  Bruno Haible  <bruno@clisp.org>
40952
40953         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
40954         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
40955         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
40956         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
40957         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
40958         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
40959         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
40960         HAVE_DECL_ROUNDF.
40961         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
40962         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
40963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
40964         of HAVE_DECL_ROUND*.
40965         * modules/math (Makefile.am): Update.
40966
40967 2007-11-10  Bruno Haible  <bruno@clisp.org>
40968
40969         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
40970         ptrdiff_t as m4/intl.m4.
40971
40972 2007-11-10  Jim Meyering  <meyering@redhat.com>
40973
40974         Avoid link failure for the argmatch test.
40975         * tests/test-argmatch.c (usage): Define function to avoid a link
40976         failure: argmatch_die requires a usage function.
40977
40978 2007-11-09  Bruno Haible  <bruno@clisp.org>
40979
40980         * doc/functions/snprintf.texi: Mention BeOS deficiency.
40981         * doc/functions/vsnprintf.texi: Likewise.
40982         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
40983         with a size argument < 2.
40984
40985 2007-11-09  Bruno Haible  <bruno@clisp.org>
40986
40987         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
40988         buffer. Fixes an inefficiency introduced on 2007-11-03.
40989
40990 2007-11-09  Bruno Haible  <bruno@clisp.org>
40991
40992         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
40993         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
40994
40995 2007-11-08  Jim Meyering  <meyering@redhat.com>
40996
40997         Change cache variable name prefix "jm_" to "gl_" everywhere.
40998         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
40999         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
41000         * m4/uptime.m4: s/gl_/jm_/
41001
41002 2007-11-07  Bruno Haible  <bruno@clisp.org>
41003
41004         Update to GNU gettext 0.17.
41005         * m4/intl.m4: Update to GNU gettext 0.17.
41006         * m4/po.m4: Likewise.
41007         * modules/gettext (Files): Remove m4/ulonglong.m4.
41008         (configure.ac): Require gettext infrastructure from version 0.17.
41009
41010 2007-11-06  Bruno Haible  <bruno@clisp.org>
41011
41012         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
41013         symbolic values are not defined in a public header.
41014         * lib/freadable.c (freadable) [QNX]: Likewise.
41015         * lib/freadahead.c (freadahead) [QNX]: Likewise.
41016         * lib/freading.c (freading) [QNX]: Likewise.
41017         * lib/fseterr.c (fseterr) [QNX]: Likewise.
41018         * lib/fwritable.c (fwritable) [QNX]: Likewise.
41019         * lib/fwriting.c (fwriting) [QNX]: Likewise.
41020         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
41021         Reported by Alain Magloire.
41022
41023         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
41024
41025 2007-11-05  Bruno Haible  <bruno@clisp.org>
41026
41027         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
41028         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
41029         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
41030         Reported by Eric Blake.
41031
41032 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41033             Bruno Haible  <bruno@clisp.org>
41034
41035         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
41036         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
41037         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
41038         (malloc): Undefine also before including <stdlib.h>.
41039         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
41040         Needed on OSF/1 4.0.
41041
41042 2007-11-05  Jim Meyering  <meyering@redhat.com>
41043
41044         git-version-gen: sync from coreutils.
41045         * build-aux/git-version-gen: Add comments.
41046         Change the first '-' to '.' in the snapshot version string,
41047         e.g., 6.9-377-08144 -> 6.9.377-08144
41048         Remove first parameter.
41049         Don't declare a version "-dirty" merely because a time
41050         stamp has changed.
41051
41052 2007-11-04  Bruno Haible  <bruno@clisp.org>
41053
41054         * lib/lock.h: Protect all macro definitions containing an 'if'
41055         statement through a "do { ... } while (0)".
41056         * lib/tls.h: Likewise.
41057
41058 2007-11-04  Bruno Haible  <bruno@clisp.org>
41059
41060         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
41061
41062 2007-11-04  Bruno Haible  <bruno@clisp.org>
41063
41064         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
41065         * modules/fprintf-posix (Depends-on): Add nocrash.
41066         * modules/snprintf-posix (Depends-on): Likewise.
41067         * modules/sprintf-posix (Depends-on): Likewise.
41068         * modules/vasnprintf-posix (Depends-on): Likewise.
41069         * modules/vasprintf-posix (Depends-on): Likewise.
41070         * modules/vfprintf-posix (Depends-on): Likewise.
41071         * modules/vsnprintf-posix (Depends-on): Likewise.
41072         * modules/vsprintf-posix (Depends-on): Likewise.
41073         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41074         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41075         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41076         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41077         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41078         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41079         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41080
41081 2007-11-04  Bruno Haible  <bruno@clisp.org>
41082
41083         * modules/nocrash: New file.
41084         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
41085         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
41086
41087 2007-11-04  Bruno Haible  <bruno@clisp.org>
41088
41089         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
41090         precision handling.
41091         * tests/test-vasprintf-posix.c (test_function): Likewise.
41092         * tests/test-snprintf-posix.h (test_function): Likewise.
41093         * tests/test-sprintf-posix.h (test_function): Likewise.
41094
41095         Fix *printf behaviour for large precisions on mingw and BeOS.
41096         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
41097         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
41098         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
41099         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41100         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41101         gl_PRINTF_PRECISION and test its result. Invoke
41102         gl_PREREQ_VASNPRINTF_PRECISION.
41103         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41104         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41105         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41106         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41107         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41108         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41109         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41110         * doc/functions/fprintf.texi: Update.
41111         * doc/functions/printf.texi: Update.
41112         * doc/functions/snprintf.texi: Update.
41113         * doc/functions/sprintf.texi: Update.
41114         * doc/functions/vfprintf.texi: Update.
41115         * doc/functions/vprintf.texi: Update.
41116         * doc/functions/vsnprintf.texi: Update.
41117         * doc/functions/vsprintf.texi: Update.
41118
41119 2007-11-04  Bruno Haible  <bruno@clisp.org>
41120
41121         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
41122
41123 2007-11-04  Bruno Haible  <bruno@clisp.org>
41124
41125         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
41126         Reported by Sylvain Beucler <beuc@gnu.org>.
41127
41128 2007-11-03  Bruno Haible  <bruno@clisp.org>
41129
41130         * tests/test-fprintf-posix2.sh: New file.
41131         * tests/test-fprintf-posix2.c: New file.
41132         * modules/fprintf-posix-tests (Files): Add them.
41133         (TESTS): Add test-fprintf-posix2.sh.
41134         (configure.ac): Check for getrlimit and setrlimit.
41135         (check_PROGRAMS): Add test-fprintf-posix2.
41136
41137         * tests/test-printf-posix2.sh: New file.
41138         * tests/test-printf-posix2.c: New file.
41139         * modules/printf-posix-tests (Files): Add them.
41140         (TESTS): Add test-printf-posix2.sh.
41141         (configure.ac): Check for getrlimit and setrlimit.
41142         (check_PROGRAMS): Add test-printf-posix2.
41143
41144         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
41145         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
41146         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
41147         (decode_double): New function, copied from decode_long_double.
41148         (scale10_round_decimal_decoded): New function, extracted from
41149         scale10_round_decimal_long_double.
41150         (scale10_round_decimal_long_double): Use it.
41151         (scale10_round_decimal_double): New function.
41152         (floorlog10): New function.
41153         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
41154         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
41155         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41156         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41157         gl_PRINTF_ENOMEM and test its result. Invoke
41158         gl_PREREQ_VASNPRINTF_ENOMEM.
41159         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41160         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41161         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41162         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41163         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41164         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41165         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41166         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
41167         * modules/snprintf-posix (Depends-on): Likewise.
41168         * modules/sprintf-posix (Depends-on): Likewise.
41169         * modules/vasnprintf-posix (Depends-on): Likewise.
41170         * modules/vasprintf-posix (Depends-on): Likewise.
41171         * modules/vfprintf-posix (Depends-on): Likewise.
41172         * modules/vsnprintf-posix (Depends-on): Likewise.
41173         * modules/vsprintf-posix (Depends-on): Likewise.
41174         * doc/functions/fprintf.texi: Update.
41175         * doc/functions/printf.texi: Update.
41176         * doc/functions/snprintf.texi: Update.
41177         * doc/functions/sprintf.texi: Update.
41178         * doc/functions/vfprintf.texi: Update.
41179         * doc/functions/vprintf.texi: Update.
41180         * doc/functions/vsnprintf.texi: Update.
41181         * doc/functions/vsprintf.texi: Update.
41182
41183 2007-11-03  Bruno Haible  <bruno@clisp.org>
41184
41185         * modules/frexp-nolibm-tests: New file.
41186
41187         * modules/frexp-nolibm: New file.
41188         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
41189
41190 2007-11-03  Bruno Haible  <bruno@clisp.org>
41191
41192         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
41193         value is C99 compliant.
41194         Needed for OSF/1 5.1.
41195
41196 2007-11-03  Bruno Haible  <bruno@clisp.org>
41197
41198         Fix out-of-memory handling of vasnprintf.
41199         * lib/printf-parse.c: Include <errno.h>.
41200         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
41201         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
41202         is already set.
41203
41204 2007-11-02  Eric Blake  <ebb9@byu.net>
41205
41206         Fix tests on cygwin.
41207         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
41208
41209 2007-11-01  Bruno Haible  <bruno@clisp.org>
41210
41211         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
41212         warning.
41213         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
41214         needed for POSIX compatibility.
41215
41216 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41217
41218         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
41219         for compatibility with GNU.
41220
41221 2007-11-01  Bruno Haible  <bruno@clisp.org>
41222
41223         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
41224         (putenv): Renamed from rpl_putenv. Change argument type from
41225         'const char *' to 'char *'.
41226         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
41227         of defining putenv in config.h, just set REPLACE_PUTENV.
41228         * modules/putenv (Depends-on): Add stdlib.
41229         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41230         (Include): Use <stdlib.h>.
41231         * lib/stdlib.in.h (putenv): New declaration.
41232         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
41233         REPLACE_PUTENV.
41234         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
41235         REPLACE_PUTENV.
41236         Needed for MacOS X 10.5.0.
41237         Reported by Peter O'Gorman <peter@pogma.com>.
41238
41239 2007-11-01  Jim Meyering  <meyering@redhat.com>
41240
41241         Treat an empty date string exactly like "0".
41242         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
41243         if the remaining date string (to be parsed) is empty, use "0".
41244         Reported by Mischa Molhoek and discussed in this thread:
41245         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
41246
41247 2007-10-31  Bruno Haible  <bruno@clisp.org>
41248
41249         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
41250         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
41251         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
41252         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
41253         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
41254         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
41255
41256 2007-10-31  Bruno Haible  <bruno@clisp.org>
41257
41258         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
41259         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
41260         (AC_TYPE_LONG_LONG_INT): Use it.
41261         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
41262         it as well.
41263         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
41264         to m4/longlong.m4.
41265         * modules/stdint (Files): Remove m4/ulonglong.m4.
41266         * modules/strtoull (Files): Use m4/longlong.m4 instead of
41267         m4/ulonglong.m4.
41268         * modules/strtoumax (Files): Likewise.
41269
41270 2007-10-30  Bruno Haible  <bruno@clisp.org>
41271
41272         * modules/xvasprintf-posix: New file.
41273         Suggested by Eric Blake.
41274
41275 2007-10-30  Bruno Haible  <bruno@clisp.org>
41276
41277         * modules/xprintf-posix-tests: New file.
41278         * tests/test-xprintf-posix.sh: New file.
41279         * tests/test-xprintf-posix.c: New file.
41280         * tests/test-xfprintf-posix.c: New file.
41281
41282         * modules/xprintf-posix: New file.
41283
41284 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41285
41286         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
41287         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
41288         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
41289
41290 2007-10-29  Bruno Haible  <bruno@clisp.org>
41291
41292         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
41293         contain the special marker '_cv_'.
41294         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41295         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41296         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41297         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
41298         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41299         Reported by Ralf Wildenhues.
41300
41301 2007-10-29  Bruno Haible  <bruno@clisp.org>
41302
41303         * gnulib-tool (func_import): When --lgpl is not specified, set
41304         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
41305         GPLv3.
41306         Reported by Simon Josefsson.
41307
41308 2007-10-28  Bruno Haible  <bruno@clisp.org>
41309
41310         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
41311         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
41312         HAVE_DECL_ISFINITE.
41313         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
41314         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
41315         HAVE_DECL_ISFINITE.
41316
41317 2007-10-28  Bruno Haible  <bruno@clisp.org>
41318
41319         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
41320         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
41321
41322 2007-10-28  Bruno Haible  <bruno@clisp.org>
41323
41324         Fix link errors with Sun C 5.0 on Solaris 10.
41325         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
41326         function is declared but not present in the compiler's libm.
41327         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
41328         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
41329         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
41330         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
41331         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
41332         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
41333         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
41334         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
41335         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
41336         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
41337         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
41338         HAVE_DECL_FLOORL.
41339
41340 2007-10-28  Bruno Haible  <bruno@clisp.org>
41341
41342         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
41343         gl_FUNC_FLOORL. Cache the result.
41344         (gl_FUNC_FLOORL): Use it.
41345         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
41346         gl_FUNC_CEILL. Cache the result.
41347         (gl_FUNC_CEILL): Use it.
41348
41349         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
41350         gl_FUNC_FLOOR. Cache the result.
41351         (gl_FUNC_FLOOR): Use it.
41352         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
41353         gl_FUNC_CEIL. Cache the result.
41354         (gl_FUNC_CEIL): Use it.
41355
41356         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
41357         gl_FUNC_FLOORF. Cache the result.
41358         (gl_FUNC_FLOORF): Use it.
41359         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
41360         gl_FUNC_CEILF. Cache the result.
41361         (gl_FUNC_CEILF): Use it.
41362
41363 2007-10-28  Bruno Haible  <bruno@clisp.org>
41364
41365         * gnulib-tool: Allow specifying the LGPL version number through
41366         --lgpl=2 or --lgpl=3.
41367         (func_usage): Document --lgpl with argument.
41368         Handle --lgpl=... arguments.
41369         (func_import): Recognize also gl_LGPL calls with an argument. When
41370         --lgpl=2 is used and the module's license is just LGPL, report an
41371         error. Set sed_transform_lib_file according to the lgpl variable. In
41372         the generated files, use --lgpl or gl_LGPL invocations with argument,
41373         if necessary.
41374         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
41375         an LGPv2+ license.
41376         * doc/gnulib-tool.texi (Modified imports): Update explanation of
41377         gl_LGPL macro.
41378
41379 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41380             Bruno Haible  <bruno@clisp.org>
41381
41382         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
41383         (u16_uctomb_aux): Likewise.
41384         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
41385         !HAVE_INLINE.
41386         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
41387
41388 2007-10-28  Bruno Haible  <bruno@clisp.org>
41389
41390         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
41391         Invoke AM_GETTEXT_OPTION if it exists.
41392         * modules/vasprintf: Likewise.
41393         * modules/verror: Likewise.
41394         * modules/xprintf: Likewise.
41395         * modules/xvasprintf: Likewise.
41396
41397 2007-10-27  Ben Pfaff  <blp@gnu.org>
41398
41399         * lib/math.in.h: Define isfinite macro and prototypes for
41400         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
41401         implementations.
41402         * m4/math_h.m4: New substitutions for isfinite module.
41403         * lib/isfinite.c: New file.
41404         * m4/isfinite.m4: New file.
41405         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
41406         * modules/isfinite: New file.
41407         * modules/isfinite-tests: New file.
41408         * tests/tests-isfinite.c: New file.
41409         * doc/functions/isfinite.texi: Mention isfinite module.
41410         * MODULES.html.sh: Mention new module.
41411
41412 2007-10-27  Ben Pfaff  <blp@gnu.org>
41413
41414         Ralf Wildenhues reported that Tru64 4.0D declares the round
41415         functions but does not have definitions.
41416         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
41417         cannot be found in any library, set the output variable to
41418         "missing" instead of "".
41419         * m4/round.m4: Also use our substitute if we cannot find round in
41420         any library, even if it is declared.
41421         * m4/roundf.m4: Likewise for roundf.
41422         * m4/roundl.m4: Likewise for roundl.
41423         * lib/math.in.h: Undefine roundf, round, roundl before defining
41424         their replacements, to allow for hypothetical systems where these
41425         may be defined as macros but not available in libraries.
41426
41427 2007-10-27  Bruno Haible  <bruno@clisp.org>
41428
41429         * doc/gnulib.texi: Invoke @firstparagraphindent.
41430         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
41431         changes in gnulib.
41432         (Source changes): New section.
41433
41434 2007-10-26  Bruno Haible  <bruno@clisp.org>
41435
41436         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
41437         borrowed from autoconf.
41438
41439 2007-10-26  Bruno Haible  <bruno@clisp.org>
41440
41441         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
41442         strerror returned the empty string. Needed on HP-UX 11.00.
41443
41444 2007-10-24  Micah Cowan  <micah@cowan.name>
41445
41446         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
41447         * build-aux/bootstrap: Remove support for now-unnecessary option,
41448         --cvs-user, and envvars CVS_USER, CVS_RSH.
41449
41450 2007-10-24  Jim Meyering  <meyering@redhat.com>
41451
41452         Avoid diagnostics from sha1sum when there is no cached checksum.
41453         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
41454         if the po.s1 file hasn't been created yet.
41455
41456         * build-aux/bootstrap: Sync from coreutils:
41457         2007-10-24  Jim Meyering  <meyering@redhat.com>
41458         Get gnulib from the git repository, not from an obsolete cvs one.
41459         * build-aux/bootstrap: Suggestion from Micah Cowan.
41460         2007-10-04  Jim Meyering  <jim@meyering.net>
41461         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
41462         (update_po_files): Work also when there are no .po files in po/.
41463
41464 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41465
41466         * README: Append ".git" to git and cg examples.
41467         Problem reported by Benoit Sigoure.
41468
41469 2007-10-23  Micah Cowan  <micah@cowan.name>
41470
41471         * users.txt: Add wget.
41472
41473 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41474
41475         Fix linking of some unistdio tests on FreeBSD.
41476         * modules/unistdio/u16-vsnprintf-tests
41477         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
41478         * modules/unistdio/u16-vsprintf-tests
41479         (test_u16_vsnprintf1_LDADD): Likewise.
41480         * modules/unistdio/u32-vsnprintf-tests
41481         (test_u32_vsnprintf1_LDADD): Likewise.
41482         * modules/unistdio/u32-vsprintf-tests
41483         (test_u32_vsprintf1_LDADD): Likewise.
41484         * modules/unistdio/u8-vsnprintf-tests
41485         (test_u8_vsnprintf1_LDADD): Likewise.
41486         * modules/unistdio/u8-vsprintf-tests
41487         (test_u8_vsprintf1_LDADD): Likewise.
41488         * modules/unistdio/ulc-vsnprintf-tests
41489         (test_ulc_vsnprintf1_LDADD): Likewise.
41490         * modules/unistdio/ulc-vsprintf-tests
41491         (test_ulc_vsprintf1_LDADD): Likewise.
41492
41493         Fix linking of some uniconv tests on FreeBSD.
41494         * modules/uniconv/u16-conv-from-enc-tests
41495         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
41496         * modules/uniconv/u16-conv-to-enc-tests
41497         (test_u16_conv_to_enc_LDADD): Likewise.
41498         * modules/uniconv/u16-strconv-from-enc-tests
41499         (test_u16_strconv_from_enc_LDADD): Likewise.
41500         * modules/uniconv/u16-strconv-to-enc-tests
41501         (test_u16_strconv_to_enc_LDADD): Likewise.
41502         * modules/uniconv/u32-conv-from-enc-tests
41503         (test_u32_conv_from_enc_LDADD): Likewise.
41504         * modules/uniconv/u32-conv-to-enc-tests
41505         (test_u32_conv_to_enc_LDADD): Likewise.
41506         * modules/uniconv/u32-strconv-from-enc-tests
41507         (test_u32_strconv_from_enc_LDADD): Likewise.
41508         * modules/uniconv/u32-strconv-to-enc-tests
41509         (test_u32_strconv_to_enc_LDADD): Likewise.
41510         * modules/uniconv/u8-conv-from-enc-tests
41511         (test_u8_conv_from_enc_LDADD): Likewise.
41512         * modules/uniconv/u8-conv-to-enc-tests
41513         (test_u8_conv_to_enc_LDADD): Likewise.
41514         * modules/uniconv/u8-strconv-from-enc-tests
41515         (test_u8_strconv_from_enc_LDADD): Likewise.
41516         * modules/uniconv/u8-strconv-to-enc-tests
41517         (test_u8_strconv_to_enc_LDADD): Likewise.
41518
41519 2007-10-22  Bruno Haible  <bruno@clisp.org>
41520
41521         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
41522         size.
41523
41524 2007-10-22  Eric Blake  <ebb9@byu.net>
41525
41526         Tweak x*printf documentation.
41527         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
41528         variable name and comments.
41529         Suggested by Bruno Haible.
41530
41531 2007-10-22  Bruno Haible  <bruno@clisp.org>
41532
41533         * lib/acl.c (copy_acl): Fix file name in comment.
41534
41535 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
41536
41537         Fix Tru64 problem with stdbool.h.
41538         * lib/stdbool.in.h (false, true):
41539         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
41540         Don't declare as an enum in this situation; it runs afoul of Tru64.
41541         Problem reported by Steven M. Schweda in
41542         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
41543
41544 2007-10-22  Eric Blake  <ebb9@byu.net>
41545
41546         Also wrap vf?printf.
41547         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
41548         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
41549         (xvprintf, xvfprintf): New functions.
41550
41551 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41552
41553         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
41554         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
41555
41556         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
41557         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
41558
41559 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
41560
41561         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
41562         by Bruno Haible.
41563
41564 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41565
41566         * lib/getloadavg.c
41567         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
41568         Undef `sys' after including sys/table.h, for Tru64 4.0D.
41569
41570         * tests/test-i-ring.c: Work for C89.
41571
41572 2007-10-22  Bruno Haible  <bruno@clisp.org>
41573
41574         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
41575         -1u, in preprocessor expression, so that we don't test for the bug
41576         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
41577         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
41578
41579 2007-10-22  Eric Blake  <ebb9@byu.net>
41580
41581         * tests/test-yesno.sh: Silence stderr during test.
41582
41583 2007-10-22  Simon Josefsson  <simon@josefsson.org>
41584
41585         * modules/crypto/gc-camellia: New file.
41586
41587         * m4/gc-camellia.m4: New file.
41588
41589         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
41590
41591         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
41592
41593 2007-10-22  Simon Josefsson  <simon@josefsson.org>
41594
41595         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
41596         --help to stdout.  Reported by sms@antinode.org (Steven
41597         M. Schweda).
41598
41599 2007-10-22  Simon Josefsson  <simon@josefsson.org>
41600
41601         * users.txt: Fix link to libksba.
41602
41603 2007-10-21  Ben Pfaff  <blp@gnu.org>
41604
41605         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
41606         round.c roundf implementation that depends on floorf and ceilf to
41607         be tested unconditionally.
41608
41609 2007-10-21  Ben Pfaff  <blp@gnu.org>
41610
41611         * m4/check-libm-func.m4: Removed.
41612         * m4/check-math-lib.m4: New file.
41613         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
41614         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
41615         definition and lack of AC_LIBOBJ([roundf]).
41616         * m4/roundl.m4: Ditto, and similarly for roundl.
41617         * modules/round: Reference new m4 file.
41618         * modules/roundf: Ditto.
41619         * modules/roundl: Ditto.
41620         * tests/test-round2.c (main): Use ROUND instead of round.
41621         Bug report from Bruno Haible.
41622
41623 2007-10-21  Bruno Haible  <bruno@clisp.org>
41624
41625         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
41626         context.
41627
41628 2007-10-21  Bruno Haible  <bruno@clisp.org>
41629
41630         * tests/test-wcwidth.c (main): Allow negative result for some control
41631         characters.
41632
41633         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
41634         Needed on OSF/1 5.1.
41635
41636 2007-10-21  Bruno Haible  <bruno@clisp.org>
41637
41638         * tests/test-floorf1.c: Include isnanf.h.
41639         (main): Use isnanf() instead of isnan().
41640         * tests/test-ceilf1.c: Include isnanf.h.
41641         (main): Use isnanf() instead of isnan().
41642         * tests/test-truncf1.c: Include isnanf.h.
41643         (main): Use isnanf() instead of isnan().
41644         * tests/test-roundf1.c: Include isnanf.h.
41645         (main): Use isnanf() instead of isnan().
41646
41647 2007-10-21  Eric Blake  <ebb9@byu.net>
41648
41649         * users.txt: Update URL for m4.
41650
41651 2007-10-21  Bruno Haible  <bruno@clisp.org>
41652
41653         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
41654
41655 2007-10-21  Bruno Haible  <bruno@clisp.org>
41656
41657         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
41658         Git's management files if the CVS files are not present.
41659
41660 2007-10-20  Bruno Haible  <bruno@clisp.org>
41661
41662         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
41663         gcc-3.4.x.
41664
41665 2007-10-20  Ben Pfaff  <blp@gnu.org>
41666
41667         * lib/math.in.h: Declare round, roundf, roundl if we are providing
41668         implementations.
41669         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
41670         * lib/round.c: New file.
41671         * lib/roundf.c: New file.
41672         * lib/roundl.c: New file.
41673         * m4/round.m4: New file.
41674         * m4/roundf.m4: New file.
41675         * m4/roundl.m4: New file.
41676         * m4/check-libm-func-m4: New file.
41677         * modules/math: Replace round, roundf, roundl related @VARS@ in
41678         math.in.h.
41679         * modules/round: New file.
41680         * modules/round-tests: New file.
41681         * modules/roundf: New file.
41682         * modules/roundf-tests: New file.
41683         * modules/roundl: New file.
41684         * modules/roundl-tests: New file.
41685         * tests/test-round1.c: New file.
41686         * tests/test-round2.c: New file.
41687         * tests/test-roundf1.c: New file.
41688         * tests/test-roundf2.c: New file.
41689         * tests/test-roundl.c: New file.
41690         * doc/functions/round.texi: Mention round module.
41691         * doc/functions/roundf.texi: Mention roundf module.
41692         * doc/functions/roundl.texi: Mention roundl module.
41693         * MODULES.html.sh: Mention new modules.
41694         Thanks to Bruno Haible for suggestions.
41695
41696 2007-10-20  Jim Meyering  <meyering@redhat.com>
41697
41698         * lib/xprintf.c: Include <config.h> unconditionally.
41699
41700         Change xprintf's license to GPL.
41701         * modules/xprintf (License): s/LGPL/GPL/, since this module
41702         depends on modules (exit and exitfail) which are GPL.
41703         Suggestion from Bruno Haible.
41704
41705         xprintf fixes.
41706         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
41707         Use a clearer diagnostic.
41708         Patch from Bruno Haible.
41709
41710 2007-10-20  Bruno Haible  <bruno@clisp.org>
41711
41712         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
41713         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
41714         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41715
41716 2007-10-20  Bruno Haible  <bruno@clisp.org>
41717
41718         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
41719         precision in the comparison result > x - 1 or similar.
41720         * tests/test-ceilf2.c (correct_result_p): Likewise.
41721         * tests/test-truncf2.c (correct_result_p): Likewise.
41722         * tests/test-trunc2.c (correct_result_p): Likewise.
41723         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41724
41725 2007-10-20  Bruno Haible  <bruno@clisp.org>
41726
41727         * modules/ceil: New file.
41728         * m4/ceil.m4: New file.
41729         * doc/functions/ceil.texi: Mention the 'ceil' module.
41730
41731 2007-10-20  Bruno Haible  <bruno@clisp.org>
41732
41733         * modules/floor: New file.
41734         * m4/floor.m4: New file.
41735         * doc/functions/floor.texi: Mention the 'floor' module.
41736
41737 2007-10-20  Bruno Haible  <bruno@clisp.org>
41738
41739         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
41740         of %a.
41741         * modules/floorf-tests (Depends-on): Likewise.
41742         * modules/truncf-tests (Depends-on): Likewise.
41743         * modules/trunc-tests (Depends-on): Likewise.
41744         Reported by Ben Pfaff.
41745
41746 2007-10-19  Jim Meyering  <meyering@redhat.com>
41747
41748         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
41749         Don't bother testing specific errno values.  Just test ferror.
41750
41751         New module: xprintf
41752         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
41753
41754 2007-10-19  Bruno Haible  <bruno@clisp.org>
41755
41756         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
41757         syntax.
41758         * modules/javaexec (Makefile.am): Likewise.
41759         * modules/relocatable-prog (Makefile.am): Likewise.
41760         Suggested by Jim Meyering.
41761
41762 2007-10-18  Bruno Haible  <bruno@clisp.org>
41763
41764         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
41765         Reported by Jim Meyering.
41766
41767 2007-10-18  Eric Blake  <ebb9@byu.net>
41768
41769         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
41770
41771 2007-10-18  Bruno Haible  <bruno@clisp.org>
41772
41773         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
41774         the format string into writable memory. Needed in Fortify conditions.
41775
41776 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
41777             Bruno Haible  <bruno@clisp.org>
41778
41779         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
41780         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
41781         * modules/trim (Depends-on): Add mbchar.
41782         (configure.ac): Add gl_FUNC_MBRTOWC.
41783         (Makefile.am): Augment lib_SOURCES.
41784
41785 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
41786
41787         Modify glob.c to use fstatat and dirfd, to simplify it.
41788         Suggested by Eric Blake.
41789         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
41790         Don't include <stdbool.h>; not used.
41791         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
41792         (link_exists_p): Simplify implementation, since we can now assume
41793         dirfd and fstatat.
41794         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
41795
41796 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41797
41798         * gnulib-tool (func_get_dependencies): Fix sed script to
41799         match only tests.
41800
41801 2007-10-17  Bruno Haible  <bruno@clisp.org>
41802
41803         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
41804         allow locale names without encoding suffix.
41805         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
41806         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41807
41808 2007-10-16  Bruno Haible  <bruno@clisp.org>
41809
41810         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
41811         * lib/getgroups.c (getgroups): Likewise.
41812         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
41813
41814 2007-10-16  Bruno Haible  <bruno@clisp.org>
41815
41816         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
41817         * modules/malloc-posix (License): Likewise.
41818         * modules/realloc-posix (License): Likewise.
41819         * modules/calloc-posix (License): Likewise.
41820         * modules/intprops (License): Change from GPL to LGPL, with
41821         Paul Eggert's approval.
41822
41823 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41824
41825         Merge glibc changes into lib/glob.c.
41826
41827         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
41828         2007-10-15 04:59:03 UTC.  Here are the changes:
41829
41830         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
41831
41832         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
41833
41834         * lib/glob.c: Add some branch prediction throughout.
41835
41836         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
41837
41838         [BZ #5103]
41839         * lib/glob.c (glob): Recognize patterns starting \/.
41840
41841         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
41842
41843         [BZ #3996]
41844         * lib/glob.c (attribute_hidden): Define if not defined.
41845         (glob): Unescape dirname, filename or username when needed and not
41846         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
41847         is NULL.  Handle unescaped [ in pattern without closing ].
41848         Don't pass GLOB_CHECK down to recursive glob for directories.
41849         (__glob_pattern_type): New function.
41850         (__glob_pattern_p): Implement using __glob_pattern_type.
41851         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
41852         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
41853         Remove unreachable code.
41854
41855         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
41856
41857         * lib/glob.c (glob_in_dir): Add some comments and asserts to
41858         explain why there are no leaks.
41859
41860         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
41861
41862         [BZ #3253]
41863         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
41864         time, rather allocate increasingly bigger arrays of pointers, if
41865         possible with alloca, if too large with malloc.
41866
41867 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41868
41869         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
41870         Problem reported by H.Merijn Brand in
41871         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
41872         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
41873         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
41874
41875 2007-10-15  Bruno Haible  <bruno@clisp.org>
41876
41877         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
41878         with explicit rpl_ prefix.
41879         * lib/fopen.c (fopen): Likewise.
41880         * lib/freopen.c (freopen): Likewise.
41881         * lib/iconv.c (iconv): Likewise.
41882         * lib/iconv_close.c (iconv_close): Likewise.
41883
41884 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41885
41886         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
41887
41888 2007-10-15  Bruno Haible  <bruno@clisp.org>
41889
41890         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
41891         <stddef.h> instead of <stdlib.h> since we only need NULL.
41892         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41893
41894 2007-10-15  Bruno Haible  <bruno@clisp.org>
41895
41896         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
41897         Replace paragraph talking about LIBOBJS.
41898         Reported by Colin Watson <cjwatson@debian.org>.
41899
41900 2007-10-15  Bruno Haible  <bruno@clisp.org>
41901
41902         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
41903         <stdlib.h> before using NULL.
41904
41905 2007-10-15  Simon Josefsson  <simon@josefsson.org>
41906
41907         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
41908         Reported by Albert Chin <china@thewrittenword.com>.
41909
41910 2007-10-14  Bruno Haible  <bruno@clisp.org>
41911
41912         * modules/iconv_open-utf-tests: New file.
41913         * tests/test-iconv-utf.c: New file.
41914
41915         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
41916         * modules/iconv_open-utf: New file.
41917         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
41918         (iconv, iconv_close): New declarations.
41919         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
41920         be defined.
41921         (iconv_open): Add special handling of conversion between UTF-8 and
41922         UTF-{16,32}{BE,LE}.
41923         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
41924         * lib/iconv_close.c: New file.
41925         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
41926         gl_FUNC_ICONV_OPEN.
41927         (gl_FUNC_ICONV_OPEN): Use it.
41928         (gl_FUNC_ICONV_OPEN_UTF): New macro.
41929         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
41930         and REPLACE_ICONV_UTF.
41931         * modules/iconv_open (Depends-on): Add c-strcase.
41932         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
41933         ICONV_CONST.
41934         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
41935
41936 2007-10-13  Albert Chin  <china@thewrittenword.com>
41937             Bruno Haible  <bruno@clisp.org>
41938
41939         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
41940         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
41941
41942 2007-10-13  Bruno Haible  <bruno@clisp.org>
41943
41944         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
41945         defined, use the ISO C99 inline semantics.
41946         * lib/argp.h (ARGP_EI): Likewise.
41947
41948 2007-10-13  Bruno Haible  <bruno@clisp.org>
41949
41950         Handle 'inline' change in gcc 4.3.0.
41951         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
41952         argp_fmtstream_write, argp_fmtstream_set_lmargin,
41953         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
41954         argp_fmtstream_point): Disable 'extern' declaration if the function
41955         definition is going to be provided inline.
41956         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
41957         semantics, not the ISO C99 inline semantics.
41958         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
41959         'extern' declaration if the function definition is going to be provided
41960         inline.
41961         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
41962         the GNU C inline semantics, not the ISO C99 inline semantics. With
41963         GCC 4.2, avoid a warning.
41964
41965 2007-10-13  Bruno Haible  <bruno@clisp.org>
41966
41967         * lib/freading.h (freading): Enable the use of __freading for
41968         glibc >= 2.7.
41969         * lib/freading.c (freading): Likewise.
41970
41971 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41972
41973         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
41974         "warning: C99 inline functions are not supported; using GNU89".
41975
41976 2007-10-12  Bruno Haible  <bruno@clisp.org>
41977
41978         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
41979         of 2.
41980         * tests/test-ceilf2.c: New file.
41981         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
41982
41983         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
41984         * modules/ceilf-tests: Update.
41985
41986 2007-10-12  Bruno Haible  <bruno@clisp.org>
41987
41988         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
41989         of 2.
41990         * tests/test-floorf2.c: New file.
41991         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
41992
41993         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
41994         * modules/floorf-tests: Update.
41995
41996 2007-10-12  Bruno Haible  <bruno@clisp.org>
41997
41998         * tests/test-trunc2.c: New file.
41999         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
42000
42001         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
42002         * modules/trunc-tests: Update.
42003
42004 2007-10-12  Bruno Haible  <bruno@clisp.org>
42005
42006         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
42007         of 2.
42008         * tests/test-truncf2.c: New file.
42009         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
42010
42011         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
42012         * modules/truncf-tests: Update.
42013
42014 2007-10-11  Eric Blake  <ebb9@byu.net>
42015
42016         Don't claim strerror is broken on Interix.
42017         * doc/functions/strerror.texi (strerror): Known broken systems are
42018         now Solaris 8, and not Interix.
42019         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
42020         Interix on cross-compile.
42021         Reported by Martin Koeppe in
42022         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
42023
42024 2007-10-11  Bruno Haible  <bruno@clisp.org>
42025
42026         * modules/i-ring-tests: New file.
42027         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
42028         instead of assert.
42029
42030 2007-10-11  Bruno Haible  <bruno@clisp.org>
42031
42032         * modules/filenamecat-tests: New file.
42033         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
42034         * lib/filenamecat.c: Remove test code.
42035
42036 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42037
42038         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
42039
42040         * lib/strerror.c: Include <string.h> always, to test interface,
42041         and to remove the need for the dummy.
42042         Include intprops.h to compute width instead of doing it ourselves
42043         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
42044         (strerror): Define it to return NULL if there's no system strerror.
42045         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
42046         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
42047         ancient pre-strerror Unix systems well any more.  Saying "unknown
42048         system error" is enough.
42049         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
42050         simpler strerror.c implementation.
42051         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
42052         Simplify the tests to reflect the simpler strerror implementation.
42053         * modules/strerror (Depends-on): Add intprops.
42054
42055 2007-10-09  Eric Blake  <ebb9@byu.net>
42056
42057         Silence test-fpending.
42058         * modules/fpending-tests (Files): Add wrapper script.
42059         * tests/test-fpending.sh: New file.
42060
42061 2007-10-09  Bruno Haible  <bruno@clisp.org>
42062
42063         * MODULES.html.sh (func_module): Don't create a hyperlink for
42064         function names like 'printf_frexp'.
42065         (Misc): Add crc, memxor.
42066         (Characteristics of floating types): New section.
42067         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
42068         isnanf-nolibm, signbit, trunc, truncf, truncl.
42069         (Enhancements for ISO C 99 functions): New subsection Input/output.
42070         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
42071         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
42072         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
42073         (Compatibility checks for POSIX:2001 functions): Add clock-time.
42074         (Enhancements for POSIX:2001 functions): Add chdir-long.
42075         (File system functions): Add areadlink, chdir-safer, read-file.
42076         Remove cycle-check.
42077         (File system as inode set): New section.
42078         (Date and time): Add gethrxtime.
42079         (Multithreading): Add openmp.
42080         (Internationalization functions): Add localename.
42081         (Unicode string functions): Add unistr/u*-mbsnlen.
42082         (Support for maintaining and releasing projects): Add git-version-gen.
42083         (Lone files): Remove directories.
42084
42085 2007-10-08  Ben Pfaff  <blp@gnu.org>
42086
42087         * lib/xmalloca.h: Fix typo in comment.
42088
42089 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42090
42091         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
42092         when avoiding problems with integer overflow.  Use a portable test
42093         instead.
42094
42095 2007-10-08  Simon Josefsson  <simon@josefsson.org>
42096
42097         * modules/dummy (License): Change to LGPLv2+.
42098         * modules/float (License): Likewise
42099         * modules/realloc (License): Likewise
42100         * modules/stdlib (License): Likewise
42101
42102 2007-10-07  Bruno Haible  <bruno@clisp.org>
42103
42104         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
42105         * floor.c (TWO_MANT_DIG): Likewise.
42106         * ceil.c (TWO_MANT_DIG): Likewise.
42107         Reported by Ben Pfaff.
42108
42109 2007-10-07  Bruno Haible  <bruno@clisp.org>
42110
42111         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
42112         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
42113         * lib/frexp.c (FUNC): Likewise.
42114         * lib/printf-frexp.h (printf_frexp): Likewise.
42115         * lib/printf-frexpl.h (printf_frexpl): Likewise.
42116         * lib/printf-frexp.c (FUNC): Likewise.
42117         Suggested by Jim Meyering.
42118
42119 2007-10-07  Jim Meyering  <meyering@redhat.com>
42120
42121         Make xnanosleep's integer overflow test more robust.
42122         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
42123         so that gcc-4.3.0 doesn't optimize away this test for overflow.
42124
42125 2007-10-07  Bruno Haible  <bruno@clisp.org>
42126
42127         * NEWS: Mention the license change.
42128
42129         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
42130         abbreviations in the modules files.
42131
42132         Change copyright notice from GPLv2+ to GPLv3+.
42133         * README: Change copyright notice.
42134         * MODULES.html.sh: Likewise.
42135         * build-aux/bootstrap.conf: Likewise.
42136         * build-aux/config.libpath: Likewise.
42137         * build-aux/csharpcomp.sh.in: Likewise.
42138         * build-aux/csharpexec.sh.in: Likewise.
42139         * build-aux/install-reloc: Likewise.
42140         * build-aux/javacomp.sh.in: Likewise.
42141         * build-aux/javaexec.sh.in: Likewise.
42142         * build-aux/ldd.sh.in: Likewise.
42143         * build-aux/reloc-ldflags: Likewise.
42144         * build-aux/relocatable.sh.in: Likewise.
42145         * build-aux/x-to-1.in: Likewise.
42146         * check-module: Likewise.
42147         * config/srclistvars.sh: Likewise.
42148         * gnulib-tool: Likewise.
42149         * lib/acl-internal.h: Likewise.
42150         * lib/acl.c: Likewise.
42151         * lib/acl.h: Likewise.
42152         * lib/acl_entries.c: Likewise.
42153         * lib/areadlink-with-size.c: Likewise.
42154         * lib/areadlink.c: Likewise.
42155         * lib/areadlink.h: Likewise.
42156         * lib/argmatch.c: Likewise.
42157         * lib/argmatch.h: Likewise.
42158         * lib/argp-ba.c: Likewise.
42159         * lib/argp-eexst.c: Likewise.
42160         * lib/argp-fmtstream.c: Likewise.
42161         * lib/argp-fmtstream.h: Likewise.
42162         * lib/argp-fs-xinl.c: Likewise.
42163         * lib/argp-help.c: Likewise.
42164         * lib/argp-namefrob.h: Likewise.
42165         * lib/argp-parse.c: Likewise.
42166         * lib/argp-pin.c: Likewise.
42167         * lib/argp-pv.c: Likewise.
42168         * lib/argp-pvh.c: Likewise.
42169         * lib/argp-xinl.c: Likewise.
42170         * lib/argp.h: Likewise.
42171         * lib/at-func.c: Likewise.
42172         * lib/atanl.c: Likewise.
42173         * lib/backupfile.c: Likewise.
42174         * lib/backupfile.h: Likewise.
42175         * lib/basename.c: Likewise.
42176         * lib/binary-io.h: Likewise.
42177         * lib/byteswap.in.h: Likewise.
42178         * lib/c-stack.c: Likewise.
42179         * lib/c-stack.h: Likewise.
42180         * lib/c-strcasestr.c: Likewise.
42181         * lib/c-strcasestr.h: Likewise.
42182         * lib/c-strstr.c: Likewise.
42183         * lib/c-strstr.h: Likewise.
42184         * lib/c-strtod.c: Likewise.
42185         * lib/calloc.c: Likewise.
42186         * lib/canon-host.c: Likewise.
42187         * lib/canon-host.h: Likewise.
42188         * lib/canonicalize-lgpl.c: Likewise.
42189         * lib/canonicalize.c: Likewise.
42190         * lib/canonicalize.h: Likewise.
42191         * lib/ceil.c: Likewise.
42192         * lib/ceilf.c: Likewise.
42193         * lib/ceill.c: Likewise.
42194         * lib/chdir-long.c: Likewise.
42195         * lib/chdir-long.h: Likewise.
42196         * lib/chdir-safer.c: Likewise.
42197         * lib/chdir-safer.h: Likewise.
42198         * lib/chown.c: Likewise.
42199         * lib/classpath.c: Likewise.
42200         * lib/classpath.h: Likewise.
42201         * lib/clean-temp.c: Likewise.
42202         * lib/clean-temp.h: Likewise.
42203         * lib/cloexec.c: Likewise.
42204         * lib/close-stream.c: Likewise.
42205         * lib/closein.c: Likewise.
42206         * lib/closein.h: Likewise.
42207         * lib/closeout.c: Likewise.
42208         * lib/closeout.h: Likewise.
42209         * lib/concat-filename.c: Likewise.
42210         * lib/copy-file.c: Likewise.
42211         * lib/copy-file.h: Likewise.
42212         * lib/count-one-bits.h: Likewise.
42213         * lib/crc.c: Likewise.
42214         * lib/crc.h: Likewise.
42215         * lib/creat-safer.c: Likewise.
42216         * lib/csharpcomp.c: Likewise.
42217         * lib/csharpcomp.h: Likewise.
42218         * lib/csharpexec.c: Likewise.
42219         * lib/csharpexec.h: Likewise.
42220         * lib/cycle-check.c: Likewise.
42221         * lib/cycle-check.h: Likewise.
42222         * lib/diacrit.c: Likewise.
42223         * lib/diacrit.h: Likewise.
42224         * lib/diffseq.h: Likewise.
42225         * lib/dirchownmod.c: Likewise.
42226         * lib/dirent.in.h: Likewise.
42227         * lib/dirfd.c: Likewise.
42228         * lib/dirfd.h: Likewise.
42229         * lib/dirname.c: Likewise.
42230         * lib/dirname.h: Likewise.
42231         * lib/dummy.c: Likewise.
42232         * lib/dup-safer.c: Likewise.
42233         * lib/dup2.c: Likewise.
42234         * lib/eealloc.h: Likewise.
42235         * lib/error.c: Likewise.
42236         * lib/error.h: Likewise.
42237         * lib/euidaccess.c: Likewise.
42238         * lib/exclude.c: Likewise.
42239         * lib/exclude.h: Likewise.
42240         * lib/execute.c: Likewise.
42241         * lib/execute.h: Likewise.
42242         * lib/exitfail.c: Likewise.
42243         * lib/exitfail.h: Likewise.
42244         * lib/expl.c: Likewise.
42245         * lib/fatal-signal.c: Likewise.
42246         * lib/fatal-signal.h: Likewise.
42247         * lib/fbufmode.c: Likewise.
42248         * lib/fbufmode.h: Likewise.
42249         * lib/fchdir.c: Likewise.
42250         * lib/fchmodat.c: Likewise.
42251         * lib/fchownat.c: Likewise.
42252         * lib/fcntl--.h: Likewise.
42253         * lib/fcntl-safer.h: Likewise.
42254         * lib/fcntl.in.h: Likewise.
42255         * lib/fd-safer.c: Likewise.
42256         * lib/fflush.c: Likewise.
42257         * lib/file-has-acl.c: Likewise.
42258         * lib/file-set.c: Likewise.
42259         * lib/file-type.c: Likewise.
42260         * lib/file-type.h: Likewise.
42261         * lib/fileblocks.c: Likewise.
42262         * lib/filemode.c: Likewise.
42263         * lib/filemode.h: Likewise.
42264         * lib/filename.h: Likewise.
42265         * lib/filenamecat.c: Likewise.
42266         * lib/filenamecat.h: Likewise.
42267         * lib/findprog.c: Likewise.
42268         * lib/findprog.h: Likewise.
42269         * lib/float.in.h: Likewise.
42270         * lib/floor.c: Likewise.
42271         * lib/floorf.c: Likewise.
42272         * lib/floorl.c: Likewise.
42273         * lib/fopen-safer.c: Likewise.
42274         * lib/fopen.c: Likewise.
42275         * lib/fpending.c: Likewise.
42276         * lib/fpending.h: Likewise.
42277         * lib/fprintf.c: Likewise.
42278         * lib/fprintftime.h: Likewise.
42279         * lib/fpucw.h: Likewise.
42280         * lib/fpurge.c: Likewise.
42281         * lib/fpurge.h: Likewise.
42282         * lib/freadable.c: Likewise.
42283         * lib/freadable.h: Likewise.
42284         * lib/freadahead.c: Likewise.
42285         * lib/freadahead.h: Likewise.
42286         * lib/freading.c: Likewise.
42287         * lib/freading.h: Likewise.
42288         * lib/free.c: Likewise.
42289         * lib/freopen.c: Likewise.
42290         * lib/frexp.c: Likewise.
42291         * lib/frexpl.c: Likewise.
42292         * lib/fseek.c: Likewise.
42293         * lib/fseterr.c: Likewise.
42294         * lib/fseterr.h: Likewise.
42295         * lib/fstatat.c: Likewise.
42296         * lib/fstrcmp.c: Likewise.
42297         * lib/fstrcmp.h: Likewise.
42298         * lib/fsusage.c: Likewise.
42299         * lib/fsusage.h: Likewise.
42300         * lib/ftell.c: Likewise.
42301         * lib/ftello.c: Likewise.
42302         * lib/fts-cycle.c: Likewise.
42303         * lib/fts.c: Likewise.
42304         * lib/fts_.h: Likewise.
42305         * lib/full-read.c: Likewise.
42306         * lib/full-read.h: Likewise.
42307         * lib/full-write.c: Likewise.
42308         * lib/full-write.h: Likewise.
42309         * lib/fwritable.c: Likewise.
42310         * lib/fwritable.h: Likewise.
42311         * lib/fwriteerror.c: Likewise.
42312         * lib/fwriteerror.h: Likewise.
42313         * lib/fwriting.c: Likewise.
42314         * lib/fwriting.h: Likewise.
42315         * lib/gcd.c: Likewise.
42316         * lib/gcd.h: Likewise.
42317         * lib/getcwd.c: Likewise.
42318         * lib/getdate.h: Likewise.
42319         * lib/getdate.y: Likewise.
42320         * lib/getdomainname.c: Likewise.
42321         * lib/getdomainname.h: Likewise.
42322         * lib/getgroups.c: Likewise.
42323         * lib/gethostname.c: Likewise.
42324         * lib/gethrxtime.c: Likewise.
42325         * lib/gethrxtime.h: Likewise.
42326         * lib/getloadavg.c: Likewise.
42327         * lib/getndelim2.c: Likewise.
42328         * lib/getndelim2.h: Likewise.
42329         * lib/getnline.c: Likewise.
42330         * lib/getnline.h: Likewise.
42331         * lib/getopt.c: Likewise.
42332         * lib/getopt.in.h: Likewise.
42333         * lib/getopt1.c: Likewise.
42334         * lib/getopt_int.h: Likewise.
42335         * lib/getpagesize.h: Likewise.
42336         * lib/getsubopt.c: Likewise.
42337         * lib/gettime.c: Likewise.
42338         * lib/getugroups.c: Likewise.
42339         * lib/getugroups.h: Likewise.
42340         * lib/getusershell.c: Likewise.
42341         * lib/gl_anyavltree_list1.h: Likewise.
42342         * lib/gl_anyavltree_list2.h: Likewise.
42343         * lib/gl_anyhash_list1.h: Likewise.
42344         * lib/gl_anyhash_list2.h: Likewise.
42345         * lib/gl_anylinked_list1.h: Likewise.
42346         * lib/gl_anylinked_list2.h: Likewise.
42347         * lib/gl_anyrbtree_list1.h: Likewise.
42348         * lib/gl_anyrbtree_list2.h: Likewise.
42349         * lib/gl_anytree_list1.h: Likewise.
42350         * lib/gl_anytree_list2.h: Likewise.
42351         * lib/gl_anytree_oset.h: Likewise.
42352         * lib/gl_anytreehash_list1.h: Likewise.
42353         * lib/gl_anytreehash_list2.h: Likewise.
42354         * lib/gl_array_list.c: Likewise.
42355         * lib/gl_array_list.h: Likewise.
42356         * lib/gl_array_oset.c: Likewise.
42357         * lib/gl_array_oset.h: Likewise.
42358         * lib/gl_avltree_list.c: Likewise.
42359         * lib/gl_avltree_list.h: Likewise.
42360         * lib/gl_avltree_oset.c: Likewise.
42361         * lib/gl_avltree_oset.h: Likewise.
42362         * lib/gl_avltreehash_list.c: Likewise.
42363         * lib/gl_avltreehash_list.h: Likewise.
42364         * lib/gl_carray_list.c: Likewise.
42365         * lib/gl_carray_list.h: Likewise.
42366         * lib/gl_linked_list.c: Likewise.
42367         * lib/gl_linked_list.h: Likewise.
42368         * lib/gl_linkedhash_list.c: Likewise.
42369         * lib/gl_linkedhash_list.h: Likewise.
42370         * lib/gl_list.c: Likewise.
42371         * lib/gl_list.h: Likewise.
42372         * lib/gl_oset.c: Likewise.
42373         * lib/gl_oset.h: Likewise.
42374         * lib/gl_rbtree_list.c: Likewise.
42375         * lib/gl_rbtree_list.h: Likewise.
42376         * lib/gl_rbtree_oset.c: Likewise.
42377         * lib/gl_rbtree_oset.h: Likewise.
42378         * lib/gl_rbtreehash_list.c: Likewise.
42379         * lib/gl_rbtreehash_list.h: Likewise.
42380         * lib/gl_sublist.c: Likewise.
42381         * lib/gl_sublist.h: Likewise.
42382         * lib/group-member.c: Likewise.
42383         * lib/group-member.h: Likewise.
42384         * lib/hard-locale.c: Likewise.
42385         * lib/hard-locale.h: Likewise.
42386         * lib/hash-pjw.c: Likewise.
42387         * lib/hash-pjw.h: Likewise.
42388         * lib/hash-triple.c: Likewise.
42389         * lib/hash.c: Likewise.
42390         * lib/hash.h: Likewise.
42391         * lib/human.c: Likewise.
42392         * lib/human.h: Likewise.
42393         * lib/i-ring.c: Likewise.
42394         * lib/i-ring.h: Likewise.
42395         * lib/idcache.c: Likewise.
42396         * lib/imaxabs.c: Likewise.
42397         * lib/imaxdiv.c: Likewise.
42398         * lib/inet_pton.c: Likewise.
42399         * lib/inet_pton.h: Likewise.
42400         * lib/intprops.h: Likewise.
42401         * lib/inttostr.c: Likewise.
42402         * lib/inttostr.h: Likewise.
42403         * lib/inttypes.in.h: Likewise.
42404         * lib/isapipe.c: Likewise.
42405         * lib/isdir.c: Likewise.
42406         * lib/isnan.c: Likewise.
42407         * lib/isnan.h: Likewise.
42408         * lib/isnanf.c: Likewise.
42409         * lib/isnanf.h: Likewise.
42410         * lib/isnanl-nolibm.h: Likewise.
42411         * lib/isnanl.c: Likewise.
42412         * lib/isnanl.h: Likewise.
42413         * lib/javacomp.c: Likewise.
42414         * lib/javacomp.h: Likewise.
42415         * lib/javaexec.c: Likewise.
42416         * lib/javaexec.h: Likewise.
42417         * lib/javaversion.c: Likewise.
42418         * lib/javaversion.h: Likewise.
42419         * lib/javaversion.java: Likewise.
42420         * lib/lbrkprop.h: Likewise.
42421         * lib/lchmod.h: Likewise.
42422         * lib/lchown.c: Likewise.
42423         * lib/ldexpl.c: Likewise.
42424         * lib/linebreak.c: Likewise.
42425         * lib/linebreak.h: Likewise.
42426         * lib/linebuffer.c: Likewise.
42427         * lib/linebuffer.h: Likewise.
42428         * lib/locale.in.h: Likewise.
42429         * lib/logl.c: Likewise.
42430         * lib/long-options.c: Likewise.
42431         * lib/long-options.h: Likewise.
42432         * lib/lstat.c: Likewise.
42433         * lib/lstat.h: Likewise.
42434         * lib/math.in.h: Likewise.
42435         * lib/mbchar.c: Likewise.
42436         * lib/mbchar.h: Likewise.
42437         * lib/mbfile.h: Likewise.
42438         * lib/mbiter.h: Likewise.
42439         * lib/mbscasecmp.c: Likewise.
42440         * lib/mbscasestr.c: Likewise.
42441         * lib/mbschr.c: Likewise.
42442         * lib/mbscspn.c: Likewise.
42443         * lib/mbslen.c: Likewise.
42444         * lib/mbsncasecmp.c: Likewise.
42445         * lib/mbsnlen.c: Likewise.
42446         * lib/mbspbrk.c: Likewise.
42447         * lib/mbspcasecmp.c: Likewise.
42448         * lib/mbsrchr.c: Likewise.
42449         * lib/mbssep.c: Likewise.
42450         * lib/mbsspn.c: Likewise.
42451         * lib/mbsstr.c: Likewise.
42452         * lib/mbstok_r.c: Likewise.
42453         * lib/mbswidth.c: Likewise.
42454         * lib/mbswidth.h: Likewise.
42455         * lib/mbuiter.h: Likewise.
42456         * lib/memcasecmp.c: Likewise.
42457         * lib/memcasecmp.h: Likewise.
42458         * lib/memchr.c: Likewise.
42459         * lib/memcmp.c: Likewise.
42460         * lib/memcoll.c: Likewise.
42461         * lib/memcoll.h: Likewise.
42462         * lib/memcpy.c: Likewise.
42463         * lib/memrchr.c: Likewise.
42464         * lib/mkancesdirs.c: Likewise.
42465         * lib/mkdir-p.c: Likewise.
42466         * lib/mkdir-p.h: Likewise.
42467         * lib/mkdir.c: Likewise.
42468         * lib/mkdirat.c: Likewise.
42469         * lib/mkdtemp.c: Likewise.
42470         * lib/mkstemp-safer.c: Likewise.
42471         * lib/mkstemp.c: Likewise.
42472         * lib/modechange.c: Likewise.
42473         * lib/modechange.h: Likewise.
42474         * lib/mountlist.c: Likewise.
42475         * lib/mountlist.h: Likewise.
42476         * lib/mpsort.c: Likewise.
42477         * lib/nanosleep.c: Likewise.
42478         * lib/obstack.c: Likewise.
42479         * lib/obstack.h: Likewise.
42480         * lib/open-safer.c: Likewise.
42481         * lib/open.c: Likewise.
42482         * lib/openat-die.c: Likewise.
42483         * lib/openat-priv.h: Likewise.
42484         * lib/openat-proc.c: Likewise.
42485         * lib/openat.c: Likewise.
42486         * lib/openat.h: Likewise.
42487         * lib/pagealign_alloc.c: Likewise.
42488         * lib/pagealign_alloc.h: Likewise.
42489         * lib/physmem.c: Likewise.
42490         * lib/physmem.h: Likewise.
42491         * lib/pipe-safer.c: Likewise.
42492         * lib/pipe.c: Likewise.
42493         * lib/pipe.h: Likewise.
42494         * lib/posixtm.c: Likewise.
42495         * lib/posixtm.h: Likewise.
42496         * lib/posixver.c: Likewise.
42497         * lib/printf-frexp.c: Likewise.
42498         * lib/printf-frexp.h: Likewise.
42499         * lib/printf-frexpl.c: Likewise.
42500         * lib/printf-frexpl.h: Likewise.
42501         * lib/printf.c: Likewise.
42502         * lib/progname.c: Likewise.
42503         * lib/progname.h: Likewise.
42504         * lib/progreloc.c: Likewise.
42505         * lib/putenv.c: Likewise.
42506         * lib/quote.c: Likewise.
42507         * lib/quote.h: Likewise.
42508         * lib/quotearg.c: Likewise.
42509         * lib/quotearg.h: Likewise.
42510         * lib/raise.c: Likewise.
42511         * lib/readline.c: Likewise.
42512         * lib/readline.h: Likewise.
42513         * lib/readlink.c: Likewise.
42514         * lib/readtokens.c: Likewise.
42515         * lib/readtokens.h: Likewise.
42516         * lib/readtokens0.c: Likewise.
42517         * lib/readtokens0.h: Likewise.
42518         * lib/readutmp.c: Likewise.
42519         * lib/readutmp.h: Likewise.
42520         * lib/realloc.c: Likewise.
42521         * lib/relocwrapper.c: Likewise.
42522         * lib/rename-dest-slash.c: Likewise.
42523         * lib/rename.c: Likewise.
42524         * lib/rmdir.c: Likewise.
42525         * lib/rpmatch.c: Likewise.
42526         * lib/safe-read.c: Likewise.
42527         * lib/safe-read.h: Likewise.
42528         * lib/safe-write.c: Likewise.
42529         * lib/safe-write.h: Likewise.
42530         * lib/same-inode.h: Likewise.
42531         * lib/same.c: Likewise.
42532         * lib/same.h: Likewise.
42533         * lib/save-cwd.c: Likewise.
42534         * lib/save-cwd.h: Likewise.
42535         * lib/savedir.c: Likewise.
42536         * lib/savedir.h: Likewise.
42537         * lib/savewd.c: Likewise.
42538         * lib/savewd.h: Likewise.
42539         * lib/search.in.h: Likewise.
42540         * lib/setenv.c: Likewise.
42541         * lib/setenv.h: Likewise.
42542         * lib/settime.c: Likewise.
42543         * lib/sh-quote.c: Likewise.
42544         * lib/sh-quote.h: Likewise.
42545         * lib/sig2str.c: Likewise.
42546         * lib/sig2str.h: Likewise.
42547         * lib/signal.in.h: Likewise.
42548         * lib/signbitd.c: Likewise.
42549         * lib/signbitf.c: Likewise.
42550         * lib/signbitl.c: Likewise.
42551         * lib/sigprocmask.c: Likewise.
42552         * lib/sincosl.c: Likewise.
42553         * lib/sleep.c: Likewise.
42554         * lib/sprintf.c: Likewise.
42555         * lib/sqrtl.c: Likewise.
42556         * lib/stat-time.h: Likewise.
42557         * lib/stdio--.h: Likewise.
42558         * lib/stdio-safer.h: Likewise.
42559         * lib/stdlib--.h: Likewise.
42560         * lib/stdlib-safer.h: Likewise.
42561         * lib/stdlib.in.h: Likewise.
42562         * lib/stpcpy.c: Likewise.
42563         * lib/stpncpy.c: Likewise.
42564         * lib/strchrnul.c: Likewise.
42565         * lib/strcspn.c: Likewise.
42566         * lib/strerror.c: Likewise.
42567         * lib/strftime.c: Likewise.
42568         * lib/strftime.h: Likewise.
42569         * lib/striconveh.c: Likewise.
42570         * lib/striconveh.h: Likewise.
42571         * lib/striconveha.c: Likewise.
42572         * lib/striconveha.h: Likewise.
42573         * lib/stripslash.c: Likewise.
42574         * lib/strnlen1.c: Likewise.
42575         * lib/strnlen1.h: Likewise.
42576         * lib/strtod.c: Likewise.
42577         * lib/strtoimax.c: Likewise.
42578         * lib/strtok_r.c: Likewise.
42579         * lib/strtol.c: Likewise.
42580         * lib/strtoll.c: Likewise.
42581         * lib/strtoul.c: Likewise.
42582         * lib/strtoull.c: Likewise.
42583         * lib/sysexits.in.h: Likewise.
42584         * lib/tempname.c: Likewise.
42585         * lib/tempname.h: Likewise.
42586         * lib/timespec.h: Likewise.
42587         * lib/tls.c: Likewise.
42588         * lib/tls.h: Likewise.
42589         * lib/tmpdir.c: Likewise.
42590         * lib/tmpdir.h: Likewise.
42591         * lib/tmpfile-safer.c: Likewise.
42592         * lib/tmpfile.c: Likewise.
42593         * lib/trigl.c: Likewise.
42594         * lib/trigl.h: Likewise.
42595         * lib/trim.c: Likewise.
42596         * lib/trim.h: Likewise.
42597         * lib/trunc.c: Likewise.
42598         * lib/truncf.c: Likewise.
42599         * lib/truncl.c: Likewise.
42600         * lib/tsearch.c: Likewise.
42601         * lib/unicodeio.c: Likewise.
42602         * lib/unicodeio.h: Likewise.
42603         * lib/unistd--.h: Likewise.
42604         * lib/unistd-safer.h: Likewise.
42605         * lib/unistdio/ulc-fprintf.c: Likewise.
42606         * lib/unistdio/ulc-vfprintf.c: Likewise.
42607         * lib/unlinkdir.c: Likewise.
42608         * lib/unlinkdir.h: Likewise.
42609         * lib/unlocked-io.h: Likewise.
42610         * lib/unsetenv.c: Likewise.
42611         * lib/userspec.c: Likewise.
42612         * lib/utime.c: Likewise.
42613         * lib/utimecmp.c: Likewise.
42614         * lib/utimecmp.h: Likewise.
42615         * lib/utimens.c: Likewise.
42616         * lib/verify.h: Likewise.
42617         * lib/verror.c: Likewise.
42618         * lib/verror.h: Likewise.
42619         * lib/version-etc-fsf.c: Likewise.
42620         * lib/version-etc.c: Likewise.
42621         * lib/version-etc.h: Likewise.
42622         * lib/vfprintf.c: Likewise.
42623         * lib/vprintf.c: Likewise.
42624         * lib/vsprintf.c: Likewise.
42625         * lib/w32spawn.h: Likewise.
42626         * lib/wait-process.c: Likewise.
42627         * lib/wait-process.h: Likewise.
42628         * lib/wcwidth.c: Likewise.
42629         * lib/write-any-file.c: Likewise.
42630         * lib/xalloc-die.c: Likewise.
42631         * lib/xalloc.h: Likewise.
42632         * lib/xasprintf.c: Likewise.
42633         * lib/xgetcwd.c: Likewise.
42634         * lib/xgetcwd.h: Likewise.
42635         * lib/xgetdomainname.c: Likewise.
42636         * lib/xgetdomainname.h: Likewise.
42637         * lib/xgethostname.c: Likewise.
42638         * lib/xmalloc.c: Likewise.
42639         * lib/xmalloca.c: Likewise.
42640         * lib/xmalloca.h: Likewise.
42641         * lib/xmemcoll.c: Likewise.
42642         * lib/xnanosleep.c: Likewise.
42643         * lib/xreadlink.c: Likewise.
42644         * lib/xreadlink.h: Likewise.
42645         * lib/xsetenv.c: Likewise.
42646         * lib/xsetenv.h: Likewise.
42647         * lib/xstriconv.c: Likewise.
42648         * lib/xstriconv.h: Likewise.
42649         * lib/xstrndup.c: Likewise.
42650         * lib/xstrndup.h: Likewise.
42651         * lib/xstrtod.c: Likewise.
42652         * lib/xstrtod.h: Likewise.
42653         * lib/xstrtol-error.c: Likewise.
42654         * lib/xstrtol.c: Likewise.
42655         * lib/xstrtol.h: Likewise.
42656         * lib/xtime.h: Likewise.
42657         * lib/xvasprintf.c: Likewise.
42658         * lib/xvasprintf.h: Likewise.
42659         * lib/yesno.c: Likewise.
42660         * lib/yesno.h: Likewise.
42661         * posix-modules: Likewise.
42662         * tests/test-alloca-opt.c: Likewise.
42663         * tests/test-arcfour.c: Likewise.
42664         * tests/test-arctwo.c: Likewise.
42665         * tests/test-argmatch.c: Likewise.
42666         * tests/test-argp-2.sh: Likewise.
42667         * tests/test-argp.c: Likewise.
42668         * tests/test-arpa_inet.c: Likewise.
42669         * tests/test-array_list.c: Likewise.
42670         * tests/test-array_oset.c: Likewise.
42671         * tests/test-atexit.c: Likewise.
42672         * tests/test-avltree_list.c: Likewise.
42673         * tests/test-avltree_oset.c: Likewise.
42674         * tests/test-avltreehash_list.c: Likewise.
42675         * tests/test-base64.c: Likewise.
42676         * tests/test-binary-io.c: Likewise.
42677         * tests/test-byteswap.c: Likewise.
42678         * tests/test-c-ctype.c: Likewise.
42679         * tests/test-c-strcasecmp.c: Likewise.
42680         * tests/test-c-strcasestr.c: Likewise.
42681         * tests/test-c-strncasecmp.c: Likewise.
42682         * tests/test-c-strstr.c: Likewise.
42683         * tests/test-canonicalize-lgpl.c: Likewise.
42684         * tests/test-canonicalize.c: Likewise.
42685         * tests/test-carray_list.c: Likewise.
42686         * tests/test-ceilf.c: Likewise.
42687         * tests/test-ceill.c: Likewise.
42688         * tests/test-count-one-bits.c: Likewise.
42689         * tests/test-crc.c: Likewise.
42690         * tests/test-dirname.c: Likewise.
42691         * tests/test-fbufmode.c: Likewise.
42692         * tests/test-fcntl.c: Likewise.
42693         * tests/test-fflush.c: Likewise.
42694         * tests/test-floorf.c: Likewise.
42695         * tests/test-floorl.c: Likewise.
42696         * tests/test-fopen.c: Likewise.
42697         * tests/test-fprintf-posix.c: Likewise.
42698         * tests/test-fprintf-posix.h: Likewise.
42699         * tests/test-fpurge.c: Likewise.
42700         * tests/test-freadable.c: Likewise.
42701         * tests/test-freadahead.c: Likewise.
42702         * tests/test-freading.c: Likewise.
42703         * tests/test-freopen.c: Likewise.
42704         * tests/test-frexp.c: Likewise.
42705         * tests/test-frexpl.c: Likewise.
42706         * tests/test-fseek.c: Likewise.
42707         * tests/test-fseeko.c: Likewise.
42708         * tests/test-fseterr.c: Likewise.
42709         * tests/test-fstrcmp.c: Likewise.
42710         * tests/test-ftell.c: Likewise.
42711         * tests/test-ftello.c: Likewise.
42712         * tests/test-fwritable.c: Likewise.
42713         * tests/test-fwriting.c: Likewise.
42714         * tests/test-getaddrinfo.c: Likewise.
42715         * tests/test-getpass.c: Likewise.
42716         * tests/test-gettimeofday.c: Likewise.
42717         * tests/test-hmac-md5.c: Likewise.
42718         * tests/test-hmac-sha1.c: Likewise.
42719         * tests/test-iconv.c: Likewise.
42720         * tests/test-iconvme.c: Likewise.
42721         * tests/test-inttypes.c: Likewise.
42722         * tests/test-isnan.c: Likewise.
42723         * tests/test-isnanf.c: Likewise.
42724         * tests/test-isnanl-nolibm.c: Likewise.
42725         * tests/test-isnanl.c: Likewise.
42726         * tests/test-isnanl.h: Likewise.
42727         * tests/test-ldexpl.c: Likewise.
42728         * tests/test-linked_list.c: Likewise.
42729         * tests/test-linkedhash_list.c: Likewise.
42730         * tests/test-locale.c: Likewise.
42731         * tests/test-localename.c: Likewise.
42732         * tests/test-lock.c: Likewise.
42733         * tests/test-lseek.c: Likewise.
42734         * tests/test-malloca.c: Likewise.
42735         * tests/test-math.c: Likewise.
42736         * tests/test-mbscasecmp.c: Likewise.
42737         * tests/test-mbscasestr1.c: Likewise.
42738         * tests/test-mbscasestr2.c: Likewise.
42739         * tests/test-mbscasestr3.c: Likewise.
42740         * tests/test-mbscasestr4.c: Likewise.
42741         * tests/test-mbschr.c: Likewise.
42742         * tests/test-mbscspn.c: Likewise.
42743         * tests/test-mbsncasecmp.c: Likewise.
42744         * tests/test-mbspbrk.c: Likewise.
42745         * tests/test-mbspcasecmp.c: Likewise.
42746         * tests/test-mbsrchr.c: Likewise.
42747         * tests/test-mbsspn.c: Likewise.
42748         * tests/test-mbsstr1.c: Likewise.
42749         * tests/test-mbsstr2.c: Likewise.
42750         * tests/test-mbsstr3.c: Likewise.
42751         * tests/test-md5.c: Likewise.
42752         * tests/test-memmem.c: Likewise.
42753         * tests/test-netinet_in.c: Likewise.
42754         * tests/test-open.c: Likewise.
42755         * tests/test-printf-frexp.c: Likewise.
42756         * tests/test-printf-frexpl.c: Likewise.
42757         * tests/test-printf-posix.c: Likewise.
42758         * tests/test-printf-posix.h: Likewise.
42759         * tests/test-rbtree_list.c: Likewise.
42760         * tests/test-rbtree_oset.c: Likewise.
42761         * tests/test-rbtreehash_list.c: Likewise.
42762         * tests/test-read-file.c: Likewise.
42763         * tests/test-rijndael.c: Likewise.
42764         * tests/test-search.c: Likewise.
42765         * tests/test-signbit.c: Likewise.
42766         * tests/test-sleep.c: Likewise.
42767         * tests/test-snprintf-posix.c: Likewise.
42768         * tests/test-snprintf-posix.h: Likewise.
42769         * tests/test-snprintf.c: Likewise.
42770         * tests/test-sprintf-posix.c: Likewise.
42771         * tests/test-sprintf-posix.h: Likewise.
42772         * tests/test-stat-time.c: Likewise.
42773         * tests/test-stdbool.c: Likewise.
42774         * tests/test-stdint.c: Likewise.
42775         * tests/test-stdio.c: Likewise.
42776         * tests/test-stdlib.c: Likewise.
42777         * tests/test-stpncpy.c: Likewise.
42778         * tests/test-strcasestr.c: Likewise.
42779         * tests/test-striconv.c: Likewise.
42780         * tests/test-striconveh.c: Likewise.
42781         * tests/test-striconveha.c: Likewise.
42782         * tests/test-string.c: Likewise.
42783         * tests/test-sys_select.c: Likewise.
42784         * tests/test-sys_socket.c: Likewise.
42785         * tests/test-sys_stat.c: Likewise.
42786         * tests/test-sys_time.c: Likewise.
42787         * tests/test-sysexits.c: Likewise.
42788         * tests/test-time.c: Likewise.
42789         * tests/test-tls.c: Likewise.
42790         * tests/test-trunc.c: Likewise.
42791         * tests/test-truncf.c: Likewise.
42792         * tests/test-truncl.c: Likewise.
42793         * tests/test-unistd.c: Likewise.
42794         * tests/test-vasnprintf-posix.c: Likewise.
42795         * tests/test-vasnprintf-posix2.c: Likewise.
42796         * tests/test-vasnprintf.c: Likewise.
42797         * tests/test-vasprintf-posix.c: Likewise.
42798         * tests/test-vasprintf.c: Likewise.
42799         * tests/test-verify.c: Likewise.
42800         * tests/test-vfprintf-posix.c: Likewise.
42801         * tests/test-vprintf-posix.c: Likewise.
42802         * tests/test-vsnprintf-posix.c: Likewise.
42803         * tests/test-vsnprintf.c: Likewise.
42804         * tests/test-vsprintf-posix.c: Likewise.
42805         * tests/test-wchar.c: Likewise.
42806         * tests/test-wctype.c: Likewise.
42807         * tests/test-wcwidth.c: Likewise.
42808         * tests/test-xstrtol.c: Likewise.
42809         * tests/test-xvasprintf.c: Likewise.
42810         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
42811         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
42812         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
42813         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
42814         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
42815         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
42816         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
42817         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
42818         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
42819         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
42820         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
42821         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
42822         * tests/uniname/test-uninames.c: Likewise.
42823         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
42824         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
42825         * tests/unistdio/test-u16-printf1.h: Likewise.
42826         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
42827         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
42828         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
42829         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
42830         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
42831         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
42832         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
42833         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
42834         * tests/unistdio/test-u32-printf1.h: Likewise.
42835         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
42836         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
42837         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
42838         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
42839         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
42840         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
42841         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
42842         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
42843         * tests/unistdio/test-u8-printf1.h: Likewise.
42844         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
42845         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
42846         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
42847         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
42848         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
42849         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
42850         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
42851         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
42852         * tests/unistdio/test-ulc-printf1.h: Likewise.
42853         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
42854         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
42855         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
42856         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
42857         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
42858         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
42859         * tests/uniwidth/test-u16-strwidth.c: Likewise.
42860         * tests/uniwidth/test-u16-width.c: Likewise.
42861         * tests/uniwidth/test-u32-strwidth.c: Likewise.
42862         * tests/uniwidth/test-u32-width.c: Likewise.
42863         * tests/uniwidth/test-u8-strwidth.c: Likewise.
42864         * tests/uniwidth/test-u8-width.c: Likewise.
42865         * tests/uniwidth/test-uc_width.c: Likewise.
42866         * config/srclist-update: Likewise.
42867         (fixlicense): Update to GPLv3+.
42868
42869         Change copyright notice from LGPLv2.1+ to LGPLv3+.
42870         * tests/test-tsearch.c: Change copyright notice.
42871
42872         Change copyright notice from LGPLv2.0+ to LGPLv3+.
42873         * lib/c-strcaseeq.h: Change copyright notice.
42874         * lib/streq.h: Likewise.
42875         * lib/uniconv.h: Likewise.
42876         * lib/uniconv/u-conv-from-enc.h: Likewise.
42877         * lib/uniconv/u-conv-to-enc.h: Likewise.
42878         * lib/uniconv/u-strconv-from-enc.h: Likewise.
42879         * lib/uniconv/u-strconv-to-enc.h: Likewise.
42880         * lib/uniconv/u16-conv-from-enc.c: Likewise.
42881         * lib/uniconv/u16-conv-to-enc.c: Likewise.
42882         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
42883         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
42884         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
42885         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
42886         * lib/uniconv/u32-conv-from-enc.c: Likewise.
42887         * lib/uniconv/u32-conv-to-enc.c: Likewise.
42888         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
42889         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
42890         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
42891         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
42892         * lib/uniconv/u8-conv-from-enc.c: Likewise.
42893         * lib/uniconv/u8-conv-to-enc.c: Likewise.
42894         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
42895         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
42896         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
42897         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
42898         * lib/uniname.h: Likewise.
42899         * lib/uniname/uniname.c: Likewise.
42900         * lib/unistdio.h: Likewise.
42901         * lib/unistdio/u-asnprintf.h: Likewise.
42902         * lib/unistdio/u-asprintf.h: Likewise.
42903         * lib/unistdio/u-printf-args.c: Likewise.
42904         * lib/unistdio/u-printf-args.h: Likewise.
42905         * lib/unistdio/u-printf-parse.h: Likewise.
42906         * lib/unistdio/u-snprintf.h: Likewise.
42907         * lib/unistdio/u-sprintf.h: Likewise.
42908         * lib/unistdio/u-vasprintf.h: Likewise.
42909         * lib/unistdio/u-vsnprintf.h: Likewise.
42910         * lib/unistdio/u-vsprintf.h: Likewise.
42911         * lib/unistdio/u16-asnprintf.c: Likewise.
42912         * lib/unistdio/u16-asprintf.c: Likewise.
42913         * lib/unistdio/u16-printf-parse.c: Likewise.
42914         * lib/unistdio/u16-snprintf.c: Likewise.
42915         * lib/unistdio/u16-sprintf.c: Likewise.
42916         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
42917         * lib/unistdio/u16-u16-asprintf.c: Likewise.
42918         * lib/unistdio/u16-u16-snprintf.c: Likewise.
42919         * lib/unistdio/u16-u16-sprintf.c: Likewise.
42920         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
42921         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
42922         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
42923         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
42924         * lib/unistdio/u16-vasnprintf.c: Likewise.
42925         * lib/unistdio/u16-vasprintf.c: Likewise.
42926         * lib/unistdio/u16-vsnprintf.c: Likewise.
42927         * lib/unistdio/u16-vsprintf.c: Likewise.
42928         * lib/unistdio/u32-asnprintf.c: Likewise.
42929         * lib/unistdio/u32-asprintf.c: Likewise.
42930         * lib/unistdio/u32-printf-parse.c: Likewise.
42931         * lib/unistdio/u32-snprintf.c: Likewise.
42932         * lib/unistdio/u32-sprintf.c: Likewise.
42933         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
42934         * lib/unistdio/u32-u32-asprintf.c: Likewise.
42935         * lib/unistdio/u32-u32-snprintf.c: Likewise.
42936         * lib/unistdio/u32-u32-sprintf.c: Likewise.
42937         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
42938         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
42939         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
42940         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
42941         * lib/unistdio/u32-vasnprintf.c: Likewise.
42942         * lib/unistdio/u32-vasprintf.c: Likewise.
42943         * lib/unistdio/u32-vsnprintf.c: Likewise.
42944         * lib/unistdio/u32-vsprintf.c: Likewise.
42945         * lib/unistdio/u8-asnprintf.c: Likewise.
42946         * lib/unistdio/u8-asprintf.c: Likewise.
42947         * lib/unistdio/u8-printf-parse.c: Likewise.
42948         * lib/unistdio/u8-snprintf.c: Likewise.
42949         * lib/unistdio/u8-sprintf.c: Likewise.
42950         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
42951         * lib/unistdio/u8-u8-asprintf.c: Likewise.
42952         * lib/unistdio/u8-u8-snprintf.c: Likewise.
42953         * lib/unistdio/u8-u8-sprintf.c: Likewise.
42954         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
42955         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
42956         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
42957         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
42958         * lib/unistdio/u8-vasnprintf.c: Likewise.
42959         * lib/unistdio/u8-vasprintf.c: Likewise.
42960         * lib/unistdio/u8-vsnprintf.c: Likewise.
42961         * lib/unistdio/u8-vsprintf.c: Likewise.
42962         * lib/unistdio/ulc-asnprintf.c: Likewise.
42963         * lib/unistdio/ulc-asprintf.c: Likewise.
42964         * lib/unistdio/ulc-printf-parse.c: Likewise.
42965         * lib/unistdio/ulc-snprintf.c: Likewise.
42966         * lib/unistdio/ulc-sprintf.c: Likewise.
42967         * lib/unistdio/ulc-vasnprintf.c: Likewise.
42968         * lib/unistdio/ulc-vasprintf.c: Likewise.
42969         * lib/unistdio/ulc-vsnprintf.c: Likewise.
42970         * lib/unistdio/ulc-vsprintf.c: Likewise.
42971         * lib/unistr.h: Likewise.
42972         * lib/unistr/u-cpy-alloc.h: Likewise.
42973         * lib/unistr/u-cpy.h: Likewise.
42974         * lib/unistr/u-endswith.h: Likewise.
42975         * lib/unistr/u-move.h: Likewise.
42976         * lib/unistr/u-set.h: Likewise.
42977         * lib/unistr/u-startswith.h: Likewise.
42978         * lib/unistr/u-stpcpy.h: Likewise.
42979         * lib/unistr/u-stpncpy.h: Likewise.
42980         * lib/unistr/u-strcat.h: Likewise.
42981         * lib/unistr/u-strcpy.h: Likewise.
42982         * lib/unistr/u-strcspn.h: Likewise.
42983         * lib/unistr/u-strdup.h: Likewise.
42984         * lib/unistr/u-strlen.h: Likewise.
42985         * lib/unistr/u-strncat.h: Likewise.
42986         * lib/unistr/u-strncpy.h: Likewise.
42987         * lib/unistr/u-strnlen.h: Likewise.
42988         * lib/unistr/u-strpbrk.h: Likewise.
42989         * lib/unistr/u-strspn.h: Likewise.
42990         * lib/unistr/u-strstr.h: Likewise.
42991         * lib/unistr/u-strtok.h: Likewise.
42992         * lib/unistr/u16-check.c: Likewise.
42993         * lib/unistr/u16-chr.c: Likewise.
42994         * lib/unistr/u16-cmp.c: Likewise.
42995         * lib/unistr/u16-cpy-alloc.c: Likewise.
42996         * lib/unistr/u16-cpy.c: Likewise.
42997         * lib/unistr/u16-endswith.c: Likewise.
42998         * lib/unistr/u16-mblen.c: Likewise.
42999         * lib/unistr/u16-mbsnlen.c: Likewise.
43000         * lib/unistr/u16-mbtouc-aux.c: Likewise.
43001         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
43002         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
43003         * lib/unistr/u16-mbtouc.c: Likewise.
43004         * lib/unistr/u16-mbtoucr.c: Likewise.
43005         * lib/unistr/u16-move.c: Likewise.
43006         * lib/unistr/u16-next.c: Likewise.
43007         * lib/unistr/u16-prev.c: Likewise.
43008         * lib/unistr/u16-set.c: Likewise.
43009         * lib/unistr/u16-startswith.c: Likewise.
43010         * lib/unistr/u16-stpcpy.c: Likewise.
43011         * lib/unistr/u16-stpncpy.c: Likewise.
43012         * lib/unistr/u16-strcat.c: Likewise.
43013         * lib/unistr/u16-strchr.c: Likewise.
43014         * lib/unistr/u16-strcmp.c: Likewise.
43015         * lib/unistr/u16-strcpy.c: Likewise.
43016         * lib/unistr/u16-strcspn.c: Likewise.
43017         * lib/unistr/u16-strdup.c: Likewise.
43018         * lib/unistr/u16-strlen.c: Likewise.
43019         * lib/unistr/u16-strmblen.c: Likewise.
43020         * lib/unistr/u16-strmbtouc.c: Likewise.
43021         * lib/unistr/u16-strncat.c: Likewise.
43022         * lib/unistr/u16-strncmp.c: Likewise.
43023         * lib/unistr/u16-strncpy.c: Likewise.
43024         * lib/unistr/u16-strnlen.c: Likewise.
43025         * lib/unistr/u16-strpbrk.c: Likewise.
43026         * lib/unistr/u16-strrchr.c: Likewise.
43027         * lib/unistr/u16-strspn.c: Likewise.
43028         * lib/unistr/u16-strstr.c: Likewise.
43029         * lib/unistr/u16-strtok.c: Likewise.
43030         * lib/unistr/u16-to-u32.c: Likewise.
43031         * lib/unistr/u16-to-u8.c: Likewise.
43032         * lib/unistr/u16-uctomb-aux.c: Likewise.
43033         * lib/unistr/u16-uctomb.c: Likewise.
43034         * lib/unistr/u32-check.c: Likewise.
43035         * lib/unistr/u32-chr.c: Likewise.
43036         * lib/unistr/u32-cmp.c: Likewise.
43037         * lib/unistr/u32-cpy-alloc.c: Likewise.
43038         * lib/unistr/u32-cpy.c: Likewise.
43039         * lib/unistr/u32-endswith.c: Likewise.
43040         * lib/unistr/u32-mblen.c: Likewise.
43041         * lib/unistr/u32-mbsnlen.c: Likewise.
43042         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
43043         * lib/unistr/u32-mbtouc.c: Likewise.
43044         * lib/unistr/u32-mbtoucr.c: Likewise.
43045         * lib/unistr/u32-move.c: Likewise.
43046         * lib/unistr/u32-next.c: Likewise.
43047         * lib/unistr/u32-prev.c: Likewise.
43048         * lib/unistr/u32-set.c: Likewise.
43049         * lib/unistr/u32-startswith.c: Likewise.
43050         * lib/unistr/u32-stpcpy.c: Likewise.
43051         * lib/unistr/u32-stpncpy.c: Likewise.
43052         * lib/unistr/u32-strcat.c: Likewise.
43053         * lib/unistr/u32-strchr.c: Likewise.
43054         * lib/unistr/u32-strcmp.c: Likewise.
43055         * lib/unistr/u32-strcpy.c: Likewise.
43056         * lib/unistr/u32-strcspn.c: Likewise.
43057         * lib/unistr/u32-strdup.c: Likewise.
43058         * lib/unistr/u32-strlen.c: Likewise.
43059         * lib/unistr/u32-strmblen.c: Likewise.
43060         * lib/unistr/u32-strmbtouc.c: Likewise.
43061         * lib/unistr/u32-strncat.c: Likewise.
43062         * lib/unistr/u32-strncmp.c: Likewise.
43063         * lib/unistr/u32-strncpy.c: Likewise.
43064         * lib/unistr/u32-strnlen.c: Likewise.
43065         * lib/unistr/u32-strpbrk.c: Likewise.
43066         * lib/unistr/u32-strrchr.c: Likewise.
43067         * lib/unistr/u32-strspn.c: Likewise.
43068         * lib/unistr/u32-strstr.c: Likewise.
43069         * lib/unistr/u32-strtok.c: Likewise.
43070         * lib/unistr/u32-to-u16.c: Likewise.
43071         * lib/unistr/u32-to-u8.c: Likewise.
43072         * lib/unistr/u32-uctomb.c: Likewise.
43073         * lib/unistr/u8-check.c: Likewise.
43074         * lib/unistr/u8-chr.c: Likewise.
43075         * lib/unistr/u8-cmp.c: Likewise.
43076         * lib/unistr/u8-cpy-alloc.c: Likewise.
43077         * lib/unistr/u8-cpy.c: Likewise.
43078         * lib/unistr/u8-endswith.c: Likewise.
43079         * lib/unistr/u8-mblen.c: Likewise.
43080         * lib/unistr/u8-mbsnlen.c: Likewise.
43081         * lib/unistr/u8-mbtouc-aux.c: Likewise.
43082         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
43083         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
43084         * lib/unistr/u8-mbtouc.c: Likewise.
43085         * lib/unistr/u8-mbtoucr.c: Likewise.
43086         * lib/unistr/u8-move.c: Likewise.
43087         * lib/unistr/u8-next.c: Likewise.
43088         * lib/unistr/u8-prev.c: Likewise.
43089         * lib/unistr/u8-set.c: Likewise.
43090         * lib/unistr/u8-startswith.c: Likewise.
43091         * lib/unistr/u8-stpcpy.c: Likewise.
43092         * lib/unistr/u8-stpncpy.c: Likewise.
43093         * lib/unistr/u8-strcat.c: Likewise.
43094         * lib/unistr/u8-strchr.c: Likewise.
43095         * lib/unistr/u8-strcmp.c: Likewise.
43096         * lib/unistr/u8-strcpy.c: Likewise.
43097         * lib/unistr/u8-strcspn.c: Likewise.
43098         * lib/unistr/u8-strdup.c: Likewise.
43099         * lib/unistr/u8-strlen.c: Likewise.
43100         * lib/unistr/u8-strmblen.c: Likewise.
43101         * lib/unistr/u8-strmbtouc.c: Likewise.
43102         * lib/unistr/u8-strncat.c: Likewise.
43103         * lib/unistr/u8-strncmp.c: Likewise.
43104         * lib/unistr/u8-strncpy.c: Likewise.
43105         * lib/unistr/u8-strnlen.c: Likewise.
43106         * lib/unistr/u8-strpbrk.c: Likewise.
43107         * lib/unistr/u8-strrchr.c: Likewise.
43108         * lib/unistr/u8-strspn.c: Likewise.
43109         * lib/unistr/u8-strstr.c: Likewise.
43110         * lib/unistr/u8-strtok.c: Likewise.
43111         * lib/unistr/u8-to-u16.c: Likewise.
43112         * lib/unistr/u8-to-u32.c: Likewise.
43113         * lib/unistr/u8-uctomb-aux.c: Likewise.
43114         * lib/unistr/u8-uctomb.c: Likewise.
43115         * lib/unitypes.h: Likewise.
43116         * lib/uniwidth.h: Likewise.
43117         * lib/uniwidth/cjk.h: Likewise.
43118         * lib/uniwidth/u16-strwidth.c: Likewise.
43119         * lib/uniwidth/u16-width.c: Likewise.
43120         * lib/uniwidth/u32-strwidth.c: Likewise.
43121         * lib/uniwidth/u32-width.c: Likewise.
43122         * lib/uniwidth/u8-strwidth.c: Likewise.
43123         * lib/uniwidth/u8-width.c: Likewise.
43124         * lib/uniwidth/width.c: Likewise.
43125
43126 2007-10-07  Bruno Haible  <bruno@clisp.org>
43127
43128         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
43129         The file is still under LGPL (see modules/inttypes).
43130
43131 2007-10-06  Bruno Haible  <bruno@clisp.org>
43132
43133         * modules/trunc (Dependencies): Add 'extensions'.
43134         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
43135         Reported by Ben Pfaff <blp@gnu.org>.
43136
43137 2007-10-06  Bruno Haible  <bruno@clisp.org>
43138
43139         * modules/freopen-tests: New file.
43140         * tests/test-freopen.c: New file.
43141
43142         * modules/fopen-tests: New file.
43143         * tests/test-fopen.c: New file.
43144
43145         * modules/fopen: New file.
43146         * lib/fopen.c: New file.
43147         * m4/fopen.m4: New file.
43148         * modules/freopen: New file.
43149         * lib/freopen.c: New file.
43150         * m4/freopen.m4: New file.
43151         * lib/stdio.in.h (fopen, freopen): New declarations.
43152         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
43153         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
43154         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
43155         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
43156         * doc/functions/fopen.texi: Mention the 'fopen' module.
43157         * doc/functions/freopen.texi: Mention the 'freopen' module.
43158
43159 2007-10-06  Bruno Haible  <bruno@clisp.org>
43160
43161         * modules/open-tests: New file.
43162         * tests/test-open.c: New file.
43163
43164         * modules/open: New file.
43165         * lib/open.c: New file.
43166         * m4/open.m4: New file.
43167         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
43168         lib/open.c does.
43169         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
43170         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
43171         macros.
43172         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
43173         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
43174         REPLACE_OPEN.
43175         * doc/functions/open.texi: Mention the 'open' module.
43176
43177 2007-10-04  Bruno Haible  <bruno@clisp.org>
43178
43179         * modules/ceill-tests: New file.
43180         * tests/test-ceill.c: New file.
43181
43182         * modules/ceill: New file.
43183         * lib/ceill.c: Replace entire file.
43184         * m4/ceill.m4: New file.
43185         * lib/math.in.h (ceill): Replace declaration.
43186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
43187         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
43188         * doc/functions/ceill.texi: Mention the 'ceill' module.
43189         * modules/mathl (Files): Remove lib/ceill.c.
43190         (Depends-on): Add ceill.
43191
43192 2007-10-04  Bruno Haible  <bruno@clisp.org>
43193
43194         * modules/ceilf-tests: New file.
43195         * tests/test-ceilf.c: New file.
43196
43197         * modules/ceilf: New file.
43198         * lib/ceil.c: New file.
43199         * lib/ceilf.c: New file.
43200         * m4/ceilf.m4: New file.
43201         * lib/math.in.h (ceilf): New declaration.
43202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
43203         HAVE_DECL_CEILF.
43204         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
43205         HAVE_DECL_CEILF.
43206         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
43207
43208 2007-10-04  Bruno Haible  <bruno@clisp.org>
43209
43210         * modules/floorl-tests: New file.
43211         * tests/test-floorl.c: New file.
43212
43213         * modules/floorl: New file.
43214         * lib/floorl.c: Replace entire file.
43215         * m4/floorl.m4: New file.
43216         * lib/math.in.h (floorl): Replace declaration.
43217         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
43218         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
43219         * doc/functions/floorl.texi: Mention the 'floorl' module.
43220         * modules/mathl (Files): Remove lib/floorl.c.
43221         (Depends-on): Add floorl.
43222
43223 2007-10-04  Bruno Haible  <bruno@clisp.org>
43224
43225         * modules/floorf-tests: New file.
43226         * tests/test-floorf.c: New file.
43227
43228         * modules/floorf: New file.
43229         * lib/floor.c: New file.
43230         * lib/floorf.c: New file.
43231         * m4/floorf.m4: New file.
43232         * lib/math.in.h (floorf): New declaration.
43233         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
43234         HAVE_DECL_FLOORF.
43235         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
43236         HAVE_DECL_FLOORF.
43237         * doc/functions/floorf.texi: Mention the 'floorf' module.
43238
43239 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
43240             Bruno Haible  <bruno@clisp.org>
43241
43242         Advertise for the Git server instead of the CVS server.
43243         * doc/gnulib-intro.texi (Steady Development): Mention the Git
43244         repository instead of the CVS one.
43245         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
43246         about all VCS systems generically.
43247         * doc/gnulib.texi (Introduction): Capitalize `Git'.
43248
43249 2007-10-04  Bruno Haible  <bruno@clisp.org>
43250
43251         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
43252         means.
43253         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
43254
43255 2007-10-04  Bruno Haible  <bruno@clisp.org>
43256
43257         * modules/truncl-tests: New file.
43258         * tests/test-truncl.c: New file.
43259
43260         * modules/truncl: New file.
43261         * lib/truncl.c: New file.
43262         * m4/truncl.m4: New file.
43263         * lib/math.in.h (truncl): New declaration.
43264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
43265         HAVE_DECL_TRUNCL.
43266         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
43267         HAVE_DECL_TRUNCL.
43268         * doc/functions/truncl.texi: Mention the 'truncl' module.
43269
43270 2007-10-04  Bruno Haible  <bruno@clisp.org>
43271
43272         * modules/truncf-tests: New file.
43273         * tests/test-truncf.c: New file.
43274
43275         * modules/truncf: New file.
43276         * lib/trunc.c: Make paramerizable through USE_* macros.
43277         * lib/truncf.c: New file.
43278         * m4/truncf.m4: New file.
43279         * lib/math.in.h (truncf): New declaration.
43280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
43281         HAVE_DECL_TRUNCF.
43282         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
43283         HAVE_DECL_TRUNCF.
43284         * doc/functions/truncf.texi: Mention the 'truncf' module.
43285
43286 2007-10-03  Bruno Haible  <bruno@clisp.org>
43287
43288         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
43289         augmentation also for tests modules.
43290         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
43291         * modules/atexit-tests (Makefile.am): Likewise.
43292         * modules/binary-io-tests (Makefile.am): Likewise.
43293         * modules/c-strcase-tests (Makefile.am): Likewise.
43294         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
43295         * modules/canonicalize-tests (Makefile.am): Likewise.
43296         * modules/closein-tests (Makefile.am): Likewise.
43297         * modules/fprintf-posix-tests (Makefile.am): Likewise.
43298         * modules/freadahead-tests (Makefile.am): Likewise.
43299         * modules/fseek-tests (Makefile.am): Likewise.
43300         * modules/fseeko-tests (Makefile.am): Likewise.
43301         * modules/ftell-tests (Makefile.am): Likewise.
43302         * modules/ftello-tests (Makefile.am): Likewise.
43303         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
43304         * modules/isnanl-tests (Makefile.am): Likewise.
43305         * modules/lseek-tests (Makefile.am): Likewise.
43306         * modules/mbscasecmp-tests (Makefile.am): Likewise.
43307         * modules/mbscasestr-tests (Makefile.am): Likewise.
43308         * modules/mbschr-tests (Makefile.am): Likewise.
43309         * modules/mbscspn-tests (Makefile.am): Likewise.
43310         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
43311         * modules/mbspbrk-tests (Makefile.am): Likewise.
43312         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
43313         * modules/mbsrchr-tests (Makefile.am): Likewise.
43314         * modules/mbsspn-tests (Makefile.am): Likewise.
43315         * modules/mbsstr-tests (Makefile.am): Likewise.
43316         * modules/printf-posix-tests (Makefile.am): Likewise.
43317         * modules/snprintf-posix-tests (Makefile.am): Likewise.
43318         * modules/sprintf-posix-tests (Makefile.am): Likewise.
43319         * modules/tsearch-tests (Makefile.am): Likewise.
43320         * modules/uniname/uniname-tests (Makefile.am): Likewise.
43321         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
43322         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
43323         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
43324         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
43325         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
43326         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
43327         * modules/vprintf-posix-tests (Makefile.am): Likewise.
43328         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
43329         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
43330         * modules/xstrtoimax-tests (Makefile.am): Likewise.
43331         * modules/xstrtol-tests (Makefile.am): Likewise.
43332         * modules/xstrtoumax-tests (Makefile.am): Likewise.
43333         * modules/yesno-tests (Makefile.am): Likewise.
43334
43335 2007-10-03  Bruno Haible  <bruno@clisp.org>
43336
43337         * modules/trunc-tests: New file.
43338         * tests/test-trunc.c: New file.
43339
43340         * modules/trunc: New file.
43341         * lib/trunc.c: New file.
43342         * m4/trunc.m4: New file.
43343         * lib/math.in.h (trunc): New declaration.
43344         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
43345         HAVE_DECL_TRUNC.
43346         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
43347         HAVE_DECL_TRUNC.
43348         * doc/functions/trunc.texi: Mention the 'trunc' module.
43349
43350 2007-10-03  Bruno Haible  <bruno@clisp.org>
43351
43352         * tests/test-fpending.c: New file, mostly copied
43353         from coreutils/lib/t-fpending.c.
43354         * modules/fpending-tests: New file.
43355
43356 2007-10-03  Bruno Haible  <bruno@clisp.org>
43357
43358         Port the stdio extensions to QNX (untested).
43359         * lib/fseterr.c (fseterr): Add support for QNX.
43360         * lib/fbufmode.c (fbufmode): Likewise.
43361         * lib/freadable.c (freadable): Likewise.
43362         * lib/fwritable.c (fwritable): Likewise.
43363         * lib/freading.c (freading): Likewise.
43364         * lib/fwriting.c (fwriting): Likewise.
43365         * lib/freadahead.c (freadahed): Likewise.
43366         * lib/fpurge.c (fpurge): Likewise.
43367         * lib/fseeko.c (rpl_fseeko): Likewise.
43368
43369 2007-10-03  Bruno Haible  <bruno@clisp.org>
43370             Jim Meyering  <jim@meyering.net>
43371             Eric Blake  <ebb9@byu.net>
43372
43373         * doc/relocatable.texi: Use @command instead of @program.
43374
43375 2007-10-02  Jim Meyering  <jim@meyering.net>
43376
43377         Perform one more "_.h" -> ".in.h" substitution.
43378         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
43379         instead of unistd_.h here, too.
43380
43381 2007-10-01  Bruno Haible  <bruno@clisp.org>
43382
43383         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
43384         Needed for the alloca-opt module.
43385
43386 2007-09-30  Bruno Haible  <bruno@clisp.org>
43387
43388         * lib/alloca.in.h: Renamed from lib/alloca_.h.
43389         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
43390         alloca_.h.
43391         * lib/argz.in.h: Renamed from lib/argz_.h.
43392         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
43393         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
43394         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
43395         byteswap_.h.
43396         * lib/dirent.in.h: Renamed from lib/dirent_.h.
43397         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
43398         dirent_.h.
43399         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
43400         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
43401         fcntl_.h.
43402         * lib/float.in.h: Renamed from lib/float_.h.
43403         * modules/float (Files, Makefile.am): Use float.in.h instead of
43404         float_.h.
43405         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
43406         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
43407         fnmatch_.h.
43408         * lib/getopt.in.h: Renamed from lib/getopt_.h.
43409         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
43410         getopt_.h.
43411         * lib/glob.in.h: Renamed from lib/glob_.h.
43412         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
43413         * lib/iconv.in.h: Renamed from lib/iconv_.h.
43414         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
43415         iconv_.h.
43416         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
43417         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
43418         inttypes_.h.
43419         * lib/locale.in.h: Renamed from lib/locale_.h.
43420         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
43421         locale_.h.
43422         * lib/math.in.h: Renamed from lib/math_.h.
43423         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
43424         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
43425         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
43426         of netinet_in_.h. Add dependency.
43427         * lib/poll.in.h: Renamed from lib/poll_.h.
43428         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
43429         * lib/search.in.h: Renamed from lib/search_.h.
43430         * modules/search (Files, Makefile.am): Use search.in.h instead of
43431         search_.h.
43432         * lib/signal.in.h: Renamed from lib/signal_.h.
43433         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
43434         _signal.h.
43435         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
43436         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
43437         stdbool_.h.
43438         * lib/stdint.in.h: Renamed from lib/stdint_.h.
43439         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
43440         stdint_.h.
43441         * lib/stdio.in.h: Renamed from lib/stdio_.h.
43442         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
43443         stdio_.h.
43444         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
43445         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
43446         stdlib_.h.
43447         * lib/string.in.h: Renamed from lib/string_.h.
43448         * modules/string (Files, Makefile.am): Use string.in.h instead of
43449         string_.h.
43450         * doc/gnulib-tool.texi (Initial import): Update.
43451         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
43452         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
43453         of sys_select_.h. Add dependency.
43454         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
43455         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
43456         of sys_socket_.h.
43457         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
43458         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
43459         sys_stat_.h.
43460         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
43461         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
43462         sys_time_.h.
43463         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
43464         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
43465         sysexits_.h.
43466         * lib/time.in.h: Renamed from lib/time_.h.
43467         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
43468         * lib/unistd.in.h: Renamed from lib/unistd_.h.
43469         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
43470         unistd_.h.
43471         * lib/wchar.in.h: Renamed from lib/wchar_.h.
43472         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
43473         wchar_.h.
43474         * lib/wctype.in.h: Renamed from lib/wctype_.h.
43475         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
43476         wctype_.h.
43477         * build-aux/bootstrap (slurp): Update.
43478         * lib/.cppi-disable: Update.
43479
43480 2007-09-30  Bruno Haible  <bruno@clisp.org>
43481
43482         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
43483         Needed on BeOS.
43484
43485 2007-09-30  Bruno Haible  <bruno@clisp.org>
43486
43487         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
43488
43489 2007-09-29  Bruno Haible  <bruno@clisp.org>
43490
43491         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
43492
43493 2007-09-29  Bruno Haible  <bruno@clisp.org>
43494
43495         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
43496         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
43497         * build-aux/install-reloc: Compile also areadlink.c.
43498         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
43499
43500 2007-09-29  Bruno Haible  <bruno@clisp.org>
43501
43502         * gnulib-tool (func_emit_initmacro_done): Indentation.
43503
43504 2007-09-29  Bruno Haible  <bruno@clisp.org>
43505
43506         * README: Add CVS checkout update instructions.
43507         Info from Bob Proulx <bob@proulx.com>.
43508
43509 2007-09-28  Eric Blake  <ebb9@byu.net>
43510
43511         Provide move-if-change.
43512         * build-aux/move-if-change: New file, based on best practice
43513         rather than any canonical upstream location.
43514
43515 2007-09-28  Jim Meyering  <jim@meyering.net>
43516
43517         Fix canonicalize loop-detection corner case.
43518         Do not attempt to stat the symlink values stored via seen_triple.
43519         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
43520         on linux-2.6.18, (but not 2.6.22).
43521         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
43522         triple_compare.  The former compares dev,ino,filename, while the latter
43523         would actually stat dirname(filename) when dev and ino were equal.
43524         * lib/hash-triple.c: Install <string.h>.
43525         (STREQ): Define.
43526         (triple_compare_ino_str): New function.
43527         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
43528
43529 2007-09-28  Eric Blake  <ebb9@byu.net>
43530
43531         Enforce that AC_REPLACE_FUNCS files exist.
43532         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
43533         override check for typos.
43534
43535         Fix test-closein on Solaris 10.
43536         * tests/test-closein.c (main): Don't assume stdin can be inherited
43537         closed on all systems.
43538         * tests/test-closein.sh: Likewise.
43539         Reported by Piotr Tarnowski.
43540
43541 2007-09-28  Jim Meyering  <jim@meyering.net>
43542
43543         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
43544
43545 2007-09-27  Jim Meyering  <jim@meyering.net>
43546
43547         canonicalize: Avoid a false-positive cycle failure.
43548         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
43549         Sort.  Remove cycle-check.
43550         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
43551         not cycle-check.h.
43552         (seen_triple): New function.
43553         (canonicalize_filename_mode): Use it instead of cycle-check.
43554         * tests/test-canonicalize.c: Add a test for this bug.
43555         * tests/test-canonicalize.sh: Set up and run the test.
43556
43557         New module, file-set, from coreutils.
43558         * modules/file-set: Define it.
43559         * lib/file-set.c, lib/file-set.h: Implement.
43560
43561         New module, hash-triple, from coreutils.
43562         * modules/hash-triple: Define it.
43563         * lib/hash-triple.c, lib/hash-triple.h: Implement.
43564
43565 2007-09-25  Eric Blake  <ebb9@byu.net>
43566
43567         Fix strerror on Interix.
43568         * lib/string_.h (strerror): Declare replacement.
43569         * doc/functions/strerror.texi (strerror): Document the Interix
43570         shortcoming.
43571         * modules/string (Makefile.am): Support new hooks.
43572         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
43573         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
43574         gl_FUNC_STRERROR_SEPARATE.
43575         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
43576         * lib/strerror.c (rpl_strerror): Provide replacement.
43577         * modules/strerror (Depends-on): Add string.
43578         (configure.ac): Detect use of module.
43579         * tests/test-strerror.c: New file.
43580         * modules/strerror-tests: New test module.
43581         * modules/argp (Depends-on): Add strerror.
43582         * modules/error (Depends-on): Likewise.
43583         Reported by Martin Koeppe.
43584
43585 2007-09-24  Bruno Haible  <bruno@clisp.org>
43586
43587         * README: Update git instructions.
43588
43589 2007-09-24  Eric Blake  <ebb9@byu.net>
43590
43591         Revert fpending breakage from 2007-09-08.
43592         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
43593         __fpending.c.
43594
43595 2007-09-24  Jim Meyering  <jim@meyering.net>
43596
43597         filenamecat.c: Add a test.
43598         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
43599         showing how the function works when DIR is the empty string.
43600
43601 2007-09-21  Simon Josefsson  <simon@josefsson.org>
43602
43603         * tests/test-canonicalize.sh: Turn on executable bit.
43604
43605 2007-09-19  Eric Blake  <ebb9@byu.net>
43606
43607         * README: Update CVS instructions.
43608
43609 2007-09-18  Bruno Haible  <bruno@clisp.org>
43610
43611         * modules/areadlink: New file.
43612         * lib/areadlink.h (areadlink): New declaration.
43613         * lib/areadlink.c: New file, based on lib/xreadlink.c.
43614
43615 2007-09-17  Jim Meyering  <jim@meyering.net>
43616
43617         * lib/savewd.c (ESTALE) [!defined]: Define.
43618         Reported to be required on Interix by Martin Koeppe.
43619
43620 2007-09-17  Bruno Haible  <bruno@clisp.org>
43621
43622         * gnulib-tool (func_version): Use $version.
43623
43624 2007-09-16  Bruno Haible  <bruno@clisp.org>
43625
43626         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
43627         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
43628         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
43629         Reported by Greg Schafer <gschafer@zip.com.au>.
43630
43631 2007-09-15  Bruno Haible  <bruno@clisp.org>
43632
43633         * gnulib-tool (sed): Try a little harder to make bash understand the
43634         alias.
43635         Reported by Bruce Korb <bruce.korb@gmail.com>.
43636
43637 2007-09-13  Eric Blake  <ebb9@byu.net>
43638
43639         * ChangeLog: Remove conflict markers.
43640
43641 2007-09-13  Simon Josefsson  <simon@josefsson.org>
43642
43643         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
43644         Reported by Bruno Haible <bruno@clisp.org>.
43645
43646 2007-09-12  Bruno Haible  <bruno@clisp.org>
43647
43648         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
43649         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
43650         is not defined.
43651
43652 2007-09-12  Eric Blake  <ebb9@byu.net>
43653
43654         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
43655         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
43656         Autoconf definition.
43657         * modules/euidaccess (Depends-on): Add extensions, for
43658         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
43659         * modules/fnmatch (Depends-on): Likewise.
43660         * modules/getaddrinfo (Depends-on): Likewise.
43661         * modules/getdelim (Depends-on): Likewise.
43662         * modules/getline (Depends-on): Likewise.
43663         * modules/getsubopt (Depends-on): Likewise.
43664         * modules/gettext (Depends-on): Likewise.
43665         * modules/group-member (Depends-on): Likewise.
43666         * modules/mbchar (Depends-on): Likewise.
43667         * modules/memmem (Depends-on): Likewise.
43668         * modules/mempcpy (Depends-on): Likewise.
43669         * modules/memrchr (Depends-on): Likewise.
43670         * modules/pagealign_alloc (Depends-on): Likewise.
43671         * modules/readutmp (Depends-on): Likewise.
43672         * modules/stpcpy (Depends-on): Likewise.
43673         * modules/stpncpy (Depends-on): Likewise.
43674         * modules/strchrnul (Depends-on): Likewise.
43675         * modules/strndup (Depends-on): Likewise.
43676         * modules/strsep (Depends-on): Likewise.
43677         * modules/strverscmp (Depends-on): Likewise.
43678         * modules/vasprintf (Depends-on): Likewise.
43679         * modules/wcwidth (Depends-on): Likewise.
43680         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
43681         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
43682         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
43683         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
43684         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
43685         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43686         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
43687         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43688         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
43689         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
43690         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43691         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
43692         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
43693         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
43694         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
43695         * m4/readutmp.m4 (gl_READUTMP): Likewise.
43696         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
43697         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
43698         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
43699         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
43700         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
43701         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
43702         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
43703         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
43704         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
43705         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43706         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
43707         so that lock.m4 can be used in gettext without extensions module.
43708
43709 2007-09-11  Bruno Haible  <bruno@clisp.org>
43710
43711         * m4/isc-posix.m4: Remove file.
43712         Suggested by Eric Blake.
43713
43714 2007-09-11  Eric Blake  <ebb9@byu.net>
43715
43716         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
43717
43718 2007-09-10  Bruno Haible  <bruno@clisp.org>
43719
43720         * posix-modules: Fix typo in error message.
43721         Reported by Matt <mkraai@beckman.com>.
43722
43723 2007-09-09  Bruno Haible  <bruno@clisp.org>
43724
43725         * doc/functions/getdelim.texi: Update list of platforms lacking the
43726         function.
43727         * doc/functions/getline.texi: Likewise.
43728
43729 2007-09-09  Jim Meyering  <jim@meyering.net>
43730
43731         * lib/hash.c (hash_initialize): Detect calloc failure.
43732         Reported by Bruno Haible.
43733
43734 2007-09-09  Bruno Haible  <bruno@clisp.org>
43735
43736         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
43737         malloc or realloc fails.
43738
43739 2007-09-09  Bruno Haible  <bruno@clisp.org>
43740
43741         * modules/getcwd (Depends-on): Add malloc-posix.
43742         * modules/glob (Depends-on): Likewise.
43743         * modules/putenv (Depends-on): Likewise.
43744         * modules/strdup (Depends-on): Likewise.
43745         * modules/getdelim (Depends-on): Add realloc-posix.
43746         * modules/read-file (Depends-on): Likewise.
43747
43748 2007-09-09  Bruno Haible  <bruno@clisp.org>
43749
43750         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
43751         (gl_FUNC_MALLOC_POSIX): Require it.
43752         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
43753         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
43754         * modules/realloc (Files): Add m4/malloc.m4.
43755         * modules/calloc (Files): Likewise.
43756
43757 2007-09-09  Bruno Haible  <bruno@clisp.org>
43758
43759         * modules/malloc-posix: New file.
43760         * modules/malloc (Depends-on): Add malloc-posix.
43761         * lib/malloc.c: Include errno.h.
43762         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
43763         and a POSIX-compatible malloc into a single function. Set ENOMEM
43764         when returning NULL.
43765         * m4/malloc.m4: New file.
43766         * doc/functions/malloc.texi: Mention the malloc-posix module.
43767         * lib/stdlib_.h (malloc): New declaration.
43768         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
43769         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
43770         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
43771         and HAVE_MALLOC_POSIX.
43772
43773 2007-09-09  Bruno Haible  <bruno@clisp.org>
43774
43775         * modules/realloc-posix: New file.
43776         * modules/realloc (Depends-on): Add realloc-posix.
43777         * lib/realloc.c: Include errno.h.
43778         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
43779         and a POSIX-compatible realloc into a single function. Set ENOMEM
43780         when returning NULL.
43781         * m4/realloc.m4: New file.
43782         * doc/functions/realloc.texi: Mention the realloc-posix module.
43783         * lib/stdlib_.h (realloc): New declaration.
43784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
43785         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
43786         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
43787         and HAVE_REALLOC_POSIX.
43788
43789 2007-09-09  Bruno Haible  <bruno@clisp.org>
43790
43791         * modules/calloc-posix: New file.
43792         * modules/calloc (Depends-on): Add calloc-posix.
43793         * lib/calloc.c: Include errno.h.
43794         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
43795         and a POSIX-compatible calloc into a single function. Set ENOMEM
43796         when returning NULL.
43797         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
43798         * doc/functions/calloc.texi: Mention the calloc-posix module.
43799         * lib/stdlib_.h (calloc): New declaration.
43800         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
43801         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
43802         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
43803         and HAVE_CALLOC_POSIX.
43804
43805 2007-09-09  Bruno Haible  <bruno@clisp.org>
43806
43807         Allow for modules to show an arbitrary notice.
43808         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
43809         * gnulib-tool: New option --extract-notice.
43810         (func_usage): Document it.
43811         (sed_extract_prog): Update.
43812         (func_get_notice): New function.
43813         (func_modules_notice): New function.
43814         (func_import, func_create_testdir): Invoke it.
43815         Suggested by Jim Meyering.
43816
43817 2007-09-09  Bruno Haible  <bruno@clisp.org>
43818
43819         * gnulib-tool: New options --verbose, --quiet.
43820         (func_usage): Document them.
43821         (verbose): New variable.
43822         (func_execute_command): New function.
43823         (func_import): Don't show the module list and the file list if
43824         $verbose < 0.
43825         (func_create_testdir): Likewise. Use func_execute_command.
43826         (func_create_megatestdir): Use func_execute_command.
43827
43828 2007-09-08  Bruno Haible  <bruno@clisp.org>
43829
43830         * gnulib-tool (func_import): Prefer rsync over wget when available,
43831         for fetching the PO files.
43832
43833 2007-09-08  Bruno Haible  <bruno@clisp.org>
43834
43835         * posix-modules: New file. Portions copied from gnulib-tool.
43836         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
43837
43838 2007-09-08  Jim Meyering  <jim@meyering.net>
43839
43840         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
43841         * lib/fpending.h: Rename from __fpending.h.
43842         * lib/fpending.c: Rename from __fpending.c.
43843         Include "fpending.h", not "__fpending.h".
43844         * lib/__fpending.h, lib/__fpending.c: Remove files.
43845         * modules/fpending (Files): Reflect new file names.
43846         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
43847
43848 2007-09-08  Bruno Haible  <bruno@clisp.org>
43849
43850         * m4/inttypes-h.m4: Remove stub file.
43851
43852 2007-09-07  Simon Josefsson  <simon@josefsson.org>
43853
43854         * doc/headers/stdint.texi: Discuss #include_next issue.
43855
43856 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
43857
43858         * build-aux/bootstrap: Remove obsolete comment about wget --help.
43859
43860 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43861
43862         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
43863         in variable name.
43864
43865 2007-09-03  Jim Meyering  <jim@meyering.net>
43866
43867         New module: git-version-gen.
43868         * modules/git-version-gen: New file.
43869
43870         Import changes from coreutils for bootstrap script.
43871
43872         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
43873
43874         bootstrap: uses rsync to download the .po files
43875         * build-aux/bootstrap (po_download_command_format): New global.
43876         (download_po_files): Use rsync.
43877         (update_po_files): Don't remove .po files after download,
43878         so future rsync runs can take advantage of the copies.
43879
43880         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
43881
43882         Solve the unnecessary-.po-file-regeneration problem once and for all.
43883         * build-aux/bootstrap (download_po_files): New function, renamed from
43884         get_translations.  Now, downloads, but doesn't update LINGUAS.
43885         (update_po_files): New function.
43886
43887         bootstrap: Ignore more.
43888         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
43889         uniwidth to e.g., lib/.gitignore.
43890         (slurp): Handle the sys_stat_.h -> sys mapping, too.
43891
43892         * build-aux/bootstrap: New setting: vc_ignore.
43893         (insert_sorted_if_absent): Create $file if absent.
43894         Adapt to new, possibly empty, list: $vc_ignore.
43895
43896         bootstrap: generate more ignorable names
43897         * build-aux/bootstrap (slurp): When generating ignorable names,
43898         also map .sin to .sed, .gperf to .c, and .y to .c.
43899
43900 2007-09-03  Jim Meyering  <jim@meyering.net>
43901
43902         * build-aux/git-version-gen: New file, from coreutils.  For details, see
43903         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
43904
43905 2007-09-02  Bruno Haible  <bruno@clisp.org>
43906
43907         Fix mis-recognition of 'mcs' on QNX 6.
43908         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
43909         output contains the string "Mono".
43910         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
43911         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
43912
43913 2007-09-01  Bruno Haible  <bruno@clisp.org>
43914
43915         Fix collision between uniwidth/* and linebreak modules.
43916         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
43917         u32_width): Remove declarations.
43918         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
43919         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
43920         streq3, streq2, streq1, streq0): Remove functions.
43921         (STREQ): Remove macro.
43922         (is_cjk_encoding): Remove function.
43923         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
43924         (uc_width, u8_width, u16_width, u32_width): Remove functions.
43925         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
43926         * NEWS: Document the change.
43927
43928 2007-09-01  Bruno Haible  <bruno@clisp.org>
43929
43930         * lib/streq.h: Add double-inclusion guard.
43931
43932 2007-09-01  Karl Berry  <karl@gnu.org>
43933
43934         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
43935
43936 2007-08-28  Jim Meyering  <jim@meyering.net>
43937
43938         Rename mreadlink_with_size to areadlink_with_size.
43939         * NEWS: Document the change.
43940         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
43941         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
43942         * lib/mreadlink.h: Rename this to...
43943         * lib/areadlink.h: ...this.
43944         * modules/mreadlink-with-size: Rename this to...
43945         * modules/areadlink-with-size: ...this.
43946         * lib/canonicalize.c: Reflect the renaming.
43947         * modules/canonicalize: Likewise.
43948
43949 2007-08-26  Bruno Haible  <bruno@clisp.org>
43950
43951         * gnulib-tool (func_import): When deciding which files to remove,
43952         consider also dangling symbolic links.
43953         Reported by Eric Blake.
43954
43955 2007-08-26  Bruno Haible  <bruno@clisp.org>
43956
43957         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
43958
43959 2007-08-23  Simon Josefsson  <simon@josefsson.org>
43960
43961         * lib/readline.c: Don't include getline.h, the prototype is now
43962         found in stdio.h.
43963
43964 2007-08-23  Jim Meyering  <jim@meyering.net>
43965
43966         Getdelim touchup.
43967         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
43968         around the funlockfile call, since funlockfile never sets errno.
43969         Don't set errno upon failed realloc.
43970
43971 2007-08-22  Eric Blake  <ebb9@byu.net>
43972
43973         Getline touchups.
43974         * lib/getdelim.c (getdelim): Revert regression that required *n to
43975         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
43976         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
43977         getdelim, rather than whether implementation is missing.
43978         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
43979         * lib/stdio_.h (getline): Also declare if replacement is
43980         required.
43981         * doc/functions/getdelim.texi: New file.
43982         * doc/functions/getline.texi: Likewise.
43983         * doc/gnulib.texi (Function Substitutes): Add new files.
43984         Reported by Bruno Haible.
43985
43986 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
43987
43988         * users.txt: Add Guile.
43989
43990 2007-08-22  Eric Blake  <ebb9@byu.net>
43991
43992         * tests/test-getdelim.c (main): Use remove, not unlink.
43993         * tests/test-getline.c (main): Likewise.
43994
43995         Move getline and getdelim into stdio.h, per POSIX 200x.
43996         * modules/getline (Files): Remove getline.h.
43997         (Depends-on): Add stdio.
43998         (configure.ac): Add module indicator.
43999         * modules/getdelim (Files): Remove getdelim.h.
44000         (Depends-on): Add stdio.
44001         (configure.ac): Add module indicator.
44002         * modules/stdio (Makefile.am): Work with new indicators.
44003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44004         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
44005         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44006         * lib/getdelim.h: Delete.
44007         * lib/getline.h: Delete.
44008         * lib/stdio_.h (getdelim, getline): Declare.
44009         * modules/getdelim-tests: New module.
44010         * modules/getline-tests: Likewise.
44011         * tests/test-getdelim.c: New file.
44012         * tests/test-getline.c: Likewise.
44013         * NEWS: Document the change.
44014         * lib/getline.c: Update choice of header.
44015         * lib/csharpcomp.c: Likewise.
44016         * lib/getpass.c: Likewise.
44017         * lib/javacomp.c: Likewise.
44018         * lib/javaversion.c: Likewise.
44019         * lib/yesno.c: Likewise.
44020         * lib/getdelim.c: Likewise.
44021         (getdelim): Set errno on failure, and avoid memory leak.
44022
44023 2007-08-19  Bruno Haible  <bruno@clisp.org>
44024
44025         * modules/closein (Depends-on): Add freadahead.
44026         * lib/closein.c: Include freadahead.h.
44027         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
44028         is zero.
44029
44030 2007-08-19  Bruno Haible  <bruno@clisp.org>
44031
44032         * modules/freadahead-tests: New file.
44033         * tests/test-freadahead.sh: New file.
44034         * tests/test-freadahead.c: New file.
44035
44036         * modules/freadahead: New file.
44037         * lib/freadahead.h: New file.
44038         * lib/freadahead.c: New file.
44039         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
44040         fbufmode, fpurge, freadable, fwritable.
44041
44042 2007-08-19  Eric Blake  <ebb9@byu.net>
44043
44044         Test yesno in combination with closein.
44045         * lib/yesno.c (yesno): Document use of stdin.
44046         * modules/yesno-tests (Files): New module.
44047         * tests/test-yesno.c (main): New file.
44048         * tests/test-yesno.sh: Likewise.
44049
44050 2007-08-19  Bruno Haible  <bruno@clisp.org>
44051
44052         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
44053         * lib/fseeko.c (rpl_fseeko): Likewise.
44054         * lib/fseterr.c (fseterr): Likewise.
44055
44056 2007-08-19  Bruno Haible  <bruno@clisp.org>
44057
44058         * tests/test-lseek.c (main): Disable a test for BeOS.
44059         * doc/functions/lseek.texi: Document the BeOS bug.
44060
44061 2007-08-19  Bruno Haible  <bruno@clisp.org>
44062             Eric Blake  <ebb9@byu.net>
44063
44064         * lib/lseek.c: Include <sys/stat.h>.
44065         (rpl_lseek): Add workaround code also for Unix platforms.
44066         Needed for BeOS.
44067         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
44068         * doc/functions/lseek.texi: Document BeOS definiency.
44069
44070 2007-08-18  Bruno Haible  <bruno@clisp.org>
44071
44072         * modules/fstrcmp-tests: New file.
44073         * tests/test-fstrcmp.c: New file.
44074
44075 2007-08-18  Bruno Haible  <bruno@clisp.org>
44076
44077         * modules/fstrcmp: New file, from GNU gettext with modifications.
44078         * lib/fstrcmp.h: New file, from GNU gettext.
44079         * lib/fstrcmp.c: New file, from GNU gettext.
44080         * MODULES.html.sh (String handling): Add fstrcmp.
44081
44082 2007-08-18  Bruno Haible  <bruno@clisp.org>
44083
44084         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
44085         'bool'.
44086         (diag, compareseq): Remove const from the ctxt argument.
44087         (USE_HEURISTIC): Undefine at the end.
44088
44089 2007-08-18  Jim Meyering  <jim@meyering.net>
44090
44091         New file: lib/idcache.h
44092         * NEWS: Mention the addition.
44093         * modules/idcache (Files): Add lib/idcache.h
44094         * lib/idcache.c: Include "idcache.h".
44095         Don't include <sys/types.h>.
44096         Add a FIXME comment.
44097         Move file-scoped "static" declarations to the top.
44098         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
44099
44100 2007-08-17  Bruno Haible  <bruno@clisp.org>
44101         and Paul Eggert  <eggert@cs.ucla.edu>
44102
44103         * MODULES.html.sh: Add diffseq.
44104         * modules/diffseq: New file.
44105         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
44106         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
44107
44108 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44109
44110         Import changes from coreutils for bootstrap script.
44111
44112         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
44113
44114         * build-aux/bootstrap (slurp): Work even in environments where
44115         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
44116         current code does not slurp files whose names start with ".", and
44117         this looks like it might be a troublesome area.
44118
44119         2007-07-11  Jim Meyering  <jim@meyering.net>
44120
44121         If there's a GPL vN copyright comment, require that N == 3.
44122
44123         2007-07-08  Jim Meyering  <jim@meyering.net>
44124
44125         Run the coreutils-specific code only if tests/Makefile.am.in exists.
44126         * build-aux/bootstrap (mam_template): Move definition out of loop.
44127
44128         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
44129
44130         * build-aux/bootstrap (symlink_to_dir): Rename function from
44131         symlink_to_gnulib.  Add a directory parameter.  Update all
44132         callers.
44133         (cp_mark_as_generated): Also check for -- and link to -- files in
44134         gl/.
44135
44136         2007-07-08  Jim Meyering  <jim@meyering.net>
44137
44138         Adapt to deeper hierarchy in gnulib.
44139         * build-aux/bootstrap (symlink_to_dir): If the destination
44140         directory doesn't exist, create it. This is required at least for
44141         "lib/uniwidth/cjk.h".
44142
44143         2007-05-15  Jim Meyering  <jim@meyering.net>
44144
44145         * build-aux/bootstrap: Now that generated Makefile.am files
44146         are no longer under version control, they must be created at
44147         bootstrap time.
44148
44149 2007-08-14  Ben Pfaff  <blp@gnu.org>
44150
44151         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
44152
44153 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44154
44155         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
44156         given the changes below.
44157         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
44158         even on hosts that have padding bits beyond the supported 64.
44159
44160 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44161
44162         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
44163         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
44164         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
44165         depends on it.
44166         (xstrtol_error): Remove.
44167         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
44168         but with a different signature.
44169         (ATTRIBUTE_NORETURN, __attribute__): New macros.
44170         * lib/xstrtol-error.c: Include exitfail.h.
44171         (xstrtol_fatal): New function, with a different signature from the
44172         old xstrtol_error, so that the caller need not worry about passing
44173         in an exit status, or about storage management of the option argument.
44174         (xstrtol_error): Now a static function.  Redo signature to
44175         implement xstrtol_fatal.  Output the correct number of hyphens in
44176         front of the option so that the caller need not worry about
44177         storage management.
44178         (N_): New macro.
44179         (_): Remove; not used now.
44180         * modules/xstrtol: Depend on getopt.
44181         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
44182         of old STRTOL_FATAL_ERROR macro.
44183         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
44184         of test program.
44185         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
44186         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
44187
44188 2007-08-08  Eric Blake  <ebb9@byu.net>
44189
44190         * lib/xstrtol-error.c: Add missing include.
44191
44192         Move xstrtol messages into gnulib domain, when --pobase is used.
44193         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
44194         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
44195         * modules/xstrtol (Files): Distribute new file.
44196         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
44197         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
44198         * tests/test-xstrtol.c: ...into new file.
44199         * tests/test-xstrtoul.c: Also test xstrtoul.
44200         * tests/test-xstrtoimax.c: Also test xstrtoimax.
44201         * tests/test-xstrtoumax.c: Also test xstrtoumax.
44202         * tests/test-xstrtol.sh: Drive the tests.
44203         * tests/test-xstrtoimax.sh: Likewise.
44204         * tests/test-xstrtoumax.sh: Likewise.
44205         * modules/xstrtol-tests: New module.
44206         * modules/xstrtoimax-tests: Likewise.
44207         * modules/xstrtoumax-tests: Likewise.
44208
44209 2007-08-08  Jim Meyering  <jim@meyering.net>
44210
44211         New function: mfile_name_concat.
44212         * lib/filenamecat.c (mfile_name_concat): New function, just like
44213         file_name_concat, but return NULL upon failure rather than exiting
44214         with a diagnostic.
44215         * lib/filenamecat.h: Declare it.
44216
44217 2007-08-07  Bruno Haible  <bruno@clisp.org>
44218
44219         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
44220         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
44221         warning from gcc.
44222         Reported by Eric Blake.
44223
44224 2007-08-07  Simon Josefsson  <simon@josefsson.org>
44225
44226         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
44227         * modules/crypto/arcfour (License): Likewise.
44228         * modules/crypto/des-tests (License): Likewise.
44229         * modules/crypto/gc-arctwo-tests (License): Likewise.
44230         * modules/crypto/gc-des-tests (License): Likewise.
44231         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
44232         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
44233         * modules/crypto/gc-md2-tests (License): Likewise.
44234         * modules/crypto/gc-md4-tests (License): Likewise.
44235         * modules/crypto/gc-md5-tests (License): Likewise.
44236         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
44237         * modules/crypto/gc-rijndael-tests (License): Likewise.
44238         * modules/crypto/gc-sha1-tests (License): Likewise.
44239         * modules/crypto/gc-tests (License): Likewise.
44240         * modules/crypto/hmac-md5 (License): Likewise.
44241         * modules/crypto/hmac-sha1 (License): Likewise.
44242         * modules/crypto/md2-tests (License): Likewise.
44243         * modules/crypto/md4-tests (License): Likewise.
44244         * modules/crypto/md5 (License): Likewise.
44245         * modules/crypto/rijndael (License): Likewise.
44246         * modules/crypto/sha1 (License): Likewise.
44247         * modules/memxor (License): Likewise.
44248
44249 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
44250         and Bruno Haible  <bruno@clisp.org>
44251
44252         * NEWS: Describe interface changes to human, xstrtol.
44253         * lib/human.h: Include <xstrtol.h>.
44254         (human_options): Return enum strtol_error, not int.  Remove
44255         bool arg; take int * instead.
44256         * lib/human.c: Don't include "gettext.h".
44257         (_): Remove; no longer used.
44258         Don't include <xstrtol.h>, since human.h does it.
44259         (human_options): Adjust to abovementioned interface changes.
44260         Do not report error to stderr; that's now the caller's
44261         responsibility.
44262         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
44263         interface change.
44264         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
44265         Str, Argument_type_string.  All uses changed.  Put " argument"
44266         in diagnostics to make them clearer.  Change wording of suffix
44267         message for clarity.
44268         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
44269         Argument_type_string.
44270         (STRTOL_FATAL_WARN): Remove; no longer used.
44271         * modules/human (Depends-on): Remove gettext-h.
44272
44273 2007-08-06  Simon Josefsson  <simon@josefsson.org>
44274
44275         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
44276
44277 2007-07-31  Bruno Haible  <bruno@clisp.org>
44278
44279         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
44280         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
44281         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
44282
44283 2007-07-31  Bruno Haible  <bruno@clisp.org>
44284
44285         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
44286         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
44287
44288 2007-07-30  Bruno Haible  <bruno@clisp.org>
44289
44290         * modules/base64 (License): Use the synonymous term "LGPLv2+".
44291         * modules/c-ctype (License): Likewise.
44292         * modules/c-strcase (License): Likewise.
44293         * modules/check-version (License): Likewise.
44294         * modules/iconv (License): Likewise.
44295         * modules/iconv_open (License): Likewise.
44296         * modules/read-file (License): Likewise.
44297         * modules/striconv (License): Likewise.
44298         * modules/strverscmp (License): Likewise.
44299         * modules/vasprintf (License): Likewise.
44300         * modules/crypto/des (License): Likewise.
44301         * modules/crypto/gc (License): Likewise.
44302         * modules/crypto/gc-arcfour (License): Likewise.
44303         * modules/crypto/gc-arctwo (License): Likewise.
44304         * modules/crypto/gc-des (License): Likewise.
44305         * modules/crypto/gc-hmac-md5 (License): Likewise.
44306         * modules/crypto/gc-hmac-sha1 (License): Likewise.
44307         * modules/crypto/gc-md2 (License): Likewise.
44308         * modules/crypto/gc-md4 (License): Likewise.
44309         * modules/crypto/gc-md5 (License): Likewise.
44310         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
44311         * modules/crypto/gc-random (License): Likewise.
44312         * modules/crypto/gc-rijndael (License): Likewise.
44313         * modules/crypto/gc-sha1 (License): Likewise.
44314         * modules/crypto/md2 (License): Likewise.
44315         * modules/crypto/md4 (License): Likewise.
44316
44317 2007-07-30  Jim Meyering  <jim@meyering.net>
44318
44319         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
44320         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
44321         it has valid stat data.  This bug would cause du not to count the
44322         sizes of inaccessible directories.
44323         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
44324         in <http://bugzilla.redhat.com/250077>.
44325
44326 2007-07-25  Peter O'Gorman  <peter@pogma.com>
44327             Bruno Haible  <bruno@clisp.org>
44328
44329         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
44330         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
44331         #include_next, gives a diagnostic about it, but reports no error in
44332         the exit code.
44333         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44334
44335 2007-07-24  Ben Pfaff  <blp@gnu.org>
44336
44337         Improve name: "count-one-bits" is better than "popcount".
44338         * MODULES.html.sh: Update name.
44339         * lib/popcount.h: Renamed lib/count-one-bits.h.
44340         (popcount): Renamed count_one_bits.
44341         (popcountl): Renamed count_one_bits_l.
44342         (popcountll): Renamed count_one_bits_ll.
44343         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
44344         * modules/popcount: Renamed module/count-one-bits.
44345         * modules/popcount-tests: Renamed module/count-one-bits-tests.
44346         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
44347
44348 2007-07-23  Ben Pfaff  <blp@gnu.org>
44349
44350         * lib/popcount.h (popcount32): Reduce size of constants, to allow
44351         better code generation, and add U to large constants to avoid
44352         warnings, in non-GCC case.
44353         Suggested by Bruno Haible.
44354
44355 2007-07-23  Ben Pfaff  <blp@gnu.org>
44356
44357         * lib/popcount.h: Use verify_true instead of if...abort.
44358         * modules/popcount: Depend on verify module.
44359         Suggested by Jim Meyering.
44360
44361 2007-07-23  Bruno Haible  <bruno@clisp.org>
44362
44363         * gnulib-tool (func_import): Create a .cvsignore file also when the
44364         directory is not yet in CVS but the toplevel directory is. When
44365         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
44366         Reported by Karl Berry.
44367
44368 2007-07-22  Ben Pfaff  <blp@gnu.org>
44369
44370         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
44371         case.
44372         Suggested by Eric Blake.
44373
44374 2007-07-22  Ben Pfaff  <blp@gnu.org>
44375
44376         New module: popcount.
44377         * MODULES.html.sh: Add popcount.
44378         * modules/popcount: New file.
44379         * modules/popcount-tests: New file.
44380         * tests/test-popcount.c: New file.
44381         * lib/popcount.h: New file.
44382         * m4/popcount.m4: New file.
44383
44384 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44385
44386         * build-aux/announce-gen: Update to GPLv3.
44387
44388         * build-aux/config.guess: Update from config.
44389
44390 2007-07-21  Bruno Haible  <bruno@clisp.org>
44391
44392         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
44393         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
44394
44395 2007-07-20  Jim Meyering  <jim@meyering.net>
44396
44397         * check-module: Diagnose a self-dependency.
44398
44399 2007-07-19  Bruno Haible  <bruno@clisp.org>
44400
44401         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
44402         empty.
44403         Reported by Eric Blake.
44404
44405 2007-07-18  Bruno Haible  <bruno@clisp.org>
44406
44407         * gnulib-tool: New options --po-base, --po-domain.
44408         (func_usage): Document them.
44409         (pobase, po_domain): New variables.
44410         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
44411         DEFAULT_TEXT_DOMAIN.
44412         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
44413         (func_import): Consider pobase and po_domain. Create a po/ directory.
44414         (func_create_testdir): Set pobase and po_domain to empty.
44415         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
44416         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
44417
44418 2007-07-18  Bruno Haible  <bruno@clisp.org>
44419
44420         * gnulib-tool (func_get_automake_snippet): Synthesize also an
44421         EXTRA_DIST augmentation for files in build-aux/.
44422
44423 2007-07-16  Bruno Haible  <bruno@clisp.org>
44424
44425         * modules/lseek (License): Use the synonymous term "LGPLv2+".
44426         * modules/getdelim (License): Likewise.
44427
44428 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44429
44430         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
44431         * modules/d-type (License): Likewise.
44432         * modules/extensions (License): Likewise.
44433         * modules/fnmatch (License): Likewise.
44434         * modules/fseeko (License): Likewise.
44435         * modules/getaddrinfo (License): Likewise.
44436         * modules/getline (License): Likewise.
44437         * modules/getlogin_r (License): Likewise.
44438         * modules/getpass (License): Likewise.
44439         * modules/gettimeofday (License): Likewise.
44440         * modules/glob (License): Likewise.
44441         * modules/inet_ntop (License): Likewise.
44442         * modules/malloc (License): Likewise.
44443         * modules/malloca (License): Likewise.
44444         * modules/memmem (License): Likewise.
44445         * modules/mempcpy (License): Likewise.
44446         * modules/memset (License): Likewise.
44447         * modules/minmax (License): Likewise.
44448         * modules/mktime (License): Likewise.
44449         * modules/netinet_in (License): Likewise.
44450         * modules/pathmax (License): Likewise.
44451         * modules/poll (License): Likewise.
44452         * modules/regex (License): Likewise.
44453         * modules/snprintf (License): Likewise.
44454         * modules/stdbool (License): Likewise.
44455         * modules/stdint (License): Likewise.
44456         * modules/stdio (License): Likewise.
44457         * modules/strcase (License): Likewise.
44458         * modules/strcasestr (License): Likewise.
44459         * modules/strdup (License): Likewise.
44460         * modules/string (License): Likewise.
44461         * modules/strndup (License): Likewise.
44462         * modules/strnlen (License): Likewise.
44463         * modules/strpbrk (License): Likewise.
44464         * modules/strptime (License): Likewise.
44465         * modules/strsep (License): Likewise.
44466         * modules/sys_select (License): Likewise.
44467         * modules/sys_socket (License): Likewise.
44468         * modules/sys_stat (License): Likewise.
44469         * modules/sys_time (License): Likewise.
44470         * modules/time (License): Likewise.
44471         * modules/time_r (License): Likewise.
44472         * modules/timegm (License): Likewise.
44473         * modules/unistd (License): Likewise.
44474         * modules/vsnprintf (License): Likewise.
44475         * modules/wctype (License): Likewise.
44476
44477 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44478
44479         * modules/argz (License): LGPLv2+.
44480
44481 2007-07-15  Karl Berry  <karl@gnu.org>
44482
44483         * doc/gnulib.texi: revise node structure per new fdl.texi.
44484
44485 2007-07-14  Bruno Haible  <bruno@clisp.org>
44486
44487         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
44488         the output file.
44489         * lib/uniname/uninames.h: Regenerated.
44490
44491 2007-07-14  Karl Berry  <karl@gnu.org>
44492
44493         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
44494         omitting sectioning and index commands.
44495
44496 2007-07-13  Bruno Haible  <bruno@clisp.org>
44497
44498         New gnulib-tool option --more-symlinks.
44499         * gnulib-tool (func_usage): Document --more-symlinks.
44500         (do_copyrights): New variable.
44501         Recognize option --more-symlinks.
44502         (func_import): Don't add a copyright notice transform to
44503         sed_transform_lib_file if do_copyrights is empty.
44504
44505 2007-07-13  Bruno Haible  <bruno@clisp.org>
44506
44507         * lib/vasnprintf.c (decimal_point_char): Define also if
44508         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
44509         && !NEED_PRINTF_DIRECTIVE_A.
44510         Reported by Clemens Koller <clemens.koller@anagramm.de> via
44511         Gary V. Vaughan <gary@gnu.org>.
44512
44513 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
44514
44515         * lib/inttypes_.h: Undo previous change, since it was fixed
44516         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
44517
44518 2007-07-13  Bruno Haible  <bruno@clisp.org>
44519
44520         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
44521         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
44522
44523 2007-07-13  Jim Meyering  <jim@meyering.net>
44524
44525         df: Don't fail for Tru64's "file-on-file mount".
44526         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
44527         so we fall through and use statfs instead.  Details here:
44528         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
44529         Reported by Albert Chin.
44530
44531 2007-07-13  Bruno Haible  <bruno@clisp.org>
44532
44533         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
44534         * modules/configmake (License): Likewise.
44535         * modules/gettext (License): Likewise.
44536         * modules/gettext-h (License): Likewise.
44537         * modules/include_next (License): Likewise.
44538         * modules/link-warning (License): Likewise.
44539         * modules/localcharset (License): Likewise.
44540         * modules/localename (License): Likewise.
44541         * modules/lock (License): Likewise.
44542         * modules/relocatable-lib-lgpl (License): Likewise.
44543         * modules/size_max (License): Likewise.
44544         * modules/vasnprintf (License): Likewise.
44545         * modules/wchar (License): Likewise.
44546         * modules/xsize (License): Likewise.
44547
44548 2007-07-13  Bruno Haible  <bruno@clisp.org>
44549
44550         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
44551         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
44552
44553 2007-07-12  Bruno Haible  <bruno@clisp.org>
44554
44555         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
44556         in the modules files.
44557
44558 2007-07-11  Karl Berry  <karl@gnu.org>
44559
44560         * MODULES.html.sh (func_module): use
44561          sed -e '\|^'"${includefile}"'$|d'
44562          instead of /.../d, to avoid errors on $includefile's containing /.
44563
44564 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
44565
44566         * gnulib-tool (func_import): Avoid duplication of --avoid
44567         statements
44568         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
44569         names to `_' in variable names.
44570
44571 2007-07-10  Eric Blake  <ebb9@byu.net>
44572
44573         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
44574         * NEWS: Document this change.
44575
44576 2007-07-08  Bruno Haible  <bruno@clisp.org>
44577
44578         Update to Unicode 5.0.
44579         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
44580         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
44581         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
44582         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
44583         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
44584         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
44585         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
44586         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
44587         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
44588         U+10A3F, U+1D242..U+1D244.
44589         (nonspacing_table_ind): Update.
44590         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
44591         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
44592
44593 2007-07-08  Bruno Haible  <bruno@clisp.org>
44594
44595         Update to Unicode 5.0.
44596         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
44597         code transform. Extend the name index field of unicode_name_to_code and
44598         unicode_code_to_name from 16 to 24 bits.
44599         * lib/uniname/uniname.c (unicode_character_name,
44600         unicode_name_character): Add the range 0x12xxx to the code transform.
44601         * lib/uniname/uninames.h: Regenerated.
44602         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
44603
44604 2007-07-07  Bruno Haible  <bruno@clisp.org>
44605
44606         * modules/wcwidth-tests: New file.
44607         * tests/test-wcwidth.c: New file.
44608
44609         Work around MacOS X wcwidth() bug.
44610         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
44611         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
44612         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
44613         original wcwidth in non-UTF-8 locales.
44614         * modules/wcwidth (Depends-on): Add localcharset, streq,
44615         uniwidth/width.
44616         * doc/functions/wcwidth.texi: Update.
44617
44618 2007-07-07  Bruno Haible  <bruno@clisp.org>
44619
44620         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
44621         (wcwidth): New declaration.
44622         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
44623         macros.
44624         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
44625         here. Prepare for creating <wchar.h> unconditionally.
44626         * modules/wchar (Depends-on): Add link-warning.
44627         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
44628         REPLACE_WCWIDTH, and GL_LINK_WARNING.
44629         * lib/wcwidth.h: Remove file.
44630         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
44631         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
44632         * modules/wcwidth (Files): Remove lib/wcwidth.h.
44633         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
44634         (Include): Replace wcwidth.h with <wchar.h>.
44635         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
44636         * lib/mbchar.h: Don't include wcwidth.h.
44637         * lib/mbswidth.c: Likewise.
44638         * NEWS: Mention the change.
44639
44640 2007-07-07  Bruno Haible  <bruno@clisp.org>
44641
44642         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
44643         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
44644         definition with an external declaration.
44645         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
44646         defined as a function. Remove AC_C_INLINE requirement.
44647         * modules/wcwidth (Files): Add lib/wcwidth.c.
44648         (Makefile.am): Remove redundant statement.
44649
44650 2007-07-07  Bruno Haible  <bruno@clisp.org>
44651
44652         * MODULES.html.sh (Unicode string functions): Add the new modules.
44653
44654         * tests/uniwidth/test-u32-strwidth.c: New file.
44655         * modules/uniwidth/u32-strwidth-tests: New file.
44656
44657         * lib/uniwidth/u32-strwidth.c: New file.
44658         * modules/uniwidth/u32-strwidth: New file.
44659
44660         * tests/uniwidth/test-u16-strwidth.c: New file.
44661         * modules/uniwidth/u16-strwidth-tests: New file.
44662
44663         * lib/uniwidth/u16-strwidth.c: New file.
44664         * modules/uniwidth/u16-strwidth: New file.
44665
44666         * tests/uniwidth/test-u8-strwidth.c: New file.
44667         * modules/uniwidth/u8-strwidth-tests: New file.
44668
44669         * lib/uniwidth/u8-strwidth.c: New file.
44670         * modules/uniwidth/u8-strwidth: New file.
44671
44672         * tests/uniwidth/test-u32-width.c: New file.
44673         * modules/uniwidth/u32-width-tests: New file.
44674
44675         * lib/uniwidth/u32-width.c: New file.
44676         * modules/uniwidth/u32-width: New file.
44677
44678         * tests/uniwidth/test-u16-width.c: New file.
44679         * modules/uniwidth/u16-width-tests: New file.
44680
44681         * lib/uniwidth/u16-width.c: New file.
44682         * modules/uniwidth/u16-width: New file.
44683
44684         * tests/uniwidth/test-u8-width.c: New file.
44685         * modules/uniwidth/u8-width-tests: New file.
44686
44687         * lib/uniwidth/u8-width.c: New file.
44688         * modules/uniwidth/u8-width: New file.
44689
44690         * tests/uniwidth/test-uc_width.c: New file.
44691         * modules/uniwidth/width-tests: New file.
44692
44693         * lib/uniwidth/width.c: New file, from GNU libiconv.
44694         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
44695         * modules/uniwidth/width: New file.
44696
44697         * lib/uniwidth.h: New file, from GNU libiconv.
44698         * modules/uniwidth/base: New file.
44699
44700 2007-07-07  Bruno Haible  <bruno@clisp.org>
44701
44702         * lib/uniname.h: New file, from GNU gettext.
44703         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
44704         * lib/uniname/uninames.h: New file, from GNU gettext.
44705         * lib/uniname/uniname.c: New file, from GNU gettext.
44706         * tests/uniname/test-uninames.sh: New file.
44707         * tests/uniname/test-uninames.c: New file, from GNU gettext.
44708         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
44709         * modules/uniname/base: New file.
44710         * modules/uniname/uniname: New file.
44711         * modules/uniname/uniname-tests: New file.
44712         * MODULES.html.sh (Unicode string functions): Add the new modules.
44713
44714 2007-07-06  Bruno Haible  <bruno@clisp.org>
44715
44716         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
44717
44718 2007-07-06  Bruno Haible  <bruno@clisp.org>
44719
44720         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
44721         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
44722         includes <cygwin/sys_time.h> which includes <sys/select.h> which
44723         include <sys/time.h>.
44724         Reported by Eric Blake.
44725
44726 2007-07-06  Eric Blake  <ebb9@byu.net>
44727
44728         Fix testing canonicalize on cygwin.
44729         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
44730         Revert patch from 2007-06-19.
44731         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
44732         canonicalize module is also in use.
44733         * tests/test-canonicalize.c: New file.
44734         * tests/test-canonicalize.sh: Likewise.
44735         * modules/canonicalize-tests: Likewise.
44736
44737 2007-07-06  Jim Meyering  <jim@meyering.net>
44738
44739         * lib/getugroups.c (getugroups): Detect getgrent failure.
44740         Adjust comment to reflect reality: this function may return -1.
44741
44742 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
44743
44744         * build-aux/bootstrap (TP_URL,get_translations): Update to use
44745         the new TP address.
44746         (usage): Fix typo
44747         (gnulib_mk): New variable.
44748
44749 2007-07-05  Jim Meyering  <jim@meyering.net>
44750
44751         Don't let endgrent clobber errno, no matter how improbable.
44752         * lib/getugroups.c (getugroups): Save and restore errno around
44753         endgrent call.
44754
44755         Close the group DB even when failing with 2^31 or more members.
44756         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
44757
44758 2007-07-04  Jim Meyering  <jim@meyering.net>
44759
44760         * lib/getugroups.h: New file.
44761         * lib/getugroups.c: Include "getugroups.h".
44762         Remove uses of "register" keyword.
44763         Move local variable, "cp", down into scope where used.
44764         Give "username" parameter the "const" attribute.
44765         * modules/getugroups (Files): Add lib/getugroups.h
44766
44767 2007-07-04  Karl Berry  <karl@gnu.org>
44768
44769         * MODULES.html.sh (func_all_modules): Complete rename of
44770         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
44771
44772 2007-07-02  Bruno Haible  <bruno@clisp.org>
44773
44774         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
44775         mode, when inttypes.h comes from gnulib.
44776         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44777
44778 2007-07-02  Simon Josefsson  <simon@josefsson.org>
44779
44780         * NEWS: Mention lgpl module name change.
44781
44782         * modules/lgpl-2.1: Renamed from lgpl.
44783
44784         * NEWS: Mention gpl module name change.
44785
44786         * modules/gpl-3.0: New file, based on gpl-2.0.
44787
44788         * modules/gpl-2.0: Renamed from gpl.
44789
44790         * modules/gpl: Fix filename, doc/gpl.texi is now found at
44791         doc/gpl-2.0.texi.
44792
44793 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44794
44795         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
44796         #define __STDC_LIMIT_MACROS temporarily while including
44797         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
44798         Problem reported by Joel E. Denny in
44799         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
44800
44801 2007-07-01  Bruno Haible  <bruno@clisp.org>
44802
44803         * lib/unistdio.h: New file.
44804         * lib/unistdio/u-asnprintf.h: New file.
44805         * lib/unistdio/u-asprintf.h: New file.
44806         * lib/unistdio/u-printf-args.c: New file.
44807         * lib/unistdio/u-printf-args.h: New file.
44808         * lib/unistdio/u-printf-parse.h: New file.
44809         * lib/unistdio/u-snprintf.h: New file.
44810         * lib/unistdio/u-sprintf.h: New file.
44811         * lib/unistdio/u-vasprintf.h: New file.
44812         * lib/unistdio/u-vsnprintf.h: New file.
44813         * lib/unistdio/u-vsprintf.h: New file.
44814         * lib/unistdio/ulc-asnprintf.c: New file.
44815         * lib/unistdio/ulc-asprintf.c: New file.
44816         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
44817         * lib/unistdio/ulc-printf-parse.c: New file.
44818         * lib/unistdio/ulc-snprintf.c: New file.
44819         * lib/unistdio/ulc-sprintf.c: New file.
44820         * lib/unistdio/ulc-vasnprintf.c: New file.
44821         * lib/unistdio/ulc-vasprintf.c: New file.
44822         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
44823         * lib/unistdio/ulc-vsnprintf.c: New file.
44824         * lib/unistdio/ulc-vsprintf.c: New file.
44825         * lib/unistdio/u8-asnprintf.c: New file.
44826         * lib/unistdio/u8-asprintf.c: New file.
44827         * lib/unistdio/u8-printf-parse.c: New file.
44828         * lib/unistdio/u8-snprintf.c: New file.
44829         * lib/unistdio/u8-sprintf.c: New file.
44830         * lib/unistdio/u8-vasnprintf.c: New file.
44831         * lib/unistdio/u8-vasprintf.c: New file.
44832         * lib/unistdio/u8-vsnprintf.c: New file.
44833         * lib/unistdio/u8-vsprintf.c: New file.
44834         * lib/unistdio/u8-u8-asnprintf.c: New file.
44835         * lib/unistdio/u8-u8-asprintf.c: New file.
44836         * lib/unistdio/u8-u8-snprintf.c: New file.
44837         * lib/unistdio/u8-u8-sprintf.c: New file.
44838         * lib/unistdio/u8-u8-vasnprintf.c: New file.
44839         * lib/unistdio/u8-u8-vasprintf.c: New file.
44840         * lib/unistdio/u8-u8-vsnprintf.c: New file.
44841         * lib/unistdio/u8-u8-vsprintf.c: New file.
44842         * lib/unistdio/u16-asnprintf.c: New file.
44843         * lib/unistdio/u16-asprintf.c: New file.
44844         * lib/unistdio/u16-printf-parse.c: New file.
44845         * lib/unistdio/u16-snprintf.c: New file.
44846         * lib/unistdio/u16-sprintf.c: New file.
44847         * lib/unistdio/u16-vasnprintf.c: New file.
44848         * lib/unistdio/u16-vasprintf.c: New file.
44849         * lib/unistdio/u16-vsnprintf.c: New file.
44850         * lib/unistdio/u16-vsprintf.c: New file.
44851         * lib/unistdio/u16-u16-asnprintf.c: New file.
44852         * lib/unistdio/u16-u16-asprintf.c: New file.
44853         * lib/unistdio/u16-u16-snprintf.c: New file.
44854         * lib/unistdio/u16-u16-sprintf.c: New file.
44855         * lib/unistdio/u16-u16-vasnprintf.c: New file.
44856         * lib/unistdio/u16-u16-vasprintf.c: New file.
44857         * lib/unistdio/u16-u16-vsnprintf.c: New file.
44858         * lib/unistdio/u16-u16-vsprintf.c: New file.
44859         * lib/unistdio/u32-asnprintf.c: New file.
44860         * lib/unistdio/u32-asprintf.c: New file.
44861         * lib/unistdio/u32-printf-parse.c: New file.
44862         * lib/unistdio/u32-snprintf.c: New file.
44863         * lib/unistdio/u32-sprintf.c: New file.
44864         * lib/unistdio/u32-vasnprintf.c: New file.
44865         * lib/unistdio/u32-vasprintf.c: New file.
44866         * lib/unistdio/u32-vsnprintf.c: New file.
44867         * lib/unistdio/u32-vsprintf.c: New file.
44868         * lib/unistdio/u32-u32-asnprintf.c: New file.
44869         * lib/unistdio/u32-u32-asprintf.c: New file.
44870         * lib/unistdio/u32-u32-snprintf.c: New file.
44871         * lib/unistdio/u32-u32-sprintf.c: New file.
44872         * lib/unistdio/u32-u32-vasnprintf.c: New file.
44873         * lib/unistdio/u32-u32-vasprintf.c: New file.
44874         * lib/unistdio/u32-u32-vsnprintf.c: New file.
44875         * lib/unistdio/u32-u32-vsprintf.c: New file.
44876         * tests/unistdio/test-ulc-asnprintf1.c: New file.
44877         * tests/unistdio/test-ulc-asnprintf1.h: New file.
44878         * tests/unistdio/test-ulc-printf1.h: New file.
44879         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
44880         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
44881         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
44882         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
44883         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
44884         * tests/unistdio/test-ulc-vasprintf1.c: New file.
44885         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
44886         * tests/unistdio/test-ulc-vsprintf1.c: New file.
44887         * tests/unistdio/test-u8-asnprintf1.c: New file.
44888         * tests/unistdio/test-u8-asnprintf1.h: New file.
44889         * tests/unistdio/test-u8-printf1.h: New file.
44890         * tests/unistdio/test-u8-vasnprintf1.c: New file.
44891         * tests/unistdio/test-u8-vasnprintf2.c: New file.
44892         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
44893         * tests/unistdio/test-u8-vasnprintf3.c: New file.
44894         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
44895         * tests/unistdio/test-u8-vasprintf1.c: New file.
44896         * tests/unistdio/test-u8-vsnprintf1.c: New file.
44897         * tests/unistdio/test-u8-vsprintf1.c: New file.
44898         * tests/unistdio/test-u16-asnprintf1.c: New file.
44899         * tests/unistdio/test-u16-asnprintf1.h: New file.
44900         * tests/unistdio/test-u16-printf1.h: New file.
44901         * tests/unistdio/test-u16-vasnprintf1.c: New file.
44902         * tests/unistdio/test-u16-vasnprintf2.c: New file.
44903         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
44904         * tests/unistdio/test-u16-vasnprintf3.c: New file.
44905         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
44906         * tests/unistdio/test-u16-vasprintf1.c: New file.
44907         * tests/unistdio/test-u16-vsnprintf1.c: New file.
44908         * tests/unistdio/test-u16-vsprintf1.c: New file.
44909         * tests/unistdio/test-u32-asnprintf1.c: New file.
44910         * tests/unistdio/test-u32-asnprintf1.h: New file.
44911         * tests/unistdio/test-u32-printf1.h: New file.
44912         * tests/unistdio/test-u32-vasnprintf1.c: New file.
44913         * tests/unistdio/test-u32-vasnprintf2.c: New file.
44914         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
44915         * tests/unistdio/test-u32-vasnprintf3.c: New file.
44916         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
44917         * tests/unistdio/test-u32-vasprintf1.c: New file.
44918         * tests/unistdio/test-u32-vsnprintf1.c: New file.
44919         * tests/unistdio/test-u32-vsprintf1.c: New file.
44920         * modules/unistdio/base: New file.
44921         * modules/unistdio/u-printf-args: New file.
44922         * modules/unistdio/ulc-asnprintf: New file.
44923         * modules/unistdio/ulc-asprintf: New file.
44924         * modules/unistdio/ulc-fprintf: New file.
44925         * modules/unistdio/ulc-printf-parse: New file.
44926         * modules/unistdio/ulc-snprintf: New file.
44927         * modules/unistdio/ulc-sprintf: New file.
44928         * modules/unistdio/ulc-vasnprintf: New file.
44929         * modules/unistdio/ulc-vasprintf: New file.
44930         * modules/unistdio/ulc-vfprintf: New file.
44931         * modules/unistdio/ulc-vsnprintf: New file.
44932         * modules/unistdio/ulc-vsprintf: New file.
44933         * modules/unistdio/u8-asnprintf: New file.
44934         * modules/unistdio/u8-asprintf: New file.
44935         * modules/unistdio/u8-printf-parse: New file.
44936         * modules/unistdio/u8-snprintf: New file.
44937         * modules/unistdio/u8-sprintf: New file.
44938         * modules/unistdio/u8-vasnprintf: New file.
44939         * modules/unistdio/u8-vasprintf: New file.
44940         * modules/unistdio/u8-vsnprintf: New file.
44941         * modules/unistdio/u8-vsprintf: New file.
44942         * modules/unistdio/u8-u8-asnprintf: New file.
44943         * modules/unistdio/u8-u8-asprintf: New file.
44944         * modules/unistdio/u8-u8-snprintf: New file.
44945         * modules/unistdio/u8-u8-sprintf: New file.
44946         * modules/unistdio/u8-u8-vasnprintf: New file.
44947         * modules/unistdio/u8-u8-vasprintf: New file.
44948         * modules/unistdio/u8-u8-vsnprintf: New file.
44949         * modules/unistdio/u8-u8-vsprintf: New file.
44950         * modules/unistdio/u16-asnprintf: New file.
44951         * modules/unistdio/u16-asprintf: New file.
44952         * modules/unistdio/u16-printf-parse: New file.
44953         * modules/unistdio/u16-snprintf: New file.
44954         * modules/unistdio/u16-sprintf: New file.
44955         * modules/unistdio/u16-vasnprintf: New file.
44956         * modules/unistdio/u16-vasprintf: New file.
44957         * modules/unistdio/u16-vsnprintf: New file.
44958         * modules/unistdio/u16-vsprintf: New file.
44959         * modules/unistdio/u16-u16-asnprintf: New file.
44960         * modules/unistdio/u16-u16-asprintf: New file.
44961         * modules/unistdio/u16-u16-snprintf: New file.
44962         * modules/unistdio/u16-u16-sprintf: New file.
44963         * modules/unistdio/u16-u16-vasnprintf: New file.
44964         * modules/unistdio/u16-u16-vasprintf: New file.
44965         * modules/unistdio/u16-u16-vsnprintf: New file.
44966         * modules/unistdio/u16-u16-vsprintf: New file.
44967         * modules/unistdio/u32-asnprintf: New file.
44968         * modules/unistdio/u32-asprintf: New file.
44969         * modules/unistdio/u32-printf-parse: New file.
44970         * modules/unistdio/u32-snprintf: New file.
44971         * modules/unistdio/u32-sprintf: New file.
44972         * modules/unistdio/u32-vasnprintf: New file.
44973         * modules/unistdio/u32-vasprintf: New file.
44974         * modules/unistdio/u32-vsnprintf: New file.
44975         * modules/unistdio/u32-vsprintf: New file.
44976         * modules/unistdio/u32-u32-asnprintf: New file.
44977         * modules/unistdio/u32-u32-asprintf: New file.
44978         * modules/unistdio/u32-u32-snprintf: New file.
44979         * modules/unistdio/u32-u32-sprintf: New file.
44980         * modules/unistdio/u32-u32-vasnprintf: New file.
44981         * modules/unistdio/u32-u32-vasprintf: New file.
44982         * modules/unistdio/u32-u32-vsnprintf: New file.
44983         * modules/unistdio/u32-u32-vsprintf: New file.
44984         * modules/unistdio/ulc-asnprintf-tests: New file.
44985         * modules/unistdio/ulc-vasnprintf-tests: New file.
44986         * modules/unistdio/ulc-vasprintf-tests: New file.
44987         * modules/unistdio/ulc-vsnprintf-tests: New file.
44988         * modules/unistdio/ulc-vsprintf-tests: New file.
44989         * modules/unistdio/u8-asnprintf-tests: New file.
44990         * modules/unistdio/u8-vasnprintf-tests: New file.
44991         * modules/unistdio/u8-vasprintf-tests: New file.
44992         * modules/unistdio/u8-vsnprintf-tests: New file.
44993         * modules/unistdio/u8-vsprintf-tests: New file.
44994         * modules/unistdio/u16-asnprintf-tests: New file.
44995         * modules/unistdio/u16-vasnprintf-tests: New file.
44996         * modules/unistdio/u16-vasprintf-tests: New file.
44997         * modules/unistdio/u16-vsnprintf-tests: New file.
44998         * modules/unistdio/u16-vsprintf-tests: New file.
44999         * modules/unistdio/u32-asnprintf-tests: New file.
45000         * modules/unistdio/u32-vasnprintf-tests: New file.
45001         * modules/unistdio/u32-vasprintf-tests: New file.
45002         * modules/unistdio/u32-vsnprintf-tests: New file.
45003         * modules/unistdio/u32-vsprintf-tests: New file.
45004         * MODULES.html.sh (Unicode string functions): Add the new modules.
45005
45006 2007-07-01  Bruno Haible  <bruno@clisp.org>
45007
45008         * lib/sprintf.c (sprintf): Limit the available length estimation,
45009         to avoid address wraparound.
45010         * lib/vsprintf.c (vsprintf): Likewise.
45011         * modules/sprintf-posix (Dependencies): Add stdint.
45012         * modules/vsprintf-posix (Dependencies): Likewise.
45013
45014 2007-07-01  Bruno Haible  <bruno@clisp.org>
45015
45016         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
45017         Windows PATH as well. Conservative double-quoting. Comments.
45018
45019 2007-07-01  Bruno Haible  <bruno@clisp.org>
45020             Eric Blake  <ebb9@byu.net>
45021             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45022
45023         * gnulib-tool (self_abspathname): Fix algorithm to cope with
45024         empty components in $PATH, denoting '.'.
45025
45026 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45027
45028         * gnulib-tool: Fix indentation.
45029         (func_create_megatestdir): Likewise.
45030         Report by Bruno Haible.
45031
45032 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45033
45034         Sync from Automake.
45035         * build-aux/gnupload: Fix shell portability issues with for loops.
45036         Report by Karl Berry.
45037
45038 2007-06-29  Simon Josefsson  <simon@josefsson.org>
45039
45040         * build-aux/maint.mk (POURL): Use translationproject.org.
45041
45042 2007-06-27  Simon Josefsson  <simon@josefsson.org>
45043             Bruno Haible  <bruno@clisp.org>
45044
45045         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
45046         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
45047         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
45048         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
45049         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
45050
45051 2007-06-27  Bruno Haible  <bruno@clisp.org>
45052
45053         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
45054         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
45055
45056 2007-06-26  Karl Berry  <karl@gnu.org>
45057
45058         * MODULES.html.sh: remove xreadlink-with-size.
45059
45060 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
45061
45062         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
45063         method that I hope also handles the double-include problem noted
45064         by Bruno Haible in
45065         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
45066
45067 2007-06-23  Bruno Haible  <bruno@clisp.org>
45068
45069         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45070         Don't let the 'mostlyclean' target fail if the last subdirectory could
45071         not be removed.
45072         Reported by Karl Berry.
45073
45074 2007-06-23  Bruno Haible  <bruno@clisp.org>
45075
45076         * gnulib-tool (echo): Add a speedier workaround for ksh.
45077         * tests/test-echo.sh: Likewise.
45078
45079 2007-06-23  Bruno Haible  <bruno@clisp.org>
45080
45081         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
45082         * tests/test-echo.sh: Likewise.
45083
45084 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45085
45086         * gnulib-tool (IFS): Initialize early, so we don't set it to
45087         empty later.
45088         (self_abspathname): Rewrite algorithm to set it, reindent.
45089         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
45090         (func_create_megatestdir): Merge some sed scripts.
45091
45092 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
45093
45094         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
45095         exposed by Sun Studio 11 cc on Solaris 8.
45096
45097 2007-06-22  Bruno Haible  <bruno@clisp.org>
45098
45099         * gnulib-tool (echo): Ensure the echo primitive does not interpret
45100         backslashes.
45101         * tests/test-echo.sh: New file.
45102
45103 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45104
45105         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
45106         simplify `sed_replace_build_aux' scripts, they are portable but
45107         echoing them with `echo' is not.
45108         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
45109
45110 2007-06-21  Karl Berry  <karl@gnu.org>
45111
45112         * config/srclist.txt: guess we can't handle the licenses via
45113         srclist at the moment.
45114
45115 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
45116
45117         * MODULES.html.sh: Add include_next.
45118         * modules/include_next: New file.
45119
45120 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
45121
45122         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
45123         INCLUDE_NEXT.
45124         (gl_CHECK_NEXT_HEADERS): New macro.
45125         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
45126         the obsolescent gl_ABSOLUTE_HEADER.
45127         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
45128         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
45129         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
45130         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
45131         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
45132         * m4/math_h.m4 (gl_MATH_H): Likewise.
45133         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
45134         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
45135         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
45136         * m4/stdint.m4 (gl_STDINT_H): Likewise.
45137         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
45138         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
45139         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
45140         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45141         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
45142         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
45143         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
45144         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
45145         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
45146         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
45147         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45148         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45149         * m4/inttypes.m4 (gl_INTTYPES_H): Define
45150         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
45151         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
45152         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
45153         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
45154         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
45155         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
45156         * lib/float_.h: Likewise.
45157         * lib/inttypes_.h: Likewise.
45158         * lib/math_.h: Likewise.
45159         * lib/search_.h: Likewise.
45160         * lib/signal_.h: Likewise.
45161         * lib/stdint_.h: Likewise.
45162         * lib/stdio_.h: Likewise.
45163         * lib/stdlib_.h: Likewise.
45164         * lib/string_.h: Likewise.
45165         * lib/sys_stat_.h: Likewise.
45166         * lib/sys_time_.h: Likewise.
45167         * lib/time_.h: Likewise.
45168         * lib/unistd_.h: Likewise.
45169         * lib/wchar_.h: Likewise.
45170         * lib/wctype_.h: Likewise.
45171         * lib/dirent_.h: Likewise.
45172         * lib/iconv_.h: Likewise.
45173         * lib/locale_.h: Likewise.
45174         * lib/netinet_in_.h: Likewise.
45175         * lib/sys_select_.h: Likewise.
45176         * lib/sys_socket_.h: Likewise.
45177         * lib/sysexits_.h: Likewise.
45178         * modules/fcntl (Depends-on): Depend on include_next, not
45179         absolute_header.
45180         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
45181         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
45182         * modules/fchdir: Likewise.
45183         * modules/float: Likewise.
45184         * modules/iconv_open: Likewise.
45185         * modules/inttypes: Likewise.
45186         * modules/locale: Likewise.
45187         * modules/math: Likewise.
45188         * modules/netinet_in: Likewise.
45189         * modules/search: Likewise.
45190         * modules/signal: Likewise.
45191         * modules/stdint: Likewise.
45192         * modules/stdio: Likewise.
45193         * modules/stdlib: Likewise.
45194         * modules/string: Likewise.
45195         * modules/sys_select: Likewise.
45196         * modules/sys_socket: Likewise.
45197         * modules/sys_stat: Likewise.
45198         * modules/sys_time: Likewise.
45199         * modules/sysexits: Likewise.
45200         * modules/time: Likewise.
45201         * modules/unistd: Likewise.
45202         * modules/wchar: Likewise.
45203         * modules/wctype: Likewise.
45204         * modules/sys_stat: Change maintainer to "all".
45205         * modules/unistd: Likewise.
45206
45207 2007-06-20  Karl Berry  <karl@gnu.org>
45208
45209         * config/srclist.txt: track www changes in license files.
45210
45211 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
45212
45213         * build-aux/bootstrap: Remove stray dot.
45214         Make sure build_aux settings are honored when linking
45215         gnulib_extra_files.
45216
45217 2007-06-19  Eric Blake  <ebb9@byu.net>
45218
45219         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
45220         Allow compilation on cygwin.
45221
45222 2007-06-19  Jim Meyering  <jim@meyering.net>
45223
45224         xreadlink-with-size: Remove module.  No longer used.
45225         Ex-callers now use xreadlink or mreadlink-with-size.
45226         * modules/xreadlink-with-size: Remove module.
45227         * lib/xreadlink-with-size.c: Remove file.
45228         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
45229         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
45230         just before the function definition *is* accurate.
45231
45232         Eliminate one way canonicalize_filename_mode could exit.
45233         * lib/canonicalize.c (canonicalize_filename_mode):
45234         Use mreadlink_with_size, not xreadlink_with_size.
45235
45236 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
45237
45238         Detect porting problems to FreeBSD/arm, which has time_t wider than
45239         long int.  Original problem reported for GNU diff by Xin Li in
45240         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
45241         * modules/getdate (Depends-on): Add intprops, verify.
45242         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
45243         is an integer type no wider than long int.
45244
45245 2007-06-18  Jim Meyering  <jim@meyering.net>
45246
45247         New module: mreadlink-with-size.
45248         * MODULES.html.sh: Add mreadlink-with-size.
45249         * modules/mreadlink-with-size: New module
45250         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
45251         not xreadlink-with-size.
45252         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
45253
45254 2007-06-16  Bruno Haible  <bruno@clisp.org>
45255
45256         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
45257         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
45258         Reported by Gary V. Vaughan <gary@gnu.org>.
45259
45260 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
45261
45262         Revamp lchown so that it lives in unistd.h where it belongs.
45263         * lib/lchown.h: Remove.
45264         * lib/dirchownmod.c: Don't include lib/lchown.h.
45265         * lib/fchownat.c: Likewise.
45266         * lib/openat.c: Likewise.
45267         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
45268         does not follow symlinks.
45269         (EOPNOTSUPP): Define if not defined.
45270         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
45271         is defined to 0.
45272         (lchown): New decl.
45273         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
45274         Do not check for lchown decl.
45275         Set REPLACE_LCHOWN.
45276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
45277         REPLACE_LCHOWN.
45278         * modules/chown: Make it clear it follows symlinks.
45279         * modules/lchown: Make it clear it doesn't follow symlinks.
45280         (Files): Remove lib/lchown.h
45281         (Depends-on): Add unistd.
45282         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
45283         (Include): Include <unistd.h>, not "lchown.h".
45284         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
45285         REPLACE_LCHOWN.
45286
45287 2007-06-15  Jim Meyering  <jim@meyering.net>
45288
45289         Change license (GPL to LGPL) of fsusage and dependents.
45290         * modules/fsusage (License): Change to LGPL.
45291         * modules/full-read (License): Likewise.
45292         * modules/full-write (License): Likewise.
45293         * modules/safe-read (License): Likewise.
45294         * modules/safe-write (License): Likewise.
45295
45296 2007-06-14  Ben Pfaff  <blp@gnu.org>
45297
45298         Missing part of allocsa -> malloca transition.
45299         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
45300         gl_MALLOCA.
45301
45302 2007-06-12  Bruno Haible  <bruno@clisp.org>
45303
45304         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
45305         to ia64, x86_64, i386.
45306         Reported by Eric Blake.
45307
45308 2007-06-12  Bruno Haible  <bruno@clisp.org>
45309
45310         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
45311         cross-compiling to x86_64.
45312
45313 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
45314
45315         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
45316         glitch reported by Ralf Wildenhues in
45317         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
45318
45319         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
45320         Vin Shelton.
45321
45322 2007-06-11  Bruno Haible  <bruno@clisp.org>
45323
45324         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
45325         replacement string.
45326         Reported by Eric Blake.
45327
45328 2007-06-10  Bruno Haible  <bruno@clisp.org>
45329
45330         Prepare vasnprintf code for use with Unicode strings.
45331         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
45332         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
45333         TYPE_U32_STRING.
45334         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
45335         a_u32_string variants.
45336         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
45337         * lib/printf-args.c: Don't include config.h and the specification
45338         header if PRINTF_FETCHARGS is already defined.
45339         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
45340         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
45341         TYPE_U16_STRING, TYPE_U32_STRING.
45342         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
45343         u16_directive, u16_directives, u32_directive, u32_directives): New
45344         types.
45345         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
45346         New declarations.
45347         * lib/printf-parse.c: Don't include config.h and the specification
45348         header if PRINTF_PARSE is already defined. Eliminate the set of
45349         parameters for WIDE_CHAR_VERSION; the user of this file must provide
45350         them now. Include c-ctype.h.
45351         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
45352         directive and CHAR_T_ONLY_ASCII.
45353         * lib/vasnprintf.c: Don't include config.h and the specification header
45354         if VASNPRINTF is already defined.
45355         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
45356         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
45357         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
45358         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
45359         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
45360         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
45361         code accordingly.
45362         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
45363         pad_ourselves also in this case, with the 'c' and 's' directives, and
45364         with a different notion of "width".
45365         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
45366
45367 2007-06-10  Bruno Haible  <bruno@clisp.org>
45368
45369         * modules/unistr/u32-mbsnlen: New file.
45370         * lib/unistr/u32-mbsnlen.c: New file.
45371
45372         * modules/unistr/u16-mbsnlen: New file.
45373         * lib/unistr/u16-mbsnlen.c: New file.
45374
45375         * modules/unistr/u8-mbsnlen: New file.
45376         * lib/unistr/u8-mbsnlen.c: New file.
45377
45378         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
45379         declarations.
45380
45381 2007-06-10  Bruno Haible  <bruno@clisp.org>
45382
45383         * lib/string_.h (mbsnlen): New declaration.
45384         * lib/mbsnlen.c: New file.
45385         * m4/mbsnlen.m4: New file.
45386         * modules/mbsnlen: New file.
45387         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
45388         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
45389         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
45390
45391 2007-06-10  Bruno Haible  <bruno@clisp.org>
45392
45393         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
45394
45395 2007-06-10  Bruno Haible  <bruno@clisp.org>
45396
45397         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
45398         * lib/mbuiter.h: Likewise.
45399
45400 2007-06-10  Bruno Haible  <bruno@clisp.org>
45401
45402         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
45403         declaration.
45404
45405 2007-06-10  Karl Berry  <karl@gnu.org>
45406
45407         * config/srclist.txt: remove gettext entries, Bruno prefers
45408         to update individually.
45409
45410 2007-06-10  Bruno Haible  <bruno@clisp.org>
45411
45412         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
45413         'maxlen'. Ensure only length + width bytes are allocated, not
45414         length + 1 + width.
45415
45416 2007-06-09  Bruno Haible  <bruno@clisp.org>
45417
45418         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
45419         (CHAR_T): Remove macro.
45420         (VASNPRINTF): Update.
45421
45422 2007-06-09  Bruno Haible  <bruno@clisp.org>
45423
45424         * MODULES.html.sh (Unicode string functions): Add the new modules.
45425
45426         * modules/uniconv/u32-conv-to-enc: New file.
45427         * lib/uniconv/u32-conv-to-enc.c: New file.
45428         * modules/uniconv/u32-conv-to-enc-tests: New file.
45429         * tests/uniconv/test-u32-conv-to-enc.c: New file.
45430
45431         * modules/uniconv/u16-conv-to-enc: New file.
45432         * lib/uniconv/u16-conv-to-enc.c: New file.
45433         * lib/uniconv/u-conv-to-enc.h: New file.
45434         * modules/uniconv/u16-conv-to-enc-tests: New file.
45435         * tests/uniconv/test-u16-conv-to-enc.c: New file.
45436
45437         * modules/uniconv/u8-conv-to-enc: New file.
45438         * lib/uniconv/u8-conv-to-enc.c: New file.
45439         * modules/uniconv/u8-conv-to-enc-tests: New file.
45440         * tests/uniconv/test-u8-conv-to-enc.c: New file.
45441
45442         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
45443         u32_conv_to_encoding): New declarations.
45444
45445 2007-06-09  Bruno Haible  <bruno@clisp.org>
45446
45447         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
45448
45449 2007-06-09  Bruno Haible  <bruno@clisp.org>
45450
45451         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
45452         * modules/malloca: Renamed from modules/allocsa, updated.
45453         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
45454         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
45455         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
45456         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
45457         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
45458         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
45459         * modules/xmalloca: Renamed from modules/xallocsa, updated.
45460         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
45461         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
45462         * modules/c-strcasestr (Depends-on): Update.
45463         * lib/c-strcasestr.c: Update.
45464         * modules/c-strstr (Depends-on): Update.
45465         * lib/c-strstr.c: Update.
45466         * modules/canonicalize-lgpl (Depends-on): Update.
45467         * lib/canonicalize-lgpl.c: Update.
45468         * modules/clean-temp (Depends-on): Update.
45469         * lib/clean-temp.c: Update.
45470         * modules/csharpcomp (Depends-on): Update.
45471         * lib/csharpcomp.c: Update.
45472         * modules/csharpexec (Depends-on): Update.
45473         * lib/csharpexec.c: Update.
45474         * modules/javacomp (Depends-on): Update.
45475         * lib/javacomp.c: Update.
45476         * modules/javaexec (Depends-on): Update.
45477         * lib/javaexec.c: Update.
45478         * modules/mbscasestr (Depends-on): Update.
45479         * lib/mbscasestr.c: Update.
45480         * modules/mbsstr (Depends-on): Update.
45481         * lib/mbsstr.c: Update.
45482         * modules/setenv (Depends-on): Update.
45483         * lib/setenv.c: Update.
45484         * modules/strcasestr (Depends-on): Update.
45485         * lib/strcasestr.c: Update.
45486         * modules/striconveha (Depends-on): Update.
45487         * lib/striconveha.c: Update.
45488         * modules/relocatable-prog-wrapper (Files): Update.
45489         * lib/relocwrapper.c: Update.
45490         * build-aux/install-reloc: Update.
45491         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
45492
45493 2007-06-08  Bruno Haible  <bruno@clisp.org>
45494
45495         Port to uClibc.
45496         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
45497         * lib/fpurge.c (fpurge): Likewise.
45498         * lib/freading.c (freading): Likewise.
45499         * lib/fseeko.c (rpl_fseeko): Likewise.
45500         * lib/fseterr.c (fseterr): Likewise.
45501         * lib/fwriting.c (fwriting): Likewise.
45502         * tests/test-fflush.c (main): Avoid a failure on uClibc.
45503
45504 2007-06-08  Bruno Haible  <bruno@clisp.org>
45505
45506         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
45507         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
45508         * modules/gettext (Files): Add m4/intlmacosx.m4.
45509
45510 2007-06-07  Bruno Haible  <bruno@clisp.org>
45511
45512         * modules/localename-tests: New file.
45513         * tests/test-localename.c: New file.
45514
45515         New module 'localename'.
45516         * lib/localename.h: New file.
45517         * lib/localename.c: New file, from GNU gettext.
45518         * m4/localename.m4: New file.
45519         * modules/localename: New file.
45520
45521 2007-06-07  Bruno Haible  <bruno@clisp.org>
45522
45523         Work around the lack of <wchar.h> on some builds of uClibc.
45524         * doc/headers/wchar.texi: Update.
45525         * lib/wchar_.h: Include <wchar.h> only if it exists.
45526         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
45527         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
45528         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
45529         doesn't exist.
45530         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
45531         * modules/mbfile (Depends-on): Add wchar.
45532         * modules/mbiter (Depends-on): Likewise.
45533         * modules/mbuiter (Depends-on): Likewise.
45534         Reported by Simon Josefsson.
45535
45536 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
45537
45538         Work around problem reported by Steven M. Schweda in
45539         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
45540         Tru64 5.1B with the Compaq compiler environment installed declares
45541         an 'isblank' function but does not define it in the C library.
45542         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
45543         * lib/regex_internal.h (isblank): Likewise.
45544         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
45545         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45546
45547 2007-06-05  Bruno Haible  <bruno@clisp.org>
45548
45549         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
45550         ia64.
45551         * modules/printf-safe: New file.
45552         * modules/fprintf-posix (Depends-on): Add printf-safe.
45553         * modules/printf-posix (Depends-on): Likewise.
45554         * modules/snprintf-posix (Depends-on): Likewise.
45555         * modules/sprintf-posix (Depends-on): Likewise.
45556         * modules/vasnprintf-posix (Depends-on): Likewise.
45557         * modules/vasprintf-posix (Depends-on): Likewise.
45558         * modules/vfprintf-posix (Depends-on): Likewise.
45559         * modules/vprintf-posix (Depends-on): Likewise.
45560         * modules/vsnprintf-posix (Depends-on): Likewise.
45561         * modules/vsprintf-posix (Depends-on): Likewise.
45562         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
45563         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
45564         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
45565         "no" on i386, x86_64, ia64.
45566         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
45567         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
45568         on i386, x86_64, ia64.
45569         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
45570         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
45571         on i386, x86_64, ia64.
45572         * tests/test-vasnprintf-posix.c: Include float.h.
45573         (LDBL80_WORDS): New macro.
45574         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
45575         on i386, x86_64, ia64.
45576         * tests/test-vasprintf-posix.c: Include float.h.
45577         (LDBL80_WORDS): New macro.
45578         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
45579         on i386, x86_64, ia64.
45580         * tests/test-snprintf-posix.c: Include float.h.
45581         * tests/test-sprintf-posix.c: Likewise.
45582         * tests/test-vsnprintf-posix.c: Likewise.
45583         * tests/test-vsprintf-posix.c: Likewise.
45584
45585 2007-06-05  Bruno Haible  <bruno@clisp.org>
45586
45587         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
45588         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
45589         non-IEEE numbers on i386, x86_64, ia64.
45590         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
45591         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
45592         * tests/test-isnanl.h: Include float.h.
45593         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
45594
45595 2007-06-05  Bruno Haible  <bruno@clisp.org>
45596
45597         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
45598         also the %a / %A. Handle the %a / %A code before this extra handling.
45599
45600 2007-06-05  Bruno Haible  <bruno@clisp.org>
45601
45602         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
45603         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
45604
45605 2007-06-05  Bruno Haible  <bruno@clisp.org>
45606
45607         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
45608         typo in variable name.
45609
45610 2007-06-05  Eric Blake  <ebb9@byu.net>
45611
45612         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
45613         Reported by Simon Josefsson.
45614
45615 2007-06-04  Bruno Haible  <bruno@clisp.org>
45616
45617         Avoid test failures on some PowerPC platforms.
45618         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
45619         Define differently for PowerPC.
45620         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
45621         Reported by Gary V. Vaughan <gary@gnu.org>.
45622
45623 2007-06-02  Bruno Haible  <bruno@clisp.org>
45624
45625         Fix test-stdint failure on FreeBSD/ia64.
45626         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
45627         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
45628         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
45629         * doc/headers/stdint.texi: Update.
45630
45631 2007-06-01  Bruno Haible  <bruno@clisp.org>
45632
45633         * tests/test-binary-io.c (main): Pass a third argument to open().
45634         Reported by Gary V. Vaughan <gary@gnu.org>.
45635
45636 2007-06-01  Bruno Haible  <bruno@clisp.org>
45637
45638         * doc/functions/frexpl.texi: Update for mingw.
45639
45640 2007-06-01  Bruno Haible  <bruno@clisp.org>
45641
45642         * tests/test-lseek.c (main): Disable test of errno for invalid third
45643         argument.
45644         * doc/functions/lseek.texi: Update.
45645         Reported by Gary V. Vaughan <gary@gnu.org>.
45646
45647 2007-05-28  Bruno Haible  <bruno@clisp.org>
45648
45649         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
45650
45651 2007-05-31  Eric Blake  <ebb9@byu.net>
45652
45653         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
45654         cross compiling.
45655
45656 2007-05-30  Eric Blake  <ebb9@byu.net>
45657         and Bruno Haible  <bruno@clisp.org>
45658
45659         Work around mingw test failures exposed by m4-1.4.9b.
45660         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
45661         * tests/test-unistd.c: Disable uid_t and git_t tests for the
45662         moment.
45663
45664 2007-05-30  Bruno Haible  <bruno@clisp.org>
45665
45666         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
45667         assuming that they are closed. Needed on HP-UX 11.
45668
45669 2007-05-29  Bruno Haible  <bruno@clisp.org>
45670
45671         Fix a problem with #include_next.
45672         * lib/dirent_.h: Split the double-inclusion guard.
45673         * lib/fcntl_.h: Likewise.
45674         * lib/float_.h: Likewise.
45675         * lib/iconv_.h: Likewise.
45676         * lib/inttypes_.h: Likewise.
45677         * lib/locale_.h: Likewise.
45678         * lib/math_.h: Likewise.
45679         * lib/netinet_in_.h: Likewise.
45680         * lib/search_.h: Likewise.
45681         * lib/signal_.h: Likewise.
45682         * lib/stdint_.h: Likewise.
45683         * lib/stdio_.h: Likewise.
45684         * lib/stdlib_.h: Likewise.
45685         * lib/string_.h: Likewise.
45686         * lib/sys_select_.h: Likewise.
45687         * lib/sys_socket_.h: Likewise.
45688         * lib/sys_stat_.h: Likewise.
45689         * lib/sys_time_.h: Likewise.
45690         * lib/sysexits_.h: Likewise.
45691         * lib/time_.h: Likewise.
45692         * lib/unistd_.h: Likewise.
45693         * lib/wchar_.h: Likewise.
45694         * lib/wctype_.h: Likewise.
45695
45696 2007-05-29  Bruno Haible  <bruno@clisp.org>
45697
45698         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
45699         for the moment.
45700
45701 2007-05-29  Bruno Haible  <bruno@clisp.org>
45702
45703         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
45704         invocation.
45705         Reported by Eric Blake.
45706
45707 2007-05-29  Bruno Haible  <bruno@clisp.org>
45708
45709         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
45710         compiling case.
45711
45712 2007-05-29  Eric Blake  <ebb9@byu.net>
45713             Bruno Haible  <bruno@clisp.org>
45714
45715         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
45716         cross compiles.
45717
45718 2007-05-28  Eric Blake  <ebb9@byu.net>
45719
45720         * modules/closein-tests (test_closein_LDADD): Support test on
45721         cygwin with libtool.
45722
45723 2007-05-28  Bruno Haible  <bruno@clisp.org>
45724
45725         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
45726         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
45727         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
45728         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
45729         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
45730         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
45731         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
45732         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
45733         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
45734
45735 2007-05-28  Eric Blake  <ebb9@byu.net>
45736
45737         Unconditionally include <config.h> in unit tests.
45738         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
45739         * tests/test-allocsa.c, tests/test-arcfour.c,
45740         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
45741         tests/test-array_list.c, tests/test-array_oset.c,
45742         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
45743         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
45744         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
45745         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
45746         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
45747         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
45748         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
45749         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
45750         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
45751         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
45752         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
45753         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
45754         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
45755         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
45756         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
45757         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
45758         test-md5.c, test-memmem.c, test-printf-posix.c,
45759         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
45760         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
45761         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
45762         test-strcasestr.c, test-striconv.c, test-striconveh.c,
45763         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
45764         test-vasnprintf-posix2.c, test-vasnprintf.c,
45765         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
45766         test-vfprintf-posix.c, test-vprintf-posix.c,
45767         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
45768         test-xvasprintf.c: Likewise.
45769
45770 2007-05-28  Bruno Haible  <bruno@clisp.org>
45771
45772         * gnulib-tool (func_import): Remember the --with-tests command-line
45773         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
45774         Reported by Eric Blake.
45775
45776 2007-05-28  Bruno Haible  <bruno@clisp.org>
45777
45778         * modules/ftell-tests: New file.
45779         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
45780         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
45781
45782         * lib/ftell.c: New file.
45783         * modules/ftell: New file.
45784         * m4/ftell.m4: New file.
45785         * doc/functions/ftell.texi: Update.
45786         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
45787         REPLACE_FTELL.
45788         * lib/stdio_.h (rpl_ftell): New declaration.
45789         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
45790         REPLACE_FTELL.
45791
45792 2007-05-28  Eric Blake  <ebb9@byu.net>
45793
45794         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
45795
45796 2007-05-28  Bruno Haible  <bruno@clisp.org>
45797
45798         * modules/fseek-tests: New file.
45799         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
45800         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
45801
45802         * lib/fseek.c: New file.
45803         * modules/fseek: New file.
45804         * m4/fseek.m4: New file.
45805         * doc/functions/fseek.texi: Update.
45806         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
45807         REPLACE_FSEEK.
45808         * lib/stdio_.h (rpl_fseek): New declaration.
45809         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
45810         REPLACE_FSEEK.
45811
45812 2007-05-28  Bruno Haible  <bruno@clisp.org>
45813
45814         * lib/stdio_.h (fflush): More comments.
45815
45816 2007-05-28  Bruno Haible  <bruno@clisp.org>
45817
45818         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
45819         runtime test.
45820
45821 2007-05-28  Eric Blake  <ebb9@byu.net>
45822
45823         Improve lseek module.
45824         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
45825         * lib/unistd_.h (lseek): Scale back link warning message.
45826         * tests/test-lseek.c: Beef up test.
45827         * tests/test-lseek.sh: Exercise more facets of lseek.
45828         Reported by Bruno Haible.
45829
45830 2007-05-28  Bruno Haible  <bruno@clisp.org>
45831
45832         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
45833         to define.
45834
45835 2007-05-27  Bruno Haible  <bruno@clisp.org>
45836
45837         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
45838
45839 2007-05-27  Bruno Haible  <bruno@clisp.org>
45840
45841         * modules/openmp: New file.
45842         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
45843         Noah Misch.
45844
45845 2007-05-26  Bruno Haible  <bruno@clisp.org>
45846
45847         * modules/chdir-long (Depends-on): Add fchdir.
45848         * modules/chdir-safer (Depends-on): Likewise.
45849         * modules/fts (Depends-on): Likewise.
45850         * modules/fts-lgpl (Depends-on): Likewise.
45851         * modules/openat (Depends-on): Likewise.
45852         * modules/savewd (Depends-on): Likewise.
45853
45854 2007-05-24  Eric Blake  <ebb9@byu.net>
45855
45856         Fix lseek on mingw.
45857         * modules/lseek: New module.
45858         * m4/lseek.m4: New file.
45859         * lib/lseek.c: New file.
45860         * modules/lseek-tests: New file.
45861         * tests/test-lseek.c: New file.
45862         * tests/test-lseek.sh: New file.
45863         * MODULES.html.sh: Document lseek module.
45864         * modules/fflush (Depends-on): Add lseek, fseeko.
45865         * modules/fseeko (Depends-on): Likewise.
45866         * modules/ftello (Depends-on): Likewise.
45867         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
45868         broken.
45869         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
45870         broken.
45871         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
45872         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
45873         * lib/ftello.c (rpl_ftello): Likewise.
45874         * tests/test-fseeko.c (main): Test this.
45875         * tests/test-fseeko.sh: Likewise.
45876         * tests/test-ftello.c (main): Likewise.
45877         * tests/test-ftello.sh: Likewise.
45878         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
45879         implies replacing fseek.
45880         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
45881         HAVE_FTELLO.
45882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
45883         * modules/unistd (Makefile.am): Likewise.
45884         * lib/unistd_.h (lseek): Declare a replacement.
45885         * doc/functions/lseek.texi (lseek): Document this fix.
45886         * doc/functions/fseek.texi (fseek): Likewise.
45887         * doc/functions/ftell.texi (ftell): Likewise.
45888
45889 2007-05-24  Bruno Haible  <bruno@clisp.org>
45890
45891         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
45892         in the printed representation of a NaN.
45893         * tests/test-vasprintf-posix.c (test_function): Likewise.
45894         * tests/test-snprintf-posix.h (test_function): Likewise.
45895         * tests/test-sprintf-posix.h (test_function): Likewise.
45896         Reported by Eric Blake.
45897
45898 2007-05-23  Eric Blake  <ebb9@byu.net>
45899
45900         Fix fseeko/ftello on cygwin 1.5.24.
45901         * doc/functions/fseeko.texi (fseeko): Document the fix.
45902         * doc/functions/ftello.texi (ftello): Document the fix.
45903         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
45904         * doc/functions/stdout.text (stdout): New file.
45905         * doc/functions/stderr.text (stderr): New file.
45906         * doc/gnulib.texi (Function Substitutes): Use new files.
45907         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
45908         prior to 1.7.0.
45909         * tests/test-ftello.c (main): Likewise for ftello.
45910         * tests/test-fseeko.sh: New file.
45911         * tests/test-ftello.sh: New file.
45912         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
45913         with seekable stdin.
45914         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
45915         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
45916         (gl_REPLACE_FSEEKO): New macro.
45917         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
45918         * modules/fseeko (Files): Distribute fseeko.c.
45919         * modules/ftello (Files): Distribute ftello.c.
45920         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
45921         mode.
45922         * lib/ftello.c (rpl_ftello): New file.
45923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
45924         fseeko, ftello.
45925         (gl_STDIN_LARGE_OFFSET): New macro.
45926         * modules/stdio (Makefile.am): Perform the replacement.
45927         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
45928
45929 2007-05-23  Bruno Haible  <bruno@clisp.org>
45930
45931         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
45932         GNULIB_POSIXCHECK is defined.
45933
45934 2007-05-21  Bruno Haible  <bruno@clisp.org>
45935
45936         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
45937         Check also the output for NaN arguments. When cross-compiling, guess
45938         no on IRIX.
45939         * lib/vasnprintf.c: Update comments.
45940         * tests/test-vasnprintf-posix.c (strisnan): New function.
45941         (test_function): Use it.
45942         * tests/test-vasprintf-posix.c (strisnan): New function.
45943         (test_function): Use it.
45944         * tests/test-snprintf-posix.h (strisnan): New function.
45945         (test_function): Use it.
45946         * tests/test-sprintf-posix.h (strisnan): New function.
45947         (test_function): Use it.
45948         Reported by Eric Blake.
45949
45950 2007-05-20  Bruno Haible  <bruno@clisp.org>
45951
45952         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
45953         numbers that fails on BeOS.
45954         * doc/functions/frexpl.texi: Update.
45955
45956 2007-05-20  Jim Meyering  <jim@meyering.net>
45957
45958         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
45959         forced upon us by glibc-2.6.
45960
45961 2007-05-20  Bruno Haible  <bruno@clisp.org>
45962
45963         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
45964         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
45965         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
45966         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
45967         NEED_PRINTF_INFINITE.
45968         (is_infinitel): New function.
45969         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
45970         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
45971         gl_PREREQ_VASNPRINTF_INFINITE.
45972         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
45973         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45974         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
45975         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
45976         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
45977         gl_PREREQ_VASNPRINTF_INFINITE.
45978         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45979         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45980         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45981         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45982         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45983         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45984         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45985         * doc/functions/fprintf.texi: Update.
45986         * doc/functions/printf.texi: Update.
45987         * doc/functions/snprintf.texi: Update.
45988         * doc/functions/sprintf.texi: Update.
45989         * doc/functions/vfprintf.texi: Update.
45990         * doc/functions/vprintf.texi: Update.
45991         * doc/functions/vsnprintf.texi: Update.
45992         * doc/functions/vsprintf.texi: Update.
45993
45994 2007-05-20  Bruno Haible  <bruno@clisp.org>
45995
45996         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
45997         was not found in libc.
45998         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
45999
46000 2007-05-20  Bruno Haible  <bruno@clisp.org>
46001
46002         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
46003         printed as "-nan" instead of "nan".
46004         * tests/test-vasprintf-posix.c (test_function): Likewise.
46005         * tests/test-snprintf-posix.h (test_function): Likewise.
46006         * tests/test-sprintf-posix.h (test_function): Likewise.
46007         Needed for HP-UX 11.
46008
46009 2007-05-20  Jim Meyering  <jim@meyering.net>
46010
46011         Fix buggy test for the fchownat-deref bug.
46012         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
46013         symlink required for the run-test.  Without it, this test would
46014         always declare that fchownat doesn't work, and client code would
46015         unnecessarily use the replacement function with fixed libc.
46016         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
46017         Reported by Greg Schafer.
46018
46019 2007-05-19  Bruno Haible  <bruno@clisp.org>
46020
46021         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
46022         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
46023         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
46024         Needed for IRIX 6.5 and Solaris 2.5.1.
46025
46026 2007-05-19  Bruno Haible  <bruno@clisp.org>
46027
46028         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
46029         (test_function): Skip tests involving -0.0 on platforms where
46030         -0.0 = 0.0.
46031         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
46032         (test_function): Skip tests involving -0.0 on platforms where
46033         -0.0 = 0.0.
46034         * tests/test-snprintf-posix.h (have_minus_zero): New function.
46035         (test_function): Skip tests involving -0.0 on platforms where
46036         -0.0 = 0.0.
46037         * tests/test-sprintf-posix.h (have_minus_zero): New function.
46038         (test_function): Skip tests involving -0.0 on platforms where
46039         -0.0 = 0.0.
46040         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
46041         tests.
46042         * tests/test-printf-posix.h (test_function): Likewise.
46043         * tests/test-printf-posix.output: Remove all -0.0 related results.
46044         Needed for IRIX 6.5.
46045
46046 2007-05-19  Bruno Haible  <bruno@clisp.org>
46047
46048         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
46049         printed as "nan0x7fffffff" instead of "nan".
46050         * tests/test-vasprintf-posix.c (test_function): Likewise.
46051         * tests/test-snprintf-posix.h (test_function): Likewise.
46052         * tests/test-sprintf-posix.h (test_function): Likewise.
46053         * tests/test-fprintf-posix.h (NaN): Remove macro.
46054         (test_function): Remove all NaN related tests.
46055         * tests/test-printf-posix.h (NaN): Remove macro.
46056         (test_function): Remove all NaN related tests.
46057         * tests/test-printf-posix.output: Remove all NaN related results.
46058         Needed for IRIX 6.5.
46059
46060 2007-05-19  Bruno Haible  <bruno@clisp.org>
46061
46062         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
46063         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
46064
46065 2007-05-19  Bruno Haible  <bruno@clisp.org>
46066
46067         * lib/float_.h: New file.
46068         * m4/float_h.m4: New file.
46069         * modules/float: New file.
46070         * modules/isnanl (Dependencies): Add float.
46071         * modules/isnanl-nolibm (Dependencies): Likewise.
46072         * modules/mathl (Dependencies): Likewise.
46073         * modules/printf-frexpl (Dependencies): Likewise.
46074         * modules/signbit (Dependencies): Likewise.
46075         * modules/vasnprintf (Dependencies): Likewise.
46076         * doc/headers/float.texi: Update.
46077
46078 2007-05-19  Jim Meyering  <jim@meyering.net>
46079
46080         * lib/utimens.c (gl_futimens): Rename from futimens,
46081         now that glibc-2.6 declares futimens.
46082         * lib/utimens.h: Likewise.
46083
46084 2007-05-19  Bruno Haible  <bruno@clisp.org>
46085
46086         Avoid test failures on mingw.
46087         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
46088         * tests/test-printf-posix.sh: Likewise.
46089         * tests/test-vfprintf-posix.sh: Likewise.
46090         * tests/test-vprintf-posix.sh: Likewise.
46091
46092 2007-05-19  Bruno Haible  <bruno@clisp.org>
46093
46094         Fix *printf result for NaN, Inf, -0.0 on mingw.
46095         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
46096         * lib/vasnprintf.c: Include math.h and isnan.h.
46097         (is_infinite_or_zero): New function.
46098         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
46099         values in the %f, %F, %e, %E, %g, %G directives.
46100         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
46101         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46102         gl_PRINTF_INFINITE and test its result. Invoke
46103         gl_PREREQ_VASNPRINTF_INFINITE.
46104         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46105         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46106         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46107         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46108         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46109         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46110         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46111         * doc/functions/fprintf.texi: Update.
46112         * doc/functions/printf.texi: Update.
46113         * doc/functions/snprintf.texi: Update.
46114         * doc/functions/sprintf.texi: Update.
46115         * doc/functions/vfprintf.texi: Update.
46116         * doc/functions/vprintf.texi: Update.
46117         * doc/functions/vsnprintf.texi: Update.
46118         * doc/functions/vsprintf.texi: Update.
46119
46120 2007-05-19  Bruno Haible  <bruno@clisp.org>
46121
46122         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
46123         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
46124         Instead of multiplying with 10^k, set extra_zeroes to k.
46125         (scale10_round_long_double): Remove function.
46126
46127 2007-05-18  Bruno Haible  <bruno@clisp.org>
46128
46129         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
46130         introduced on 2007-05-06.
46131
46132 2007-05-18  Bruno Haible  <bruno@clisp.org>
46133
46134         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
46135         %g directives.
46136         * tests/test-vasprintf-posix.c (test_function): Likewise.
46137         * tests/test-snprintf-posix.h (test_function): Likewise.
46138         * tests/test-sprintf-posix.h (test_function): Likewise.
46139
46140 2007-05-18  Bruno Haible  <bruno@clisp.org>
46141
46142         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
46143         (strmatch): New function.
46144         (test_function): Test the %f directive on numbers of various exponents.
46145         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
46146         (strmatch): New function.
46147         (test_function): Test the %f directive on numbers of various exponents.
46148         * tests/test-snprintf-posix.h (strmatch): New function.
46149         (test_function): Test the %f directive on numbers of various exponents.
46150         * tests/test-sprintf-posix.h (strmatch): New function.
46151         (test_function): Test the %f directive on numbers of various exponents.
46152         * tests/test-snprintf-posix.c (SIZEOF): New macro.
46153         * tests/test-sprintf-posix.c (SIZEOF): New macro.
46154         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
46155         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
46156
46157 2007-05-18  Bruno Haible  <bruno@clisp.org>
46158
46159         Add support for 'long double' number output.
46160         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
46161         * lib/vasnprintf.c: Include math.h and float+.h.
46162         (mp_limb_t): New type.
46163         (GMP_LIMB_BITS): New macro.
46164         (mp_twolimb_t): New type.
46165         (GMP_TWOLIMB_BITS): New macro.
46166         (mpn_t): New type.
46167         (multiply, divide, convert_to_decimal, decode_long_double,
46168         scale10_round_long_double, scale10_round_decimal_long_double,
46169         floorlog10l): New functions.
46170         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
46171         for the %f, %F, %e, %E, %g, %G directives.
46172         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
46173         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46174         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
46175         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
46176         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46177         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46178         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46179         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46180         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46181         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46182         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46183         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
46184         * modules/snprintf-posix (Depends-on): Likewise.
46185         * modules/sprintf-posix (Depends-on): Likewise.
46186         * modules/vasnprintf-posix (Depends-on): Likewise.
46187         * modules/vasprintf-posix (Depends-on): Likewise.
46188         * modules/vfprintf-posix (Depends-on): Likewise.
46189         * modules/vsnprintf-posix (Depends-on): Likewise.
46190         * modules/vsprintf-posix (Depends-on): Likewise.
46191         * modules/vasnprintf (Files): Add lib/float+.h.
46192         * doc/functions/fprintf.texi: Update.
46193         * doc/functions/printf.texi: Update.
46194         * doc/functions/snprintf.texi: Update.
46195         * doc/functions/sprintf.texi: Update.
46196         * doc/functions/vfprintf.texi: Update.
46197         * doc/functions/vprintf.texi: Update.
46198         * doc/functions/vsnprintf.texi: Update.
46199         * doc/functions/vsprintf.texi: Update.
46200
46201 2007-05-18  Bruno Haible  <bruno@clisp.org>
46202
46203         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
46204
46205 2007-05-18  Bruno Haible  <bruno@clisp.org>
46206
46207         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
46208         for printing 64-bit integers. Needed for mingw.
46209
46210 2007-05-18  Bruno Haible  <bruno@clisp.org>
46211
46212         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
46213         gl_FUNC_FREXPL_WORKS.
46214         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
46215
46216 2007-05-18  Bruno Haible  <bruno@clisp.org>
46217
46218         * modules/frexpl-nolibm-tests: New file.
46219
46220         * modules/frexpl-nolibm: New file.
46221         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
46222
46223 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
46224
46225         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
46226         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
46227         GCC 4.2, which otherwise issues a lot of warnings.
46228         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
46229         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
46230         Likewise.
46231         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
46232         * modules/iconv_open (iconv.h): Likewise.
46233         * modules/locale (locale.h): Likewise.
46234         * modules/netinet_in (netinet/in.h): Likewise.
46235         * modules/sys_select (sys_select.h): Likewise.
46236         * modules/sys_socket (sys/socket.h): Likewise.
46237         * modules/sys_stat (sys/stat.h): Likewise.
46238         * modules/sysexits (sysexits.h): Likewise.
46239         * modules/unistd (unistd.h): Likewise.
46240
46241 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46242
46243         * modules/closein-tests (Makefile.am): Distribute
46244         `test-closein.sh'.
46245
46246 2007-05-17  Bruno Haible  <bruno@clisp.org>
46247
46248         * tests/test-printf-posix.output: Renamed from
46249         tests/test-fprintf-posix.out.
46250         * modules/fprintf-posix-tests: Update.
46251         * modules/printf-posix-tests: Update.
46252         * modules/vfprintf-posix-tests: Update.
46253         * modules/vprintf-posix-tests: Update.
46254         * tests/test-fprintf-posix.sh: Update.
46255         * tests/test-printf-posix.sh: Update.
46256         * tests/test-vfprintf-posix.sh: Update.
46257         * tests/test-vprintf-posix.sh: Update.
46258         Reported by Ralf Wildenhues.
46259
46260 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
46261
46262         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
46263         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
46264         GCC 4.2, which otherwise issues a lot of warnings.
46265         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
46266         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
46267         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
46268         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
46269         it should no longer be needed.
46270         * lib/string_.h: Likewise.
46271         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
46272         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
46273         * modules/inttypes (inttypes.h): Likewise.
46274         * modules/math (math.h): Likewise.
46275         * modules/search (search.h): Likewise.
46276         * modules/signal (signal.h): Likewise.
46277         * modules/stdint (stdint.h): Likewise.
46278         * modules/stdio (stdio.h): Likewise.
46279         * modules/stdlib (stdlib.h): Likewise.
46280         * modules/string (string.h): Likewise.
46281         * modules/sys_time (sys/time.h): Likewise.
46282         * modules/time (time.h): Likewise.
46283         * modules/wchar (wchar.h): Likewise.
46284         * modules/wctype (wtype.h): Likewise.
46285
46286 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
46287
46288         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
46289
46290 2007-05-13  Bruno Haible  <bruno@clisp.org>
46291
46292         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
46293         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46294         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
46295         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
46296         (gl_PREREQ_STRTOK_R): Don't require it here.
46297
46298 2007-05-13  Bruno Haible  <bruno@clisp.org>
46299
46300         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
46301         when used in C++ mode.
46302
46303 2007-05-12  Bruno Haible  <bruno@clisp.org>
46304
46305         * lib/linebuffer.h: Tweak doc.
46306         * lib/linebuffer.c: Likewise.
46307
46308 2007-05-12  James Youngman  <jay@gnu.org>
46309
46310         * lib/linebuffer.c (readlinebuffer_delim): New function,
46311         like readlinebuffer, but use a caller-specified delimiter.
46312         (readlinebuffer): Just call readlinebuffer_delim with '\n'
46313         as the delimiter.
46314         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
46315
46316 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46317
46318         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
46319         * modules/openat (Files): Remove openat-die.c.
46320         (Depends-on): Add openat-die.
46321         * modules/openat-die: New module.
46322
46323 2007-05-06  Bruno Haible  <bruno@clisp.org>
46324
46325         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
46326         Update with info about Cygwin.
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         Reported by Eric Blake.
46336
46337 2007-05-06  Bruno Haible  <bruno@clisp.org>
46338
46339         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
46340         padding ourselves for the floating-point directives.
46341         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
46342         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
46343         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46344         gl_PRINTF_FLAG_ZERO and test its result. Invoke
46345         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
46346         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46347         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
46348         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46349         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46350         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46351         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46352         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46353         * tests/test-snprintf-posix.h (test_function): Also check the width
46354         and some flags in the %f directive.
46355         * tests/test-sprintf-posix.h (test_function): Likewise.
46356         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46357         * tests/test-vasprintf-posix.c (test_function): Likewise.
46358         * doc/functions/fprintf.texi: Update.
46359         * doc/functions/printf.texi: Update.
46360         * doc/functions/snprintf.texi: Update.
46361         * doc/functions/sprintf.texi: Update.
46362         * doc/functions/vfprintf.texi: Update.
46363         * doc/functions/vprintf.texi: Update.
46364         * doc/functions/vsnprintf.texi: Update.
46365         * doc/functions/vsprintf.texi: Update.
46366
46367 2007-05-06  Bruno Haible  <bruno@clisp.org>
46368
46369         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
46370         pass the ' flag character to sprintf or snprintf.
46371         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
46372         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
46373         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46374         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
46375         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
46376         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46377         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
46378         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46379         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46380         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46381         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46382         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46383         * tests/test-snprintf-posix.h (test_function): Also check the grouping
46384         flag.
46385         * tests/test-sprintf-posix.h (test_function): Likewise.
46386         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46387         * tests/test-vasprintf-posix.c (test_function): Likewise.
46388         * doc/functions/fprintf.texi: Update.
46389         * doc/functions/printf.texi: Update.
46390         * doc/functions/snprintf.texi: Update.
46391         * doc/functions/sprintf.texi: Update.
46392         * doc/functions/vfprintf.texi: Update.
46393         * doc/functions/vprintf.texi: Update.
46394         * doc/functions/vsnprintf.texi: Update.
46395         * doc/functions/vsprintf.texi: Update.
46396
46397 2007-05-01  Bruno Haible  <bruno@clisp.org>
46398
46399         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
46400
46401 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
46402
46403         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
46404         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
46405
46406 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46407
46408         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
46409         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
46410         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
46411
46412 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
46413
46414         * lib/argp-help.c (struct hol_entry): New member `ord'.
46415         (HOL_ENTRY_PTRCMP): Use ord for comparison
46416         (hol_sort): Initialize ord.
46417
46418 2007-05-01  Bruno Haible  <bruno@clisp.org>
46419
46420         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
46421         Reported by Eric Blake.
46422         * doc/gnulib.texi (Function Substitutes): Update.
46423
46424 2007-05-01  Bruno Haible  <bruno@clisp.org>
46425
46426         * doc/functions.texi: Remove file, now redundant through
46427         doc/functions/*.texi.
46428
46429 2007-05-01  Bruno Haible  <bruno@clisp.org>
46430
46431         * modules/argp (Depends-on): Add sleep.
46432
46433 2007-05-01  Bruno Haible  <bruno@clisp.org>
46434
46435         * modules/sleep-tests: New file.
46436         * tests/test-sleep.c: New file.
46437
46438         * modules/sleep: New file.
46439         * lib/sleep.c: New file.
46440         * m4/sleep.m4: New file.
46441         * lib/unistd_.h (sleep): New declaration.
46442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
46443         HAVE_SLEEP.
46444         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
46445         * doc/functions/sleep.texi: Document the sleep module.
46446
46447 2007-05-01  Bruno Haible  <bruno@clisp.org>
46448
46449         * lib/sigprocmask.h: Remove file.
46450         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
46451         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
46452         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
46453         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
46454         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
46455         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
46456         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
46457         HAVE_SIGSET_T as a shell variable.
46458         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
46459         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
46460         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
46461         (Depends-on): Add signal. Remove verify.
46462         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
46463         (Include): Mention <signal.h> instead of sigprocmask.h.
46464         * NEWS: Mention the change.
46465         * lib/fatal-signal.c: Don't include sigprocmask.h.
46466
46467 2007-05-01  Bruno Haible  <bruno@clisp.org>
46468
46469         * modules/signal: New file.
46470         * lib/signal_.h: New file.
46471         * m4/signal_h.m4: New file.
46472
46473 2007-05-01  Bruno Haible  <bruno@clisp.org>
46474
46475         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
46476         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
46477         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
46478         HAVE_WCTYPE_CTMP_BUG into wctype.h.
46479
46480 2007-05-01  Bruno Haible  <bruno@clisp.org>
46481
46482         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
46483         configure time.
46484         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
46485         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
46486         * modules/sys_stat (Makefile.am): Substitute their values into
46487         sys/stat.h.
46488
46489 2007-05-01  Bruno Haible  <bruno@clisp.org>
46490
46491         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
46492         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
46493         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
46494
46495 2007-05-01  Bruno Haible  <bruno@clisp.org>
46496
46497         * doc/header/assert.texi: Undo last change: don't mention the gnulib
46498         'assert' module here.
46499
46500 2007-05-01  Bruno Haible  <bruno@clisp.org>
46501
46502         * doc/functions/*.texi: New files.
46503         * doc/functions/google-ranking.txt: New file.
46504         * doc/gnulib.texi (Function Substitutes): New chapter.
46505         (ctime, inet_ntoa): Remove sections.
46506         * doc/ctime.texi: Remove file.
46507         * doc/inet_ntoa.texi: Remove file.
46508         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
46509         dependencies.
46510         (%.info): New rule, specifying a --reference-limit.
46511
46512 2007-05-01  Bruno Haible  <bruno@clisp.org>
46513
46514         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
46515
46516 2007-05-01  Bruno Haible  <bruno@clisp.org>
46517
46518         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
46519         the portability of 'mkdir' to mingw systems.
46520
46521 2007-05-01  Bruno Haible  <bruno@clisp.org>
46522
46523         * doc/headers/google-ranking.txt: New file.
46524
46525 2007-04-30  Eric Blake  <ebb9@byu.net>
46526
46527         Prefer fseeko to fseek.
46528         * modules/getpass (Depends-on): Add fseeko.
46529         * lib/getpass.c (getpass): Use fseeko, not fseek.
46530
46531 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
46532
46533         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
46534         assumes the sorting is stable, while most qsort implementations
46535         are not.  Use argument addresses to ensure they never compare as
46536         equal.
46537
46538         * tests/test-argp-2.sh (usage-indent test): Fix output
46539         (func_compare): Restore diff options
46540         * tests/test-argp.c: Restore #include "progname.h"
46541
46542 2007-04-29  Bruno Haible  <bruno@clisp.org>
46543
46544         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
46545         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46546         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
46547         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46548         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
46549         (configure.ac): Define CHECK_SNPRINTF_POSIX.
46550         (TESTS, check_PROGRAMS): Add test-snprintf.
46551         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
46552         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
46553         (TESTS, check_PROGRAMS): Add test-vsnprintf.
46554         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
46555         assertions that fail on HP-UX, OSF/1, or IRIX.
46556         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
46557
46558 2007-04-29  Bruno Haible  <bruno@clisp.org>
46559
46560         * MODULES.html.sh (posix_functions): Remove 'contents'.
46561
46562 2007-04-29  Karl Berry  <karl@gnu.org>
46563
46564         * config/srclist.txt (gendocs_template_min): new entry.
46565
46566 2007-04-29  Bruno Haible  <bruno@clisp.org>
46567
46568         Work around fpurge bug on BSD systems.
46569         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
46570         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
46571         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
46572         fpurge to rpl_fpurge if the system already has this function.
46573         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
46574         the case where the system already has this function. Correct invariants
46575         on BSD systems.
46576         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
46577         BSD systems.
46578
46579 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
46580
46581         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
46582         proposed by Sven Verdoolaege.
46583
46584         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
46585         options.
46586         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
46587         (usage and help tests): Update
46588
46589 2007-04-29  Bruno Haible  <bruno@clisp.org>
46590
46591         * tests/test-fflush.c (main): Use a file of size 17, not 10.
46592         Print more information in case of failure. Disable a test on BeOS.
46593
46594 2007-04-29  Bruno Haible  <bruno@clisp.org>
46595
46596         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
46597         This helps debugging on systems on which no gdb is available.
46598
46599 2007-04-29  Bruno Haible  <bruno@clisp.org>
46600
46601         * lib/freading.h: Improve comments.
46602         * lib/fwriting.h: Likewise.
46603         * tests/test-freading.c (main): Don't check freading immediately after
46604         repositioning. Needed for glibc.
46605
46606 2007-04-29  Bruno Haible  <bruno@clisp.org>
46607
46608         * lib/freading.c (freading): Trivial simplification.
46609
46610 2007-04-28  Bruno Haible  <bruno@clisp.org>
46611
46612         * tests/test-fwriting.c (main): Also test the interaction between
46613         fflush and fwriting.
46614         * modules/fwriting-tests (Depends-on): Add fflush.
46615
46616         * tests/test-freading.c (main): Also test the interaction between
46617         fflush and freading.
46618         * modules/freading-tests (Depends-on): Add fflush.
46619
46620 2007-04-28  Bruno Haible  <bruno@clisp.org>
46621
46622         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
46623         fseeko and ftello.
46624         Suggested by Eric Blake.
46625
46626 2007-04-28  Jim Meyering  <jim@meyering.net>
46627
46628         Avoid false-negative in gl_STDINT_H's C99 conformance test.
46629         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
46630         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
46631
46632 2007-04-27  Eric Blake  <ebb9@byu.net>
46633
46634         * doc/headers/assert.texi (assert.h): Document assert module use.
46635
46636 2007-04-27  Bruno Haible  <bruno@clisp.org>
46637
46638         * doc/headers/*.texi: New files.
46639         * doc/gnulib.texi (Header File Substitutes): New chapter.
46640         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
46641         dependencies.
46642         (standards.info ,standards.html, standards.dvi): Update dependencies.
46643         (mostlyclean, clean): New targets.
46644
46645 2007-04-27  Bruno Haible  <bruno@clisp.org>
46646
46647         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
46648         * modules/sysexits (Files, Makefile.am): Update.
46649
46650         * lib/sys_socket_.h: Renamed from lib/socket_.h.
46651         * modules/sys_socket (Files, Makefile.am): Update.
46652
46653         * lib/sys_stat_.h: Renamed from lib/stat_.h.
46654         * modules/sys_stat (Files, Makefile.am): Update.
46655
46656 2007-04-27  Eric Blake  <ebb9@byu.net>
46657
46658         * lib/freading.h: Improve comments.
46659         * lib/fwriting.h: Likewise.
46660         * lib/fflush.c: Likewise.
46661
46662         Fix closein for mingw.
46663         * modules/closein-tests: Add tests for closein.
46664         * tests/test-closein.c: New file.
46665         * tests/test-closein.sh: Likewise.
46666         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
46667         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
46668
46669 2007-04-27  Bruno Haible  <bruno@clisp.org>
46670
46671         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
46672         version is < 6.
46673         * lib/math_.h [__DECC]: Likewise.
46674         * lib/stdio_.h [__DECC]: Likewise.
46675         * lib/stdlib_.h [__DECC]: Likewise.
46676         * lib/string_.h [__DECC]: Likewise.
46677         * lib/time_.h [__DECC]: Likewise.
46678         * lib/wchar_.h [__DECC]: Likewise.
46679         * lib/wctype_.h [__DECC]: Likewise.
46680
46681 2007-04-27  Bruno Haible  <bruno@clisp.org>
46682
46683         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
46684
46685 2007-04-27  Bruno Haible  <bruno@clisp.org>
46686
46687         * lib/fflush.c: Add comments.
46688         * modules/fpurge-tests (Depends-on): Add fflush.
46689         * modules/freadable-tests (Depends-on): Likewise.
46690         * modules/fwritable-tests (Depends-on): Likewise.
46691
46692 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
46693
46694         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
46695         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
46696         Report by Bruno Haible <bruno@clisp.org>.
46697
46698 2007-04-26  Eric Blake  <ebb9@byu.net>
46699
46700         Fix fflush on mingw.
46701         * modules/fflush (Depends-on): Add freading.
46702         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
46703         but unread data.
46704
46705 2007-04-26  Eric Blake  <ebb9@byu.net>
46706         and Bruno Haible  <bruno@clisp.org>
46707
46708         Implement freading and fwriting.
46709         * lib/freading.c: New file.
46710         * lib/freading.h: Likewise.
46711         * m4/freading.m4: Likewise.
46712         * modules/freading: Likewise.
46713         * modules/freading-tests: Likewise.
46714         * tests/test-freading.c: Likewise.
46715         * lib/fwriting.c: New file.
46716         * lib/fwriting.h: Likewise.
46717         * m4/fwriting.m4: Likewise.
46718         * modules/fwriting: Likewise.
46719         * modules/fwriting-tests: Likewise.
46720         * tests/test-fwriting.c: Likewise.
46721         * MODULES.html.sh (File stream based Input/Output): Mention them.
46722
46723 2007-04-26  Bruno Haible  <bruno@clisp.org>
46724
46725         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
46726         'long' when we assume it.
46727         Suggested by Eric Blake.
46728
46729 2007-04-26  Bruno Haible  <bruno@clisp.org>
46730
46731         Ensure fseeko, ftello are declared on glibc systems.
46732         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
46733         * modules/fseeko (configure.ac-early): Likewise.
46734         * modules/ftello (configure.ac-early): Likewise.
46735         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
46736         AC_FUNC_FSEEKO for this.
46737         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
46738         (gl_CHECK_FSEEKO): Remove macro.
46739
46740 2007-04-26  Bruno Haible  <bruno@clisp.org>
46741
46742         * tests/test-fflush.c (main): Also check the ftell result after
46743         fflush and fseek/fseeko.
46744         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
46745         file descriptor position cache in the stream.
46746         * lib/fseeko.c (rpl_fseeko): Likewise.
46747
46748 2007-04-26  Bruno Haible  <bruno@clisp.org>
46749
46750         * modules/fflush-tests (Depends-on): Add fseeko.
46751
46752 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
46753             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46754
46755         * lib/argz_.h: ensure error_t definition is obtained in same
46756         mechanism system argz.h would have.
46757         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
46758         argz facilities are known bad.  Err on the side of caution if
46759         cross-compiling.
46760
46761 2007-04-25  Eric Blake  <ebb9@byu.net>
46762
46763         * lib/fpurge.c (includes): Use stdlib.h for free.
46764         * tests/test-fflush.c (main): Also test fflush-fseeko.
46765
46766 2007-04-25  Bruno Haible  <bruno@clisp.org>
46767
46768         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
46769         * lib/fseeko.c: New file.
46770         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
46771         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
46772         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
46773         gl_FUNC_FSEEKO.
46774         (gl_FUNC_FSEEKO): Invoke it.
46775         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
46776         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
46777         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
46778
46779 2007-04-25  Bruno Haible  <bruno@clisp.org>
46780
46781         * modules/fflush (Depends-on): Add ftello.
46782
46783 2007-04-25  Bruno Haible  <bruno@clisp.org>
46784
46785         * modules/ftello-tests: New file.
46786         * tests/test-ftello.c: New file.
46787
46788         * modules/ftello: New file.
46789         * m4/ftello.m4: New file.
46790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
46791         HAVE_FTELLO.
46792         * lib/stdio_.h (ftello): New declaration.
46793         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
46794         HAVE_FTELLO.
46795
46796 2007-04-25  Bruno Haible  <bruno@clisp.org>
46797
46798         * modules/fseeko-tests: New file.
46799         * tests/test-fseeko.c: New file.
46800
46801         * modules/fseeko: New file.
46802         * m4/fseeko.m4: New file.
46803         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
46804         HAVE_FSEEKO.
46805         * lib/stdio_.h (fseeko): New declaration.
46806         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
46807         HAVE_FSEEKO.
46808
46809 2007-04-25  Bruno Haible  <bruno@clisp.org>
46810
46811         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
46812
46813 2007-04-25  Bruno Haible  <bruno@clisp.org>
46814
46815         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
46816         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
46817         * tests/test-unistd.c: Likewise.
46818         * tests/test-fcntl.c: Likewise.
46819
46820 2007-04-23  Eric Blake  <ebb9@byu.net>
46821
46822         * lib/fflush.c: Fix missing include.
46823         Reported by Bruno Haible.
46824
46825 2007-04-23  Bruno Haible  <bruno@clisp.org>
46826
46827         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
46828         Reported by Eric Blake.
46829
46830 2007-04-23  Bruno Haible  <bruno@clisp.org>
46831
46832         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
46833
46834 2007-04-23  Bruno Haible  <bruno@clisp.org>
46835
46836         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
46837
46838 2007-04-23  Bruno Haible  <bruno@clisp.org>
46839
46840         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
46841         Needed on HP-UX 11.
46842
46843 2007-04-16  Eric Blake  <ebb9@byu.net>
46844
46845         Make fflush rely on fpurge.
46846         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
46847         open coding all variants.
46848         * modules/fflush (Depends-on): Add fpurge and unistd.
46849         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
46850         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
46851
46852         Fix --with-tests compilation on cygwin.
46853         * modules/argmatch-tests (Makefile.am): List gnulib library first
46854         in LDADD.
46855         * modules/argp-tests (Makefile.am): Likewise.
46856         * modules/array-list-tests (Makefile.am): Likewise.
46857         * modules/array-oset-tests (Makefile.am): Likewise.
46858         * modules/avltree-list-tests (Makefile.am): Likewise.
46859         * modules/avltree-oset-tests (Makefile.am): Likewise.
46860         * modules/avltreehash-list-tests (Makefile.am): Likewise.
46861         * modules/carray-list-tests (Makefile.am): Likewise.
46862         * modules/dirname-tests (Makefile.am): Likewise.
46863         * modules/frexp-tests (Makefile.am): Likewise.
46864         * modules/isnanl-tests (Makefile.am): Likewise.
46865         * modules/linked-list-tests (Makefile.am): Likewise.
46866         * modules/linkedhash-list-tests (Makefile.am): Likewise.
46867         * modules/lock-tests (Makefile.am): Likewise.
46868         * modules/rbtree-list-tests (Makefile.am): Likewise.
46869         * modules/rbtree-oset-tests (Makefile.am): Likewise.
46870         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
46871         * modules/tls-tests (Makefile.am): Likewise.
46872         * modules/tsearch-tests (Makefile.am): Likewise.
46873         * modules/xvasprintf-tests (Makefile.am): Likewise.
46874
46875         Fix fpurge for cygwin.
46876         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
46877         value.
46878         * modules/fpurge-tests (Depends-on): Clean up trash.
46879
46880 2007-04-16  Simon Josefsson  <simon@josefsson.org>
46881
46882         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
46883
46884         * m4/autobuild.m4: Re-indent.
46885
46886 2007-04-13  Bruno Haible  <bruno@clisp.org>
46887
46888         * modules/fpurge-tests: New file.
46889         * tests/test-fpurge.c: New file.
46890
46891         * modules/fpurge: New file.
46892         * lib/fpurge.h: New file.
46893         * lib/fpurge.c: New file.
46894         * m4/fpurge.m4: New file.
46895
46896 2007-04-13  Bruno Haible  <bruno@clisp.org>
46897
46898         * modules/fbufmode-tests: New file.
46899         * tests/test-fbufmode.c: New file.
46900
46901         * modules/fbufmode: New file.
46902         * lib/fbufmode.h: New file.
46903         * lib/fbufmode.c: New file.
46904         * m4/fbufmode.m4: New file.
46905
46906 2007-04-13  Bruno Haible  <bruno@clisp.org>
46907
46908         * modules/fwritable-tests: New file.
46909         * tests/test-fwritable.c: New file.
46910
46911         * modules/fwritable: New file.
46912         * lib/fwritable.h: New file.
46913         * lib/fwritable.c: New file.
46914         * m4/fwritable.m4: New file.
46915
46916 2007-04-13  Bruno Haible  <bruno@clisp.org>
46917
46918         * modules/freadable-tests: New file.
46919         * tests/test-freadable.c: New file.
46920
46921         * modules/freadable: New file.
46922         * lib/freadable.h: New file.
46923         * lib/freadable.c: New file.
46924         * m4/freadable.m4: New file.
46925
46926 2007-04-13  Bruno Haible  <bruno@clisp.org>
46927
46928         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
46929         MOSTLYCLEANFILES.
46930
46931 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
46932
46933         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
46934         gzip bootstrap.conf to avoid dragging in i18n machinery.
46935         (gnulib_tool_option): Use it.
46936
46937 2007-04-13  Bruno Haible  <bruno@clisp.org>
46938
46939         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
46940         %F directives.
46941         * tests/test-vasprintf-posix.c (test_function): Likewise.
46942         * tests/test-snprintf-posix.h (test_function): Likewise.
46943         * tests/test-sprintf-posix.h (test_function): Likewise.
46944         * tests/test-fprintf-posix.h (test_function): Likewise.
46945         * tests/test-printf-posix.h (test_function): Likewise.
46946         * tests/test-fprintf-posix.out: Likewise.
46947
46948 2007-04-13  Bruno Haible  <bruno@clisp.org>
46949
46950         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
46951         * modules/tls-tests (configure.ac): Likewise.
46952         Reported by Arto C. Nirkko <anirkko@insel.ch>.
46953
46954 2007-04-13  Bruno Haible  <bruno@clisp.org>
46955
46956         * lib/tls.c (glthread_tls_get): Fix return type.
46957         Patch by Arto C. Nirkko <anirkko@insel.ch>.
46958
46959 2007-04-12  Eric Blake  <ebb9@byu.net>
46960
46961         * modules/gettime (Depends-on): Remove gettime.
46962         Reported by Dmitry V. Levin.
46963
46964 2007-04-12  Bruno Haible  <bruno@clisp.org>
46965
46966         * modules/fflush (Include): Mention <stdio.h>.
46967         * modules/strtoimax (Include): Mention <inttypes.h>.
46968         * modules/strtoumax (Include): Likewise.
46969
46970 2007-04-12  Eric Blake  <ebb9@byu.net>
46971
46972         * .cvsignore: New file.
46973         * .gitignore: Likewise.
46974
46975 2007-04-12  Bruno Haible  <bruno@clisp.org>
46976
46977         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
46978         not before, since $(LDADD) often contains libgnu.a.
46979         * modules/striconv-tests (test_striconv_LDADD): Likewise.
46980         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
46981         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
46982         Needed on Cygwin.
46983
46984 2007-04-12  Eric Blake  <ebb9@byu.net>
46985
46986         Work around glibc's failure to flush stdin on fclose.
46987         * lib/closein.c (close_stdin): Flush stdin before closing.
46988
46989         Work around glibc's failure to reset seekable stdin on exit.
46990         * modules/closein: New module.
46991         * lib/closein.c: New file.
46992         * lib/closein.h: Likewise.
46993         * m4/closein.m4: Likewise.
46994         * MODULES.html.sh (File stream based Input/Output): Document it.
46995
46996 2007-04-12  Simon Josefsson  <simon@josefsson.org>
46997
46998         * gnulib-tool: Rename generated 'autobuild' script to
46999         'do-autobuild' in --create-megatestdir output.
47000
47001         * doc/gnulib.texi (Build robot for gnulib): Fix.
47002
47003 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47004
47005         * modules/sysexits (Depends-on): Add absolute-header.
47006
47007 2007-04-12  Eric Blake  <ebb9@byu.net>
47008
47009         No need to preserve errno on success.
47010         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
47011         Reported by Bruno Haible.
47012
47013 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47014
47015         * MODULES.html.sh (Support for maintaining and releasing
47016         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
47017
47018 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47019
47020         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
47021
47022 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47023
47024         * modules/autobuild: New module.
47025
47026         * m4/autobuild.m4: New file.
47027
47028 2007-04-11  Bruno Haible  <bruno@clisp.org>
47029
47030         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
47031         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
47032         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
47033         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
47034         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47035         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47036         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47037         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47038         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47039         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47040         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
47041         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47042         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47043         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
47044         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47045         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47046         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
47047         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47048         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47049         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
47050         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47051         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47052         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
47053         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47054         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47055         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
47056         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47057         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47058         Reported by Eric Blake.
47059
47060 2007-04-11  Bruno Haible  <bruno@clisp.org>
47061
47062         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
47063
47064 2007-04-10  Bruno Haible  <bruno@clisp.org>
47065
47066         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
47067         for NaN and Infinity. Needed on FreeBSD 6.1.
47068         * tests/test-vasnprintf-posix.c (test_function): Undo last change
47069         regarding results for "%010a" of Infinity and NaN.
47070         * tests/test-vasprintf-posix.c (test_function): Likewise.
47071         * tests/test-snprintf-posix.h (test_function): Likewise.
47072         * tests/test-sprintf-posix.h (test_function): Likewise.
47073         * tests/test-fprintf-posix.h (test_function): Likewise.
47074         * tests/test-printf-posix.h (test_function): Likewise.
47075         * tests/test-fprintf-posix.out: Likewise.
47076
47077 2007-04-10  Bruno Haible  <bruno@clisp.org>
47078
47079         * modules/locale-tests: New file.
47080         * tests/test-locale.c: New file.
47081
47082         * modules/locale: New file.
47083         * lib/locale_.h: New file.
47084         * m4/locale_h.m4: New file.
47085
47086 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
47087             Bruno Haible  <bruno@clisp.org>
47088
47089         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
47090         be determined, test for availability of the copysignf, copysign,
47091         copysignl functions.
47092         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
47093         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
47094         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
47095
47096 2007-04-09  Eric Blake  <ebb9@byu.net>
47097
47098         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
47099         * modules/stdio (Makefile.am): Support fflush.
47100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47101         * modules/fflush: New file.
47102         * lib/fflush.c: Likewise.
47103         * m4/fflush.m4: Likewise.
47104         * modules/fflush-tests: New test.
47105         * tests/test-fflush.c: Likewise.
47106         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
47107
47108 2007-04-06  Bruno Haible  <bruno@clisp.org>
47109
47110         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
47111         (VASNPRINTF): Use signbit for faster determination whether to print a
47112         minus sign.
47113         * modules/vasnprintf (Files): Remove lib/float+.h.
47114         * modules/fprintf-posix (Depends-on): Add signbit.
47115         * modules/snprintf-posix (Depends-on): Likewise.
47116         * modules/sprintf-posix (Depends-on): Likewise.
47117         * modules/vasnprintf-posix (Depends-on): Likewise.
47118         * modules/vasprintf-posix (Depends-on): Likewise.
47119         * modules/vfprintf-posix (Depends-on): Likewise.
47120         * modules/vsnprintf-posix (Depends-on): Likewise.
47121         * modules/vsprintf-posix (Depends-on): Likewise.
47122
47123 2007-04-06  Bruno Haible  <bruno@clisp.org>
47124
47125         * tests/test-frexp.c (main): Test also the sign bit of zero results.
47126         * tests/test-frexpl.c (main): Likewise.
47127         * tests/test-ldexpl.c (main): Likewise.
47128         * modules/frexp-tests (Depends-on): Add signbit.
47129         * modules/frexpl-tests (Depdends-on): Likewise.
47130         * modules/ldexpl-tests (Depdends-on): Likewise.
47131
47132 2007-04-06  Bruno Haible  <bruno@clisp.org>
47133
47134         * modules/signbit-tests: New file.
47135         * tests/test-signbit.c: New file.
47136
47137         * modules/signbit: New file.
47138         * lib/signbitf.c: New file.
47139         * lib/signbitd.c: New file.
47140         * lib/signbitl.c: New file.
47141         * m4/signbit.m4: New file.
47142         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
47143         (signbit): New macro.
47144         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
47145         REPLACE_SIGNBIT.
47146         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
47147         REPLACE_FREXPL into math.h.
47148
47149 2007-04-06  Bruno Haible  <bruno@clisp.org>
47150
47151         * modules/isnanf-nolibm-tests: New file.
47152         * tests/test-isnanf.c: New file.
47153
47154         * modules/isnanf-nolibm: New file.
47155         * lib/isnanf.h: New file.
47156         * lib/isnanf.c: New file.
47157         * lib/isnan.c: Consider the USE_FLOAT macro.
47158         * m4/isnanf.m4: New file.
47159
47160 2007-04-06  Bruno Haible  <bruno@clisp.org>
47161
47162         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
47163         (Link): New section.
47164
47165         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
47166
47167 2007-04-06  Bruno Haible  <bruno@clisp.org>
47168
47169         Assume the 'long double' type.
47170         * m4/longdouble.m4: Remove file.
47171         * config/srclist.txt: Don't mention longdouble.m4.
47172         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
47173         * lib/float+.h: Likewise.
47174         * lib/frexp.c: Likewise.
47175         * lib/printf-args.h: Likewise.
47176         * lib/printf-args.c: Likewise.
47177         * lib/printf-frexp.c: Likewise.
47178         * lib/printf-parse.c: Likewise.
47179         * lib/vasnprintf.c: Likewise.
47180         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
47181         * m4/intl.m4: Likewise.
47182         * m4/isnanl.m4: Likewise.
47183         * m4/printf.m4: Likewise.
47184         * m4/printf-frexpl.m4: Likewise.
47185         * m4/vasnprintf.m4: Likewise.
47186         * modules/allocsa (Files): Remove m4/longdouble.m4.
47187         * modules/gettext (Files): Likewise.
47188         * modules/relocatable-prog-wrapper (Files): Likewise.
47189         * modules/vasnprintf (Files): Likewise.
47190         * modules/isnanl (Files): Likewise.
47191         (Include): Simplify.
47192         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
47193         (Include): Simplify.
47194         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
47195         (Include): Simplify.
47196         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
47197         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47198         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
47199         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47200         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
47201         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47202         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
47203         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47204         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
47205         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47206         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
47207         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47208         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
47209         * tests/test-isnanl.c: Likewise.
47210         * tests/test-snprintf-posix.h: Likewise.
47211         * tests/test-sprintf-posix.h: Likewise.
47212         * tests/test-vasnprintf-posix.c: Likewise.
47213         * tests/test-vasnprintf-posix2.c: Likewise.
47214         * tests/test-vasprintf-posix.c: Likewise.
47215
47216 2007-04-06  Bruno Haible  <bruno@clisp.org>
47217
47218         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
47219         * lib/math_.h [__DECC]: Include the overridden include file through
47220         #include_next, outside the double-inclusion guard.
47221         * lib/stdio_.h [__DECC]: Likewise.
47222         * lib/stdlib_.h [__DECC]: Likewise.
47223         * lib/string_.h [__DECC]: Likewise.
47224         * lib/time_.h [__DECC]: Likewise.
47225         * lib/wchar_.h [__DECC]: Likewise.
47226         * lib/wctype_.h [__DECC]: Likewise.
47227         * lib/inttypes_.h [__DECC]: Likewise.
47228         Reported by Albert Chin <china@thewrittenword.com> in
47229         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
47230
47231 2007-04-04  Eric Blake  <ebb9@byu.net>
47232
47233         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
47234         1.5.x.
47235
47236 2007-04-04  Bruno Haible  <bruno@clisp.org>
47237
47238         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
47239         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
47240
47241 2007-04-04  Bruno Haible  <bruno@clisp.org>
47242
47243         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
47244         results for "%010a" of Infinity and NaN.
47245         * tests/test-vasprintf-posix.c (test_function): Likewise.
47246         * tests/test-snprintf-posix.h (test_function): Likewise.
47247         * tests/test-sprintf-posix.h (test_function): Likewise.
47248         * tests/test-fprintf-posix.h (test_function): Remove these tests.
47249         * tests/test-printf-posix.h (test_function): Likewise.
47250         * tests/test-fprintf-posix.out: Update.
47251         Needed for FreeBSD 6.1.
47252
47253 2007-04-04  Bruno Haible  <bruno@clisp.org>
47254
47255         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
47256         directly used by the gnulib modules nor by gnulib-tool.
47257
47258 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
47259
47260         * DEPENDENCIES: Give overall description of version dependency
47261         desirability.  Use more-typical names for apps.
47262         Add shell, coreutils, diffutils, grep, tar, gzip.
47263
47264 2007-04-04  Simon Josefsson  <simon@josefsson.org>
47265
47266         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
47267
47268 2007-04-04  Karl Berry  <karl@gnu.org>
47269
47270         * MODULES.html.sh (func_module): missing '.
47271
47272 2007-04-03  Bruno Haible  <bruno@clisp.org>
47273
47274         * modules/argmatch-tests (Makefile.am): New variable
47275         test_argmatch_LDADD.
47276         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
47277         * modules/array-list-tests (Makefile.am): New variable
47278         test_array_list_LDADD.
47279         * modules/array-oset-tests (Makefile.am): New variable
47280         test_array_oset_LDADD.
47281         * modules/avltree-list-tests (Makefile.am): New variable
47282         test_avltree_list_LDADD.
47283         * modules/avltree-oset-tests (Makefile.am): New variable
47284         test_avltree_oset_LDADD.
47285         * modules/avltreehash-list-tests (Makefile.am): New variable
47286         test_avltreehash_list_LDADD.
47287         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
47288         test_canonicalize_lgpl_LDADD.
47289         * modules/carray-list-tests (Makefile.am): New variable
47290         test_carray_list_LDADD.
47291         * modules/dirname-tests (Makefile.am): New variable
47292         test_dirname_LDADD.
47293         * modules/linked-list-tests (Makefile.am): New variable
47294         test_linked_list_LDADD.
47295         * modules/linkedhash-list-tests (Makefile.am): New variable
47296         test_linkedhash_list_LDADD.
47297         * modules/rbtree-list-tests (Makefile.am): New variable
47298         test_rbtree_list_LDADD.
47299         * modules/rbtree-oset-tests (Makefile.am): New variable
47300         test_rbtree_oset_LDADD.
47301         * modules/rbtreehash-list-tests (Makefile.am): New variable
47302         test_rbtreehash_list_LDADD.
47303         * modules/xvasprintf-tests (Makefile.am): New variable
47304         test_xvasprintf_LDADD.
47305         Reported by Eric Blake.
47306
47307 2007-04-03  Eric Blake  <ebb9@byu.net>
47308
47309         * DEPENDENCIES: Weaken m4 requirements.
47310
47311 2007-04-03  Bruno Haible  <bruno@clisp.org>
47312
47313         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
47314         * modules/isnanl-tests (configure.ac): Likewise.
47315
47316 2007-04-03  Ben Pfaff  <blp@gnu.org>
47317
47318         * modules/iconv_open: Add $(srcdir)/ to source directory
47319         references in Makefile fragments that call gperf, to fix VPATH
47320         builds.
47321
47322 2007-04-03  Bruno Haible  <bruno@clisp.org>
47323
47324         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
47325         * lib/ldexpl.c: Undo last change.
47326
47327 2007-04-03  Bruno Haible  <bruno@clisp.org>
47328
47329         * modules/printf-frexpl (Depends-on): Undo last change.
47330         (Files): Add m4/ldexpl.m4.
47331
47332 2007-04-03  Bruno Haible  <bruno@clisp.org>
47333
47334         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
47335         * modules/isnanl (Link): New section.
47336
47337         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
47338         * modules/frexp (Link): New section.
47339
47340         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
47341         * modules/frexpl (Link): New section.
47342
47343         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
47344         * modules/ldexpl (Link): New section.
47345
47346 2007-04-03  Bruno Haible  <bruno@clisp.org>
47347
47348         * modules/TEMPLATE-EXTENDED: New file.
47349         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
47350
47351 2007-04-03  Bruno Haible  <bruno@clisp.org>
47352
47353         * DEPENDENCIES: New file.
47354         Suggested by Simon Josefsson.
47355
47356 2007-04-03  Bruno Haible  <bruno@clisp.org>
47357
47358         * doc/gnulib.texi: Escape @.
47359
47360 2007-04-03  James Youngman  <jay@gnu.org>
47361         and Paul Eggert  <eggert@cs.ucla.edu>
47362
47363         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
47364         birthtime on all systems that have birthtime, not just those which
47365         use st_birthtimensec rather than st_birthtim.  Putting zero in
47366         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
47367         that the birth time is not available for files on an NFS mount.
47368
47369 2007-04-03  Simon Josefsson  <simon@josefsson.org>
47370
47371         * modules/memxor: Move back from crypto/, suggested by Bruno.
47372         * modules/crypto/hmac-sha1: Fix memxor dependency.
47373
47374         * modules/crypto/gc: Moved from ../.
47375
47376 2007-04-02  Eric Blake  <ebb9@byu.net>
47377
47378         * lib/ldexpl.c (includes): Avoid libm.
47379
47380         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
47381
47382 2007-04-02  Bruno Haible  <bruno@clisp.org>
47383
47384         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
47385         on IRIX.
47386
47387 2007-04-02  Bruno Haible  <bruno@clisp.org>
47388
47389         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
47390         x86 or x86_64 platforms running MacOS X.
47391         Reported by Ryan Schmidt <@ryandesign.com>.
47392
47393 2007-04-02  Bruno Haible  <bruno@clisp.org>
47394
47395         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
47396         i386.
47397
47398 2007-04-01  Simon Josefsson  <simon@josefsson.org>
47399
47400         * modules/crypto/arcfour: Moved from ../.
47401         * modules/crypto/arcfour-tests: Moved from ../.
47402         * modules/crypto/arctwo: Moved from ../.
47403         * modules/crypto/arctwo-tests: Moved from ../.
47404         * modules/crypto/des: Moved from ../.
47405         * modules/crypto/des-tests: Moved from ../.
47406         * modules/crypto/gc-arcfour: Moved from ../.
47407         * modules/crypto/gc-arcfour-tests: Moved from ../.
47408         * modules/crypto/gc-arctwo: Moved from ../.
47409         * modules/crypto/gc-arctwo-tests: Moved from ../.
47410         * modules/crypto/gc-des: Moved from ../.
47411         * modules/crypto/gc-des-tests: Moved from ../.
47412         * modules/crypto/gc-hmac-md5: Moved from ../.
47413         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
47414         * modules/crypto/gc-hmac-sha1: Moved from ../.
47415         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
47416         * modules/crypto/gc-md2: Moved from ../.
47417         * modules/crypto/gc-md2-tests: Moved from ../.
47418         * modules/crypto/gc-md4: Moved from ../.
47419         * modules/crypto/gc-md4-tests: Moved from ../.
47420         * modules/crypto/gc-md5: Moved from ../.
47421         * modules/crypto/gc-md5-tests: Moved from ../.
47422         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
47423         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
47424         * modules/crypto/gc-random: Moved from ../.
47425         * modules/crypto/gc-rijndael: Moved from ../.
47426         * modules/crypto/gc-rijndael-tests: Moved from ../.
47427         * modules/crypto/gc-sha1: Moved from ../.
47428         * modules/crypto/gc-sha1-tests: Moved from ../.
47429         * modules/crypto/gc-tests: Moved from ../.
47430         * modules/crypto/hmac-md5: Moved from ../.
47431         * modules/crypto/hmac-md5-tests: Moved from ../.
47432         * modules/crypto/hmac-sha1: Moved from ../.
47433         * modules/crypto/hmac-sha1-tests: Moved from ../.
47434         * modules/crypto/md2: Moved from ../.
47435         * modules/crypto/md2-tests: Moved from ../.
47436         * modules/crypto/md4: Moved from ../.
47437         * modules/crypto/md4-tests: Moved from ../.
47438         * modules/crypto/md5: Moved from ../.
47439         * modules/crypto/md5-tests: Moved from ../.
47440         * modules/crypto/memxor: Moved from ../.
47441         * modules/crypto/rijndael: Moved from ../.
47442         * modules/crypto/rijndael-tests: Moved from ../.
47443         * modules/crypto/sha1: Moved from ../.
47444
47445 2007-03-30  James Youngman  <jay@gnu.org>
47446
47447         * tests/test-stat-time.c (prepare_test): use chmod() rather than
47448         rename() to change the ctime of a file (because ctime is unaffected
47449         by rename on jfs2 on AIX 5.1).
47450         (main): Start by doing cleanup, in case a previous run failed leaving
47451         test files behind.
47452
47453 2007-03-31  Bruno Haible  <bruno@clisp.org>
47454
47455         Support old proprietary implementations of iconv.
47456         * modules/iconv_open: New file.
47457         * lib/iconv_.h: New file.
47458         * m4/iconv_h.m4: New file.
47459         * lib/iconv_open.c: New file.
47460         * lib/iconv_open-aix.gperf: New file.
47461         * lib/iconv_open-hpux.gperf: New file.
47462         * lib/iconv_open-irix.gperf: New file.
47463         * lib/iconv_open-osf.gperf: New file.
47464         * m4/iconv_open.m4: New file.
47465         * modules/linebreak (Depends-on): Add iconv_open.
47466         * modules/striconv (Depends-on): Likewise.
47467         * modules/striconveh (Depends-on): Likewise.
47468         * modules/unicodeio (Depends-on): Likewise.
47469         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
47470         (iconv_t)(-1).
47471         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
47472         conversion if cd is (iconv_t)(-1).
47473         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
47474         is not possible.
47475
47476 2007-03-31  Bruno Haible  <bruno@clisp.org>
47477
47478         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
47479         work on Solaris either. Protect also second use of "autodetect_jp".
47480
47481 2007-03-31  Bruno Haible  <bruno@clisp.org>
47482
47483         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
47484         the function is not present.
47485
47486 2007-03-31  Bruno Haible  <bruno@clisp.org>
47487
47488         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
47489         the function is not present.
47490
47491 2007-03-31  Bruno Haible  <bruno@clisp.org>
47492
47493         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
47494         a bug in HP-UX iconv_open().
47495
47496 2007-03-31  Bruno Haible  <bruno@clisp.org>
47497
47498         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
47499         (Mathematics <math.h>): New section, add fpieee.
47500         (Input/output <stdio.h>): Add fseterr.
47501         (Mathematics <math.h>): New section, add printf-frexp.
47502         (Container data structures): Add sublist.
47503         (Core language properties): Add fpucw, inline.
47504         (Functions for greatest-width integer types <inttypes.h>): Add
47505         imaxabs, imaxdiv, inttypes.
47506         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
47507         isnanl-nolibm, ldexp.
47508         (Mathematics <math.h>): New section, add printf-frexpl.
47509         (Support for systems lacking POSIX:2001): Add fprintf-posix,
47510         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
47511         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
47512         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
47513         (Unicode string functions): Add unistr/u*-mbtoucr.
47514         (Java): Add javacomp-script, javaexec-script.
47515         (C#): Add csharpcomp-script, csharpexec-script.
47516         (Support for building libraries and executables): Add havelib,
47517         relocatable-*.
47518         (Support for maintaining and releasing projects): Renamed from
47519         'Support for maintaining and release projects'. Add announce-gen.
47520
47521 2007-03-31  Bruno Haible  <bruno@clisp.org>
47522
47523         * README: Talk primarily about git.
47524         (git and CVS): Renamed from CVS.
47525         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
47526         gnulib is available through git.
47527         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
47528
47529 2007-03-30  Bruno Haible  <bruno@clisp.org>
47530
47531         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
47532         * lib/poll_.h: Likewise.
47533         * lib/stat_.h: Likewise.
47534         * lib/sys_time_.h: Likewise.
47535         * lib/sysexit_.h: Likewise.
47536         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
47537         * lib/stdbool_.h: Likewise.
47538         * lib/byteswap_.h: Add double-inclusion guard.
47539
47540 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
47541
47542         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
47543
47544 2007-03-30  Karl Berry  <karl@gnu.org>
47545
47546         * config/srclist-update: double space after USA in the license
47547         substitution, since that's how it's usually (?) written.
47548
47549 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
47550
47551         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
47552         reported by Bruno Haible.
47553
47554 2007-03-29  Bruno Haible  <bruno@clisp.org>
47555
47556         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
47557         a bug in AIX iconv().
47558
47559 2007-03-29  Bruno Haible  <bruno@clisp.org>
47560
47561         * modules/ldexpl-tests: New file.
47562         * tests/test-ldexpl.c: New file.
47563
47564 2007-03-29  Bruno Haible  <bruno@clisp.org>
47565
47566         * lib/ldexpl.c: Include fpucw.h.
47567         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
47568         multiplication.
47569         * modules/ldexpl (Depends-on): Add fpucw.
47570
47571 2007-03-29  Bruno Haible  <bruno@clisp.org>
47572
47573         * modules/ldexpl: New file.
47574         * m4/ldexpl.m4: New file.
47575         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
47576         set.
47577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
47578         REPLACE_LDEXPL.
47579         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
47580         REPLACE_LDEXPL.
47581         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
47582         gl_FUNC_LDEXPL_WORKS.
47583         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
47584         * modules/mathl (Files): Remove lib/ldexpl.c.
47585         (Depends-on): Add ldexpl.
47586
47587 2007-03-29  Bruno Haible  <bruno@clisp.org>
47588
47589         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
47590
47591 2007-03-29  Bruno Haible  <bruno@clisp.org>
47592
47593         * tests/test-striconveh.c (main): Don't assume that a direct conversion
47594         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
47595         and possibly also HP-UX.
47596         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
47597         work on AIX, IRIX, HP-UX, OSF/1.
47598         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47599         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47600         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47601         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47602         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
47603         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47604
47605 2007-03-29  Bruno Haible  <bruno@clisp.org>
47606
47607         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
47608
47609 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
47610
47611         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
47612         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
47613
47614 2007-03-29  Eric Blake  <ebb9@byu.net>
47615
47616         * lib/acl-internal.h: Remove redundant include.
47617         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
47618         Cygwin when a file is locked.
47619
47620 2007-03-29  Bruno Haible  <bruno@clisp.org>
47621
47622         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
47623         file.
47624         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
47625
47626 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
47627
47628         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
47629         try to remove a parent directory if the child couldn't be removed
47630         (except for the first rmdir, which could fail because the child
47631         doesn't exist).  Problem reported by Jeff Blaine in
47632         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
47633
47634 2007-03-28  Bruno Haible  <bruno@clisp.org>
47635
47636         * lib/striconveh.c (utf8conv_carefully): New function.
47637         (mem_cd_iconveh_internal): Invoke it.
47638
47639 2007-03-28  Bruno Haible  <bruno@clisp.org>
47640
47641         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
47642         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
47643         input.
47644         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
47645         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
47646         unistr/u8-uctomb.
47647
47648 2007-03-28  Bruno Haible  <bruno@clisp.org>
47649
47650         * modules/unistr/u8-mbtoucr: New file.
47651         * lib/unistr/u8-mbtoucr.c: New file.
47652         * modules/unistr/u16-mbtoucr: New file.
47653         * lib/unistr/u16-mbtoucr.c: New file.
47654         * modules/unistr/u16-mbtoucr: New file.
47655         * lib/unistr/u16-mbtoucr.c: New file.
47656         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
47657
47658 2007-03-27  Simon Josefsson  <simon@josefsson.org>
47659             Bruno Haible  <bruno@clisp.org>
47660
47661         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
47662         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
47663         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
47664
47665         * m4/stdio_h.m4: Add stubs for vasprintf too.
47666
47667         * modules/stdio: Support vasprintf in sed command.
47668
47669         * modules/vasprintf: Depend on stdio for prototypes.  Remove
47670         vasprintf.h.  Add stdio module indicator.
47671
47672         * lib/stdio_.h: Declare asprintf and vasprintf, based on
47673         vasprintf.h.
47674
47675         * lib/vasprintf.h: File removed.
47676
47677         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
47678         * lib/vasprintf.c: Ditto.
47679         * lib/xvasprintf.c: Ditto.
47680         * tests/test-vasprintf-posix.c: Ditto.
47681         * tests/test-vasprintf.c: Ditto.
47682
47683 2007-03-27  Bruno Haible  <bruno@clisp.org>
47684
47685         Make vasnprintf multithread-safe.
47686         * lib/vasnprintf.c (decimal_point_char): New function.
47687         (VASNPRINTF): Use it.
47688         Suggested by Simon Josefsson.
47689
47690 2007-03-27  Eric Blake  <ebb9@byu.net>
47691
47692         Support sub-second birthtime on cygwin.
47693         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
47694         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
47695         (get_stat_birthtime): Also work with st_birthtim.
47696
47697 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
47698
47699         * lib/stat-time.h (USE_BIRTHTIME): Remove.
47700         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
47701         (get_stat_birthtime_ns): Do not try to use "spare" fields.
47702         (get_stat_birthtime_ns): Simplify compile-time tests.
47703         (get_stat_birthtime): Change the API to look like
47704         get_stat_mtime etc., except return a negative tv_nsec on error.
47705         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
47706         Don't check for "spare" fields.
47707         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
47708         or for struct stat.st_birthtime, as these tests aren't used.
47709         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
47710
47711 2007-03-27  Bruno Haible  <bruno@clisp.org>
47712
47713         * lib/stat-time.h: Include <sys/stat.h>.
47714
47715 2007-03-27  James Youngman  <jay@gnu.org>
47716
47717         * lib/stat-time.h (get_stat_birthtime): New function for
47718           retrieving st_birthtime as provided by UFS2 (hence *BSD).
47719         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
47720           and its variants.
47721         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
47722         * modules/stat-time-test: New file.
47723         * tests/test-stat-time.c: New test, devised by Bruno Haible.
47724
47725 2007-03-26  Bruno Haible  <bruno@clisp.org>
47726
47727         Better support of signalling NaNs.
47728         * lib/atanl.c: Include isnanl.h.
47729         (atanl): Perform test for NaN at the beginning of the function and
47730         through a call to isnanl.
47731         * lib/cosl.c: Include isnanl.h.
47732         (cosl): Perform test for NaN at the beginning of the function and
47733         through a call to isnanl.
47734         * lib/ldexpl.c: Include isnanl.h.
47735         (ldexpl): Perform test for NaN through a call to isnanl.
47736         * lib/logl.c: Include isnanl.h.
47737         (logl): Perform test for NaN at the beginning of the function and
47738         through a call to isnanl.
47739         * lib/sinl.c: Include isnanl.h.
47740         (sinl): Perform test for NaN at the beginning of the function and
47741         through a call to isnanl.
47742         * lib/sqrtl.c: Include isnanl.h.
47743         (sqrtl): Perform test for NaN at the beginning of the function and
47744         through a call to isnanl.
47745         * lib/tanl.c: Include isnanl.h.
47746         (tanl): Perform test for NaN at the beginning of the function and
47747         through a call to isnanl.
47748         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
47749         * modules/mathl (Depends-on): Add isnanl.
47750
47751 2007-03-26  Eric Blake  <ebb9@byu.net>
47752
47753         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
47754         regression in logic sense of previous patch.
47755
47756 2007-03-26  Bruno Haible  <bruno@clisp.org>
47757
47758         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
47759         unportable shell command "if ! ...".
47760         Reported by Ralf Wildenhues.
47761
47762 2007-03-25  Bruno Haible  <bruno@clisp.org>
47763
47764         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
47765         <sysexits.h> file, and only add EX_CONFIG.
47766         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
47767         absolute file name and whether it is sufficient. Substitute also
47768         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
47769         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
47770         ABSOLUTE_SYSEXITS_H into sysexits.h.
47771
47772 2007-03-25  Bruno Haible  <bruno@clisp.org>
47773
47774         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
47775         hints is NULL.
47776
47777 2007-03-25  Bruno Haible  <bruno@clisp.org>
47778
47779         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
47780         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
47781
47782 2007-03-25  Bruno Haible  <bruno@clisp.org>
47783
47784         * lib/vasnprintf.c: Include langinfo.h.
47785         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
47786         multithread-safe.
47787         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
47788         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
47789         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47790         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47791         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47792         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47793         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47794         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
47795         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47796         Reported by Simon Josefsson.
47797
47798 2007-03-25  Bruno Haible  <bruno@clisp.org>
47799
47800         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
47801         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
47802         * modules/vasnprintf (Depends-on): Add stdint.
47803
47804 2007-03-25  Bruno Haible  <bruno@clisp.org>
47805
47806         * modules/fpieee: New file.
47807         * m4/fpieee.m4: New file.
47808         * modules/isnan-nolibm (Depends-on): Add fpieee.
47809         * modules/isnanl-nolibm (Depends-on): Add fpieee.
47810         * modules/isnanl (Depends-on): Add fpieee.
47811
47812 2007-03-25  Bruno Haible  <bruno@clisp.org>
47813
47814         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
47815
47816 2007-03-25  Bruno Haible  <bruno@clisp.org>
47817
47818         Avoid test failures on IRIX 6.5.
47819         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
47820         (main): Use it.
47821         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
47822         macros.
47823         (main): Use them.
47824
47825 2007-03-25  Bruno Haible  <bruno@clisp.org>
47826
47827         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
47828         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
47829         exists but doesn't work.
47830         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
47831         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
47832         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
47833         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
47834
47835 2007-03-25  Bruno Haible  <bruno@clisp.org>
47836
47837         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
47838         returns inf. Needed on IRIX 6.5.
47839
47840 2007-03-25  Bruno Haible  <bruno@clisp.org>
47841
47842         * tests/test-frexpl.c: Include isnanl-nolibm.h.
47843         (main): Use isnanl instead of x != x idiom.
47844         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
47845
47846         * tests/test-frexp.c: Include isnan.h.
47847         (main): Use isnan instead of x != x idiom.
47848         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
47849
47850 2007-03-25  Bruno Haible  <bruno@clisp.org>
47851
47852         * tests/test-frexp.c (NaN): New function/macro.
47853         (main): Use it instead of 0.0 / 0.0.
47854         * tests/test-isnan.c (NaN): New function/macro.
47855         (main): Use it instead of 0.0 / 0.0.
47856         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
47857         (test_function): Use it instead of 0.0 / 0.0.
47858         * tests/test-vasprintf-posix.c (NaN): New function/macro.
47859         (test_function): Use it instead of 0.0 / 0.0.
47860         * tests/test-snprintf-posix.h (NaN): New function/macro.
47861         (test_function): Use it instead of 0.0 / 0.0.
47862         * tests/test-sprintf-posix.h (NaN): New function/macro.
47863         (test_function): Use it instead of 0.0 / 0.0.
47864         * tests/test-fprintf-posix.h (NaN): New function/macro.
47865         (test_function): Use it instead of 0.0 / 0.0.
47866         * tests/test-printf-posix.h (NaN): New function/macro.
47867         (test_function): Use it instead of 0.0 / 0.0.
47868
47869         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
47870
47871 2007-03-25  Bruno Haible  <bruno@clisp.org>
47872
47873         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
47874
47875 2007-03-25  Bruno Haible  <bruno@clisp.org>
47876
47877         * lib/regexec.c (merge_state_with_log): Make static.
47878
47879 2007-03-25  Bruno Haible  <bruno@clisp.org>
47880
47881         * lib/trigl.c (kernel_rem_pio2): Make static.
47882
47883 2007-03-25  Bruno Haible  <bruno@clisp.org>
47884
47885         * lib/sincosl.c (sincosl_table): Make static.
47886
47887 2007-03-25  Bruno Haible  <bruno@clisp.org>
47888
47889         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
47890         if the compiler does not support C99.
47891
47892 2007-03-25  Bruno Haible  <bruno@clisp.org>
47893
47894         * modules/time (Makefile.am): Ensure all rule action lines start with a
47895         tab.
47896
47897 2007-03-24  Bruno Haible  <bruno@clisp.org>
47898
47899         * modules/tsearch-tests: New file.
47900         * tests/test-tsearch.sh: New file.
47901         * tests/test-tsearch.c: New file, mostly copied from glibc.
47902
47903         * modules/search-tests: New file.
47904         * tests/test-search.c: New file.
47905
47906         * modules/search: New file.
47907         * lib/search_.h: New file, incorporating lib/tsearch.h.
47908         * m4/search_h.m4: New file.
47909         * lib/tsearch.h: Remove file.
47910         * lib/tsearch.c: Include search.h instead of tsearch.h.
47911         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
47912         HAVE_TSEARCH.
47913         * modules/tsearch (Files): Remove lib/tsearch.h.
47914         (Depends-on): Add search.
47915         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
47916         (Include): Change tsearch.h into search.h.
47917
47918 2007-03-24  Bruno Haible  <bruno@clisp.org>
47919
47920         * modules/fpucw: New file.
47921         * lib/fpucw.h: New file.
47922         * lib/frexp.c: Include fpucw.h.
47923         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
47924         (FUNC): Use them.
47925         * lib/printf-frexp.c: Include fpucw.h.
47926         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
47927         (FUNC): Use them.
47928         * lib/vasnprintf.c: Include fpucw.h.
47929         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
47930         'long double' calculations.
47931         * tests/test-frexpl.c: Include fpucw.h.
47932         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
47933         * tests/test-printf-frexpl.c: Include fpucw.h.
47934         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
47935         * modules/frexpl (Depends-on): Add fpucw.
47936         * modules/printf-frexpl (Depends-on): Likewise.
47937         * modules/fprintf-posix (Depends-on): Likewise.
47938         * modules/snprintf-posix (Depends-on): Likewise.
47939         * modules/sprintf-posix (Depends-on): Likewise.
47940         * modules/vasnprintf-posix (Depends-on): Likewise.
47941         * modules/vasprintf-posix (Depends-on): Likewise.
47942         * modules/vfprintf-posix (Depends-on): Likewise.
47943         * modules/vsnprintf-posix (Depends-on): Likewise.
47944         * modules/vsprintf-posix (Depends-on): Likewise.
47945         * modules/frexpl-tests (Depends-on): Likewise.
47946         * modules/printf-frexpl-tests (Depends-on): Likewise.
47947
47948 2007-03-24  Bruno Haible  <bruno@clisp.org>
47949
47950         * lib/float+.h: New file.
47951         * lib/isnan.c: Include float+.h.
47952         (SIZE): New macro.
47953         (FUNC): Compare only SIZE bytes of the value.
47954         * lib/vasnprintf.c: Include float+.h.
47955         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
47956         SIZEOF_LDBL or SIZEOF_DBL bytes.
47957         * modules/isnan-nolibm (Files): Add lib/float+.h.
47958         * modules/isnanl-nolibm (Files): Add lib/float+.h.
47959         * modules/isnanl (Files): Add lib/float+.h.
47960         * modules/vasnprintf (Files): Add lib/float+.h.
47961
47962 2007-03-24  Bruno Haible  <bruno@clisp.org>
47963
47964         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
47965         include isnanl-nolibm.h.
47966
47967 2007-03-24  Bruno Haible  <bruno@clisp.org>
47968
47969         * tests/test-read-file.c (main): Don't produce spurious output for
47970         expected situations. Make the test fail if it encountered unexpected
47971         results.
47972
47973 2007-03-24  Bruno Haible  <bruno@clisp.org>
47974
47975         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
47976         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
47977
47978 2007-03-24  Bruno Haible  <bruno@clisp.org>
47979
47980         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
47981
47982 2007-03-24  Bruno Haible  <bruno@clisp.org>
47983
47984         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
47985         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
47986
47987         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
47988         * modules/utf8-ucs4: Turn into a symbolic link to module
47989         unistr/u8-mbtouc.
47990
47991         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
47992         utf8-ucs4-unsafe.
47993         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
47994         unistr/u8-mbtouc-unsafe.
47995
47996         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
47997         * modules/utf16-ucs4: Turn into a symbolic link to module
47998         unistr/u16-mbtouc.
47999
48000         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
48001         utf16-ucs4-unsafe.
48002         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
48003         unistr/u16-mbtouc-unsafe.
48004
48005         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
48006         * modules/ucs4-utf8: Turn into a symbolic link to module
48007         unistr/u8-ubtomb.
48008
48009         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
48010         * modules/ucs4-utf16: Turn into a symbolic link to module
48011         unistr/u16-ubtomb.
48012
48013 2007-03-24  Bruno Haible  <bruno@clisp.org>
48014
48015         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
48016         Enable the function only if HAVE_INLINE.
48017         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
48018         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
48019         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
48020         Enable the function only if HAVE_INLINE.
48021         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
48022         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
48023         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
48024         Enable the function only if HAVE_INLINE.
48025         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
48026         Enable the function only if HAVE_INLINE.
48027         * modules/utf8-ucs4: Update.
48028         * modules/utf8-ucs4-unsafe: Update.
48029         * modules/utf16-ucs4: Update.
48030         * modules/utf16-ucs4-unsafe: Update.
48031         * modules/ucs4-utf8: Update.
48032         * modules/ucs4-utf16: Update.
48033
48034 2007-03-24  Bruno Haible  <bruno@clisp.org>
48035
48036         * lib/utf8-ucs4.h: Remove file.
48037         * lib/utf8-ucs4-unsafe.h: Remove file.
48038         * lib/utf16-ucs4.h: Remove file.
48039         * lib/utf16-ucs4-unsafe.h: Remove file.
48040         * lib/ucs4-utf8.h: Remove file.
48041         * lib/ucs4-utf16.h: Remove file.
48042         * lib/unistr.h: Include their previous contents.
48043         * m4/utf-ucs4.m4: Remove file.
48044         * m4/ucs4-utf.m4: Remove file.
48045         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
48046         (Depends-on): Add unistr/base.
48047         (configure.ac): Remove gl_UTF_UCS4.
48048         (Makefile.am): Update.
48049         (Include): Change to unistr.h.
48050         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
48051         (Depends-on): Add unistr/base.
48052         (configure.ac): Remove gl_UTF_UCS4.
48053         (Makefile.am): Update.
48054         (Include): Change to unistr.h.
48055         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
48056         (Depends-on): Add unistr/base.
48057         (configure.ac): Remove gl_UTF_UCS4.
48058         (Makefile.am): Update.
48059         (Include): Change to unistr.h.
48060         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
48061         (Depends-on): Add unistr/base.
48062         (configure.ac): Remove gl_UTF_UCS4.
48063         (Makefile.am): Update.
48064         (Include): Change to unistr.h.
48065         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
48066         (Depends-on): Add unistr/base.
48067         (configure.ac): Remove gl_UCS4_UTF.
48068         (Makefile.am): Update.
48069         (Include): Change to unistr.h.
48070         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
48071         (Depends-on): Add unistr/base.
48072         (configure.ac): Remove gl_UCS4_UTF.
48073         (Makefile.am): Update.
48074         (Include): Change to unistr.h.
48075         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
48076         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
48077         utf8-ucs4-unsafe.h.
48078         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
48079         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
48080         utf16-ucs4-unsafe.h.
48081         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
48082         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
48083         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
48084         * lib/unistr/u8-strchr.c: Likewise.
48085         * lib/unistr/u8-strrchr.c: Likewise.
48086         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
48087         * lib/unistr/u16-strchr.c: Likewise.
48088         * lib/unistr/u16-strrchr.c: Likewise.
48089         * lib/striconveh.c: Update.
48090         * lib/linebreak.c: Update.
48091
48092 2007-03-24  Bruno Haible  <bruno@clisp.org>
48093
48094         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
48095         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
48096
48097 2007-03-22  Bruno Haible  <bruno@clisp.org>
48098
48099         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
48100
48101 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
48102
48103         * MODULES.html.sh (File system functions): New module write-any-file.
48104         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
48105         * m4/write-any-file.m4: New files.
48106
48107 2007-03-23  Eric Blake  <ebb9@byu.net>
48108
48109         * gnulib-tool: Rearrange space-tab sequences, since some editors
48110         like to eat them.
48111
48112 2007-03-23  Eric Blake  <ebb9@byu.net>
48113
48114         * lib/version-etc.c (version_etc_va): Update license wording to
48115         be more concise.  Recommended by Richard Stallman.
48116
48117 2007-03-22  Bruno Haible  <bruno@clisp.org>
48118
48119         * lib/poll.c (MSG_PEEK): New fallback definition.
48120
48121 2007-03-22  Bruno Haible  <bruno@clisp.org>
48122
48123         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
48124         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
48125         (main): Update.
48126         Fixes a compilation error on BeOS.
48127
48128 2007-03-22  Bruno Haible  <bruno@clisp.org>
48129
48130         * modules/frexpl-tests: New file.
48131         * tests/test-frexpl.c: New file.
48132
48133         * modules/frexpl: New file.
48134         * m4/frexpl.m4: New file.
48135         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
48136         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
48137         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
48138         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
48139         (Depends-on): Add frexpl. Remove isnanl-nolibm.
48140         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
48141
48142 2007-03-22  Bruno Haible  <bruno@clisp.org>
48143
48144         * lib/frexpl.c: Share code with lib/frexp.c.
48145         * modules/mathl (Files): Add lib/frexp.c.
48146         (Depends-on): Add isnanl-nolibm.
48147
48148 2007-03-22  Bruno Haible  <bruno@clisp.org>
48149
48150         * modules/printf-frexp (Files): Add m4/frexp.m4.
48151         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
48152         only if the found frexp function actually works.
48153
48154 2007-03-22  Bruno Haible  <bruno@clisp.org>
48155
48156         * lib/frexp.c: Remove older implementation that uses divisions.
48157
48158 2007-03-21  Bruno Haible  <bruno@clisp.org>
48159
48160         * modules/frexp-tests: New file.
48161         * tests/test-frexp.c: New file.
48162
48163         * modules/frexp: New file.
48164         * lib/frexp.c: New file.
48165         * m4/frexp.m4: New file.
48166         * lib/math_.h (frexp): New declaration.
48167         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
48168         REPLACE_FREXP.
48169         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
48170
48171 2007-03-21  Bruno Haible  <bruno@clisp.org>
48172
48173         * modules/isnanl-tests: New file.
48174         * tests/test-isnanl.c: New file.
48175
48176         * modules/isnanl: New file.
48177         * lib/isnanl.h: New file.
48178         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
48179         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
48180         gl_FUNC_ISNANL_WORKS.
48181         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
48182         New macros.
48183
48184 2007-03-21  Bruno Haible  <bruno@clisp.org>
48185
48186         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
48187         lib/isnanl.h.
48188         (Include): Update.
48189         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
48190         * lib/vasnprintf.c: Update.
48191         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
48192         tests/test-isnanl.h, remove tests/test-isnanl.c.
48193         (Makefile.am): Update.
48194         * tests/test-isnanl-nolibm.c: New file.
48195         * tests/test-isnanl.h: New file.
48196         * tests/test-isnanl.c: Remove file.
48197
48198 2007-03-21  Jim Meyering  <jim@meyering.net>
48199
48200         When trying to open ".", treat ESTALE like EACCES.
48201         * lib/savewd.c (savewd_save): Resort to forking not just upon
48202         failure with EACCES, but also when errno is ESTALE.
48203
48204 2007-03-20  Bruno Haible  <bruno@clisp.org>
48205
48206         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
48207         Needed on AIX 5.1. Reported by Matthew Woehlke.
48208
48209 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
48210
48211         Suggestions by Bruno Haible:
48212         * lib/acl-internal.h: Include "gettext.h" rather than rolling
48213         our own.
48214         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
48215         * modules/acl (Depends-on): Add gettext.
48216
48217 2007-03-19  Bruno Haible  <bruno@clisp.org>
48218
48219         * modules/iconvme: Remove file.
48220         * lib/iconvme.h: Remove file.
48221         * lib/iconvme.c: Remove file.
48222         * m4/iconvme.m4: Remove file.
48223
48224 2007-03-19  Bruno Haible  <bruno@clisp.org>
48225
48226         * doc/relocatable-maint.texi: Break long shell script line.
48227         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
48228
48229 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
48230
48231         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
48232         handle file_has_acl.
48233         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
48234         * lib/acl.c: Move header inclusions and related macro defns into
48235         lib/acl-internal.h.
48236         (S_ISLNK): Remove defn, since that's now done for us.
48237         (file_has_acl): Move to lib/file-has-acl.c.
48238         Call acl_trivial if available.  This is the crucial part of the fix.
48239         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
48240         shared within the library.  Rewrite a bit, partly to make it compatible
48241         with the GNU coding style.
48242         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
48243         Remove unnecessary double-quotes.
48244         Don't test for acl_to_text; the build will catch that.
48245         Replace acl_entries if it doesn't exist and it is needed.
48246         Check for -lsec and acl_trivial (as used on Solaris 10).
48247         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
48248         lib/file-has-acl.c.
48249         (Depends-on): Add sys_stat, for S_ISLNK.
48250
48251 2007-03-19  Ben Pfaff  <blp@gnu.org>
48252
48253         * doc/gnulib.texi: Fix typos.
48254         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
48255
48256 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
48257
48258         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
48259         If size is zero here, buf must be zero.
48260
48261 2007-03-19  Simon Josefsson  <simon@josefsson.org>
48262
48263         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
48264         <bruno@clisp.org>.
48265
48266 2007-03-18  Bruno Haible  <bruno@clisp.org>
48267
48268         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
48269         Suggested by Eric Blake.
48270
48271 2007-03-18  Ben Pfaff  <blp@gnu.org>
48272
48273         * doc/relocatable.texi: Recommend using as prefix a directory
48274         that does not exist and will never be created.  Based on
48275         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
48276         and others.
48277
48278 2007-03-17  Bruno Haible  <bruno@clisp.org>
48279
48280         * lib/fchownat.c: Include lchown.h.
48281
48282 2007-03-17  Bruno Haible  <bruno@clisp.org>
48283
48284         Fix endless loop when the given allocated size was > INT_MAX.
48285         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
48286         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
48287         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
48288         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
48289         * lib/sprintf.c (sprintf): Likewise.
48290
48291 2007-03-17  Bruno Haible  <bruno@clisp.org>
48292
48293         * tests/test-argp-2.sh (func_compare): Output a context diff.
48294
48295 2007-03-17  Bruno Haible  <bruno@clisp.org>
48296
48297         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
48298         locale's decimal-point character.
48299
48300 2007-03-17  Bruno Haible  <bruno@clisp.org>
48301
48302         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
48303         before comparing it. Needed because on some platforms (e.g. x86) a
48304         'long double' occupies less bytes than sizeof (long double).
48305
48306 2007-03-17  Bruno Haible  <bruno@clisp.org>
48307
48308         * tests/test-crc.c (main): Make printf statements 64-bit clean.
48309         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
48310         * tests/test-getaddrinfo.c (simple): Likewise.
48311         * tests/test-read-file.c (main): Likewise.
48312
48313 2007-03-17  Bruno Haible  <bruno@clisp.org>
48314
48315         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
48316
48317 2007-03-17  Bruno Haible  <bruno@clisp.org>
48318
48319         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
48320         unused variable.
48321
48322 2007-03-17  Bruno Haible  <bruno@clisp.org>
48323
48324         * tests/test-c-strcasecmp.c: Include c-strcase.h.
48325         * tests/test-c-strncasecmp.c: Likewise.
48326
48327 2007-03-17  Bruno Haible  <bruno@clisp.org>
48328
48329         * modules/stdlib (Depends-on): Add unistd.
48330         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
48331         Needed for MacOS X 10.3.
48332
48333 2007-03-17  Bruno Haible  <bruno@clisp.org>
48334
48335         * lib/unistr/u-strdup.h: Include <stdlib.h>.
48336
48337 2007-03-17  Bruno Haible  <bruno@clisp.org>
48338
48339         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
48340
48341 2007-03-17  Bruno Haible  <bruno@clisp.org>
48342
48343         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
48344         to reflect files copied from gnulib (with or without modifications).
48345         Suggested by Jim Meyering.
48346
48347 2007-03-17  Eric Blake  <ebb9@byu.net>
48348
48349         * NEWS: Document stdlib change from 2007-02-18.
48350
48351 2007-03-17  Jim Meyering  <jim@meyering.net>
48352
48353         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
48354         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
48355         someone uses a name containing shell meta-characters.
48356         Reported by Alfred M. Szmidt.
48357
48358         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
48359
48360 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
48361
48362         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
48363         and copy gettext configuration files only if configure.ac contains
48364         a use of AM_GNU_GETTEXT_VERSION.
48365
48366 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
48367
48368         * build-aux/bootstrap (gnulib_name): New variable.
48369         (gnulib_tool_options): Use it.
48370
48371 2007-03-13  Simon Josefsson  <simon@josefsson.org>
48372
48373         * tests/test-des.c: Use new namespace.
48374
48375 2007-03-15  Bruno Haible  <bruno@clisp.org>
48376
48377         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
48378         Reported by James Youngman <jay@gnu.org>.
48379
48380 2007-03-15  Bruno Haible  <bruno@clisp.org>
48381
48382         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
48383         declared prototype. Needed with cc on OSF/1 5.1.
48384
48385 2007-03-15  Bruno Haible  <bruno@clisp.org>
48386
48387         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
48388         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
48389         (struct gl_list_implementation): Add dispose_fn argument to the
48390         'create_empty', 'create' methods.
48391         (struct gl_list_impl_base): Add field 'dispose_fn'.
48392         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
48393         argument.
48394         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
48395         dispose_fn argument.
48396         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
48397         dispose_fn on the dropped values.
48398         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
48399         dispose_fn argument.
48400         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
48401         dropped values.
48402         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
48403         (gl_tree_remove_node): Call dispose_fn on the dropped value.
48404         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
48405         (gl_tree_remove_node): Call dispose_fn on the dropped value.
48406         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
48407         argument.
48408         (gl_tree_list_free): Call dispose_fn on the dropped values.
48409         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
48410         the dropped values.
48411         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
48412         Add dispose_fn argument.
48413         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
48414         Call dispose_fn on the dropped values.
48415         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
48416         Add dispose_fn argument.
48417         (gl_sublist_create): Initialize the 'dispose_fn' field.
48418         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
48419         * tests/test-array_list.c (main): Update.
48420         * tests/test-carray_list.c (main): Update.
48421         * tests/test-avltree_list.c (main): Update.
48422         * tests/test-rbtree_list.c (main): Update.
48423         * tests/test-avltreehash_list.c (main): Update.
48424         * tests/test-rbtreehash_list.c (main): Update.
48425         * tests/test-linked_list.c (main): Update.
48426         * tests/test-linkedhash_list.c (main): Update.
48427         * tests/test-array_oset.c (main): Update.
48428
48429 2007-03-15  Bruno Haible  <bruno@clisp.org>
48430
48431         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
48432         (gl_oset_create_empty): Add dispose_fn argument.
48433         (struct gl_oset_implementation): Add dispose_fn argument to
48434         'create_empty' method.
48435         (struct gl_oset_impl_base): Add dispose_fn field.
48436         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
48437         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
48438         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
48439         values.
48440         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
48441         (gl_tree_oset_free): Call dispose_fn on the dropped values.
48442         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
48443         dropped value.
48444         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
48445         dropped value.
48446         * tests/test-array_oset.c (main): Update.
48447         * tests/test-avltree_oset.c (main): Update.
48448         * tests/test-rbtree_oset.c (main): Update.
48449         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
48450
48451 2007-03-13  Bruno Haible  <bruno@clisp.org>
48452
48453         * tests/test-stdbool.c (i): Update after last patch.
48454
48455 2007-03-12  Bruno Haible  <bruno@clisp.org>
48456
48457         * lib/quotearg.c: Include <wctype.h> early, before the definition of
48458         the iswprint macro. Needed on Solaris 2.5.1.
48459
48460 2007-03-12  Bruno Haible  <bruno@clisp.org>
48461
48462         * tests/test-printf-frexp.c (main): Declare x as volatile.
48463
48464 2007-03-12  Simon Josefsson  <simon@josefsson.org>
48465
48466         * doc/gnulib.texi (Build robot for gnulib): New section.
48467
48468 2007-03-12  Jim Meyering  <jim@meyering.net>
48469
48470         * build-aux/bootstrap: New file.
48471         * build-aux/bootstrap.conf: New file, from coreutils.
48472
48473 2007-03-11  Bruno Haible  <bruno@clisp.org>
48474
48475         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
48476
48477 2007-03-12  Simon Josefsson  <simon@josefsson.org>
48478
48479         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
48480         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
48481         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
48482
48483 2007-03-11  Bruno Haible  <bruno@clisp.org>
48484
48485         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
48486         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
48487
48488 2007-03-11  Bruno Haible  <bruno@clisp.org>
48489
48490         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
48491         formula. Needed for SunPRO C 5.0.
48492
48493 2007-03-11  Bruno Haible  <bruno@clisp.org>
48494
48495         * modules/long-options (Depends-on): Add getopt.
48496
48497 2007-03-11  Bruno Haible  <bruno@clisp.org>
48498
48499         * modules/modechange (Depends-on): Add stdbool.
48500
48501 2007-03-11  Bruno Haible  <bruno@clisp.org>
48502
48503         * modules/i-ring (Depends-on): Add stdbool.
48504
48505 2007-03-11  Bruno Haible  <bruno@clisp.org>
48506
48507         * modules/gc-des (Depends-on): Add stdbool.
48508
48509 2007-03-11  Bruno Haible  <bruno@clisp.org>
48510
48511         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
48512
48513 2007-03-11  Bruno Haible  <bruno@clisp.org>
48514
48515         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
48516
48517 2007-03-11  Bruno Haible  <bruno@clisp.org>
48518
48519         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
48520
48521 2007-03-11  Bruno Haible  <bruno@clisp.org>
48522
48523         * lib/vasnprintf.c (sprintf): Undefine.
48524
48525 2007-03-11  Bruno Haible  <bruno@clisp.org>
48526
48527         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
48528         initializers in SunPRO C and Compaq C compilers.
48529
48530 2007-03-11  Bruno Haible  <bruno@clisp.org>
48531
48532         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
48533         decrementing code ANSI C compliant.
48534
48535 2007-03-11  Bruno Haible  <bruno@clisp.org>
48536
48537         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
48538         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
48539
48540 2007-03-11  Bruno Haible  <bruno@clisp.org>
48541
48542         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
48543         <stdbool.h> substitute doesn't pass.
48544
48545 2007-03-11  Bruno Haible  <bruno@clisp.org>
48546
48547         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
48548
48549 2007-03-11  Bruno Haible  <bruno@clisp.org>
48550
48551         * gnulib-tool (func_create_megatestdir): Create also an autobuild
48552         script, for submission to autobuild.josefsson.org.
48553
48554 2007-03-10  Bruno Haible  <bruno@clisp.org>
48555
48556         * modules/canonicalize-lgpl-tests: New file.
48557         * tests/test-canonicalize-lgpl.sh: New file.
48558         * tests/test-canonicalize-lgpl.c: New file.
48559
48560         * modules/c-strcase-tests: New file.
48561         * tests/test-c-strcase.sh: New file.
48562         * tests/test-c-strcasecmp.c: New file.
48563         * tests/test-c-strncasecmp.c: New file.
48564
48565         * modules/atexit-tests: New file.
48566         * tests/test-atexit.sh: New file.
48567         * tests/test-atexit.c: New file.
48568
48569 2007-03-10  Bruno Haible  <bruno@clisp.org>
48570
48571         * tests/test-binary-io.sh: Use temporary filenames that are not so
48572         likely to clash with those of other tests (in a parallel make).
48573         * tests/test-binary-io.c: Likewise.
48574
48575 2007-03-10  Bruno Haible  <bruno@clisp.org>
48576
48577         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
48578         fallback; use #error instead.
48579         Suggested by Simon Josefsson.
48580
48581 2007-03-10  Bruno Haible  <bruno@clisp.org>
48582
48583         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
48584         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
48585         first and the last.
48586
48587 2007-03-10  Bruno Haible  <bruno@clisp.org>
48588
48589         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
48590
48591 2007-03-10  Bruno Haible  <bruno@clisp.org>
48592
48593         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
48594         "make distcheck".
48595         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
48596         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
48597         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
48598
48599 2007-03-10  Bruno Haible  <bruno@clisp.org>
48600
48601         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
48602         variable.
48603         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
48604         variable.
48605
48606 2007-03-09  Eric Blake  <ebb9@byu.net>
48607         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
48608
48609         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
48610         types are not being provided by gnulib.
48611         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
48612         types are supported.
48613
48614 2007-03-10  Bruno Haible  <bruno@clisp.org>
48615
48616         * lib/stdio_.h (__attribute__): New macro.
48617         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
48618         vsprintf): Specify __attribute__ __format__ for GCC.
48619         Suggested by Eric Blake.
48620
48621 2007-03-09  Bruno Haible  <bruno@clisp.org>
48622
48623         * modules/printf-posix-tests: New file.
48624         * tests/test-printf-posix.sh: New file.
48625         * tests/test-printf-posix.c: New file.
48626
48627         * modules/printf-posix: New file.
48628         * lib/printf.c: New file.
48629         * m4/printf-posix-rpl.m4: New file.
48630         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
48631         REPLACE_PRINTF.
48632         * lib/stdio_.h (printf): New declaration.
48633         (format, __format__, ____printf____, ____scanf____, ____strftime____,
48634         ____strfmon____): New macros.
48635         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
48636         REPLACE_PRINTF.
48637
48638 2007-03-09  Bruno Haible  <bruno@clisp.org>
48639
48640         * tests/test-vasnprintf-posix2.sh: New file.
48641         * tests/test-vasnprintf-posix2.c: New file.
48642         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
48643         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
48644         (Makefile.am): Activate test-vasnprintf-posix2.sh.
48645
48646         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
48647         a locale dependent decimal point, rather than always '.'.
48648
48649 2007-03-09  Eric Blake  <ebb9@byu.net>
48650
48651         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
48652         spite of platforms like Tandem/NSK that define it to -1.
48653
48654 2007-03-08  Bruno Haible  <bruno@clisp.org>
48655
48656         * modules/vprintf-posix-tests: New file.
48657         * tests/test-vprintf-posix.sh: New file.
48658         * tests/test-vprintf-posix.c: New file.
48659         * tests/test-printf-posix.h: New file.
48660
48661         * modules/vprintf-posix: New file.
48662         * lib/vprintf.c: New file.
48663         * m4/vprintf-posix.m4: New file.
48664         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
48665         REPLACE_VPRINTF.
48666         * lib/stdio_.h (vprintf): New declaration.
48667         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
48668         REPLACE_VPRINTF.
48669
48670 2007-03-08  Bruno Haible  <bruno@clisp.org>
48671
48672         * modules/fprintf-posix-tests: New file.
48673         * tests/test-fprintf-posix.sh: New file.
48674         * tests/test-fprintf-posix.c: New file.
48675
48676         * modules/fprintf-posix: New file.
48677         * lib/fprintf.c: New file.
48678         * m4/fprintf-posix.m4: New file.
48679         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
48680         REPLACE_FPRINTF.
48681         * lib/stdio_.h (fprintf): New declaration.
48682         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
48683         REPLACE_FPRINTF.
48684
48685 2007-03-08  Bruno Haible  <bruno@clisp.org>
48686
48687         * modules/vfprintf-posix-tests: New file.
48688         * tests/test-vfprintf-posix.sh: New file.
48689         * tests/test-vfprintf-posix.c: New file.
48690         * tests/test-fprintf-posix.h: New file.
48691         * tests/test-fprintf-posix.out: New file.
48692
48693         * modules/vfprintf-posix: New file.
48694         * lib/vfprintf.c: New file.
48695         * m4/vfprintf-posix.m4: New file.
48696         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
48697         REPLACE_VFPRINTF.
48698         * lib/stdio_.h (vfprintf): New declaration.
48699         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
48700         REPLACE_VFPRINTF.
48701
48702 2007-03-08  Bruno Haible  <bruno@clisp.org>
48703
48704         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
48705
48706 2007-03-08  Bruno Haible  <bruno@clisp.org>
48707
48708         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
48709         instead of 'expr' invocations.
48710         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48711         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48712         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48713         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48714         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48715         Suggested by Paul Eggert.
48716
48717 2007-03-08  Bruno Haible  <bruno@clisp.org>
48718
48719         * modules/fseterr-tests: New file.
48720         * tests/test-fseterr.c: New file.
48721
48722         * modules/fseterr: New file.
48723         * lib/fseterr.h: New file.
48724         * lib/fseterr.c: New file.
48725
48726 2007-03-08  Bruno Haible  <bruno@clisp.org>
48727
48728         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
48729         * lib/getopt_.h: Likewise.
48730         * lib/mbswidth.h: Likewise.
48731         * lib/setenv.h: Likewise.
48732         * lib/vasnprintf.h: Likewise.
48733         * lib/vasprintf.h: Likewise.
48734         * lib/verror.h: Likewise.
48735         * lib/xsetenv.h: Likewise.
48736         * lib/xvasprintf.h: Likewise.
48737
48738 2007-03-08  Jim Meyering  <jim@meyering.net>
48739
48740         * users.txt: Add parted.
48741
48742         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
48743
48744 2007-03-07  Bruno Haible  <bruno@clisp.org>
48745
48746         * m4/printf.m4: Make the shell script snippets copy&pastable.
48747
48748 2007-03-02  Bruno Haible  <bruno@clisp.org>
48749
48750         * lib/netinet_in_.h: New file.
48751         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
48752         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
48753         * modules/netinet_in (Files): Add lib/netinet_in_.h.
48754         (Depends-on): Add absolute-header.
48755         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
48756         into netinet/in.h.
48757
48758 2007-03-03  Bruno Haible  <bruno@clisp.org>
48759
48760         * lib/sys_select_.h: New file.
48761         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
48762         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
48763         * modules/sys_select (Files): Add lib/sys_select_.h.
48764         (Depends-on): Add absolute-header.
48765         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
48766         into sys/select.h.
48767
48768 2007-03-02  Bruno Haible  <bruno@clisp.org>
48769
48770         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
48771         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
48772         values.
48773         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
48774         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
48775         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
48776         * modules/sys_socket (Depends-on): Add absolute-header.
48777         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
48778         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
48779         (Include): Remove requirement of inclusion of <sys/types.h>.
48780
48781 2007-03-02  Bruno Haible  <bruno@clisp.org>
48782
48783         * lib/byteswap_.h (bswap_32): Fix formula.
48784
48785 2007-03-06  Bruno Haible  <bruno@clisp.org>
48786
48787         * modules/sprintf-posix-tests: New file.
48788         * tests/test-sprintf-posix.c: New file.
48789
48790         * modules/sprintf-posix: New file.
48791         * lib/sprintf.c: New file.
48792         * m4/sprintf-posix.m4: New file.
48793         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
48794         REPLACE_SPRINTF.
48795         * lib/stdio_.h (sprintf): New declaration.
48796         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
48797         REPLACE_SPRINTF.
48798
48799 2007-03-06  Bruno Haible  <bruno@clisp.org>
48800
48801         * modules/vsprintf-posix-tests: New file.
48802         * tests/test-vsprintf-posix.c: New file.
48803         * tests/test-sprintf-posix.h: New file.
48804
48805         * modules/vsprintf-posix: New file.
48806         * lib/vsprintf.c: New file.
48807         * m4/vsprintf-posix.m4: New file.
48808         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
48809         REPLACE_VSPRINTF.
48810         * lib/stdio_.h (vsprintf): New declaration.
48811         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
48812         REPLACE_VSPRINTF.
48813
48814 2007-03-06  Bruno Haible  <bruno@clisp.org>
48815
48816         * modules/vsnprintf (Depend-on): Remove minmax.
48817
48818 2007-03-06  Bruno Haible  <bruno@clisp.org>
48819
48820         * modules/snprintf-posix-tests: New file.
48821         * tests/test-snprintf-posix.c: New file.
48822
48823         * modules/snprintf-posix: New file.
48824         * m4/snprintf-posix.m4: New file.
48825         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
48826         gl_FUNC_SNPRINTF.
48827         (gl_FUNC_SNPRINTF): Invoke it.
48828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
48829         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
48830         is set.
48831         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
48832
48833 2007-03-06  Bruno Haible  <bruno@clisp.org>
48834
48835         * modules/vsnprintf-posix-tests: New file.
48836         * tests/test-vsnprintf-posix.c: New file.
48837         * tests/test-snprintf-posix.h: New file.
48838
48839         * modules/vsnprintf-posix: New file.
48840         * m4/vsnprintf-posix.m4: New file.
48841         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
48842         gl_FUNC_VSNPRINTF.
48843         (gl_FUNC_VSNPRINTF): Invoke it.
48844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
48845         * lib/stdio_.h (vsnprintf): Define as a replacement if
48846         REPLACE_VSNPRINTF is set.
48847         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
48848
48849 2007-03-06  Bruno Haible  <bruno@clisp.org>
48850
48851         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
48852         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
48853
48854 2007-03-06  Bruno Haible  <bruno@clisp.org>
48855
48856         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
48857         (asinl): Declare also if HAVE_DECL_ASINL is set.
48858         (atanl): Declare also if HAVE_DECL_ATANL is set.
48859         (ceill): Declare also if HAVE_DECL_CEILL is set.
48860         (cosl): Declare also if HAVE_DECL_COSL is set.
48861         (expl): Declare also if HAVE_DECL_EXPL is set.
48862         (floorl): Declare also if HAVE_DECL_FLOORL is set.
48863         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
48864         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
48865         (logl): Declare also if HAVE_DECL_LOGL is set.
48866         (sinl): Declare also if HAVE_DECL_SINL is set.
48867         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
48868         (tanl): Declare also if HAVE_DECL_TANL is set.
48869         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
48870         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
48871         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
48872         declaration of frexpl, ldexpl.
48873         * modules/printf-frexpl (Depends-on): Add math.
48874         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
48875
48876 2007-03-05  Bruno Haible  <bruno@clisp.org>
48877
48878         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
48879         frexpl and ldexpl are declared.
48880         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
48881
48882 2007-03-05  Bruno Haible  <bruno@clisp.org>
48883
48884         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
48885         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
48886
48887 2007-03-05  Bruno Haible  <bruno@clisp.org>
48888
48889         * lib/stdio_.h: Include <stddef.h>.
48890
48891 2007-03-05  Bruno Haible  <bruno@clisp.org>
48892
48893         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
48894
48895 2007-03-05  Bruno Haible  <bruno@clisp.org>
48896
48897         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
48898         NetBSD 4, from Ralf Wildenhues.
48899
48900 2007-03-04  Bruno Haible  <bruno@clisp.org>
48901
48902         * lib/vasprintf.h: Update #if logic for the case when the functions
48903         exist but are overridden.
48904
48905 2007-03-04  Bruno Haible  <bruno@clisp.org>
48906
48907         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
48908         implementations: glibc-2.4 and MacOS X 10.3.
48909         * tests/test-vasnprintf-posix.c (test_function): Test also the case
48910         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
48911         * tests/test-vasprintf-posix.c (test_function): Likewise.
48912
48913 2007-03-04  Bruno Haible  <bruno@clisp.org>
48914
48915         * modules/vasprintf-posix-tests: New file.
48916         * tests/test-vasprintf-posix.c: New file.
48917
48918         * modules/vasprintf-posix: New file.
48919         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
48920         defined.
48921         * m4/vasprintf-posix.m4: New file.
48922         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
48923         gl_FUNC_VASPRINTF.
48924         (gl_FUNC_VASPRINTF): Invoke it.
48925         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
48926         here.
48927         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
48928
48929 2007-03-04  Bruno Haible  <bruno@clisp.org>
48930
48931         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
48932         REPLACE_GETTIMEOFDAY.
48933         * modules/sys_time (Makefile.am): Likewise.
48934         * m4/sys_time_h.m4: Likewise.
48935         * m4/gettimeofday.m4: Likewise.
48936
48937 2007-03-04  Bruno Haible  <bruno@clisp.org>
48938
48939         * modules/vasnprintf-posix-tests: New file.
48940         * tests/test-vasnprintf-posix.c: New file.
48941
48942         * modules/vasnprintf-posix: New file.
48943         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
48944         printf-frexpl.h.
48945         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
48946         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
48947         REPLACE_VASNPRINTF is defined.
48948         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
48949         gl_FUNC_VASNPRINTF.
48950         (gl_FUNC_VASNPRINTF): Invoke it.
48951         * m4/vasnprintf-posix.m4: New file.
48952         * m4/printf.m4: New file.
48953
48954 2007-03-04  Bruno Haible  <bruno@clisp.org>
48955
48956         Compile progreloc.c only if --enable-relocatable is specified.
48957         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
48958         if --enable-relocatable was specified.
48959         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
48960         lib_SOURCES.
48961
48962 2007-03-04  Jim Meyering  <jim@meyering.net>
48963
48964         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
48965         Use it consistently, rather than enumerating errno constants.
48966
48967 2007-03-04  Bruno Haible  <bruno@clisp.org>
48968
48969         * modules/xvasprintf-tests: New file.
48970         * tests/test-xvasprintf.c: New file.
48971
48972         * modules/vasprintf-tests: New file.
48973         * tests/test-vasprintf.c: New file.
48974
48975         * modules/vasnprintf-tests: New file.
48976         * tests/test-vasnprintf.c: New file.
48977
48978         * modules/vsnprintf-tests: New file.
48979         * tests/test-vsnprintf.c: New file.
48980
48981         * modules/snprintf-tests: New file.
48982         * tests/test-snprintf.c: New file.
48983
48984 2007-03-04  Bruno Haible  <bruno@clisp.org>
48985
48986         Compile relocatable.c only if --enable-relocatable is specified.
48987         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
48988         gl_RELOCATABLE_LIBRARY.
48989         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
48990         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
48991         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
48992         gl_RELOCATABLE_LIBRARY.
48993         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
48994         (Makefile.am): Remove lib_SOURCES.
48995         * modules/relocatable-lib-lgpl (configure.ac): Invoke
48996         gl_RELOCATABLE_LIBRARY.
48997         (Makefile.am): Remove lib_SOURCES.
48998         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
48999         always.
49000         * modules/relocatable-prog-wrapper (configure.ac): Invoke
49001         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
49002
49003 2007-03-04  Bruno Haible  <bruno@clisp.org>
49004
49005         * modules/argmatch-tests: New file.
49006         * tests/test-argmatch.c: New file.
49007
49008         * tests/test-allocsa.c (main): Halve the number of loop runs.
49009
49010         * modules/alloca-opt-tests: New file.
49011         * tests/test-alloca-opt.c: New file.
49012
49013 2007-03-04  Jim Meyering  <jim@meyering.net>
49014
49015         Work around difference between Linux ACLs and Solaris 10 ZFS.
49016         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
49017         for EINVAL.
49018
49019 2007-03-03  Bruno Haible  <bruno@clisp.org>
49020
49021         * modules/relocatable-prog (Depends-on): Add back progreloc's
49022         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
49023
49024 2007-03-03  Bruno Haible  <bruno@clisp.org>
49025
49026         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
49027         * modules/relocatable-lib: New file.
49028
49029 2007-03-03  Bruno Haible  <bruno@clisp.org>
49030
49031         * modules/relocatable-prog: Renamed from modules/relocatable.
49032         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
49033
49034 2007-03-03  Bruno Haible  <bruno@clisp.org>
49035
49036         * modules/relocatable-script (Files): Add doc/relocatable.texi,
49037         m4/relocatable-lib.m4.
49038         (Depends-on): Remove 'relocatable'.
49039         (configure.ac): Add gl_RELOCATABLE_NOP.
49040
49041 2007-03-03  Bruno Haible  <bruno@clisp.org>
49042
49043         * modules/relocatable-prog-wrapper: New file.
49044         * modules/relocatable (Depends-on): Add it. Remove all other
49045         dependencies except progname.
49046         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
49047
49048         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
49049         (gl_FUNC_STRERROR): Nop.
49050         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
49051
49052         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
49053         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
49054
49055         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
49056         (gl_FUNC_READLINK): Update.
49057
49058         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
49059
49060 2007-03-03  Bruno Haible  <bruno@clisp.org>
49061
49062         * lib/xreadlink.c: Include <unistd.h> unconditionally.
49063         * modules/xreadlink (Depends-on): Add unistd.
49064         * modules/xreadlink-with-size (Depends-on): Likewise.
49065
49066 2007-03-03  Bruno Haible  <bruno@clisp.org>
49067
49068         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
49069         extracted from gt_FUNC_SETENV.
49070         (gt_FUNC_SETENV): Remove macro.
49071         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
49072         remove gt_FUNC_SETENV.
49073
49074 2007-03-03  Bruno Haible  <bruno@clisp.org>
49075
49076         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
49077         ENABLE_RELOCATABLE here.
49078         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
49079
49080 2007-03-03  Bruno Haible  <bruno@clisp.org>
49081
49082         * modules/rbtreehash-list-tests (Depends-on): Add progname.
49083         * tests/test-rbtreehash_list.c: Include progname.h.
49084         (main): Call set_program_name.
49085
49086         * modules/rbtree-oset-tests (Depends-on): Add progname.
49087         * tests/test-rbtree_oset.c: Include progname.h.
49088         (main): Call set_program_name.
49089
49090         * modules/rbtree-list-tests (Depends-on): Add progname.
49091         * tests/test-rbtree_list.c: Include progname.h.
49092         (main): Call set_program_name.
49093
49094         * modules/linked-list-tests (Depends-on): Add progname.
49095         * tests/test-linked_list.c: Include progname.h.
49096         (main): Call set_program_name.
49097
49098 2007-03-03  Bruno Haible  <bruno@clisp.org>
49099
49100         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
49101         All uses of __restrict changed to _Restrict_.
49102         * lib/glob_.h (__restrict): Remove macro.
49103
49104 2007-03-02  Bruno Haible  <bruno@clisp.org>
49105
49106         * modules/gettext (configure.ac): Require gettext infrastructure
49107         from version 0.16.1.
49108
49109 2007-03-02  Bruno Haible  <bruno@clisp.org>
49110
49111         * modules/linkedhash-list-tests (Depends-on): Add progname.
49112         * tests/test-linkedhash_list.c: Include progname.h.
49113         (main): Call set_program_name.
49114
49115         * modules/carray-list-tests (Depends-on): Add progname.
49116         * tests/test-carray_list.c: Include progname.h.
49117         (main): Call set_program_name.
49118
49119         * modules/avltreehash-list-tests (Depends-on): Add progname.
49120         * tests/test-avltreehash_list.c: Include progname.h.
49121         (main): Call set_program_name.
49122
49123         * modules/avltree-oset-tests (Depends-on): Add progname.
49124         * tests/test-avltree_oset.c: Include progname.h.
49125         (main): Call set_program_name.
49126
49127         * modules/avltree-list-tests (Depends-on): Add progname.
49128         * tests/test-avltree_list.c: Include progname.h.
49129         (main): Call set_program_name.
49130
49131         * modules/array-oset-tests (Depends-on): Add progname.
49132         * tests/test-array_oset.c: Include progname.h.
49133         (main): Call set_program_name.
49134
49135         * modules/array-list-tests (Depends-on): Add progname.
49136         * tests/test-array_list.c: Include progname.h.
49137         (main): Call set_program_name.
49138
49139         * modules/argp-tests (Depends-on): Add progname.
49140         * tests/test-argp.c: Include argp.h first. Include progname.h.
49141         (main): Call set_program_name.
49142
49143 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
49144
49145         * doc/gnulib-tool.texi (Initial import): Reword description of
49146         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
49147         limited effect even if defined after the first system include.
49148
49149 2007-03-01  Bruno Haible  <bruno@clisp.org>
49150
49151         * build-aux/config.libpath: Update to libtool-1.5.22.
49152         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49153
49154 2007-03-01  Bruno Haible  <bruno@clisp.org>
49155
49156         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
49157         foo_CFLAGS.
49158         Reported by Ralf Wildenhues.
49159
49160 2007-03-01  Bruno Haible  <bruno@clisp.org>
49161
49162         * build-aux/install-reloc: Remove object files left over by some
49163         compilers.
49164         Reported by Ralf Wildenhues.
49165
49166 2007-03-01  Bruno Haible  <bruno@clisp.org>
49167
49168         * build-aux/install-reloc: Break long lines.
49169
49170 2007-03-01  Bruno Haible  <bruno@clisp.org>
49171
49172         * doc/relocatable.texi: Document that it may not work on OpenBSD.
49173         Reported by Ralf Wildenhues.
49174
49175 2007-03-01  Bruno Haible  <bruno@clisp.org>
49176
49177         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
49178         include ordering constraints.
49179
49180 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49181
49182         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
49183         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
49184         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
49185         as another example.
49186         * lib/time_.h: Fix misspelling.
49187         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49188         Require gl_HEADER_TIME_H_DEFAULTS.
49189         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
49190         * m4/time_r.m4 (gl_TIME_R): Likewise.
49191         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
49192
49193 2007-03-01  Bruno Haible  <bruno@clisp.org>
49194
49195         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
49196         * m4/utimens.m4 (gl_UTIMENS): Likewise.
49197
49198 2007-03-01  Jim Meyering  <jim@meyering.net>
49199
49200         * modules/xreadlink (Maintainer): Add my name.
49201         * modules/xreadlink-with-size (Depends-on): Alphabetize.
49202
49203 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
49204             Bruno Haible  <bruno@clisp.org>
49205
49206         * build-aux/install-reloc: Compile also c-ctype.c.
49207         * build-aux/relocatable.sh.in: New file.
49208         * doc/relocatable.texi: New file.
49209         * doc/relocatable-maint.texi: New file.
49210         * doc/gnulib.texi: Include relocatable-maint.texi.
49211         * lib/progreloc.c: Include unistd.h unconditionally.
49212         * lib/relocwrapper.c: Include unistd.h unconditionally.
49213         Include c-ctype.h.
49214         (add_dotbin): Use c_tolower.
49215         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
49216         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
49217         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
49218         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
49219         to m4/relocatable-lib.m4.
49220         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
49221         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
49222         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
49223         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
49224         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
49225         * modules/relocatable: New file.
49226         * modules/relocatable-lib: New file.
49227         * modules/relocatable-script: New file.
49228
49229 2007-02-28  Bruno Haible  <bruno@clisp.org>
49230
49231         Import --enable-relocatable infrastructure.
49232         * build-aux/config.libpath: New file, from GNU gettext.
49233         * build-aux/install-reloc: New file, from GNU gettext.
49234         * build-aux/reloc-ldflags: New file, from GNU gettext.
49235         * lib/relocatable.h: New file, from GNU gettext.
49236         * lib/relocatable.c: New file, from GNU gettext.
49237         * lib/relocwrapper.c: New file, from GNU gettext.
49238         * m4/relocatable.m4: New file, from GNU gettext.
49239
49240 2007-02-28  Bruno Haible  <bruno@clisp.org>
49241
49242         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
49243
49244         * modules/xreadlink: New file, from GNU gettext with modifications.
49245         * lib/xreadlink.c: New file, from GNU gettext.
49246         * lib/xreadlink.h: Add comments.
49247         (xreadlink): New declaration.
49248
49249         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
49250         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
49251         lib/xreadlink-with-size.c.
49252         (configure.ac): Remove gl_XREADLINK invocation.
49253         (Makefile.am): Augment lib_SOURCES.
49254         * m4/xreadlink.m4: Remove file.
49255         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
49256         (xreadlink_with_size): Renamed from xreadink.
49257         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
49258         * modules/canonicalize (Depends-on): Replace xreadlink with
49259         xreadlink-with-size.
49260         * lib/canonicalize.c (canonicalize_filename_mode): Update.
49261
49262 2007-02-25  Jim Meyering  <jim@meyering.net>
49263
49264         * build-aux/announce-gen: When complaining about excess arguments,
49265         list them.
49266
49267 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
49268
49269         * README: Document signed integer overflow situation more
49270         accurately.
49271
49272 2007-02-25  Bruno Haible  <bruno@clisp.org>
49273
49274         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
49275         'a' or 'A' conversion.
49276
49277 2007-02-25  Bruno Haible  <bruno@clisp.org>
49278
49279         * modules/filename: Renamed from modules/pathname.
49280         (Files): Replace lib/pathname.h with lib/filename.h. Replace
49281         lib/concatpath.c with lib/concat-filename.c.
49282         (Makefile.am): Update.
49283         (Include): Replace pathname.h with filename.h.
49284         * lib/filename.h: Renamed from lib/pathname.h.
49285         (concatenated_filename): Renamed from concatenated_pathname.
49286         * lib/concat-filename.c: Renamed from lib/concatpath.c.
49287         (concatenated_filename): Renamed from concatenated_pathname.
49288         * lib/findprog.c: Include filename.h instead of pathname.h.
49289         (find_in_path): Update.
49290         * lib/javacomp.c: Include filename.h instead of pathname.h.
49291         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
49292         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
49293         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
49294         is_oldgcj_14_13_usable, is_javac_usable): Update.
49295         * lib/javaexec.c: Include filename.h instead of pathname.h.
49296         (execute_java_class): Update.
49297         * modules/findprog: Update.
49298         * modules/javacomp: Update.
49299         * modules/javaexec: Update.
49300         * MODULES.html.sh (File system functions): Add 'filename', remove
49301         'pathname'.
49302
49303 2007-02-25  Bruno Haible  <bruno@clisp.org>
49304
49305         * modules/printf-frexpl-tests: New file.
49306         * tests/test-printf-frexpl.c: New file.
49307
49308         * modules/printf-frexpl: New file.
49309         * lib/printf-frexpl.h: New file.
49310         * lib/printf-frexpl.c: New file.
49311         * m4/printf-frexpl.m4: New file.
49312
49313 2007-02-25  Bruno Haible  <bruno@clisp.org>
49314
49315         * modules/printf-frexp-tests: New file.
49316         * tests/test-printf-frexp.c: New file.
49317
49318         * modules/printf-frexp: New file.
49319         * lib/printf-frexp.h: New file.
49320         * lib/printf-frexp.c: New file.
49321         * m4/printf-frexp.m4: New file.
49322
49323 2007-02-25  Bruno Haible  <bruno@clisp.org>
49324
49325         Assume automake >= 1.10 for the tests.
49326         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
49327         * modules/arctwo-tests: Likewise.
49328         * modules/argp-tests: Likewise.
49329         * modules/avltree-list-tests: Likewise.
49330         * modules/avltree-oset-tests: Likewise.
49331         * modules/avltreehash-list-tests: Likewise.
49332         * modules/carray-list-tests: Likewise.
49333         * modules/crc-tests: Likewise.
49334         * modules/des-tests: Likewise.
49335         * modules/gc-arcfour-tests: Likewise.
49336         * modules/gc-arctwo-tests: Likewise.
49337         * modules/gc-des-tests: Likewise.
49338         * modules/gc-hmac-md5-tests: Likewise.
49339         * modules/gc-hmac-sha1-tests: Likewise.
49340         * modules/gc-md2-tests: Likewise.
49341         * modules/gc-md4-tests: Likewise.
49342         * modules/gc-md5-tests: Likewise.
49343         * modules/gc-pbkdf2-sha1-tests: Likewise.
49344         * modules/gc-rijndael-tests: Likewise.
49345         * modules/gc-sha1-tests: Likewise.
49346         * modules/gc-tests: Likewise.
49347         * modules/getaddrinfo-tests: Likewise.
49348         * modules/hmac-md5-tests: Likewise.
49349         * modules/hmac-sha1-tests: Likewise.
49350         * modules/linked-list-tests: Likewise.
49351         * modules/linkedhash-list-tests: Likewise.
49352         * modules/lock-tests: Likewise.
49353         * modules/md2-tests: Likewise.
49354         * modules/md4-tests: Likewise.
49355         * modules/md5-tests: Likewise.
49356         * modules/rbtree-list-tests: Likewise.
49357         * modules/rbtree-oset-tests: Likewise.
49358         * modules/rbtreehash-list-tests: Likewise.
49359         * modules/read-file-tests: Likewise.
49360         * modules/rijndael-tests: Likewise.
49361         * modules/stdint-tests: Likewise.
49362         * modules/tls-tests: Likewise.
49363
49364 2007-02-24  Bruno Haible  <bruno@clisp.org>
49365
49366         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
49367         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
49368         function; instead check whether isnan with a double argument links.
49369         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
49370         function; instead check whether isnan with a 'long double' argument
49371         links.
49372         Reported by Eric Blake <ebb9@byu.net>.
49373
49374 2007-02-24  Bruno Haible  <bruno@clisp.org>
49375
49376         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
49377         defined.
49378         * lib/isnanl.c: Remove all code. Just include isnan.c.
49379         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
49380
49381 2007-02-25  Jim Meyering  <jim@meyering.net>
49382
49383         Avoid conflicting types for 'unsetenv' on FreeBSD.
49384         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
49385         conflicting with FreeBSD's (5.0 and 6.1) function declaration
49386         in stdlib.h.
49387
49388 2007-02-24  Bruno Haible  <bruno@clisp.org>
49389
49390         * modules/isnanl-nolibm-tests: New file.
49391         * tests/test-isnanl.c: New file.
49392
49393         * modules/isnanl-nolibm: New file.
49394         * lib/isnanl.h: New file.
49395         * lib/isnanl.c: New file.
49396         * m4/isnanl.m4: New file.
49397
49398 2007-02-24  Bruno Haible  <bruno@clisp.org>
49399
49400         * modules/isnan-nolibm-tests: New file.
49401         * tests/test-isnan.c: New file.
49402
49403         * modules/isnan-nolibm: New file.
49404         * lib/isnan.h: New file.
49405         * lib/isnan.c: New file.
49406         * m4/isnan.m4: New file.
49407
49408 2007-02-24  Bruno Haible  <bruno@clisp.org>
49409
49410         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
49411         assume that an exponent fits in 20 bits.
49412
49413 2007-02-24  Jim Meyering  <jim@meyering.net>
49414
49415         * m4/regex.m4: Update the description of the configure-time option,
49416         --without-included-regex, to state accurately what the defaults are,
49417         and perhaps to give people an idea why using this option is risky.
49418
49419 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
49420
49421         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
49422         loops on small arguments.  This attempts to avoid the problem
49423         Bruno Haible reported for AIX 4.3.2 in
49424         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
49425
49426 2007-02-23  Bruno Haible  <bruno@clisp.org>
49427
49428         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
49429         Needed for help2man.
49430
49431 2007-02-23  Karl Berry  <karl@gnu.org>
49432
49433         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
49434         exists, foo.h should be cvs-ignored, not committed.
49435
49436 2007-02-23  Eric Blake  <ebb9@byu.net>
49437
49438         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
49439         * lib/stat-time.h (includes): Likewise.
49440         * lib/utimecmp.c (includes): Likewise.
49441         * lib/utimens.h (includes): Likewise.
49442         * lib/getdate.y (includes): Also include "timespec.h" for use
49443         internal to the module.
49444         * modules/utimens (Depends-on): Revert yesterday's patch.
49445         * modules/nanosleep (Depends-on): Add missing dependency.
49446
49447 2007-02-22  Bruno Haible  <bruno@clisp.org>
49448
49449         * lib/glob.c: Don't include getlogin_r.h.
49450
49451 2007-02-22  Jim Meyering  <jim@meyering.net>
49452
49453         * modules/utimens (Depends-on): Add timespec, required for
49454         utimens.h's inclusion of timespec.h.
49455
49456 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
49457
49458         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
49459         long unreadable paths in GNU/Linux.  Problem reported by Andreas
49460         Schwab in
49461         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
49462         I'll try to think of a better way to fix the Solaris problem.
49463
49464         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
49465         like glibc; on Solaris 10, it fails with errno == EINVAL.
49466         POSIX says the behavior is unspecified if the first argument is NULL,
49467         so play it safe and never pass NULL to the system getcwd.
49468
49469 2007-02-21  Jim Meyering  <jim@meyering.net>
49470
49471         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
49472         of gettimeofday.  It would conflict with the one now always
49473         provided via sys_time_.h.  Reported by Matthew Woehlke, as
49474         an IRIX 6.5 build failure.
49475
49476 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
49477
49478         Minor fixups to port to Solaris 10 with Sun C 5.8.
49479         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
49480         * modules/getcwd (Depends-on): Add dirfd.
49481         * lib/putenv.c (putenv): #undef it.
49482         (rpl_putenv): New decl.
49483         (malloc, free): Include <stdlib.h> rather than prototyping separately.
49484
49485 2007-02-20  Bruno Haible  <bruno@clisp.org>
49486
49487         * modules/stdio-tests: New file.
49488         * tests/test-stdio.c: New file.
49489
49490         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
49491         (Depends-on): Add stdio.
49492         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
49493         (Include): Use <stdio.h> instead of vsnprintf.h.
49494         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
49495         HAVE_DECL_VSNPRINTF.
49496         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
49497
49498         * modules/snprintf (Files): Remove lib/snprintf.h.
49499         (Depends-on): Add stdio.
49500         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
49501         (Include): Use <stdio.h> instead of snprintf.h.
49502         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
49503         HAVE_DECL_SNPRINTF.
49504         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
49505         * lib/getaddrinfo.c: Likewise.
49506
49507         * modules/stdio: New file.
49508         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
49509         * lib/snprintf.h: Remove file.
49510         * lib/vsnprintf.h: Remove file.
49511         * lib/.cppi-disable: Remove snprintf.h.
49512         * m4/stdio_h.m4: New file.
49513         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
49514
49515 2007-02-20  Jim Meyering  <jim@meyering.net>
49516
49517         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
49518         used by e.g., mingw.  From Bruno Haible.
49519
49520 2007-02-19  Bruno Haible  <bruno@clisp.org>
49521
49522         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
49523         warnings.
49524         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49525
49526 2007-02-19  Bruno Haible  <bruno@clisp.org>
49527
49528         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
49529         from mingw users.
49530
49531 2007-02-19  Bruno Haible  <bruno@clisp.org>
49532
49533         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
49534         warnings.
49535         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
49536
49537 2007-02-19  Jim Meyering  <jim@meyering.net>
49538
49539         Don't use FD after a successful "fdopendir (fd)".
49540         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
49541         Reset it by calling dirfd on the just-obtained DIR*.
49542
49543         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
49544         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
49545
49546 2007-02-18  Bruno Haible  <bruno@clisp.org>
49547
49548         * lib/readlink.c: Include <unistd.h>.
49549         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
49550         HAVE_READLINK.
49551         * modules/readlink (Depends-on): Add unistd.
49552         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49553         (Include): Add <unistd.h>.
49554
49555         * lib/getlogin_r.h: Remove file.
49556         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
49557         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
49558         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
49559         HAVE_DECL_GETLOGIN_R.
49560         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
49561         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49562         (Include): Use <unistd.h> instead of getlogin_r.h.
49563
49564         * lib/getcwd.h: Remove file.
49565         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
49566         * lib/xgetcwd.c: Likewise.
49567         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
49568         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
49569         * modules/getcwd (Files): Remove lib/getcwd.h.
49570         (Depends-on): Add unistd.
49571         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49572         (Include): Use <unistd.h> instad of getcwd.h.
49573
49574         * lib/ftruncate.c: Include <unistd.h> first.
49575         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
49576         Set HAVE_FTRUNCATE.
49577         * modules/ftruncate (Depends-on): Add unistd.
49578         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49579
49580         * lib/fchdir.c: Include <unistd.h> first.
49581         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
49582         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
49583         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
49584         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49585         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
49586
49587         * lib/dup2.c: Include <unistd.h> first.
49588         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
49589         HAVE_DUP2.
49590         * modules/dup2 (Depends-on): Add unistd.
49591         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49592
49593         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
49594         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
49595         REPLACE_CHOWN. Don't define chown as a macro here.
49596         * modules/chown (Depends-on): Add unistd.
49597         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49598
49599         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
49600         Add definition for GL_LINK_WARNING.
49601         (chown, dup2): New declarations.
49602         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
49603         link warning.
49604         (ftruncate): New declaration.
49605         (getcwd): New declaration, taken from old getcwd.h.
49606         (getlogin_r): New declaration, taken from old getlogin_r.h.
49607         (readlink): New declaration.
49608         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
49609         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
49610         (gl_PREREQ_UNISTD): Remove macro.
49611         (gl_UNISTD_MODULE_INDICATOR): New macro.
49612         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
49613         many new variables. Don't set UNISTD_H.
49614         * modules/unistd (Description): Change.
49615         (Depends-on): Add link-warning.
49616         (configure.ac): Update.
49617         (Makefile.am): Create unistd.h always. Substitute many new variables
49618         into it.
49619
49620 2007-02-18  Bruno Haible  <bruno@clisp.org>
49621
49622         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
49623         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
49624         HAVE_GETSUBOPT.
49625         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
49626         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
49627         * lib/getsubopt.h: Remove file.
49628         * modules/getsubopt (Files): Remove lib/getsubopt.h.
49629         (Depends-on): Add stdlib.
49630         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49631         (Includes): Use <stdlib.h> instead of getsubopt.h.
49632         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
49633         Set HAVE_GETSUBOPT.
49634         * lib/getsubopt.c: Don't include getsubopt.h.
49635
49636 2007-02-18  Bruno Haible  <bruno@clisp.org>
49637
49638         * modules/fchdir (Depends-on): Add dup2.
49639
49640 2007-02-18  Bruno Haible  <bruno@clisp.org>
49641
49642         * lib/stdlib_.h: Handle glibc's special invocation convention
49643         specially.
49644
49645 2007-02-18  Bruno Haible  <bruno@clisp.org>
49646
49647         * modules/stdlib-tests: New file.
49648         * tests/test-stdlib.c: New file.
49649
49650         * modules/mkstemp (Files): Remove lib/mkstemp.h.
49651         (Depends-on): Add stdlib.
49652         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49653         (Includes): Use <stdlib.h> instead of mkstemp.h.
49654         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
49655         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
49656         * lib/mkstemp.c: Don't include mkstemp.h.
49657         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
49658         * lib/stdlib--.h: Don't include mkstemp.h.
49659
49660         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
49661         (Depends-on): Add stdlib.
49662         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49663         (Includes): Use <stdlib.h> instead of mkdtemp.h.
49664         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
49665         HAVE_MKDTEMP.
49666         * lib/mkdtemp.c: Don't include mkdtemp.h.
49667         * lib/clean-temp.c: Don't include mkdtemp.h.
49668
49669         * modules/exit (Files): Remove lib/exit.h.
49670         (Depends-on): Add stdlib.
49671         (Makefile.am): Remove lib_SOURCES.
49672         (Include): Use <stdlib.h> instead of exit.h.
49673         * lib/argmatch.c: Don't include exit.h.
49674         * lib/execute.c: Likewise.
49675         * lib/pagealign_alloc.c: Likewise.
49676         * lib/pipe.c: Likewise.
49677         * lib/wait-process.c: Likewise.
49678         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
49679         * lib/exitfail.c: Likewise.
49680         * lib/savewd.c: Likewise.
49681         * lib/xsetenv.c: Likewise.
49682
49683         * modules/stdlib: New file.
49684         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
49685         and extra comments about mkstemp().
49686         * lib/exit.h: Remove file.
49687         * lib/mkdtemp.h: Remove file.
49688         * lib/mkstemp.h: Remove file.
49689         * m4/stdlib_h.m4: New file.
49690         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
49691
49692 2007-02-18  Bruno Haible  <bruno@clisp.org>
49693
49694         * modules/math-tests: New file.
49695         * tests/test-math.c: New file.
49696
49697         * modules/math: New file.
49698         * modules/mathl (Files): Remove lib/mathl.h.
49699         (Depends-on): Add math.
49700         (Makefile.am): Don't mention mathl.h.
49701         (Include): Use <math.h> instead of mathl.h.
49702         * lib/math_.h: New file.
49703         * lib/mathl.h: Remove file.
49704         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
49705         mathl.h.
49706         * lib/asinl.c: Likewise.
49707         * lib/atanl.c: Likewise.
49708         * lib/ceill.c: Likewise.
49709         * lib/cosl.c: Likewise.
49710         * lib/expl.c: Likewise.
49711         * lib/floorl.c: Likewise.
49712         * lib/frexpl.c: Likewise.
49713         * lib/ldexpl.c: Likewise.
49714         * lib/logl.c: Likewise.
49715         * lib/sincosl.c: Likewise.
49716         * lib/sinl.c: Likewise.
49717         * lib/sqrtl.c: Likewise.
49718         * lib/tanl.c: Likewise.
49719         * lib/trigl.c: Likewise.
49720         * m4/math_h.m4: New file.
49721         * MODULES.html.sh (Mathematics): Add math.
49722
49723 2007-02-17  Bruno Haible  <bruno@clisp.org>
49724
49725         * modules/wctype-tests: New file.
49726         * tests/test-wctype.c: New file.
49727
49728         * modules/wchar-tests: New file.
49729         * tests/test-wchar.c: New file.
49730
49731         * modules/unistd-tests: New file.
49732         * tests/test-unistd.c: New file.
49733
49734         * modules/time-tests: New file.
49735         * tests/test-time.c: New file.
49736
49737         * modules/sysexits-tests: New file.
49738         * tests/test-sysexits.c: New file.
49739
49740         * modules/sys_time-tests: New file.
49741         * tests/test-sys_time.c: New file.
49742
49743         * modules/sys_stat-tests: New file.
49744         * tests/test-sys_stat.c: New file.
49745
49746         * modules/sys_socket-tests: New file.
49747         * tests/test-sys_socket.c: New file.
49748
49749         * modules/sys_select-tests: New file.
49750         * tests/test-sys_select.c: New file.
49751
49752         * modules/string-tests: New file.
49753         * tests/test-string.c: New file.
49754
49755         * modules/stdbool-tests: New file.
49756         * tests/test-stdbool.c: New file.
49757
49758         * modules/netinet_in-tests: New file.
49759         * tests/test-netinet_in.c: New file.
49760
49761         * modules/inttypes-tests: New file.
49762         * tests/test-inttypes.c: New file.
49763
49764         * modules/fcntl-tests: New file.
49765         * tests/test-fcntl.c: New file.
49766
49767         * modules/byteswap-tests: New file.
49768         * tests/test-byteswap.c: New file.
49769
49770         * modules/arpa_inet-tests: New file.
49771         * tests/test-arpa_inet.c: New file.
49772
49773 2007-02-17  Bruno Haible  <bruno@clisp.org>
49774
49775         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
49776         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
49777         if the corresponding module is not enabled. Emit link warnings if
49778         the function is used nevertheless.
49779         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
49780         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
49781         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
49782         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
49783         * modules/inttypes (Depends-on): Add link-warning.
49784         (Makefile.am): Copy the contents of build-aux/link-warning.h into
49785         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
49786         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
49787         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
49788         * modules/imaxdiv (configure.ac): Likewise.
49789         * modules/strtoimax (configure.ac): Likewise.
49790         * modules/strtoumax (configure.ac): Likewise.
49791
49792 2007-02-17  Bruno Haible  <bruno@clisp.org>
49793
49794         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
49795         gl_STRING_MODULE_INDICATOR_DEFAULTS.
49796         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
49797         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
49798
49799 2007-02-17  Bruno Haible  <bruno@clisp.org>
49800
49801         * modules/link-warning: New file.
49802         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
49803         * lib/string_.h (GL_LINK_WARNING): Remove definition.
49804         * modules/string (Depends-on): Add link-warning.
49805         (Makefile.am): Copy the contents of build-aux/link-warning.h into
49806         string.h.
49807         * MODULES.html.sh (Support for building libraries and executables): Add
49808         link-warning.
49809
49810 2007-02-17  Bruno Haible  <bruno@clisp.org>
49811
49812         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
49813         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
49814         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
49815         long lines.
49816
49817 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
49818             Bruno Haible  <bruno@clisp.org>
49819
49820         * modules/tmpfile: New file.
49821         * lib/tmpfile.c: New file.
49822         * m4/tmpfile.m4: New file.
49823         * MODULES.html.sh (func_all_modules): New section "Input/output".
49824
49825 2007-02-15  Bruno Haible  <bruno@clisp.org>
49826
49827         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
49828         (supports_delete_on_close): New function.
49829         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
49830
49831 2007-02-14  Bruno Haible  <bruno@clisp.org>
49832
49833         * modules/mbspcasecmp-tests: New file.
49834         * tests/test-mbspcasecmp.sh: New file.
49835         * tests/test-mbspcasecmp.c: New file.
49836
49837         New module mbspcasecmp.
49838         * modules/mbspcasecmp: New file.
49839         * lib/mbspcasecmp.c: New file.
49840         * lib/string_.h (strncasecmp): Change warning message.
49841         (mbspcasecmp): New declaration.
49842         * m4/mbspcasecmp.m4: New file.
49843         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49844         GNULIB_MBSPCASECMP.
49845         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
49846         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
49847
49848 2007-02-14  Bruno Haible  <bruno@clisp.org>
49849
49850         * modules/mbsncasecmp-tests: New file.
49851         * tests/test-mbsncasecmp.sh: New file.
49852         * tests/test-mbsncasecmp.c: New file.
49853
49854         New module mbsncasecmp.
49855         * modules/mbsncasecmp: New file.
49856         * lib/mbsncasecmp.c: New file.
49857         * lib/string_.h (mbsncasecmp): New declaration.
49858         * m4/mbsncasecmp.m4: New file.
49859         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49860         GNULIB_MBSNCASECMP.
49861         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
49862         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
49863
49864 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
49865
49866         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
49867         Verify that it doesn't overlap with our flags.
49868         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
49869         do not have the desired effect in multibyte locales; instead, use
49870         mbscasecmp.
49871         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
49872         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
49873         we don't require GNU fnmatch ourselves (if our users require it, they
49874         should do so explicitly).
49875
49876         Fix regex code so it doesn't rely on strcasecmp.
49877         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
49878         Otherwise, include gnulib's langinfo.h.
49879         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
49880         undesirable behavior in non-C locales.  Instead, rely on localecharset.
49881         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
49882         * modules/regex (FILES): Remove m4/codeset.m4.
49883         (Depends-on): Add localcharset.  Remove strcase.
49884
49885 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49886
49887         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
49888         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
49889
49890 2007-02-13  Bruno Haible  <bruno@clisp.org>
49891
49892         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
49893         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49894
49895 2007-02-12  Bruno Haible  <bruno@clisp.org>
49896
49897         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
49898         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
49899         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
49900         time warning rather than a link error.
49901
49902 2007-02-12  Bruno Haible  <bruno@clisp.org>
49903
49904         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
49905         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49906         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49907
49908 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
49909
49910         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
49911         args, not 2.
49912
49913 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
49914
49915         New module 'time', so that apps can include <time.h> as per
49916         POSIX and GNU instead of separate include files like time_r.h
49917         and timegm.h.  This implementation tries out a simpler approach
49918         for replacing decls in standard include files (as compared to
49919         the string module), somewhat as an experiment.
49920
49921         * config/srclist.txt: Comment out mktime.c for now.
49922         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
49923         since it doesn't apply any more.  Use generic wording instead.
49924         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
49925         'time'.
49926         * lib/time_.h, m4/time_h.m4, modules/time: New files.
49927         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
49928         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
49929         Don't include <sys/types.h>; no longer needed since we assume C89.
49930         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
49931         * lib/strftime.c: Likewise.
49932         * lib/time_r.c: Likewise.
49933         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
49934         * lib/nanosleep.c: Include <time.h> first, to check interface.
49935         * lib/strptime.c: Likewise.
49936         * lib/time_r.c: Likewise.
49937         * lib/timegm.c: Likewise.
49938         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
49939         needed.
49940         * lib/timegm.c: Don't include timegm.h; no longer needed.
49941         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
49942         time.h now handles any problems in that area.
49943         (struct timespec, nanosleep): Remove; time.h now arranges for these.
49944         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
49945         that time.h defines struct timespec.
49946         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
49947         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
49948         handles that.
49949         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
49950         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
49951         needed.  Set REPLACE_LOCALTIME.
49952         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
49953         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
49954         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
49955         nanosleep; time_h.m4 now does that.  Don't require
49956         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
49957         module handles this now.
49958         * modules/getdate (Depends-on): Remove timespec.  Add time.
49959         * modules/nanosleep (Depends-on): Likewise.
49960         * modules/stat-time (Depends-on): Likewise.
49961         * modules/nanosleep (Include): Include time.h, not timespec.h.
49962         * modules/strptime (Files): Remove lib/strptime.h.
49963         (Depends-on): Add extensions, time.
49964         (Include): Include time.h, not strptime.h.
49965         * modules/time_r (Files): Remove lib/time_r.h.
49966         (Depends-on): Add time.
49967         (Include): Include time.h, not time_r.h.
49968         * modules/timegm: Likewise.
49969         * modules/timespec (Description): Now does timespec-related decls
49970         of our own, instead of struct timespec itself.
49971         (Depends-on): Add time; remove extensions.
49972         (Maintainer): Add self.
49973         * modules/utimecmp (Depends-on): Add time; remove timespec.
49974         * modules/utimens (Depends-on): Likewise.
49975         * modules/xnanosleep (Depends-on): Likewise.
49976
49977 2007-02-11  Bruno Haible  <bruno@clisp.org>
49978
49979         * lib/c-strstr.c: Include allocsa.h.
49980         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
49981         * lib/c-strcasestr.c: Include allocsa.h.
49982         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
49983         * lib/strcasestr.c: Include allocsa.h.
49984         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
49985         * lib/mbsstr.c: Include allocsa.h.
49986         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
49987         allocsa/freesa instead of malloc/free.
49988         * lib/mbscasestr.c: Include allocsa.h.
49989         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
49990         allocsa/freesa instead of malloc/free.
49991         * modules/c-strstr (Depends-on): Add allocsa.
49992         * modules/c-strcasestr (Depends-on): Likewise.
49993         * modules/strcasestr (Depends-on): Likewise.
49994         * modules/mbsstr (Depends-on): Likewise.
49995         * modules/mbscasestr (Depends-on): Likewise.
49996
49997 2007-02-11  Bruno Haible  <bruno@clisp.org>
49998
49999         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
50000
50001         * modules/mbsspn-tests: New file.
50002         * tests/test-mbsspn.sh: New file.
50003         * tests/test-mbsspn.c: New file.
50004
50005 2007-02-11  Bruno Haible  <bruno@clisp.org>
50006
50007         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
50008
50009         * modules/mbspbrk-tests: New file.
50010         * tests/test-mbspbrk.sh: New file.
50011         * tests/test-mbspbrk.c: New file.
50012
50013 2007-02-11  Bruno Haible  <bruno@clisp.org>
50014
50015         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
50016         unneeded cast.
50017
50018         * modules/mbscspn-tests: New file.
50019         * tests/test-mbscspn.sh: New file.
50020         * tests/test-mbscspn.c: New file.
50021
50022 2007-02-11  Bruno Haible  <bruno@clisp.org>
50023
50024         * modules/mbscasecmp-tests: New file.
50025         * tests/test-mbscasecmp.sh: New file.
50026         * tests/test-mbscasecmp.c: New file.
50027
50028 2007-02-11  Bruno Haible  <bruno@clisp.org>
50029
50030         Ensure O(n) worst-case complexity of mbscasestr.
50031         * lib/mbscasestr.c: Include stdbool.h.
50032         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
50033         functions.
50034         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
50035         the bookkeeping indicates that it's worth it.
50036         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
50037
50038         * modules/mbscasestr-tests: New file.
50039         * tests/test-mbscasestr1.c: New file.
50040         * tests/test-mbscasestr2.sh: New file.
50041         * tests/test-mbscasestr2.c: New file.
50042         * tests/test-mbscasestr3.sh: New file.
50043         * tests/test-mbscasestr3.c: New file.
50044         * tests/test-mbscasestr4.sh: New file.
50045         * tests/test-mbscasestr4.c: New file.
50046         * m4/locale-tr.m4: New file.
50047
50048 2007-02-11  Bruno Haible  <bruno@clisp.org>
50049
50050         Ensure O(n) worst-case complexity of mbsstr.
50051         * lib/mbsstr.c: Include stdbool.h.
50052         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
50053         functions.
50054         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
50055         bookkeeping indicates that it's worth it.
50056         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
50057
50058         * modules/mbsstr-tests: New file.
50059         * tests/test-mbsstr1.c: New file.
50060         * tests/test-mbsstr2.sh: New file.
50061         * tests/test-mbsstr2.c: New file.
50062         * tests/test-mbsstr3.sh: New file.
50063         * tests/test-mbsstr3.c: New file.
50064         * m4/locale-fr.m4: New file.
50065
50066 2007-02-11  Bruno Haible  <bruno@clisp.org>
50067
50068         * lib/mbsrchr.c (mbsrchr): Fix bug.
50069
50070         * modules/mbsrchr-tests: New file.
50071         * tests/test-mbsrchr.sh: New file.
50072         * tests/test-mbsrchr.c: New file.
50073
50074 2007-02-11  Bruno Haible  <bruno@clisp.org>
50075
50076         * lib/mbschr.c (mbschr): Fix bug.
50077
50078         * modules/mbschr-tests: New file.
50079         * tests/test-mbschr.sh: New file.
50080         * tests/test-mbschr.c: New file.
50081         * m4/locale-zh.m4: New file.
50082
50083 2007-02-11  Bruno Haible  <bruno@clisp.org>
50084
50085         Support for copying multibyte string iterators.
50086         * lib/mbiter.h: Include <string.h>.
50087         (mbiter_multi_copy): New function.
50088         (mbi_copy): New macro.
50089         * lib/mbuiter.h: Include <string.h>.
50090         (mbuiter_multi_copy): New function.
50091         (mbui_copy): New macro.
50092
50093 2007-02-11  Bruno Haible  <bruno@clisp.org>
50094
50095         New module mbslen.
50096         * modules/mbslen: New file.
50097         * lib/mbslen.c: New file.
50098         * lib/string_.h (mbslen): New declaration.
50099         * m4/mbslen.m4: New file.
50100         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50101         GNULIB_MBSLEN.
50102         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
50103         * MODULES.html.sh (Internationalization functions): Add mbslen.
50104
50105 2007-02-11  Bruno Haible  <bruno@clisp.org>
50106
50107         Ensure O(n) worst-case complexity of strcasestr substitute.
50108         * lib/strcasestr.c: Include stdbool.h.
50109         (knuth_morris_pratt): New function.
50110         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
50111         bookkeeping indicates that it's worth it.
50112         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
50113
50114         * modules/strcasestr-tests: New file.
50115         * tests/test-strcasestr.c: New file.
50116
50117 2007-02-11  Bruno Haible  <bruno@clisp.org>
50118
50119         Ensure O(n) worst-case complexity of c_strcasestr.
50120         * lib/c-strcasestr.c: Include stdbool.h, string.h.
50121         (knuth_morris_pratt): New function.
50122         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
50123         the bookkeeping indicates that it's worth it.
50124         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
50125
50126         * modules/c-strcasestr-tests: New file.
50127         * tests/test-c-strcasestr.c: New file.
50128
50129 2007-02-11  Bruno Haible  <bruno@clisp.org>
50130
50131         Ensure O(n) worst-case complexity of c_strstr.
50132         * lib/c-strstr.c: Include stdbool.h, string.h.
50133         (knuth_morris_pratt): New function.
50134         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
50135         bookkeeping indicates that it's worth it.
50136         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
50137
50138         * lib/c-strstr.c: Complete rewrite for maintainability.
50139
50140         * modules/c-strstr-tests: New file.
50141         * tests/test-c-strstr.c: New file.
50142
50143 2007-02-11  Bruno Haible  <bruno@clisp.org>
50144
50145         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
50146         5.2.1 and earlier, whereby \055 was treated just like the range
50147         delimiter '-'.
50148         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50149
50150 2007-02-08  Bruno Haible  <bruno@clisp.org>
50151
50152         * modules/regex (Depends-on): Add stdbool.
50153         Reported by Dalibor Topic <robilad@kaffe.org>.
50154
50155 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
50156
50157         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
50158         Prefer returning from main to exiting from it.
50159         Remove unnecessary parens after sizeof.
50160
50161 2007-02-05  Bruno Haible  <bruno@clisp.org>
50162
50163         New module mbssep.
50164         * modules/mbssep: New file.
50165         * lib/mbssep.c: New file.
50166         * lib/string_.h (strsep): Add a conditional link warning.
50167         (mbssep): New declaration.
50168         * m4/mbssep.m4: New file.
50169         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50170         GNULIB_MBSSEP.
50171         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
50172         * MODULES.html.sh (Internationalization functions): Add mbssep.
50173
50174 2007-02-05  Bruno Haible  <bruno@clisp.org>
50175
50176         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
50177         Optimize search in case of 1 delimiter.
50178
50179 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
50180
50181         * lib/acl.h: Include sys/types.h before sys/acl.h.
50182
50183 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
50184
50185         Merge upstream fix for glibc bugzilla #3957:
50186
50187         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
50188
50189         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
50190         bit for RE_HAT_LISTS_NOT_NEWLINE.
50191         (build_charclass_op): Remove bogus comment.
50192
50193 2007-02-05  Simon Josefsson  <simon@josefsson.org>
50194
50195         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
50196
50197 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
50198
50199         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
50200         * lib/memmem.c [!defined _LIBC]: Include config.h.
50201
50202 2007-02-04  Bruno Haible  <bruno@clisp.org>
50203
50204         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
50205         warning message.
50206
50207 2007-02-04  Bruno Haible  <bruno@clisp.org>
50208
50209         New module mbstok_r.
50210         * modules/mbstok_r: New file.
50211         * lib/mbstok_r.c: New file.
50212         * lib/string_.h (strtok_r): Change argument names to match the
50213         comments. Add a conditional link warning.
50214         (mbstok_r): New declaration.
50215         * m4/mbstok_r.m4: New file.
50216         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50217         GNULIB_MBSTOK_R.
50218         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
50219         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
50220
50221 2007-02-04  Bruno Haible  <bruno@clisp.org>
50222
50223         New module mbsspn.
50224         * modules/mbsspn: New file.
50225         * lib/mbsspn.c: New file.
50226         * lib/string_.h (strspn): Add a conditional link warning.
50227         (mbsspn): New declaration.
50228         * m4/mbsspn.m4: New file.
50229         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50230         GNULIB_MBSSPN.
50231         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
50232         * MODULES.html.sh (Internationalization functions): Add mbsspn.
50233
50234 2007-02-04  Bruno Haible  <bruno@clisp.org>
50235
50236         New module mbspbrk.
50237         * modules/mbspbrk: New file.
50238         * lib/mbspbrk.c: New file.
50239         * lib/string_.h (strpbrk): Add a conditional link warning.
50240         (mbspbrk): New declaration.
50241         * m4/mbspbrk.m4: New file.
50242         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50243         GNULIB_MBSPBRK.
50244         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
50245         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
50246
50247 2007-02-04  Bruno Haible  <bruno@clisp.org>
50248
50249         New module mbscspn.
50250         * modules/mbscspn: New file.
50251         * lib/mbscspn.c: New file.
50252         * lib/string_.h (strcspn): Add a conditional link warning.
50253         (mbscspn): New declaration.
50254         * m4/mbscspn.m4: New file.
50255         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50256         GNULIB_MBSCSPN.
50257         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
50258         * MODULES.html.sh (Internationalization functions): Add mbscspn.
50259
50260 2007-02-04  Bruno Haible  <bruno@clisp.org>
50261
50262         New module mbscasestr, reduced goal of strcasestr.
50263         * modules/mbscasestr: New file.
50264         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
50265         (mbscasestr): Renamed from strcasestr.
50266         * lib/strcasestr.c: Don't include mbuiter.h.
50267         (strcasestr): Remove support for multibyte locales.
50268         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
50269         Change the conditional link warning.
50270         (mbscasestr): New declaration.
50271         * m4/mbscasestr.m4: New file.
50272         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
50273         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
50274         REPLACE_STRCASESTR.
50275         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
50276         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50277         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
50278         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
50279         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
50280         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
50281         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
50282         (Depends-on): Remove mbuiter.
50283         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
50284
50285 2007-02-04  Bruno Haible  <bruno@clisp.org>
50286
50287         Simplify handling of strncasecmp.
50288         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
50289         the conditional link warning.
50290         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50291         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
50292         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
50293         * modules/strcase (configure.ac): Don't invoke
50294         gl_STRING_MODULE_INDICATOR.
50295         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
50296
50297 2007-02-04  Bruno Haible  <bruno@clisp.org>
50298
50299         New module mbscasecmp, reduced goal of strcasecmp.
50300         * modules/mbscasecmp: New file.
50301         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
50302         (mbscasecmp): Renamed from strcasecmp.
50303         * lib/strcasecmp.c: Don't include mbuiter.h.
50304         (strcasecmp): Remove support for multibyte locales.
50305         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
50306         Change the conditional link warning.
50307         (mbscasecmp): New declaration.
50308         * m4/mbscasecmp.m4: New file.
50309         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
50310         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
50311         REPLACE_STRCASECMP.
50312         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
50313         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50314         GNULIB_MBSCASECMP.
50315         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
50316         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
50317         * modules/strcase (Files): Remove m4/mbrtowc.m4.
50318         (Depends-on): Remove mbuiter.
50319         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
50320
50321 2007-02-04  Bruno Haible  <bruno@clisp.org>
50322
50323         New module mbsstr. Remove module strstr.
50324         * modules/mbsstr: New file.
50325         * modules/strstr: Remove file.
50326         * lib/mbsstr.c: Renamed from lib/strstr.c.
50327         (mbsstr): Renamed from strstr.
50328         * lib/string_.h (strstr): Remove declaration. Change the conditional
50329         link warning.
50330         (mbsstr): New declaration.
50331         * m4/mbsstr.m4: New file.
50332         * m4/strstr.m4: Remove file.
50333         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
50334         REPLACE_STRSTR.
50335         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
50336         Don't initialize GNULIB_STRSTR.
50337         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
50338         substitute GNULIB_STRSTR and REPLACE_STRSTR.
50339         * MODULES.html.sh (Internationalization functions): Add mbsstr.
50340         (Support for systems lacking ANSI C 89): Remove strstr.
50341
50342 2007-02-04  Bruno Haible  <bruno@clisp.org>
50343
50344         New module mbsrchr.
50345         * modules/mbsrchr: New file.
50346         * lib/mbsrchr.c: New file.
50347         * lib/string_.h (strrchr): Add a conditional link warning.
50348         (mbsrchr): New declaration.
50349         * m4/mbsrchr.m4: New file.
50350         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50351         GNULIB_MBSRCHR.
50352         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
50353         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
50354
50355 2007-02-04  Bruno Haible  <bruno@clisp.org>
50356
50357         New module mbschr.
50358         * modules/mbschr: New file.
50359         * lib/mbschr.c: New file.
50360         * lib/string_.h (strchr): Add a conditional link warning.
50361         (mbschr): New declaration.
50362         * m4/mbschr.m4: New file.
50363         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50364         GNULIB_MBSCHR.
50365         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
50366         * MODULES.html.sh (Internationalization functions): Add mbschr.
50367
50368 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
50369
50370         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
50371
50372         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
50373
50374 2007-02-04  Bruno Haible  <bruno@clisp.org>
50375
50376         New module description section 'configure.ac-early'.
50377         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
50378         (func_get_autoconf_early_snippet): New function.
50379         (func_import, func_create_testdir): Use it. Remove special cases for
50380         modules 'extensions' and 'lock'.
50381         * modules/extensions (configure.ac-early): Require
50382         gl_USE_SYSTEM_EXTENSIONS.
50383         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
50384
50385 2007-02-04  Bruno Haible  <bruno@clisp.org>
50386
50387         Make use of gcj-4.3's -fsource and -ftarget option.
50388         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
50389         and if so try the options -fsource and -ftarget.
50390         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
50391         source_version, ftarget_option, target_version arguments.
50392         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
50393         (is_envjavac_oldgcj_14_14_usable): Renamed from
50394         is_envjavac_gcj_14_14_usable.
50395         (is_envjavac_oldgcj_14_13_usable): Renamed from
50396         is_envjavac_gcj_14_13_usable.
50397         (is_gcj_present): Update.
50398         (is_gcj_43, is_gcj43_usable): New functions.
50399         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
50400         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
50401         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
50402         try the options -fsource and -ftarget.
50403
50404 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
50405
50406         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
50407         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
50408         larger value.
50409
50410 2007-02-03  Jim Meyering  <jim@meyering.net>
50411
50412         Give tools a better chance to allocate space for very large buffers.
50413         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
50414
50415         Make pwd and readlink work also when run with an unreadable parent dir
50416         on systems with openat support.
50417         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
50418         provided getcwd function, even when we have openat support.
50419         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
50420
50421 2007-02-02  Bruno Haible  <bruno@clisp.org>
50422
50423         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
50424         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
50425         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
50426         portability problems if one of these functions is only used on specific
50427         platforms.
50428         Reported by Paul Eggert.
50429
50430 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
50431
50432         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
50433         is causing more trouble than it's curing.
50434         * lib/regex_internal.h (__mempcpy): Remove.
50435         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
50436         (and make the code a tad smaller to boot).
50437         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
50438
50439 2007-02-02  Jim Meyering  <jim@meyering.net>
50440
50441         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
50442         section, not in the Makefile.am: one.
50443
50444 2007-02-02  Eric Blake  <ebb9@byu.net>
50445
50446         * lib/strchrnul.c: Always include config.h first.
50447
50448         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
50449         gnulib strstr is not necessary here.
50450
50451 2007-02-02  Simon Josefsson  <simon@josefsson.org>
50452
50453         * m4/socklen.m4: Fix typo.
50454
50455 2007-02-02  Eric Blake  <ebb9@byu.net>
50456
50457         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
50458         * modules/netinet_in (Makefile.am): Likewise.
50459
50460 2007-02-01  Bruno Haible  <bruno@clisp.org>
50461
50462         * lib/string_.h (GL_LINK_WARNING): New macro.
50463         (strcasecmp, strstr, strcasestr): If provided by the system,
50464         conditionally define as a macro that leads to a warning instead of to
50465         an error.
50466         (strncasecmp): Conditionally define as a macro that leads to a warning.
50467
50468 2007-02-01  Karl Berry  <karl@gnu.org>
50469
50470         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
50471
50472 2007-02-01  Bruno Haible  <bruno@clisp.org>
50473
50474         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
50475         renamings.
50476
50477 2007-02-01  Eric Blake  <ebb9@byu.net>
50478
50479         * modules/regex (Depends-on): Revert dependence on mempcpy.
50480         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
50481         module's definition of mempcpy.
50482         Reported by Paul Eggert.
50483
50484 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
50485
50486         * lib/string_.h: If the gnulib module XYZ is not present, undefine
50487         the symbol XYZ before redefining it.  This fixes a problem with
50488         programs that don't use XYZ, when compiled on systems that define
50489         XYZ to something else.
50490
50491 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
50492
50493         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
50494         occurs when "mkdir -m foo" creates a setgid directory that is (1)
50495         writeable to group or other and (2) is intended to have a special
50496         mode bit that is set or cleared.  In such a case, the directory
50497         should be neither group- nor other-writeable until the special
50498         mode bits are right.
50499
50500 2007-01-31  Eric Blake  <ebb9@byu.net>
50501
50502         * modules/mountlist (Depends-on): Add strstr.
50503
50504         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
50505         bug.
50506         * modules/string (Makefile.am): Remove redundant replacement.
50507         * modules/regex (Depends-on): Add mempcpy.
50508
50509 2007-01-31  Bruno Haible  <bruno@clisp.org>
50510
50511         New module description field 'Link'.
50512         * gnulib-tool (func_usage): Document --extract-link-directive.
50513         (sed_extract_prog): Recognize 'Link' directive.
50514         (func_get_link_directive): New function.
50515         (func_import): Show summary of link directives.
50516         Handle --extract-link-directive option.
50517         * modules/acl (Link): New section.
50518         * modules/clock-time (Link): New section.
50519         * modules/euidaccess (Link): New section.
50520         * modules/gettext (Link): New section.
50521         * modules/iconv (Link): New section.
50522         * modules/lock (Link): New section.
50523         * modules/nanosleep (Link): New section.
50524         * modules/readline (Link): New section.
50525
50526 2007-01-27  Bruno Haible  <bruno@clisp.org>
50527
50528         Enforce the use of gnulib modules for unportable <string.h> functions.
50529         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
50530         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
50531         (gl_HEADER_STRING_H_BODY): Require it.
50532         * lib/string_.h: If the gnulib module XYZ is not present, redefine
50533         the symbol XYZ to one that gives a link error.
50534         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
50535         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
50536         * modules/mempcpy (configure.ac): Likewise.
50537         * modules/memrchr (configure.ac): Likewise.
50538         * modules/stpcpy (configure.ac): Likewise.
50539         * modules/stpncpy (configure.ac): Likewise.
50540         * modules/strcase (configure.ac): Likewise.
50541         * modules/strcasestr (configure.ac): Likewise.
50542         * modules/strchrnul (configure.ac): Likewise.
50543         * modules/strdup (configure.ac): Likewise.
50544         * modules/strndup (configure.ac): Likewise.
50545         * modules/strnlen (configure.ac): Likewise.
50546         * modules/strpbrk (configure.ac): Likewise.
50547         * modules/strsep (configure.ac): Likewise.
50548         * modules/strstr (configure.ac): Likewise.
50549         * modules/strtok_r (configure.ac): Likewise.
50550
50551 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
50552
50553         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
50554
50555 2007-01-30  Jim Meyering  <jim@meyering.net>
50556
50557         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
50558
50559 2007-01-29  Bruno Haible  <bruno@clisp.org>
50560
50561         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
50562         * lib/execute.c: Likewise.
50563         * lib/pipe.c: Likewise.
50564         * lib/printf-args.h: Likewise.
50565         * lib/printf-args.c: Likewise.
50566         * lib/printf-parse.c: Likewise.
50567         * lib/vasnprintf.c: Likewise.
50568
50569 2007-01-29  Eric Blake  <ebb9@byu.net>
50570
50571         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
50572         declaration.
50573
50574 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
50575
50576         * lib/strptime.h (strptime): Use 'restrict' for args where
50577         POSIX requires this.
50578         * lib/strptime.c (strptime): Likewise.
50579         Change license notice from LGPL to GPL, since gnulib-tool will
50580         change this as needed.
50581         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
50582         defined.
50583         Include "strptime.h" first, to check interface.
50584         Do not #undef _LIBC and _NL_CURRENT.
50585         Do not include <stdlib.h>; no longer needed.
50586         Include "time_r.h" and declare ptime_locale_status
50587         only if _LIBC is not defined.
50588         (__P): Remove unused macro.
50589         (match_string): Bring back glibc version, but use it only if _LIBC
50590         is defined.
50591         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
50592         Remove unnecessary assertion and abort() call.
50593         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
50594         * m4/strptime.m4: Fix serial number comment.
50595         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
50596         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
50597         (Depends-on): Add time_r.
50598
50599 2007-01-29  Bruno Haible  <bruno@clisp.org>
50600
50601         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50602         strptime.
50603         * modules/strptime (Depends-on): Add stdbool.
50604         * lib/strptime.h: Include <time.h> always. Add comments.
50605
50606 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50607
50608         * modules/strptime: New file.
50609         * lib/strptime.h: New file.
50610         * lib/strptime.c: New file.
50611         * m4/strptime.m4: New file.
50612
50613 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
50614
50615         * MODULES.html.sh: New module mpsort.
50616         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
50617
50618         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
50619         a circularity problem with HP-UX ia64 reported by Bob Proulx in
50620         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
50621         All uses changed.
50622         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
50623         All uses changed.
50624         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
50625         to _Restrict_.
50626         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
50627         the parameter matches the prototype.
50628
50629 2007-01-28  Jim Meyering  <jim@meyering.net>
50630
50631         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
50632         sys/time.h here, reverting that part of the previous patch:
50633         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
50634
50635 2007-01-28  Bruno Haible  <bruno@clisp.org>
50636
50637         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
50638         value of $(SYS_TIME_H).
50639         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
50640         remove it conditionally, too. [added by Jim Meyering]
50641         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
50642         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
50643         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
50644         GETTIMEOFDAY_REPLACEMENT to 1.
50645
50646 2007-01-28  Bruno Haible  <bruno@clisp.org>
50647
50648         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
50649         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
50650         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
50651         Set UNISTD_H instead of UNISTD_H2.
50652         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
50653
50654 2007-01-28  Bruno Haible  <bruno@clisp.org>
50655
50656         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
50657         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
50658
50659 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50660
50661         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
50662         (func_create_testdir): Ensure C locale for `grep' and `tr'
50663         character ranges.
50664         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
50665         ACLOCAL_AMFLAGS parsing state machine.
50666
50667 2007-01-27  Bruno Haible  <bruno@clisp.org>
50668
50669         * modules/unistr/base: Update.
50670
50671 2007-01-27  Bruno Haible  <bruno@clisp.org>
50672
50673         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
50674         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
50675         * modules/unistr/u32-mbtouc-unsafe: Renamed from
50676         modules/unistr/u32-mbtouc.
50677         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
50678         * lib/unistr.h: Update.
50679         * lib/linebreak.c: Update.
50680         * modules/unistr/u32-mbtouc: Renamed from
50681         modules/unistr/u32-mbtouc-safe.
50682         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
50683         * lib/unistr.h: Update.
50684         * lib/unistr/u32-to-u8.c: Update.
50685         * lib/unistr/u32-to-u16.c: Update.
50686
50687 2007-01-27  Bruno Haible  <bruno@clisp.org>
50688
50689         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
50690         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
50691         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
50692         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
50693         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
50694         * modules/unistr/u16-mbtouc-unsafe: Renamed from
50695         modules/unistr/u16-mbtouc.
50696         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
50697         * lib/unistr.h: Update.
50698         * lib/linebreak.c: Update.
50699         * modules/linebreak: Update.
50700         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
50701         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
50702         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
50703         * modules/unistr/u16-mbtouc: Renamed from
50704         modules/unistr/u16-mbtouc-safe.
50705         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
50706         * lib/unistr.h: Update.
50707         * lib/unistr/u16-to-u8.c: Update.
50708         * modules/unistr/u16-to-u8: Update.
50709         * lib/unistr/u16-to-u32.c: Update.
50710         * modules/unistr/u16-to-u32: Update.
50711
50712 2007-01-27  Bruno Haible  <bruno@clisp.org>
50713
50714         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
50715         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
50716         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
50717         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
50718         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
50719         * modules/unistr/u8-mbtouc-unsafe: Renamed from
50720         modules/unistr/u8-mbtouc.
50721         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
50722         * lib/unistr.h: Update.
50723         * lib/striconveh.c: Update.
50724         * modules/striconveh: Update.
50725         * lib/linebreak.c: Update.
50726         * modules/linebreak: Update.
50727         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
50728         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
50729         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
50730         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
50731         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
50732         * lib/unistr.h: Update.
50733         * lib/striconveh.c: Update.
50734         * modules/striconveh: Update.
50735         * lib/unistr/u8-to-u16.c: Update.
50736         * modules/unistr/u8-to-u16: Update.
50737         * lib/unistr/u8-to-u32.c: Update.
50738         * modules/unistr/u8-to-u32: Update.
50739
50740 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50741
50742         Sync from Libtool.
50743         * lib/argz.c: Do not include strings.h nor memory.h, include
50744         string.h unconditionally.  Patch by Simon Josefsson.
50745
50746 2007-01-27  Bruno Haible  <bruno@clisp.org>
50747
50748         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
50749         from gl_HEADER_STRING_H_BODY.
50750         (gl_HEADER_STRING_H_BODY): Require it.
50751         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
50752         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
50753         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
50754         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
50755         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50756         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
50757         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50758         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
50759         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
50760         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50761         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
50762         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
50763         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
50764         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50765         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50766
50767 2007-01-27  Bruno Haible  <bruno@clisp.org>
50768
50769         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
50770         check_PROGRAMS into noinst_PROGRAMS.
50771         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
50772         check_PROGRAMS in this case.
50773         (func_import): Set for_test to false.
50774         (func_create_testdir): Set for_test to true.
50775
50776 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
50777             Bruno Haible  <bruno@clisp.org>
50778
50779         * modules/strcasestr (Files): Remove lib/strcasestr.h.
50780         (Depends-on): Add string.
50781         (Includes): Use <string.h> instead of strcasestr.h.
50782         * modules/string (Makefile.am): Also substitute the value of
50783         REPLACE_STRCASESTR.
50784         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
50785         assume strcasestr is declared in <string.h> not <strings.h>. Also
50786         set REPLACE_STRCASESTR.
50787         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
50788         REPLACE_STRCASESTR.
50789         * lib/strcasestr.h: Remove file.
50790         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
50791         * lib/string_.h (strcasestr): New declaration.
50792
50793 2007-01-27  Bruno Haible  <bruno@clisp.org>
50794
50795         * lib/string_.h: Use 'extern'.
50796
50797 2007-01-27  Jim Meyering  <jim@meyering.net>
50798
50799         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
50800         of set-but-not-used local, "q".
50801
50802         * lib/mempcpy.c: Include <config.h> before <string.h>.
50803         This fixes a compilation error on HP-UX, due to the system's
50804         "restrict"-using mempcpy prototype.
50805
50806 2007-01-26  Bruno Haible  <bruno@clisp.org>
50807
50808         Small optimization.
50809         * lib/javacomp.c: Include c-strstr.h.
50810          (is_envjavac_gcj): Use c_strstr instead of strstr.
50811         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
50812
50813 2007-01-26  Bruno Haible  <bruno@clisp.org>
50814
50815         * MODULES.html.sh (Unicode string functions): Add the new modules.
50816
50817         * modules/uniconv/u32-strconv-to-locale: New file.
50818         * lib/uniconv/u32-strconv-to-locale.c: New file.
50819
50820         * modules/uniconv/u16-strconv-to-locale: New file.
50821         * lib/uniconv/u16-strconv-to-locale.c: New file.
50822
50823         * modules/uniconv/u8-strconv-to-locale: New file.
50824         * lib/uniconv/u8-strconv-to-locale.c: New file.
50825
50826         * modules/uniconv/u32-strconv-from-locale: New file.
50827         * lib/uniconv/u32-strconv-from-locale.c: New file.
50828
50829         * modules/uniconv/u16-strconv-from-locale: New file.
50830         * lib/uniconv/u16-strconv-from-locale.c: New file.
50831
50832         * modules/uniconv/u8-strconv-from-locale: New file.
50833         * lib/uniconv/u8-strconv-from-locale.c: New file.
50834
50835         * modules/uniconv/u32-strconv-to-enc: New file.
50836         * lib/uniconv/u32-strconv-to-enc.c: New file.
50837         * modules/uniconv/u32-strconv-to-enc-tests: New file.
50838         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
50839
50840         * modules/uniconv/u16-strconv-to-enc: New file.
50841         * lib/uniconv/u16-strconv-to-enc.c: New file.
50842         * lib/uniconv/u-strconv-to-enc.h: New file.
50843         * modules/uniconv/u16-strconv-to-enc-tests: New file.
50844         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
50845
50846         * modules/uniconv/u8-strconv-to-enc: New file.
50847         * lib/uniconv/u8-strconv-to-enc.c: New file.
50848         * modules/uniconv/u8-strconv-to-enc-tests: New file.
50849         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
50850
50851         * modules/uniconv/u32-strconv-from-enc: New file.
50852         * lib/uniconv/u32-strconv-from-enc.c: New file.
50853         * modules/uniconv/u32-strconv-from-enc-tests: New file.
50854         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
50855
50856         * modules/uniconv/u16-strconv-from-enc: New file.
50857         * lib/uniconv/u16-strconv-from-enc.c: New file.
50858         * modules/uniconv/u16-strconv-from-enc-tests: New file.
50859         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
50860
50861         * modules/uniconv/u8-strconv-from-enc: New file.
50862         * lib/uniconv/u8-strconv-from-enc.c: New file.
50863         * lib/uniconv/u-strconv-from-enc.h: New file.
50864         * modules/uniconv/u8-strconv-from-enc-tests: New file.
50865         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
50866
50867         * modules/uniconv/u32-conv-from-enc: New file.
50868         * lib/uniconv/u32-conv-from-enc.c: New file.
50869         * modules/uniconv/u32-conv-from-enc-tests: New file.
50870         * tests/uniconv/test-u32-conv-from-enc.c: New file.
50871
50872         * modules/uniconv/u16-conv-from-enc: New file.
50873         * lib/uniconv/u16-conv-from-enc.c: New file.
50874         * lib/uniconv/u-conv-from-enc.h: New file.
50875         * modules/uniconv/u16-conv-from-enc-tests: New file.
50876         * tests/uniconv/test-u16-conv-from-enc.c: New file.
50877
50878         * modules/uniconv/u8-conv-from-enc: New file.
50879         * lib/uniconv/u8-conv-from-enc.c: New file.
50880         * modules/uniconv/u8-conv-from-enc-tests: New file.
50881         * tests/uniconv/test-u8-conv-from-enc.c: New file.
50882
50883         * modules/uniconv/base: New file.
50884         * lib/uniconv.h: New file.
50885
50886 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
50887
50888         * doc/gnulib-tool.texi (Initial import): Update to match current
50889         behavior with strdup module.
50890         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
50891         * lib/memmem.h: Remove; all uses removed.  This is now done
50892         by <string.h>.
50893         * lib/mempcpy.h: Likewise.
50894         * lib/memrchr.h: Likewise.
50895         * lib/stpcpy.h: Likewise.
50896         * lib/stpncpy.h: Likewise.
50897         * lib/strcase.h: Likewise.
50898         * lib/strchrnul.h: Likewise.
50899         * lib/strdup.h: Likewise.
50900         * lib/strndup.h: Likewise.
50901         * lib/strnlen.h: Likewise.
50902         * lib/strpbrk.h: Likewise.
50903         * lib/strsep.h: Likewise.
50904         * lib/strstr.h: Likewise.
50905         * lib/strtok_r.h: Likewise.
50906         * lib/string_.h: New file.
50907         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
50908         Rely on <string.h> instead.
50909         * lib/canon-host.c: Likewise.
50910         * lib/chdir-long.c: Likewise.
50911         * lib/concatpath.c: Likewise.
50912         * lib/exclude.c: Likewise.
50913         * lib/fchdir.c: Likewise.
50914         * lib/getaddrinfo.c: Likewise.
50915         * lib/getcwd.c: Likewise.
50916         * lib/getsubopt.c: Likewise.
50917         * lib/glob.c: Likewise.
50918         * lib/hard-locale.c: Likewise.
50919         * lib/iconvme.c: Likewise.
50920         * lib/javacomp.c: Likewise.
50921         * lib/mempcpy.c: Likewise.
50922         * lib/memrchr.c: Likewise.
50923         * lib/regex_internal.h: Likewise.
50924         * lib/stpncpy.c: Likewise.
50925         * lib/strcasecmp.c: Likewise.
50926         * lib/strchrnul.c: Likewise.
50927         * lib/strdup.c: Likewise.
50928         * lib/striconv.c: Likewise.
50929         * lib/striconveh.c: Likewise.
50930         * lib/striconveha.c: Likewise.
50931         * lib/strncasecmp.c: Likewise.
50932         * lib/strndup.c: Likewise.
50933         * lib/strnlen.c: Likewise.
50934         * lib/strsep.c: Likewise.
50935         * lib/strstr.c: Likewise.
50936         * lib/strtok_r.c: Likewise.
50937         * lib/userspec.c: Likewise.
50938         * lib/w32spawn.h: Likewise.
50939         * lib/xstrndup.c: Likewise.
50940         * lib/mountlist.c (strstr): Remove decl.
50941         * m4/string_h.m4: New file.
50942         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
50943         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
50944         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
50945         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
50946         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
50947         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
50948         Set REPLACE_STRCASECMP if necessary.
50949         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
50950         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
50951         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
50952         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
50953         HAVE_DECL_STRDUP if necessary.
50954         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
50955         since gl_FUNC_STRNDUP does that now.
50956         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
50957         Check for decl here...
50958         (gl_PREREQ_STRNLEN): ... not here.
50959         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
50960         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
50961         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
50962         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
50963         necessary.
50964         * modules/string: New file.
50965         * modules/memmem (Files): Remove special-purpose include file.
50966         (Depends-on): Add string.
50967         (Include): Include <string.h>, not the removed file.
50968         * modules/mempcpy: Likewise.
50969         * modules/memrchr: Likewise.
50970         * modules/stpcpy: Likewise.
50971         * modules/stpncpy: Likewise.
50972         * modules/strcase: Likewise.
50973         * modules/strchrnul: Likewise.
50974         * modules/strdup: Likewise.
50975         * modules/strndup: Likewise.
50976         * modules/strnlen: Likewise.
50977         * modules/strpbrk: Likewise.
50978         * modules/strsep: Likewise.
50979         * modules/strstr: Likewise.
50980         * modules/strtok_r: Likewise.
50981         * tests/test-dirname.c: Don't include "strdup.h", since
50982         <string.h> now suffices.
50983         * tests/test-memmem.c: Don't include "memmem.h", since
50984         <string.h> now suffices.
50985
50986 2007-01-25  Bruno Haible  <bruno@clisp.org>
50987
50988         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
50989         *resultp is 0.
50990
50991         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
50992         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
50993         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
50994         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
50995
50996         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
50997         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
50998         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
50999         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
51000         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
51001         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
51002
51003 2007-01-24  Bruno Haible  <bruno@clisp.org>
51004
51005         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
51006         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
51007         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
51008         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
51009         gl_FUNC_FTS_CORE.
51010         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
51011         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
51012         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51013         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
51014         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
51015         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
51016         gl_FUNC_FCHOWNAT.
51017         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
51018         gl_FUNC_STRFTIME.
51019         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
51020         Reported by Ralf Wildenhues.
51021
51022 2007-01-24  Bruno Haible  <bruno@clisp.org>
51023
51024         Drop AC_REQUIRE calls that are redundant with the module dependencies.
51025         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
51026         gl_GETADDRINFO.
51027         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
51028         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
51029         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
51030
51031 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
51032
51033         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
51034         Don't use 'exit'; just return from 'main'.
51035         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
51036
51037         * lib/fnmatch_.h: Readjust white space and comments to match
51038         glibc, to avoid spurious diffs.
51039
51040 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51041
51042         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
51043         2004-12-01 change by Jakub Jelinek, since this code won't compile
51044         if !LIBC.  Problem reported by Bob Proulx.
51045
51046 2007-01-23  Bruno Haible  <bruno@clisp.org>
51047
51048         * lib/striconveh.c: Include c-strcaseeq.h.
51049         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
51050         * modules/striconveh (Depends-on): Add c-strcaseeq.
51051
51052 2007-01-23  Bruno Haible  <bruno@clisp.org>
51053
51054         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
51055
51056         * modules/c-strcaseeq: New file.
51057         * lib/c-strcaseeq.h: New file.
51058
51059         * modules/streq: New file.
51060         * lib/streq.h: New file.
51061
51062 2007-01-23  Bruno Haible  <bruno@clisp.org>
51063
51064         * modules/striconveha-tests: New file.
51065         * tests/test-striconveha.c: New file.
51066
51067         * lib/striconveha.h: Include <stdbool.h>.
51068         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
51069         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
51070         (mem_iconveha_notranslit): Renamed from mem_iconveha.
51071         (mem_iconveha): New function.
51072         (str_iconveha_notranslit): Renamed from str_iconveha.
51073         (str_iconveha): New function.
51074         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
51075         c-strcase.
51076
51077 2007-01-23  Bruno Haible  <bruno@clisp.org>
51078
51079         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
51080         encodings without forgiving before trying any encoding with handler.
51081         (str_iconveha): Try all encodings without forgiving before trying any
51082         encoding with handler.
51083
51084 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51085
51086         Import the following changes from libc.
51087
51088         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
51089
51090         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
51091
51092         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
51093
51094         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
51095         normal_bracket label.
51096
51097         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
51098
51099         [BZ #361]
51100         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
51101         to normal_bracket after fetching the next character.
51102
51103 2007-01-22  Bruno Haible  <bruno@clisp.org>
51104
51105         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
51106         argument.
51107         * lib/striconveh.c (iconv_carefully_1): New function.
51108         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
51109         argument.
51110         (str_cd_iconveh): Update.
51111         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
51112         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
51113         * tests/test-striconveh.c (MAGIC): New macro.
51114         (new_offsets): New function.
51115         (main): Test call with and without offsets.
51116
51117 2007-01-22  Bruno Haible  <bruno@clisp.org>
51118
51119         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
51120         * modules/sys_select (Makefile.am): Likewise.
51121         * modules/sys_socket (Makefile.am): Likewise.
51122         * modules/sys_time (Makefile.am): Likewise.
51123
51124 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
51125
51126         * modules/gettimeofday (License): Change from GPL to LGPL, since
51127         gettimeofday is a library function.
51128
51129 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51130
51131         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
51132
51133 2007-01-21  Bruno Haible  <bruno@clisp.org>
51134
51135         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
51136
51137 2007-01-21  Bruno Haible  <bruno@clisp.org>
51138
51139         * modules/striconveha: New file.
51140         * lib/striconveha.h: New file.
51141         * lib/striconveha.c: New file.
51142         * MODULES.html.sh (Internationalization functions): Add striconveha.
51143         * lib/striconv.c (str_iconv): Optimize the case of an empty input
51144         string.
51145         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
51146
51147 2007-01-21  Bruno Haible  <bruno@clisp.org>
51148
51149         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
51150         * lib/striconveh.c (str_iconveh): Likewise.
51151
51152 2007-01-21  Bruno Haible  <bruno@clisp.org>
51153
51154         * lib/striconveh.h (mem_iconveh): New declaration.
51155         * lib/striconveh.c (mem_iconveh): New function.
51156         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
51157
51158 2007-01-21  Bruno Haible  <bruno@clisp.org>
51159
51160         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
51161
51162         * lib/striconveh.h (mem_cd_iconveh): Change specification.
51163         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
51164         original result buffer.
51165         (str_cd_iconveh): Update.
51166         * tests/test-striconveh.c (main): Update.
51167
51168         * lib/striconv.h (mem_cd_iconv): Change specification.
51169         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
51170         result buffer.
51171         (str_cd_iconv): Update.
51172         * tests/test-striconv.c (main): Update.
51173
51174 2007-01-21  Bruno Haible  <bruno@clisp.org>
51175
51176         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
51177
51178 2007-01-20  Jim Meyering  <jim@meyering.net>
51179
51180         * lib/userspec.c (parse_with_separator): If a user or group string
51181         starts with "+", skip the corresponding name-to-ID look-up, since
51182         such a look-up must fail: user and group names may not include "+".
51183
51184 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
51185
51186         * lib/poll.c: Include sys/time.h and time.h unconditionally,
51187         since we now assume the sys_time module.
51188         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
51189         check for sys/time.h; no longer needed.
51190         * modules/poll (Depends-on): Depend on sys_time.
51191
51192 2007-01-18  Bruno Haible  <bruno@clisp.org>
51193
51194         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
51195         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
51196
51197         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
51198         gettimeofday.
51199
51200         * tests/test-gettimeofday.c: Include <time.h>.
51201         (dummy): Remove variable.
51202
51203         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
51204         gl_HEADER_SYS_TIME_H.
51205         (gl_HEADER_SYS_TIME_H): New macro.
51206
51207         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
51208         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51209         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
51210         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
51211         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51212         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
51213         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
51214         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51215         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
51216         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
51217         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51218
51219         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
51220         last change; it caused a compilation error when cross-compiling to
51221         Cygwin.
51222
51223 2007-01-18  Jim Meyering  <jim@meyering.net>
51224
51225         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
51226         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
51227         than the race-prone "test -d sys || mkdir sys".
51228         (configure.ac): Use AC_PROG_MKDIR_P.
51229         * modules/sys_select: Likewise.
51230         * modules/sys_socket: Likewise.
51231         * modules/sys_time: Likewise.
51232
51233 2007-01-18  Eric Blake  <ebb9@byu.net>
51234
51235         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
51236         replace gettimeofday.
51237         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
51238         name, to avoid infinite recursion.
51239
51240 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
51241
51242         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
51243         module sys_time.
51244         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
51245         assume timespec.h defines struct timeval.
51246         * lib/settime.c: Likewise.
51247         * lib/utimens.c: Likewise.
51248         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
51249         since we now assume the gettimeofday module.
51250         * lib/tempname.c (__gen_tempname): Likewise.
51251         * lib/gettimeofday.h: Remove.
51252         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
51253         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
51254         Include <time.h>, for 'time()'.
51255         (localtime_buffer_addr): Also use this workaround if
51256         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
51257         to simplify the uses.  All uses changed.
51258         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
51259         that #undef is inside {}, and 'const' follows type name consistently.
51260         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
51261         (gettimeofday): Do not use the maximum possible value for
51262         tv->tv_usec, since that might break usages other than ls.c.
51263         Instead, we'll leave ls.c alone.  This undoes today's patch
51264         by Bruno.  Add a compile-time warning for 1s-clock resolution;
51265         we've never observed the problem but might as well keep the
51266         canary.
51267         * lib/nanosleep.c: Include timespec.h first, for interface check.
51268         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
51269         now assume the sys_time module.
51270         * lib/tempname.c: Likewise.
51271         * lib/timespec.h: Likewise.
51272         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
51273         needed.
51274         * lib/strftime.c: Likewise.
51275         * lib/timespec.h: Likewise.
51276         * lib/posixtm.c: Include posixtm.h first, for interface check.
51277         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
51278         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
51279         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
51280         * lib/sys_time_.h: New file.
51281         * lib/timespec.h (struct timespec): Use long int, not long.
51282         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
51283         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
51284         Remove obsolescent call to AC_HEADER_TIME.
51285         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
51286         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
51287         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
51288         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
51289         Likewise.
51290         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
51291         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
51292         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
51293         into the sys_time module.  Check for gettimeofday just once.
51294         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
51295         for gettimeofday signature to just check the signature.  Merely
51296         compile it, since linking doesn't test signature.  Improve test for
51297         whether gettimeofday.o is actually needed.
51298         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
51299         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
51300         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
51301         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51302         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
51303         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
51304         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
51305         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
51306         than worrying about sys/time.h.
51307         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
51308         Don't bother worrying about TIME_WITH_SYS_TIME.
51309         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
51310         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
51311         * m4/sys_time_h.m4: New file.
51312         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
51313         Don't include sys/time.h.  Return from main rather than exiting.
51314         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
51315         all uses changed.
51316         * modules/gethrxtime (Depends-on): Add sys_time.
51317         * modules/gettime (Depends-on): Likewise.
51318         * modules/gettimeofday (Depends-on): Likewise.
51319         * modules/nanosleep (Depends-on): Likewise.
51320         * modules/settime (Depends-on): Likewise.
51321         * modules/tempname (Depends-on): Likewise.
51322         * modules/utimens (Depends-on): Likewise.
51323         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
51324         (Include:) Change back to <sys/time.h>.
51325         (Maintainer:) Add self.
51326         * modules/sys_time: New file.
51327         * modules/tempname (Depends-on): Add gettimeofday.
51328         * tests/test-gettimeofday.c: Include <sys/time.h>
51329         rather than gettimeofday.h.
51330
51331 2007-01-17  Bruno Haible  <bruno@clisp.org>
51332
51333         * gnulib-tool (func_get_license): Revert last patch. Instead, let
51334         the license default to GPL.
51335         (func_create_testdir): Don't complain if a module is LGPL and its
51336         tests module depends on GPLed modules.
51337
51338 2007-01-17  Bruno Haible  <bruno@clisp.org>
51339
51340         * lib/gettimeofday.c (gettimeofday): Add code for the case
51341         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
51342         maximum possible value for tv->tv_usec, rather than the minimum one.
51343
51344 2005-10-08  Martin Lambers  <marlam@marlam.de>
51345 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51346 2007-01-16  Bruno Haible  <bruno@clisp.org>
51347
51348         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
51349         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
51350         gl_FUNC_GETTIMEOFDAY.
51351         (Include): Add gettimeofday.h.
51352         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
51353         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
51354         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
51355         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
51356         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
51357         * lib/gettimeofday.h: New file.
51358         * lib/gettimeofday.c: Include <sys/timeb.h>.
51359         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
51360         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51361         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
51362         fall back on time().
51363
51364         * tests/test-gettimeofday.c: New file.
51365         * modules/gettimeofday-tests: New file.
51366
51367 2007-01-16  Eric Blake  <ebb9@byu.net>
51368
51369         * modules/fnmatch (Depends-on): Depend on wchar.
51370         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
51371         * m4/fnmatch.m4: Likewise.
51372         * modules/mbchar (Makefile.am): Assume <wchar.h>.
51373         * m4/mbchar.m4: Likewise.
51374         * modules/mbswidth (Depends-on): Depend on wchar.
51375         * lib/mbswidth.c: Assume <wchar.h>.
51376         * m4/mbswidth.m4: Likewise.
51377         * modules/quotearg (Depends-on): Depend on wchar.
51378         * lib/quotearg.c: Assume <wchar.h>.
51379         * m4/quotearg.m4: Likewise.
51380         * modules/regex (Depends-on): Depend on wchar.
51381         * lib/regex_internal.h: Assume <wchar.h>.
51382         * m4/regex.m4: Likewise.
51383         * modules/stdint (Depends-on): Depend on wchar.
51384         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
51385         * m4/stdint.m4: Likewise.
51386         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
51387         * modules/strftime (Depends-on): Depend on wchar.
51388         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
51389         * modules/strtol (Depends-on): Depend on wchar.
51390         * lib/strtol.c: Assume <wchar.h>.
51391         * modules/wcwidth (Depends-on): Depend on wchar.
51392         * lib/wcwidth.h: Assume <wchar.h>.
51393         * m4/wcwidth.m4: Likewise.
51394
51395 2007-01-16  Bruno Haible  <bruno@clisp.org>
51396
51397         * modules/csharpexec-script: New, created from...
51398         * modules/csharpexec: ... this.
51399
51400 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
51401
51402         * modules/javaexec-script: New, created from...
51403         * modules/javaexec: ... this.
51404
51405 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51406
51407         * modules/poll (Dependencies): Add sys_select.
51408
51409 2007-01-15  Jim Meyering  <jim@meyering.net>
51410
51411         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
51412         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
51413         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
51414         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
51415
51416 2007-01-15  Bruno Haible  <bruno@clisp.org>
51417
51418         * modules/striconveh: New file.
51419         * lib/striconveh.h: New file.
51420         * lib/striconveh.c: New file.
51421         * MODULES.html.sh (Internationalization functions): Add striconveh.
51422
51423         * modules/striconveh-tests: New file.
51424         * tests/test-striconveh.c: New file.
51425
51426 2007-01-15  Bruno Haible  <bruno@clisp.org>
51427
51428         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
51429         not from GNU libiconv or GNU libc.
51430
51431 2007-01-15  Bruno Haible  <bruno@clisp.org>
51432
51433         * doc/gnulib-intro.texi (Copyright): Explain the different license
51434         terms for module descriptions, autoconf macros, tests, documentation.
51435
51436 2007-01-14  Bruno Haible  <bruno@clisp.org>
51437
51438         * modules/striconv-tests: New file.
51439         * tests/test-striconv.c: New file.
51440
51441 2007-01-14  Bruno Haible  <bruno@clisp.org>
51442
51443         * modules/iconv-tests: New file.
51444         * tests/test-iconv.c: New file.
51445
51446 2007-01-14  Bruno Haible  <bruno@clisp.org>
51447
51448         * gnulib-tool (func_get_license): For test modules, use the license of
51449         the main module.
51450
51451 2007-01-14  Bruno Haible  <bruno@clisp.org>
51452
51453         * modules/iconv (Include): Clarify that <iconv.h> can only be included
51454         if iconv is found to exist.
51455
51456 2007-01-14  Bruno Haible  <bruno@clisp.org>
51457
51458         * modules/c-ctype-tests: New file.
51459         * tests/test-c-ctype.c: New file.
51460
51461 2007-01-14  Bruno Haible  <bruno@clisp.org>
51462
51463         * modules/binary-io-tests: New file.
51464         * tests/test-binary-io.sh: New file.
51465         * tests/test-binary-io.c: New file.
51466
51467 2007-01-14  Bruno Haible  <bruno@clisp.org>
51468
51469         * modules/array-oset-tests: New file.
51470         * tests/test-array_oset.c: New file.
51471
51472 2007-01-14  Bruno Haible  <bruno@clisp.org>
51473
51474         * modules/array-list-tests: New file.
51475         * tests/test-array_list.c: New file.
51476
51477 2007-01-14  Bruno Haible  <bruno@clisp.org>
51478
51479         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
51480         and make.
51481         Reported by Simon Josefsson in
51482         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
51483
51484 2007-01-14  Bruno Haible  <bruno@clisp.org>
51485
51486         * modules/allocsa-tests: New file.
51487         * tests/test-allocsa.c: New file.
51488
51489 2007-01-14  Bruno Haible  <bruno@clisp.org>
51490
51491         * modules/fchdir (Depends-on): Add absolute-header.
51492         * modules/unistd (Depends-on): Likewise.
51493
51494 2006-12-30  Bruno Haible  <bruno@clisp.org>
51495
51496         * modules/fchdir: New file.
51497         * modules/unistd (Files): Add lib/unistd_.h.
51498         (Makefile.am): Generate unistd.h from unistd_.h.
51499         * lib/fchdir.c: New file.
51500         * lib/dirent_.h: New file.
51501         * lib/unistd_.h: New file.
51502         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
51503         * m4/fchdir.m4: New file.
51504         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
51505         (gl_HEADER_UNISTD): Invoke it.
51506         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
51507         function.
51508         * lib/backupfile.c (opendir, closedir): Undefine.
51509         * lib/chown.c (open, close): Undefine.
51510         * lib/clean-temp.c (open, close): Undefine.
51511         * lib/copy-file.c (open, close): Undefine.
51512         * lib/execute.c (open, close): Undefine.
51513         * lib/fsusage.c (open, close): Undefine.
51514         * lib/gc-gnulib.c (open, close): Undefine.
51515         * lib/getcwd.c (opendir, closedir): Undefine.
51516         * lib/glob.c (opendir, closedir): Undefine.
51517         * lib/javacomp.c (open, close): Undefine.
51518         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
51519         * lib/openat-proc.c (open, close): Undefine.
51520         * lib/pagealign_alloc.c (open, close): Undefine.
51521         * lib/pipe.c (open, close): Undefine.
51522         * lib/progreloc.c (open, close): Undefine.
51523         * lib/savedir.c (opendir, closedir): Undefine.
51524         * lib/utime.c (open, close): Undefine.
51525         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
51526
51527 2007-01-10  Bruno Haible  <bruno@clisp.org>
51528
51529         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
51530
51531 2007-01-12  Eric Blake  <ebb9@byu.net>
51532
51533         Provide a robust <wchar.h>.  Further simplifications are now
51534         possible in other modules, but not included here.
51535         * modules/wchar: New module.
51536         * m4/wchar.m4: New file.
51537         * lib/wchar_.h: Likewise.
51538         * modules/mbchar (Depends-on): Depend on wchar, as the first use
51539         of the new module.
51540         * MODULES.html.sh (Extended multibyte and wide character utilities):
51541         New section.
51542
51543 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
51544
51545         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
51546         to a reasonable default for memory allocation.
51547         (xreadlink): Don't allocate a huge buffer, to work around a buggy
51548         file system that reports garbage st_size values for symlinks.
51549         Problem reported by Liyang Hu.
51550
51551 2007-01-11  Simon Josefsson  <simon@josefsson.org>
51552
51553         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
51554         Emacs .#* auto-save files).
51555
51556 2007-01-11  Bruno Haible  <bruno@clisp.org>
51557
51558         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
51559         directory.
51560
51561 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51562
51563         Use @...@ consistently in lib/wctype_.h.
51564         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
51565         on it being set to 1 or 0.
51566         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
51567         go back to AC_SUBSTing it.
51568         * modules/wctype (Makefile.am): Undo previous change.
51569
51570 2007-01-10  Eric Blake  <ebb9@byu.net>
51571
51572         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
51573         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
51574         * modules/wctype (Makefile.am): Likewise.
51575         Reported by Chris McGuire.
51576
51577 2007-01-10  Jim Meyering  <jim@meyering.net>
51578
51579         fts.c: a small readability/maintainability improvement
51580         * lib/fts.c (fts_read): Make this code slightly more readable and
51581         maintainable by hoisting the "sp->fts_cur = p" assignments to
51582         immediately follow the statements that set P.  Derived from
51583         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
51584
51585 2007-01-10  Eric Blake  <ebb9@byu.net>
51586
51587         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
51588         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
51589         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51590         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
51591         Reported by Chris McGuire.
51592
51593 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51594
51595         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
51596         in sed script.
51597
51598 2007-01-09  Bruno Haible  <bruno@clisp.org>
51599
51600         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
51601         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
51602         variables.
51603         (func_module): Use them.
51604
51605 2007-01-09  Bruno Haible  <bruno@clisp.org>
51606
51607         * modules/unistr/base: New file.
51608         * lib/unistr.h: New file.
51609
51610         * modules/unistr/u8-to-u16: New file.
51611         * lib/unistr/u8-to-u16.c: New file.
51612
51613         * modules/unistr/u8-to-u32: New file.
51614         * lib/unistr/u8-to-u32.c: New file.
51615
51616         * modules/unistr/u16-to-u8: New file.
51617         * lib/unistr/u16-to-u8.c: New file.
51618
51619         * modules/unistr/u16-to-u32: New file.
51620         * lib/unistr/u16-to-u32.c: New file.
51621
51622         * modules/unistr/u32-to-u8: New file.
51623         * lib/unistr/u32-to-u8.c: New file.
51624
51625         * modules/unistr/u32-to-u16: New file.
51626         * lib/unistr/u32-to-u16.c: New file.
51627
51628         * modules/unistr/u8-check: New file.
51629         * modules/unistr/u16-check: New file.
51630         * modules/unistr/u32-check: New file.
51631         * lib/unistr/u8-check.c: New file.
51632         * lib/unistr/u16-check.c: New file.
51633         * lib/unistr/u32-check.c: New file.
51634
51635         * modules/unistr/u8-chr: New file.
51636         * modules/unistr/u16-chr: New file.
51637         * modules/unistr/u32-chr: New file.
51638         * lib/unistr/u8-chr.c: New file.
51639         * lib/unistr/u16-chr.c: New file.
51640         * lib/unistr/u32-chr.c: New file.
51641
51642         * modules/unistr/u8-cmp: New file.
51643         * modules/unistr/u16-cmp: New file.
51644         * modules/unistr/u32-cmp: New file.
51645         * lib/unistr/u8-cmp.c: New file.
51646         * lib/unistr/u16-cmp.c: New file.
51647         * lib/unistr/u32-cmp.c: New file.
51648
51649         * modules/unistr/u8-cpy: New file.
51650         * modules/unistr/u16-cpy: New file.
51651         * modules/unistr/u32-cpy: New file.
51652         * lib/unistr/u8-cpy.c: New file.
51653         * lib/unistr/u16-cpy.c: New file.
51654         * lib/unistr/u32-cpy.c: New file.
51655         * lib/unistr/u-cpy.h: New file.
51656
51657         * modules/unistr/u8-cpy-alloc: New file.
51658         * modules/unistr/u16-cpy-alloc: New file.
51659         * modules/unistr/u32-cpy-alloc: New file.
51660         * lib/unistr/u8-cpy-alloc.c: New file.
51661         * lib/unistr/u16-cpy-alloc.c: New file.
51662         * lib/unistr/u32-cpy-alloc.c: New file.
51663         * lib/unistr/u-cpy-alloc.h: New file.
51664
51665         * modules/unistr/u8-endswith: New file.
51666         * modules/unistr/u16-endswith: New file.
51667         * modules/unistr/u32-endswith: New file.
51668         * lib/unistr/u8-endswith.c: New file.
51669         * lib/unistr/u16-endswith.c: New file.
51670         * lib/unistr/u32-endswith.c: New file.
51671         * lib/unistr/u-endswith.h: New file.
51672
51673         * modules/unistr/u8-mblen: New file.
51674         * modules/unistr/u16-mblen: New file.
51675         * modules/unistr/u32-mblen: New file.
51676         * lib/unistr/u8-mblen.c: New file.
51677         * lib/unistr/u16-mblen.c: New file.
51678         * lib/unistr/u32-mblen.c: New file.
51679
51680         * modules/unistr/u8-mbtouc: New file.
51681         * modules/unistr/u16-mbtouc: New file.
51682         * modules/unistr/u32-mbtouc: New file.
51683         * lib/unistr/u8-mbtouc.c: New file.
51684         * lib/unistr/u16-mbtouc.c: New file.
51685         * lib/unistr/u32-mbtouc.c: New file.
51686
51687         * modules/unistr/u8-mbtouc-safe: New file.
51688         * modules/unistr/u16-mbtouc-safe: New file.
51689         * modules/unistr/u32-mbtouc-safe: New file.
51690         * lib/unistr/u8-mbtouc-safe.c: New file.
51691         * lib/unistr/u16-mbtouc-safe.c: New file.
51692         * lib/unistr/u32-mbtouc-safe.c: New file.
51693
51694         * modules/unistr/u8-move: New file.
51695         * modules/unistr/u16-move: New file.
51696         * modules/unistr/u32-move: New file.
51697         * lib/unistr/u8-move.c: New file.
51698         * lib/unistr/u16-move.c: New file.
51699         * lib/unistr/u32-move.c: New file.
51700         * lib/unistr/u-move.h: New file.
51701
51702         * modules/unistr/u8-next: New file.
51703         * modules/unistr/u16-next: New file.
51704         * modules/unistr/u32-next: New file.
51705         * lib/unistr/u8-next.c: New file.
51706         * lib/unistr/u16-next.c: New file.
51707         * lib/unistr/u32-next.c: New file.
51708
51709         * modules/unistr/u8-prev: New file.
51710         * modules/unistr/u16-prev: New file.
51711         * modules/unistr/u32-prev: New file.
51712         * lib/unistr/u8-prev.c: New file.
51713         * lib/unistr/u16-prev.c: New file.
51714         * lib/unistr/u32-prev.c: New file.
51715
51716         * modules/unistr/u8-set: New file.
51717         * modules/unistr/u16-set: New file.
51718         * modules/unistr/u32-set: New file.
51719         * lib/unistr/u8-set.c: New file.
51720         * lib/unistr/u16-set.c: New file.
51721         * lib/unistr/u32-set.c: New file.
51722         * lib/unistr/u-set.h: New file.
51723
51724         * modules/unistr/u8-startswith: New file.
51725         * modules/unistr/u16-startswith: New file.
51726         * modules/unistr/u32-startswith: New file.
51727         * lib/unistr/u8-startswith.c: New file.
51728         * lib/unistr/u16-startswith.c: New file.
51729         * lib/unistr/u32-startswith.c: New file.
51730         * lib/unistr/u-startswith.h: New file.
51731
51732         * modules/unistr/u8-stpcpy: New file.
51733         * modules/unistr/u16-stpcpy: New file.
51734         * modules/unistr/u32-stpcpy: New file.
51735         * lib/unistr/u8-stpcpy.c: New file.
51736         * lib/unistr/u16-stpcpy.c: New file.
51737         * lib/unistr/u32-stpcpy.c: New file.
51738         * lib/unistr/u-stpcpy.h: New file.
51739
51740         * modules/unistr/u8-stpncpy: New file.
51741         * modules/unistr/u16-stpncpy: New file.
51742         * modules/unistr/u32-stpncpy: New file.
51743         * lib/unistr/u8-stpncpy.c: New file.
51744         * lib/unistr/u16-stpncpy.c: New file.
51745         * lib/unistr/u32-stpncpy.c: New file.
51746         * lib/unistr/u-stpncpy.h: New file.
51747
51748         * modules/unistr/u8-strcat: New file.
51749         * modules/unistr/u16-strcat: New file.
51750         * modules/unistr/u32-strcat: New file.
51751         * lib/unistr/u8-strcat.c: New file.
51752         * lib/unistr/u16-strcat.c: New file.
51753         * lib/unistr/u32-strcat.c: New file.
51754         * lib/unistr/u-strcat.h: New file.
51755
51756         * modules/unistr/u8-strchr: New file.
51757         * modules/unistr/u16-strchr: New file.
51758         * modules/unistr/u32-strchr: New file.
51759         * lib/unistr/u8-strchr.c: New file.
51760         * lib/unistr/u16-strchr.c: New file.
51761         * lib/unistr/u32-strchr.c: New file.
51762
51763         * modules/unistr/u8-strcmp: New file.
51764         * modules/unistr/u16-strcmp: New file.
51765         * modules/unistr/u32-strcmp: New file.
51766         * lib/unistr/u8-strcmp.c: New file.
51767         * lib/unistr/u16-strcmp.c: New file.
51768         * lib/unistr/u32-strcmp.c: New file.
51769
51770         * modules/unistr/u8-strcpy: New file.
51771         * modules/unistr/u16-strcpy: New file.
51772         * modules/unistr/u32-strcpy: New file.
51773         * lib/unistr/u8-strcpy.c: New file.
51774         * lib/unistr/u16-strcpy.c: New file.
51775         * lib/unistr/u32-strcpy.c: New file.
51776         * lib/unistr/u-strcpy.h: New file.
51777
51778         * modules/unistr/u8-strcspn: New file.
51779         * modules/unistr/u16-strcspn: New file.
51780         * modules/unistr/u32-strcspn: New file.
51781         * lib/unistr/u8-strcspn.c: New file.
51782         * lib/unistr/u16-strcspn.c: New file.
51783         * lib/unistr/u32-strcspn.c: New file.
51784         * lib/unistr/u-strcspn.h: New file.
51785
51786         * modules/unistr/u8-strdup: New file.
51787         * modules/unistr/u16-strdup: New file.
51788         * modules/unistr/u32-strdup: New file.
51789         * lib/unistr/u8-strdup.c: New file.
51790         * lib/unistr/u16-strdup.c: New file.
51791         * lib/unistr/u32-strdup.c: New file.
51792         * lib/unistr/u-strdup.h: New file.
51793
51794         * modules/unistr/u8-strlen: New file.
51795         * modules/unistr/u16-strlen: New file.
51796         * modules/unistr/u32-strlen: New file.
51797         * lib/unistr/u8-strlen.c: New file.
51798         * lib/unistr/u16-strlen.c: New file.
51799         * lib/unistr/u32-strlen.c: New file.
51800         * lib/unistr/u-strlen.h: New file.
51801
51802         * modules/unistr/u8-strmblen: New file.
51803         * modules/unistr/u16-strmblen: New file.
51804         * modules/unistr/u32-strmblen: New file.
51805         * lib/unistr/u8-strmblen.c: New file.
51806         * lib/unistr/u16-strmblen.c: New file.
51807         * lib/unistr/u32-strmblen.c: New file.
51808
51809         * modules/unistr/u8-strmbtouc: New file.
51810         * modules/unistr/u16-strmbtouc: New file.
51811         * modules/unistr/u32-strmbtouc: New file.
51812         * lib/unistr/u8-strmbtouc.c: New file.
51813         * lib/unistr/u16-strmbtouc.c: New file.
51814         * lib/unistr/u32-strmbtouc.c: New file.
51815
51816         * modules/unistr/u8-strncat: New file.
51817         * modules/unistr/u16-strncat: New file.
51818         * modules/unistr/u32-strncat: New file.
51819         * lib/unistr/u8-strncat.c: New file.
51820         * lib/unistr/u16-strncat.c: New file.
51821         * lib/unistr/u32-strncat.c: New file.
51822         * lib/unistr/u-strncat.h: New file.
51823
51824         * modules/unistr/u8-strncmp: New file.
51825         * modules/unistr/u16-strncmp: New file.
51826         * modules/unistr/u32-strncmp: New file.
51827         * lib/unistr/u8-strncmp.c: New file.
51828         * lib/unistr/u16-strncmp.c: New file.
51829         * lib/unistr/u32-strncmp.c: New file.
51830
51831         * modules/unistr/u8-strncpy: New file.
51832         * modules/unistr/u16-strncpy: New file.
51833         * modules/unistr/u32-strncpy: New file.
51834         * lib/unistr/u8-strncpy.c: New file.
51835         * lib/unistr/u16-strncpy.c: New file.
51836         * lib/unistr/u32-strncpy.c: New file.
51837         * lib/unistr/u-strncpy.h: New file.
51838
51839         * modules/unistr/u8-strnlen: New file.
51840         * modules/unistr/u16-strnlen: New file.
51841         * modules/unistr/u32-strnlen: New file.
51842         * lib/unistr/u8-strnlen.c: New file.
51843         * lib/unistr/u16-strnlen.c: New file.
51844         * lib/unistr/u32-strnlen.c: New file.
51845         * lib/unistr/u-strnlen.h: New file.
51846
51847         * modules/unistr/u8-strpbrk: New file.
51848         * modules/unistr/u16-strpbrk: New file.
51849         * modules/unistr/u32-strpbrk: New file.
51850         * lib/unistr/u8-strpbrk.c: New file.
51851         * lib/unistr/u16-strpbrk.c: New file.
51852         * lib/unistr/u32-strpbrk.c: New file.
51853         * lib/unistr/u-strpbrk.h: New file.
51854
51855         * modules/unistr/u8-strrchr: New file.
51856         * modules/unistr/u16-strrchr: New file.
51857         * modules/unistr/u32-strrchr: New file.
51858         * lib/unistr/u8-strrchr.c: New file.
51859         * lib/unistr/u16-strrchr.c: New file.
51860         * lib/unistr/u32-strrchr.c: New file.
51861
51862         * modules/unistr/u8-strspn: New file.
51863         * modules/unistr/u16-strspn: New file.
51864         * modules/unistr/u32-strspn: New file.
51865         * lib/unistr/u8-strspn.c: New file.
51866         * lib/unistr/u16-strspn.c: New file.
51867         * lib/unistr/u32-strspn.c: New file.
51868         * lib/unistr/u-strspn.h: New file.
51869
51870         * modules/unistr/u8-strstr: New file.
51871         * modules/unistr/u16-strstr: New file.
51872         * modules/unistr/u32-strstr: New file.
51873         * lib/unistr/u8-strstr.c: New file.
51874         * lib/unistr/u16-strstr.c: New file.
51875         * lib/unistr/u32-strstr.c: New file.
51876         * lib/unistr/u-strstr.h: New file.
51877
51878         * modules/unistr/u8-strtok: New file.
51879         * modules/unistr/u16-strtok: New file.
51880         * modules/unistr/u32-strtok: New file.
51881         * lib/unistr/u8-strtok.c: New file.
51882         * lib/unistr/u16-strtok.c: New file.
51883         * lib/unistr/u32-strtok.c: New file.
51884         * lib/unistr/u-strtok.h: New file.
51885
51886         * modules/unistr/u8-uctomb: New file.
51887         * modules/unistr/u16-uctomb: New file.
51888         * modules/unistr/u32-uctomb: New file.
51889         * lib/unistr/u8-uctomb.c: New file.
51890         * lib/unistr/u16-uctomb.c: New file.
51891         * lib/unistr/u32-uctomb.c: New file.
51892
51893         * MODULES.html.sh (Unicode string functions): Add the new modules.
51894
51895 2007-01-08  Bruno Haible  <bruno@clisp.org>
51896
51897         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
51898         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
51899         subdirectories.
51900
51901 2007-01-08  Karl Berry  <karl@gnu.org>
51902
51903         * doc/error.texi: mention that main() fns must set program_name
51904         when progname is used.
51905
51906 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
51907
51908         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
51909         WCTYPE_H is empty, for the benefit of builds from non-distclean
51910         directories.  Problem reported by Eric Blake in
51911         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
51912
51913 2007-01-08  Bruno Haible  <bruno@clisp.org>
51914
51915         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
51916         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
51917         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
51918         PROVIDE_CANONICALIZE_FILENAME_MODE.
51919         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
51920
51921 2007-01-08  Bruno Haible  <bruno@clisp.org>
51922
51923         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
51924         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
51925         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
51926         * lib/fts.c: Likewise.
51927         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
51928
51929 2006-12-25  Bruno Haible  <bruno@clisp.org>
51930
51931         * modules/utf8-ucs4-safe: New file.
51932         * lib/utf8-ucs4-safe.h: New file.
51933         * lib/unistr/utf8-ucs4-safe.c: New file.
51934
51935         * modules/utf16-ucs4-safe: New file.
51936         * lib/utf16-ucs4-safe.h: New file.
51937         * lib/unistr/utf16-ucs4-safe.c: New file.
51938
51939         * MODULES.html.sh (Unicode string functions): Add the new modules.
51940
51941 2007-01-08  Bruno Haible  <bruno@clisp.org>
51942
51943         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
51944         (Depends-on): Add unitypes.
51945         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
51946         (u8_mbtouc_aux): Move out to separate file.
51947         (u8_mbtouc): Use ucs4_t, uint8_t types.
51948         * lib/unistr/utf8-ucs4.c: New file.
51949
51950         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
51951         (Depends-on): Add unitypes.
51952         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
51953         (u16_mbtouc_aux): Move out to separate file.
51954         (u16_mbtouc): Use ucs4_t, uint16_t types.
51955         * lib/unistr/utf16-ucs4.c: New file.
51956
51957         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
51958         (Depends-on): Add unitypes.
51959         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
51960         (u8_uctomb_aux): Move out to separate file.
51961         (u8_uctomb): Use ucs4_t, uint8_t types.
51962         * lib/unistr/ucs4-utf8.c: New file.
51963
51964         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
51965         (Depends-on): Add unitypes.
51966         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
51967         (u16_uctomb_aux): Move out to separate file.
51968         (u16_uctomb): Use ucs4_t, uint16_t types.
51969         * lib/unistr/ucs4-utf16.c: New file.
51970
51971 2006-12-25  Bruno Haible  <bruno@clisp.org>
51972
51973         * modules/unitypes: New file.
51974         * lib/unitypes.h: New file.
51975         * MODULES.html.sh (func_all_modules): New section "Unicode string
51976         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
51977         this section. Add unitypes.
51978
51979 2007-01-08  Bruno Haible  <bruno@clisp.org>
51980
51981         Avoid variable names that conflict with those from libtool.
51982         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
51983         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
51984         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
51985         library_names_spec to acl_library_names_spec, hardcode_* to
51986         acl_hardcode_*.
51987         Reported by Ralf Wildenhues.
51988
51989 2007-01-08  Bruno Haible  <bruno@clisp.org>
51990
51991         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
51992         definition.
51993         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
51994         definition.
51995         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
51996         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
51997         definition.
51998         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
51999         definition.
52000         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
52001         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
52002         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
52003         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
52004         definition.
52005         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
52006         definition.
52007         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
52008         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
52009         GC_USE_<algorithm>.
52010         * lib/gc-libgcrypt.c: Likewise.
52011         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
52012         * modules/gc-arctwo (configure.ac): Likewise.
52013         * modules/gc-des (configure.ac): Likewise.
52014         * modules/gc-hmac-md5 (configure.ac): Likewise.
52015         * modules/gc-hmac-sha1 (configure.ac): Likewise.
52016         * modules/gc-md2 (configure.ac): Likewise.
52017         * modules/gc-md4 (configure.ac): Likewise.
52018         * modules/gc-md5 (configure.ac): Likewise.
52019         * modules/gc-random (configure.ac): Likewise.
52020         * modules/gc-rijndael (configure.ac): Likewise.
52021         * modules/gc-sha1 (configure.ac): Likewise.
52022
52023 2007-01-08  Bruno Haible  <bruno@clisp.org>
52024
52025         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
52026         macro definition.
52027         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
52028         definition.
52029         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
52030         definition.
52031         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
52032         * modules/fcntl-safer (configure.ac): Likewise.
52033         * modules/fopen-safer (configure.ac): Likewise.
52034         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
52035         GNULIB_FWRITEERROR macro definition.
52036
52037 2007-01-08  Bruno Haible  <bruno@clisp.org>
52038
52039         * m4/gnulib-common.m4: New file.
52040         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
52041         (func_get_filelist): Add m4/gnulib-common.m4.
52042
52043 2007-01-08  Bruno Haible  <bruno@clisp.org>
52044
52045         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
52046         command.
52047
52048 2007-01-08  Jim Meyering  <jim@meyering.net>
52049
52050         Use a more robust test for a "can't happen" condition.
52051         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
52052         narrowed the st_size value.  Presuming the "can't happen" condition
52053         is true, that narrowing could conceivably convert an invalid st_size
52054         value into a valid one.  Instead, use a change based on Matthew
52055         Woehlke's original patch.
52056
52057         Slight readability improvement: use an assert-like macro
52058         in place of literal "abort ()" uses.
52059         * lib/fts.c (fts_assert): Define.
52060         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
52061         Use this macro instead of a bare 'abort'.
52062
52063 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
52064
52065         Don't worry about using IRIX 5.3's wctype.h broken definitions;
52066         simply work around them.
52067         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
52068         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
52069         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
52070         declaring.
52071         Don't bother to define as macros, since the standard doesn't require it.
52072         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
52073         longer worry about IRIX 5.3.
52074         (HAVE_WCTYPE_CTMP_BUG): Remove.
52075
52076 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52077
52078         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
52079         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
52080         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
52081         Problems reported by Georg Schwarz for IRIX 5.3.
52082
52083         * gnulib-tool (autoconf_minversion): Take the maximum version number
52084         found, not the minimum.  Problem reported by James Youngman.
52085
52086 2007-01-03  Karl Berry  <karl@gnu.org>
52087
52088         * doc/error.texi: new file, explaining interaction with progname.
52089         * doc/gnulib.texi: include it.  Update copyright.
52090
52091 2007-01-03  Simon Josefsson  <simon@josefsson.org>
52092
52093         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
52094         AC_CANONICAL_HOST, to improve autobuild outputs.
52095
52096 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
52097             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52098
52099         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
52100         sockets, server sockets, and other file descriptors.  Count errors
52101         to compute the return value.  Reorder the code a bit to be easier
52102         to follow.  Don't set event bits that were not requested (except
52103         POLLERR and POLLHUP).
52104
52105 2007-01-01  Bruno Haible  <bruno@clisp.org>
52106
52107         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
52108
52109 2007-01-03  Jim Meyering  <jim@meyering.net>
52110
52111         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
52112
52113 2007-01-02  Bruno Haible  <bruno@clisp.org>
52114
52115         * modules/settime (Include): Require timespec.h.
52116         * modules/nanosleep (Include): Likewise.
52117
52118 2007-01-01  Bruno Haible  <bruno@clisp.org>
52119
52120         * gnulib-tool (func_emit_copyright_notice): Bump year.
52121         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
52122
52123 2007-01-01  Bruno Haible  <bruno@clisp.org>
52124
52125         Improve support for OpenBSD.
52126         * build-aux/config.rpath (libname_spec): Export.
52127         (library_names_spec): New variable. Export.
52128         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
52129         library_names_spec from the config.rpath output. Locate shared library
52130         through the name pattern in library_names_spec.
52131
52132 2007-01-01  Eric Blake  <ebb9@byu.net>
52133
52134         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
52135
52136 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
52137
52138         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
52139         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
52140         assume the C locale, and avoid an "eval" that could cause trouble.
52141         Problem with SORT reported by Bob Proulx.
52142
52143         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
52144         Define.  Trivial patch from Henning Nielsen Lund, originally
52145         sent to bug-grep@gnu.org today.
52146
52147 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52148
52149         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
52150         struct stat.  Problem reported by Henning Nielsen Lund.
52151         * lib/acl.c: Include acl.h first, to check interface.  Don't
52152         bother to include sys/types.h and sys/stat.h again.
52153
52154 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52155
52156         Import the following change from libc; problem reported by
52157         Sven Verdoolaege.
52158
52159         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
52160
52161         [BZ #1373]
52162         * lib/argp.h: Remove __NTH for __argp_usage inline function.
52163
52164 2006-12-28  Jim Meyering  <jim@meyering.net>
52165
52166         * build-aux/announce-gen: Do not assume that the package
52167         builds any of tar.gz, tar.bz2, and .xdelta files.
52168         Suggestion from Simon Josefsson.
52169
52170 2006-12-28  Simon Josefsson  <simon@josefsson.org>
52171
52172         * modules/announce-gen: New file.
52173
52174 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
52175
52176         * lib/mbchar.h: Just include <wctype.h>; the wctype module
52177         handles its gotchas now.
52178         * lib/mbswidth.c: Likewise.
52179         * lib/wcwidth.h: Likewise.
52180         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
52181         and iswcntrl; the wctype module does this stuff now.
52182         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52183         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52184         * modules/mbchar (Depends-on): Add wctype.
52185         * modules/mbswidth (Depends-on): Likewise.
52186         * modules/wcwidth (Depends-on): Likewise.
52187
52188 2006-12-27  Eric Blake  <ebb9@byu.net>
52189
52190         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
52191         module uses more than what <wctype.h> is required to provide.
52192
52193 2006-12-26  Eric Blake  <ebb9@byu.net>
52194
52195         * gnulib-tool (sed_extract_prog): Avoid space-tab.
52196
52197 2006-12-26  Eric Blake  <ebb9@byu.net>
52198
52199         * modules/absolute-header: New module.
52200         * modules/fcntl (Depends-on): Depend on it.
52201         * modules/inttypes (Depends-on): Likewise.
52202         * modules/stdint (Depends-on): Likewise.
52203         * modules/sys_stat (Depends-on): Likewise.
52204         * modules/wctype (Depends-on): Likewise.
52205         * MODULES.html.sh (Support for building libraries and
52206         executables): Document it.
52207
52208 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52209
52210         * gnulib-tool (SED): Remove, undoing previous change.
52211         The problem was that it broke coreutils on Solaris, because
52212         "sed --posix" leaked into a makefile.
52213         (sed): New alias, if 'alias' and GNU sed.
52214
52215 2006-12-24  Jim Meyering  <jim@meyering.net>
52216
52217         Work around an fchownat bug in glibc-2.4:
52218         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
52219         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
52220         in spite of the -P option.
52221         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
52222         New macros.
52223         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
52224         * modules/openat (Files): Add lib/fchownat.c.
52225         * lib/openat.c (fchownat): Don't define here.  Move to...
52226         * lib/fchownat.c: ...this new file.
52227
52228 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52229
52230         Fix bug reported by Bruno Haible in
52231         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
52232         where quotearg.c didn't compile on Mac OS X 10.2 because it
52233         lacks <wchar.h> and wint_t.
52234         * lib/wctype_.h (__wctype_wint_t): New type.
52235         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
52236         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
52237         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
52238         Arg is now of type __wctype_wint_t, not wint_t.
52239         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
52240         substitute HAVE_WINT_T.
52241         * modules/wctype (Files): Add m4/wint_t.m4.
52242         (wctype.h): Substitute HAVE_WINT_T.
52243
52244 2006-12-23  Bruno Haible  <bruno@clisp.org>
52245
52246         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
52247
52248 2006-12-23  Bruno Haible  <bruno@clisp.org>
52249
52250         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
52251         S_ISLNK.
52252         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
52253         mingw.
52254
52255 2006-12-22  Bruno Haible  <bruno@clisp.org>
52256
52257         * lib/copy-file.c: Include acl.h.
52258         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
52259         Close the file descriptors only after being done with copy_acl.
52260         * modules/copy-file (Depends-on): Add acl.
52261
52262 2006-12-22  Bruno Haible  <bruno@clisp.org>
52263
52264         * gnulib-tool (SED): New variable.
52265         Use $SED instead of sed everywhere.
52266
52267 2006-12-22  Bruno Haible  <bruno@clisp.org>
52268
52269         * modules/no-c++: New file.
52270         * m4/no-c++.m4: New file.
52271         * MODULES.html.sh (Support for building libraries and executables):
52272         Add no-c++.
52273
52274 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
52275
52276         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
52277         Include <limits.h>, and use its INT_MAX to rewrite the
52278         j loop so that it does not overflow 'int'.  Problem reported by
52279         Ralf Wildenhues in
52280         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
52281         Play it safe by shifting left by 1 rather than multiplying by 2,
52282         as GCC is less likely to optimize this away when the value
52283         is signed (when it assumes overflow leads to undefined behavior).
52284         Also, don't assume time_t uses two's complement.
52285
52286 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
52287
52288         * MODULES.html.sh: New module wctype.
52289         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
52290         * lib/fnmatch.c: Don't bother to include <wchar.h> before
52291         <wctype.h>, since the new wctype module should fix this.
52292         * lib/quotearg.c: Include <wctype.h> unconditionally, since
52293         the wctype module should arrange for it.
52294         * lib/regex_internal.h: Likewise.
52295         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
52296         since the wctype module should handle this now.
52297         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
52298         * modules/fnmatch (Depends-on): Add wctype.
52299         * modules/quotearg (Depends-on): Likewise.
52300         * modules/regex (Depends-on): Likewise.
52301
52302 2006-12-19  Bruno Haible  <bruno@clisp.org>
52303
52304         * lib/strdup.h [C++]: Wrap definitions in extern "C".
52305         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
52306
52307 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52308
52309         * modules/savewd (Depends-on): Fix dependency on fcntl.
52310
52311 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52312
52313         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
52314         conforms to C99, rather than relying on the user's environment
52315         setting of STDINT_H.
52316
52317 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52318         and Eric Blake  <ebb9@byu.net>
52319
52320         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
52321         This is more consistent with the other defines here.
52322         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
52323         Port to z/OS.  Problem reported by Paul Gilmartin.
52324         Change local vars to use gl_ prefix rather than ac_.
52325         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
52326         with other defines.
52327         * modules/double-slash-root: New module.
52328         * modules/dirname (Files): Remove m4/double-slash-root.m4.
52329         (Depends-on): Add double-slash-root.
52330         * MODULES.html.sh (File system functions): Mention new module.
52331
52332 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
52333
52334         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
52335         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
52336         This is for the benefit of gzip, which doesn't do i18n.
52337
52338 2006-12-12  Jim Meyering  <jim@meyering.net>
52339
52340         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
52341         Reported by Andreas Schwab <schwab@suse.de>.
52342
52343 2006-12-12  Bruno Haible  <bruno@clisp.org>
52344
52345         Merge these changes.
52346         2006-09-05  Bruno Haible  <bruno@clisp.org>
52347         * lib/iconvme.c (iconv_string): No need to save and restore errno when
52348         iconv_alloc succeeded.
52349         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
52350         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
52351         test for " && dest " at the end - dest is always != NULL there. Call
52352         iconv with 4xNULL arguments initially, to reset the state. Call iconv
52353         with 2xNULL arguments, also to flush the state storage. Handle the
52354         IRIX iconv behaviour. Realloc the final result, to throw away unused
52355         memory.
52356
52357 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
52358
52359         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
52360         and fchmodat unconditionally, since glibc 2.4 has them.
52361         Problem reported by Arkadiusz Miskiewicz.
52362
52363 2006-12-10  Bruno Haible  <bruno@clisp.org>
52364
52365         * gnulib-tool (func_import): Show the include files only for those
52366         modules that are copied and specified.
52367         Reported by Karl Berry.
52368
52369 2006-12-08  Jim Meyering  <jim@meyering.net>
52370
52371         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
52372         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
52373
52374         * build-aux/announce-gen: Add two new options, both optional:
52375         --bootstrap-tools=TOOL_LIST
52376               a comma-separated list of tools, e.g.,
52377               autoconf,automake,bison,gnulib
52378         --gnulib-snapshot-date=DATE
52379               if gnulib is in the bootstrap tool list,
52380               then report this as the snapshot date.
52381               If not specified, use the current date/time.
52382               If you specify a date here, be sure it's UTC.
52383
52384 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52385
52386         * tests/test-argp-2.sh: Fix test to match actual output.
52387         (func_compare): Fix sed script to be portable.
52388
52389 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
52390
52391         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
52392         workaround for this case.  It is not autoconfigured now; offhand
52393         it's hard to see how to autoconfigure it.
52394
52395 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
52396
52397         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
52398         a directory that is about to be chowned.  Such a directory's
52399         initial file permissions should permit the owner only and this
52400         should not be changed until after the chown, since the group and
52401         other bits would be incorrect if they granted permission before
52402         the chown.
52403
52404         Fix porting problem for iswctype reported by Georg Schwarz in:
52405         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
52406         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
52407         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
52408         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
52409         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52410
52411 2006-12-03  Jim Meyering  <jim@meyering.net>
52412
52413         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
52414         p->fts_statp may not yet be defined.
52415         (fts_read): Instead, set it in the caller, once p->fts_statp is
52416         sure to be defined, and corresponds to a top-level directory.
52417         This bug made du -x fail.  Here's the coreutils test case:
52418         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
52419         Reported by Mike Frysinger.
52420
52421 2006-12-01  Jim Meyering  <jim@meyering.net>
52422
52423         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
52424         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
52425         Reported by Simon Josefsson.
52426
52427 2006-11-30  Jim Meyering  <jim@meyering.net>
52428
52429         * m4/warning.m4: Use the all-permissive copyright notice
52430         recommended by RMS (rather than LGPL).
52431         * m4/vararrays.m4: Likewise.
52432         * m4/flexmember.m4: Likewise.
52433
52434 2006-11-29  Bruno Haible  <bruno@clisp.org>
52435
52436         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
52437         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
52438         using +=.
52439         Reported by Simon Josefsson <simon@josefsson.org>.
52440
52441 2006-11-28  James Youngman <jay@gnu.org>
52442
52443         * README: Advise users that they might find the bug-gnulib@gnu.org
52444         and autotools-announce@gnu.org mailing lists useful.
52445
52446 2006-11-28  Bruno Haible  <bruno@clisp.org>
52447
52448         * m4/ptrdiff_max.m4: Remove file.
52449
52450 2006-11-21  Bruno Haible  <bruno@clisp.org>
52451
52452         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
52453         _AC_COMPUTE_INT.
52454         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
52455         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
52456         _AC_COMPUTE_INT.
52457         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
52458         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
52459         _AC_COMPUTE_INT.
52460         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
52461
52462 2006-11-28  Jim Meyering  <jim@meyering.net>
52463
52464         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
52465         warning from "gcc -Wshadow" about shadowing the builtin.
52466
52467 2006-11-27  Bruno Haible  <bruno@clisp.org>
52468
52469         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
52470         _AC_COMPUTE_INT.
52471         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
52472
52473 2006-11-27  Bruno Haible  <bruno@clisp.org>
52474             Paul Eggert  <eggert@cs.ucla.edu>
52475
52476         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
52477
52478 2006-11-26  Bruno Haible  <bruno@clisp.org>
52479
52480         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
52481         noinst_LTLIBRARIES.
52482
52483 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
52484             Bruno Haible  <bruno@clisp.org>
52485
52486         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
52487         if compiling with "gcc -ansi".
52488
52489 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
52490
52491         Fix some incompatibilities with gcc -ansi -pedantic.
52492         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
52493         if compiling pedantically with GCC, unless it's C99 or later.
52494         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
52495         it mishandles gcc -ansi -pedantic as well.
52496         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
52497         if gcc -pedantic.
52498         * lib/regexec.c (check_node_accept_bytes): Don't use auto
52499         initializers for struct if -pedantic, unless it's C99 or later.
52500
52501 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
52502
52503         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
52504         Don't close an fd more than once. Identical atimes indicate
52505         success, not failure.
52506
52507 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
52508
52509         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
52510
52511 2006-11-23  Jim Meyering  <jim@meyering.net>
52512
52513         * build-aux/announce-gen: New file.  From coreutils.
52514
52515 2006-11-22  Jim Meyering  <jim@meyering.net>
52516
52517         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
52518         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
52519         (fts_read): Use a temporary to narrow the overused st_size member
52520         before using it in a switch statement.  Reported by Matthew Woehlke.
52521
52522         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
52523         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
52524
52525 2006-11-20  Bruno Haible  <bruno@clisp.org>
52526
52527         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
52528         changequote instead of pairs of brackets.
52529         Reported by Andreas Schwab <schwab@suse.de>.
52530
52531 2006-11-21  Jim Meyering  <jim@meyering.net>
52532
52533         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
52534         so as to remain compatible with older compilers.
52535         Patch from Michael Deutschmann.
52536
52537 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
52538
52539         * MODULES.html.sh (File system functions): Add openat.
52540
52541         * lib/openat.h (rpl_fstatat): New macro, if
52542         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
52543         (fstatat): Define to rpl_fstatat under the same conditions,
52544         unless COMPILING_FSTATAT.
52545         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
52546         seems to have the bug.
52547         * lib/fstatat.c: New file.
52548         * modules/openat (Files): Add it.
52549
52550 2006-11-20  Bruno Haible  <bruno@clisp.org>
52551
52552         * Makefile: New file.
52553
52554 2006-11-20  Jim Meyering  <jim@meyering.net>
52555
52556         The beginnings of syntax-related checks for gnulib.
52557         * lib/Makefile: New file.
52558         * lib/t-idcache: New script.  Ensure that the two halves of
52559         idcache.c stay in sync.
52560
52561         * lib/idcache.c: Adjust comments in user- and group- portions to
52562         be more accurate, and to be consistent with one another.
52563
52564 2006-11-20  Jim Meyering  <jim@meyering.net>
52565
52566         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
52567         continue using the flexible array member (thus, this module performs
52568         half as many malloc calls), with the addition that...
52569         (getgroup, getuser): Consistently record a non-match via an empty
52570         "name" string, and map an empty string match to a NULL return value.
52571         * modules/idcache (Depends-on): Re-add flexmember.
52572
52573         * lib/idcache.c (getuser): Remove all uses of the register keyword.
52574         (getuidbyname, getgroup, getgidbyname): Likewise.
52575
52576         Use cleaner syntax: NULL rather than 0.
52577         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
52578
52579 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
52580
52581         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
52582         It mishandled the case where the group was missing.
52583         Problem reported by Greg Schafer.
52584         * modules/idcache: Likewise.
52585
52586 2006-11-18  Jim Meyering  <jim@meyering.net>
52587
52588         * check-module (%exempt_header): Add exception for some
52589         conditionally-included headers.
52590
52591         * modules/i-ring (Depends-on): Add verify.
52592         (License): Change to LGPL.
52593
52594 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52595
52596         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
52597         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
52598         and inttostr.h.  Use snprintf rather than uinttostr, so that
52599         LGPLed code doesn't depend on GPLed.
52600
52601 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
52602
52603         * modules/inline (License): Change from GPL to LGPL.
52604
52605 2006-11-17  Jim Meyering  <jim@meyering.net>
52606
52607         * modules/d-type (License): Switch to LGPL.
52608
52609 2006-11-15  Bruno Haible  <bruno@clisp.org>
52610
52611         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
52612
52613 2006-11-15  Eric Blake  <ebb9@byu.net>
52614
52615         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
52616         the module dependency.
52617
52618 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52619             Bruno Haible  <bruno@clisp.org>
52620
52621         * gnulib-tool (func_create_testdir): Add license consistency check.
52622
52623 2006-11-15  Eric Blake  <ebb9@byu.net>
52624
52625         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
52626         random "(cached)" in configure output.
52627
52628 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52629
52630         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
52631         test for conforming inttypes.h is both announced and cached.
52632
52633         * MODULES.html.sh (seen_modules, seen_files): New variables.
52634         (func_module): Rewrite to use a few less gnulib-tool and sed
52635         invocations.  Avoid a couple of quadratic algorithms for ...
52636         (missed_modules, missed_files): ... these, with ...
52637         (func_append, func_tmpdir): ... these new functions, from
52638         gnulib-tool.  Analogously, install traps for cleanup.
52639
52640         * tests/test-gc.c (main): Remove unused variables.
52641         * tests/test-read-file.c: Include stdlib.h, for 'free'.
52642
52643 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
52644
52645         * modules/inttostr (License): Change to LGPL.
52646
52647 2006-11-14  Eric Blake  <ebb9@byu.net>
52648
52649         * modules/tempname (License): Change to LGPL.
52650
52651 2006-11-14  Eric Blake  <ebb9@byu.net>
52652
52653         * doc/functions.texi (Function Portability): *printf functions on
52654         Cygwin now understand all POSIX size specifiers.
52655
52656 2006-11-14  Bruno Haible  <bruno@clisp.org>
52657
52658         * modules/c-ctype (License): Change to LGPL.
52659
52660 2006-11-12  Bruno Haible  <bruno@clisp.org>
52661
52662         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52663         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
52664         for GNOME libraries, for which the include files are installed in
52665         subdirectories of $prefix/include.
52666
52667 2006-11-12  Bruno Haible  <bruno@clisp.org>
52668
52669         * m4/lib-link.m4: Require at least autoconf-2.54.
52670         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
52671         name to underscores for the --with option.
52672
52673 2006-11-13  Bruno Haible  <bruno@clisp.org>
52674
52675         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
52676         the tests directory.
52677         Reported by Ralf Wildenhues.
52678
52679 2006-11-13  Bruno Haible  <bruno@clisp.org>
52680
52681         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
52682         (func_emit_initmacro_end): Undo the override here.
52683         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
52684         Works around the famous automake error in coreutils.
52685
52686 2006-11-13  Eric Blake  <ebb9@byu.net>
52687
52688         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
52689         element, not its node.
52690
52691 2006-11-12  Bruno Haible  <bruno@clisp.org>
52692
52693         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
52694         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
52695
52696 2006-11-12  Bruno Haible  <bruno@clisp.org>
52697
52698         * gnulib-tool: New option --local-symlink.
52699         (func_usage): Document it.
52700         (lsymbolic): New variable.
52701         (func_import, func_create_testdir): If --symlink was not specified,
52702         test whether --local-symlink was specified and the file comes from
52703         the local_gnulib_dir.
52704
52705 2006-11-12  Bruno Haible  <bruno@clisp.org>
52706
52707         * gnulib-tool (func_ln): New function.
52708         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
52709
52710 2006-11-12  Bruno Haible  <bruno@clisp.org>
52711
52712         Finish support for source files in subdirectories.
52713         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
52714         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
52715         AUTOMAKE_OPTIONS.
52716         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
52717
52718 2006-11-12  Bruno Haible  <bruno@clisp.org>
52719
52720         * gnulib-tool (func_get_automake_snippet): Synthesize also an
52721         EXTRA_lib_SOURCES augmentation.
52722         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
52723
52724 2006-11-12  Jim Meyering  <jim@meyering.net>
52725
52726         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
52727         file descriptors.  This also averts a failure on systems with
52728         native openat support when a traversed directory lacks "x" access.
52729         * lib/fts_.h: Include "i-ring.h"
52730         (struct FTS) [fts_fd_ring]: New member.
52731         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
52732         (FCHDIR): Add parentheses.
52733         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
52734         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
52735         When descending, rather than simply closing the previous
52736         fts_cwd_fd value, push that file descriptor onto the ring.
52737         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
52738         (fts_open): Initialize the new fd_ring member.
52739         (fts_close): Clear the ring.
52740         (fts_safe_changedir): When possible, use our new fd_ring to skip
52741         the diropen and fstat and dev/ino comparison that would normally
52742         accompany a virtual `chdir ("..")'.
52743
52744         * modules/fts (Depends-on): Add i-ring.
52745         * modules/i-ring: New module.
52746         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
52747         * m4/i-ring.m4: New file.
52748
52749 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52750
52751         * gnulib-tool (func_create_testdir): Fix replacement of
52752         `build-aux' in configure.ac.  Run autotools in gltests
52753         subdirectory.
52754         (func_create_testdir, func_create_megatestdir, test): There is
52755         no need for '--force' in most autotool invocations in a new
52756         tree.  Actually fail the whole test if any of the tools, or the
52757         configure or make stages fail.
52758
52759         Sync from Automake.
52760         * build-aux/gnupload: Revert last change.  Add pointer to upload
52761         instructions of the GNU Maintenance Instructions.
52762         Suggestion by Karl Berry.
52763
52764 2006-11-10  Jim Meyering  <jim@meyering.net>
52765
52766         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
52767
52768 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52769
52770         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
52771         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
52772         (bind_textdomain_codeset) [! ENABLE_NLS]:
52773         Evaluate all the arguments.  That way, callers get compatible behavior
52774         if the arguments have side effects.  Also, it avoids some GCC
52775         diagnostics in some cases; Joel E. Denny reported problems when Bison
52776         was configured with --enable-gcc-warnigs.
52777
52778 2006-11-10  Jim Meyering  <jim@meyering.net>
52779
52780         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
52781         relevant options in CFLAGS (like -O, -fno-inline) are taken into
52782         account.
52783
52784 2006-11-10  Jim Meyering  <jim@meyering.net>
52785
52786         * modules/inline: New file/module.
52787         * modules/xalloc (Files): Remove m4/inline.m4.
52788         (Depends-on): Add inline, instead.
52789         * modules/oset: Likewise.
52790         * modules/list: Likewise.
52791
52792 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52793
52794         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
52795         Problem reported by Matthew Woehlke.
52796
52797 2006-11-09  Bruno Haible  <bruno@clisp.org>
52798
52799         * lib/tempname.c (gen_tempname): Remove variant that invokes
52800         __gen_tempname.
52801         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
52802         __gen_tempname.
52803
52804 2006-11-08  Bruno Haible  <bruno@clisp.org>
52805
52806         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
52807         to 'yes' instead of 'cross-compiling'.
52808
52809 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
52810
52811         * lib/quotearg.h (quotearg_free): New decl.
52812         * lib/quotearg.c (quotearg_free): New function.
52813         (slot0, nslots, slotvec0, slotvec):
52814         Now file-scope so that quotearg_free can get at them.
52815
52816 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52817
52818         Sync from Automake.
52819         * build-aux/gnupload: Add missing 'gnu' to example URL.
52820         Report by Karl Berry.
52821
52822 2006-11-08  Bruno Haible  <bruno@clisp.org>
52823
52824         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
52825         Suggested by Paul Eggert.
52826
52827 2006-11-08  Jim Meyering  <jim@meyering.net>
52828
52829         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
52830         It's already included if !_LIBC.
52831         (fts_safe_changedir): Add a comment.
52832
52833 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
52834
52835         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
52836         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
52837         Matthew Woehlke.
52838
52839         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
52840         definitions up, to avoid colliding with change below.
52841         (static_inline) [HAVE_INLINE]: New macro.
52842         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
52843         Provide extern decls when !HAVE_INLINE.  Do not define unless
52844         static_inline is defined, either by us or by xmalloc.c.  Use
52845         static_inline rather than static inline.
52846         (XCALLOC): Optimize sizeof(T) = 1 case.
52847         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
52848
52849 2006-11-07  Bruno Haible  <bruno@clisp.org>
52850
52851         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
52852         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
52853         AC_C_INLINE.
52854         * modules/xalloc (Files): Add m4/inline.m4.
52855
52856 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52857
52858         * README: Fix typo.
52859         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
52860         (Miscellanous Notes): ...from this.
52861
52862 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
52863
52864         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
52865         Mention that offsetof should be used instead of sizeof.
52866         From Bruno Haible.
52867
52868 2006-11-07  Bruno Haible  <bruno@clisp.org>
52869
52870         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
52871
52872 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
52873
52874         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
52875         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
52876         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
52877         (gl_tree_add_before, gl_tree_add_after):
52878         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
52879         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
52880         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
52881         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
52882         (gl_linked_add_after, gl_linked_add_at): Likewise.
52883         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
52884         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
52885         (gl_tree_add_before, gl_tree_add_after): Likewise.
52886         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
52887         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
52888         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
52889
52890 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52891
52892         * lib/gl_oset.h: Use C comment style, not C++ comment style.
52893
52894 2006-11-06  Bruno Haible  <bruno@clisp.org>
52895
52896         * m4/inline.m4: New file.
52897         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
52898         * modules/list (Files): Add m4/inline.m4.
52899         * modules/oset (Files): Likewise.
52900
52901 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
52902
52903         * lib/idcache.c: Include <stddef.h>, for offsetof.
52904         (struct userid.name): Change from char * to a flexible array member.
52905         All uses changed.
52906         * modules/idcache (Depends-on): Add flexmember.
52907
52908         * MODULES.html.sh (Core language properties): New module flexmember.
52909         * modules/flexmember, m4/flexmember.m4: New files.
52910
52911         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
52912         inline functions that are identical with the old xnmalloc_inline,
52913         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
52914         that we can avoid some unnecessary integer multiplications and
52915         divisions in the common case where the element size is known at
52916         compile time.
52917         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
52918         needed.
52919         (xnboundedmalloc): Remove.
52920         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
52921         arguments, for consistency with rest of this header.
52922         (xcharalloc): Rewrite using XNMALLOC.
52923         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
52924         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
52925         versions have been moved to lib/xalloc.h and renamed to be the
52926         non-*_inline versions.
52927         (xmalloc, xrealloc): Implement without reference to the xnmalloc
52928         and xnrealloc functions, since those functions are now inline and
52929         now call us.
52930         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
52931         renaming described above.
52932         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
52933         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
52934         captures the dependency in AC_C_INLINE.
52935
52936         New module canonicalize-lgpl, proposed by Charles Wilson in
52937         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
52938         with a few small changes afterwards.
52939         * MODULES.html.sh (File system functions): New module
52940         canonicalize-lgpl.
52941         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
52942         and canonicalize_file_name.
52943         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
52944         * modules/canonicalize-lgpl: New files.
52945
52946 2006-11-05  Bruno Haible  <bruno@clisp.org>
52947
52948         * gnulib-tool (func_import, func_create_testdir): Create directories
52949         also for files in subdirectories of lib/.
52950
52951 2006-11-05  Bruno Haible  <bruno@clisp.org>
52952
52953         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
52954         ANSI C compliant.
52955
52956 2006-11-03  Bruno Haible  <bruno@clisp.org>
52957
52958         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
52959         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
52960         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
52961         (xnboundedmalloc): New inline function.
52962         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
52963         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
52964         xmalloc.
52965         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
52966         xmalloc.
52967         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
52968         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
52969         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
52970         xmalloc.
52971         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
52972         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
52973         xmalloc.
52974         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
52975         gl_tree_add_after): Use XMALLOC instead of xmalloc.
52976         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
52977         xmalloc.
52978         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
52979         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
52980         gl_tree_add_after): Use XMALLOC instead of xmalloc.
52981         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
52982         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
52983         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
52984         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
52985
52986 2006-11-03  Bruno Haible  <bruno@clisp.org>
52987
52988         * lib/c-ctype.h [C++]: Define functions without name mangling.
52989         * lib/fwriteerror.h [C++]: Likewise.
52990         * lib/gcd.h [C++]: Likewise.
52991         * lib/linebreak.h [C++]: Likewise.
52992
52993 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
52994
52995         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
52996         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
52997         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
52998         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
52999         Check for functions and headers just once.
53000         Check for declaration of canonicalize_file_name.
53001         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
53002
53003 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
53004
53005         * gnulib-tool (func_import): Fix typo in actioncmd.
53006
53007 2006-11-02  Bruno Haible  <bruno@clisp.org>
53008
53009         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
53010         newline sequence in the Makefile.am snippet as a space, like "make"
53011         does.
53012         Reported by Roger Persson <perrog@gmail.com>.
53013
53014 2006-11-01  Bruno Haible  <bruno@clisp.org>
53015
53016         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
53017         already declared in <string.h>.
53018         * lib/strcase.h (strncasecmp): Don't declare it if yes.
53019
53020 2006-11-01  Bruno Haible  <bruno@clisp.org>
53021
53022         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
53023         * lib/strcase.h: Include <string.h>.
53024         (strcasecmp): Define to rpl_strcasecmp here.
53025
53026 2006-11-01  Bruno Haible  <bruno@clisp.org>
53027
53028         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
53029
53030 2006-11-01  Eric Blake  <ebb9@byu.net>
53031
53032         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
53033
53034         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
53035
53036 2006-10-29  Bruno Haible  <bruno@clisp.org>
53037
53038         Make it compile in C++ mode.
53039         * lib/full-write.c (full_rw): Add a cast.
53040
53041 2006-11-01  Bruno Haible  <bruno@clisp.org>
53042
53043         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
53044         be POSIX compliant.
53045         Reported by Roger Persson <perrog@gmail.com>.
53046
53047 2006-11-01  Eric Blake  <ebb9@byu.net>
53048
53049         * lib/getopt_.h: Fix comments.
53050
53051 2006-10-31  Eric Blake  <ebb9@byu.net>
53052
53053         * modules/tmpdir (Depends-on): Add sys_stat.
53054         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
53055         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
53056         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
53057         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
53058         tempname.
53059
53060 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
53061
53062         Avoid some C++ diagnostics reported by Bruno Haible.
53063         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
53064         xmalloc.
53065         (quotearg_alloc): Use xcharalloc rather than xmalloc.
53066         (struct slotvec): Move to top level.
53067         (quotearg_n_options): Rewrite to avoid xmalloc.
53068         * lib/xalloc.h (xcharalloc): New function.
53069         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
53070         [defined __cplusplus]: Add function template that provides result
53071         type propagation.  This part of the change is from Bruno Haible.
53072
53073 2006-10-29  Bruno Haible  <bruno@clisp.org>
53074
53075         Make it compile in C++ mode.
53076         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
53077         * lib/strnlen1.c (strnlen1): Cast memchr result.
53078         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
53079         * lib/clean-temp.c (string_equals, string_hash): Add casts.
53080         (create_temp_dir): Rename local variable 'template'.
53081         (compile_csharp_using_sscli): Add cast.
53082         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
53083         * lib/findprog.c (find_in_path): Likewise.
53084         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
53085         * lib/wait-process.c (register_slave_subprocess): Likewise.
53086
53087 2006-10-22  Bruno Haible  <bruno@clisp.org>
53088
53089         * modules/tsearch: New file.
53090         * lib/tsearch.h: New file.
53091         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
53092         * m4/tsearch.m4: New file.
53093         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
53094
53095 2006-10-29  Eric Blake  <ebb9@byu.net>
53096
53097         * lib/arcfour.c: Assume config.h.
53098         * lib/arctwo.c: Likewise.
53099         * lib/base64.c: Likewise.
53100         * lib/check-version.c: Likewise.
53101         * lib/crc.c: Likewise.
53102         * lib/des.c: Likewise.
53103         * lib/gc-gnulib.c: Likewise.
53104         * lib/gc-libgcrypt.c: Likewise.
53105         * lib/gc-pbkdf2-sha1.c: Likewise.
53106         * lib/getaddrinfo.c: Likewise.
53107         * lib/getdelim.c: Likewise.
53108         * lib/getline.c: Likewise.
53109         * lib/hmac-md5.c: Likewise.
53110         * lib/hmac-sha1.c: Likewise.
53111         * lib/iconvme.c: Likewise.
53112         * lib/md2.c: Likewise.
53113         * lib/md4.c: Likewise.
53114         * lib/memxor.c: Likewise.
53115         * lib/read-file.c: Likewise.
53116         * lib/readline.c: Likewise.
53117         * lib/rijndael-alg-fst.c: Likewise.
53118         * lib/rijndael-api-fst.c: Likewise.
53119         * lib/xgetdomainname.c: Likewise.
53120
53121 2006-10-28  Eric Blake  <ebb9@byu.net>
53122
53123         * lib/xstrndup.c: Assume config.h.
53124
53125 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
53126
53127         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
53128         stat-macros.h is now for our own macros, whereas stat_h is for
53129         macros in the <sys/stat.h> name space.
53130         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
53131         (STAT_MACROS_H): Remove.
53132         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
53133         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
53134         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
53135         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
53136         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
53137         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
53138         Move these macros to ...
53139         * lib/stat_.h: here.  Don't include stat-macros.h.
53140         * lib/canonicalize.c: Don't include stat-macros.h.
53141         * lib/chown.c: Likewise.
53142         * lib/euidaccess.c: Likewise.
53143         * lib/file-type.c: Likewise.
53144         * lib/filemode.c: Likewise.
53145         * lib/glob.c: Likewise.
53146         * lib/isapipe.c: Likewise.
53147         * lib/lchown.c: Likewise.
53148         * lib/lstat.c: Likewise.
53149         * lib/mkdir-p.c: Likewise.
53150         * lib/rmdir.c: Likewise.
53151         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
53152         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
53153         unless mkdir isn't declared, to speed up 'configure'.
53154         Always create sys/stat.h, since it's unlikely any real sys/stat.h
53155         would define all the S_* symbols.
53156         * modules/canonicalize (Depends-on):
53157         Depend on sys_stat, not stat-macros.
53158         * modules/chown: Likewise.
53159         * modules/euidaccess: Likewise.
53160         * modules/filemode: Likewise.
53161         * modules/file-type: Likewise.
53162         * modules/glob: Likewise.
53163         * modules/isapipe: Likewise.
53164         * modules/lchown: Likewise.
53165         * modules/lstat: Likewise.
53166         * modules/mkancesdirs: Likewise.
53167         * modules/rmdir: Likewise.
53168         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
53169         * modules/modechange: Likewise.
53170         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
53171         (configure.ac): Remove gl_STAT_MACROS.
53172         * modules/sys_stat (Depends-on): Remove stat-macros.
53173
53174 2006-10-27  Bruno Haible  <bruno@clisp.org>
53175
53176         * m4/signed.m4: Remove file.
53177         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
53178         invocation.
53179         * modules/vasnprintf (Files): Remove m4/signed.m4.
53180
53181 2006-10-27  Bruno Haible  <bruno@clisp.org>
53182
53183         Update to GNU gettext 0.16.
53184         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
53185         m4/inttypes-h.m4, m4/signed.m4.
53186         * m4/gettext.m4: Update to GNU gettext 0.16.
53187         * m4/intl.m4: New file, from GNU gettext.
53188         * m4/intldir.m4: New file, from GNU gettext.
53189         * config/srclist.txt: Update
53190
53191 2006-10-27  Eric Blake  <ebb9@byu.net>
53192
53193         * MODULES.html.sh: Document tempname.
53194         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
53195         dependencies.
53196         (Files): Move lib/tempname.c...
53197         * modules/tempname: ...to this new module.
53198         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
53199         (gl_PREREQ_TEMPNAME): Move...
53200         * m4/tempname.m4: ...to this new file.
53201         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
53202         * modules/sys_stat (Depends-on): Add stat-macros.
53203         * lib/stat_.h (includes): Pick up stat macros.
53204         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
53205         if stat macros are broken.
53206         * lib/tempname.c (includes): No need to include "stat-macros.h".
53207         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
53208         (direxists, __path_search) [!_LIBC]: Don't compile these in
53209         gnulib; the tmpdir module covers that.
53210         * lib/tempname.h: New file.
53211
53212 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
53213
53214         * COPYING: Explain how gnulib-tool converts licence headers.
53215         Almost all wording by Eric Blake.
53216
53217 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
53218
53219         * lib/mbchar.h (is_basic_table): Make read-only.
53220         * lib/mbchar.c (is_basic_table): Likewise.
53221         Reported by John Darrington.
53222
53223 2006-10-25  Bruno Haible  <bruno@clisp.org>
53224
53225         * lib/progname.h (set_program_name): Undefine before defining.
53226
53227 2006-10-25  Bruno Haible  <bruno@clisp.org>
53228
53229         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
53230         false for non-gcc C++ compilers.
53231         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
53232
53233 2006-10-24  Bruno Haible  <bruno@clisp.org>
53234
53235         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
53236         iconv implementations like Irix iconv.
53237
53238 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53239
53240         * modules/vararrays: New file.
53241         * m4/vararrays.m4: New file, taken from diffutils.
53242         * MODULES.html.sh: New module vararrays.
53243
53244 2006-10-24  Karl Berry  <karl@gnu.org>
53245
53246         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
53247         Don't call GNU Unix.
53248
53249 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53250
53251         * users.txt: Add Libtool.
53252
53253         Sync from Libtool:
53254
53255         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53256
53257         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
53258         to gnulib's policy of including config.h unconditionally.
53259
53260 2006-10-24  Bruno Haible  <bruno@clisp.org>
53261
53262         * modules/wcwidth (Files): Add m4/wint_t.m4.
53263         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
53264         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
53265
53266 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53267
53268         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
53269         to pacify GCC with some -W flags enabled.  Problem reported by
53270         Bruno Haible.
53271
53272 2006-10-24  Jim Meyering  <jim@meyering.net>
53273
53274         * MODULES.html.sh: Remove uinttostr.  It's not a module.
53275         Reported by Karl Berry.
53276
53277 2006-10-23  Bruno Haible  <bruno@clisp.org>
53278
53279         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
53280
53281 2006-10-24  Bruno Haible  <bruno@clisp.org>
53282
53283         * lib/gl_list.h: Use C comment style, not C++ comment style.
53284
53285 2006-10-23  Eric Blake  <ebb9@byu.net>
53286
53287         * lib/getaddrinfo.c (includes): Add missing include.
53288
53289 2006-10-23  Bruno Haible  <bruno@clisp.org>
53290             Paul Eggert  <eggert@cs.ucla.edu>
53291
53292         Ability to rename obstack_free.
53293         * lib/obstack.h (__obstack_free): New macro. Declare instead of
53294         obstack_free.
53295         (obstack_free): Invoke the __obstack_free macro.
53296         * lib/obstack.c (obstack_free): Use __obstack_free macro.
53297
53298 2006-10-23  Bruno Haible  <bruno@clisp.org>
53299             Paul Eggert  <eggert@cs.ucla.edu>
53300
53301         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
53302         __argc, __argv from the declaration. (They are defined as macros on
53303         mingw.)
53304
53305 2006-10-22  Bruno Haible  <bruno@clisp.org>
53306
53307         * doc/gnulib-intro.texi: New file.
53308         * doc/gnulib.texi: Include it.
53309
53310 2006-10-21  Bruno Haible  <bruno@clisp.org>
53311
53312         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
53313         "Introduction", "Miscellanous Notes", "Particular Modules".
53314
53315 2006-10-21  Bruno Haible  <bruno@clisp.org>
53316
53317         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53318         Change mostlyclean-local rule to avoid sh syntax error from bash
53319         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
53320
53321 2006-10-23  Jim Meyering  <jim@meyering.net>
53322
53323         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
53324         in place of snprintf.
53325
53326         * modules/inttostr (Files): Add lib/uinttostr.c.
53327         * lib/uinttostr.c (inttostr): New file/function.
53328         * lib/inttostr.h (uinttostr): Declare.
53329         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
53330         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
53331         Add uinttostr.
53332         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
53333
53334 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
53335
53336         * lib/canonicalize.c (ELOOP): Define if not already defined.
53337         Problem reported by Bruno Haible in
53338         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
53339
53340 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
53341
53342         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
53343         Problem reported by Perry Smith and Ville Laurikari.
53344
53345         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
53346         uses.
53347
53348 2006-10-19  Bruno Haible  <bruno@clisp.org>
53349
53350         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
53351         for mingw.
53352
53353 2006-10-19  Bruno Haible  <bruno@clisp.org>
53354
53355         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
53356         Needed for mingw.
53357
53358 2006-10-19  Bruno Haible  <bruno@clisp.org>
53359
53360         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
53361
53362 2006-10-19  Bruno Haible  <bruno@clisp.org>
53363
53364         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
53365         it.
53366
53367 2006-10-19  Bruno Haible  <bruno@clisp.org>
53368
53369         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
53370         invocation.
53371
53372 2006-10-19  Bruno Haible  <bruno@clisp.org>
53373
53374         * gnulib-tool (func_create_testdir): Don't include ftruncate and
53375         mountlist by default.
53376
53377 2006-10-16  Bruno Haible  <bruno@clisp.org>
53378
53379         * lib/c-strstr.c: Include c-strstr.h.
53380
53381 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
53382
53383         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
53384         in a slash.
53385
53386 2006-10-18  Bruno Haible  <bruno@clisp.org>
53387
53388         * lib/lock.h [C++]: Wrap definitions in extern "C".
53389
53390 2006-10-18  Bruno Haible  <bruno@clisp.org>
53391
53392         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
53393         gl_LIBOBJS list.
53394
53395 2006-10-18  Bruno Haible  <bruno@clisp.org>
53396
53397         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
53398
53399 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
53400
53401         * lib/xstrtol.h: Include gettext.h.
53402         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
53403         Problem reported by Eric Blake.
53404         * modules/xstrtol (Depends-on): Add gettext-h.
53405
53406 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
53407
53408         * lib/strftime.c (advance): New macro.
53409         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
53410         incomplete type, so you can't add 0 to it.  Problem and patch
53411         reported by Eelco Dolstra for dietlibc.
53412
53413 2006-10-18  Jim Meyering  <jim@meyering.net>
53414
53415         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
53416         type for a local, and rename it: s/up/user_proc/.
53417
53418 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53419
53420         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
53421         READ_UTMP_USER_PROCESS.
53422         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
53423
53424 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53425
53426         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
53427         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
53428
53429 2006-10-17  Eric Blake  <ebb9@byu.net>
53430
53431         * lib/sigprocmask.c (sigprocmask): Fix typo.
53432
53433         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
53434
53435         * modules/clean-temp (Makefile.am): Don't add to make output...
53436         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
53437         config.h.
53438
53439 2006-10-17  Bruno Haible  <bruno@clisp.org>
53440
53441         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
53442         differently if DEFAULT_TEXT_DOMAIN is set.
53443
53444 2006-10-16  Bruno Haible  <bruno@clisp.org>
53445
53446         * lib/clean-temp.c: Include fwriteerror.h.
53447
53448 2006-10-16  Bruno Haible  <bruno@clisp.org>
53449
53450         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
53451
53452 2006-10-16  Bruno Haible  <bruno@clisp.org>
53453
53454         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
53455         * lib/sigprocmask.h: Include <sys/types.h>.
53456         (sigset_t): Use the system's definition if present.
53457
53458 2006-10-17  Eric Blake  <ebb9@byu.net>
53459
53460         * lib/xvasprintf.c (includes): Assume config.h.
53461         * lib/xasprintf.c (includes): Likewise.
53462
53463 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53464
53465         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
53466         at least as wide as intmax_t.
53467
53468 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
53469
53470         (Imported from Automake.)
53471         * build-aux/gnupload: Update to version 1.1 of directive file.
53472
53473 2006-10-16  Eric Blake  <ebb9@byu.net>
53474
53475         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
53476         match Automake 1.10a.
53477
53478 2006-10-14  Bruno Haible  <bruno@clisp.org>
53479
53480         * modules/sigprocmask: New file.
53481         * lib/sigprocmask.h: New file.
53482         * lib/sigprocmask.c: New file.
53483         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
53484         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
53485         request sigprocmask.o.
53486         (gl_PREREQ_SIGPROCMASK): New macro.
53487         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
53488         (Depends-on): Add sigprocmask.
53489         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
53490         gt_SIGNALBLOCKING. Test for 'raise' only once.
53491         * lib/fatal-signal.c: Include sigprocmask.h.
53492         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
53493         unblock_fatal_signals): Define always.
53494         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53495         sigprocmask.
53496
53497 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
53498
53499         Sync from Automake.
53500         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
53501         which incorrectly sets the mode of an existing destination
53502         directory.  In some cases the unpatched install-sh could do the
53503         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
53504         system.  We hope this is rare in practice, but it's clearly worth
53505         fixing.  Problem reported by Alex Unleashed in
53506         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
53507         Also, don't bother to check for -m bugs unless we're using -m;
53508         suggested by Stepan Kasal.
53509
53510 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53511
53512         Sync from Automake.
53513         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
53514         `-c' flag, so they appear at the same position as in %FASTDEP%
53515         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
53516         which ignores unknown options only after the first non-option.
53517         Bug report against M4 by Nelson H. F. Beebe.
53518
53519 2006-10-13  Jim Meyering  <jim@meyering.net>
53520
53521         Fix a bug in yesterday's change.
53522         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
53523         p->fts_statp->st_dev would be used uninitialized.
53524         Ensures that we always call fts_stat on the very first entry.
53525         Miklos Szeredi reported that find -xdev stopped working.
53526
53527 2006-10-12  Bruno Haible  <bruno@clisp.org>
53528
53529         * gnulib-tool (func_get_automake_snippet): Append an automatically
53530         computed EXTRA_DIST augmentation.
53531         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
53532         * modules/alloca-opt (Makefile.am): Likewise.
53533         * modules/allocsa (Makefile.am): Likewise.
53534         * modules/arcfour (Makefile.am): Likewise.
53535         * modules/arctwo (Makefile.am): Likewise.
53536         * modules/argmatch (Makefile.am): Likewise.
53537         * modules/argz (Makefile.am): Likewise.
53538         * modules/atexit (Makefile.am): Likewise.
53539         * modules/backupfile (Makefile.am): Likewise.
53540         * modules/byteswap (Makefile.am): Likewise.
53541         * modules/c-strtod (Makefile.am): Likewise.
53542         * modules/c-strtold (Makefile.am): Likewise.
53543         * modules/calloc (Makefile.am): Likewise.
53544         * modules/canon-host (Makefile.am): Likewise.
53545         * modules/canonicalize (Makefile.am): Likewise.
53546         * modules/chdir-long (Makefile.am): Likewise.
53547         * modules/chdir-safer (Makefile.am): Likewise.
53548         * modules/check-version (Makefile.am): Likewise.
53549         * modules/chown (Makefile.am): Likewise.
53550         * modules/cloexec (Makefile.am): Likewise.
53551         * modules/close-stream (Makefile.am): Likewise.
53552         * modules/closeout (Makefile.am): Likewise.
53553         * modules/crc (Makefile.am): Likewise.
53554         * modules/csharpexec (Makefile.am): Likewise.
53555         * modules/cycle-check (Makefile.am): Likewise.
53556         * modules/des (Makefile.am): Likewise.
53557         * modules/dev-ino (Makefile.am): Likewise.
53558         * modules/dirfd (Makefile.am): Likewise.
53559         * modules/dirname (Makefile.am): Likewise.
53560         * modules/dup2 (Makefile.am): Likewise.
53561         * modules/eealloc (Makefile.am): Likewise.
53562         * modules/error (Makefile.am): Likewise.
53563         * modules/euidaccess (Makefile.am): Likewise.
53564         * modules/exclude (Makefile.am): Likewise.
53565         * modules/exitfail (Makefile.am): Likewise.
53566         * modules/fcntl-safer (Makefile.am): Likewise.
53567         * modules/fcntl (Makefile.am): Likewise.
53568         * modules/file-type (Makefile.am): Likewise.
53569         * modules/fileblocks (Makefile.am): Likewise.
53570         * modules/filemode (Makefile.am): Likewise.
53571         * modules/filenamecat (Makefile.am): Likewise.
53572         * modules/fnmatch (Makefile.am): Likewise.
53573         * modules/fopen-safer (Makefile.am): Likewise.
53574         * modules/fpending (Makefile.am): Likewise.
53575         * modules/fprintftime (Makefile.am): Likewise.
53576         * modules/free (Makefile.am): Likewise.
53577         * modules/fsusage (Makefile.am): Likewise.
53578         * modules/ftruncate (Makefile.am): Likewise.
53579         * modules/fts (Makefile.am): Likewise.
53580         * modules/gc-arcfour (Makefile.am): Likewise.
53581         * modules/gc-des (Makefile.am): Likewise.
53582         * modules/gc-hmac-md5 (Makefile.am): Likewise.
53583         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
53584         * modules/gc-md4 (Makefile.am): Likewise.
53585         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
53586         * modules/gc-sha1 (Makefile.am): Likewise.
53587         * modules/gc (Makefile.am): Likewise.
53588         * modules/getaddrinfo (Makefile.am): Likewise.
53589         * modules/getcwd (Makefile.am): Likewise.
53590         * modules/getdelim (Makefile.am): Likewise.
53591         * modules/getdomainname (Makefile.am): Likewise.
53592         * modules/getgroups (Makefile.am): Likewise.
53593         * modules/gethostname (Makefile.am): Likewise.
53594         * modules/gethrxtime (Makefile.am): Likewise.
53595         * modules/getline (Makefile.am): Likewise.
53596         * modules/getloadavg (Makefile.am): Likewise.
53597         * modules/getlogin_r (Makefile.am): Likewise.
53598         * modules/getndelim2 (Makefile.am): Likewise.
53599         * modules/getopt (Makefile.am): Likewise.
53600         * modules/getpagesize (Makefile.am): Likewise.
53601         * modules/getpass-gnu (Makefile.am): Likewise.
53602         * modules/getpass (Makefile.am): Likewise.
53603         * modules/getsubopt (Makefile.am): Likewise.
53604         * modules/gettime (Makefile.am): Likewise.
53605         * modules/gettimeofday (Makefile.am): Likewise.
53606         * modules/getugroups (Makefile.am): Likewise.
53607         * modules/getusershell (Makefile.am): Likewise.
53608         * modules/glob (Makefile.am): Likewise.
53609         * modules/group-member (Makefile.am): Likewise.
53610         * modules/hard-locale (Makefile.am): Likewise.
53611         * modules/hash (Makefile.am): Likewise.
53612         * modules/hmac-md5 (Makefile.am): Likewise.
53613         * modules/hmac-sha1 (Makefile.am): Likewise.
53614         * modules/human (Makefile.am): Likewise.
53615         * modules/idcache (Makefile.am): Likewise.
53616         * modules/imaxabs (Makefile.am): Likewise.
53617         * modules/imaxdiv (Makefile.am): Likewise.
53618         * modules/inet_ntop (Makefile.am): Likewise.
53619         * modules/inet_pton (Makefile.am): Likewise.
53620         * modules/intprops (Makefile.am): Likewise.
53621         * modules/inttostr (Makefile.am): Likewise.
53622         * modules/inttypes (Makefile.am): Likewise.
53623         * modules/isapipe (Makefile.am): Likewise.
53624         * modules/javaversion (Makefile.am): Likewise.
53625         * modules/lchmod (Makefile.am): Likewise.
53626         * modules/lchown (Makefile.am): Likewise.
53627         * modules/localcharset (Makefile.am): Likewise.
53628         * modules/long-options (Makefile.am): Likewise.
53629         * modules/lstat (Makefile.am): Likewise.
53630         * modules/malloc (Makefile.am): Likewise.
53631         * modules/mathl (Makefile.am): Likewise.
53632         * modules/mbchar (Makefile.am): Likewise.
53633         * modules/md2 (Makefile.am): Likewise.
53634         * modules/md4 (Makefile.am): Likewise.
53635         * modules/md5 (Makefile.am): Likewise.
53636         * modules/memcasecmp (Makefile.am): Likewise.
53637         * modules/memchr (Makefile.am): Likewise.
53638         * modules/memcmp (Makefile.am): Likewise.
53639         * modules/memcoll (Makefile.am): Likewise.
53640         * modules/memcpy (Makefile.am): Likewise.
53641         * modules/memmem (Makefile.am): Likewise.
53642         * modules/memmove (Makefile.am): Likewise.
53643         * modules/mempcpy (Makefile.am): Likewise.
53644         * modules/memrchr (Makefile.am): Likewise.
53645         * modules/memset (Makefile.am): Likewise.
53646         * modules/memxor (Makefile.am): Likewise.
53647         * modules/mkancesdirs (Makefile.am): Likewise.
53648         * modules/mkdir-p (Makefile.am): Likewise.
53649         * modules/mkdir (Makefile.am): Likewise.
53650         * modules/mkdtemp (Makefile.am): Likewise.
53651         * modules/mkstemp (Makefile.am): Likewise.
53652         * modules/mktime (Makefile.am): Likewise.
53653         * modules/modechange (Makefile.am): Likewise.
53654         * modules/mountlist (Makefile.am): Likewise.
53655         * modules/nanosleep (Makefile.am): Likewise.
53656         * modules/obstack (Makefile.am): Likewise.
53657         * modules/openat (Makefile.am): Likewise.
53658         * modules/pagealign_alloc (Makefile.am): Likewise.
53659         * modules/pathmax (Makefile.am): Likewise.
53660         * modules/physmem (Makefile.am): Likewise.
53661         * modules/poll (Makefile.am): Likewise.
53662         * modules/posixtm (Makefile.am): Likewise.
53663         * modules/posixver (Makefile.am): Likewise.
53664         * modules/putenv (Makefile.am): Likewise.
53665         * modules/quote (Makefile.am): Likewise.
53666         * modules/quotearg (Makefile.am): Likewise.
53667         * modules/raise (Makefile.am): Likewise.
53668         * modules/read-file (Makefile.am): Likewise.
53669         * modules/readline (Makefile.am): Likewise.
53670         * modules/readlink (Makefile.am): Likewise.
53671         * modules/readtokens (Makefile.am): Likewise.
53672         * modules/readutmp (Makefile.am): Likewise.
53673         * modules/realloc (Makefile.am): Likewise.
53674         * modules/regex (Makefile.am): Likewise.
53675         * modules/rename-dest-slash (Makefile.am): Likewise.
53676         * modules/rename (Makefile.am): Likewise.
53677         * modules/rijndael (Makefile.am): Likewise.
53678         * modules/rmdir (Makefile.am): Likewise.
53679         * modules/rpmatch (Makefile.am): Likewise.
53680         * modules/safe-read (Makefile.am): Likewise.
53681         * modules/safe-write (Makefile.am): Likewise.
53682         * modules/same-inode (Makefile.am): Likewise.
53683         * modules/same (Makefile.am): Likewise.
53684         * modules/save-cwd (Makefile.am): Likewise.
53685         * modules/savedir (Makefile.am): Likewise.
53686         * modules/setenv (Makefile.am): Likewise.
53687         * modules/settime (Makefile.am): Likewise.
53688         * modules/sha1 (Makefile.am): Likewise.
53689         * modules/sig2str (Makefile.am): Likewise.
53690         * modules/snprintf (Makefile.am): Likewise.
53691         * modules/stat-macros (Makefile.am): Likewise.
53692         * modules/stat-time (Makefile.am): Likewise.
53693         * modules/stdbool (Makefile.am): Likewise.
53694         * modules/stdint (Makefile.am): Likewise.
53695         * modules/stdlib-safer (Makefile.am): Likewise.
53696         * modules/stpcpy (Makefile.am): Likewise.
53697         * modules/stpncpy (Makefile.am): Likewise.
53698         * modules/strcase (Makefile.am): Likewise.
53699         * modules/strcasestr (Makefile.am): Likewise.
53700         * modules/strchrnul (Makefile.am): Likewise.
53701         * modules/strcspn (Makefile.am): Likewise.
53702         * modules/strdup (Makefile.am): Likewise.
53703         * modules/strerror (Makefile.am): Likewise.
53704         * modules/strftime (Makefile.am): Likewise.
53705         * modules/strndup (Makefile.am): Likewise.
53706         * modules/strnlen (Makefile.am): Likewise.
53707         * modules/strpbrk (Makefile.am): Likewise.
53708         * modules/strsep (Makefile.am): Likewise.
53709         * modules/strstr (Makefile.am): Likewise.
53710         * modules/strtod (Makefile.am): Likewise.
53711         * modules/strtoimax (Makefile.am): Likewise.
53712         * modules/strtok_r (Makefile.am): Likewise.
53713         * modules/strtol (Makefile.am): Likewise.
53714         * modules/strtoll (Makefile.am): Likewise.
53715         * modules/strtoul (Makefile.am): Likewise.
53716         * modules/strtoull (Makefile.am): Likewise.
53717         * modules/strtoumax (Makefile.am): Likewise.
53718         * modules/strverscmp (Makefile.am): Likewise.
53719         * modules/sys_socket (Makefile.am): Likewise.
53720         * modules/sys_stat (Makefile.am): Likewise.
53721         * modules/sysexits (Makefile.am): Likewise.
53722         * modules/time_r (Makefile.am): Likewise.
53723         * modules/timegm (Makefile.am): Likewise.
53724         * modules/timespec (Makefile.am): Likewise.
53725         * modules/tmpfile-safer (Makefile.am): Likewise.
53726         * modules/trim (Makefile.am): Likewise.
53727         * modules/unistd-safer (Makefile.am): Likewise.
53728         * modules/unlinkdir (Makefile.am): Likewise.
53729         * modules/unlocked-io (Makefile.am): Likewise.
53730         * modules/userspec (Makefile.am): Likewise.
53731         * modules/utime (Makefile.am): Likewise.
53732         * modules/utimecmp (Makefile.am): Likewise.
53733         * modules/utimens (Makefile.am): Likewise.
53734         * modules/vasnprintf (Makefile.am): Likewise.
53735         * modules/vasprintf (Makefile.am): Likewise.
53736         * modules/vsnprintf (Makefile.am): Likewise.
53737         * modules/xalloc (Makefile.am): Likewise.
53738         * modules/xgetcwd (Makefile.am): Likewise.
53739         * modules/xnanosleep (Makefile.am): Likewise.
53740         * modules/xreadlink (Makefile.am): Likewise.
53741         * modules/xstrtod (Makefile.am): Likewise.
53742         * modules/xstrtol (Makefile.am): Likewise.
53743         * modules/xstrtold (Makefile.am): Likewise.
53744         * modules/yesno (Makefile.am): Likewise.
53745         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
53746
53747 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
53748
53749         * modules/error (Makefile.am): Distribute files through
53750         EXTRA_DIST, not lib_SOURCES.
53751
53752 2006-10-12  Eric Blake  <ebb9@byu.net>
53753
53754         * modules/error (Makefile.am): Distribute files in /lib.
53755         * modules/obstack (Makefile.am): Likewise.
53756
53757 2006-10-12  Bruno Haible  <bruno@clisp.org>
53758
53759         * modules/acl (Makefile.am): Distribute all files in lib/ through
53760         EXTRA_DIST.
53761         * modules/arcfour (Makefile.am): Likewise.
53762         * modules/arctwo (Makefile.am): Likewise.
53763         * modules/argmatch (Makefile.am): Likewise.
53764         * modules/argz (Makefile.am): Likewise.
53765         * modules/atexit (Makefile.am): Likewise.
53766         * modules/backupfile (Makefile.am): Likewise.
53767         * modules/c-strtod (Makefile.am): Likewise.
53768         * modules/c-strtold (Makefile.am): Likewise.
53769         * modules/calloc (Makefile.am): Likewise.
53770         * modules/canon-host (Makefile.am): Likewise.
53771         * modules/canonicalize (Makefile.am): Likewise.
53772         * modules/chdir-long (Makefile.am): Likewise.
53773         * modules/chdir-safer (Makefile.am): Likewise.
53774         * modules/check-version (Makefile.am): Likewise.
53775         * modules/chown (Makefile.am): Likewise.
53776         * modules/cloexec (Makefile.am): Likewise.
53777         * modules/close-stream (Makefile.am): Likewise.
53778         * modules/closeout (Makefile.am): Likewise.
53779         * modules/crc (Makefile.am): Likewise.
53780         * modules/cycle-check (Makefile.am): Likewise.
53781         * modules/des (Makefile.am): Likewise.
53782         * modules/dirfd (Makefile.am): Likewise.
53783         * modules/dirname (Makefile.am): Likewise.
53784         * modules/dup2 (Makefile.am): Likewise.
53785         * modules/euidaccess (Makefile.am): Likewise.
53786         * modules/exclude (Makefile.am): Likewise.
53787         * modules/exitfail (Makefile.am): Likewise.
53788         * modules/fcntl-safer (Makefile.am): Likewise.
53789         * modules/file-type (Makefile.am): Likewise.
53790         * modules/fileblocks (Makefile.am): Likewise.
53791         * modules/filemode (Makefile.am): Likewise.
53792         * modules/filenamecat (Makefile.am): Likewise.
53793         * modules/fnmatch (Makefile.am): Likewise.
53794         * modules/fopen-safer (Makefile.am): Likewise.
53795         * modules/fpending (Makefile.am): Likewise.
53796         * modules/fprintftime (Makefile.am): Likewise.
53797         * modules/free (Makefile.am): Likewise.
53798         * modules/fsusage (Makefile.am): Likewise.
53799         * modules/ftruncate (Makefile.am): Likewise.
53800         * modules/fts (Makefile.am): Likewise.
53801         * modules/gc (Makefile.am): Likewise.
53802         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
53803         * modules/getaddrinfo (Makefile.am): Likewise.
53804         * modules/getcwd (Makefile.am): Likewise.
53805         * modules/getdelim (Makefile.am): Likewise.
53806         * modules/getdomainname (Makefile.am): Likewise.
53807         * modules/getgroups (Makefile.am): Likewise.
53808         * modules/gethostname (Makefile.am): Likewise.
53809         * modules/gethrxtime (Makefile.am): Likewise.
53810         * modules/getline (Makefile.am): Likewise.
53811         * modules/getloadavg (Makefile.am): Likewise.
53812         * modules/getlogin_r (Makefile.am): Likewise.
53813         * modules/getopt (Makefile.am): Likewise.
53814         * modules/getpass (Makefile.am): Likewise.
53815         * modules/getpass-gnu (Makefile.am): Likewise.
53816         * modules/getsubopt (Makefile.am): Likewise.
53817         * modules/gettime (Makefile.am): Likewise.
53818         * modules/gettimeofday (Makefile.am): Likewise.
53819         * modules/getugroups (Makefile.am): Likewise.
53820         * modules/getusershell (Makefile.am): Likewise.
53821         * modules/glob (Makefile.am): Likewise.
53822         * modules/group-member (Makefile.am): Likewise.
53823         * modules/hard-locale (Makefile.am): Likewise.
53824         * modules/hash (Makefile.am): Likewise.
53825         * modules/hmac-md5 (Makefile.am): Likewise.
53826         * modules/hmac-sha1 (Makefile.am): Likewise.
53827         * modules/human (Makefile.am): Likewise.
53828         * modules/idcache (Makefile.am): Likewise.
53829         * modules/imaxabs (Makefile.am): Likewise.
53830         * modules/imaxdiv (Makefile.am): Likewise.
53831         * modules/inet_ntop (Makefile.am): Likewise.
53832         * modules/inet_pton (Makefile.am): Likewise.
53833         * modules/inttostr (Makefile.am): Likewise.
53834         * modules/isapipe (Makefile.am): Likewise.
53835         * modules/lchown (Makefile.am): Likewise.
53836         * modules/long-options (Makefile.am): Likewise.
53837         * modules/lstat (Makefile.am): Likewise.
53838         * modules/malloc (Makefile.am): Likewise.
53839         * modules/mathl (Makefile.am): Likewise.
53840         * modules/mbchar (Makefile.am): Likewise.
53841         * modules/md2 (Makefile.am): Likewise.
53842         * modules/md4 (Makefile.am): Likewise.
53843         * modules/md5 (Makefile.am): Likewise.
53844         * modules/memcasecmp (Makefile.am): Likewise.
53845         * modules/memchr (Makefile.am): Likewise.
53846         * modules/memcmp (Makefile.am): Likewise.
53847         * modules/memcoll (Makefile.am): Likewise.
53848         * modules/memcpy (Makefile.am): Likewise.
53849         * modules/memmem (Makefile.am): Likewise.
53850         * modules/memmove (Makefile.am): Likewise.
53851         * modules/mempcpy (Makefile.am): Likewise.
53852         * modules/memrchr (Makefile.am): Likewise.
53853         * modules/memset (Makefile.am): Likewise.
53854         * modules/memxor (Makefile.am): Likewise.
53855         * modules/mkancesdirs (Makefile.am): Likewise.
53856         * modules/mkdir (Makefile.am): Likewise.
53857         * modules/mkdir-p (Makefile.am): Likewise.
53858         * modules/mkdtemp (Makefile.am): Likewise.
53859         * modules/mkstemp (Makefile.am): Likewise.
53860         * modules/mktime (Makefile.am): Likewise.
53861         * modules/modechange (Makefile.am): Likewise.
53862         * modules/mountlist (Makefile.am): Likewise.
53863         * modules/nanosleep (Makefile.am): Likewise.
53864         * modules/openat (Makefile.am): Likewise.
53865         * modules/pagealign_alloc (Makefile.am): Likewise.
53866         * modules/physmem (Makefile.am): Likewise.
53867         * modules/poll (Makefile.am): Likewise.
53868         * modules/posixtm (Makefile.am): Likewise.
53869         * modules/posixver (Makefile.am): Likewise.
53870         * modules/putenv (Makefile.am): Likewise.
53871         * modules/quote (Makefile.am): Likewise.
53872         * modules/quotearg (Makefile.am): Likewise.
53873         * modules/raise (Makefile.am): Likewise.
53874         * modules/read-file (Makefile.am): Likewise.
53875         * modules/readline (Makefile.am): Likewise.
53876         * modules/readlink (Makefile.am): Likewise.
53877         * modules/readtokens (Makefile.am): Likewise.
53878         * modules/readutmp (Makefile.am): Likewise.
53879         * modules/realloc (Makefile.am): Likewise.
53880         * modules/regex (Makefile.am): Likewise.
53881         * modules/rename (Makefile.am): Likewise.
53882         * modules/rename-dest-slash (Makefile.am): Likewise.
53883         * modules/rijndael (Makefile.am): Likewise.
53884         * modules/rmdir (Makefile.am): Likewise.
53885         * modules/rpmatch (Makefile.am): Likewise.
53886         * modules/safe-read (Makefile.am): Likewise.
53887         * modules/safe-write (Makefile.am): Likewise.
53888         * modules/same (Makefile.am): Likewise.
53889         * modules/save-cwd (Makefile.am): Likewise.
53890         * modules/savedir (Makefile.am): Likewise.
53891         * modules/setenv (Makefile.am): Likewise.
53892         * modules/settime (Makefile.am): Likewise.
53893         * modules/sha1 (Makefile.am): Likewise.
53894         * modules/sig2str (Makefile.am): Likewise.
53895         * modules/snprintf (Makefile.am): Likewise.
53896         * modules/stdlib-safer (Makefile.am): Likewise.
53897         * modules/stpcpy (Makefile.am): Likewise.
53898         * modules/stpncpy (Makefile.am): Likewise.
53899         * modules/strcase (Makefile.am): Likewise.
53900         * modules/strcasestr (Makefile.am): Likewise.
53901         * modules/strchrnul (Makefile.am): Likewise.
53902         * modules/strcspn (Makefile.am): Likewise.
53903         * modules/strdup (Makefile.am): Likewise.
53904         * modules/strerror (Makefile.am): Likewise.
53905         * modules/strftime (Makefile.am): Likewise.
53906         * modules/strndup (Makefile.am): Likewise.
53907         * modules/strnlen (Makefile.am): Likewise.
53908         * modules/strpbrk (Makefile.am): Likewise.
53909         * modules/strsep (Makefile.am): Likewise.
53910         * modules/strstr (Makefile.am): Likewise.
53911         * modules/strtod (Makefile.am): Likewise.
53912         * modules/strtoimax (Makefile.am): Likewise.
53913         * modules/strtok_r (Makefile.am): Likewise.
53914         * modules/strtol (Makefile.am): Likewise.
53915         * modules/strtoll (Makefile.am): Likewise.
53916         * modules/strtoul (Makefile.am): Likewise.
53917         * modules/strtoull (Makefile.am): Likewise.
53918         * modules/strtoumax (Makefile.am): Likewise.
53919         * modules/strverscmp (Makefile.am): Likewise.
53920         * modules/time_r (Makefile.am): Likewise.
53921         * modules/timegm (Makefile.am): Likewise.
53922         * modules/tmpfile-safer (Makefile.am): Likewise.
53923         * modules/unistd-safer (Makefile.am): Likewise.
53924         * modules/unlinkdir (Makefile.am): Likewise.
53925         * modules/userspec (Makefile.am): Likewise.
53926         * modules/utime (Makefile.am): Likewise.
53927         * modules/utimecmp (Makefile.am): Likewise.
53928         * modules/utimens (Makefile.am): Likewise.
53929         * modules/vasnprintf (Makefile.am): Likewise.
53930         * modules/vasprintf (Makefile.am): Likewise.
53931         * modules/vsnprintf (Makefile.am): Likewise.
53932         * modules/xalloc (Makefile.am): Likewise.
53933         * modules/xgetcwd (Makefile.am): Likewise.
53934         * modules/xnanosleep (Makefile.am): Likewise.
53935         * modules/xreadlink (Makefile.am): Likewise.
53936         * modules/xstrtod (Makefile.am): Likewise.
53937         * modules/xstrtol (Makefile.am): Likewise.
53938         * modules/xstrtold (Makefile.am): Likewise.
53939         * modules/yesno (Makefile.am): Likewise.
53940
53941 2006-10-12  Jim Meyering  <jim@meyering.net>
53942
53943         * m4/getloadavg.m4: Revert the change below.
53944
53945         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
53946         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
53947         fail with a symlink, which is what coreutils' ./bootstrap now
53948         creates by default.
53949
53950 2006-10-12  Bruno Haible  <bruno@clisp.org>
53951
53952         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
53953         mingw.
53954         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
53955         MSVC and mingw explicitly.
53956
53957 2006-10-11  Simon Josefsson  <jas@extundo.com>
53958             Bruno Haible  <bruno@clisp.org>
53959
53960         Add support for multiple gnulib-tool invocations in the scope of a
53961         single configure.ac file.
53962         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
53963         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
53964         with the same contents as the _LIBADD variable.
53965         (func_emit_initmacro_start, func_emit_initmacro_end,
53966         func_emit_initmacro_done): New functions.
53967         (func_import, func_create_testdir): Invoke them. Allow the identifiers
53968         gl_LIBOBJS and gl_LTLIBOBJS.
53969
53970 2006-10-11  Bruno Haible  <bruno@clisp.org>
53971
53972         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
53973         (func_create_testdir): Don't create po/Makefile.am, don't invoke
53974         autoreconf. Instead, invoke autopoint explicitly but move back the
53975         *.m4 files from gnulib.
53976
53977 2006-10-11  Bruno Haible  <bruno@clisp.org>
53978
53979         * gnulib-tool (func_usage): Make module names after --create-testdir
53980         optional.
53981         (func_create_testdir): If no module was specified, use nearly all
53982         modules.
53983
53984 2006-10-12  Jim Meyering  <jim@meyering.net>
53985
53986         Big performance improvement for fts-based tools that use FTS_NOSTAT.
53987         Avoid spurious inode-mismatch problems on non-POSIX file systems.
53988         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
53989         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
53990         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
53991         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
53992         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
53993         (fts_set_stat_required): New function.
53994         (fts_open): Defer the calls to fts_stat, if possible or requested.
53995         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
53996         into fts_stat itself.
53997         (fts_read): Perform any required (deferred) fts_stat call.
53998         (fts_build): Likewise, for the directory we're about to open and read.
53999         In the readdir loop, carefully decide whether each entry will require
54000         an eventual call to fts_stat, using dirent.d_type info if available.
54001         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
54002         a command line argument into this function.  Update all callers.
54003         Map a return value of FTS_DOT to FTS_D for a command line argument.
54004         * modules/fts (Depends-on): Add d-type.  Alphabetize.
54005         Thanks to Miklos Szeredi for his tenacity and for the initial
54006         bug report about "find" failing on a FUSE-based file system.
54007
54008         * lib/fts.c (fts_open): Use consistent indentation.
54009
54010 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54011
54012         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
54013         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
54014         reported by Jim Meyering.  All uses of cache variables renamed
54015         to match Autoconf's.
54016         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
54017         the other one.
54018
54019         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
54020         Fix misspelling in diagnostic.
54021
54022 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54023
54024         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
54025         defined.  Problem reported by Matthew Woehlke.
54026
54027         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
54028         Add support for Tandem NonStop R series.
54029         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
54030         Use new macro.
54031
54032         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
54033         (has_trailing_slash): Omit size arg; all callers changed.
54034         Omit 'inline', since it doesn't help performance and we'd
54035         need to configure it.
54036         Don't count //, ///, etc. as having a trailing slash.
54037         As a side effect, this removes a C99ism reported by Matthew Woehlke.
54038         (rpl_rename_dest_slash): On failure, use rename's errno rather
54039         than (in some cases) an incorrect or junk errno.
54040         Simplify code by removing need to compute length; this does
54041         cause it to make two passes instead of one over the file name,
54042         but it's worth it.
54043
54044         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
54045         change, since Autoconf's version may no longer be appropriate now
54046         that we are using CVS Autoconf's version.  Add support for Tandem.
54047
54048 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54049             Bruno Haible  <bruno@clisp.org>
54050
54051         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
54052         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
54053         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
54054         gl_AC_TYPE_LONG_LONG.
54055
54056         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
54057         instead of HAVE_LONG_LONG.
54058         * lib/printf-args.c (printf_fetchargs): Likewise.
54059         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
54060         * lib/vasnprintf.c (VASNPRINTF): Likewise.
54061         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
54062         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
54063         gl_AC_TYPE_LONG_LONG.
54064
54065 2006-10-11  Bruno Haible  <bruno@clisp.org>
54066
54067         * m4/longlong.m4: Add comments.
54068         * m4/ulonglong.m4: Likewise.
54069
54070 2006-10-10  Bruno Haible  <bruno@clisp.org>
54071
54072         Make it possible to #define stpcpy, strdup to aliases.
54073         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
54074         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
54075
54076 2006-10-10  Bruno Haible  <bruno@clisp.org>
54077
54078         Make it possible to #define gcd to an alias.
54079         * lib/gcd.c: Include config.h.
54080
54081 2006-10-10  Bruno Haible  <bruno@clisp.org>
54082
54083         Make it possible to #define c_isascii to an alias.
54084         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
54085         defined. Undefine the macros before defining them, to avoid gcc
54086         warnings.
54087         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
54088         define NO_C_CTYPE_MACROS early.
54089
54090 2006-10-10  Bruno Haible  <bruno@clisp.org>
54091
54092         Make it possible to #define set_program_name to an alias.
54093         * lib/progname.c: Don't undefine set_program_name; instead, undefine
54094         ENABLE_RELOCATABLE early.
54095
54096 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54097
54098         Port to Tandem NSK OSS, which has 64-bit signed int but at most
54099         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
54100         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
54101         More generally, don't assume that 64-bit signed int is available
54102         if unsigned int is, and vice versa.
54103         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
54104         unsigned symbols, not on their signed counterparts.
54105         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
54106         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
54107         (UINT64_C, UINTMAX_C):
54108         Likewise.
54109         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
54110         unsigned counterparts.
54111         (Have_long_long, Unsigned): New macros.
54112         (Int): Renamed from INT.
54113         (strtoimax): Use the new macros.
54114         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
54115         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
54116         * modules/inttypes (inttypes.h): Substitute
54117         HAVE_UNSIGNED_LONG_LONG_INT.
54118         * modules/stdint (stdint.h): Likewise.
54119         (Files): Add m4/ulonglong.m4.
54120
54121 2006-10-10  Bruno Haible  <bruno@clisp.org>
54122
54123         Fix a gcc -Wshadow warning.
54124         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
54125         to 'bucket'.
54126         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
54127         gl_linked_indexof_from_to): Likewise.
54128         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
54129         Likewise.
54130         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
54131         Likewise.
54132         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
54133         Reported by Eric Blake.
54134
54135 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
54136
54137         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
54138         for NetBSD.  Problem reported by Bruno Haible.
54139
54140 2006-10-09  Jim Meyering  <jim@meyering.net>
54141
54142         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
54143         Patch from Bruno Haible.
54144
54145 2006-10-09  Jim Meyering  <jim@meyering.net>
54146
54147         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
54148         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
54149         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
54150
54151 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54152
54153         Don't include <config.h> twice; this doesn't work in some cases,
54154         e.g., when config.h has "#define intmax_t long long int" and
54155         we include <config.h>, <inttypes.h>, <config.h> in that order.
54156         Problem reported by Matthew Woehlke in:
54157         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
54158         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
54159         * lib/fts-cycle.c: Don't include config.h.
54160         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
54161         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
54162         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
54163         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
54164         inttypes.h.
54165         * lib/xstrtoumax.c: Likewise.
54166         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
54167         __strtol and the like, so that this module is more like its siblings.
54168         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
54169         Remove; no longer needed now that we assume gnulib inttypes.h.
54170
54171 2006-10-08  Bruno Haible  <bruno@clisp.org>
54172
54173         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
54174         option.
54175
54176 2006-10-07  Jim Meyering  <jim@meyering.net>
54177
54178         * modules/inttypes (inttypes.h): Revert what seems to have been
54179         an inadvertent part of today's change: use "|", not "/" in the
54180         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
54181
54182 2006-10-07  Bruno Haible  <bruno@clisp.org>
54183
54184         * modules/sublist: New file.
54185
54186 2006-10-07  Bruno Haible  <bruno@clisp.org>
54187
54188         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
54189         * modules/argz (argz.h): Likewise.
54190         * modules/arpa_inet (arpa/inet.h): Likewise.
54191         * modules/byteswap (byteswap.h): Likewise.
54192         * modules/configmake (configmake.h): Likewise.
54193         * modules/fcntl (fcntl.h): Likewise.
54194         * modules/fnmatch (fnmatch.h): Likewise.
54195         * modules/getopt (getopt.h): Likewise.
54196         * modules/glob (glob.h): Likewise.
54197         * modules/inttypes (inttypes.h): Likewise.
54198         * modules/netinet_in (netinet/in.h): Likewise.
54199         * modules/poll (poll.h): Likewise.
54200         * modules/stdbool (stdbool.h): Likewise.
54201         * modules/stdint (stdint.h): Likewise.
54202         * modules/sys_select (sys/select.h): Likewise.
54203         * modules/sys_socket (sys/socket.h): Likewise.
54204         * modules/sys_stat (sys/stat.h): Likewise.
54205         * modules/sysexits (sysexits.h): Likewise.
54206         * modules/unistd (unistd.h): Likewise.
54207         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54208         Add a "DO NOT EDIT" comment to the generated file.
54209         (func_import): Likewise for gnulib-comp.m4.
54210
54211 2006-10-07  Bruno Haible  <bruno@clisp.org>
54212
54213         * lib/gl_sublist.h: New file.
54214         * lib/gl_sublist.c: New file.
54215
54216 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54217
54218         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
54219         name (relative to the original working directory) and the file
54220         name component (relative to the temporary working directory).  All
54221         callers changed.
54222         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
54223         * lib/mkdir-p.c (make_dir_parents): Likewise.
54224         * lib/mkdir-p.h (make_dir_parents): Likewise.
54225
54226 2006-10-06  Eric Blake  <ebb9@byu.net>
54227
54228         Define several macros for use by the clean-temp module.
54229         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
54230         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
54231         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
54232
54233         * lib/clean-temp.h (close_stream_temp): New declaration.
54234         * lib/clean-temp.c (includes): Pull in headers according to what
54235         other modules are in use.
54236         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
54237
54238 2006-10-06  Bruno Haible  <bruno@clisp.org>
54239
54240         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
54241         instead of fopen, fwriteerror.
54242
54243 2006-10-06  Bruno Haible  <bruno@clisp.org>
54244
54245         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
54246         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
54247         int.
54248         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
54249         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
54250         Return an error indicator.
54251         Suggested by Eric Blake.
54252
54253 2006-10-06  Bruno Haible  <bruno@clisp.org>
54254
54255         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
54256         Reported by Eric Blake.
54257
54258 2006-10-06  Bruno Haible  <bruno@clisp.org>
54259
54260         * modules/closeout (Description): Mention stderr too.
54261
54262 2006-10-06  Bruno Haible  <bruno@clisp.org>
54263         and Paul Eggert  <eggert@cs.ucla.edu>
54264
54265         * lib/closeout.c (close_stdout): Also close stderr.
54266         * lib/closeout.h: Update comment.
54267
54268 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
54269
54270         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
54271         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
54272         * lib/dirchownmod.c: Include lchown.h.
54273         * lib/lchown.c: Don't include files that lchown.h now includes.
54274         Don't declare chown, since lchown.h now does that.
54275         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
54276         (lchown): Define to rpl_chown if lchown is declared but
54277         does not exist.  Declare using a prototype if lchown is not
54278         declared.  Add a copyright notice.
54279         * lib/mkstemp.h: Include <unistd.h>.
54280         * lib/openat.c: Include lchown.h.
54281
54282         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
54283         we now test for that separately.
54284         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
54285         rather than O_NOFOLLOW, when testing whether it's possible to
54286         avoid a race condition reliably.
54287         * lib/savewd.c (savewd_chdir): Likewise.
54288
54289         Remove macros that are no longer needed now that stdint.h is
54290         reliable.
54291         * lib/fsusage.c (UINTMAX_MAX): Remove.
54292         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
54293         * lib/utimecmp.c (SIZE_MAX): Remove.
54294
54295         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
54296
54297         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
54298         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
54299         O_NOATIME works.
54300
54301 2006-10-05  Bruno Haible  <bruno@clisp.org>
54302
54303         * lib/gl_list.h (gl_sortedlist_search_from_to,
54304         gl_sortedlist_indexof_from_to): New declarations.
54305         (gl_list_implementation): New fields sortedlist_search_from_to,
54306         sortedlist_indexof_from_to.
54307         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
54308         inline functions.
54309         * lib/gl_list.c (gl_sortedlist_search_from_to,
54310         gl_sortedlist_indexof_from_to): New functions.
54311         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
54312         function.
54313         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
54314         (gl_array_sortedlist_search_from_to): New function.
54315         (gl_array_list_implementation): Update.
54316         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
54317         function.
54318         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
54319         (gl_carray_sortedlist_search_from_to): New function.
54320         (gl_carray_list_implementation): Update.
54321         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
54322         gl_linked_sortedlist_indexof_from_to): New functions.
54323         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
54324         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
54325         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
54326         gl_tree_sortedlist_indexof_from_to): New functions.
54327         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
54328         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
54329         Update.
54330         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
54331         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
54332         Update.
54333
54334 2006-10-05  Bruno Haible  <bruno@clisp.org>
54335
54336         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
54337         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
54338         (struct gl_list_implementation): Add fields search_from_to,
54339         indexof_from_to. Remove fields search, indexof.
54340         (gl_list_search): Use the search_from_to method.
54341         (gl_list_search_from, gl_list_search_from_to): New functions.
54342         (gl_list_indexof): Use the indexof_from_to method.
54343         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
54344         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
54345         (gl_list_search_from, gl_list_search_from_to): New functions.
54346         (gl_list_indexof): Use the indexof_from_to method.
54347         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
54348         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
54349         gl_array_indexof. Add start_index, end_index arguments.
54350         (gl_array_search_from_to): Renamed from gl_array_search. Add
54351         start_index, end_index arguments.
54352         (gl_array_remove, gl_array_list_implementation): Update.
54353         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
54354         gl_carray_indexof. Add start_index, end_index arguments.
54355         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
54356         start_index, end_index arguments.
54357         (gl_carray_remove, gl_carray_list_implementation): Update.
54358         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
54359         gl_linked_search. Add start_index, end_index arguments.
54360         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
54361         start_index, end_index arguments.
54362         (gl_linked_remove): Update.
54363         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
54364         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
54365         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
54366         field to 'size_t'.
54367         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
54368         gl_tree_search. Add start_index, end_index arguments.
54369         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
54370         start_index, end_index arguments.
54371         (gl_tree_remove): Update.
54372         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
54373         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
54374         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
54375         function.
54376         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
54377         gl_tree_search. Add start_index, end_index arguments.
54378         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
54379         start_index, end_index arguments.
54380         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
54381         Update.
54382         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
54383
54384 2006-10-05  Bruno Haible  <bruno@clisp.org>
54385
54386         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
54387
54388         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
54389         fwriteerror_temp): New declarations.
54390         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
54391         (descriptors): New variable.
54392         (cleanup): First, close the descriptors.
54393         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
54394         fclose_temp, fwriteerror_temp): New functions.
54395
54396 2006-10-04  Jim Meyering  <jim@meyering.net>
54397
54398         * lib/fts.c (fts_open): Tiny comment change.
54399
54400 2006-10-04  Bruno Haible  <bruno@clisp.org>
54401
54402         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
54403         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
54404         gl_LOCK_BODY.
54405         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
54406         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
54407         gl_LOCK_EARLY_BODY.
54408         (gl_LOCK): Require gl_LOCK_BODY.
54409
54410 2006-10-04  Bruno Haible  <bruno@clisp.org>
54411
54412         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
54413         (gl_oset_search_atleast): New declaration.
54414         (struct gl_oset_implementation): Add field 'search_atleast'.
54415         (gl_oset_search_atleast): New inline function.
54416         * lib/gl_oset.c (gl_oset_search_atleast): New function.
54417         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
54418         (gl_array_oset_implementation): Update.
54419         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
54420         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
54421         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
54422
54423 2006-10-04  Bruno Haible  <bruno@clisp.org>
54424
54425         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
54426
54427 2006-10-03  Bruno Haible  <bruno@clisp.org>
54428
54429         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
54430         from gl_avltreehash_list_implementation.
54431
54432 2006-10-03  Bruno Haible  <bruno@clisp.org>
54433
54434         * lib/gl_oset.c (gl_oset_add): Fix return type.
54435
54436 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
54437
54438         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
54439
54440 2006-10-02  Eric Blake  <ebb9@byu.net>
54441
54442         * modules/strnlen (Depends-on): Add extensions.
54443
54444 2006-10-02  Eric Blake  <ebb9@byu.net>
54445
54446         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
54447         definition in 2.60+.
54448
54449 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
54450
54451         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
54452         checks.
54453
54454 2006-10-02  Bruno Haible  <bruno@clisp.org>
54455
54456         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
54457         to the AUTOMAKE_OPTIONS.
54458         Reported by Jim Meyering.
54459
54460 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
54461
54462         Work around bug in Solaris 10 /proc file system:
54463         /proc/self/fd/NNN/.. isn't the parent directory of
54464         the directory whose file descriptor is NNN.  This needs to
54465         be worked around at run time, not compile time, since a
54466         program might be built on Solaris 8, where things work, and
54467         run on Solaris 10.
54468         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
54469         to use the following interface instead:
54470         (OPENAT_BUFFER_SIZE): New macro.
54471         (openat_proc_name): New function.
54472         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
54473         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
54474         Likewise.
54475         * lib/openat-proc.c: New file.
54476         * modules/openat (Files): Add lib/openat-proc.c.
54477         (Depends-on): Add same-inode, stdbool.
54478         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
54479
54480 2006-09-29  Bruno Haible  <bruno@clisp.org>
54481
54482         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
54483         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
54484         argument. Set stdout_closed before testing for ferror, not after.
54485         (fwriteerror, fwriteerror_no_ebadf): New functions.
54486
54487 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54488
54489         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
54490
54491 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
54492
54493         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
54494         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
54495
54496 2006-09-28  Jim Meyering  <jim@meyering.net>
54497
54498         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
54499         Include <unistd.h>.
54500
54501 2006-09-28  Bruno Haible  <bruno@clisp.org>
54502
54503         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
54504         * modules/linkedhash-list (Depends-on): Likewise.
54505         * modules/rbtreehash-list (Depends-on): Likewise.
54506
54507 2006-09-28  Bruno Haible  <bruno@clisp.org>
54508
54509         * lib/strndup.h: Simplify the redefinition of strndup.
54510         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
54511         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
54512
54513 2006-09-28  Bruno Haible  <bruno@clisp.org>
54514
54515         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
54516         * lib/gl_linkedhash_list.c: Likewise.
54517         * lib/gl_rbtreehash_list.c: Likewise.
54518
54519 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
54520
54521         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
54522         getaddrinfo.
54523
54524         * lib/__fpending.h: Don't include <stdio_ext.h> unless
54525         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
54526         it causes <stdio_ext.h> to cause a compile-time error.
54527         Problem reported by Nelson H. F. Beebe.
54528         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
54529         of HAVE_DECL___PENDING.
54530
54531         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
54532         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
54533         declaration.
54534
54535 2006-09-27  Jim Meyering  <jim@meyering.net>
54536
54537         This file could end up with a definition for a function
54538         named __strndup, rather than rpl_strndup on a system with
54539         incomplete weak_alias support.
54540         * lib/strndup.c (strndup): Rename from __strndup.
54541         Remove #defines that used to map __strndup to strndup.
54542         Don't use K&R prototypes.
54543         Remove LIBC-related code, since this file is not sync'd with glibc.
54544         * lib/strndup.h: Revamp, accordingly.
54545         * m4/strndup.m4: Modernize.
54546
54547 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
54548
54549         * modules/savewd (Depends-on): Add 'raise'.
54550         * lib/savewd.c: Include <signal.h>, for 'raise'.
54551
54552 2006-09-26  Jim Meyering  <jim@meyering.net>
54553
54554         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
54555         when we detect Darwin 8.7.0's acl_get_file bug.
54556         Rearrange to perform the new (below) run-test while $LIBS
54557         contains any acl-related library.  Set USE_ACL at the end.
54558         (gl_ACL_GET_FILE): New function.
54559
54560 2006-09-26  Eric Blake  <ebb9@byu.net>
54561
54562         * lib/verror.c: Include <config.h> unconditionally.
54563
54564 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
54565
54566         * modules/clock-time (Maintainer): Add self.
54567         * modules/getlogin_r (Depends-on): Add extensions.
54568
54569 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54570
54571         * modules/clock-time: New module.
54572         * modules/nanosleep (Depends-on): Add clock-time.
54573         * modules/gethrxtime (Depends-on): Likewise.
54574         * modules/gettime (Depends-on): Likewise.
54575         * modules/settime (Depends-on): Likewise.
54576
54577         * modules/fts-lgpl: Depend on openat.
54578         * modules/mkancesdirs: Depend on savewd.
54579         * modules/mkdir-p: Likewise.
54580
54581 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54582
54583         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
54584
54585         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
54586         `gl_have_arbitrary_file_name_length_limit' to
54587         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
54588         actually works between configure runs.
54589
54590 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54591             Bruno Haible  <bruno@clisp.org>
54592
54593         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
54594
54595 2006-09-25  Jim Meyering  <jim@meyering.net>
54596
54597         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
54598         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
54599
54600 2006-09-25  Eric Blake  <ebb9@byu.net>
54601
54602         * gnulib-tool (func_import, func_create_testdir): Fix typos in
54603         exec's in 2006-09-18 patch when shuffling fds.
54604
54605 2006-09-25  Bruno Haible  <bruno@clisp.org>
54606
54607         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
54608         Reported by Jim Meyering.
54609
54610 2006-09-24  Jim Meyering  <jim@meyering.net>
54611
54612         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
54613         compare a pointer against a literal "0".  That caused failures with
54614         at least HP-UX's hpcc.
54615
54616 2006-09-22  Simon Josefsson  <jas@extundo.com>
54617
54618         * modules/gc-sha1:
54619         * modules/gc-md4:
54620         * modules/gc-hmac-sha1:
54621         * modules/gc-hmac-md5:
54622         * modules/gc-des:
54623         * modules/gc-arcfour: Distribute more files.
54624
54625 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54626
54627         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
54628         (gl_linked_iterator_from_to): Initialize struct completely.
54629         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
54630         (gl_tree_iterator_from_to): Likewise
54631         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
54632         * lib/gl_array_list.c [lint] (gl_array_iterator)
54633         (gl_array_iterator_from_to): Likewise.
54634         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
54635         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
54636         (gl_carray_iterator_from_to): Likewise.
54637
54638         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
54639         * lib/md4.c (md4_process_block): Remove unused variable.
54640         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
54641         parentheses for clarity.
54642
54643 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54644
54645         * modules/bison-i18n (Depends-on): Add gettext.
54646
54647 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54648
54649         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
54650         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
54651         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
54652         also add missing comma that caused broken test.
54653         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
54654         stdlib.h, for `abort'.
54655         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
54656         variables.
54657         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
54658         include unistd.h if present, for `rmdir'.
54659         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
54660         variables.
54661         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
54662         in the process include standard headers for prototypes.
54663         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
54664         gets declared on GNU/Linux.
54665         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
54666         unistd.h, for `rmdir'.
54667         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
54668
54669         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
54670         always true.
54671         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
54672
54673         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
54674
54675 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54676
54677         * gnulib-tool (func_version): Create output all at once.  This
54678         may help avoid triggering unnecessary SIGPIPEs, and at any
54679         rate it doesn't hurt.
54680
54681 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54682             Bruno Haible  <bruno@clisp.org>
54683
54684         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
54685         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54686         * m4/signed.m4 (bh_C_SIGNED): Likewise.
54687
54688         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
54689         (gl_FUNC_VASPRINTF): Invoke it.
54690
54691 2006-09-22  Bruno Haible  <bruno@clisp.org>
54692
54693         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
54694         getloadavg.c as first argument.
54695
54696 2006-09-22  Bruno Haible  <bruno@clisp.org>
54697
54698         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
54699         at the beginning of the gl_INIT macro.
54700         * modules/getloadavg (configure.ac): Pass $gl_source_base to
54701         gl_GETLOADAVG.
54702
54703 2006-09-22  Bruno Haible  <bruno@clisp.org>
54704
54705         * gnulib-tool (func_create_megatestdir): Don't include the config-h
54706         module.
54707         Suggested by Ralf Wildenhues.
54708
54709 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54710
54711         Import this patch from libc:
54712
54713         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
54714
54715         * lib/regex_internal.c (re_string_reconstruct): Handle
54716         offset < pstr->valid_raw_len && pstr->offsets_needed case.
54717         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
54718         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
54719         re_string_context_at.
54720
54721         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
54722         now requires it.
54723         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
54724         gl_REGEX now does it for us.
54725         (gl_REGEX): Add test taken from
54726         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
54727
54728         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
54729         Check that large offsets work.  Modernize Autoconf usages.
54730         Prefer "yes" to mean a good thing rather than a bad.
54731         Don't put "#define mkstemp" in config.h, as this might interfere
54732         with standard system headers that "#define mkstemp mkstemp64".
54733
54734         * modules/mkstemp (Depends-on): Add extensions, so that
54735         mkstemp is visible on some platforms.
54736         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
54737         (Include): Change to "mkstemp.h" from <stdlib.h>.
54738         (Files): Add mkstemp.h.
54739
54740         * lib/mkstemp.h: New file, since some standard headers
54741         #define mkstemp.
54742         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
54743         Include "mkstemp.h".
54744         Make the _LIBC code resemble glibc original more,
54745         e.g., use K&R style.
54746         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
54747         (mkstemp): Remove, since mkstemp.h does this for us.
54748         * lib/stdlib--.h: Include mkstemp.h.
54749
54750         Import this patch from libc:
54751
54752         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
54753
54754         * lib/tempname.c (__gen_tempname): Change attempts_min
54755         into a macro.  Use preprocessor to decide how to initialize
54756         attempts [Coverity CID 67].
54757
54758 2006-09-20  Bruno Haible  <bruno@clisp.org>
54759
54760         * lib/mkdtemp.c: Import from libc.
54761         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
54762                 * sysdeps/posix/tempname.c (__gen_tempname): Change
54763                 attempts_min into a macro.  Use preprocessor to decide how to
54764                 initialize attempts [Coverity CID 67].
54765         2001-11-27  Paul Eggert  <eggert@twinsun.com>
54766                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
54767                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
54768
54769 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54770
54771         * gnulib-tool (func_exit): New function, to allow to pass the
54772         exit status portably through the trap.  Use everywhere.
54773         (--help, --version): Signal a write error.
54774         (trap): catch SIGPIPE, for write errors.
54775         Exit at the end of the trap, with the correct exit status.
54776
54777 2006-09-19  Karl Berry  <karl@gnu.org>
54778
54779         * doc/gnulib.texi: note about the license texinfo files.
54780
54781 2006-09-19  Eric Blake  <ebb9@byu.net>
54782
54783         * gnulib-tool: Avoid space-tab.
54784
54785 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
54786
54787         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
54788         that prevented coreutils 6.1 from building.  Problem reported
54789         by Petter Reinholdtsen.
54790
54791 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
54792
54793         * gnulib-tool (avoidlist): Fix typo that broke options like
54794         --avoid=lock that are used by coreutils bootstrap.
54795
54796 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
54797
54798         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
54799         more systematically.
54800
54801 2006-09-18  Jim Meyering  <jim@meyering.net>
54802
54803         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
54804
54805 2006-09-18  Bruno Haible  <bruno@clisp.org>
54806
54807         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
54808
54809 2006-09-18  Bruno Haible  <bruno@clisp.org>
54810
54811         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
54812         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
54813         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
54814         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
54815         * m4/gettext.m4: Require autoconf >= 2.52.
54816         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
54817         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
54818         of gl_cv_header_inttypes_h.
54819
54820 2006-09-18  Bruno Haible  <bruno@clisp.org>
54821
54822         * lib/javaversion.c: Include configmake.h.
54823
54824 2006-09-18  Bruno Haible  <bruno@clisp.org>
54825
54826         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
54827         avoid that the while loops be executed in a subshell.
54828
54829 2006-09-18  Bruno Haible  <bruno@clisp.org>
54830
54831         * MODULES.html.sh (func_module): Break long lines.
54832         Suggested by Bruce Korb <bkorb@gnu.org>.
54833
54834 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54835
54836         Speed up by a factor of 1.12.
54837         * gnulib-tool (nl): New variable.
54838         (func_import): Rewrite include directive extraction to only read each
54839         directive once.
54840
54841 2006-09-17  Bruno Haible  <bruno@clisp.org>
54842
54843         * modules/javaversion (Makefile.am): Remove DEFS setting.
54844         (Depends-on): Add configmake, for PKGDATADIR definition.
54845
54846 2006-09-17  Bruno Haible  <bruno@clisp.org>
54847
54848         * gnulib-tool (func_create_testdir): Rewrite all files at once.
54849
54850 2006-09-17  Bruno Haible  <bruno@clisp.org>
54851
54852         * gnulib-tool (func_append): New function, stolen from libtool.m4.
54853         (func_modules_transitive_closure, func_modules_add_dummy,
54854         func_modules_to_filelist, func_import, func_create_testdir,
54855         func_create_megatestdir, ...): Use it wherever possible.
54856         Suggested by Ralf Wildenhues.
54857
54858 2006-09-16  Karl Berry  <karl@gnu.org>
54859
54860         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
54861         to avoid sectioning errors.
54862         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
54863         [ifinfo]: blank line after @center-ed titles.
54864         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
54865         Spell FSF address consistently with others.
54866         (These changes approved by rms.)
54867
54868 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54869
54870         Speed up by a factor of 1.61.
54871         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
54872         already checked module names again.
54873
54874 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54875
54876         Speed up by a factor of 1.13.
54877         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
54878         for new_files, and the input to func_add_or_update.
54879
54880 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54881
54882         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
54883         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
54884
54885 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54886
54887         * modules/mkancesdirs (Depends-on): Add fcntl.
54888         * modules/savewd: New file.
54889         * MODULES.html.sh (File system functions): Add savewd.
54890
54891         * modules/configmake (Makefile.am): Add support for the
54892         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
54893
54894 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54895
54896         * m4/savewd.m4: New file.
54897
54898 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54899
54900         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
54901         (dirchownmod): New arg FD.  All callers changed.
54902         Use FD rather than opening the directory ourself, as opening is
54903         now the caller's responsibility.
54904         * lib/dirchownmod.h: Likewise.
54905         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
54906         hosts that require <sys/types.h> before <sys/stat.h>.  Include
54907         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
54908         (test_dir): Remove.
54909         (mkancesdirs): Return length of prefix of FILE that has already
54910         been made, or -2 if there is a child doing the work.  Redo
54911         algorithm so that it is O(N) rather than O(N**2).  Optimize away
54912         ".", and treat ".." specially since it might stray back into
54913         already-created areas.  Use a subprocess if necessary.  New arg
54914         WD; all users changed.  MAKE_DIR function should now return 1
54915         if it creates a directory that is not readable.  Return -2 if
54916         a child process is spun off.
54917         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
54918         Adjust signature to match code.
54919         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
54920         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
54921         all users changed.
54922         * lib/savewd.c, lib/savewd.h: New files.
54923
54924 2006-09-15  Jim Meyering  <jim@meyering.net>
54925
54926         * modules/rename-dest-slash: New module.
54927         * MODULES.html.sh (posix_compat): Add it here.
54928
54929         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
54930
54931 2006-09-15  Jim Meyering  <jim@meyering.net>
54932
54933         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
54934         file.
54935
54936         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
54937
54938 2006-09-15  Jim Meyering  <jim@meyering.net>
54939
54940         * lib/rename-dest-slash.c (has_trailing_slash): Use
54941         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
54942         (rpl_rename_dest_slash): Perform the cheaper trailing slash
54943         test before testing whether SRC is a directory.
54944         Suggestions from Bruno Haible.
54945
54946         Avoid a warning about an unused variable.
54947         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
54948         into the #ifdef block where it's used.
54949
54950         * lib/rename-dest-slash.c: New file.
54951
54952 2006-09-14  Bruno Haible  <bruno@clisp.org>
54953
54954         * lib/allocsa.c: Include <config.h> unconditionally.
54955         * lib/asnprintf.c: Likewise.
54956         * lib/asprintf.c: Likewise.
54957         * lib/c-strcasecmp.c: Likewise.
54958         * lib/c-strcasestr.c: Likewise.
54959         * lib/c-strncasecmp.c: Likewise.
54960         * lib/c-strstr.c: Likewise.
54961         * lib/classpath.c: Likewise.
54962         * lib/clean-temp.c: Likewise.
54963         * lib/concatpath.c: Likewise.
54964         * lib/copy-file.c: Likewise.
54965         * lib/csharpcomp.c: Likewise.
54966         * lib/csharpexec.c: Likewise.
54967         * lib/execute.c: Likewise.
54968         * lib/fatal-signal.c: Likewise.
54969         * lib/findprog.c: Likewise.
54970         * lib/fwriteerror.c: Likewise.
54971         * lib/gl_array_list.c: Likewise.
54972         * lib/gl_array_oset.c: Likewise.
54973         * lib/gl_avltree_list.c: Likewise.
54974         * lib/gl_avltree_oset.c: Likewise.
54975         * lib/gl_avltreehash_list.c: Likewise.
54976         * lib/gl_carray_list.c: Likewise.
54977         * lib/gl_linked_list.c: Likewise.
54978         * lib/gl_linkedhash_list.c: Likewise.
54979         * lib/gl_list.c: Likewise.
54980         * lib/gl_oset.c: Likewise.
54981         * lib/gl_rbtree_list.c: Likewise.
54982         * lib/gl_rbtree_oset.c: Likewise.
54983         * lib/gl_rbtreehash_list.c: Likewise.
54984         * lib/imaxabs.c: Likewise.
54985         * lib/imaxdiv.c: Likewise.
54986         * lib/javacomp.c: Likewise.
54987         * lib/javaexec.c: Likewise.
54988         * lib/javaversion.c: Likewise.
54989         * lib/linebreak.c: Likewise.
54990         * lib/localcharset.c: Likewise.
54991         * lib/lock.c: Likewise.
54992         * lib/mbchar.c: Likewise.
54993         * lib/mbswidth.c: Likewise.
54994         * lib/mkdtemp.c: Likewise.
54995         * lib/pipe.c: Likewise.
54996         * lib/printf-args.c: Likewise.
54997         * lib/printf-parse.c: Likewise.
54998         * lib/progname.c: Likewise.
54999         * lib/progreloc.c: Likewise.
55000         * lib/readlink.c: Likewise.
55001         * lib/sh-quote.c: Likewise.
55002         * lib/stpcpy.c: Likewise.
55003         * lib/stpncpy.c: Likewise.
55004         * lib/strcasecmp.c: Likewise.
55005         * lib/strcasestr.c: Likewise.
55006         * lib/strcspn.c: Likewise.
55007         * lib/striconv.c: Likewise.
55008         * lib/strncasecmp.c: Likewise.
55009         * lib/strnlen1.c: Likewise.
55010         * lib/strstr.c: Likewise.
55011         * lib/strtok_r.c: Likewise.
55012         * lib/tls.c: Likewise.
55013         * lib/tmpdir.c: Likewise.
55014         * lib/unicodeio.c: Likewise.
55015         * lib/unsetenv.c: Likewise.
55016         * lib/vasnprintf.c: Likewise.
55017         * lib/vasprintf.c: Likewise.
55018         * lib/wait-process.c: Likewise.
55019         * lib/xallocsa.c: Likewise.
55020         * lib/xsetenv.c: Likewise.
55021         * lib/xstriconv.c: Likewise.
55022
55023 2006-09-13  Simon Josefsson  <jas@extundo.com>
55024
55025         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
55026         that internally, suggested by Ralf Wildenhues
55027         <Ralf.Wildenhues@gmx.de>.
55028
55029 2006-09-13  Simon Josefsson  <jas@extundo.com>
55030
55031         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
55032         @LIBOBJS@.
55033         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55034
55035 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55036
55037         * lib/_fpending.c: Include <config.h> unconditionally, since we no
55038         longer worry about uses that don't define HAVE_CONFIG_H.
55039         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
55040         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
55041         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
55042         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
55043         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
55044         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
55045         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
55046         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
55047         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
55048         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
55049         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
55050         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
55051         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
55052         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
55053         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
55054         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
55055         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
55056         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
55057         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
55058         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
55059         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
55060         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
55061         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
55062         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
55063         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
55064         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
55065         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
55066         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
55067         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
55068         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
55069         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
55070         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
55071         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
55072         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
55073         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
55074         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
55075         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
55076         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
55077         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
55078         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
55079         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
55080         Likewise.
55081
55082 2006-09-13  Eric Blake  <ebb9@byu.net>
55083
55084         * lib/getopt.c: Fix typo in last commit.
55085
55086 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55087
55088         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
55089         dgettext.
55090
55091 2006-09-12  Jim Meyering  <jim@meyering.net>
55092
55093         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
55094         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
55095         Reported by Nelson H. F. Beebe.
55096
55097 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55098
55099         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
55100         program_invocation_name and program_invocation_short_name are
55101         initialized.
55102         * lib/argp-namefrob.h: Move declarations of program_invocation_name
55103         and program_invocation_short_name to argp.h, so they are visible
55104         to user programs.
55105         * lib/argp.h: Likewise
55106
55107 2006-09-10  Bruno Haible  <bruno@clisp.org>
55108
55109         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
55110         m4/inttypes_h.m4, m4/uintmax_t.m4.
55111
55112 2006-09-10  Bruno Haible  <bruno@clisp.org>
55113
55114         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
55115         gl_AC_TYPE_UINTMAX_T.
55116
55117 2006-09-10  Bruno Haible  <bruno@clisp.org>
55118
55119         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
55120
55121 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55122
55123         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
55124         convention.  Text proposed by Bruno Haible.
55125         (struct argp_option): Document the use of N_() wrappers.
55126
55127         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
55128         '\v', and translate the two parts separately, instead of feeding
55129         the whole string to gettext.  This allows to exclude
55130         '\v' from the strings visible to the translator by writing doc
55131         strings as N_("..") "\v" N_("..").
55132
55133 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
55134
55135         * config/srclist.txt: Undo latest change; the bug was fixed.
55136
55137 2006-09-09  Bruno Haible  <bruno@clisp.org>
55138
55139         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
55140         assignments if building a library without libtool.
55141         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
55142         in func_emit_lib_Makefile_am.
55143         (func_import): When building a static library libfoo.a, arrange to
55144         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
55145         (func_create_testdir): Likewise.
55146         * modules/gc (configure.ac, Makefile.am): If building statically,
55147         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
55148         * modules/iconvme (configure.ac, Makefile.am): Likewise.
55149         * modules/striconv (configure.ac, Makefile.am): Likewise.
55150         Based on a suggestion by Ralf Wildenhues.
55151
55152 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55153
55154         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
55155         Check for unistd.h too, since Autoconf doesn't assume POSIX.
55156         Also:
55157
55158         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55159         Add year_2050_test to catch glibc bug 2821
55160         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
55161
55162         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55163         Prefer #ifdef to #if.
55164
55165         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
55166         Return from 'main' instead of calling 'exit'.
55167
55168 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55169
55170         * lib/mktime.c (guess_time_tm): Fix bug where mktime
55171         returned the maximum time_t value rather than (time_t) -1.
55172         Problem originally reported by William Bardwell
55173         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
55174
55175         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
55176         Moved to here ...
55177         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
55178         ... from here.
55179
55180 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55181
55182         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
55183         2821 is fixed.
55184
55185 2006-09-08  Jim Meyering  <jim@meyering.net>
55186
55187         Don't make generated files read-only.  That would bother too many
55188         people.  However, do retain the ability to work when targets are
55189         read-only: remove the destination and temporary files before writing
55190         them (when generated via sed or echo), or by using the -f option for
55191         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
55192         * modules/alloca-opt, modules/argz, modules/arpa_inet:
55193         * modules/byteswap, modules/configmake, modules/fcntl:
55194         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
55195         * modules/localcharset, modules/netinet_in, modules/poll:
55196         * modules/stdbool, modules/stdint, modules/sys_select:
55197         * modules/sys_socket, modules/sys_stat, modules/sysexits:
55198
55199 2006-09-08  Jim Meyering  <jim@meyering.net>
55200
55201         Avoid new build failure on FreeBSD 6.0.
55202         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
55203         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
55204         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
55205
55206 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55207
55208         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
55209
55210 2006-09-07  Jim Meyering  <jim@meyering.net>
55211
55212         Fix global typo in last change: use chmod u-w, not chmod u-x.
55213         Spotted by Paul Eggert and Bruce Korb.
55214         * modules/alloca-opt, modules/argz, modules/arpa_inet:
55215         * modules/byteswap, modules/configmake, modules/fcntl:
55216         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
55217         * modules/localcharset, modules/netinet_in, modules/poll:
55218         * modules/stdbool, modules/stdint, modules/sys_select:
55219         * modules/sys_socket, modules/sys_stat, modules/sysexits:
55220
55221 2006-09-06  Jim Meyering  <jim@meyering.net>
55222
55223         Make generated files be read-only.
55224         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
55225         Ensure that each generated file is now read-only.
55226         * modules/argz: Likewise.
55227         * modules/arpa_inet: Likewise.
55228         * modules/byteswap: Likewise.
55229         * modules/configmake: Likewise.
55230         * modules/fcntl: Likewise.
55231         * modules/fnmatch: Likewise.
55232         * modules/getopt: Likewise.
55233         * modules/glob: Likewise.
55234         * modules/inttypes: Likewise.
55235         * modules/netinet_in: Likewise.
55236         * modules/poll: Likewise.
55237         * modules/stdbool: Likewise.
55238         * modules/stdint: Likewise.
55239         * modules/sys_select: Likewise.
55240         * modules/sys_socket: Likewise.
55241         * modules/sys_stat: Likewise.
55242         * modules/sysexits: Likewise.
55243         * modules/localcharset: Same as above, but continue using temporary
55244         file named "t-$@" (why different?) rather than the "$@-t" used
55245         everywhere else.
55246
55247         * modules/sysexits (Makefile.am): Replace literal occurrences
55248         of "sysexit.h" more readable, and more consistent, "$@".
55249
55250 2006-09-06  Bruno Haible  <bruno@clisp.org>
55251
55252         * modules/striconv: New file.
55253         * modules/xstriconv: New file.
55254         * MODULES.html.sh (Internationalization functions): Add striconv,
55255         xstriconv.
55256
55257 2006-09-06  Bruno Haible  <bruno@clisp.org>
55258
55259         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
55260         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
55261         not using libtool correctly.
55262
55263 2006-09-06  Bruno Haible  <bruno@clisp.org>
55264
55265         * lib/striconv.h: New file.
55266         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
55267         iconvstring.c.
55268         * lib/xstriconv.h: New file.
55269         * lib/xstriconv.c: New file.
55270
55271 2006-09-06  Bruno Haible  <bruno@clisp.org>
55272
55273         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55274         lib_..._LDFLAGS.
55275
55276 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55277
55278         * lib/argz_.h: Sync from Libtool.
55279
55280         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
55281                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
55282
55283         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
55284
55285 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
55286
55287         * modules/trim: New file.
55288
55289 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
55290
55291         * lib/trim.h: New file.
55292         * lib/trim.c: New file.
55293
55294 2006-09-05  Bruno Haible  <bruno@clisp.org>
55295
55296         * MODULES.html.sh (String handling): Add trim.
55297
55298 2006-09-04  Karl Berry  <karl@gnu.org>
55299
55300         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
55301         until next release.
55302
55303 2006-09-03  Bruno Haible  <bruno@clisp.org>
55304
55305         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
55306         correctly.
55307
55308 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55309
55310         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
55311         not gl_GETLOADAVG.  Omit unneeded semicolons.
55312         Problems reported by Ralf Wildenhues in
55313         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
55314         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
55315         at the end, which is the usual gnulib style.
55316
55317         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
55318         of doing all the work ourselves.
55319         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
55320         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
55321
55322 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55323
55324         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
55325         Problem reported by Ralf Wildenhues in
55326         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
55327
55328         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
55329         HAVE_STRUCT_STATFS_F_FSTYPENAME.
55330
55331 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55332
55333         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
55334         yesterday's patch by changing test -n to test -z.
55335
55336 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55337
55338         * modules/getloadavg (Files): Add m4/getloadavg.m4.
55339         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
55340         the former is now obsolescent.
55341
55342         * modules/chdir-long (Depends-on): Add fcntl.
55343
55344 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55345
55346         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
55347         obsolescent, and programs should use gnulib instead.
55348         * m4/getloadavg.m4: New file, with contents taken from Autoconf
55349         but with prefixes changed.
55350
55351 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55352
55353         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
55354         or stdbool.h, because they might not exist while configuring.
55355
55356         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
55357         Don't include unistd.h or limits.h; not needed, since chdir-long.h
55358         does that for us.
55359         (O_DIRECTORY): Remove.
55360
55361 2006-08-31  Eric Blake  <ebb9@byu.net>
55362
55363         * gnulib-tool: Don't let emacs change spaces to TAB.
55364
55365 2006-08-31  Bruno Haible  <bruno@clisp.org>
55366
55367         * gnulib-tool: When calling func_import more than once, do it in a
55368         subshell.
55369         Reported by Eric Blake <ebb9@byu.net>.
55370
55371 2006-08-31  Bruno Haible  <bruno@clisp.org>
55372
55373         * gnulib-tool (nl): Remove variable.
55374         (sed_transform_lib_file): Use more robust test for config-h module.
55375         (func_import): Fix typo in 2006-08-25 patch.
55376
55377 2006-08-31  Bruno Haible  <bruno@clisp.org>
55378
55379         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
55380         specified, augment Makefile.am variables instead of assigning them.
55381
55382 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
55383
55384         Work around a bug in both the Linux and SunOS 64-bit kernels:
55385         nanosleep mishandles sleeps for longer than 2**31 seconds.
55386         Problem reported by Frank v Waveren in
55387         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
55388         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
55389         Check for nanosleep bug.
55390         (LIB_NANOSLEEP): Append clock_gettime library if needed.
55391
55392 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
55393
55394         Work around a bug in both the Linux and SunOS 64-bit kernels:
55395         nanosleep mishandles sleeps for longer than 2**31 seconds.
55396         Problem reported by Frank v Waveren in
55397         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
55398         * lib/nanosleep.c (BILLION): New constant.
55399         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
55400         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
55401         implementation.
55402
55403 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
55404
55405         * modules/nanosleep (Depends-on): Add gettime.
55406
55407 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
55408         and Simon Josefsson  <jas@extundo.com>
55409         and Oskar Liljeblad  <oskar@osk.mine.nu>
55410
55411         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
55412         * gnulib-tool (func_import): New license type 'unmodifiable license
55413         text'.
55414         * modules/fdl: Use it.  Longer description.
55415         * module/gpl, module/lgpl: New files.
55416
55417 2006-08-30  Jim Meyering  <jim@meyering.net>
55418
55419         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
55420         shadowing the parameter.
55421
55422 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55423
55424         Sync from Libtool:
55425
55426         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55427
55428         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
55429         sharing with gnulib.  Report by Eric Blake.
55430
55431 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
55432
55433         * modules/isapipe: New file.
55434         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
55435
55436 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
55437
55438         * modules/configmake (Makefile.am): Add a comment, and omit
55439         the CONFIGMAKE_ prefix from generated macro names.  Suggested
55440         by Bruno Haible.
55441
55442 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
55443
55444         * m4/isapipe.m4: New file.
55445
55446 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
55447
55448         * lib/isapipe.c, lib/isapipe.h: New files.
55449
55450 2006-08-29  Jim Meyering  <jim@meyering.net>
55451
55452         * modules/configmake (Makefile.am): Make configmake.h depend on
55453         Makefile.  Otherwise, a stale configmake.h could hang around.
55454
55455 2006-08-29  Eric Blake  <ebb9@byu.net>
55456
55457         * lib/error.c (error_at_line, print_errno_message): Match libc, after
55458         resolution of upstream bug 3044.
55459
55460 2006-08-29  Bruno Haible  <bruno@clisp.org>
55461
55462         * modules/localcharset (Depends-on): Add configmake.
55463         (Makefile.am): Remove setting of LIBDIR through DEFS.
55464
55465 2006-08-29  Bruno Haible  <bruno@clisp.org>
55466
55467         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
55468         defined.
55469
55470 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
55471
55472         * modules/fcntl: New file.
55473         * modules/chdir-safer (Depends-on): Add fcntl.
55474         * modules/fts: Likewise.
55475         * modules/mkdir-p: Likewise.
55476
55477         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
55478         This undoes the most recent change, since we're now addressing the
55479         problem in a different way.
55480
55481         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
55482         into output, since the output might be called Makefile.am even
55483         if $makefile_name is something different.
55484         (func_import): Use $makefile_am rather than
55485         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
55486         empty.
55487
55488         * modules/inttypes (Files): Add m4/inttypes-h.m4.
55489
55490 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
55491
55492         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
55493         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
55494         recent change to stdint.m4, since we're now addressing the problem in a
55495         different way.
55496
55497 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
55498
55499         * m4/fcntl_h.m4: New file.
55500
55501 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
55502
55503         * lib/fcntl_.h: New file.
55504         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
55505         the fcntl module.
55506         * lib/dirchownmod.c: Likewise.
55507         * lib/fts.c: Likewise.
55508
55509         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
55510         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
55511         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
55512         just before including <inttypes.h>, to avoid circular inclusion.
55513
55514 2006-08-28  Jim Meyering  <jim@meyering.net>
55515
55516         * doc/visibility.texi: Actually read and correct the grammar of the
55517         sentence affected by yesterday's change.
55518
55519 2006-08-28  Eric Blake  <ebb9@byu.net>
55520
55521         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
55522         needs wrapper.
55523
55524 2006-08-28  Eric Blake  <ebb9@byu.net>
55525
55526         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
55527
55528 2006-08-28  Eric Blake  <ebb9@byu.net>
55529
55530         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
55531
55532 2006-08-28  Bruno Haible  <bruno@clisp.org>
55533
55534         * modules/c-strstr: New file, from GNU gettext.
55535         * MODULES.html.sh (String handling): Add c-strstr.
55536
55537 2006-08-28  Bruno Haible  <bruno@clisp.org>
55538
55539         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
55540         macros.
55541         Reported by Eric Blake.
55542
55543 2006-08-28  Bruno Haible  <bruno@clisp.org>
55544
55545         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
55546         (VASNPRINTF): Return a string of length > INT_MAX without failing.
55547         * lib/vasprintf.c: Include errno.h, limits.h.
55548         (EOVERFLOW): New fallback definition.
55549         (vasprintf): Test here whether the string length is > INT_MAX.
55550         * lib/vsnprintf.c: Include errno.h, limits.h.
55551         (EOVERFLOW): New fallback definition.
55552         (vsnprintf): Fix bug when generated string was too long for the buffer.
55553         Test here whether the string length is > INT_MAX.
55554
55555 2006-08-28  Bruno Haible  <bruno@clisp.org>
55556
55557         * lib/inttypes_.h (SCNX*): Remove definitions.
55558         Reported by Eric Blake.
55559
55560 2006-08-28  Bruno Haible  <bruno@clisp.org>
55561
55562         * lib/c-strstr.h: New file, from GNU gettext.
55563         * lib/c-strstr.c: New file, from GNU gettext.
55564
55565 2006-08-28  Bruno Haible  <bruno@clisp.org>
55566
55567         * gnulib-tool: Reorder some statements.
55568
55569 2006-08-28  Bruno Haible  <bruno@clisp.org>
55570
55571         * gnulib-tool: New option --makefile-name.
55572         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
55573         $makefile_name.
55574         (func_import): Write $makefile_name to the cache file, and read it from
55575         there unless explicitly specified. Use $makefile_name as file name
55576         instead of Makefile.am. Adjust the recommendations accordingly.
55577
55578 2006-08-28  Bruno Haible  <bruno@clisp.org>
55579
55580         * gnulib-tool (func_verify_module): Check against misapplying patch.
55581
55582 2006-08-28  Bruno Haible  <bruno@clisp.org>
55583
55584         * gnulib-tool (func_relativize, func_relconcat): New functions.
55585         Give an error if --local-dir is given with --update.
55586         Remove trailing slashes from $local_gnulib_dir.
55587         (func_import): Store the relativized $local_gnulib_dir in
55588         gnulib-cache.m4, and read it from there if not specified explicitly.
55589
55590 2006-08-28  Bruno Haible  <bruno@clisp.org>
55591
55592         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
55593         is the current directory. Respect also $local_gnulib_dir.
55594
55595 2006-08-28  Bruno Haible  <bruno@clisp.org>
55596             Simon Josefsson  <jas@extundo.com>
55597
55598         BeOS portability.
55599         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
55600
55601 2006-08-27  Jim Meyering  <jim@meyering.net>
55602
55603         * doc/visibility.texi: Remove duplicate word: "pointer".
55604
55605 2006-08-26  Bruno Haible  <bruno@clisp.org>
55606
55607         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
55608         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
55609         (Makefile.am): Create inttypes.h from inttypes_.h.
55610         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
55611
55612         * modules/imaxabs: New file.
55613
55614         * modules/imaxdiv: New file.
55615
55616 2006-08-26  Bruno Haible  <bruno@clisp.org>
55617
55618         * m4/inttypes.m4: New file.
55619         * m4/_inttypes_h.m4: Remove file.
55620         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
55621         PRI_MACROS_BROKEN.
55622         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
55623
55624         * m4/imaxabs.m4: New file.
55625
55626         * m4/imaxdiv.m4: New file.
55627
55628 2006-08-26  Bruno Haible  <bruno@clisp.org>
55629
55630         * lib/inttypes_.h: New file.
55631         * lib/inttypes.h: Remove file.
55632         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
55633
55634         * lib/imaxabs.c: New file.
55635
55636         * lib/imaxdiv.c: New file.
55637
55638 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55639
55640         New config-h module, so that "make" output needn't be cluttered
55641         by -DHAVE_CONFIG_H.
55642         * MODULES.html.sh (Support for building libraries and executables):
55643         Add config-h.
55644         * modules/config-h: New file.
55645         * gnulib-tool (nl, sed_transform_lib_file): New vars.
55646         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
55647         the config-h module is used.
55648
55649         New configmake module, so that "make" output needn't be cluttered
55650         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
55651         * MODULES.html.sh (Support for building libraries and executables):
55652         Add configmake.
55653         * modules/configmake: New file.
55654
55655 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55656
55657         * m4/config-h.m4: New file.
55658
55659 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55660
55661         * config/srclist.txt: Add elisp-comp.
55662
55663 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55664
55665         * MODULES.html.sh (Support for building libraries and executables):
55666         Add elisp-comp.
55667         * build-aux/elisp-comp: New file.
55668         * modules/elisp-comp: New file.
55669
55670 2006-08-24  Bruno Haible  <bruno@clisp.org>
55671
55672         * gnulib-tool (func_create_testdir): Use non-default values of
55673         sourcebase and m4base.
55674
55675 2006-08-24  Bruno Haible  <bruno@clisp.org>
55676
55677         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
55678         HTML structure.
55679
55680 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55681
55682         * modules/openat (Depends-on): Add lchown.
55683
55684 2006-08-23  Bruno Haible  <bruno@clisp.org>
55685
55686         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
55687         of gl_LOCK_EARLY instead of gl_LOCK.
55688
55689 2006-08-23  Bruno Haible  <bruno@clisp.org>
55690
55691         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
55692         on OSF/1 to no.
55693         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
55694
55695 2006-08-23  Bruno Haible  <bruno@clisp.org>
55696
55697         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
55698         as unusable.
55699
55700         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
55701         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
55702         (gl_LOCK): New macro.
55703
55704 2006-08-22  Simon Josefsson  <jas@extundo.com>
55705
55706         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
55707         to md5 module.
55708
55709 2006-08-22  Simon Josefsson  <jas@extundo.com>
55710
55711         * MODULES.html.sh: Add "Support for maintaining and release
55712         projects".
55713
55714         * build-aux/gnupload: New file, from coreutils.
55715
55716 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
55717
55718         Avoid the need for AC_LIBSOURCES in m4 macros.
55719         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
55720         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
55721         * modules/check-version (EXTRA_DIST): Add check-version.h.
55722         * modules/crc (EXTRA_DIST): Add crc.h.
55723         * modules/des (EXTRA_DIST): Add des.h.
55724         * modules/gc (EXTRA_DIST): Add gc.h.
55725         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
55726         * modules/getline (EXTRA_DIST): Add getline.h.
55727         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
55728         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
55729         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
55730         * modules/md2 (EXTRA_DIST): Add md2.h.
55731         * modules/md4 (EXTRA_DIST): Add md4.h.
55732         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
55733         * modules/read-file (EXTRA_DIST): Add read-file.h.
55734         * modules/readline (EXTRA_DIST): Add readline.h.
55735         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
55736         rijndael-api-fst.h.
55737
55738 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
55739
55740         * m4/rijndael.m4 (gl_ARCFOUR):
55741         * m4/arctwo.m4 (gl_ARCTWO):
55742         * m4/check-version.m4 (gl_CHECK_VERSION):
55743         * m4/crc.m4 (gl_CRC):
55744         * m4/des.m4 (gl_DES):
55745         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
55746         * m4/gc.m4 (gl_GC):
55747         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
55748         * m4/getline.m4 (gl_FUNC_GETLINE):
55749         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
55750         * m4/hmac-md5.m4 (gl_HMAC_MD5):
55751         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
55752         * m4/md2.m4 (gl_MD2):
55753         * m4/md4.m4 (gl_MD4):
55754         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
55755         * m4/read-file.m4 (gl_FUNC_READ_FILE):
55756         * m4/readline.m4 (gl_FUNC_READLINE):
55757         * m4/rijndael.m4 (gl_RIJNDAEL):
55758         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
55759         to get the necessary .h files and whatnot.
55760
55761 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
55762
55763         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
55764         gnulib rather than the other way around.
55765         * config/srclistvars.sh (COREUTILS): Remove.
55766
55767 2006-08-22  Jim Meyering  <jim@meyering.net>
55768
55769         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
55770
55771         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
55772
55773 2006-08-22  Eric Blake  <ebb9@byu.net>
55774
55775         * modules/regexprops-generic: New file.
55776         * MODULES.html.sh (Support for building documentation): List it.
55777
55778 2006-08-22  Eric Blake  <ebb9@byu.net>
55779
55780         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
55781         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
55782         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
55783         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
55784
55785 2006-08-22  Bruno Haible  <bruno@clisp.org>
55786
55787         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
55788         and lib_LTLIBRARIES like the other lib_* variables.
55789
55790 2006-08-22  Bruno Haible  <bruno@clisp.org>
55791
55792         * build-aux/x-to-1.in: New file, from GNU gettext.
55793
55794 2006-08-22  Bruno Haible  <bruno@clisp.org>
55795
55796         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
55797         <utmpx.h> exists.
55798
55799 2006-08-22  Bruno Haible  <bruno@clisp.org>
55800
55801         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
55802         <utmpx.h> exists.
55803
55804 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
55805
55806         BeOS portability.
55807         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
55808         exist.
55809         Problem reported by Bruno Haible.
55810
55811 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
55812
55813         Avoid the need for AC_LIBSOURCES in m4 macros.
55814         * modules/acl (EXTRA_DIST): Add acl.h.
55815         * modules/argmatch (Files): Add m4/argmatch.m4.
55816         (configure.ac): Add gl_ARGMATCH.
55817         (EXTRA_DIST): Renamed from lib_SOURCES, for
55818         consistency with the other modules.  Remove argmatch.c.
55819         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
55820         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
55821         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
55822         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
55823         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
55824         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
55825         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
55826         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
55827         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
55828         * modules/closeout (EXTRA_DIST): Add closeout.h.
55829         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
55830         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
55831         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
55832         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
55833         dirname.h; remove basename.c and stripslash.c.
55834         * modules/exclude (EXTRA_DIST): Add exclude.h.
55835         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
55836         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
55837         * modules/file-type (EXTRA_DIST): Add file-type.h.
55838         * modules/filemode (EXTRA_DIST): Add filemode.h.
55839         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
55840         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
55841         * modules/fpending (EXTRA_DIST): Add __fpending.h.
55842         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
55843         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
55844         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
55845         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
55846         * modules/getdate (EXTRA_DIST): Add getdate.c.
55847         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
55848         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
55849         * modules/getpass (EXTRA_DIST): Add getpass.h.
55850         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
55851         * modules/group-member (EXTRA_DIST): Add group-member.h.
55852         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
55853         * modules/hash (EXTRA_DIST): Add hash.h.
55854         * modules/human (EXTRA_DIST): Add human.h.
55855         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
55856         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
55857         * modules/lchown (EXTRA_DIST): Add lchown.h.
55858         * modules/long-options (EXTRA_DIST): Add long-options.h.
55859         * modules/lstat (EXTRA_DIST): Add lstat.h.
55860         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
55861         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
55862         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
55863         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
55864         * modules/memxor (EXTRA_DIST): Add memxor.h.
55865         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
55866         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
55867         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
55868         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
55869         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
55870         * modules/physmem (EXTRA_DIST): Add physmem.h.
55871         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
55872         * modules/posixver (EXTRA_DIST): Add posixver.h.
55873         * modules/quote (EXTRA_DIST): Add quote.h.
55874         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
55875         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
55876         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
55877         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
55878         regex_internal.h regexec.c.
55879         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
55880         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
55881         * modules/same (EXTRA_DIST): Add same.h.
55882         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
55883         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
55884         * modules/savedir (EXTRA_DIST): Add savedir.h.
55885         * modules/sha1 (EXTRA_DIST): Add sha1.h.
55886         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
55887         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
55888         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
55889         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
55890         * modules/strdup (EXTRA_DIST): Add strdup.h.
55891         * modules/strftime (EXTRA_DIST): Add strftime.h.
55892         * modules/strndup (EXTRA_DIST): Add strndup.h.
55893         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
55894         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
55895         * modules/time_r (EXTRA_DIST): Add time_r.h.
55896         * modules/timespec (EXTRA_DIST): Add timespec.h.
55897         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
55898         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
55899         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
55900         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
55901         * modules/userspec (EXTRA_DIST): Add userspec.h.
55902         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
55903         * modules/utimens (EXTRA_DIST): Add utimens.h.
55904         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
55905         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
55906         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
55907         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
55908         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
55909         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
55910         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
55911         * modules/yesno (EXTRA_DIST): Add yesno.h.
55912
55913 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
55914
55915         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
55916
55917         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
55918         * m4/dev-ino.m4, same-inode.m4: Remove.
55919
55920         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
55921         * m4/acl.m4 (AC_FUNC_ACL):
55922         * m4/backupfile.m4 (gl_BACKUPFILE):
55923         * m4/c-strtod.m4 (gl_C99_STRTOLD):
55924         * m4/canon-host.m4 (gl_CANON_HOST):
55925         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
55926         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
55927         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
55928         * m4/cloexec.m4 (gl_CLOEXEC):
55929         * m4/close-stream.m4 (gl_CLOSE_STREAM):
55930         * m4/closeout.m4 (gl_CLOSEOUT):
55931         * m4/dirfd.m4 (gl_FUNC_DIRFD):
55932         * m4/dirname.m4 (gl_DIRNAME):
55933         * m4/exclude.m4 (gl_EXCLUDE):
55934         * m4/exitfail.m4 (gl_EXITFAIL):
55935         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
55936         * m4/file-type.m4 (gl_FILE_TYPE):
55937         * m4/filemode.m4 (gl_FILEMODE):
55938         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
55939         * m4/fpending.m4 (gl_FUNC_FPENDING):
55940         * m4/fprintftime.m4 (gl_FPRINTFTIME):
55941         * m4/fts.m4 (gl_FUNC_FTS):
55942         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
55943         * m4/getdate.m4 (gl_GETDATE):
55944         * m4/gethrxtime.m4 (gl_GETHRXTIME):
55945         * m4/getpagesize.m4 (gl_GETPAGESIZE):
55946         * m4/getpass.m4 (gl_FUNC_GETPASS):
55947         * m4/gettime.m4 (gl_GETTIME):
55948         * m4/getugroups.m4 (gl_GETUGROUPS):
55949         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
55950         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
55951         * m4/hard-locale.m4 (gl_HARD_LOCALE):
55952         * m4/hash.m4 (gl_HASH):
55953         * m4/idcache.m4 (gl_IDCACHE):
55954         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
55955         * m4/lchown.m4 (gl_FUNC_LCHOWN):
55956         * m4/long-options.m4 (gl_LONG_OPTIONS):
55957         * m4/lstat.m4 (gl_FUNC_LSTAT):
55958         * m4/md5.m4 (gl_MD5):
55959         * m4/memcasecmp.m4 (gl_MEMCASECMP):
55960         * m4/memcoll.m4 (gl_MEMCOLL):
55961         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
55962         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
55963         * m4/memxor.m4 (gl_MEMXOR):
55964         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
55965         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
55966         * m4/modechange.m4 (gl_MODECHANGE):
55967         * m4/mountlist.m4 (gl_MOUNTLIST):
55968         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55969         * m4/openat.m4 (gl_FUNC_OPENAT):
55970         * m4/pathmax.m4 (gl_PATHMAX):
55971         * m4/physmem.m4 (gl_PHYSMEM):
55972         * m4/posixtm.m4 (gl_POSIXTM):
55973         * m4/posixver.m4 (gl_POSIXVER):
55974         * m4/quote.m4 (gl_QUOTE):
55975         * m4/quotearg.m4 (gl_QUOTEARG):
55976         * m4/readtokens.m4 (gl_READTOKENS):
55977         * m4/readutmp.m4 (gl_READUTMP):
55978         * m4/regex.m4 (gl_REGEX):
55979         * m4/safe-read.m4 (gl_SAFE_READ):
55980         * m4/safe-write.m4 (gl_SAFE_WRITE):
55981         * m4/same.m4 (gl_SAME):
55982         * m4/save-cwd.m4 (gl_SAVE_CWD):
55983         * m4/savedir.m4 (gl_SAVEDIR):
55984         * m4/settime.m4 (gl_SETTIME):
55985         * m4/sha1.m4 (gl_SHA1):
55986         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
55987         * m4/stat-macros.m4 (gl_STAT_MACROS):
55988         * m4/stat-time.m4 (gl_STAT_TIME):
55989         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
55990         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
55991         * m4/strdup.m4 (gl_FUNC_STRDUP):
55992         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
55993         * m4/strndup.m4 (gl_FUNC_STRNDUP):
55994         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
55995         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
55996         * m4/time_r.m4 (gl_TIME_R):
55997         * m4/timespec.m4 (gl_TIMESPEC):
55998         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
55999         * m4/unlinkdir.m4 (gl_UNLINKDIR):
56000         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
56001         * m4/userspec.m4 (gl_USERSPEC):
56002         * m4/utimecmp.m4 (gl_UTIMECMP):
56003         * m4/utimens.m4 (gl_UTIMENS):
56004         * m4/xalloc.m4 (gl_XALLOC):
56005         * m4/xgetcwd.m4 (gl_XGETCWD):
56006         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
56007         * m4/xreadlink.m4 (gl_XREADLINK):
56008         * m4/xstrtod.m4 (gl_XSTRTOD):
56009         * m4/yesno.m4 (gl_YESNO):
56010         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
56011         to get the necessary .h files and whatnot.
56012
56013 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
56014             Bruno Haible  <bruno@clisp.org>
56015
56016         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
56017         /bin/sh understanding of '!' conditional negation.
56018
56019 2006-08-21  Jim Meyering  <jim@meyering.net>
56020
56021         * modules/openat (Depends-on): Really alphabetize.
56022
56023         * modules/acl (Depends-on): Add error and quote.
56024
56025         * check-module (find_included_lib_files): Add at-func.c to the
56026         ok-to-include-more-than-once white list.
56027
56028         * modules/openat (Depends-on): Add lstat.  Alphabetize.
56029
56030 2006-08-21  Bruno Haible  <bruno@clisp.org>
56031
56032         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56033         Emit a pkgdata_DATA variable only if some snippets add contents to it.
56034         Reported by Martin Lambers <marlam@marlam.de>.
56035
56036 2006-08-21  Bruno Haible  <bruno@clisp.org>
56037
56038         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
56039         specify an installation location, don't emit a noinst_LIBRARIES or
56040         noinst_LTLIBRARIES assignment.
56041
56042 2006-08-21  Bruno Haible  <bruno@clisp.org>
56043
56044         BeOS portability.
56045         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
56046         BeOS has mbrtowc() but no <wctype.h>.
56047
56048 2006-08-21  Bruno Haible  <bruno@clisp.org>
56049
56050         BeOS portability.
56051         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
56052         exist.
56053
56054 2006-08-21  Bruno Haible  <bruno@clisp.org>
56055
56056         BeOS portability.
56057         * lib/mbchar.h: Include <wctype.h> only if it exists.
56058
56059 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56060
56061         Remove files that are no longer needed by their respective modules.
56062         * m4/obstack.m4: Remove.
56063         * m4/strerror_r.m4: Remove.
56064         * m4/uint32_t.m4: Remove.
56065         * m4/uintptr_t.m4: Remove.
56066         * m4/ullong_max.m4: Remove.
56067         * m4/xstrtoimax.m4: Remove.
56068         * m4/xstrtoumax.m4: Remove.
56069
56070         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
56071         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
56072         dependencies now capture this.
56073
56074         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
56075         Do not use AC_LIBSOURCES, since gnulib modules now do this.
56076         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
56077         * m4/human.m4 (gl_HUMAN): Likewise.
56078         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
56079         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
56080
56081         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
56082
56083         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
56084         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
56085         stdint.
56086         * m4/human.m4 (gl_HUMAN): Likewise.
56087         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
56088         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
56089         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
56090         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
56091         * m4/xstrtol (gl_XSTRTOL): Likewise.
56092
56093         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
56094         AC_TYPE_LONG_LONG_INT.
56095         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
56096         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
56097         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
56098         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
56099
56100         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
56101         on stdbool.
56102
56103         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
56104         (gl_PREREQ_XSTRTOUL): Remove.
56105
56106         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
56107
56108         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
56109         mode.
56110
56111 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56112
56113         Add and change modules to make it easier for coreutils to use
56114         gnulib-tool.
56115         * modules/backupfile (Files): Remove m4/d-ino.m4.
56116         (Depends-on): Add d-ino.
56117         * modules/cycle-check (Depends-on): Add stdint.
56118         (lib_SOURCES): Add cycle-check.h.
56119         * modules/d-ino: New module.
56120         * modules/d-type: New module.
56121         * modules/error (Files): Remove m4/strerror_r.m4.
56122         * modules/filemode (Files): Add m4/st_dm_mode.m4.
56123         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
56124         m4/inttypes_h.m4, m4/uintmax_t.m4.
56125         (Depends-on): Add stdint.
56126         (lib_SOURCES): Add fsusage.h.
56127         * modules/getcwd (Files): Remove d-ino.m4.
56128         (Depends-on): Add d-ino.
56129         * modules/getndelim2 (Depends-on): Add stdint.
56130         * modules/glob (Files): Remove m4/d-type.m4.
56131         (Depends-on): Add d-type.
56132         * modules/host-os: New module.
56133         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
56134         m4/inttypes_h.m4, m4/uintmax_t.m4.
56135         * Depends-on: Add stdint.
56136         (lib_SOURCES): Add human.h.
56137         * modules/inttostr (Files): Remove m4/intmax_t.m4,
56138         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
56139         m4/uintmax_t.m4, m4/ulonglong.m4.
56140         (Depends-on): Add stdint.
56141         (EXTRA_DIST): Add inttostr.h.
56142         * modules/lchmod: New module.
56143         * modules/link-follow: New module.
56144         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
56145         (Depends-on): Add lchmod.
56146         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
56147         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
56148         (Depends-on): Add stdint.
56149         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
56150         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
56151         (Depends-on): Add stdint.
56152         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
56153         * modules/perl: New module.
56154         * modules/regex (Depends-on): Add stdint.
56155         * modules/rmdir-errno: New module.
56156         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
56157         m4/intmax_t.m4.
56158         (Depends-on): Add stdint.
56159         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
56160         m4/uintmax_t.m4.
56161         (Depends-on): Add stdint.
56162         * modules/unlink-busy: New module.
56163         * modules/utimecmp (Depends-on): Add stdint.
56164         * modules/uptime: New module.
56165         * modules/winsz-ioctl: New module.
56166         * modules/winsz-termios: New module.
56167         * modules/xnanosleep (Depends-on): Add nanosleep.
56168         * modules/ullong_max: Remove.
56169         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
56170         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
56171         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
56172         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
56173         (Depends-on): Add inttypes.
56174         (lib_SOURCES): Add xstrtol.h.
56175         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
56176         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
56177         * MODULES.html.sh: Move 'assert' into the assert section.
56178         Move 'dummy' into the linking section.
56179         Remove ullong_max.
56180         Add section for compatibility checks for POSIX:2001 functions,
56181         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
56182         winsz-ioctl, and winsz-termios into it.
56183         Add lchmod.
56184         Add top-level Misc section and put host-os, perl, and uptime
56185         into it.
56186
56187 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56188
56189         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
56190         now assume the stdint module.  Do not include inttypes.h.
56191         * lib/fsusage.h: Likewise.
56192         * lib/getndelim2.c: Likewise.
56193         * lib/human.h: Likewise.
56194         * lib/inttostr.h: Likewise.
56195         * lib/obstack.c: Likewise.
56196         * lib/regex_internal.h: Likewise.
56197         * lib/tempname.c: Likewise.
56198         * lib/utimecmp.c: Likewise.
56199         * lib/xstrtol.h: Likewise.
56200
56201         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
56202
56203         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
56204         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
56205         * lib/xtime.h: Likewise.
56206
56207 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56208
56209         * modules/openat (Files): Add lib/fchmodat.c.
56210         Fixes problem reported by Jay Youngman.
56211
56212 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56213
56214         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
56215         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
56216
56217 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
56218             Bruno Haible  <bruno@clisp.org>
56219
56220         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
56221         and is a script that invokes bison. Tighten the code. Add comments.
56222
56223 2006-08-18  Jim Meyering  <jim@meyering.net>
56224
56225         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
56226         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
56227         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
56228         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
56229
56230 2006-08-18  Bruno Haible  <bruno@clisp.org>
56231
56232         * modules/bison-i18n: New file.
56233         * MODULES.html.sh (Internationalization functions): Add it.
56234
56235 2006-08-18  Bruno Haible  <bruno@clisp.org>
56236
56237         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
56238         sys/statvfs.h. When getmntinfo was found, check its declaration and
56239         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
56240
56241 2006-08-18  Bruno Haible  <bruno@clisp.org>
56242
56243         * m4/bison-i18n.m4: New file, from bison.
56244
56245 2006-08-18  Bruno Haible  <bruno@clisp.org>
56246
56247         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
56248         (ME_DUMMY): Treat "kernfs" as a dummy.
56249         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
56250
56251 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56252
56253         Update from coreutils.
56254
56255         2006-08-15  Jim Meyering  <jim@meyering.net>
56256
56257         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
56258
56259         2006-01-17  Jim Meyering  <jim@meyering.net>
56260
56261         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
56262
56263         2006-01-11  Jim Meyering  <jim@meyering.net>
56264
56265         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
56266         Check for the lchmod function.
56267
56268 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56269
56270         Update from coreutils.
56271
56272         * lib/__fpending.h: Add copyright notice.
56273         * lib/fprintftime.h: Likewise.
56274         * lib/savedir.c: Use (C) in copyright notice.
56275         * lib/savedir.h: Likewise.
56276
56277         2006-08-15  Jim Meyering  <jim@meyering.net>
56278
56279         * lib/at-func.c: New file, with the logic of all emulated at-functions.
56280         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
56281         in support of the EXPECTED_ERRNO macro.
56282         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
56283         definitions.  Instead, define the appropriate symbols and include
56284         "at-func.c".
56285         * lib/mkdirat.c (mkdirat): Likewise.
56286         * lib/fchmodat.c (fchmodat): Likewise.
56287         (ENOSYS): Remove definition.
56288         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
56289         it.  Don't include "unistd--.h" -- it wasn't ever used.
56290
56291         2006-01-17  Jim Meyering  <jim@meyering.net>
56292
56293         Rewrite fts.c not to change the current working directory,
56294         by using openat, fstatat, fdopendir, etc..
56295
56296         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
56297         (HAVE_OPENAT_SUPPORT): Define.
56298         [_LIBC] (fchdir): Don't undef or define; no longer used.
56299         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
56300         Now, this `function' always succeeds, and consumes its file descriptor
56301         parameter -- so callers must not close such FDs.  Update callers.
56302         (diropen_fd, opendirat, cwd_advance_fd): New functions.
56303         (diropen): Add parameter, SP.  Adjust all callers.
56304         Implement using diropen_fd, rather than open.
56305         (fts_open): Initialize new member, fts_cwd_fd.
56306         Remove fts_rft-setting code.
56307         (fts_close): Close fts_cwd_fd, if necessary.
56308         (__opendir2): Define in terms of opendir or opendirat,
56309         depending on whether the FST_NOCHDIR flag is set.
56310         (fts_build): Since fts_safe_changedir consumes its FD, and since
56311         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
56312         and close the dup'd file descriptor upon failure.
56313         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
56314         (fts_safe_changedir): Tweak semantics to reflect that this function
56315         now calls cwd_advance_fd and hence consumes its FD argument.
56316         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
56317         [struct FTS] (fts_rft): Remove now-unused member.
56318         [struct FTS] (fts_cycle.state): Improve comment.
56319
56320         * lib/openat.c (openat_needs_fchdir): New function.
56321         * lib/openat.h (openat_needs_fchdir): Declare it.
56322
56323 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
56324
56325         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
56326         Problem and fix reported by Pádraig Brady in
56327         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
56328
56329 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56330
56331         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
56332
56333 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56334
56335         * lib/memcoll.c (memcoll): Optimize for the common case where the
56336         arguments are bytewise equal.
56337
56338 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56339
56340         * doc/regexprops-generic.texi: Add a copyright notice.
56341
56342 2006-08-15  Bruno Haible  <bruno@clisp.org>
56343
56344         * modules/tmpdir (License): Change to LGPL.
56345
56346 2006-08-15  Bruno Haible  <bruno@clisp.org>
56347
56348         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
56349         module.
56350
56351 2006-08-14  Simon Josefsson  <jas@extundo.com>
56352
56353         * config/srclist.txt: Add gnupload.
56354
56355 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56356
56357         Change copyright notice from LGPL 2 to GPL 2, since that's the
56358         standard form used in the gnulib repository.
56359         * tests/test-lock.c: Likewise.
56360         * tests/test-stdint.c: Likewise.
56361         * tests/test-tls.c: Likewise.
56362
56363         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
56364         prelude-manager.  User shorter URLs for GNU projects, without '?'.
56365         Add copyright notice.
56366
56367         * check-module: Add copyright notice.  Output a copyright
56368         notice if "--version" is specified.
56369         * modules/COPYING: New file.
56370         * tests/test-getaddrinfo.c: Add copyright notice.
56371         * tests/test-verify.c: Likewise.
56372
56373 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56374
56375         Change copyright notice from LGPL 2 to GPL 2, since that's the
56376         standard form used in the gnulib repository.
56377         * lib/lock.c: LGPL -> GPL.
56378         * lib/lock.h: Likewise.
56379         * lib/strnlen1.c: Likewise.
56380         * lib/strnlen1.h: Likewise.
56381         * lib/tls.c: Likewise.
56382         * lib/tls.h: Likewise.
56383         * lib/tmpdir.c: Likewise.
56384
56385         * lib/TODO: Remove; this belongs only in coreutils.
56386
56387 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56388
56389         Add copyright notices to long-enough files that lack them, since
56390         otherwise the files aren't clearly free.  Use the same notice that
56391         getdate.texi already uses.
56392         * doc/alloca-opt.texi: Add copyright notice.
56393         * doc/alloca.texi: Likewise.
56394         * doc/ctime.texi: Likewise.
56395         * doc/functions.texi: Likewise.
56396         * doc/gcd.texi: Likewise.
56397         * doc/gnulib-tool.texi: Likewise.
56398         * doc/inet_ntoa.texi: Likewise.
56399         * doc/visibility.texi: Likewise.
56400
56401         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
56402         * doc/quote.texi: Add copyright notice.
56403
56404         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
56405         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
56406         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
56407         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
56408         is now obsolete, and give a pointer to the Sun list.
56409         Add copyright notice.
56410
56411 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56412
56413         * config/srclistvars.sh: Add copyright notice.
56414
56415 2006-08-14  Eric Blake  <ebb9@byu.net>
56416
56417         Import the following change from libc:
56418
56419         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
56420
56421         Upstream bug 2997.
56422         * lib/misc/error.c: Add space between program name and message if file
56423         name is missing.
56424
56425 2006-08-12  Karl Berry  <karl@gnu.org>
56426
56427         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
56428         remove, these originate in gnulib now.
56429
56430 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56431
56432         * doc/Makefile (standards.info standards.html standards.dvi):
56433         Also depend on make-stds.texi.
56434
56435 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
56436
56437         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
56438         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
56439
56440         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
56441         in wchar_t.  Problem reported by Eric Blake.
56442
56443         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
56444         LEN is smaller than SIZE.  Suggested by Bruno Haible.
56445         Also, help the compiler to keep LEN in a register.
56446
56447 2006-08-11  Eric Blake  <ebb9@byu.net>
56448
56449         * users.txt: Sort.  Add tar.
56450
56451 2006-08-11  Bruno Haible  <bruno@clisp.org>
56452
56453         * users.txt: New file.
56454
56455 2006-08-11  Bruno Haible  <bruno@clisp.org>
56456
56457         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
56458         before <wchar.h>. Needed for OSF/1 and BSD/OS.
56459
56460 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56461
56462         * modules/snprintf (Depends-on): Remove minmax.
56463         (Maintainer): Add self and Bruno.
56464
56465 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56466
56467         * lib/.cppi-disable: Add snprintf.h, socket_.h.
56468         * lib/snprintf.c: Include <errno.h> and <limits.h>.
56469         (EOVERFLOW): Define if the system does not.
56470         Do not include "minmax.h"; it wasn't used.
56471         (snprintf): Don't assume size_t promotes to an unsigned type.
56472         Fix bug when generated string was too long for the buffer: the
56473         buffer's contents are supposed to be the initial prefix of the
56474         output.  Don't assume vasnprintf returns EOVERFLOW if the size
56475         exceeds INT_MAX; do the check ourselves.
56476
56477         Import the following changes from libc:
56478
56479         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
56480
56481         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
56482         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
56483         set wc to the byte which couldn't be converted.
56484         (re_string_reconstruct): Don't clear valid_raw_len before calling
56485         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
56486         tip_context using re_string_context_at.
56487
56488         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
56489
56490         * lib/posix/regex.h: g++ still cannot handled [restrict].
56491
56492         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
56493
56494         * lib/posix/regex.h: Remove special handling for VMS.
56495
56496 2006-08-10  Jim Meyering  <jim@meyering.net>
56497
56498         * modules/same-inode: New module.
56499         * modules/dev-ino: New module.
56500         * modules/cycle-check: Depend on these modules, rather than simply
56501         including their .h files.
56502         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
56503         required via m4/cycle-check.m4.
56504         * modules/same: Depend on new same-inode module, rather than
56505         including same-inode.h.
56506         * modules/chdir-safer: New file.
56507
56508         * modules/chown (Depends-on): Add stat-macros.
56509
56510 2006-08-10  Jim Meyering  <jim@meyering.net>
56511
56512         * m4/cycle-check.m4: New file.
56513         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
56514         * m4/dev-ino.m4, m4/same-inode.m4: New files.
56515
56516 2006-08-10  Eric Blake  <ebb9@byu.net>
56517
56518         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
56519         in from original proposal.
56520
56521 2006-08-10  Eric Blake  <ebb9@byu.net>
56522         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
56523
56524         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
56525         namespace.
56526
56527 2006-08-10  Bruno Haible  <bruno@clisp.org>
56528
56529         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
56530         as well.
56531
56532 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
56533
56534         Sync from coreutils.
56535
56536         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
56537
56538         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
56539         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
56540
56541 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
56542
56543         * modules/restrict: Remove; no longer needed now that we assume
56544         Autoconf 2.59 or later.
56545         * MODULES.html.sh: Remove 'restrict'.
56546         * modules/argp (Depends-on): Remove 'restrict'.
56547         * modules/base64 (Depends-on): Likewise.
56548         * modules/gc (Depends-on): Likewise.
56549         * modules/getaddrinfo (Depends-on): Likewise.
56550         * modules/glob (Depends-on): Likewise.
56551         * modules/inet_ntop (Depends-on): Likewise.
56552         * modules/inet_pton (Depends-on): Likewise.
56553         * modules/memxor (Depends-on): Likewise.
56554         * modules/regex (Depends-on): Likewise.
56555         * modules/strtok_r (Depends-on): Likewise.
56556         * modules/time_r (Depends-on): Likewise.
56557
56558 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
56559
56560         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
56561         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
56562         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56563         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
56564         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
56565         * m4/memxor.m4 (gl_MEMXOR): Likewise.
56566         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
56567         gl_C_RESTRICT replaced by AC_C_RESTRICT.
56568
56569         Merge from coreutils.
56570         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
56571         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
56572         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56573         * m4/time_r.m4 (gl_TIME_R): Likewise.
56574
56575 2006-08-09  Karl Berry  <karl@gnu.org>
56576
56577         * config/srclist.txt: no more gettext-tools, per Bruno.
56578
56579 2006-08-08  Eric Blake  <ebb9@byu.net>
56580
56581         * modules/verror: New module.
56582         * MODULES.html.sh: Document it.
56583
56584 2006-08-08  Eric Blake  <ebb9@byu.net>
56585
56586         * lib/verror.h, lib/verror.c: New files.
56587
56588 2006-08-08  Eric Blake  <ebb9@byu.net>
56589
56590         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
56591         verror_at_line output complies with GNU Coding Standards even when
56592         file is NULL.
56593
56594 2006-08-07  Bruno Haible  <bruno@clisp.org>
56595
56596         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
56597         versions of AIX.
56598         Reported by Ralf Wildenhues.
56599
56600 2006-08-07  Bruno Haible  <bruno@clisp.org>
56601
56602         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
56603         in an AC_DEFUN. Needed so that the autoconf snippets can use
56604         AC_REQUIRE.
56605
56606 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56607
56608         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56609         Initialize pkgdata_DATA.
56610         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
56611         overriding it.
56612
56613 2006-08-06  Eric Blake  <ebb9@byu.net>
56614
56615         * lib/error.h: Fold in some upstream changes from glibc.
56616         * lib/error.c: Likewise.
56617
56618 2006-08-04  Bruno Haible  <bruno@clisp.org>
56619
56620         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56621         Make the mostlyclean-local rule depend on mostlyclean-generic.
56622         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
56623
56624 2006-07-31  Bruno Haible  <bruno@clisp.org>
56625
56626         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
56627         <stdlib.h>, <string.h>.
56628
56629 2006-07-30  Bruno Haible  <bruno@clisp.org>
56630
56631         * modules/readlink (License): Change to LGPL.
56632
56633 2006-07-30  Bruno Haible  <bruno@clisp.org>
56634
56635         * modules/javaversion (Makefile.am): Distribute javaversion.java and
56636         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
56637         set PKGDATADIR to point to it.
56638
56639 2006-07-30  Bruno Haible  <bruno@clisp.org>
56640
56641         * modules/csharpexec (configure.ac): Comment out macro invocation.
56642         * modules/javaexec (configure.ac): Likewise.
56643         * modules/javacomp-script (configure.ac): Likewise.
56644
56645         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
56646
56647 2006-07-30  Bruno Haible  <bruno@clisp.org>
56648
56649         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
56650         linked-list.
56651
56652 2006-07-30  Bruno Haible  <bruno@clisp.org>
56653
56654         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
56655
56656 2006-07-30  Bruno Haible  <bruno@clisp.org>
56657
56658         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56659         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
56660         get removed.
56661
56662 2006-07-29  Bruno Haible  <bruno@clisp.org>
56663
56664         Make it possible for gnulib-tool to work with locally modified or
56665         augmented gnulib repositories.
56666         * gnulib-tool (func_usage): Document --local-dir option.
56667         (local_gnulib_dir): New variable.
56668         Handle --local-dir option.
56669         (func_lookup_file): New function.
56670         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
56671         (func_get_description, func_get_filelist, func_get_description,
56672         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
56673         func_get_automake_snippet, func_get_include_directive,
56674         func_get_license, func_get_maintainer): Use func_lookup_file.
56675         (func_import, func_create_testdir): Use func_lookup_file.
56676
56677 2006-07-29  Bruno Haible  <bruno@clisp.org>
56678
56679         * modules/setenv (Depends-on): Add unistd.
56680
56681 2006-07-29  Bruno Haible  <bruno@clisp.org>
56682
56683         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
56684
56685 2006-07-29  Bruno Haible  <bruno@clisp.org>
56686
56687         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
56688
56689 2006-07-29  Bruno Haible  <bruno@clisp.org>
56690
56691         * gnulib-tool (import, update): If there is no Makefile.am, look at
56692         aclocal.m4, instead of bailing out.
56693
56694 2006-07-29  Bruno Haible  <bruno@clisp.org>
56695
56696         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
56697         Categorize the options by when they are useful.
56698
56699 2006-07-29  Bruno Haible  <bruno@clisp.org>
56700
56701         * gnulib-tool (func_usage): Document option --no-libtool.
56702         Handle option --no-libtool.
56703         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
56704         for changed semantics of $libtool variable.
56705         (func_import): Likewise. If libtool is not used, show this through
56706         an option --no-libtool.
56707         (func_create_testdir): Update.
56708
56709 2006-07-29  Bruno Haible  <bruno@clisp.org>
56710
56711         * gnulib-tool (func_import): Extend error message about missing
56712         --doc-base.
56713
56714 2006-07-29  Bruno Haible  <bruno@clisp.org>
56715
56716         * gnulib-tool (func_import): Don't create the $docbase directory if
56717         there is no file to store there.
56718
56719 2006-07-29  Bruno Haible  <bruno@clisp.org>
56720
56721         * gnulib-tool (autoconf_minversion): If a --dir option is given and
56722         relevant, look for configure.ac there, not in the current directory.
56723         Also use a simple search for AC_PREREQ, not "autoconf --trace".
56724
56725 2006-07-29  Bruno Haible  <bruno@clisp.org>
56726
56727         * gnulib-tool (SORT): New variable.
56728         (func_usage): Undocument --assume-autoconf option.
56729         Remove --assume-autoconf option handling.
56730         (autoconf_minversion): Determine from the contents of configure.ac.
56731         (func_import): Remove autoconf_minversion handling.
56732         Suggested by Eric Blake.
56733
56734 2006-07-29  Bruno Haible  <bruno@clisp.org>
56735
56736         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
56737
56738 2006-07-29  Bruno Haible  <bruno@clisp.org>
56739
56740         * config/srclist.txt (*setenv.[ch]): Remove rules.
56741
56742 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56743
56744         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
56745
56746 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56747
56748         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
56749         arpa/inet.h.
56750
56751 2006-07-28  Simon Josefsson  <jas@extundo.com>
56752
56753         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
56754         * modules/inet_pton (Depends-on): Likewise.
56755
56756 2006-07-28  Simon Josefsson  <jas@extundo.com>
56757
56758         * m4/netinet_in_h.m4: New file.
56759
56760 2006-07-28  Simon Josefsson  <jas@extundo.com>
56761
56762         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
56763         #include's.
56764
56765 2006-07-28  Simon Josefsson  <jas@extundo.com>
56766
56767         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
56768         #include's.
56769
56770 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
56771
56772         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
56773         setgid on directories only if they set these bits.
56774         * lib/modechange.h: Remove obsolete comment about masks.
56775
56776 2006-07-28  Eric Blake  <ebb9@byu.net>
56777
56778         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
56779         macro expansion.
56780
56781 2006-07-28  Bruno Haible  <bruno@clisp.org>
56782
56783         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
56784
56785 2006-07-28  Bruno Haible  <bruno@clisp.org>
56786
56787         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
56788
56789 2006-07-28  Bruno Haible  <bruno@clisp.org>
56790
56791         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56792         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
56793         Define fallbacks.
56794         Avoids link error on FreeBSD 4.x.
56795         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56796
56797         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
56798         encoding.
56799         * lib/mbswidth.c (iswcntrl): Likewise.
56800
56801 2006-07-27  Bruno Haible  <bruno@clisp.org>
56802
56803         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
56804         test.
56805
56806 2006-07-27  Bruno Haible  <bruno@clisp.org>
56807
56808         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
56809         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
56810         defined.
56811
56812 2006-07-26  Eric Blake  <ebb9@byu.net>
56813
56814         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
56815
56816 2006-07-26  Eric Blake  <ebb9@byu.net>
56817
56818         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
56819         like mingw that lack mkstemp.
56820         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
56821         avoid compilation warning on mingw.
56822
56823 2006-07-26  Bruno Haible  <bruno@clisp.org>
56824
56825         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
56826         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
56827         INT_FAST*_MIN, INTPTR_MIN.
56828
56829 2006-07-25  Bruno Haible  <bruno@clisp.org>
56830
56831         * modules/version-etc (Depends-on): Add stdarg.
56832
56833 2006-07-25  Bruno Haible  <bruno@clisp.org>
56834
56835         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
56836         complex commands.
56837
56838 2006-07-25  Bruno Haible  <bruno@clisp.org>
56839
56840         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
56841         defined in <stdarg.h> or config.h.
56842
56843 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
56844
56845         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
56846         (gl_STDIO_SAFER): Remove.
56847
56848 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
56849
56850         * MODULES.html.sh (File stream based Input/Output):
56851         Add fopen-safer, tmpfile-safer; remove stdio-safer.
56852         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
56853         * modules/fopen-safer, modules/tmpfile-safer: New files.
56854         * modules/stdio-safer: Remove.
56855
56856 2006-07-24  Bruno Haible  <bruno@clisp.org>
56857
56858         * modules/tmpdir: New file.
56859         * MODULES.html.sh (File system functions): Add it.
56860
56861 2006-07-24  Bruno Haible  <bruno@clisp.org>
56862
56863         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
56864         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
56865
56866 2006-07-24  Bruno Haible  <bruno@clisp.org>
56867
56868         * modules/clean-temp: New file.
56869
56870 2006-07-24  Bruno Haible  <bruno@clisp.org>
56871
56872         * m4/tmpdir.m4: New file, from GNU gettext.
56873
56874 2006-07-24  Bruno Haible  <bruno@clisp.org>
56875
56876         * lib/tmpdir.h: New file, from GNU gettext.
56877         * lib/tmpdir.c: New file, from GNU gettext.
56878
56879 2006-07-24  Bruno Haible  <bruno@clisp.org>
56880
56881         * lib/clean-temp.h: New file, from GNU gettext.
56882         * lib/clean-temp.c: New file, from GNU gettext.
56883
56884 2006-07-23  Eric Blake  <ebb9@byu.net>
56885
56886         * modules/stdio-safer (Files): Add tmpfile-safer.c.
56887         (Depends-on): Add binary-io.
56888
56889 2006-07-23  Eric Blake  <ebb9@byu.net>
56890
56891         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
56892
56893 2006-07-23  Eric Blake  <ebb9@byu.net>
56894
56895         * lib/tmpfile-safer.c: New file.
56896         * lib/stdio-safer.h (fopen_safer): Add prototype.
56897         * lib/stdio--.h (tmpfile): Make safer.
56898
56899 2006-07-23  Bruno Haible  <bruno@clisp.org>
56900
56901         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
56902         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
56903         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
56904         gl_linked_remove_at): Use it.
56905
56906 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56907         and Simon Josefsson <jas@extundo.com>
56908
56909         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
56910
56911         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
56912
56913 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56914
56915         * modules/close-stream: New file.
56916         * modules/closeout (Description): Make it clear that it exits
56917         with a diagnostic on error.
56918         (Depends-on): Add close-stream.  Remove fpending, stdbool.
56919         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
56920
56921 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56922
56923         * m4/close-stream.m4: New file.
56924
56925 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56926
56927         * lib/close-stream.c, lib/close-stream.h: New files.
56928
56929 2006-07-22  Bruno Haible  <bruno@clisp.org>
56930
56931         Merge from GNU gettext 0.15.
56932
56933         2006-05-01  Bruno Haible  <bruno@clisp.org>
56934
56935                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
56936
56937         2006-07-22  Bruno Haible  <bruno@clisp.org>
56938
56939                 * modules/javaversion: New file.
56940                 * MODULES.html.sh (Java): Add javaversion.
56941
56942         2006-03-12  Bruno Haible  <bruno@clisp.org>
56943
56944                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
56945
56946         2005-12-04  Bruno Haible  <bruno@clisp.org>
56947
56948                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
56949                 (untested).
56950
56951         2006-06-21  Bruno Haible  <bruno@clisp.org>
56952
56953                 Avoid warnings from recent versions of mcs.
56954                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
56955                 -o, -L, -r any more. Use options documented since mcs-1.0
56956                 instead. Similarly for -g.
56957
56958         2005-12-04  Bruno Haible  <bruno@clisp.org>
56959
56960                 * build-aux/csharpcomp.sh.in: Suffix for resources is
56961                 .resources, not .resource.
56962
56963         2005-07-09  Bruno Haible  <bruno@clisp.org>
56964
56965                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
56966                 add a .dll suffix.
56967                 Reported by Mark Junker <mjscod@gmx.de>.
56968
56969         2006-07-22  Bruno Haible  <bruno@clisp.org>
56970
56971                 * modules/gettext: Upgrade to gettext-0.15.
56972                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
56973                 m4/visibility.m4.
56974                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
56975
56976 2006-07-22  Bruno Haible  <bruno@clisp.org>
56977
56978         Merge from GNU gettext 0.15.
56979
56980         2006-03-25  Bruno Haible  <bruno@clisp.org>
56981
56982                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
56983
56984         2006-07-21  Bruno Haible  <bruno@clisp.org>
56985
56986                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
56987                 "1.1".
56988
56989         2006-05-09  Bruno Haible  <bruno@clisp.org>
56990
56991                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
56992                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
56993                 for the conftestver execution.
56994
56995         2006-05-01  Bruno Haible  <bruno@clisp.org>
56996
56997                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
56998                 optional target-version argument. Verify that the compiler
56999                 groks source of the specified source-version, or add -source
57000                 option as necessary. Verify that the compiler produces
57001                 bytecode in the specified target-version, or add -target and
57002                 -source options as necessary. Make the result of the test
57003                 available as variable CONF_JAVAC. Also log error output in
57004                 config.log.
57005
57006         2006-03-11  Bruno Haible  <bruno@clisp.org>
57007
57008                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
57009
57010         2006-05-09  Bruno Haible  <bruno@clisp.org>
57011
57012                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
57013                 CLASSPATH_SEPARATOR to a semicolon.
57014
57015         2006-03-12  Bruno Haible  <bruno@clisp.org>
57016
57017                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
57018                 available as variable CONF_JAVA, for subsequent autoconf
57019                 tests. Also log error output in config.log.
57020
57021         2006-07-19  Bruno Haible  <bruno@clisp.org>
57022
57023                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
57024                 that getline works on glibc2 systems. Needed to avoid trouble
57025                 in relocatable.c.
57026                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
57027
57028         2005-12-04  Bruno Haible  <bruno@clisp.org>
57029
57030                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
57031                 launcher (untested).
57032
57033         2005-12-04  Bruno Haible  <bruno@clisp.org>
57034
57035                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
57036
57037         2006-07-22  Bruno Haible  <bruno@clisp.org>
57038
57039                 * gettext.m4: Update from GNU gettext-0.15.
57040                 * nls.m4: Likewise.
57041                 * po.m4: Likewise.
57042                 * inttypes-pri.m4: Likewise.
57043                 * inttypes-h.m4: Renamed from inttypes.m4.
57044                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
57045
57046 2006-07-22  Bruno Haible  <bruno@clisp.org>
57047
57048         Merge from GNU gettext 0.15.
57049
57050         2005-07-05  Bruno Haible  <bruno@clisp.org>
57051
57052                 * printf-args.c (printf_fetchargs): Work around broken
57053                 definition of wint_t on mingw.
57054
57055         2005-02-12  Bruno Haible  <bruno@clisp.org>
57056
57057                 * xallocsa.h: Add extern "C" for C++.
57058
57059         2006-05-17  Bruno Haible  <bruno@clisp.org>
57060
57061                 Cygwin portability.
57062                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
57063
57064         2006-04-30  Bruno Haible  <bruno@clisp.org>
57065
57066                 * progreloc.c: Include <mach-o/dyld.h> if available.
57067                 (find_executable): Use _NSGetExecutablePath when possible.
57068
57069         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57070
57071                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
57072                 function.
57073
57074         2005-12-29  Bruno Haible  <bruno@clisp.org>
57075
57076                 * progreloc.c (set_program_name_and_installdir): Fix
57077                 compilation error.
57078
57079         2005-12-04  Bruno Haible  <bruno@clisp.org>
57080
57081                 Cygwin portability.
57082                 * progreloc.c: Include <windows.h> also on Cygwin.
57083                 (find_executable): Add support for Cygwin.
57084                 (set_program_name_and_installdir): Handle also platforms with
57085                 nonempty EXEEXT.
57086
57087         2006-07-11  Bruno Haible  <bruno@clisp.org>
57088
57089                 * javacomp.c: Fix a comment.
57090                 Reported by Jim Meyering.
57091
57092         2006-04-30  Bruno Haible  <bruno@clisp.org>
57093
57094                 * javacomp.h (compile_java_class): Add source_version,
57095                 target_version arguments.
57096                 * javacomp.c: Rewritten to choose only a compiler that
57097                 respects the specified source_version and target_version.
57098
57099         2006-06-27  Bruno Haible  <bruno@clisp.org>
57100
57101                 Assume correct S_ISDIR macro.
57102                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
57103
57104         2006-07-22  Bruno Haible  <bruno@clisp.org>
57105
57106                 * javaversion.h: New file, from GNU gettext.
57107                 * javaversion.c: New file, from GNU gettext.
57108                 * javaversion.java: New file, from GNU gettext.
57109                 * javaversion.class: New file, from GNU gettext.
57110
57111         2006-05-17  Bruno Haible  <bruno@clisp.org>
57112
57113                 Cygwin portability.
57114                 * javaexec.c (execute_java_class): Test for jview program
57115                 also on Cygwin.
57116
57117         2006-04-09  Bruno Haible  <bruno@clisp.org>
57118
57119                 * fatal-signal.c: Don't include string.h.
57120                 (at_fatal_signal): Use a copying loop instead of memcpy.
57121
57122         2005-12-04  Bruno Haible  <bruno@clisp.org>
57123
57124                 * csharpexec.c: Add support for 'clix' launcher (untested).
57125                 (execute_csharp_using_sscli): New function.
57126                 (execute_csharp_program): Call it.
57127
57128         2006-06-21  Bruno Haible  <bruno@clisp.org>
57129
57130                 Avoid warnings from recent versions of mcs.
57131                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
57132                 -o, -L, -r any more. Use options documented since mcs-1.0
57133                 instead. Similarly for -g.
57134
57135         2005-07-09  Bruno Haible  <bruno@clisp.org>
57136
57137                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
57138                 add a .dll suffix.
57139                 Reported by Mark Junker <mjscod@gmx.de>.
57140
57141         2006-06-17  Bruno Haible  <bruno@clisp.org>
57142
57143                 * config.charset: Update for NetBSD 3.0.
57144
57145         2006-05-17  Bruno Haible  <bruno@clisp.org>
57146
57147                 Cygwin portability.
57148                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
57149
57150         2006-05-16  Bruno Haible  <bruno@clisp.org>
57151
57152                 * localcharset.c [CYGWIN]: Include <windows.h>.
57153                 (get_charset_aliases): For Cygwin, return the same CPxxx
57154                 aliases list as under WIN32.
57155                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
57156                 the environment variables. Fall back to GetACP().
57157
57158         2006-04-05  Bruno Haible  <bruno@clisp.org>
57159
57160                 * config.charset: Update Juan Manuel Guerrero's address.
57161
57162         2005-02-12  Bruno Haible  <bruno@clisp.org>
57163
57164                 * allocsa.h: Add extern "C" for C++.
57165
57166         2005-02-10  Bruno Haible  <bruno@clisp.org>
57167
57168                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
57169                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
57170
57171         2006-07-22  Bruno Haible  <bruno@clisp.org>
57172
57173                 * gettext.h: Update to GNU gettext-0.15.
57174
57175 2006-07-22  Bruno Haible  <bruno@clisp.org>
57176
57177         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
57178         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
57179         lib-prefix.m4, longdouble.m4, ssize_t.m4.
57180
57181 2006-07-21  Eric Blake  <ebb9@byu.net>
57182
57183         * modules/stdlib-safer: New file.
57184         * MODULES.html.sh (File stream based Input/Output): Add
57185         stdlib-safer.
57186
57187 2006-07-21  Eric Blake  <ebb9@byu.net>
57188
57189         * lib/stdlib-safer.h: New file from coreutils, required by
57190         stdlib--.h.
57191
57192 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
57193
57194         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
57195
57196 2006-07-20  Bruno Haible  <bruno@clisp.org>
57197
57198         * gnulib-tool: Recognize new option --assume-autoconf.
57199         (autoconf_minversion): New variable.
57200         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
57201
57202 2006-07-20  Bruno Haible  <bruno@clisp.org>
57203
57204         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
57205
57206 2006-07-19  Derek R. Price  <derek@ximbiot.com>
57207
57208         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
57209         Reindent and repaginate.
57210
57211 2006-07-19  Derek Price  <derek@ximbiot.com>
57212
57213         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
57214         Correct grammar.
57215
57216 2006-07-17  Bruno Haible  <bruno@clisp.org>
57217
57218         * modules/list: New file.
57219         * modules/array-list: New file.
57220         * modules/carray-list, modules/carray-list-tests: New files.
57221         * modules/linked-list, modules/linked-list-tests: New files.
57222         * modules/avltree-list, modules/avltree-list-tests: New files.
57223         * modules/rbtree-list, modules/rbtree-list-tests: New files.
57224         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
57225         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
57226         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
57227         * modules/oset: New file.
57228         * modules/array-oset: New file.
57229         * modules/avltree-oset, modules/avltree-oset-tests: New files.
57230         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
57231         * tests/test-carray_list.c: New file.
57232         * tests/test-linked_list.c: New file.
57233         * tests/test-avltree_list.c: New file.
57234         * tests/test-rbtree_list.c: New file.
57235         * tests/test-linkedhash_list.c: New file.
57236         * tests/test-avltreehash_list.c: New file.
57237         * tests/test-rbtreehash_list.c: New file.
57238         * tests/test-avltree_oset.c: New file.
57239         * tests/test-rbtree_oset.c: New file.
57240         * MODULES.html.sh (Container data structures): New section.
57241
57242 2006-07-17  Bruno Haible  <bruno@clisp.org>
57243
57244         * m4/gl_list.m4: New file.
57245
57246 2006-07-17  Bruno Haible  <bruno@clisp.org>
57247
57248         * lib/gl_list.h: New file.
57249         * lib/gl_list.c: New file.
57250         * lib/gl_array_list.h: New file.
57251         * lib/gl_array_list.c: New file.
57252         * lib/gl_carray_list.h: New file.
57253         * lib/gl_carray_list.c: New file.
57254         * lib/gl_linked_list.h: New file.
57255         * lib/gl_linked_list.c: New file.
57256         * lib/gl_anylinked_list1.h: New file.
57257         * lib/gl_anylinked_list2.h: New file.
57258         * lib/gl_avltree_list.h: New file.
57259         * lib/gl_avltree_list.c: New file.
57260         * lib/gl_anyavltree_list1.h: New file.
57261         * lib/gl_anyavltree_list2.h: New file.
57262         * lib/gl_rbtree_list.h: New file.
57263         * lib/gl_rbtree_list.c: New file.
57264         * lib/gl_anyrbtree_list1.h: New file.
57265         * lib/gl_anyrbtree_list2.h: New file.
57266         * lib/gl_anytree_list1.h: New file.
57267         * lib/gl_anytree_list2.h: New file.
57268         * lib/gl_linkedhash_list.h: New file.
57269         * lib/gl_linkedhash_list.c: New file.
57270         * lib/gl_anyhash_list1.h: New file.
57271         * lib/gl_anyhash_list2.h: New file.
57272         * lib/gl_avltreehash_list.h: New file.
57273         * lib/gl_avltreehash_list.c: New file.
57274         * lib/gl_rbtreehash_list.h: New file.
57275         * lib/gl_rbtreehash_list.c: New file.
57276         * lib/gl_anytreehash_list1.h: New file.
57277         * lib/gl_anytreehash_list2.h: New file.
57278
57279         * lib/gl_oset.h: New file.
57280         * lib/gl_oset.c: New file.
57281         * lib/gl_array_oset.h: New file.
57282         * lib/gl_array_oset.c: New file.
57283         * lib/gl_avltree_oset.h: New file.
57284         * lib/gl_avltree_oset.c: New file.
57285         * lib/gl_rbtree_oset.h: New file.
57286         * lib/gl_rbtree_oset.c: New file.
57287         * lib/gl_anytree_oset.h: New file.
57288
57289 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
57290
57291         * m4/mkancesdirs.m4: New file.
57292         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
57293         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
57294         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
57295         it.
57296
57297 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
57298
57299         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
57300         * lib/mkancesdirs.h: New files.
57301         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
57302         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
57303         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
57304         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
57305         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
57306         callers changed.  Revamp internals significantly, by not
57307         attempting to create directories that are temporarily more
57308         permissive than the final results.  Do not attempt to use
57309         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
57310         This removes some race conditions, fixes some bugs, and simplifies
57311         things.  Use new dirchownmod function to do owner and mode changes.
57312         * lib/mkdir-p.h: Likewise.
57313         * lib/modechange.c (octal_to_mode): New function.
57314         (struct mode_change): New member mentioned.
57315         (make_node_op_equals): New arg mentioned.  All callers changed.
57316         (mode_compile): Keep track of which mode bits the user has explicitly
57317         mentioned.
57318         (mode_adjust): New arg DIR, so that we implement the X op correctly.
57319         New arg PMODE_BITS, to keep track of which mode bits the user
57320         mentioned; it treats S_ISUID and S_ISGID speciall.
57321         All callers changed.
57322         * lib/modechange.h: Likewise.
57323
57324 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
57325
57326         * MODULES.html.sh: Add mkancestors.
57327         * modules/mkancesdirs: New module.
57328         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
57329         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
57330         The chdir-safer and afs files are now orphans; I'll remove them
57331         unless someone speaks up.
57332         Add lib/dirchownmod.c, lib/dirchownmod.h.
57333         (Depends-on): Remove alloca, chown, save-cwd, dirname.
57334         Add lchown, mkancesdirs.
57335         (Maintainer): Add self.
57336
57337 2006-07-15  Karl Berry  <karl@gnu.org>
57338
57339         * gnulib-tool: help message wording/arrangement.
57340
57341 2006-07-14  Simon Josefsson  <jas@extundo.com>
57342
57343         * doc/gnulib.texi (Libtool and Windows): New section.
57344
57345 2006-07-12  Simon Josefsson  <jas@extundo.com>
57346
57347         * modules/gendocs (License): Fix license, approved by Karl.
57348
57349 2006-07-12  Eric Blake  <ebb9@byu.net>
57350
57351         * MODULES.html.sh: Add gendocs.
57352
57353 2006-07-11  Eric Blake  <ebb9@byu.net>
57354
57355         * modules/fdl: New module, to install doc/fdl.texi.
57356         * MODULES.html.sh: Add new section for documentation modules.
57357         * gnulib-tool: Avoid space-tab.
57358         (--doc-base): New option, to manage files from doc.
57359
57360 2006-07-11  Eric Blake  <ebb9@byu.net>
57361
57362         * m4/absolute-header.m4: Fix comments to match recent change.
57363
57364 2006-07-11  Eric Blake  <ebb9@byu.net>
57365
57366         * gnulib-tool: List --doc-base before --tests-base.
57367
57368 2006-07-11  Derek R. Price  <derek@ximbiot.com>
57369
57370         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
57371
57372 2006-07-11  Bruno Haible  <bruno@clisp.org>
57373
57374         * README: Mention where to put documentation.
57375
57376 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57377
57378         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
57379
57380 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
57381
57382         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
57383         to stdint.m4.
57384
57385 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
57386
57387         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
57388         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
57389         "no/such/file/stdint.h" when there is no such file, so that
57390         the resulting C code can be parsed by dodgy compilers.
57391         Problems reported by Bob Proulx.
57392
57393 2006-07-10  Derek R. Price  <derek@ximbiot.com>
57394
57395         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
57396         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
57397         macros into the GNU _D_EXACT_NAMLEN.
57398         * lib/savedir.c:  Likewise.
57399         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
57400
57401 2006-07-10  Derek R. Price  <derek@ximbiot.com>
57402         and Paul Eggert  <eggert@cs.ucla.edu>
57403
57404         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
57405         * m4/savedir.m4:
57406         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
57407         macros into the GNU _D_EXACT_NAMLEN.
57408
57409 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
57410
57411         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
57412         around the absolute name, to work around a problem with the HP-UX
57413         11.23 native C compiler, reported by Bob Proulx.
57414
57415 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
57416
57417         * doc/maintain.texi, make-stds.texi: Sync from
57418         <http://savannah.gnu.org/projects/gnustandards>.
57419
57420 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
57421
57422         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
57423
57424 2006-07-09  Jim Meyering  <jim@meyering.net>
57425
57426         * m4/glob.m4: Remove a doubled word in a comment.
57427
57428 2006-07-09  Jim Meyering  <jim@meyering.net>
57429
57430         * lib/argp-pv.c: Remove a doubled word in a comment.
57431         * lib/check-version.c (check_version): Likewise.
57432         * lib/javacomp.c (compile_java_class): Likewise.
57433
57434 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
57435
57436         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
57437         for the benefit of people using Autoconf 2.60.  If you want to
57438         support older Autoconf versions you can copy m4/onceonly_2_57.m4
57439         (or m4/onceonly.m4, if pre-2.57) manually.
57440
57441 2006-07-08  Jim Meyering  <jim@meyering.net>
57442
57443         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
57444         comment.
57445         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
57446         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
57447         comment.
57448
57449 2006-07-08  Jim Meyering  <jim@meyering.net>
57450
57451         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
57452
57453 2006-07-07  Simon Josefsson  <jas@extundo.com>
57454
57455         * tests/test-crc.c: Change expected crc value, the test vector
57456         were probably computed using the old broken crc.c?
57457
57458 2006-07-06  Simon Josefsson  <jas@extundo.com>
57459
57460         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
57461         now the canonical place for the M4 file).
57462
57463         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
57464         from the sys_socket dependency now.
57465
57466         * modules/inet_pton (Files): Ditto.
57467
57468         * modules/inet_ntop (Files): Ditto.
57469
57470 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57471
57472         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
57473         not gl_PREREQ_GETUSERSHELL.
57474
57475 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57476
57477         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
57478         with only one argument, for Autoconf 2.60.
57479         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
57480         expand to nothing, so add a shell command to avoid syntax error.
57481         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
57482
57483 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57484
57485         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
57486
57487 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
57488
57489         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
57490         no longer needed.  Check for isblank decl.
57491         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
57492         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
57493         of existence.
57494
57495 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
57496
57497         * lib/getloadavg.c: Use __VMS, not VMS.
57498         * lib/getopt.c: Likewise.
57499         * lib/getpagesize.h: Likewise.
57500         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
57501         and probably does not work.
57502
57503 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
57504
57505         * lib/.cppi-disable: Add wcwidth.
57506         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
57507         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
57508         (ISGRAPH): Remove.  All uses changed to isgraph.
57509         (FOLD) [!defined _LIBC]: Remove special case.
57510         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
57511         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
57512         HAVE_ISBLANK.
57513         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
57514         case.
57515
57516 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
57517
57518         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
57519         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
57520         brackets.  Other minor changes to suppress some compiler
57521         warnings.
57522
57523 2006-07-06  Derek R. Price  <derek@ximbiot.com>
57524         and Paul Eggert  <eggert@cs.ucla.edu>
57525
57526         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
57527         of invoking obsolescent AC_HEADER_DIRENT macro.
57528         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
57529         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
57530         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
57531         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
57532         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
57533         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57534         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
57535         * m4/readdir.m4: Remove; no longer needed.
57536
57537 2006-07-06  Derek R. Price  <derek@ximbiot.com>
57538         and Paul Eggert  <eggert@cs.ucla.edu>
57539
57540         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
57541         Don't worry about this obsolete case any more.
57542         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
57543         directories.
57544         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
57545         worry about this obsolete case any more.
57546         * lib/fts.c: Likewise.
57547         * lib/getcwd.c: Likewise.
57548         * lib/glob.h: Likewise.
57549         * lib/savedir.c: Likewise.
57550
57551 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
57552
57553         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
57554         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
57555         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
57556         needed.
57557         All uses removed.
57558         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
57559         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
57560         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
57561         needed.
57562         * m4/getdate.m4 (gl_GETDATE): Likewise.
57563         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
57564         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
57565         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
57566         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
57567         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
57568         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57569         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
57570         needed.
57571
57572 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
57573
57574         * lib/memcasecmp.c: Include <limits.h>.
57575         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
57576         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
57577         Don't assume isdigit succeeds only on '0' through '9'.
57578
57579 2006-07-05  Eric Blake  <ebb9@byu.net>
57580
57581         * modules/getaddrinfo (Depends-on): Add snprintf.
57582
57583 2006-07-05  Eric Blake  <ebb9@byu.net>
57584
57585         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
57586         to avoid 'header present but could not be compiled' on cygwin.
57587
57588 2006-07-05  Eric Blake  <ebb9@byu.net>
57589
57590         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
57591         missing from netdb.h.
57592         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
57593
57594 2006-07-05  Derek R. Price  <derek@ximbiot.com>
57595
57596         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
57597         no longer needed.
57598         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
57599         * m4/getdate.m4 (gl_GETDATE): Likewise.
57600         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
57601         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
57602         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
57603         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
57604         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57605
57606 2006-07-05  Derek R. Price  <derek@ximbiot.com>
57607
57608         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
57609         All uses of is_space replaced by isspace.
57610         * lib/exit.h: Don't talk about STDC_HEADERS.
57611         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
57612         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
57613         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
57614         replaced by isprint etc.
57615         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
57616         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
57617         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
57618         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
57619         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
57620         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
57621
57622 2006-07-05  Bruno Haible  <bruno@clisp.org>
57623
57624         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
57625         the function exists, before testing against AIX.
57626         Reported by Martin Lambers <marlam@marlam.de>.
57627
57628 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
57629
57630         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
57631         From Mark D. Baushke.
57632
57633 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
57634
57635         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
57636         to the absolute name, not just one, to bypass Sun C 5.8's
57637         "warning: #include of /usr/include/... may be non-portable".
57638
57639 2006-07-04  Eric Blake  <ebb9@byu.net>
57640
57641         * modules/dirname-tests: New test module.
57642         * tests/test-dirname.c: New file, replacing dirname.c
57643         TEST_DIRNAME section that was recently deleted.
57644
57645 2006-07-04  Bruno Haible  <bruno@clisp.org>
57646
57647         Assume ANSI C header files and <ctype.h> functions.
57648         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
57649         (mbsnwidth): Use isprint, iscntrl instead.
57650
57651 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57652
57653         Merge from coreutils.
57654         * MODULES.html.sh: Add xstrtold.
57655         * modules/xstrtold: New file.
57656         * modules/cycle-check (Files): Add lib/same-inode.h.
57657         * modules/dirname (Files): Add m4/double-slash-root.m4.
57658         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
57659         * modules/mkdir-p (Files): Add lib/same-inode.h.
57660         * modules/same (Files): Add lib/same-inode.h.
57661
57662 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57663
57664         * m4/absolute-header.m4: Renamed from full-header-path.m4.
57665         This is to keep the terminology clean; POSIX talks about
57666         "absolute pathnames", not "full pathnames", but the GNU
57667         Coding Standards say to use "path" for something else;
57668         so use "absolute" to keep both sides happy.
57669         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
57670         Set gl_absolute_header, not gl_full_header_path.
57671         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
57672         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
57673         All uses changed.
57674
57675         Merge from coreutils.
57676
57677         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
57678
57679         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
57680         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
57681         want to require the building of c-strtod.o.
57682         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
57683         needs -lm directly.
57684         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
57685
57686         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
57687
57688         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
57689         --as-needed option if available.  Problem reported by Albert Chin in
57690         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
57691         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
57692         cc merely issues a bunch of annoying warnings for --as-needed
57693         (this problem was reported by Bob Proulx).  Also, try linking with
57694         -lm to detect a bug in binutils 2.16 (this problem was reported
57695         by Ralf Wildenhues).
57696
57697         2006-06-18  Jim Meyering  <jim@meyering.net>
57698
57699         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
57700         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
57701         macro.
57702         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
57703         also check for glibc-2.4's abort-inducing bug.
57704
57705         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
57706         Low-probability clean-up should be to use rmdir to get rid of
57707         the just-created directory, not unlink.
57708
57709         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
57710         configure fail, and request a bug report to inform us about it.
57711         Add a comment that, barring reports to the contrary, in 2007 we'll
57712         assume ftruncate is universally available.
57713
57714         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
57715
57716         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
57717
57718         2006-03-12  Jim Meyering  <jim@meyering.net>
57719
57720         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
57721         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
57722         * m4/same.m4 (gl_SAME): Likewise.
57723         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
57724
57725         2006-03-11  Eric Blake  <ebb9@byu.net>
57726
57727         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
57728         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
57729         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
57730         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
57731
57732 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57733
57734         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
57735         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
57736         reported by Mark D. Baushke, one in
57737         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
57738
57739         Merge from coreutils.
57740
57741         * lib/.cppi-disable: Add stdint_.h.
57742         * lib/.cvsignore: Add stdint.h.
57743
57744         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
57745
57746         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
57747         both double and long double versions.
57748         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
57749         * lib/xstrtold.c: New file.
57750         * lib/xstrtod.h (xstrtold): New decl.
57751
57752         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
57753
57754         * lib/filemode.c (setst): Remove.
57755         (strmode): Rewrite to avoid setst.  This makes the code shorter,
57756         (arguably) clearer, and the generated code is a bit smaller on my
57757         Debian GNU/Linux stable x86 host.
57758
57759         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
57760
57761         * lib/filemode.c: Include "filemode.h" first, to test the interface.
57762         Assume that filemode.h includes sys/types.h and sys/stat.h.
57763         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
57764         (ftypelet): Reorder to put common cases first, for efficiency.
57765         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
57766         to do 'M'.
57767         (strmode): Renamed from mode_string, and now stores 12 bytes instead
57768         of 10, for compatibility with FreeBSD.  All callers changed.
57769         (filemodestring): Now stores 12 bytes instead of 10, and sets file
57770         types that can't be deduced solely from st_mode.  First arg is now a
57771         const pointer.
57772         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
57773         (strmode): Renamed from mode_string.
57774         (filemodestring): New decl.
57775         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
57776         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
57777         needed.
57778         (S_ISPORT, S_ISWHT): New macros, if not already defined.
57779
57780         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
57781
57782         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
57783         fsusage.h now does that.  Include fsusage.h first, to test interface.
57784         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
57785         at most one method (the old code could have generated decls that
57786         didn't conform to C89, not that this was ever exercised).
57787         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
57788
57789         2006-03-19  Jim Meyering  <jim@meyering.net>
57790
57791         Work even in a chroot where d_ino values for entries in "/"
57792         don't match the stat.st_ino values for the same names.
57793         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
57794         number, iterate through all entries again, using lstat instead.
57795         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
57796         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
57797
57798         * lib/getcwd.c (__getcwd): Clarify a comment.
57799         Use memcpy in place of a call to strcpy.
57800
57801         2006-03-12  Jim Meyering  <jim@meyering.net>
57802
57803         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
57804         matches that of the current directory (which we're about to chdir ".."
57805         out of), then save the dev-ino of the parent, instead.
57806
57807         * lib/same-inode.h (SAME_INODE): New file/macro.
57808         * lib/chdir-safer.c (SAME_INODE): Remove definition.
57809         Include "same-inode.h", instead.
57810         * lib/same.c: Likewise.
57811         * lib/cycle-check.h: Include "same-inode.h".
57812         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
57813         * lib/cycle-check.c (SAME_INODE): Remove definition.
57814         * lib/root-dev-ino.h: Include "same-inode.h".
57815
57816         2006-03-11  Eric Blake  <ebb9@byu.net>
57817
57818         * lib/same.c (same_name): s/base_name/last_component/
57819         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
57820         * lib/filenamecat.c (file_name_concat): Likewise.
57821
57822         2006-03-11  Eric Blake  <ebb9@byu.net>,
57823                     Paul Eggert  <eggert@cs.ucla.edu>
57824
57825         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
57826         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
57827         drive prefix.
57828         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
57829         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
57830         (last_component): New method.
57831         * lib/dirname.c (dir_len): Determine when drive letters need a
57832         subsequent slash.  Preserve // when it is special.
57833         (dir_name): Don't append dot when drive letter is absolute.
57834         [TEST_DIRNAME]: Move into a full-blown gnulib test.
57835         * lib/basename.c (base_name): New semantics - malloc the result.
57836         Preserve // when it is special.  Preserve relative files that look
57837         like drive letters.
57838         (base_len): Preserve // when it is special.
57839         (last_component): New method, similar to old base_name semantics.
57840         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
57841         base_name.  Strip redundant slashes from ///.
57842
57843 2006-07-03  Jim Meyering  <jim@meyering.net>
57844
57845         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
57846         macro is used before the first cycle_check call.
57847
57848 2006-07-03  Eric Blake  <ebb9@byu.net>
57849
57850         * modules/dirname (Depends-on): Add xstrndup.
57851
57852 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57853
57854         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
57855         test cases, so that config.log is a bit easier to follow.
57856
57857 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57858
57859         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
57860         both are 64 bits, since this seems to be the tradition, and this
57861         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
57862         we ever run into a host that prefers long long to long in this
57863         case, we'll need another configure-time test.  Problem reported by
57864         Jim Meyering.
57865
57866 2006-07-02  Eric Blake  <ebb9@byu.net>
57867
57868         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
57869
57870 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
57871
57872         * modules/inttypes (Depends-on): No longer depends on stdint.
57873         * modules/stdint (Description): Say more about assumptions.
57874         Say that the fast types might differ.  Say macros are used.
57875         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
57876         (Makefile.am): Revise list of substituted symbols to match
57877         new stdint.m4.
57878         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
57879         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
57880         * tests/test-stdint.c (verify_same_types)
57881         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
57882         the code conforms to C99/C89.
57883         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
57884         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
57885
57886 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
57887
57888         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
57889         but fix a bug, by requiring at least 64 bits.
57890         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
57891         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
57892         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
57893         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
57894
57895         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
57896         changes.  Make 2.59 a prerequisite.  Check and substitute for
57897         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
57898         inttypes.h.  Do not use special include files; just use the
57899         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
57900         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
57901         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
57902         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
57903         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
57904         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
57905         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
57906         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
57907         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
57908         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
57909         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
57910         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
57911         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
57912         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
57913         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
57914         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
57915         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
57916         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
57917         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
57918         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
57919         WINT_MAX.  Check for C99 conformance more strictly, by detecting
57920         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
57921         not check for things that C99 does not require, e.g., int8_t.  If
57922         a test isn't needed unless <stdint.h> isn't working, and is
57923         unlikely to be needed for any other reason, then don't do it
57924         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
57925         size_t, since we assume C89 freestanding at least.  Do not check
57926         for sig_atomic_t, wchar_t, or wint_t, since the code now does
57927         the right thing even if the types are not defined.  Instead use:
57928         (gl_STDINT_TYPE_PROPERTIES): New macro.
57929         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
57930         testing whether <sys/types.h> clashes, as Autoconf does this for
57931         us now.  All uses removed.
57932         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
57933         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
57934         (gl_CHECK_TYPE_SAME):
57935         Remove; no longer needed.
57936         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
57937         exists, since we'll return 0 anyway in that case.
57938         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
57939
57940 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
57941
57942         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
57943         possible collision with system files.
57944         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
57945         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
57946         WCHAR_MIN and WCHAR_MAX in this case.
57947         (<stddef.h>): Do not include; no longer needed.
57948         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
57949         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
57950         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
57951         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
57952         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
57953         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
57954         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
57955         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
57956         !defined(__c99))]: Include in this case too, since it's harmless
57957         now.
57958         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
57959         dangerous to do so.
57960         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
57961         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
57962         (_STDINT_MIN, _STDINT_MAX): New macros.
57963         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
57964         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
57965         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
57966         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
57967         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
57968         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
57969         macros, not typedefs; this simplifies things quite a bit.
57970         Use long int for all types narrower than int64_t.
57971         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
57972         Define in terms of long long int or int64_t or long int,
57973         not int64_t or int32_t.  This saves some compile-time testing.
57974         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
57975         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
57976         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
57977         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
57978         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
57979         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
57980         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
57981         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
57982         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
57983         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
57984         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
57985         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
57986         undef any previous version and define our own version, for
57987         simplicity and consistency with the new macros for types.
57988         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
57989         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
57990         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
57991         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
57992         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
57993         @WINT_T_SUFFIX@ to keep things simple here.
57994         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
57995         Simplify by assuming typical 8/16/32/64 host, since we're
57996         already doing that elsewhere anyway.
57997         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
57998         and assume long long int is 64 bits if available.  This
57999         speeds up 'configure'.
58000
58001 2006-07-01  Eric Blake  <ebb9@byu.net>
58002
58003         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
58004         Reported by Andreas Buening.
58005
58006 2006-07-01  Eric Blake  <ebb9@byu.net>
58007
58008         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
58009
58010 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
58011
58012         * lib/getaddrinfo.c: fixed typo
58013
58014 2006-06-29  Jim Meyering  <jim@meyering.net>
58015
58016         * modules/strftime (Maintainer): Add my name, since with the
58017         FPRINTFTIME changes strftime.c has forked from glibc.
58018
58019 2006-06-29  Eric Blake  <ebb9@byu.net>
58020
58021         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
58022
58023 2006-06-29  Eric Blake  <ebb9@byu.net>
58024
58025         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
58026
58027 2006-06-29  Eric Blake  <ebb9@byu.net>
58028
58029         * lib/stat_.h: New file.
58030
58031 2006-06-29  Eric Blake  <ebb9@byu.net>
58032
58033         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
58034         unused static function.
58035
58036 2006-06-29  Eric Blake  <ebb9@byu.net>
58037
58038         * doc/functions.texi (Function Portability): Document missing lstat
58039         on mingw.
58040
58041 2006-06-29  Eric Blake  <ebb9@byu.net>
58042
58043         * MODULES.html.sh: Add sys_stat.
58044         * modules/sys_stat: New module.
58045         * modules/mkstemp (Depends-on): Add sys_stat.
58046
58047 2006-06-29  Derek R. Price  <derek@ximbiot.com>
58048
58049         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
58050
58051 2006-06-29  Derek R. Price  <derek@ximbiot.com>
58052
58053         * m4/c-bs-a.m4: Removed.
58054
58055 2006-06-29  Derek R. Price  <derek@ximbiot.com>
58056
58057         * lib/strftime.c: Assume strftime() exists.
58058
58059 2006-06-29  Derek Price  <derek@ximbiot.com>
58060
58061         * modules/c-bs-a: Removed - \a is C89.
58062         * MODULES.html.sh: Remove c-bs-a.
58063
58064 2006-06-29  Bruno Haible  <bruno@clisp.org>
58065
58066         * modules/wcwidth (License): Change to LGPL.
58067
58068 2006-06-28  Simon Josefsson  <jas@extundo.com>
58069
58070         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
58071         on _WIN32.
58072
58073         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
58074         getnameinfo.
58075
58076 2006-06-28  Simon Josefsson  <jas@extundo.com>
58077
58078         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
58079
58080 2006-06-28  Simon Josefsson  <jas@extundo.com>
58081
58082         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
58083         functions there.  It will succeed on Windows XP, but on Windows
58084         2000 and (presumably) earlier, it will fail, and use the internal
58085         re-implementation.
58086         (use_win32_p): New function.
58087         (getaddrinfo): Use strtoul on servname, to support numeric ports.
58088         Support AI_NUMERICSERV to disable getservbyname.
58089         (getnameinfo): New function, only supports
58090         NI_NUMERICHOST|NI_NUMERICSERV for now.
58091
58092         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
58093         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
58094         getnameinfo.
58095
58096 2006-06-28  Eric Blake  <ebb9@byu.net>
58097
58098         * modules/wcwidth: New file.
58099         * modules/mbchar (Depends-on): Add wcwidth.
58100         * modules/mbswidth (Depends-on): Add wcwidth.
58101         * MODULES.html.sh: Add wcwidth.
58102
58103 2006-06-28  Eric Blake  <ebb9@byu.net>
58104
58105         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
58106         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
58107
58108 2006-06-28  Eric Blake  <ebb9@byu.net>
58109
58110         * lib/xvasprintf.h: Fix comments.
58111
58112 2006-06-28  Eric Blake  <ebb9@byu.net>
58113
58114         * lib/mbchar.h (wcwidth): Include wcwidth.h.
58115         * lib/mbswidth.c (wcwidth): Move from here...
58116         * lib/wcwidth.h: ...to this new file.
58117
58118 2006-06-28  Derek R. Price  <derek@ximbiot.com>
58119
58120         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
58121
58122         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
58123         it's obsolete.
58124         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
58125
58126 2006-06-28  Derek R. Price  <derek@ximbiot.com>
58127
58128         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
58129         Autoconf 2.60 says this stuff was obsolete.
58130
58131 2006-06-28  Bruno Haible  <bruno@clisp.org>
58132
58133         * modules/wcwidth (Files): Add m4/wchar_t.m4.
58134
58135 2006-06-28  Bruno Haible  <bruno@clisp.org>
58136
58137         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
58138         gt_TYPE_WCHAR_T.
58139
58140 2006-06-28  Bruno Haible  <bruno@clisp.org>
58141
58142         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
58143         declaration for wcwidth.
58144         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
58145
58146 2006-06-28  Bruno Haible  <bruno@clisp.org>
58147
58148         * lib/mkdtemp.c [MINGW]: Include <io.h>.
58149         (mkdir): Define using _mkdir.
58150
58151 2006-06-28  Bruno Haible  <bruno@clisp.org>
58152
58153         * lib/getaddrinfo.h: Fix POSIX URL.
58154         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
58155         _WIN32.
58156         (use_win32_p): Make static.
58157         (getaddrinfo): Reject service name if it is empty or does not consist
58158         solely of decimal digits, or if its value is > 65535.
58159         (getnameinfo): Remove useless casts.
58160
58161 2006-06-27  Simon Josefsson  <jas@extundo.com>
58162
58163         * modules/sys_select: New file, suggested by Bruno Haible, Paul
58164         Eggert and Martin Lambers.
58165
58166 2006-06-27  Simon Josefsson  <jas@extundo.com>
58167
58168         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
58169         Eggert and Martin Lambers.
58170
58171 2006-06-27  Bruno Haible  <bruno@clisp.org>
58172
58173         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
58174         result to 0, not to empty.
58175         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
58176
58177 2006-06-27  Bruno Haible  <bruno@clisp.org>
58178
58179         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
58180
58181 2006-06-26  Simon Josefsson  <jas@extundo.com>
58182
58183         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
58184         present.
58185
58186 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
58187
58188         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
58189         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
58190         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
58191
58192 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
58193
58194         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
58195
58196 2006-06-26  Bruno Haible  <bruno@clisp.org>
58197
58198         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
58199
58200 2006-06-26  Bruno Haible  <bruno@clisp.org>
58201
58202         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
58203
58204 2006-06-26  Bruno Haible  <bruno@clisp.org>
58205
58206         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
58207         SGI C compiler in pre-C99 mode.
58208         Suggested by Mark D. Baushke and Larry Jones.
58209
58210 2006-06-26  Bruno Haible  <bruno@clisp.org>
58211
58212         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
58213         WCHAR_MAX.
58214         Reported by Mark D. Baushke and Larry Jones.
58215
58216 2006-06-26  Bruno Haible  <bruno@clisp.org>
58217
58218         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
58219         in pre-C99 mode.
58220         Suggested by Mark D. Baushke and Larry Jones.
58221
58222 2006-06-23  Simon Josefsson  <jas@extundo.com>
58223             Bruno Haible  <bruno@clisp.org>
58224
58225         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
58226         Emit mostlyclean-local rule.
58227         (func_emit_tests_Makefile_am): Likewise.
58228         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
58229
58230 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
58231
58232         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
58233
58234 2006-06-23  Bruno Haible  <bruno@clisp.org>
58235
58236         * tests/test-stdint.c: Update to match ISO C 99 Technical
58237         Corrigendum 1.
58238
58239 2006-06-23  Bruno Haible  <bruno@clisp.org>
58240
58241         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
58242
58243 2006-06-23  Bruno Haible  <bruno@clisp.org>
58244
58245         * lib/stdint_.h: Treat IRIX like OpenBSD.
58246
58247 2006-06-23  Bruno Haible  <bruno@clisp.org>
58248
58249         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
58250         ISO C 99 Technical Corrigendum 1.
58251
58252 2006-06-22  Simon Josefsson  <jas@extundo.com>
58253
58254         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
58255         MinGW.
58256
58257 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58258
58259         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
58260         needed.  Some compiler complained about some of them.  Problem reported
58261         by Larry Jones in
58262         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
58263
58264 2006-06-21  Simon Josefsson  <jas@extundo.com>
58265
58266         * tests/test-getaddrinfo.c: New file.
58267
58268         * modules/getaddrinfo-tests: New file.
58269
58270         * MODULES.html.sh: Add inet_pton.
58271
58272         * modules/inet_pton: New file.
58273
58274 2006-06-21  Simon Josefsson  <jas@extundo.com>
58275
58276         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
58277         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
58278         of using the (limited) gnulib implementation on Windows XP.
58279
58280         * m4/inet_pton.m4: New file.
58281
58282 2006-06-21  Simon Josefsson  <jas@extundo.com>
58283
58284         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
58285         variable.
58286
58287         * lib/socket_.h: Don't define WINVER.
58288
58289         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
58290         slightly modified to work in gnulib.
58291
58292 2006-06-21  Simon Josefsson  <jas@extundo.com>
58293
58294         * doc/gnulib.texi (Windows sockets): Add.
58295
58296 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58297
58298         * lib/read-file.c (fread_file): Start with buffer allocation of
58299         0 bytes rather than 1 byte; this simplifies the code.
58300         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
58301         code to free buffer and save/restore errno.
58302         (internal_read_file): Remove unused local.
58303
58304 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58305
58306         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
58307         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
58308         Problem reported by Denis Excoffier in
58309         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
58310
58311 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58312
58313         * modules/sys_socket, modules/socklen: Include sys/types since
58314         FreeBSD 4.x's sys/socket.h needs it.
58315
58316 2006-06-19  Simon Josefsson  <jas@extundo.com>
58317
58318         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
58319
58320 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
58321
58322         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
58323
58324 2006-06-19  Bruno Haible  <bruno@clisp.org>
58325
58326         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
58327         and FULL_PATH_INTTYPES_H in angle brackets.
58328         Reported by Mark D. Baushke <mdb@gnu.org>.
58329
58330 2006-06-17  Eric Blake  <ebb9@byu.net>
58331
58332         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
58333         errno.
58334
58335 2006-06-17  Bruno Haible  <bruno@clisp.org>
58336
58337         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
58338         <sys/inttypes.h>.
58339
58340 2006-06-17  Bruno Haible  <bruno@clisp.org>
58341
58342         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
58343         whether errno is declared. Assume <errno.h> declares errno.
58344
58345 2006-06-17  Bruno Haible  <bruno@clisp.org>
58346
58347         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
58348
58349 2006-06-17  Bruno Haible  <bruno@clisp.org>
58350
58351         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
58352         problem on Solaris 2.5.1.
58353
58354 2006-06-16  Eric Blake  <ebb9@byu.net>
58355
58356         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
58357         * lib/unicodeio.c [!defined errno]: Likewise.
58358         * lib/strtol.c [!defined errno]: Likewise.
58359         * lib/strtod.c [!defined errno]: Likewise.
58360
58361 2006-06-15  Eric Blake  <ebb9@byu.net>
58362
58363         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
58364
58365 2006-06-15  Eric Blake  <ebb9@byu.net>
58366
58367         * config/srclist.txt (ssize_t.m4): Lose sync.
58368
58369 2006-06-15  Bruno Haible  <bruno@clisp.org>
58370
58371         * modules/stdint (Files): Include m4/full-header-path.m4,
58372         m4/size_max.m4, m4/wchar_t.m4.
58373         (Makefile.am): Many more substitutions.
58374         * modules/stdint-tests: New file.
58375         * tests/test-stdint.c: New file.
58376
58377 2006-06-15  Bruno Haible  <bruno@clisp.org>
58378
58379         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
58380         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
58381         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
58382         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
58383         gl_CHECK_TYPE_SAME): New macros.
58384
58385 2006-06-15  Bruno Haible  <bruno@clisp.org>
58386
58387         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
58388
58389 2006-06-15  Bruno Haible  <bruno@clisp.org>
58390
58391         * lib/stdint_.h: Rewritten to be fully auto-configured.
58392         Fixes bug on HP-UX/IA64.
58393
58394 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
58395
58396         * lib/getdate.y (__attribute__): Don't define if already defined.
58397         Problem reported by Larry Jones.
58398         * lib/utimens.c (__attribute__): Likewise.
58399
58400 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
58401
58402         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
58403         reported by Andreas Schwab.
58404
58405 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58406             Bruno Haible  <bruno@clisp.org>
58407
58408         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
58409         check for the declaration of strnlen and a run test that exposes the
58410         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
58411         rpl_strndup.
58412
58413 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58414             Bruno Haible  <bruno@clisp.org>
58415
58416         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
58417
58418 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58419
58420         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
58421         compile test, for Tru64 4.0D.
58422
58423 2006-05-28  Karl Berry  <karl@gnu.org>
58424
58425         * config/srclist.txt (printf-args.c): lose sync.
58426
58427 2006-05-26  Martin Lambers  <marlam@marlam.de>
58428
58429         * lib/getpass.c: Updates the test for the native W32 API, and adds
58430         missing includes, thus fixing compilation warnings.
58431
58432 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
58433
58434         * lib/exclude.c (exclude_fnmatch): New function.
58435         (excluded_file_name): Call exclude_fnmatch.
58436         * lib/exclude.h (excluded_file_name): New prototype
58437
58438 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
58439
58440         * lib/tempname.c (small_open, large_open): New macros.
58441         (__open, __open64) [!_LIBC]: Remove.
58442         (__gen_tempname): Use small_open and large_open instead of __open
58443         and __open64.  This fixes a portability bug on HP-UX 11.11i
58444         reported by Simon Wing-Tang in
58445         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
58446
58447 2006-05-24  Bruno Haible  <bruno@clisp.org>
58448
58449         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
58450         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
58451         Reported by Thorsten Maerz <torte@netztorte.de> via
58452         Aaron Stone <aaron@serendipity.cx>.
58453
58454 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
58455
58456         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
58457         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
58458         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
58459         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
58460         not really conditional on the cache.
58461         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
58462
58463 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
58464
58465         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
58466         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
58467         (my_usleep): Don't mishandle maximum value.
58468
58469 2006-05-19  Jim Meyering  <jim@meyering.net>
58470
58471         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
58472
58473 2006-05-17  Bruno Haible  <bruno@clisp.org>
58474
58475         Cygwin portability.
58476         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
58477
58478 2006-05-17  Bruno Haible  <bruno@clisp.org>
58479
58480         * lib/stdint_.h: Fix recognition of Cygwin.
58481
58482 2006-05-15  Bruno Haible  <bruno@clisp.org>
58483
58484         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
58485         on libtool patch by Ralf Wildenhues.
58486
58487 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58488
58489         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
58490         test for C99 conformance; (bool) 0.5 is an integer constant
58491         expression, but (bool) -0.5 is not.  Problem reported by Fedor
58492         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
58493
58494 2006-05-11  Simon Josefsson  <jas@extundo.com>
58495
58496         * m4/xvasprintf.m4: Fix obvious typo.
58497
58498 2006-05-11  Jim Meyering  <jim@meyering.net>
58499
58500         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
58501         James Lemley.
58502
58503 2006-05-10  Simon Josefsson  <jas@extundo.com>
58504
58505         * lib/md4.c: Typo fix, update copyright years.
58506         (K1, K2): Don't use L because it turn computations into 64-bit on
58507         64-bit platforms.
58508
58509 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
58510
58511         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
58512         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
58513         unwanted sign propagation, e.g., on hosts with 64-bit int.
58514         There still are some problems with reeelly weird theoretical hosts
58515         (e.g., 33-bit int) but it's not worth worrying about now.
58516         * lib/sha1.c (rol): Likewise.
58517         (K1, K2, K3, K4): Remove unnecessary L suffix.
58518
58519 2006-05-10  Bruno Haible  <bruno@clisp.org>
58520
58521         * lib/des.c: Cast to avoid warnings.
58522
58523 2006-05-09  Bruno Haible  <bruno@clisp.org>
58524
58525         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
58526         (Depends-on): Depend also on xsize, stdarg.
58527         (configure.ac): Add gl_XVASPRINTF.
58528
58529 2006-05-09  Bruno Haible  <bruno@clisp.org>
58530
58531         * m4/xvasprintf.m4: New file.
58532
58533 2006-05-09  Bruno Haible  <bruno@clisp.org>
58534
58535         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
58536         (EOVERFLOW): Define fallback value.
58537         (xstrcat): New function.
58538         (xvasprintf): Recognize the special case of a string concatenation.
58539
58540 2006-05-08  Eric Blake  <ebb9@byu.net>
58541
58542         * gnulib-tool (func_version): Base copyright year on CVS date.
58543         (func_emit_copyright_notice): New function.
58544         (func_emit_lib_Makefile_am): Use it.
58545         (func_emit_tests_Makefile_am): Likewise.
58546         (func_import): Likewise.
58547
58548 2006-05-08  Bruno Haible  <bruno@clisp.org>
58549
58550         * modules/stdarg: New file.
58551         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
58552
58553 2006-05-08  Bruno Haible  <bruno@clisp.org>
58554
58555         * m4/stdarg.m4: New file, from GNU gettext.
58556
58557 2006-05-08  Bruno Haible  <bruno@clisp.org>
58558
58559         * config/srclist.txt (build-aux/config.rpath): different from latest
58560         release.
58561
58562 2006-05-08  Bruno Haible  <bruno@clisp.org>
58563
58564         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
58565
58566 2006-05-05  Jim Meyering  <jim@meyering.net>
58567
58568         * m4/warning.m4: New file, derived from bison's file by the same name.
58569
58570 2006-05-03  Bruno Haible  <bruno@clisp.org>
58571
58572         * lib/stdint_.h: Shorter URL.
58573         * lib/inttypes.h: Likewise.
58574
58575 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
58576
58577         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
58578
58579 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
58580
58581         * lib/verify.h: Document the internals better.  Most of this change
58582         was written by Bruno Haible.
58583
58584 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
58585
58586         * doc/verify.texi: New file, partly based on a proposal by
58587         Bruno Haible.
58588
58589 2006-05-02  Bruno Haible  <bruno@clisp.org>
58590
58591         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
58592         test from here...
58593         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
58594
58595 2006-04-29  Bruno Haible  <bruno@clisp.org>
58596
58597         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
58598         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
58599
58600 2006-04-29  Bruno Haible  <bruno@clisp.org>
58601
58602         * gnulib-tool: Make --update option actually work.
58603
58604 2006-04-29  Bruno Haible  <bruno@clisp.org>
58605
58606         * doc/gcd.texi: New file.
58607         * doc/gnulib.texi: Include it.
58608
58609 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
58610
58611         * lib/getdate.y (get_date): When adding relative date, start with the
58612         initial time, not with the result of the first mktime call.
58613
58614 2006-04-25  Bruno Haible  <bruno@clisp.org>
58615
58616         * gnulib-tool (func_import): Output the include directives in three
58617         blocks, sorted separately.
58618         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58619
58620 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
58621
58622         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
58623         to define main with arguments, for C++.  Reported by Eric Blake.
58624         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
58625         Prefer 'int main ()' to 'int main (void)', for C++.
58626         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
58627         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
58628         for 'main', for C99 and C++.
58629
58630 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
58631
58632         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
58633         Don't assume that exit status -1 is valid.
58634         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58635         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
58636         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
58637         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
58638         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
58639         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
58640         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
58641         functions can be used without declaring them, or that you can
58642         exit with status -1.
58643         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
58644
58645 2006-04-24  Karl Berry  <karl@gnu.org>
58646
58647         * config/srclist.txt (longdouble.m4): sync lost.
58648
58649 2006-04-24  Eric Blake  <ebb9@byu.net>
58650
58651         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
58652
58653 2006-04-24  Bruno Haible  <bruno@clisp.org>
58654
58655         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
58656         poll() implementation in AIX.
58657         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58658
58659 2006-04-24  Bruno Haible  <bruno@clisp.org>
58660
58661         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
58662         assigned exactly once.
58663
58664 2006-04-23  Claudio Fontana  <claudio@gnu.org>
58665             Bruno Haible  <bruno@clisp.org>
58666
58667         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
58668         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
58669         for AM_CPPFLAGS.
58670
58671 2006-04-23  Bruno Haible  <bruno@clisp.org>
58672
58673         * modules/copy-file: Depend on unistd.
58674         * modules/execute: Likewise.
58675         * modules/fatal-signal: Likewise.
58676         * modules/findprog: Likewise.
58677         * modules/mkdtemp : Likewise.
58678         * modules/pipe: Likewise.
58679         * modules/wait-process: Likewise.
58680
58681 2006-04-23  Bruno Haible  <bruno@clisp.org>
58682
58683         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
58684         condition was already detected.
58685         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58686
58687 2006-04-23  Bruno Haible  <bruno@clisp.org>
58688
58689         * lib/copy-file.c: Include <unistd.h> unconditionally.
58690         * lib/execute.c: Likewise.
58691         * lib/fatal-signal.c: Likewise.
58692         * lib/findprog.c: Likewise.
58693         * lib/mkdtemp.c: Likewise.
58694         * lib/pipe.h: Likewise.
58695         * lib/pipe.c: Likewise.
58696         * lib/wait-process.h: Likewise.
58697
58698 2006-04-23  Bruno Haible  <bruno@clisp.org>
58699
58700         * gnulib-tool (func_usage): Fix --import description. Document
58701         --update.
58702         (func_import): Create temporary file in a temporary directory, if
58703         --dry-run is specified. Silence errors from 'grep' when there are no
58704         m4 files in $m4dir.
58705         (func_create_testdir): Silence errors from 'grep' when there are no
58706         m4 files in $m4dir.
58707         Reported by Karl Berry <karl@freefriends.org>.
58708
58709 2006-04-20  Bruno Haible  <bruno@clisp.org>
58710
58711         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
58712         one argument, so that the code will be portable to Autoconf 2.60.
58713         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
58714         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
58715         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
58716
58717 2006-04-19  Derek Price  <derek@ximbiot.com>
58718             Eric Blake  <ebb9@byu.net>
58719
58720         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
58721         rather than "/full/path.h".  Update comment to match.  Shorten &
58722         generalize m4_translit call via AS_TR_CPP.
58723
58724 2006-04-19  Derek Price  <derek@ximbiot.com>
58725             Eric Blake  <ebb9@byu.net>
58726
58727         * lib/inttypes.h: Correct grammar in comment.
58728
58729 2006-04-18  Derek Price  <derek@ximbiot.com>
58730             Paul Eggert  <eggert@cs.ucla.edu>
58731
58732         * modules/inttypes: New file.
58733         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
58734
58735 2006-04-18  Derek Price  <derek@ximbiot.com>
58736             Paul Eggert  <eggert@cs.ucla.edu>
58737
58738         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
58739         New files.
58740
58741 2006-04-18  Derek Price  <derek@ximbiot.com>
58742             Paul Eggert  <eggert@cs.ucla.edu>
58743
58744         * lib/inttypes.h: New file.
58745         * lib/strtoimax.c: Assume <inttypes.h>.
58746
58747 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
58748
58749         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
58750         isn't mounted.  Problem reported by Kir Kolyshkin.
58751
58752 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
58753
58754         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
58755         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
58756         Derek R. Price.
58757         * lib/regex.h (RE_DUP_MAX): Update comment to match current
58758         implementation.
58759
58760 2006-04-12  Eric Blake  <ebb9@byu.net>
58761
58762         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
58763         is now done automatically by the corresponding Autoconf macro.
58764
58765 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
58766
58767         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
58768         time_r.h.
58769
58770 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
58771
58772         Merge regex changes from libc, removing some of our
58773         POSIX-conformance changes that were rejected and redoing them in a
58774         less-intrusive way.
58775
58776         * lib/regcomp.c (re_compile_internal, init_dfa):
58777         Length arg is now size_t, not Idx.  All uses changed.
58778         (peek_token): Forward decl now says internal_function.
58779         (__re_error_msgid, __re_error_msgid_idx):
58780         Now static rather than extern with attribute_hidden.
58781         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
58782         For some reason libc prefers K&R style defns for external functions.
58783         (regerror) [!defined _LIBC]: Likewise.
58784         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
58785         (seek_collating_symbol_entry, lookup_collation_sequence_value):
58786         (build_range_exp, build_collating_symbol):
58787         Use K&R-style defn.
58788         (re_compile_fastmap): Use '\0' to memset, not 0.
58789         (utf8_sb_map): Make the calculations more obvious.
58790         (init_dfa, parse_bracket_exp, build_charclass_op):
58791         Call calloc and cast result, as glibc does.
58792         (init_word_char, fetch_token, peek_token, peek_token_bracket):
58793         (build_range_exp, build_collating_symbol):
58794         Now internal functions.
58795
58796         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
58797
58798         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
58799         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
58800         Don't depend on VMS; depend on __VMS instead, for POSIX
58801         namespace cleanness.
58802         (regoff_t): Define to ssize_t, not long int.
58803
58804         Remove the REG_ macros named below.  Instead, make the old names
58805         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
58806         __USE_GNU_REGEX.
58807         (REG_BACKSLASH_ESCAPE_IN_LISTS):
58808         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
58809         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
58810         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
58811         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
58812         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
58813         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
58814         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
58815         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
58816         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
58817         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
58818         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
58819         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
58820         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
58821         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
58822         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
58823         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
58824         (REG_NREGS):
58825         Remove.  All uses replaced by the old RE_* names.
58826         (RE_BACKSLASH_ESCAPE_IN_LISTS):
58827         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
58828         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
58829         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
58830         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
58831         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
58832         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
58833         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
58834         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
58835         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
58836         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
58837         Don't bother having these macros be independent of each others'
58838         values, since they no longer exist in the POSIX name space.
58839
58840         Rename the following member names back to their old names,
58841         unless !__USE_GNU_REGEX.  All uses changed back.
58842         (buffer): Renamed from re_buffer.
58843         (allocated): Renamed from re_allocated.
58844         (used): Renamed from re_used.
58845         (syntax): Renamed from re_syntax.
58846         (fastmap): Renamed from re_fastmap.
58847         (translate): Renamed from re_translate.
58848         (can_be_null): Renamed from re_can_be_null.
58849         (regs_allocated): Renamed from re_regs_allocated.
58850         (fastmap_accurate): Renamed from re_fastmap_accurate.
58851         (no_sub): Renamed from re_no_sub.
58852         (not_bol): Renamed from re_not_bol.
58853         (not_eol): Renamed from re_not_eol.
58854         (newline_anchor): Renamed from re_newline_anchor.
58855         (num_regs): Renamed from rm_num_regs.
58856         (start): Renamed from rm_start.
58857         (end): Renamed from rm_end.
58858
58859         (free_state): Move up a bit.
58860
58861         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
58862         #define to be empty.
58863         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
58864         when that is what is intended.
58865         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
58866         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
58867         (MAX): New macro.
58868         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
58869         All uses changed back to re_malloc, etc.  It's now the caller's
58870         responsibility to check for overflow; all callers changed.
58871         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
58872         (re_x2nrealloc): Remove.
58873         (free_state): Remove decl.
58874
58875         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
58876         (re_set_registers, re_exec):
58877         Use K&R-style defn.
58878
58879         2006-01-31  Roland McGrath  <roland@redhat.com>
58880
58881         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
58882         Reported by Mike Frysinger <vapier@gentoo.org>.
58883
58884         2006-01-15  Andreas Jaeger  <aj@suse.de>
58885
58886         [BZ #1950]
58887         * lib/regex_internal.c (re_string_reconstruct): Adjust for
58888         build_wcs_upper_buffer change.
58889         (build_wcs_upper_buffer): Change return type.
58890
58891         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
58892
58893         * lib/regex_internal.h: Include <stdint.h> if available.
58894
58895         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
58896
58897         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
58898
58899         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
58900
58901         * lib/regcomp.c: Adjust for changed secondary hash function.
58902
58903         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
58904
58905         * lib/regex.h: Pretty printing.
58906         Clean up namespace a bit.
58907
58908         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
58909
58910         * lib/regexec.c (update_cur_sifted_state, check_arrival,
58911         check_arrival_add_next_nodes): Avoid using uninitialized variable.
58912
58913         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58914                     Ulrich Drepper  <drepper@redhat.com>
58915
58916         [BZ #1302]
58917         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
58918         changed.
58919         (bitset_word_t): Renamed from bitset_word.  All uses changed.
58920
58921         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
58922
58923         [BZ #281]
58924         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
58925         * lib/regcomp.c: Remove unnecessary uses of
58926         unsigned RE_TRANSLATE_TYPE.
58927         * lib/regex_internal.h: Likewise.
58928         * lib/regex_internal.c: Likewise.
58929         * lib/regexec.c: Likewise.
58930         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
58931
58932         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
58933
58934         * lib/regexec.c (find_recover_state): Remove unnecessary
58935         initialization.
58936         (transit_state_bkref): Make DFA a const pointer.
58937         (get_subexp): Likewise.
58938         (check_arrival): Likewise.
58939         (update_cur_sifted_state): Likewise.
58940         (re_search_internal): Likewise.
58941         (prune_impossible_nodes): Likewise.
58942         (acquire_init_state_context): Likewise.
58943         (proceed_next_node): Likewise.
58944         (set_regs): Likewise.
58945         (free_fail_stack_return): Likewise.
58946         (check_arrival_expand_ecl): Mark DFA parameter as const.
58947         (check_arrival_expand_ecl_sub): Likewise.
58948         (check_subexp_limits): Likewise.
58949         (sub_epsilon_src_nodes):  Likewise.
58950         (add_epsilon_src_nodes):  Likewise.
58951         (merge_state_array): Likewise.
58952         (update_regs): Likewise.
58953         (build_trtable): Likewise.
58954         (sift_states_backward): Mark MCTX parameter as const.
58955         (build_sifted_states): Likewise.
58956         (update_cur_sifted_state): Likewise.
58957         (sift_states_mkref): Likewise.
58958         (check_arrival_expand_ecl): Mark eclosure as const.
58959         (check_dst_limits_calc_pos_1): Likewise.
58960         * lib/regex_internal.h (re_match_context_t): Make dfa a const
58961         pointer.
58962
58963         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
58964
58965         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
58966         (transit_state_sb): Likewise.
58967         (transit_state_mb): Likewise.
58968         (sift_states_iter_mb): Likewise.
58969         (check_arrival_add_next_nodes): Likewise.
58970         (check_node_accept_bytes): Change first parameter to pointer-to-const.
58971         [_LIBC] (re_search_2_stub): Use mempcpy.
58972
58973         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
58974         mbrtowc for very simple UTF-8 case.
58975
58976         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
58977         a pointer-to-const.
58978         (re_acquire_state_context): Likewise.
58979         * lib/regex_internal.h: Adjust prototypes.
58980
58981         * lib/regex.c: Prevent using C++ compilers.
58982
58983         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
58984         (re_acquire_state_context): Likewise.
58985
58986 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
58987
58988         * modules/regex (Depends-on): Add ssize_t.
58989
58990 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
58991
58992         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
58993         translation table.
58994
58995 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
58996
58997         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
58998
58999 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
59000             Bruno Haible  <bruno@clisp.org>
59001
59002         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
59003         <sys/types.h> and <inttypes.h>.
59004
59005 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59006
59007         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
59008         `__error_t_defined', so argp.h will not typedef the former.
59009
59010 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
59011
59012         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
59013         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
59014         glibc names.  Even if glibc is changed to conform to POSIX, the
59015         traditional names will be available anyway, since regex depends on
59016         the extensions module.  Also, fix a longstanding typo in the
59017         implementation of Spencer ERE test #75 from grep 2.3.  Problems
59018         reported by Emanuele Giaquinta.  Also, change sense of cached
59019         variable, so that the message makes sense.
59020
59021 2006-03-24  Simon Josefsson  <jas@extundo.com>
59022
59023         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
59024         including some doc fixes.
59025         (base64_encode_alloc): Fix +1 bug on allocation failures.
59026
59027 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59028
59029         * lib/base64.c (base64_encode): Do not read past end of array with
59030         unsanitized input on systems with CHAR_BIT > 8.
59031
59032 2006-03-24  Eric Blake  <ebb9@byu.net>
59033
59034         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
59035
59036 2006-03-22  Karl Berry  <karl@gnu.org>
59037
59038         * config/srclist.txt (*setenv.[ch]): get from coreutils.
59039         * config/srclistvars.sh (COREUTILS): new var.
59040
59041 2006-03-17  Jim Meyering  <jim@meyering.net>
59042
59043         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
59044         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
59045
59046 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
59047
59048         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
59049         no longer needs it.  Instead, check that regoff_t is as least
59050         as wide as ptrdiff_t.
59051
59052         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
59053         so that our regex.h stays compatible with the installed regex.
59054         This is helpful for installers who configure --without-included-regex.
59055         Problem reported by Emanuele Giaquinta.
59056
59057 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
59058
59059         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
59060         Typedef to long int, not to off_, as POSIX will likely change
59061         in that direction.
59062
59063 2006-03-15  Eric Blake  <ebb9@byu.net>
59064
59065         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
59066
59067 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
59068
59069         * lib/argp-help.c (validate_uparams): Fix typo
59070         * lib/argp-parse.c (argp_default_options): Consistently begin help
59071         messages with a lowercase letter.
59072
59073 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
59074
59075         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
59076         overrun buffers and shouldn't be used (much as gets shouldn't be
59077         used).
59078         * lib/time_r.c (asctime_r, ctime_r): Likewise.
59079
59080 2006-03-08  Simon Josefsson  <jas@extundo.com>
59081
59082         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
59083         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59084
59085 2006-03-08  Simon Josefsson  <jas@extundo.com>
59086
59087         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
59088         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59089
59090 2006-03-08  Simon Josefsson  <jas@extundo.com>
59091
59092         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
59093         signal that configure disabled the device.
59094
59095 2006-03-08  Simon Josefsson  <jas@extundo.com>
59096
59097         * build-aux/maint.mk: Fix refresh-po, to handle no translated
59098         languages.
59099
59100 2006-03-07  Simon Josefsson  <jas@extundo.com>
59101
59102         * modules/getopt (Depends-on): Add unistd.
59103
59104         * modules/unistd: New file.
59105
59106 2006-03-07  Simon Josefsson  <jas@extundo.com>
59107
59108         * modules/gc-random: New file.
59109
59110 2006-03-07  Simon Josefsson  <jas@extundo.com>
59111
59112         * m4/unistd_h.m4: New file.
59113
59114 2006-03-07  Simon Josefsson  <jas@extundo.com>
59115
59116         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
59117         test to be side-effect free by storing the result in the cache
59118         variable gl_cv_lib_readline, and moving the assignment of
59119         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
59120         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59121
59122 2006-03-07  Simon Josefsson  <jas@extundo.com>
59123
59124         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
59125         error on missing devices (the functions will return an error).
59126
59127         * m4/gc.m4: Move random stuff to gc-random.m4
59128
59129 2006-03-07  Simon Josefsson  <jas@extundo.com>
59130
59131         * lib/unistd_.h: New file.
59132
59133 2006-03-07  Simon Josefsson  <jas@extundo.com>
59134
59135         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
59136
59137 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
59138
59139         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
59140         Problem reported by Juan Manuel Guerrero.
59141
59142 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
59143
59144         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
59145         the unistd module.
59146         * lib/getlogin_r.c: Likewise.
59147         * lib/getlogin_r.h: Likewise.
59148         * lib/glob.c: Likewise.
59149         * lib/pagealign_alloc.c: Likewise.
59150         * lib/unistd_.h: Remove; no longer needed.
59151
59152 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
59153
59154         * MODULES.html.sh (Support for systems lacking POSIX:2001):
59155         Add unistd.
59156         * modules/c-stack (Depends-on): Add unistd.
59157         * modules/getlogin_r: Likewise.
59158         * modules/glob: Likewise.
59159         * modules/pagealign_alloc: Likewise.
59160         * modules/unistd (Files): Remove lib/unistd_.h.
59161         (EXTRA_DIST): Remove.
59162         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
59163         need unistd_.h.
59164         (MOSTLYCLEANFILES): Remove unistd.h-t.
59165
59166 2006-03-03  Simon Josefsson  <jas@extundo.com>
59167
59168         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
59169
59170 2006-03-03  Simon Josefsson  <jas@extundo.com>
59171
59172         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
59173         libidn and bison.
59174
59175 2006-03-03  Simon Josefsson  <jas@extundo.com>
59176
59177         * build-aux/maint.mk: Add indent target.
59178
59179 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
59180
59181         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
59182         our replacement poll.h in any case, to avoid a differing
59183         declaration from a system header.  Seen on AIX.
59184
59185 2006-03-01  Simon Josefsson  <jas@extundo.com>
59186
59187         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
59188         <kasal@ucw.cz>.
59189
59190 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59191
59192         * modules/gettime (Depends-on): Add extensions module.
59193         * modules/nanosleep (Depends-on): Likewise.
59194         * modules/settime (Depends-on): Likewise.
59195
59196 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59197
59198         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
59199         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
59200         pedantically.
59201         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59202         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
59203
59204         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
59205         not "==".  Reported by Ralf Wildenhues.
59206
59207 2006-03-01  Karl Berry  <karl@gnu.org>
59208
59209         * doc/Copyright/request-*: new files, synced from gnuorg.
59210
59211 2006-03-01  Karl Berry  <karl@gnu.org>
59212
59213         * config/srclist.txt (Copyright/*): new entries.
59214
59215 2006-02-28  Simon Josefsson  <jas@extundo.com>
59216
59217         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
59218
59219 2006-02-27  Simon Josefsson  <jas@extundo.com>
59220
59221         * lib/base64.h: Indent #define's.  From Jim Meyering
59222         <jim@meyering.net>.
59223
59224 2006-02-27  Jim Meyering  <jim@meyering.net>
59225
59226         Revert the change of 2006-02-24, so these files can continue
59227         to be sync'd from gettext.
59228         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
59229         of `config.h'.
59230
59231 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
59232
59233         * modules/intprops: New file.
59234         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
59235         Add intprops.
59236         * modules/getloadavg (Files): Remove lib/intprops.h.
59237         (Depends-on): Add intprops.
59238         * modules/human: Likewise.
59239         * modules/inttostr: Likewise.
59240         * modules/openat: Likewise.
59241         * modules/sig2str: Likewise.
59242         * modules/userspec: Likewise.
59243         * modules/utimecmp: Likewise.
59244         * modules/xnanosleep: Likewise.
59245         * modules/xstrtol: Likewise.
59246
59247 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
59248
59249         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
59250         * modules/lock-tests (TESTS): Use $(EXEEXT).
59251         * modules/tls-tests: Likewise.
59252         * modules/argp-tests: Likewise.
59253         (check_PROGRAMS): New var, replacing...
59254         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
59255
59256 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59257
59258         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
59259         `config.h'.
59260
59261 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59262
59263         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
59264
59265 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59266
59267         Sync from coreutils.
59268         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
59269         gl_CHDIR_SAFER.
59270
59271 2006-02-22  Jim Meyering  <jim@meyering.net>
59272
59273         Sync from coreutils.
59274         * m4/chdir-safer.m4: New file.
59275
59276 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
59277
59278         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
59279         AT_FDCWD exceeds INT_MAX.
59280         * lib/openat.h (AT_FDCWD): Likewise.
59281
59282 2006-02-17  Eric Blake  <address@hidden>
59283
59284         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
59285
59286 2006-02-16  Simon Josefsson  <jas@extundo.com>
59287
59288         * modules/getaddrinfo (Depends-on): Add sys_socket.
59289
59290 2006-02-15  Simon Josefsson  <jas@extundo.com>
59291
59292         * build-aux/maint.mk: Add dsyntax-check rule.
59293
59294 2006-02-15  Eric Blake  <ebb9@byu.net>
59295
59296         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
59297         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
59298         'present but cannot compile' warnings on cygwin.
59299         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
59300         use ws2tcpip.h if sys/socket.h works.
59301         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
59302         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
59303
59304 2006-02-14  Simon Josefsson  <jas@extundo.com>
59305
59306         * modules/maintainer-makefile (Files): Rename.
59307
59308         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
59309         and (the local) Makefile.cfg to maint-cfg.mk.
59310
59311         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
59312         to the latter.
59313
59314         * modules/maintainer-makefile: New module.
59315
59316         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
59317         severaly stripped to make it possible to build it up from scratch
59318         with reliable tests.
59319
59320         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
59321         fixes to permit overriding the default actions when configure and
59322         makefile are not available.
59323
59324 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59325
59326         Sync from coreutils.
59327         * modules/lstat (Depends-on): Don't depend on xalloc.
59328         (License): Change from GPL to LGPL, since this is now simply a
59329         replacement for a libc function.
59330
59331 2006-02-14  Jim Meyering  <jim@meyering.net>
59332
59333         Sync from coreutils.
59334
59335         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
59336         failure on deficient systems, and simplify gnulib lgpl dependencies.
59337         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
59338         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
59339
59340         * lib/xalloc-die.c: Remove unused definition of N_.
59341
59342 2006-02-14  Jim Meyering  <jim@meyering.net>
59343
59344         Sync from coreutils.
59345         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
59346         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
59347         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
59348         double-quote uses of that variable, to accommodate the rare case in
59349         which getmntent is available in none of the libraries checked.  This
59350         happens at least on FreeBSD 5.0.
59351
59352 2006-02-13  Simon Josefsson  <jas@extundo.com>
59353
59354         * gnulib-tool (Usage): Fix --import, from
59355         karl@freefriends.org (Karl Berry).
59356
59357 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
59358
59359         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
59360
59361 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
59362
59363         * lib/argp-namefrob.h: Restore changes accidentally lost during the
59364         "autoupdate" on 2005-12-12.
59365
59366 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
59367
59368         * modules/closeout (Depends-on): Remove atexit.
59369
59370 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
59371
59372         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
59373         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
59374
59375 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
59376
59377         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
59378         __EXTENSIONS__ if this causes compilation to fail.  Problem
59379         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
59380         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
59381
59382 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
59383
59384         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
59385         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
59386         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
59387         All uses changed.
59388
59389 2006-01-26  Simon Josefsson  <jas@extundo.com>
59390
59391         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
59392         prototype is visible on mingw32.
59393
59394         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
59395         for mingw32.
59396
59397         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
59398         mingw32).
59399
59400 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
59401
59402         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
59403         attempt to open for write; this always fails, at least on POSIX
59404         hosts.  This reinstates the 2006-01-09 change, which was
59405         inadvertently removed.
59406
59407 2006-01-26  Bruno Haible  <bruno@clisp.org>
59408
59409         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
59410         Reported by Paul Eggert.
59411
59412 2006-01-26  Bruno Haible  <bruno@clisp.org>
59413             Paul Eggert  <eggert@cs.ucla.edu>
59414
59415         * lib/stdbool_.h (_Bool)
59416         [(! (defined __cplusplus || defined __BEOS__)
59417           && !defined __GNUC__
59418           && !(defined __HP_cc || defined __xlc__
59419                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
59420                || defined __sgi))]:
59421         #define to signed char in these cases too; this simplifies
59422         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
59423         etc., separately) and makes it more conservative.
59424
59425 2006-01-25  Simon Josefsson  <jas@extundo.com>
59426
59427         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
59428         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
59429         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
59430
59431 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
59432
59433         * lib/argp-namefrob.h: Bugfix. Remove stray #
59434
59435 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
59436
59437         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
59438         so that we test the test.
59439         Check for yet another HP-UX cc bug involving *bool |= bool.
59440
59441 2006-01-25  Karl Berry  <karl@gnu.org>
59442
59443         * config/srclist.txt (vasnprintf.c): sync lost.
59444
59445 2006-01-25  Jim Meyering  <jim@meyering.net>
59446
59447         Sync from the stable (b5) branch of coreutils:
59448
59449         * lib/fts.c (fts_children): Don't let close() clobber errno from
59450         failed fchdir().
59451
59452         * lib/fts.c (fts_stat): When following a symlink-to-directory,
59453         don't necessarily interpret stat-fails+lstat-succeeds as indicating
59454         a dangling symlink.  That can also happen at least for ELOOP.
59455         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
59456         FYI, this bug predates the inclusion of fts.c in coreutils.
59457
59458         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
59459         in their own block, so pre-c99 compilers don't object.
59460
59461         Avoid the double-free (first in fts_read, second in fts_close) that
59462         would occur when an `active' directory is made inaccessible (e.g.,
59463         via chmod a-x) during a traversal.
59464         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
59465         before returning.  Reproduce this failure by
59466         mkdir -p a/b; cd a; chmod a-x . b
59467         Reported by Stavros Passas.
59468
59469 2006-01-25  Jim Meyering  <jim@meyering.net>
59470
59471         * lib/fileblocks.c: Remove more useless parentheses.
59472         * lib/readutmp.h: Likewise.
59473
59474 2006-01-25  Bruno Haible  <bruno@clisp.org>
59475
59476         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
59477         warnings.
59478         Reported by Paul Eggert.
59479
59480 2006-01-25  Bruno Haible  <bruno@clisp.org>
59481
59482         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
59483         rid of a trap command. For Solaris sh.
59484         Reported by Mark D. Baushke <mdb@gnu.org>.
59485
59486 2006-01-24  Simon Josefsson  <jas@extundo.com>
59487
59488         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
59489         Bruno.
59490
59491 2006-01-24  Karl Berry  <karl@gnu.org>
59492
59493         * config/srclist.txt (argp-namefrob.h): sync lost.
59494
59495 2006-01-24  Jim Meyering  <jim@meyering.net>
59496
59497         * modules/openat (Files): Add lib/intprops.h.
59498         From Mark D. Baushke.
59499
59500 2006-01-24  Jim Meyering  <jim@meyering.net>
59501
59502         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
59503         Reported by Mark D. Baushke.
59504
59505 2006-01-24  Jim Meyering  <jim@meyering.net>
59506
59507         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
59508
59509 2006-01-24  Bruno Haible  <bruno@clisp.org>
59510
59511         * modules/strnlen (Maintainer): Change from glibc to all.
59512
59513 2006-01-24  Bruno Haible  <bruno@clisp.org>
59514
59515         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
59516         Patch by Paul Eggert.
59517
59518 2006-01-24  Bruno Haible  <bruno@clisp.org>
59519
59520         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
59521         already has it.
59522         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
59523         2005-11-26.
59524
59525         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
59526         'signed char' to avoid problems with the built-in _Bool type.
59527         Reported by Paul Eggert on 2005-11-26.
59528
59529 2006-01-24  Bruno Haible  <bruno@clisp.org>
59530
59531         * gnulib-tool (func_import): Avoid constructing complicated sed
59532         expressions inside backquote.
59533         Report and solution by Mark D. Baushke <mdb@gnu.org>.
59534
59535 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
59536
59537         These changes imported from libc.
59538         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
59539         test and two separate function calls.
59540         * lib/strndup.c (__strndup): Add libc_hidden_def.
59541
59542 2006-01-23  Simon Josefsson  <jas@extundo.com>
59543
59544         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
59545         Remove the test_*_SOURCES variable: automake infers it by default.
59546         * modules/tls-tests: Likewise.
59547
59548 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59549
59550         Work around porting bugs reported by Dieter in
59551         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
59552         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
59553         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
59554         Include "getopt.h" first, to check interface.
59555         (getenv): Declare only if defined HAVE_DECL_GETENV &&
59556         !HAVE_DECL_GETENV.
59557         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
59558         (__strndup): Revert to K&R-style function dfns, the glibc style.
59559         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
59560         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
59561         Include strnlen.h first, to get prototype properly.
59562         (strnlen): Renamed from __strnlen.
59563         Remove weak alias.
59564
59565 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59566
59567         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
59568
59569 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59570
59571         * config/srclist.txt: Adjust to reflect glibc reorganization.
59572         This affects only comments.
59573
59574 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59575
59576          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
59577          Reported by Bruce Korb <bkorb@gnu.org>.
59578
59579 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
59580
59581         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
59582         to pacify gcc -Wswitch-default.
59583
59584 2006-01-22  Bruno Haible  <bruno@clisp.org>
59585
59586         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
59587         temporary buffer for sprintf, take into account the precision also
59588         for 'd', 'i', 'u', 'o', 'x', 'X'.
59589
59590 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
59591
59592         * modules/argp-tests: New module
59593         * tests/test-argp.c: New file
59594         * tests/test-argp-2.sh: New file
59595
59596 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
59597
59598         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
59599         (__argp_base_name): Removed
59600         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
59601         typo.
59602         (__argp_base_name): Provide macro definition or extern declaration
59603         depending on the configuration
59604
59605 2006-01-20  Simon Josefsson  <jas@extundo.com>
59606
59607         * modules/inet_ntop (Depends-on): Depend on sys_socket.
59608
59609 2006-01-20  Simon Josefsson  <jas@extundo.com>
59610
59611         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
59612
59613 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59614
59615         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
59616         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
59617         Suggested by Bruno Haible.
59618
59619 2006-01-20  Karl Berry  <karl@gnu.org>
59620
59621         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
59622         until changes propagate, I guess.
59623
59624 2006-01-19  Simon Josefsson  <jas@extundo.com>
59625
59626         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
59627
59628 2006-01-19  Simon Josefsson  <jas@extundo.com>
59629
59630         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
59631
59632 2006-01-19  Simon Josefsson  <jas@extundo.com>
59633
59634         * gnulib-tool: Set check_PROGRAMS.
59635
59636         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
59637         modules/des-tests, modules/gc-arcfour-tests,
59638         modules/gc-arctwo-tests, modules/gc-des-tests,
59639         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
59640         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
59641         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
59642         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
59643         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
59644         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
59645         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
59646         test_*_SOURCES.
59647
59648 2006-01-18  Simon Josefsson  <jas@extundo.com>
59649
59650         * modules/socklen (Depends-on): Depend on sys_socket.
59651
59652 2006-01-18  Simon Josefsson  <jas@extundo.com>
59653
59654         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
59655         modules/des-tests, modules/gc-arcfour-tests,
59656         modules/gc-arctwo-tests, modules/gc-des-tests,
59657         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
59658         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
59659         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
59660         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
59661         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
59662         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
59663         $(EXEEXT) to automake TESTS variable, for mingw32.
59664
59665 2006-01-17  Simon Josefsson  <jas@extundo.com>
59666
59667         * modules/socklen (Include): Need sys/socket.h.
59668
59669 2006-01-17  Bruno Haible  <bruno@clisp.org>
59670
59671         * modules/ssize_t (Include): Add <sys/types.h>.
59672
59673 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
59674
59675         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
59676         it's not portable and it doesn't work with cross-compiles.
59677         Problem reported by Bruno Haible.  Fix missing-$ typo in
59678         'test "gl_cv_ignore_unused_libraries" ...' that prevented
59679         -zignore from being used with Sun's C compiler.
59680
59681 2006-01-12  Simon Josefsson  <jas@extundo.com>
59682
59683         * lib/base64.c: Fix warning, reported by Bruno Haible
59684         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
59685
59686 2006-01-12  Bruno Haible  <bruno@clisp.org>
59687
59688         * modules/ldd: New file.
59689         * build-aux/ldd.sh.in: New file.
59690         * MODULES.html.sh (Support for building libraries and executables): Add
59691         ldd.
59692
59693 2006-01-12  Bruno Haible  <bruno@clisp.org>
59694
59695         * m4/ldd.m4: New file.
59696
59697 2006-01-12  Bruno Haible  <bruno@clisp.org>
59698
59699         * gnulib-tool (func_import, func_create_testdir): Don't go into an
59700         endless loop while replacing $auxdir with build-aux.
59701
59702 2006-01-11  Simon Josefsson  <jas@extundo.com>
59703
59704         * lib/stdint_.h (SIZE_MAX): Add missing (.
59705
59706 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
59707
59708         Sync from coreutils.
59709         * lib/md5.c: Fix commentary typos.
59710         (alignof, UNALIGNED_P): No need for a GCC-specific version.
59711         * lib/md5.h (__attribute__): Remove; unused.
59712         * lib/sha1.c: Fix commentary to match md5 better.
59713         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
59714         so that we don't need to worry about alignment.  All uses changed.
59715         This merges the 2005-10-28 md5 change into sha1.
59716
59717 2006-01-11  Jim Meyering  <jim@meyering.net>
59718
59719         Sync from coreutils.
59720         * lib/md5.c (OP): Fix spacing.
59721
59722 2006-01-11  Bruno Haible  <bruno@clisp.org>
59723
59724         Ensure automatic ordering between gl_LOCK and gl_ARGP.
59725         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
59726         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
59727
59728 2006-01-11  Bruno Haible  <bruno@clisp.org>
59729
59730         Ensure automatic ordering between gl_LOCK and gl_ARGP.
59731         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
59732         the "early" section as well.
59733
59734 2006-01-11  Bruno Haible  <bruno@clisp.org>
59735
59736         Avoid "ar: no archive members specified" error on MacOS X.
59737         * gnulib-tool (func_modules_add_dummy): New function.
59738         (func_import, func_create_testdir): Invoke it.
59739
59740 2006-01-11  Bruno Haible  <bruno@clisp.org>
59741
59742         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
59743         with $auxdir in AC_CONFIG_FILES statements.
59744
59745 2006-01-11  Bruno Haible  <bruno@clisp.org>
59746
59747         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59748         Initialize also noinst_HEADERS to empty.
59749
59750 2006-01-11  Bruno Haible  <bruno@clisp.org>
59751
59752         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
59753         variables.
59754         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
59755         autoreconf.
59756
59757 2006-01-11  Bruno Haible  <bruno@clisp.org>
59758
59759         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
59760         overridable by the user.
59761         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59762
59763 2006-01-10  Simon Josefsson  <jas@extundo.com>
59764
59765         * modules/sys_socket: New file.
59766
59767 2006-01-10  Simon Josefsson  <jas@extundo.com>
59768
59769         * m4/sys_socket_h.m4: New file.
59770
59771 2006-01-10  Simon Josefsson  <jas@extundo.com>
59772
59773         * lib/socket_.h: New file.
59774
59775 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59776
59777         * modules/readutmp (Maintainer): Add myself.
59778
59779 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59780
59781         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
59782         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
59783         People who are still concerned with buggy memcmp implementations
59784         can invoke gl_FUNC_MEMCMP themselves.
59785
59786 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59787
59788         * lib/regex_internal.h (BITSET_WORD_BITS):
59789         Work around a bug in 64-bit PGC (before version 6.1-2), where the
59790         preprocessor mishandles large unsigned values as if they were signed.
59791         Problem reported by Claudio Fontana in
59792         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
59793
59794 2006-01-10  Jim Meyering  <jim@meyering.net>
59795
59796         Avoid the double-free (first in fts_read, second in fts_close) that
59797         would occur when an `active' directory is made inaccessible (e.g.,
59798         via chmod a-x) during a traversal.
59799         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
59800         before returning.  Reproduce this failure by
59801         mkdir -p a/b; cd a; chmod a-x . b
59802         Reported by Stavros Passas.
59803
59804         Sync from coreutils.
59805         * lib/sha1.c: Tweak grammar in a comment.
59806
59807 2006-01-10  Jim Meyering  <jim@meyering.net>
59808
59809         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
59810         Patch by Joerg Sonnenberger.
59811
59812 2006-01-10  Bruno Haible  <bruno@clisp.org>
59813
59814         * modules/readutmp: Depend on module free.
59815         * modules/strtok_r: Depend on module restrict.
59816
59817 2006-01-10  Bruno Haible  <bruno@clisp.org>
59818
59819         * modules/gettext (configure.ac): Add an invocation of
59820         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
59821
59822 2006-01-10  Bruno Haible  <bruno@clisp.org>
59823
59824         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
59825         Reported by Werner Lemberg <wl@gnu.org>.
59826
59827 2006-01-10  Bruno Haible  <bruno@clisp.org>
59828
59829         * lib/localcharset.c: Update from GNU gettext.
59830
59831 2006-01-10  Bruno Haible  <bruno@clisp.org>
59832
59833         * lib/argp.h (__const): Remove macro. Use const instead.
59834         * lib/argp-fmtstream.h (__const): Likewise.
59835         * lib/glob_.h (__const): Remove macro.
59836         * lib/glob-libc.h: Use const instead of __const.
59837
59838 2006-01-10  Bruno Haible  <bruno@clisp.org>
59839
59840         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
59841         variable.
59842         Needed to avoid an automake error regarding the 'gettext' module.
59843
59844 2006-01-09  Simon Josefsson  <jas@extundo.com>
59845
59846         * modules/inet_ntop (Depends-on): Add restrict.
59847
59848 2006-01-09  Simon Josefsson  <jas@extundo.com>
59849
59850         * modules/gc-rijndael-tests (License): Put under LGPL.
59851
59852         * modules/gc-des-tests (License): Likewise.
59853
59854         * modules/gc-arcfour-tests (License): Likewise.
59855
59856         * modules/gc-arctwo-tests (License): Likewise.
59857
59858         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
59859
59860         * modules/gc-hmac-sha1-tests (Files): Likewise.
59861
59862         * modules/gc-hmac-md5-tests (License): Likewise.
59863
59864         * modules/gc-sha1-tests (License): Likewise.
59865
59866         * modules/gc-md5-tests (License): Likewise.
59867
59868         * modules/gc-md4-tests (License): Likewise.
59869
59870         * modules/gc-md2-tests (License): Likewise.
59871
59872         * modules/gc-tests (License): Likewise.
59873
59874         * modules/des-tests (License): Likewise.
59875
59876         * modules/md4-tests (License): Likewise.
59877
59878         * modules/md2-tests (License): Likewise.
59879
59880 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59881
59882         Sync from coreutils:
59883
59884         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
59885         * modules/lib-ignore: New file.
59886         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
59887         chdir-safer.m4, lchmod.m4.
59888         * modules/openat: Add mkdirat.c, openat-priv.h.
59889
59890 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59891
59892         Sync from coreutils.
59893         * m4/lib-ignore.m4: New file.
59894         * m4/lchmod.m4: New file.
59895
59896 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59897
59898         Sync from coreutils.
59899         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
59900         for write access: POSIX says that must fail.
59901         * lib/fts.c (diropen): Likewise.
59902         * lib/save-cwd.c (save_cwd): Likewise.
59903         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
59904         well, for minor improvements on hosts that lack O_DIRECTORY.
59905         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
59906         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
59907         Fall back on chown if open failed with EACCES.
59908
59909         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
59910         Report an error at compile-time if only a 1-second nominal clock
59911         resolution is found.
59912
59913         * lib/lchmod.h: New file.
59914         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
59915         (make_dir_parents): Use lchown rather than chown, and
59916         lchmod rather than chmod.
59917
59918         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
59919         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
59920         "proc" reported by n0dalus.
59921
59922         * lib/mountlist.c: Include <limits.h>.
59923         (dev_from_mount_options)
59924         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
59925         New function.  It no longer assumes "dev=" has the System V meaning
59926         on Linux (since it doesn't).  It also parses "dev=" more carefully.
59927         (read_file_system_list)
59928         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
59929         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
59930         dev= in that case.
59931
59932         * lib/posixtm.h (PDS_PRE_2000): New macro.
59933         * lib/posixtm.c (year): Arg is now syntax_bits rather than
59934         allow_century.  All usages changed.  Reject dates outside the range
59935         1969-1999 if PDS_PRE_2000 is used.
59936
59937 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59938
59939         Sync from coreutils.
59940         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
59941         (Time of day items): Mention the possibility of leap seconds.
59942         Problem reported by Dr. David Alan Gilbert.
59943
59944 2006-01-09  Jim Meyering  <jim@meyering.net>
59945
59946         Sync from coreutils.
59947
59948         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
59949
59950         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
59951
59952         * lib/modechange.c (mode_compile): Reject an invalid mode string
59953         that starts with an octal digit.  From Andreas Gruenbacher.
59954
59955         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
59956         and dup to open_safer and dup_safer, respectively.
59957         (openat_permissive): Fix typo in comment.
59958
59959         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
59960         "gettext.h"; either no longer needed or are guaranteed by openat.h.
59961         (_): Remove; no longer needed.
59962         (openat): Renamed from rpl_openat; no need for rpl_openat
59963         since openat.h renames openat for us.
59964         Replace most of the body with a call to openat_permissive,
59965         to avoid duplicate code.
59966         Port to (probably hypothetical) environments were mode_t is
59967         wider than int.
59968         (openat_permissive): Require mode arg, so that we can check
59969         types better.  Put it just after flags.  Change cwd failure
59970         indicator from pointer-to-bool to pointer-to-errno-value.
59971         All callers changed.
59972         Invoke openat_save_fail and/or openat_restore_fail if
59973         cwd_errno is null, so that openat can call us.
59974         (openat_permissive, fdopendir, fstatat, unlinkat):
59975         Simplify errno handling to avoid some duplicate code,
59976         as it's OK to set errno on success.
59977         * lib/openat.h: Revamp code so that function macros depend on
59978         __OPENAT_PREFIX only, not also on AT_FDCWD.
59979         (openat_ro): Remove.  Caller changed to use openat_permissive.
59980         (openat_permissive): Now a macro, if not a function.
59981         (openat_restore_fail, openat_save_fail): Now always functions,
59982         since mkdirat needs them even if __OPENAT_PREFIX is defined.
59983
59984         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
59985         and openat.c.
59986         * lib/mkdirat.c: Include openat-priv.h.
59987         Remove definitions of macros defined therein.
59988         * lib/openat.c: Likewise.
59989
59990         * lib/mkdirat.c (mkdirat): New file and function.
59991         * lib/openat.h (mkdirat): Declare.
59992
59993         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
59994
59995         * lib/openat.h (openat_permissive): Declare.
59996         (openat_ro): Define.
59997
59998         * lib/openat.c (EXPECTED_ERRNO): New macro.
59999         (openat_permissive): New function -- used in remove.c rewrite.
60000         (all functions): Set errno just before returning, only if there
60001         was an actual failure.
60002         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
60003
60004         Emulate openat-family functions using Linux's procfs, if possible.
60005         Idea and some code based on Ulrich Drepper's glibc changes.
60006
60007         * lib/openat.c: (BUILD_PROC_NAME): New macro.
60008         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
60009         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
60010         before falling back on save_cwd and restore_cwd.
60011         (fdopendir, fstatat, unlinkat): Likewise.
60012
60013         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
60014         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
60015
60016         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
60017         as second argument to va_arg.  Otherwise, some versions of gcc
60018         warn that `if this code is reached, the program will abort'.
60019
60020 2006-01-09  Jim Meyering  <jim@meyering.net>
60021
60022         Sync from coreutils.
60023         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
60024         Require openat-priv.h.
60025
60026 2006-01-09  Bruno Haible  <bruno@clisp.org>
60027
60028         * modules/strnlen (Include): Use strnlen.h.
60029
60030 2006-01-09  Bruno Haible  <bruno@clisp.org>
60031
60032         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
60033
60034 2006-01-09  Bruno Haible  <bruno@clisp.org>
60035
60036         * lib/sysexit_.h (EX_OK): New macro.
60037         Suggested by Martin Lambers <marlam@marlam.de>.
60038
60039 2006-01-09  Bruno Haible  <bruno@clisp.org>
60040
60041         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
60042         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
60043
60044 2006-01-09  Bruno Haible  <bruno@clisp.org>
60045
60046         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
60047         numbers.
60048
60049 2006-01-09  Bruno Haible  <bruno@clisp.org>
60050
60051         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
60052         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
60053         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
60054         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
60055
60056 2006-01-09  Bruno Haible  <bruno@clisp.org>
60057
60058         * build-aux/javacomp.sh.in: New file, moved from lib/.
60059         * modules/javacomp-script (Files): Update.
60060         (configure.ac): Add AC_CONFIG_FILES invocation.
60061         (EXTRA_DIST): Remove variable.
60062
60063         * build-aux/javaexec.sh.in: New file, moved from lib/.
60064         * modules/javaexec (Files): Update.
60065         (configure.ac): Add AC_CONFIG_FILES invocation.
60066         (EXTRA_DIST): Remove javaexec.sh.in.
60067
60068         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
60069         * modules/csharpcomp-script (Files): Update.
60070         (configure.ac): Add AC_CONFIG_FILES invocation.
60071         (EXTRA_DIST): Remove variable.
60072
60073         * build-aux/csharpexec.sh.in: New file, moved from lib/.
60074         * modules/csharpexec (Files): Update.
60075         (configure.ac): Add AC_CONFIG_FILES invocation.
60076         (EXTRA_DIST): Remove csharpexec.sh.in.
60077
60078 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
60079
60080         Sync from coreutils.
60081
60082         Add POSIX ACL support
60083         * lib/acl.h (copy_acl, set_acl): Add declarations.
60084         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
60085         systems other than Linux.
60086         (chmod_or_fchmod): New function: use fchmod when possible,
60087         and chmod otherwise.
60088         (file_has_acl): Add a POSIX ACL implementation, with a
60089         Linux-specific subcase.
60090         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
60091         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
60092         acls are unsupported.
60093         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
60094         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
60095         are unsupported.
60096
60097 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
60098
60099         Sync from coreutils.
60100         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
60101
60102 2006-01-07  Bruno Haible  <bruno@clisp.org>
60103
60104         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
60105         gl_EARLY.
60106
60107 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60108
60109         * lib/strftime.c (tzname): Don't declare if it is already #defined.
60110         Problem reported for Mingw by Mark Junker.
60111
60112 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60113
60114         * README: Gnulib normally doesn't generate a tarball.
60115
60116 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
60117
60118         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
60119         long int, not int, for nanosecond counts, so that people who are
60120         used to POSIX struct timespec won't be surprised.  Reported by Jim
60121         Meyering.
60122
60123 2005-12-28  Bruno Haible  <bruno@clisp.org>
60124
60125         * build-aux/config.rpath: Update from GNU gettext.
60126
60127 2005-12-16  Jim Meyering  <jim@meyering.net>
60128
60129         * modules/fprintftime: New module.
60130         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
60131
60132 2005-12-16  Jim Meyering  <jim@meyering.net>
60133
60134         * m4/fprintftime.m4: New file.
60135
60136 2005-12-16  Jim Meyering  <jim@meyering.net>
60137
60138         * lib/fprintftime.c, lib/fprintftime.h: New files.
60139
60140 2005-12-15  Simon Josefsson  <jas@extundo.com>
60141
60142         * modules/socklen (configure.ac): Fix M4 macro name, to align with
60143         new m4/socklen.m4.
60144
60145 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60146
60147         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
60148         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
60149
60150 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60151
60152         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
60153         * lib/argp-help.c (fill_in_uparams): Check if the constructed
60154         struct uparams is valid. Fall back to the default values if it is
60155         not.
60156
60157 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60158
60159         * modules/argp (Files): Add argp-pin.c
60160         (Depends-on): dirname
60161         (lib_SOURCES): Add argp-pin.c
60162
60163 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60164
60165         * m4/argp.m4:  Check if program_invocation_name and
60166         program_invocation_short_name are declared and define appropriate
60167         macros if they are not.
60168
60169 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60170
60171         * lib/argp-help.c (__argp_base_name): New function
60172         (__argp_short_program_name): Rewrite using __argp_base_name
60173         * lib/argp-namefrob.h: Define program_invocation_name and
60174         program_invocation_short_name if requested
60175         (__argp_base_name): Add prototype
60176         * lib/argp-parse.c (argp_def): Use gettext wrappers
60177         (argp_default_parser): Use __argp_base_name
60178         * lib/argp-pin.c: New file. Defines program_invocation_name and
60179         program_invocation_short_name on systems that lack them.
60180
60181 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60182
60183         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
60184         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
60185         porting problem reported by Georg Schwarz in
60186         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
60187
60188 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60189
60190         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
60191         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
60192         porting problem reported by Georg Schwarz in
60193         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
60194
60195 2005-12-05  Bruno Haible  <bruno@clisp.org>
60196
60197         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
60198         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
60199         Reported by Mark Junker <mjscod@gmx.de>.
60200
60201 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
60202
60203         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
60204         Use implementation from Albert Chin, with some
60205         comments/corrections by Stepan Kasal and myself.
60206
60207 2005-12-02  Bruno Haible  <bruno@clisp.org>
60208
60209         * gnulib-tool (func_import): Accept GPLed build tool modules when
60210         --lgpl is given.
60211         * modules/csharpcomp-script: New file.
60212         * modules/csharpcomp: Depend on it.
60213         * modules/javacomp-script: New file.
60214         * modules/javacomp: Depend on it.
60215         Suggested by Simon Josefsson.
60216
60217 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
60218
60219         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
60220         statement, to work around an HP-UX 10.20 compiler bug reported by
60221         Peter O'Gorman.
60222
60223 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
60224
60225         * modules/savedir (Depends-on): Add openat.
60226
60227 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
60228
60229         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
60230         (uintmax_t) [defined uintmax_t]: Do not declare.
60231         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
60232         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
60233         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
60234         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
60235         sake of portability to weird hosts that C allows (though we don't
60236         know of any practical examples).
60237
60238         * lib/savedir.h (fdsavedir): New decl.
60239         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
60240         contains most of the former guts of savedir.
60241         (savedir): Use savedirstream.
60242         Include "openat.h".
60243
60244 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60245
60246         * modules/obstack (Files): Add m4/ulonglong.m4.
60247         Problem reported by Davide Angelocola.
60248
60249 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60250
60251         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
60252         coreutils no longer futzes with rounding modes.
60253
60254 2005-11-14  Jim Meyering  <jim@meyering.net>
60255
60256         * lib/mkstemp-safer.c: Include <config.h>, required for possible
60257         replacement of mkstemp.
60258
60259 2005-11-10  Simon Josefsson  <jas@extundo.com>
60260
60261         * lib/readline.c: Remove EOL.
60262
60263 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60264
60265         * modules/gethrxtime (Depends-on): Add gettime.
60266
60267 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60268
60269         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
60270         or gettimeofday; no longer needed.
60271
60272 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60273
60274         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
60275         time business.
60276         (gethrxtime) [! (HAVE_NANOUPTIME
60277         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
60278         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
60279         our own approximation.
60280
60281 2005-11-08  Eric Blake  <ebb9@byu.net>
60282
60283         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
60284
60285 2005-11-08  Eric Blake  <ebb9@byu.net>
60286
60287         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
60288
60289 2005-11-04  Bruno Haible  <bruno@clisp.org>
60290
60291         * gnulib-tool: Implement --update mode.
60292
60293 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
60294
60295         Fix porting problem reported by Theodoros V. Kalamatianos.
60296         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
60297         Don't assume that futimes failing means we must fail.
60298
60299 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
60300
60301         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
60302         variables to suggest the intended function of the PATH_MAX check.
60303
60304 2005-10-30  Kean Johnston  <jkj@sco.com>
60305
60306         Trivial changes to support SCO systems.
60307         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
60308         as PATH_MAX.
60309         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
60310         where __ptr is null when no I/O is pending.
60311
60312 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60313
60314         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
60315         leave errno alone.  Problem reported by Dmitry V. Levin.
60316
60317 2005-10-28  Simon Josefsson  <jas@extundo.com>
60318
60319         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
60320         Test more.
60321
60322         * tests/test-gc-md2.c, tests/test-md2.c: New files.
60323
60324         * modules/md2, modules/md2-tests: New files.
60325
60326 2005-10-28  Simon Josefsson  <jas@extundo.com>
60327
60328         * m4/inet_ntop.m4: More tests.
60329
60330         * m4/gc-md2.m4, md2.m4: New file.
60331
60332 2005-10-28  Simon Josefsson  <jas@extundo.com>
60333
60334         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
60335         "restrict" keywords, as per POSIX.  Protect the function
60336         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
60337         Don't use K&R prototypes.  Check the sprintf return values.
60338         Re-define EAFNOSUPPORT if not present.  Indent.
60339
60340         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
60341         suggested by Bruno Haible <bruno@clisp.org>.
60342
60343         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
60344
60345         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
60346
60347         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
60348         libgcrypt).
60349
60350         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
60351
60352         * lib/md2.h, lib/md2.c: New files.
60353
60354 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
60355
60356         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
60357         errno alone.  Problem reported by Frederic Jolliton.
60358
60359 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
60360
60361         * modules/verify (License): Change from GPL to LGPL.  This is a
60362         tiny module and there are apparently near-equivalents that are
60363         under the BSD license.
60364
60365 2005-10-24  Simon Josefsson  <jas@extundo.com>
60366
60367         * modules/sha1: Relicense to LGPL.
60368
60369 2005-10-24  Simon Josefsson  <jas@extundo.com>
60370
60371         * lib/md4.h: Shrink buffer size, now that we changed the type.
60372
60373 2005-10-23  Simon Josefsson  <jas@extundo.com>
60374
60375         * gnulib-tool (func_import): Fix --tests-base.
60376
60377 2005-10-22  Simon Josefsson  <jas@extundo.com>
60378
60379         * modules/arcfour (Depends-on): Need stdint.
60380
60381 2005-10-22  Simon Josefsson  <jas@extundo.com>
60382
60383         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
60384         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
60385
60386 2005-10-22  Simon Josefsson  <jas@extundo.com>
60387
60388         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
60389         suggested by Bruno Haible <bruno@clisp.org>.
60390
60391 2005-10-22  Simon Josefsson  <jas@extundo.com>
60392
60393         * lib/crc.h: Include stddef.h, for size_t.
60394
60395 2005-10-22  Simon Josefsson  <jas@extundo.com>
60396
60397         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
60398         arcfour_context struct (simplify test vector testing in GNU
60399         Shishi).
60400
60401 2005-10-21  Simon Josefsson  <jas@extundo.com>
60402
60403         * modules/des, modules/des-tests: New files.
60404
60405         * modules/gc-des, modules/gc-des-tests: New files.
60406
60407         * tests/test-des.c, tests/test-gc-des.c: New file.
60408
60409 2005-10-21  Simon Josefsson  <jas@extundo.com>
60410
60411         * modules/arctwo, modules/arctwo-tests: New files.
60412
60413         * tests/test-arctwo.c: New file.
60414
60415         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
60416
60417         * tests/test-gc-arctwo.c: New file.
60418
60419 2005-10-21  Simon Josefsson  <jas@extundo.com>
60420
60421         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
60422         Bruno Haible <bruno@clisp.org>.
60423
60424         * m4/gc-des.m4: New file.
60425
60426 2005-10-21  Simon Josefsson  <jas@extundo.com>
60427
60428         * m4/arctwo.m4: New file.
60429
60430         * m4/gc-arctwo.m4: New file.
60431
60432 2005-10-21  Simon Josefsson  <jas@extundo.com>
60433
60434         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
60435         block.
60436
60437 2005-10-21  Simon Josefsson  <jas@extundo.com>
60438
60439         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
60440         <bruno@clisp.org>.
60441
60442         * lib/hmac-sha1.c (hmac_sha1): Likewise.
60443
60444         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
60445         Bruno Haible <bruno@clisp.org>.
60446
60447         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
60448         <bruno@clisp.org>.
60449
60450 2005-10-21  Simon Josefsson  <jas@extundo.com>
60451
60452         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
60453
60454 2005-10-21  Simon Josefsson  <jas@extundo.com>
60455
60456         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
60457
60458 2005-10-21  Simon Josefsson  <jas@extundo.com>
60459
60460         * lib/des.h, lib/des.c: New files.
60461
60462         * lib/gc-gnulib.c: Support DES.c
60463
60464 2005-10-21  Simon Josefsson  <jas@extundo.com>
60465
60466         * lib/arctwo.h, lib/arctwo.c: New files.
60467
60468         * lib/gc-gnulib.c: Support ARCTWO.
60469
60470 2005-10-21  Simon Josefsson  <jas@extundo.com>
60471
60472         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
60473         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60474
60475 2005-10-21  Simon Josefsson  <jas@extundo.com>
60476
60477         * gnulib-tool (func_import, func_create_testdir): Define automake
60478         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
60479         Makefile.am snippet),
60480         suggested by Bruno Haible <bruno@clisp.org>.
60481
60482         * modules/gc (Makefile.am): Use it.
60483
60484 2005-10-21  Bruno Haible  <bruno@clisp.org>
60485
60486         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
60487         patch.
60488
60489 2005-10-19  Simon Josefsson  <jas@extundo.com>
60490
60491         * tests/test-gc-rijndael.c: New file.
60492
60493         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
60494
60495 2005-10-19  Simon Josefsson  <jas@extundo.com>
60496
60497         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
60498         interface too.
60499
60500 2005-10-19  Simon Josefsson  <jas@extundo.com>
60501
60502         * tests/test-gc-arcfour.c: New file.
60503
60504         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
60505
60506 2005-10-19  Simon Josefsson  <jas@extundo.com>
60507
60508         * modules/gc-md4, modules/gc-md4-tests: New file.
60509
60510         * tests/test-gc-md4.c: New file.
60511
60512 2005-10-19  Simon Josefsson  <jas@extundo.com>
60513
60514         * m4/gc-md4.m4: New file.
60515
60516 2005-10-19  Simon Josefsson  <jas@extundo.com>
60517
60518         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
60519         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
60520         <kasal@ucw.cz>.
60521
60522 2005-10-19  Simon Josefsson  <jas@extundo.com>
60523
60524         * m4/gc-arcfour.m4: New file.
60525
60526         * m4/gc-rijndael.m4: New file.
60527
60528 2005-10-19  Simon Josefsson  <jas@extundo.com>
60529
60530         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
60531
60532 2005-10-19  Simon Josefsson  <jas@extundo.com>
60533
60534         * lib/gc-gnulib.c: Support ARCFOUR.
60535
60536 2005-10-19  Simon Josefsson  <jas@extundo.com>
60537
60538         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
60539         support.
60540
60541         * lib/gc.h: Add ECB enum type.
60542
60543         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
60544
60545 2005-10-18  Simon Josefsson  <jas@extundo.com>
60546
60547         * tests/test-md5.c: New file.
60548
60549         * modules/md5-tests: New file.
60550
60551 2005-10-18  Simon Josefsson  <jas@extundo.com>
60552
60553         * tests/test-md4.c: New file.
60554
60555         * modules/md4, modules/md4-tests: New files.
60556
60557 2005-10-18  Simon Josefsson  <jas@extundo.com>
60558
60559         * m4/md4.m4: New file.
60560
60561 2005-10-18  Simon Josefsson  <jas@extundo.com>
60562
60563         * lib/md4.h, lib/md4.c: New files, based on md5.?.
60564
60565 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
60566
60567         * gnulib-tool (func_create_testdir): Omit the second check whether
60568         BUILT_SOURCES in nonempty.
60569
60570 2005-10-17  Simon Josefsson  <jas@extundo.com>
60571
60572         * tests/test-rijndael.c: New file.
60573
60574 2005-10-17  Simon Josefsson  <jas@extundo.com>
60575
60576         * modules/sha1: Depend on stdint instead of md5.
60577
60578         * modules/md5: Depend on stdint, remove uint32_t.
60579
60580 2005-10-17  Simon Josefsson  <jas@extundo.com>
60581
60582         * modules/gc-sha1-tests: New file.
60583
60584         * tests/test-gc-sha1.c: New file.
60585
60586 2005-10-17  Simon Josefsson  <jas@extundo.com>
60587
60588         * m4/md5.m4: Remove call to uint32_t.m4.
60589
60590 2005-10-17  Simon Josefsson  <jas@extundo.com>
60591
60592         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
60593
60594         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
60595         md5.h.
60596
60597         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
60598
60599         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
60600
60601 2005-10-17  Simon Josefsson  <jas@extundo.com>
60602
60603         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
60604
60605 2005-10-17  Simon Josefsson  <jas@extundo.com>
60606
60607         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
60608
60609 2005-10-17  Simon Josefsson  <jas@extundo.com>
60610
60611         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
60612
60613         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
60614
60615 2005-10-17  Bruno Haible  <bruno@clisp.org>
60616
60617         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
60618         that it can also be used in a test.
60619
60620 2005-10-16  Bruno Haible  <bruno@clisp.org>
60621
60622         * gnulib-tool (func_emit_tests_Makefile_am): Also define
60623         TESTS_ENVIRONMENT, so that individual tests can augment it.
60624
60625         * gnulib-tool (func_create_testdir): Use an intermediate target for
60626         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
60627         macros, like $(ALLOCA_H), which cannot be passed through the command
60628         line.
60629
60630 2005-10-15  Simon Josefsson  <jas@extundo.com>
60631
60632         * modules/rijndael-tests: New file.
60633
60634         * modules/rijndael: New file.
60635
60636 2005-10-15  Simon Josefsson  <jas@extundo.com>
60637
60638         * m4/rijndael.m4: New file.
60639
60640 2005-10-15  Simon Josefsson  <jas@extundo.com>
60641
60642         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
60643
60644         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
60645
60646 2005-10-14  Simon Josefsson  <jas@extundo.com>
60647
60648         * tests/test-arcfour.c: New file.
60649
60650         * modules/arcfour, modules/arcfour-tests: New files.
60651
60652 2005-10-14  Simon Josefsson  <jas@extundo.com>
60653
60654         * m4/arcfour.m4: New file.
60655
60656 2005-10-14  Simon Josefsson  <jas@extundo.com>
60657
60658         * lib/arcfour.h, lib/arcfour.c: New files.
60659
60660 2005-10-14  Roland McGrath  <roland@redhat.com>
60661
60662         Import from libc.  [BZ #1331]
60663         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
60664         macro argument.
60665         Reported by Matej Vela <vela@debian.org>.
60666
60667 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
60668
60669         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
60670         include <wchar.h>; no longer needed.
60671
60672 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
60673
60674         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
60675
60676 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
60677         and  Ulrich Drepper  <drepper@redhat.com>
60678
60679         Import from libc.
60680         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
60681         instead of inline stream orientation test and two separate
60682         function calls.  Pay no attention to USE_IN_LIBIO.
60683
60684 2005-10-13  Simon Josefsson  <jas@extundo.com>
60685
60686         * modules/gc-hmac-md5-tests: New file.
60687
60688         * tests/test-gc-hmac-sha1.c: New file.
60689
60690         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
60691
60692         * modules/gc-hmac-md5-tests: New file.
60693
60694         * tests/test-gc-md5.c: New file.
60695
60696         * modules/gc-md5-tests: New file.
60697
60698 2005-10-13  Simon Josefsson  <jas@extundo.com>
60699
60700         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
60701         Move memory allocation outside of loop.
60702
60703 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
60704
60705         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
60706         intermediate directory is in a read-only file system.  Problem
60707         reported by Eric Blake.
60708
60709 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
60710
60711         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
60712
60713 2005-10-12  Simon Josefsson  <jas@extundo.com>
60714
60715         * tests/test-hmac-sha1.c: New file.
60716
60717         * modules/hmac-sha1-tests: New file.
60718
60719         * modules/hmac-sha1: New file.
60720
60721 2005-10-12  Simon Josefsson  <jas@extundo.com>
60722
60723         * modules/gc-sha1: New file.
60724
60725 2005-10-12  Simon Josefsson  <jas@extundo.com>
60726
60727         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
60728
60729         * tests/test-gc-pbkdf2-sha1.c: New file.
60730
60731 2005-10-12  Simon Josefsson  <jas@extundo.com>
60732
60733         * modules/gc-md5, modules/gc-hmac-md5: New files.
60734
60735         * modules/gc (Files): Remove md5, memxor and hmac files.
60736
60737 2005-10-12  Simon Josefsson  <jas@extundo.com>
60738
60739         * m4/gc-pbkdf2-sha1.m4: New file.
60740
60741         * m4/gc-hmac-sha1.m4: New file.
60742
60743         * m4/gc-sha1: New file.
60744
60745         * m4/hmac-sha1.m4: New file.
60746
60747 2005-10-12  Simon Josefsson  <jas@extundo.com>
60748
60749         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
60750
60751         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
60752
60753 2005-10-12  Simon Josefsson  <jas@extundo.com>
60754
60755         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
60756         suggested by Bruno Haible <bruno@clisp.org>.
60757
60758 2005-10-12  Simon Josefsson  <jas@extundo.com>
60759
60760         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
60761
60762 2005-10-12  Simon Josefsson  <jas@extundo.com>
60763
60764         * lib/gc-pbkdf2-sha1.c: New file.
60765
60766         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
60767
60768 2005-10-12  Simon Josefsson  <jas@extundo.com>
60769
60770         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
60771
60772         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
60773
60774 2005-10-12  Simon Josefsson  <jas@extundo.com>
60775
60776         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
60777         GC_USE_HMAC_MD5, respectively.
60778
60779         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
60780         (gc_md5): Fix typo.
60781
60782         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
60783
60784         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
60785
60786         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
60787
60788 2005-10-12  Bruno Haible  <bruno@clisp.org>
60789
60790         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
60791         Reported by Stepan Kasal <kasal@ucw.cz>.
60792
60793 2005-10-11  Simon Josefsson  <jas@extundo.com>
60794
60795         * tests/test-crc.c: New file.
60796
60797         * modules/crc, modules/crc-tests: New files.
60798
60799 2005-10-11  Simon Josefsson  <jas@extundo.com>
60800
60801         * m4/crc.m4: New file.
60802
60803 2005-10-11  Simon Josefsson  <jas@extundo.com>
60804
60805         * lib/gc.h: Add gc_hash and gc_hash_buffer.
60806
60807         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
60808
60809         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
60810
60811 2005-10-11  Simon Josefsson  <jas@extundo.com>
60812
60813         * lib/crc.h, lib/crc.c: New files.
60814
60815         * lib/gc.h (gc_hash_buffer): Add doc.
60816
60817 2005-10-11  Bruno Haible  <bruno@clisp.org>
60818
60819         * modules/c-strcasestr: New file.
60820         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
60821
60822 2005-10-11  Bruno Haible  <bruno@clisp.org>
60823
60824         * modules/c-strcase: New file.
60825         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
60826
60827 2005-10-11  Bruno Haible  <bruno@clisp.org>
60828
60829         * lib/strcasecmp.c: Include limits.h.
60830         (strcasecmp): Avoid integer overflow on exotic platforms.
60831         * lib/strncasecmp.c: Include limits.h.
60832         (strncasecmp): Avoid integer overflow on exotic platforms.
60833         Reported by Paul Eggert.
60834
60835 2005-10-11  Bruno Haible  <bruno@clisp.org>
60836
60837         * lib/c-strcasestr.h: New file, from GNU gettext.
60838         * lib/c-strcasestr.c: New file, from GNU gettext.
60839
60840 2005-10-11  Bruno Haible  <bruno@clisp.org>
60841
60842         * lib/c-strcase.h: New file, from GNU gettext.
60843         * lib/c-strcasecmp.c: New file, from GNU gettext.
60844         * lib/c-strncasecmp.c: New file, from GNU gettext.
60845
60846 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60847
60848         * modules/mempcpy (License): GPL -> LGPL.
60849         * modules/strchrnul (License): Likewise.
60850         * modules/sysexits (License): Likewise.
60851
60852 2005-10-08  Simon Josefsson  <jas@extundo.com>
60853
60854         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
60855
60856 2005-10-07  Simon Josefsson  <jas@extundo.com>
60857
60858         * m4/memxor.m4: Remove gl_C_RESTRICT call.
60859
60860 2005-10-06  Simon Josefsson  <jas@extundo.com>
60861
60862         * tests/test-hmac-md5.c: New file.
60863
60864         * modules/hmac-md5-tests: New file.
60865
60866         * modules/hmac-md5: New file.
60867
60868 2005-10-06  Simon Josefsson  <jas@extundo.com>
60869
60870         * m4/hmac-md5.m4: New file.
60871
60872         * m4/memxor.m4: Require gl_C_RESTRICT.
60873
60874 2005-10-06  Simon Josefsson  <jas@extundo.com>
60875
60876         * lib/memxor.c (memxor): Avoid casts and warnings.
60877
60878 2005-10-06  Simon Josefsson  <jas@extundo.com>
60879
60880         * lib/hmac-md5.c: New file.
60881
60882         * lib/hmac.h: New file.
60883
60884 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60885
60886         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
60887         promotes to int, not unsigned int, to catch the AIX 5.3
60888         compiler bug.
60889
60890 2005-10-05  Simon Josefsson  <jas@extundo.com>
60891
60892         * modules/memxor: New file.
60893
60894         * modules/iconv (Files): Move config.rpath to havelib, it is used
60895         there.
60896
60897         * modules/havelib (Files): Add config.rpath.
60898
60899 2005-10-05  Simon Josefsson  <jas@extundo.com>
60900
60901         * m4/memxor.m4: New file.
60902
60903 2005-10-05  Simon Josefsson  <jas@extundo.com>
60904
60905         * lib/memxor.c (memxor): Fix compiler error.
60906
60907         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
60908         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
60909
60910         * lib/memxor.h, lib/memxor.c: New files.
60911
60912         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
60913         we assume all systems have it, suggested by Jim Meyering
60914         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
60915         any systems lack sys/socket.h; mingw32 is known to lack it, but we
60916         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
60917         same reasons.
60918
60919 2005-10-05  Simon Josefsson  <jas@extundo.com>
60920
60921         * config/srclist.txt: Add glibc bug 1423 for md5.h.
60922
60923 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60924
60925         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
60926         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
60927         needed, since the source code now assumes these .h files.
60928
60929 2005-10-05  Derek Price  <derek@ximbiot.com>
60930
60931         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
60932
60933 2005-10-05  Bruno Haible  <bruno@clisp.org>
60934
60935         * modules/stdint (License): Change to LGPL.
60936
60937 2005-10-04  Simon Josefsson  <jas@extundo.com>
60938
60939         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
60940         D. Baushke" <mdb@gnu.org>.
60941
60942 2005-10-04  Bruno Haible  <bruno@clisp.org>
60943
60944         * lib/verify.h (verify_true): Provide alternative definition for C++.
60945
60946 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
60947
60948         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
60949         (SSIZE_MAX): New macro, if not already defined.
60950         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
60951         than 2 GiB.
60952
60953 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
60954
60955         Sync from coreutils.
60956         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
60957         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
60958         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
60959         ULLONG_MAX doesn't work with 2.7.2.1.
60960
60961 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
60962
60963         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
60964         From Ben Pfaff.
60965
60966         * modules/exclude (Depends-on): Depend on verify.
60967         * modules/strtoimax (Depends-on): Likewise.
60968         * modules/utimecmp (Depends-on): Likewise.
60969
60970 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
60971
60972         * lib/exclude.c: Include verify.h.
60973         (verify): Remove.  All callers changed to use verify.h's version.
60974         * lib/strtoimax.c: Likewise.
60975         * lib/utimecmp.c: Likewis.e
60976
60977         Sync from coreutils.
60978         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
60979         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
60980         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
60981         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
60982         bother returning ENOSYS if settimeofday or stime fails; just let
60983         them return whatever errno they want to return.
60984         * lib/utimens.c: Include unistd.h, for dup2.
60985         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
60986         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
60987
60988 2005-10-02  Jim Meyering  <jim@meyering.net>
60989
60990         Sync from coreutils.
60991         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
60992         from glibc-2.2.5 that fails for read-only files.
60993
60994 2005-10-02  Jim Meyering  <jim@meyering.net>
60995
60996         Sync from coreutils.
60997         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
60998         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
60999         `#if HAVE_CONFIG_H'.
61000         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
61001         Remove AT_FDCWD test.
61002         Do not consume the fd unless successful.
61003         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
61004         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
61005         block, so that we don't even try to compile it if settimeofday is
61006         available.  This works around a compilation failure on OSF1 V5.1,
61007         due to stime requiring a `long int*' while tv_sec is `int'.
61008
61009 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
61010
61011         Sync from coreutils.
61012         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
61013         against `yes', rather than just testing for nonempty.
61014
61015 2005-10-01  Simon Josefsson  <jas@extundo.com>
61016
61017         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
61018         and Darwin.
61019
61020         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
61021         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
61022         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
61023         freeaddrinfo and gai_strerror are declared by the POSIX headers.
61024         Check if struct addrinfo is declared.
61025
61026 2005-10-01  Simon Josefsson  <jas@extundo.com>
61027
61028         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
61029         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
61030         AI_* and EAI_* definitions.  Protect function declarations.
61031
61032 2005-10-01  Jim Meyering  <jim@meyering.net>
61033
61034         Sync from coreutils.
61035
61036         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
61037         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
61038         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
61039         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
61040         in the inet and nsl libraries.  Required on Solaris 5.7.
61041
61042 2005-10-01  Jim Meyering  <jim@meyering.net>
61043
61044         Sync from coreutils.
61045         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
61046         in the inet and nsl libraries.  Required on Solaris 5.7.
61047
61048 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
61049
61050         * lib/getdelim.c (getdelim): Remove unused variables.
61051
61052 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
61053
61054         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
61055         so that the code works even with ancient cpp.  Portability problem
61056         with GCC 2.7.2.1 reported by Thomas M.Ott.
61057
61058 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
61059
61060         * modules/regex (Depends-on): Add strcase.
61061
61062         * modules/gethostname (Licence): Change from GPL to LGPL, since
61063         gethostname.c is a trivial implementation of a standard library
61064         function.
61065         * modules/poll (License): Change from GPL to LGPL, since it's
61066         derived from LGPL code.
61067
61068 2005-09-27  Jim Meyering  <jim@meyering.net>
61069
61070         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
61071         HAVE_CONFIG_H.
61072
61073         * lib/intprops.h (signed_type_or_expr__): Define.
61074         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
61075         for unsigned types.
61076
61077 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
61078
61079         * lib/verify.h (verify_expr): Remove, replacing with:
61080         (verify_true): New macro that returns true instead of void.
61081         (verify_type__): Remove.
61082         (verify): Use verify_true rather than verify_type__.
61083
61084 2005-09-26  Bruno Haible  <bruno@clisp.org>
61085
61086         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
61087         is necessary.
61088         (lib_SOURCES): Remove mbchar.c.
61089         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
61090         (Files): Add m4/mbrtowc.m4.
61091         * modules/mbiter: Likewise.
61092         * modules/mbuiter: Likewise.
61093
61094 2005-09-26  Bruno Haible  <bruno@clisp.org>
61095
61096         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
61097         compile mbchar.c if they are not both present.
61098         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
61099         * m4/mbiter.m4 (gl_MBITER): Likewise.
61100         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
61101         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
61102         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
61103
61104 2005-09-25  Jim Meyering  <jim@meyering.net>
61105
61106         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
61107         also uses socklen_t.
61108
61109 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
61110
61111         * lib/utimens.c (ENOSYS): Define if not already defined.
61112         (futimens): Support having a null PATH if the file descriptor
61113         is nonnegative.
61114
61115         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
61116         Remove.
61117         (__attribute): Define to empty unless GCC 3.1 or later.
61118         This works around a core dump on OpenBSD 3.4, which has GCC
61119         2.95.3, which dumps core when given __attribute__(()).  It also
61120         simplifies other tests, since we really don't want to bother with
61121         worrying about which ancient version of GCC supported what.
61122         Original problem reported by Yoann Vandoorselaere, with part of
61123         the fix suggested by Derek Price.
61124
61125 2005-09-24  Jim Meyering  <jim@meyering.net>
61126
61127         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
61128         so we can once again use a positive bitfield width of 1 -- now we
61129         don't have to explain why we were using a bitfield width of 2.
61130
61131 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
61132
61133         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
61134         and similarly for the other external symbols.  Problem reported
61135         by James Gallager.
61136
61137         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
61138         bug reported by Jim Meyering.
61139
61140         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
61141         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
61142         not needed, since socklen is a prerequisite module.
61143
61144 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
61145
61146         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
61147         Problem reported by Eric Blake.
61148         (getaddrinfo): Initialize se so that it's not garbage.
61149         Redo internal storage allocation so that it doesn't make unportable
61150         assumptions about alignment.
61151         Fix a memory leak.
61152
61153         * lib/utimens.c (futimens): Use futimesat if available.
61154         Prefer it to futimes since it doesn't have the futimes bug.
61155
61156         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
61157         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
61158         Instead, declare a function that returns a pointer to an array,
61159         and use verify_type__ to declare the size of the array.
61160         Problem and germ of a solution reported by Bruno Haible.
61161         (verify_type__): Use 2, not 1, for bitfield size, to avoid
61162         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
61163
61164 2005-09-23  Jim Meyering  <jim@meyering.net>
61165
61166         Sync from coreutils.
61167         Correct build failure (socklen_t not defined) on at least
61168         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
61169         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
61170
61171 2005-09-23  Jim Meyering  <jim@meyering.net>
61172
61173         * modules/getaddrinfo (Depends-on): Add socklen.
61174
61175 2005-09-23  Bruno Haible  <bruno@clisp.org>
61176
61177         * tests/test-verify.c: New file.
61178
61179 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61180
61181         Sync from coreutils.
61182
61183         * modules/argmatch (Depends-on): Add verify.
61184         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
61185         unistd-safer.
61186         * modules/save-cwd (Depends-on): Likewise.
61187
61188         * modules/openat (Files): Add lib/openat-die.c.
61189         (Depends-on): Remove error, exitfail.
61190         Add dirname.
61191
61192         * modules/verify: New file.
61193         * MODULES.html.sh (Diagnostics <assert.h>): New section,
61194         with "verify" module.
61195
61196 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61197
61198         Sync from coreutils.
61199
61200         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
61201         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
61202         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
61203         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
61204         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
61205         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
61206         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
61207         Don't bother checking for string.h, stdlib.h, unistd.h.
61208         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
61209         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
61210         module's job.
61211         * m4/jm-macros.m4 (gl_MACROS): Likewise.
61212         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
61213
61214         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
61215         (gl_GETDATE): Use it.
61216
61217         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
61218
61219 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61220
61221         Sync from coreutils.
61222
61223         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
61224         stat-time.h.
61225         * lib/argmatch.h: Include verify.h
61226         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
61227         (ARGMATCH_ASSERT): Remove; unused.
61228         * lib/canonicalize.c: Assume STDC_HEADERS.
61229         * lib/exclude.c: Include "strcase.h".
61230         * lib/regex_internal.h [!defined _LIBC]: Likewise.
61231         * lib/getusershell.c: Include stdio--.h rather than stdio.h
61232         and stdio-safer.h.
61233         (getusershell): Call fopen, not fopen_safer.
61234         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
61235         Do not include unistd-safer.h.
61236         (save_cwd): Don't call fd_safer; no longer needed
61237         now that we include fcntl--.h.
61238
61239         * lib/getdate.y (relative_time): New type.
61240         (RELATIVE_TIME_0): New constant.
61241         (parser_control): Use relative_time instead of doing it ourselves.
61242         (%union): Add new relative_time rel member.
61243         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
61244         Now typeless.
61245         (relunit, relunit_snumber): Now of type rel.
61246         (zone, rel, relunit, get_date): Adjust to above changes.
61247
61248         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
61249         Do not include unistd-safer.h.
61250         (getloadavg): Don't call fd_safer; no longer needed
61251         now that we include fcntl--.h.
61252
61253         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
61254         (make_dir_parents): Treat ENOSYS like EEXIST.
61255
61256         Improve quality of diagnostics on restore_cwd failure.
61257         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
61258         (make_dir_parents): Last arg is now int * (for errno), not bool *.
61259         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
61260         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
61261         each time through the loop.  Do not diagnose restore_cwd failure;
61262         that is the caller's job (and perhaps the caller does not care).
61263
61264         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
61265         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
61266         If the file already exists but is not a directory, don't bother
61267         to try to make its parents.
61268         Close potential file descriptor leak if we can't chdir("/") (!).
61269         Don't always return true if chdir($PWD) fails; return true only
61270         if the requested action was done successfully (except for the
61271         chdir($PWD)).
61272         Don't log final directory unless we actually made it.
61273         Refactor to avoid duplicate code to fix up permissions.
61274         Don't attempt to fix up parent permissions if chdir($PWD) fails.
61275
61276         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
61277         to make it a bit faster and (I hope) clearer.
61278         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
61279         Fix bug in formats like %2N.
61280
61281         * lib/verify.h: New file.
61282
61283 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61284
61285         Sync from coreutils.
61286         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
61287
61288 2005-09-22  Jim Meyering  <jim@meyering.net>
61289
61290         Sync from coreutils.
61291
61292         * m4/lstat.m4 (gl_FUNC_LSTAT):
61293         Use AC_LIBSOURCES to require lstat.c and lstat.h.
61294         Remove obsolete comment.
61295         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
61296         * m4/xstrtod.m4: Likewise.
61297
61298         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
61299
61300 2005-09-22  Jim Meyering  <jim@meyering.net>
61301
61302         Sync from coreutils.
61303
61304         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
61305
61306         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
61307         the .tm_year member, since otherwise gcc-4.0 would now warn about
61308         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
61309
61310         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
61311         order to avoid an unsuppressible warning from gcc on 64-bit systems.
61312
61313         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
61314         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
61315         when run in a time zone for which daylight savings time is in effect
61316         for the starting date.
61317
61318         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
61319         stop us from restricting permissions of just-created absolute-named
61320         directories.
61321         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
61322         to restore initial working directory.
61323         * lib/mkdir-p.c (make_dir_parents): New parameter:
61324         different_working_dir, to tell caller if/when we change the working
61325         directory and are unable to return to the initial one.
61326         * lib/mkdir-p.h (make_dir_parents): Update prototype.
61327         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
61328         `return false'.  This fixes a bug introduced on 2004-07-30.
61329
61330         * lib/openat.c (fdopendir): Be sure to close the supplied
61331         file descriptor before returning.  This makes our replacement
61332         implementation a little closer to Solaris's, where fdopendir
61333         ties the file descriptor to the returned DIR* pointer.
61334         * lib/openat.c (unlinkat): New function.
61335         * lib/openat.h (unlinkat): Add prototype.
61336         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
61337         (openat_restore_fail): Rename from openat_restore_die.
61338         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
61339
61340         Provide an alternative to exiting immediately upon save_cwd or
61341         restore_cwd failure.  Now, an application can arrange e.g.,
61342         to perform a longjump in that case.
61343         * lib/openat.c: Include dirname.h.
61344         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
61345         (rpl_openat, fdopendir, fstatat): Call openat_save_die
61346         and openat_restore_die rather than calling error directly.
61347         Don't include "error.h" or "exitfail.h"; they're no longer needed.
61348
61349         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
61350         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
61351         define.
61352
61353         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
61354         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
61355                             int utc, int nanoseconds);
61356         Background:
61357         date should not have to allocate a megabyte of virtual memory to
61358         handle a format argument like +%1048575T.  When implemented with
61359         strftime, it must allocate such a buffer, use strftime to fill it
61360         in, print it, then free it.
61361         With fprintftime, it simply prints everything and exits.
61362         With no need for memory allocation, that's one fewer way to fail.
61363         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
61364         optional field width, not before, so we accept %9:z, not %:9z.
61365         (my_strftime): Be sure to use L_('x') for literals.
61366
61367         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
61368         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
61369         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
61370         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
61371         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
61372         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
61373         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
61374         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
61375         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
61376         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
61377         * lib/xgethostname.c, lib/xreadlink.c:
61378         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
61379
61380         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
61381         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
61382         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
61383         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
61384         and don't include <sys/file.h>).
61385
61386 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
61387
61388         Sync from coreutils.
61389
61390         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
61391         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
61392         [!LDAV_DONE]: Avoid unused variable warning.
61393
61394 2005-09-21  Bruno Haible  <bruno@clisp.org>
61395
61396         * lib/unicodeio.h (unicode_to_mb): New declaration.
61397
61398 2005-09-20  Derek Price  <derek@ximbiot.com>
61399
61400         * lib/getaddrinfo.c: Don't include <netdb.h> included from
61401         getaddrinfo.h.
61402
61403 2005-09-20  Bruno Haible  <bruno@clisp.org>
61404
61405         * gnulib-tool: Remove trailing slashes from the values specified for
61406         --source-base, --m4-base, --tests-base, --aux-dir.
61407         Suggested by Simon Josefsson <jas@extundo.com>.
61408
61409 2005-09-20  Bruno Haible  <bruno@clisp.org>
61410
61411         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
61412         func_modules_to_filelist, func_import, func_create_testdir): Make all
61413         sorting results locale-independent, so that gnulib-cache.m4 doesn't
61414         change when gnulib-tool is invoked in a different locale.
61415
61416 2005-09-19  Simon Josefsson  <jas@extundo.com>
61417
61418         * m4/socklen.m4: Fix typo.
61419
61420 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61421
61422         Use a consistent style for including <config.h>.
61423         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
61424         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
61425         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
61426         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
61427         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
61428         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
61429         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
61430         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
61431         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
61432         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
61433         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
61434         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
61435         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
61436         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
61437         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
61438         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
61439         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
61440         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
61441         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
61442         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
61443         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
61444         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
61445         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
61446         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
61447         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
61448         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
61449         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
61450         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
61451         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
61452         lib/xstrtoumax.c, lib/yesno.c:
61453         Standardize inclusion of config.h.
61454         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
61455         lib/inttostr.h:  Removed inclusion of config.h from header files.
61456         * lib/inttostr.c:  Adjusted in-tree users.
61457         * lib/timespec.h: Remove superfluous warning to include config.h.
61458         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
61459         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
61460         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
61461         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
61462         config.h with HAVE_CONFIG_H.
61463
61464 2005-09-19  Jim Meyering  <jim@meyering.net>
61465
61466         * modules/pathmax (License): Change to LGPL.
61467
61468 2005-09-19  Derek Price  <derek@ximbiot.com>
61469
61470         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
61471
61472 2005-09-19  Bruno Haible  <bruno@clisp.org>
61473
61474         * gnulib-tool (import): Provide default for --tests-base.
61475
61476 2005-09-19  Bruno Haible  <bruno@clisp.org>
61477
61478         * doc/quote.texi: New file, extracted from gnulib.texi.
61479         * doc/ctime.texi: New file, extracted from gnulib.texi.
61480         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
61481         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
61482         * doc/gnulib.texi: Include them.
61483
61484 2005-09-18  Bruno Haible  <bruno@clisp.org>
61485
61486         Portability fix.
61487         * gnulib-tool (func_readlink): New function.
61488         (func_ln_if_changed): Use it.
61489
61490 2005-09-18  Bruno Haible  <bruno@clisp.org>
61491
61492         * gnulib-tool: Support --with-tests also with --import.
61493         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
61494         (func_import): Use variables $testsbase and $inctests. Emit a
61495         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
61496         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
61497         SUBDIRS += $testsdir.
61498         (func_create_testdir): Update.
61499
61500 2005-09-18  Bruno Haible  <bruno@clisp.org>
61501
61502         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
61503         instead of $dry_run.
61504         (func_cp_if_changed, func_mv_if_changed): Remove functions.
61505         (func_ln_if_changed): Don't handle dry-run here.
61506         (func_import): In dry-run mode, detect more precisely which actions
61507         would be performed, and don't use "...ing" verbs.
61508
61509 2005-09-18  Bruno Haible  <bruno@clisp.org>
61510
61511         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
61512         (func_import): Use join on two temporary files instead of three nested
61513         loops, in order to determine which files are new or old.
61514
61515 2005-09-18  Bruno Haible  <bruno@clisp.org>
61516
61517         * gnulib-tool (func_import): Comment out code that spits out the
61518         new files with --dry-run.
61519
61520 2005-09-18  Bruno Haible  <bruno@clisp.org>
61521
61522         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
61523
61524 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
61525
61526         * lib/stat-time.h: New file.
61527         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
61528         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
61529         in a different way.
61530         (timespec_cmp): New function.
61531         * lib/utimecmp.c: Include stat-time.h.
61532         (SYSCALL_RESOLUTION): Depend on whether various struct stat
61533         members exist, not on the obsolescent ST_MTIM_NSEC.
61534         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
61535
61536 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
61537
61538         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
61539
61540 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
61541
61542         * MODULES.html.sh (File system functions): Add stat-time.
61543         * modules/stat-time: New file.
61544         * modules/timespec (Files): Remove m4/st_mtim.m4; this
61545         is now done in a different way, by the stat-time module.
61546         * modules/utimecmp (Depends-on): Add stat-time.
61547
61548 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61549
61550         * m4/st_mtim.m4: Remove.  Superseded by...
61551         * m4/stat-time.m4: New file.
61552         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
61553         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
61554
61555 2005-09-15  Derek Price  <derek@ximbiot.com>
61556
61557         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
61558
61559 2005-09-15  Derek Price  <derek@ximbiot.com>
61560
61561         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
61562         * lib/regex_internal.c: Ditto, using this...
61563         (__GNUC_PREREQ): ...new macro.
61564         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
61565         using...
61566         (__GNUC_PREREQ): ...this new macro.
61567
61568         * lib/strstr.h: Include string.h. Define strstr as a macro here.
61569
61570 2005-09-15  Derek Price  <derek@ximbiot.com>
61571             Paul Eggert  <eggert@cs.ucla.edu>
61572
61573         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
61574         changes, consolidating in...
61575         * lib/regex_internal.h: ...this file.
61576
61577 2005-09-13  Jim Meyering  <jim@meyering.net>
61578
61579         * lib/canon-host.c: Filter through gnu indent and reword comments
61580         slightly.
61581         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
61582
61583 2005-09-13  Derek Price  <derek@ximbiot.com>
61584
61585         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
61586         failure.
61587         Reported by Jim Meyering  <jim@meyering.net>.
61588
61589 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61590
61591         * lib/base64.c: Typo.
61592         (base64_encode): Put b64str in initialized data section.
61593
61594 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
61595
61596         Merge glibc and coreutils changes into gnulib, plus a few
61597         extra fixes.
61598         * lib/md5.c: Use #error rather than a string.
61599         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
61600         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
61601         (__attribute__): Define to empty for non recent-GCC.
61602         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
61603         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
61604         Renamed from their non-__ counterparts, with new macros replacing
61605         them if not _LIBC.  Add __THROW attribute.
61606         (rol): Remove.
61607         (struct md5_ctx): Align buffer if using GCC.
61608         * lib/sha1.h (struct sha1_ctx): Likewise.
61609         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
61610         The old name was backwards.
61611         (NOTSWAP): Remove; not used.
61612         (rol): New macro, moved here from md5.h.
61613         (sha1_process_block): Remove a FIXME that doesn't make sense.
61614
61615 2005-09-12  Derek Price  <derek@ximbiot.com>
61616
61617         Return usable errors from canon-host.
61618         * lib/canon-host.h: New file.
61619         * lib/canon-host.c (canon_host): Wrap...
61620         (canon_host_r): ...this new function, which now relies exclusively on
61621         getaddrinfo.
61622         (ch_strerror): New function.
61623         (last_cherror): New global.
61624         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
61625         interface.
61626         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
61627         void *.
61628         (freeaddrinfo): Free ai->ai_canonname when set.
61629
61630 2005-09-12  Derek Price  <derek@ximbiot.com>
61631
61632         Make canon-host require getaddrinfo.
61633         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
61634         AC_LIBSOURCE canon-host.h.  Call...
61635         (gl_PREREQ_CANON_HOST): ...this new function, which requires
61636         gl_GETADDRINFO.
61637         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
61638
61639 2005-09-12  Derek Price  <derek@ximbiot.com>
61640
61641         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
61642         LGPL.
61643         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
61644
61645 2005-09-12  Derek Price  <derek@ximbiot.com>
61646
61647         * lib/gai_strerror.c: Include config.h when available.  Include
61648         getaddrinfo.h before other headers to test interface.
61649         Reported by Larry Jones <lawrence.jones@ugs.com>.
61650
61651 2005-09-12  Derek Price  <derek@ximbiot.com>
61652             Paul Eggert  <eggert@cs.ucla.edu>
61653
61654         * modules/glob (Files): Add glob-libc.h.
61655
61656 2005-09-12  Derek Price  <derek@ximbiot.com>
61657             Paul Eggert  <eggert@cs.ucla.edu>
61658
61659         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
61660         glob_.h, glob-libc.h.
61661         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
61662
61663 2005-09-12  Derek Price  <derek@ximbiot.com>
61664             Paul Eggert  <eggert@cs.ucla.edu>
61665
61666         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
61667         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
61668         protecting things that should be done only in gnulib contexts.
61669         * lib/glob_.h: New file, containing only the glob things needed for
61670         gnulib.
61671         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
61672         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
61673         (glob, globfree, glob_pattern_p): Now defined simply in terms of
61674         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
61675         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
61676         and to respect the namespace rules better.
61677
61678 2005-09-08  Simon Josefsson  <jas@extundo.com>
61679
61680         * modules/socklen: New file.
61681
61682 2005-09-08  Simon Josefsson  <jas@extundo.com>
61683
61684         * m4/socklen.m4: New file.
61685
61686 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61687
61688         * modules/utimens (Files): Add m4/utimbuf.m4, since
61689         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
61690         Reported by Sergey Poznyakoff.
61691
61692 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61693
61694         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
61695         definitions, since that's the preferred style in glibc.
61696         Fix a minor spacing issue, and update copyright notice to match
61697         glibc's.
61698
61699 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61700
61701         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
61702
61703 2005-09-06  Simon Josefsson  <jas@extundo.com>
61704
61705         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
61706         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
61707
61708 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61709
61710         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
61711         warning.
61712
61713 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61714
61715         * config/srclist.txt: Add glibc bug 1302.
61716
61717 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
61718
61719         Change bitset word type from unsigned int to unsigned long int,
61720         as this has better performance on typical 64-bit hosts.
61721         Port bitset code to hosts with unusual word sizes.
61722         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
61723         (build_collating_symbol):
61724         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
61725         argument is a bitset.  This is merely a style issue, but it makes
61726         it clearer that an entire array is expected.
61727         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
61728         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
61729         Port to the case where bitset_word is not the same as unsigned int.
61730         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
61731         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
61732         Likewise.
61733         * lib/regexec.c (check_dst_limits_calc_pos_1,
61734         check_subexp_matching_top):
61735         (build_trtable, group_nodes_into_DFAstates):
61736         Likewise.
61737         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
61738         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
61739         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
61740         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
61741         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
61742         * lib/regcomp.c (optimize_subexps, lower_subexp):
61743         Work even if bitset_word has holes in its bitwise representation.
61744         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
61745         * lib/regexec.c (check_dst_limits_calc_pos_1,
61746         check_subexp_matching_top):
61747         Likewise.
61748         * lib/regex_internal.c (re_string_reconstruct):
61749         Don't assume UCHAR_MAX == 255.
61750         * lib/regex_internal.h (bitset_set_all): Likewise.
61751         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
61752         All uses changed.
61753         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
61754         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
61755         All uses changed.
61756         (BITSET_WORD_MAX): New macro.
61757         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
61758         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
61759         (bitset_empty, bitset_copy):
61760         Prefer sizeof (bitset) to multiplying it out ourselves.
61761         (bitset_not_merge): Remove; unused.
61762         (bitset_contain): Return bool, not unsigned int with one bit on.
61763         All callers changed.
61764         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
61765         alignment than re_node_set; do this by defining a new internal
61766         type struct dests_alloc and using it to allocate memory.
61767
61768 2005-09-05  Bruno Haible  <bruno@clisp.org>
61769
61770         * gnulib-tool (func_import): Fix comparison in handling of symbolic
61771         links.
61772
61773 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
61774
61775         * modules/size_max (Makefile.am): Add size_max.h
61776
61777 2005-09-04  Derek Price  <derek@ximbiot.com>
61778
61779         * gnulib-tool (func_import): Fix reversed $symbolic logic.
61780
61781 2005-09-03  Simon Josefsson  <jas@extundo.com>
61782
61783         * gnulib-tool: Fix typo.
61784
61785 2005-09-03  Simon Josefsson  <jas@extundo.com>
61786
61787         * config/srclist.txt: Add glibc bug 1293.
61788
61789 2005-09-03  Derek Price  <derek@ximbiot.com>
61790
61791         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
61792         From Larry Jones <lawrence.jones@ugs.com>.
61793
61794 2005-09-02  Simon Josefsson  <jas@extundo.com>
61795
61796         * modules/socklen: New file.
61797
61798 2005-09-02  Simon Josefsson  <jas@extundo.com>
61799
61800         * modules/havelib: New module.
61801
61802         * modules/gettext, modules/iconv, modules/lock, modules/readline:
61803         Use havelib.
61804
61805 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
61806
61807         Check for arithmetic overflow when calculating sizes, to prevent
61808         some buffer-overflow issues.  These patches are conservative, in the
61809         sense that when I couldn't determine whether an overflow was possible,
61810         I inserted a run-time check.
61811         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
61812         macros.
61813         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
61814         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
61815         (re_xnrealloc, re_x2nrealloc): New inline functions.
61816         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
61817         parse_bracket_exp):
61818         (build_equiv_class, build_charclass): Check for arithmetic overflow
61819         in size expression calculations.
61820         * lib/regex_internal.c (re_string_realloc_buffers):
61821         (build_wcs_upper_buffer, re_node_set_add_intersect):
61822         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
61823         (re_dfa_add_node, register_state): Likewise.
61824         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
61825         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
61826         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
61827         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
61828
61829 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
61830
61831         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
61832         m4/ulonglong.m4.  Problem reported by Martin Lambers.
61833
61834 2005-09-02  Bruno Haible  <bruno@clisp.org>
61835
61836         Support for lib vs. lib64 distinction on biarch platforms.
61837         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
61838         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
61839         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
61840
61841 2005-09-02  Bruno Haible  <bruno@clisp.org>
61842
61843         * gnulib-tool (import): In the other first-use case, provide defaults
61844         as well.
61845
61846 2005-09-02  Bruno Haible  <bruno@clisp.org>
61847
61848         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
61849         patches not yet found in the latest gettext release.
61850
61851 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61852
61853         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
61854         to avoid a collision with bits/local_lim.h in glibc.
61855         All uses changed.  Problem reported by Dmitry V. Levin in
61856         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
61857
61858         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
61859         bugs in int versus size_t comparisons.
61860         (re_string_context_at): Fix bug where the code assumed that
61861         Idx is signed.
61862
61863         Use bool where appropriate.
61864         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
61865         All callers changed.
61866         (calc_eclosure_iter): Likewise, for ROOT arg.
61867         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
61868         (build_charclass_op): Likewise, for NON_MATCH arg.
61869         * lib/regex_internal.c (re_string_allocate, re_string_construct):
61870         (re_string_construct_common): Likewise, for ICASE arg.
61871         * lib/regexec.c (re_search_2_stub, re_search_stub):
61872         Likewise, for RET_LEN arg.
61873         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
61874         (set_regs): Likewise, for FL_BACKTRACK arg.
61875         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
61876         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
61877         (calc_eclosure_iter, parse_bracket_exp):
61878         Use bool for internal variables that are booleans.
61879         * lib/regexec.c (re_search_internal, check_matching,
61880         proceed_next_node):
61881         (set_regs, build_sifted_states, sift_states_bkref):
61882         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
61883         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
61884         (find_collation_sequence_value):
61885         Likewise.
61886         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
61887         (re_node_set_compare):
61888         Return bool, not int. All callers changed.
61889         * lib/regexec.c (check_halt_node_context, check_dst_limits):
61890         (build_trtable, check_node_accept): Likewise.
61891         * lib/regex_internal.h: Include stdbool.h.
61892
61893         Fix bugs uncovered when converting to bool.
61894         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
61895         failure instead of charging ahead blindly.
61896         * lib/regex_internal.c (register_state): Likewise.
61897         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
61898         for freeing internal storage.
61899         (group_nodes_into_DFA_states): Use unsigned int, not int, for
61900         bitset pieces used as boolean, to avoid undefined behavior
61901         on hosts that do int overflow checking.
61902
61903 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61904
61905         * config/srclist.txt: Add glibc bugs 1285-1287.
61906
61907 2005-09-01  Jim Meyering  <jim@meyering.net>
61908
61909         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
61910         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
61911         Require gl_STAT_MACROS, too.
61912
61913 2005-09-01  Bruno Haible  <bruno@clisp.org>
61914
61915         * gnulib-tool (import): In the first-use case, provide defaults.
61916
61917 2005-09-01  Bruno Haible  <bruno@clisp.org>
61918
61919         * gnulib-tool (func_import): Remove the .tmp files.
61920
61921 2005-09-01  Bruno Haible  <bruno@clisp.org>
61922
61923         * gnulib-tool (func_import): Fix handling of symbolic links.
61924
61925 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61926
61927         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
61928         old glibc regex code mishandles strings longer than 2**31 bytes.
61929         This patch fixes this when the regex code is used in gnulib
61930         (i.e., outside glibc).
61931
61932         This patch should not affect the use of the regex code inside
61933         glibc.  No doubt this problem also needs to be handled for glibc
61934         as well, but the result will be an incompatible change to the
61935         glibc ABI, and the old ABI will have to be supported too.  That
61936         can be the the subject for another patch.
61937
61938         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
61939         governing whether the rest of this patch is active.  By default,
61940         the macro is disabled and the patch has no effect.
61941         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
61942         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
61943         (struct re_pattern_buffer, re_search, re_search_2, re_match):
61944         (re_match_2, re_set_registers): Use the new types.
61945         * lib/regex_internal.h (Idx, re_hashval_t): New types.
61946         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
61947         New macros.
61948         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
61949         (re_string_context_at, bin_tree_t, re_dfastate_t):
61950         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
61951         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
61952         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
61953         (re_string_char_size_at, re_string_wchar_at):
61954         (re_string_elem_size_at):
61955         Use the new types and macros to port to 64-bit hosts.
61956         Use unsigned types for internal values, so that the code
61957         mostly works even for arrays larger than SSIZE_MAX.
61958         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
61959         (search_duplicated_node, calc_eclosure_iter, fetch_number):
61960         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
61961         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
61962         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
61963         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
61964         (calc_inveclosure, parse_dup_op, build_range_exp):
61965         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
61966         (fetch_number, create_token_tree, mark_opt_subexp):
61967         Likewise.
61968         * lib/regex_internal.c (re_string_construct_common,
61969         create_ci_newstate):
61970         (create_cd_newstate, re_string_allocate, re_string_construct):
61971         (re_string_realloc_buffers, build_wcs_upper_buffer):
61972         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
61973         (re_string_reconstruct, re_string_peek_byte_case):
61974         (re_string_fetch_byte_case, re_string_context_at):
61975         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
61976         (re_node_set_init_copy, re_node_set_add_intersect):
61977         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
61978         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
61979         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
61980         (re_acquire_state, re_acquire_state_context, register_state):
61981         Likewise.
61982         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
61983         search_cur_bkref_entry):
61984         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
61985         (re_search_internal, re_search_2_stub, re_search_stub)
61986         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
61987         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
61988         (update_cur_sifted_state, check_dst_limits):
61989         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
61990         (check_subexp_limits, sift_states_bkref, merge_state_array):
61991         (check_subexp_matching_top, get_subexp, get_subexp_sub):
61992         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
61993         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
61994         (expand_bkref_cache, check_node_accept_bytes):
61995         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
61996         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
61997         (acquire_init_state_context, check_halt_node_context):
61998         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
61999         (sift_states_backward, clean_state_log_if_needed):
62000         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
62001         (find_recover_state, transit_state_sb, transit_state_mb):
62002         (transit_state_bkref, build_trtable, match_ctx_clean):
62003         Likewise.
62004         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
62005         to work around an assumption that REG_MISSING is negative.
62006
62007         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
62008         (seek_collating_symbol_entry) [defined _LIBC]:
62009         (lookup_collation_sequence_value) [defined _LIBC]:
62010         (build_range_exp, build_collating_symbol) [defined _LIBC]:
62011         Use prototypes rather than old-style function definitions.
62012         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
62013         (transit_state_sb) [0]:
62014         (find_collation_sequence_value) [defined _LIBC]: Likewise.
62015
62016         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
62017         rm_eo.
62018
62019         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
62020         (optimize_subexps, lower_subexp):
62021         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
62022         since the signed shift might overflow.  Use 1u<<31 instead.
62023         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
62024         Likewise.
62025         * lib/regexec.c (check_dst_limits_calc_pos_1,
62026         check_subexp_matching_top): Likewise.
62027
62028         * lib/regcomp.c (optimize_subexps, lower_subexp):
62029         Use CHAR_BIT rather than 8, for clarity.
62030         * lib/regexec.c (check_dst_limits_calc_pos_1):
62031         (check_subexp_matching_top): Likewise.
62032         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
62033         have to worry about portability issues when shifting it left.
62034         Remove no-longer-needed test for table_size > 0.
62035         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
62036         in a word, as the resulting behavior is undefined.
62037         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
62038         in one case, a <= should have been an <, and in another case the
62039         whole test was missing.
62040         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
62041         the standard name CHAR_BIT.
62042         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
62043         this is not true on one's complement and signed-magnitude hosts.
62044
62045         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
62046         next_last_offset.
62047         (struct re_dfa_t): Remove unused member states_alloc.
62048         * lib/regcomp.c (init_dfa): Don't initialize unused members.
62049
62050 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62051
62052         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
62053         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
62054         and large-file glibc and in 32-bit large-file Solaris.
62055
62056 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62057
62058         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
62059         lengths fit in regoff_t; this isn't true if regoff_t is the same
62060         width as size_t.
62061         * lib/regex.c (re_search_internal): 5th arg is LAST_START
62062         (= START + RANGE) instead of RANGE.  This avoids overflow
62063         problems when regoff_t is the same width as size_t.
62064         All callers changed.
62065         (re_search_2_stub): Check for overflow when adding the
62066         sizes of the two strings.
62067         (re_search_stub): Check for overflow when adding START
62068         to RANGE; if it occurs, substitute the extreme value.
62069
62070 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62071
62072         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
62073
62074 2005-08-31  Jim Meyering  <jim@meyering.net>
62075
62076         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
62077         a pointer-to-const.
62078         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
62079         (register_state): Likewise.
62080         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
62081         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
62082         (group_nodes_into_DFAstates): Likewise.
62083
62084 2005-08-31  Jim Meyering  <jim@meyering.net>
62085
62086         * check-module: Add a FIXME comment.
62087
62088 2005-08-31  Eric Blake  <ebb9@byu.net>
62089
62090         * modules/unistd-safer (Files): Add unistd--.h.
62091         * modules/stdio-safer (Files): Add stdio--.h.
62092
62093 2005-08-31  Derek Price  <derek@ximbiot.com>
62094
62095         * lib/getdelim.c (getdelim): Return EOF on EOF.
62096         Reported by Larry Jones <lawrence.jones@ugs.com>.
62097
62098 2005-08-31  Bruno Haible  <bruno@clisp.org>
62099
62100         Avoid unnecessary diffs in the generated lib/Makefile.am.
62101         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
62102         the generated files.
62103         (func_import): Don't set cmd.
62104
62105 2005-08-31  Bruno Haible  <bruno@clisp.org>
62106
62107         * lib/strstr.c: Include <stddef.h>, for NULL.
62108         * lib/strcasestr.c: Likewise.
62109         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62110
62111 2005-08-31  Bruno Haible  <bruno@clisp.org>
62112
62113         * gnulib-tool: New option --macro-prefix.
62114         (func_import): Use macro_prefix.
62115         (import): Handle option --macro-prefix.
62116
62117 2005-08-31  Bruno Haible  <bruno@clisp.org>
62118
62119         * gnulib-tool (import): Rename most ac_* variables to cached_*.
62120         Also use new variables cached_lgpl, cached_libtool.
62121
62122 2005-08-31  Bruno Haible  <bruno@clisp.org>
62123
62124         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
62125         always instantiating them.
62126
62127 2005-08-31  Bruno Haible  <bruno@clisp.org>
62128
62129         * gnulib-tool (func_import): Read the previous cached settings
62130         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
62131         earlier added by gnulib but are now dropped. Warn when a gnulib file
62132         overwrites a non-gnulib file.
62133
62134 2005-08-31  Bruno Haible  <bruno@clisp.org>
62135
62136         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
62137         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
62138         projects that don't keep autogenerated files in CVS. Put into
62139         actioncmd only the specified modules, not the transitive closure.
62140
62141 2005-08-31  Bruno Haible  <bruno@clisp.org>
62142
62143         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
62144         Create directories that shall be filled.
62145         (import): Don't look for gl_* macros in configure.ac. Recurse across
62146         all directories containing a gnulib-cache.m4 files, if meaningful.
62147
62148 2005-08-31  Bruno Haible  <bruno@clisp.org>
62149
62150         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
62151         (import): Set seen_libtool when we see gl_LIBTOOL.
62152
62153 2005-08-31  Bruno Haible  <bruno@clisp.org>
62154
62155         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
62156         declaration macro definitions from generated gnulib.m4.
62157
62158 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
62159
62160         * lib/iconvme.h: Add prototype for iconv_alloc.
62161
62162 2005-08-29  Simon Josefsson  <jas@extundo.com>
62163
62164         * lib/iconvme.c: Fix errno.
62165
62166 2005-08-29  Bruno Haible  <bruno@clisp.org>
62167
62168         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
62169         that it works when the directory contains spaces.
62170
62171 2005-08-29  Bruno Haible  <bruno@clisp.org>
62172
62173         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
62174
62175 2005-08-29  Bruno Haible  <bruno@clisp.org>
62176
62177         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
62178         Emit more advice.
62179
62180 2005-08-29  Bruno Haible  <bruno@clisp.org>
62181         and Stepan Kasal  <kasal@ucw.cz>
62182
62183         * check-module: If more parameters are given, check each of them
62184         separately; add more exceptions, as noted by Jim Meyering.
62185         (check_module): New procedure.
62186         (%exempt_header): Now contains all exceptions.
62187
62188 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
62189
62190         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
62191
62192 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
62193
62194         * lib/iconvme.c: Split iconv_string into iconv_alloc.
62195
62196 2005-08-28  Bruno Haible  <bruno@clisp.org>
62197
62198         * m4/gnulib-tool.m4: New file.
62199
62200 2005-08-27  Jim Meyering  <jim@meyering.net>
62201
62202         * modules/unistd-safer (Files): Add pipe-safer.c.
62203         * modules/fcntl-safer (Files): Add creat-safer.c.
62204
62205 2005-08-27  Jim Meyering  <jim@meyering.net>
62206
62207         * m4/stdlib-safer.m4: New file.  From coreutils.
62208         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
62209         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
62210         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
62211         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
62212         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
62213
62214 2005-08-27  Jim Meyering  <jim@meyering.net>
62215
62216         * lib/fopen-safer.c: Merge minor changes from coreutils.
62217         * lib/dup-safer.c: Likewise.
62218         * lib/fd-safer.c: Likewise.
62219
62220         Merge from coreutils.
62221         * lib/stdio--.h: New file.
62222         * lib/stdlib--.h: New file.
62223         * lib/mkstemp-safer.c: New file.
62224
62225         GNU tar needs these.
62226         * lib/pipe-safer.c: New file.
62227         * lib/creat-safer.c: New file.
62228         * lib/fcntl--.h (creat): Define to creat_safer.
62229         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
62230         * lib/unistd--.h (pipe): Define to pipe_safer.
62231         * lib/unistd-safer.h: Declare pipe_safer.
62232
62233 2005-08-26  Simon Josefsson  <jas@extundo.com>
62234
62235         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
62236         Haible <bruno@clisp.org>.
62237
62238 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
62239
62240         * lib/regex_internal.h: Remove all references to
62241         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
62242         or better.
62243         (bitset_not, bitset_merge, bitset_not_merge):
62244         (bitset_mask, re_string_allocate, re_string_construct):
62245         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
62246         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
62247         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
62248         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
62249         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
62250         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
62251         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
62252         (re_acquire_state_context):
62253         Remove unnecessary forward decls.
62254         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
62255         Put __attribute at function definition,
62256         now that the function decl has been removed.
62257         * lib/regex_internal.c (re_string_peek_byte_case):
62258         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
62259         Likewise.
62260
62261 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
62262
62263         * m4/regex.m4: Add AC_PREREQ(2.50).
62264         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
62265
62266 2005-08-25  Simon Josefsson  <jas@extundo.com>
62267
62268         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
62269         __fsetlocking.
62270
62271 2005-08-25  Simon Josefsson  <jas@extundo.com>
62272
62273         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
62274         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
62275         GLIBC specific code.
62276
62277 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62278
62279         Make regex safe for g++.  This fixes one real bug (an "err"
62280         that should have been "*err").  g++ problem reported by
62281         Sam Steingold.
62282         * lib/regex_internal.h (re_calloc): New macro, consistent with
62283         re_malloc etc.  All callers of calloc changed to use re_calloc.
62284         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
62285         not int.  All callers changed.
62286         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
62287         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
62288         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
62289         (find_recover_state): Change "err" to "*err"; this fixes what
62290         appears to be a real bug.
62291         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
62292         versus int.
62293
62294 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62295
62296         * modules/regex (Depends-on): Add malloc, since the code
62297         assumes that !malloc(0) means failure.
62298
62299 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62300
62301         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
62302
62303         alloca modernization/simplification for regex.
62304         * lib/regex.c: Remove portability cruft for alloca.  This no longer
62305         needs to be at the start of the file, and can be moved into
62306         regex_internal.h and simplified.
62307         * lib/regex_internal.h: Include <alloca.h>.
62308         (__libc_use_alloca) [!defined _LIBC]: New macro.
62309         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
62310         now works outside glibc.
62311
62312 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62313
62314         * config/srclist.txt: Add glibc bugs 1241, 1245.
62315
62316 2005-08-25  Jim Meyering  <jim@meyering.net>
62317
62318         * lib/open-safer.c: Include <config.h>.
62319         Otherwise, we'd lose LARGEFILE support in any file using
62320         e.g. "fcntl--.h"
62321
62322 2005-08-25  Bruno Haible  <bruno@clisp.org>
62323
62324         * m4/minmax.m4: Require autoconf 2.52.
62325         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
62326         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
62327         alternatives of translit over the alphabet.
62328         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
62329
62330 2005-08-24  Simon Josefsson  <jas@extundo.com>
62331
62332         * tests/test-getpass.c: New file.
62333
62334 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62335
62336         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
62337         for GNU regex features.
62338
62339 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62340
62341         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
62342         * lib/regex.h (regerror): Likewise.
62343
62344         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
62345         requires this.  (The code never needed it.)
62346
62347         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
62348         All uses of recently-renamed identifiers changed to use the new,
62349         POSIX-compliant names.  The code will build and run just fine
62350         without these changes, but it's better to eat our own dog food
62351         and use the standard-conforming names.
62352
62353         * lib/regex.h: Fix a multitude of POSIX name space violations.
62354         These changes have an effect only for programs that define
62355         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
62356         do not change anything for programs compiled in the normal way.
62357         Also, there is no effect on the ABI.
62358
62359         (_REGEX_SOURCE): New macro.
62360         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
62361         defined and _GNU_SOURCE is not; this fixes a name space violation.
62362
62363         Rename the following macros to obey POSIX requirements.
62364         The old names are still visible as macros if _REGEX_SOURCE is defined.
62365         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
62366         RE_BACKSLASH_ESCAPE_IN_LISTS.
62367         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
62368         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
62369         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
62370         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
62371         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
62372         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
62373         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
62374         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
62375         (REG_INTERVALS): renamed from RE_INTERVALS.
62376         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
62377         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
62378         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
62379         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
62380         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
62381         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
62382         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
62383         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
62384         RE_UNMATCHED_RIGHT_PAREN_ORD.
62385         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
62386         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
62387         (REG_DEBUG): renamed from RE_DEBUG.
62388         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
62389         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
62390         unusual, since we can't clash with the POSIX REG_ICASE.
62391         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
62392         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
62393         (REG_NO_SUB): renamed from RE_NO_SUB.
62394         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
62395         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
62396         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
62397         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
62398         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
62399         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
62400         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
62401         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
62402         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
62403         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
62404         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
62405         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
62406         RE_SYNTAX_POSIX_MINIMAL_BASIC.
62407         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
62408         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
62409         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
62410         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
62411         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
62412         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
62413         (REG_FIXED): Renamed from REGS_FIXED.
62414         (REG_NREGS): Renamed from RE_NREGS.
62415
62416         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
62417         of other REG_* macros, since POSIX says the user is allowed to
62418         #undef these macros selectively.
62419
62420         (reg_errcode_t): Update comment stating what other tables need
62421         to be consistent.
62422
62423         Rename the following enum values to obey POSIX requirements.
62424         The old names are still visible as macros.
62425         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
62426         is not defined, since GNU is supposed to be a superset of POSIX as
62427         much as possible, and since we want reg_errcode_t to be a signed
62428         type for implementation consistency.
62429         (_REG_NOERROR): Renamed from REG_NOERROR.
62430         (_REG_NOMATCH): Renamed from REG_NOMATCH.
62431         (_REG_BADPAT): Renamed from REG_BADPAT.
62432         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
62433         (_REG_ECTYPE): Renamed from REG_ECTYPE.
62434         (_REG_EESCAPE): Renamed from REG_EESCAPE.
62435         (_REG_ESUBREG): Renamed from REG_ESUBREG.
62436         (_REG_EBRACK): Renamed from REG_EBRACK.
62437         (_REG_EPAREN): Renamed from REG_EPAREN.
62438         (_REG_EBRACE): Renamed from REG_EBRACE.
62439         (_REG_BADBR): Renamed from REG_BADBR.
62440         (_REG_ERANGE): Renamed from REG_ERANGE.
62441         (_REG_ESPACE): Renamed from REG_ESPACE.
62442         (_REG_BADRPT): Renamed from REG_BADRPT.
62443         (_REG_EEND): Renamed from REG_EEND.
62444         (_REG_ESIZE): Renamed from REG_ESIZE.
62445         (_REG_ERPAREN): Renamed from REG_ERPAREN.
62446         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
62447         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
62448         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
62449         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
62450
62451         (_REG_RE_NAME, _REG_RM_NAME): New macros.
62452         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
62453         changed.  But support the old name if the new one is not defined
62454         and if _REGEX_SOURCE.
62455
62456         Change the following member names in struct re_pattern_buffer.
62457         The old names are still supported if !_REGEX_SOURCE.
62458         The new names are always supported, regardless of _REGEX_SOURCE.
62459         (re_buffer): Renamed from buffer.
62460         (re_allocated): Renamed from allocated.
62461         (re_used): Renamed from used.
62462         (re_syntax): Renamed from syntax.
62463         (re_fastmap): Renamed from fastmap.
62464         (re_translate): Renamed from translate.
62465         (re_can_be_null): Renamed from can_be_null.
62466         (re_regs_allocated): Renamed from regs_allocated.
62467         (re_fastmap_accurate): Renamed from fastmap_accurate.
62468         (re_no_sub): Renamed from no_sub.
62469         (re_not_bol): Renamed from not_bol.
62470         (re_not_eol): Renamed from not_eol.
62471         (re_newline_anchor): Renamed from newline_anchor.
62472
62473         Change the following member names in struct re_registers.
62474         The old names are still supported if !_REGEX_SOURCE.
62475         The new names are always supported, regardless of _REGEX_SOURCE.
62476         (rm_num_regs): Renamed from num_regs.
62477         (rm_start): Renamed from start.
62478         (rm_end): Renamed from end.
62479
62480         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
62481         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
62482         Prepend __ to parameter names.
62483
62484         Undo yesterday's changes.
62485
62486 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62487
62488         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
62489         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
62490         lib/regex.c.
62491
62492 2005-08-24  Jim Meyering  <jim@meyering.net>
62493
62494         Sync from coreutils.
62495         * m4/fcntl-safer.m4: New file.
62496
62497         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
62498         and object files for this module.
62499
62500 2005-08-24  Jim Meyering  <jim@meyering.net>
62501
62502         Sync from coreutils.
62503         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
62504
62505 2005-08-24  Jim Meyering  <jim@meyering.net>
62506
62507         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
62508         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
62509
62510 2005-08-24  Jim Meyering  <jim@meyering.net>
62511
62512         * modules/fcntl-safer: New module.
62513         * modules/fts (Depends-on): Add fcntl-safer.
62514         * MODULES.html.sh (File descriptor based Input/Output):
62515         Add fcntl-safer.
62516
62517 2005-08-24  Bruno Haible  <bruno@clisp.org>
62518
62519         Support for unit test modules.
62520         * modules/README: Mention tests modules.
62521         * modules/TEMPLATE-TESTS: New file.
62522         * gnulib-tool: New options --extract-tests-module, --with-tests and
62523         --tests-base (unused for the moment).
62524         (testsbase, inctests): New variables.
62525         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
62526         (func_verify_module): Exclude TEMPLATE-TESTS.
62527         (func_verify_nontests_module, func_verify_tests_module): New functions.
62528         (func_get_dependencies): Add implicit dependency for tests modules.
62529         (func_get_tests_module): New function.
62530         (func_modules_transitive_closure): When --with-tests was specified,
62531         include the unit tests as well, unless explicitly avoided.
62532         (func_emit_lib_Makefile_am): Ignore the tests modules here.
62533         (func_emit_tests_Makefile_am): New function.
62534         (func_create_testdir): When --with-tests was specified, emit a
62535         tests/ directory.
62536         * MODULES.html.sh (Future developments): Update.
62537
62538 2005-08-24  Bruno Haible  <bruno@clisp.org>
62539
62540         * modules/tls-tests: New file.
62541         * tests/test-tls.c: New file, from GNU gettext.
62542
62543 2005-08-24  Bruno Haible  <bruno@clisp.org>
62544
62545         * modules/lock-tests: New file.
62546         * tests/test-lock.c: New file, from GNU gettext.
62547
62548 2005-08-24  Bruno Haible  <bruno@clisp.org>
62549
62550         * lib/lock.h: Add multiple inclusion guard.
62551         * lib/tls.h: Add multiple inclusion guard.
62552
62553 2005-08-24  Bruno Haible  <bruno@clisp.org>
62554
62555         * gnulib-tool: Add support for the --aux-dir option to
62556         --create-testdir, --create-megatestdir, --test, --megatest.
62557         (func_create_testdir, func_create_megatestdir): Optionally emit a
62558         AC_CONFIG_AUX_DIR directive.
62559         (create-testdir, create-megatestdir, test, megatest): Provide a
62560         default value for $auxdir.
62561
62562 2005-08-24  Bruno Haible  <bruno@clisp.org>
62563
62564         * gnulib-tool (import): Use compound statement instead of subshell
62565         where possible.
62566
62567 2005-08-24  Bruno Haible  <bruno@clisp.org>
62568
62569         * gnulib-tool (import): Change --aux-dir default to "build-aux".
62570
62571 2005-08-24  Bruno Haible  <bruno@clisp.org>
62572
62573         * gnulib-tool (func_version): Update.
62574
62575 2005-08-24  Bruno Haible  <bruno@clisp.org>
62576
62577         * gnulib-tool (func_import, func_create_testdir,
62578         func_create_megatestdir): Quote all autoconf macro arguments.
62579
62580 2005-08-24  Bruno Haible  <bruno@clisp.org>
62581
62582         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
62583         option --force, because --force causes the aclocal.m4 of each
62584         subdirectory to be newer than the corresponding config.h.in.
62585
62586 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62587
62588         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
62589         All contents moved to gl_REGEX.
62590         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
62591         assume that it does.
62592
62593 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62594
62595         * lib/regex.h (REG_NOSYS)
62596         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
62597         Define, since POSIX requires it as of 2001.
62598         (_REG_ENOSYS)
62599         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
62600         New private symbol, used to keep the enum signed in all cases.
62601         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
62602         Youngman in
62603         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
62604
62605         * lib/regex_internal.c (re_string_skip_chars, register_state):
62606         (calc_state_hash):
62607         Remove forward decls; no longer needed now that we use prototypes.
62608         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
62609         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
62610         (clean_state_log_if_needed): Likewise.
62611
62612 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62613
62614         * config/srclist.txt: Add glibc bugs 1231-1233.
62615
62616 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62617
62618         Fix problems reported by Sam Steingold in
62619         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
62620         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
62621         assumed that reg_errcode_t is a signed type, which is not
62622         necessarily true if _XOPEN_SOURCE is not defined.
62623         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
62624         since some compilers warn about it otherwise.
62625
62626 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62627
62628         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
62629         (init_word_char, create_initial_state, duplicate_node_closure):
62630         (fetch_token, peek_token_bracket, build_range_exp):
62631         (build_collating_symbol): Remove forward decls; no longer needed
62632         now that we use prototypes.
62633
62634         * lib/regcomp.c:
62635         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
62636         (re_compile_fastmap_iter, regcomp, regerror, regfree):
62637         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
62638         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
62639         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
62640         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
62641         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
62642         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
62643         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
62644         (build_range_exp, build_collating_symbol, parse_bracket_exp):
62645         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
62646         (build_charclass, build_charclass_op, fetch_number, create_tree):
62647         (create_token_tree, mark_opt_subexp, duplicate_tree):
62648         Use prototypes rather than old-style definitions.
62649
62650         * lib/regex_internal.c:
62651         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
62652         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
62653         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
62654         (re_string_reconstruct, re_string_peek_byte_case):
62655         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
62656         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
62657         (re_node_set_init_copy, re_node_set_add_intersect):
62658         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
62659         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
62660         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
62661         (re_acquire_state, re_acquire_state_context, register_state):
62662         (create_ci_newstate, create_cd_newstate, free_state):
62663         Likewise.
62664         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
62665         re_search_2):
62666         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
62667         (re_search_internal, prune_impossible_nodes):
62668         (acquire_init_state_context, check_matching, static):
62669         (check_halt_node_context, check_halt_state_context, proceed_next_node):
62670         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
62671         (update_regs, sift_states_backward, build_sifted_states):
62672         (clean_state_log_if_needed, merge_state_array):
62673         (update_cur_sifted_state, add_epsilon_src_nodes):
62674         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
62675         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
62676         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
62677         (find_recover_state, check_subexp_matching_top, transit_state_mb):
62678         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
62679         (check_arrival, check_arrival_add_next_nodes):
62680         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
62681         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
62682         (check_node_accept_bytes, check_node_accept, extend_buffers):
62683         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
62684         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
62685         (sift_ctx_init):
62686         Likewise.
62687
62688         * lib/regex_internal.h:
62689         (re_string_allocate, re_string_construct, re_string_reconstruct):
62690         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
62691         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
62692         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
62693         (re_string_context_at, re_string_peek_byte_case):
62694         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
62695         is defined, since we now use prototypes always.
62696
62697         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
62698         C89 or better.  All uses removed.
62699
62700 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62701
62702         * config/srclist.txt: Add glibc bugs 1220-1227.
62703
62704 2005-08-20  Jim Meyering  <jim@meyering.net>
62705
62706         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
62707         of unused local, dfa.
62708
62709 2005-08-20  Bruno Haible  <bruno@clisp.org>
62710
62711         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
62712
62713 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62714
62715         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
62716         (re_node_set_insert_last, re_dfa_add_node):
62717         Rename local variables to avoid GCC shadowing warnings.
62718
62719 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62720
62721         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
62722         [defined lint]: Suppress bogus uninitialized-variable warnings.
62723
62724         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
62725         and let the caller return REG_ESPACE if out of space.  This
62726         removes an uninitialied-variable warning with GCC 4.0.1, and also
62727         avoids taking the address of a local variable.  All callers
62728         changed.
62729
62730 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62731
62732         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
62733         $LIBCSRC/posix/regexec.c.
62734         Add glibc bug 1217 for regcomp.c.
62735
62736 2005-08-19  Jim Meyering  <jim@meyering.net>
62737
62738         * lib/regexec.c (proceed_next_node): Redo local variables to
62739         avoid GCC shadowing warnings.
62740
62741 2005-08-18  Bruno Haible  <bruno@clisp.org>
62742
62743         * lib/strstr.c (strstr): Fix return value in multibyte case.
62744         * lib/strcasestr.c (strcasestr): Likewise.
62745
62746 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62747
62748         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
62749
62750 2005-08-17  Jim Meyering  <jim@meyering.net>
62751
62752         Make the %s format (seconds since the epoch) work for a negative
62753         number and when used with a zero-padded field width, e.g. %015s.
62754
62755         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
62756         label so that it precedes the code to set `digits'.  Otherwise,
62757         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
62758         print `00-22'.  Now, it prints `-0022', as it should.
62759
62760 2005-08-17  Bruno Haible  <bruno@clisp.org>
62761
62762         * modules/strstr (Files): Add m4/mbrtowc.m4.
62763         (Depends-on): Add mbuiter.
62764
62765 2005-08-17  Bruno Haible  <bruno@clisp.org>
62766
62767         * modules/strcasestr: New file.
62768         * MODULES.html.sh (String handling, based on ANSI C 89): Add
62769         strcasestr.
62770
62771 2005-08-17  Bruno Haible  <bruno@clisp.org>
62772
62773         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
62774
62775 2005-08-17  Bruno Haible  <bruno@clisp.org>
62776
62777         * modules/mbuiter: New file.
62778         * MODULES.html.sh (Extended multibyte and wide character utilities):
62779         Add mbuiter.
62780
62781 2005-08-17  Bruno Haible  <bruno@clisp.org>
62782
62783         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
62784         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
62785
62786 2005-08-17  Bruno Haible  <bruno@clisp.org>
62787
62788         * m4/strcasestr.m4: New file.
62789
62790 2005-08-17  Bruno Haible  <bruno@clisp.org>
62791
62792         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
62793         * lib/strstr.c: Completely rewritten, with multibyte locale support.
62794
62795 2005-08-17  Bruno Haible  <bruno@clisp.org>
62796
62797         * lib/strcasestr.h: New file.
62798         * lib/strcasestr.c: New file.
62799
62800 2005-08-17  Bruno Haible  <bruno@clisp.org>
62801
62802         * lib/strcasecmp.c: Use mbuiter.h.
62803
62804 2005-08-17  Bruno Haible  <bruno@clisp.org>
62805
62806         * lib/mbuiter.h: New file.
62807
62808 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
62809
62810         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
62811         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
62812         and gl_GETOPT are both invoked via different paths (as happens
62813         with GNU tar CVS because it uses both argp and getopt), the former
62814         wins.
62815
62816 2005-08-16  Bruno Haible  <bruno@clisp.org>
62817
62818         * modules/tls: New file.
62819         * MODULES.html.sh (Multithreading): Add tls.
62820
62821 2005-08-16  Bruno Haible  <bruno@clisp.org>
62822
62823         * modules/strnlen1: New file.
62824         * MODULES.html.sh (String handling): Add strnlen1.
62825
62826 2005-08-16  Bruno Haible  <bruno@clisp.org>
62827
62828         * modules/strcase (Files): Add m4/mbrtowc.m4.
62829         (Depends-on): Add strnlen1, mbchar.
62830
62831 2005-08-16  Bruno Haible  <bruno@clisp.org>
62832
62833         * modules/mbiter: New file.
62834         * MODULES.html.sh (Extended multibyte and wide character utilities):
62835         Add mbiter.
62836
62837 2005-08-16  Bruno Haible  <bruno@clisp.org>
62838
62839         * modules/mbfile: New file.
62840         * MODULES.html.sh (Extended multibyte and wide character utilities):
62841         Add mbfile.
62842
62843 2005-08-16  Bruno Haible  <bruno@clisp.org>
62844
62845         * modules/mbchar: New file.
62846         * MODULES.html.sh (Extended multibyte and wide character utilities):
62847         New section.
62848
62849 2005-08-16  Bruno Haible  <bruno@clisp.org>
62850
62851         * m4/tls.m4: New file, from GNU gettext.
62852
62853 2005-08-16  Bruno Haible  <bruno@clisp.org>
62854
62855         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
62856         always.
62857         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
62858
62859 2005-08-16  Bruno Haible  <bruno@clisp.org>
62860
62861         * m4/mbiter.m4: New file.
62862
62863 2005-08-16  Bruno Haible  <bruno@clisp.org>
62864
62865         * m4/mbfile.m4: New file.
62866
62867 2005-08-16  Bruno Haible  <bruno@clisp.org>
62868
62869         * m4/mbchar.m4: New file.
62870
62871 2005-08-16  Bruno Haible  <bruno@clisp.org>
62872
62873         * lib/tls.h: New file, from GNU gettext.
62874         * lib/tls.c: New file, from GNU gettext.
62875
62876 2005-08-16  Bruno Haible  <bruno@clisp.org>
62877
62878         * lib/strnlen1.h: New file.
62879         * lib/strnlen1.c: New file.
62880
62881 2005-08-16  Bruno Haible  <bruno@clisp.org>
62882
62883         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
62884         (mbi_init): Update.
62885         (mbi_avail, mbi_advance): Let the iteration end before the terminating
62886         NUL byte, not after it.
62887
62888 2005-08-16  Bruno Haible  <bruno@clisp.org>
62889
62890         * lib/strcase.h (strcasecmp): Add note in comments.
62891         * lib/strncasecmp.c: Use code from strcasecmp.c.
62892         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
62893         (strcasecmp): Work correctly in multibyte locales.
62894
62895 2005-08-16  Bruno Haible  <bruno@clisp.org>
62896
62897         * lib/mbiter.h: New file.
62898
62899 2005-08-16  Bruno Haible  <bruno@clisp.org>
62900
62901         * lib/mbfile.h: New file.
62902
62903 2005-08-16  Bruno Haible  <bruno@clisp.org>
62904
62905         * lib/mbchar.h: New file.
62906         * lib/mbchar.c: New file.
62907
62908 2005-08-16  Bruno Haible  <bruno@clisp.org>
62909
62910         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
62911         the valid ones. Makes the comparison operations transitive:
62912         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
62913         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
62914
62915 2005-08-15  Simon Josefsson  <jas@extundo.com>
62916
62917         * modules/ssize_t (License): Change to 'unlimited'.
62918
62919         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
62920
62921 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62922
62923         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
62924         Add comments for each pending glibc patch.
62925
62926 2005-08-15  Bruno Haible  <bruno@clisp.org>
62927
62928         * lib/regex.h (__restrict_arr): Don't define to __restrict if
62929         __cplusplus is defined.
62930
62931 2005-08-14  Jim Meyering  <jim@meyering.net>
62932
62933         Sync from coreutils.
62934
62935         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
62936         Use the hash-table-based cycle-detection code not just when
62937         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
62938         Reported by James Youngman in
62939         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
62940         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
62941         FTS_TIGHT_CYCLE_CHECK.
62942         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
62943         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
62944         once again.
62945         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
62946         * lib/fts.c (fd_safer): Remove decl.
62947         Include fcntl--.h rather than unistd-safer.h
62948         (fts_safe_changedir): Don't call fd_safer; no longer needed
62949         now that we include fcntl--.h.
62950
62951 2005-08-12  Simon Josefsson  <jas@extundo.com>
62952
62953         * modules/getndelim2: Use ssize_t module.
62954         * modules/getnline: Likewise.
62955         * modules/safe-read: Likewise.
62956         * modules/xreadlink: Likewise.
62957
62958         * modules/ssize_t: New file.
62959
62960 2005-08-12  Simon Josefsson  <jas@extundo.com>
62961
62962         * m4/readline.m4: Look for termcap, curses or ncurses if required.
62963
62964 2005-08-12  Simon Josefsson  <jas@extundo.com>
62965
62966         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62967         ssize_t.
62968
62969 2005-08-12  Simon Josefsson  <jas@extundo.com>
62970
62971         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
62972         readline, getdelim and check_version.
62973         (Support for systems lacking ISO C 99: Sizes of integer types):
62974         Add size_max.
62975
62976 2005-08-12  Bruno Haible  <bruno@clisp.org>
62977
62978         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
62979
62980 2005-08-11  Simon Josefsson  <jas@extundo.com>
62981
62982         * modules/readline: New file.
62983
62984         * modules/strnlen (Files): Add strnlen.h.
62985
62986 2005-08-11  Simon Josefsson  <jas@extundo.com>
62987
62988         * m4/readline.m4: New file.
62989
62990 2005-08-11  Simon Josefsson  <jas@extundo.com>
62991
62992         * lib/readline.h, readline.c: New file.
62993
62994 2005-08-11  Simon Josefsson  <jas@extundo.com>
62995
62996         * doc/gnulib.texi (Initial import, Finishing touches): Mention
62997         gl_AVOID.
62998
62999 2005-08-11  Bruno Haible  <bruno@clisp.org>
63000
63001         * lib/strnlen.h (strnlen): Change parameter name to match comment.
63002
63003 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
63004
63005         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
63006
63007 2005-08-10  Simon Josefsson  <jas@extundo.com>
63008
63009         * tests/test-iconvme.c: New file.
63010
63011 2005-08-10  Simon Josefsson  <jas@extundo.com>
63012
63013         * m4/strnlen.m4: New file.
63014
63015         * m4/strndup.m4: Don't check for strnlen declaration, done in
63016         strnlen.m4.
63017
63018 2005-08-10  Simon Josefsson  <jas@extundo.com>
63019
63020         * lib/strndup.c: Use strnlen.h.
63021
63022         * lib/strnlen.h: New file.
63023
63024 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63025
63026         * README: Typos.
63027
63028 2005-08-02  Simon Josefsson  <jas@extundo.com>
63029
63030         * modules/readline: New file.
63031
63032 2005-08-02  Simon Josefsson  <jas@extundo.com>
63033
63034         * modules/getdelim: New file.
63035
63036         * modules/getline: Rewrite, don't use getndelim2.
63037
63038 2005-08-02  Simon Josefsson  <jas@extundo.com>
63039
63040         * m4/getline.m4: Separate out getdelim stuff into separate module.
63041
63042         * m4/getdelim.m4: New file.
63043
63044 2005-08-02  Simon Josefsson  <jas@extundo.com>
63045
63046         * lib/getline.h, getline.c: Rewrite.
63047
63048         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
63049
63050 2005-07-31  Bruno Haible  <bruno@clisp.org>
63051
63052         * lib/lock.h (gl_lock_initializer): New macro.
63053         (gl_lock_define_initialized): Use it.
63054         (gl_rwlock_initializer): New macro.
63055         (gl_rwlock_define_initialized): Use it.
63056         (gl_recursive_lock_initializer): New macro.
63057         (gl_recursive_lock_define_initialized): Use it.
63058
63059 2005-07-30  Karl Berry  <karl@gnu.org>
63060
63061         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
63062         Report from Ben Pfaff, regarding getopt.
63063
63064 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
63065
63066         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
63067         normal way.
63068         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
63069         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
63070         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
63071         (gl_GETOPT): Use the new macros.  Most of the implementation
63072         is moved to the new macros.  This is for programs like Emacs
63073         that don't want all the functionality of gl_GETOPT.
63074
63075 2005-07-26  Bruno Haible  <bruno@clisp.org>
63076
63077         * m4/lock.m4: Update from GNU gettext.
63078
63079 2005-07-26  Bruno Haible  <bruno@clisp.org>
63080
63081         * lib/lock.h: Update from GNU gettext.
63082         * lib/lock.c: Update from GNU gettext.
63083
63084 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
63085
63086         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
63087         obsolescent AC_TRY_RUN.  Include the default includes files, for
63088         'exit'.
63089
63090 2005-07-24  Bruno Haible  <bruno@clisp.org>
63091
63092         * modules/visibility: New file.
63093         * MODULES.html.sh (Misc): Add visibility.
63094
63095 2005-07-24  Bruno Haible  <bruno@clisp.org>
63096
63097         * m4/visibility.m4: New file.
63098
63099 2005-07-24  Bruno Haible  <bruno@clisp.org>
63100
63101         * doc/visibility.texi: New file.
63102
63103 2005-07-22  Bruno Haible  <bruno@clisp.org>
63104
63105         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
63106         $(ALLOCA_H), redundant through BUILT_SOURCES.
63107         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
63108         redundant through BUILT_SOURCES.
63109         * modules/byteswap (Makefile.am): Remove explicit dependency on
63110         $(BYTESWAP_H), redundant through BUILT_SOURCES.
63111         * modules/fnmatch (Makefile.am): Remove explicit dependency on
63112         $(FNMATCH_H), redundant through BUILT_SOURCES.
63113         * modules/getopt (Makefile.am): Remove explicit dependency on
63114         $(GETOPT_H), redundant through BUILT_SOURCES.
63115         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
63116         redundant through BUILT_SOURCES.
63117         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
63118         redundant through BUILT_SOURCES.
63119         * modules/stdbool (Makefile.am): Remove explicit dependency on
63120         $(STDBOOL_H), redundant through BUILT_SOURCES.
63121         * modules/stdint (Makefile.am): Remove explicit dependency on
63122         $(STDINT_H), redundant through BUILT_SOURCES.
63123         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
63124         Remove explicit dependency on $(SYSEXITS_H).
63125         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
63126
63127 2005-07-18  Simon Josefsson  <jas@extundo.com>
63128
63129         * lib/check-version.c (check_version): Accept identical versions too.
63130
63131 2005-07-18  Bruno Haible  <bruno@clisp.org>
63132
63133         * modules/lock: New file.
63134         * MODULES.html.sh (Multithreading): New section.
63135
63136 2005-07-18  Bruno Haible  <bruno@clisp.org>
63137
63138         * m4/lock.m4: New file, from GNU gettext.
63139
63140 2005-07-18  Bruno Haible  <bruno@clisp.org>
63141
63142         * lib/lock.h: New file, from GNU gettext.
63143         * lib/lock.c: New file, from GNU gettext.
63144
63145 2005-07-18  Bruno Haible  <bruno@clisp.org>
63146
63147         * lib/lock.h (gl_once_t): New type.
63148         (gl_once_define, gl_once): New macros.
63149         * lib/lock.c (fresh_once): New variable.
63150         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
63151         functions.
63152
63153 2005-07-16  Simon Josefsson  <jas@extundo.com>
63154
63155         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
63156         workaround, suggested by Bruno.
63157
63158 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
63159
63160         * modules/xalloc (Depends-on): Add xalloc-die.
63161         * modules/xvasprintf (Depends-on): Add xalloc-die.
63162
63163 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
63164
63165         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
63166         with a minor change.
63167
63168 2005-07-15  Bruno Haible  <bruno@clisp.org>
63169
63170         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
63171         When using lib/poll.c, define poll as rpl_poll.
63172
63173 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
63174
63175         * modules/argp (Depends-on): Remove unlocked-io.
63176
63177 2005-07-14  Derek Price  <derek@ximbiot.com>
63178
63179         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
63180         for glob symlink bug.
63181
63182 2005-07-14  Bruno Haible  <bruno@clisp.org>
63183
63184         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
63185         Instead, test for *_unlocked function declarations directly.
63186
63187 2005-07-11  Simon Josefsson  <jas@extundo.com>
63188
63189         * modules/size_max: New file.
63190
63191         * modules/xsize: Depend on size_max module for size_max.m4.
63192
63193 2005-07-11  Simon Josefsson  <jas@extundo.com>
63194
63195         * lib/size_max.h: New file.
63196
63197 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
63198
63199         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
63200         copyright symbol and the year.
63201         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
63202         (version_etc_va): Use parameterized copyright notice.
63203         Reword to conform to the current GNU coding standards.
63204
63205 2005-07-11  Karl Berry  <karl@gnu.org>
63206
63207         * doc/gnulib.texi (Quoting): new node.
63208         (Initial import): more info, from Patrice.
63209
63210 2005-07-11  Bruno Haible  <bruno@clisp.org>
63211
63212         * gnulib-tool (func_usage): Document option --avoid.
63213         (Command line options): Handle --avoid.
63214         (func_acceptable): New function.
63215         (func_modules_transitive_closure): Use it.
63216
63217 2005-07-11  Bruno Haible  <bruno@clisp.org>
63218
63219         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
63220         Reported by Jim Meyering.
63221
63222 2005-07-10  Bruno Haible  <bruno@clisp.org>
63223
63224         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
63225         Needed when size_t is smaller than 'unsigned int'.
63226         Reported by Paul Eggert.
63227
63228 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63229
63230         * modules/argp (Depends-on): Add unlocked-io
63231
63232 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63233
63234         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
63235         block of defines.
63236
63237 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63238
63239         * config/srclist.txt: Comment out regcomp.c, since we have a porting
63240         fix now.
63241
63242 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
63243         and Paul Eggert  <eggert@cs.ucla.edu>
63244
63245         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
63246         in wint_t, not wchar_t.  Remove now-unnecessary cast.
63247
63248 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
63249
63250         * modules/regex (Files): Add lib/regex_internal.c,
63251         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
63252         (Depends-on): Add extensions.
63253         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
63254
63255 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
63256
63257         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
63258         pathconf.
63259         * m4/same.m4 (gl_SAME): Likewise.
63260         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
63261
63262         * m4/regex.m4: Adjust to new libc regex implementation.
63263         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
63264         all the .c and .h parts of (the new) regex.
63265         Quote the m4 stuff better.
63266         Check for RE_ICASE bug of old gnulib.
63267         Check for REG_STARTEND of recent libc.
63268         Rename local variables from jm_* to gl_*.
63269         Quote operand of "test -f".
63270         Say "recent enough" version of libc, not "version 2".
63271         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
63272         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
63273         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
63274         Remove check for btowc, isascii.
63275         Require AM_LANGINFO_CODESET.
63276
63277 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
63278
63279         * lib/regex.c, regex.h: Sync from libc.
63280         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
63281         * lib/regexec.c:
63282         New files, synced from libc, except that regex_internal.h
63283         currently has a small porting fix.
63284
63285 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
63286
63287         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
63288         regex_internal.c, regexec.c.
63289         Add regex_internal.h too, but as a comment, since the libc version
63290         is currently broken in gnulib mode.
63291
63292 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63293
63294         Support programs like Emacs that use gnulib but not gettext.
63295         * MODULES.html.sh (Internationalization functions): Add gettext-h.
63296         * modules/gettext-h: New file.
63297         * modules/gettext (Files): Remove lib/gettext.h.
63298         (Depends-on): Add gettext-h.
63299         (Makefile.am): Remove lib_SOURCES.
63300         * modules/argmatch, modules/c-stack, modules/closeout:
63301         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
63302         * modules/execute, modules/file-type, modules/getaddrinfo:
63303         * modules/getopt, modules/human, modules/javacomp:
63304         * modules/javaexec, modules/mkdir-p, modules/obstack:
63305         * modules/openat, modules/pagealign_alloc, modules/pipe:
63306         * modules/quotearg, modules/regex, modules/rpmatch:
63307         * modules/unicodeio, modules/userspec, modules/version-etc:
63308         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
63309         * modules/xsetenv:
63310         Depend on gettext-h, not gettext.
63311
63312 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63313
63314         * gnulib-tool (func_import): Add support for 'public domain' license.
63315         * modules/alloca, modules/atexit, modules/memmove:
63316         Now public domain, not GPL.
63317         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
63318         * modules/realloc, modules/strerror, modules/strtod:
63319         Now LGPL, not GPL.
63320
63321 2005-07-05  Bruno Haible  <bruno@clisp.org>
63322
63323         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
63324         autoconf CVS. Needed for mingw.
63325
63326 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63327
63328         Remove the dependency of the strftime module on the tzset module.
63329         * modules/strftime (Depends-on): Remove dependency on tzset.
63330
63331 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63332
63333         Remove the dependency of the strftime module on the tzset module.
63334         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
63335         gl_FUNC_TZSET_CLOBBER.
63336
63337 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63338
63339         Remove the dependency of the strftime module on the tzset module.
63340         * lib/strftime.c (my_strftime)
63341         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
63342         Copy the input structure, to work around some of the bug with
63343         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
63344         Solaris releases, you should also use the tzset module, but we won't
63345         require it as a dependency any more since we don't want LGPLed code
63346         to depend on GPLed code.
63347
63348 2005-07-02  Jim Meyering  <jim@meyering.net>
63349
63350         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
63351         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
63352         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
63353         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
63354
63355 2005-07-02  Jim Meyering  <jim@meyering.net>
63356
63357         * lib/backupfile.c (backup_args): Change a `0' to NULL.
63358
63359 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63360
63361         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
63362         declares only 'struct timespec;' (!).
63363
63364 2005-07-01  Jim Meyering  <jim@meyering.net>
63365
63366         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
63367         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
63368         * lib/save-cwd.c, tempname.c:
63369         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
63370         and don't include <sys/file.h>).
63371
63372 2005-06-29  Jim Meyering  <jim@meyering.net>
63373
63374         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
63375         type name.  Use the variable name instead.
63376         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
63377         Likewise.
63378
63379 2005-06-28  Simon Josefsson  <jas@extundo.com>
63380
63381         * modules/check-version (Files): Add check-version.m4.
63382
63383 2005-06-28  Simon Josefsson  <jas@extundo.com>
63384
63385         * m4/check-version.m4: New file, suggested by Jim Meyering
63386         <jim@meyering.net>.
63387
63388 2005-06-28  Simon Josefsson  <jas@extundo.com>
63389
63390         * lib/check-version.h, lib/check-version.c: New files.
63391
63392 2005-06-28  Simon Josefsson  <jas@extundo.com>
63393
63394         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
63395         collision with global variable.  Better indentation.  Don't
63396         increment buffer pointer beyond buffer end.  Based on comments
63397         from Paul Eggert <eggert@cs.ucla.edu>.
63398
63399         * lib/base64.h: Indent.
63400
63401 2005-06-28  Simon Josefsson  <jas@extundo.com>
63402
63403         * doc/gnulib.texi (Library version handling): New section.
63404
63405 2005-06-28  Jim Meyering  <jim@meyering.net>
63406
63407         * check-module (find_included_lib_files): Hard-code another
63408         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
63409         but modules/fts-lgpl (correctly) does not list those files.
63410
63411         * modules/canonicalize (Files): Add lib/pathmax.h.
63412
63413 2005-06-25  Simon Josefsson  <jas@extundo.com>
63414
63415         * modules/check-version: New file.
63416
63417 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
63418
63419         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
63420         initializer of struct addrinfo, as an indication that we don't
63421         care how many members the structure has.
63422
63423 2005-06-24  Derek Price  <derek@ximbiot.com>
63424         and Bruno Haible  <bruno@clisp.org>
63425
63426         Remove stat module & update lstat.
63427         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
63428         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63429         * m4/stat.m4: Remove this file.
63430
63431 2005-06-24  Derek Price  <derek@ximbiot.com>
63432         and Bruno Haible  <bruno@clisp.org>
63433
63434         Remove stat module & update lstat.
63435         * lib/stat.c: Remove this file...
63436         (slash_aware_lstat): ...moving this content and its support...
63437         * lib/lstat.c (rpl_lstat): ...into here.
63438         * lib/lstat.h: New file.
63439
63440 2005-06-24  Derek Price  <derek@ximbiot.com>
63441         and Bruno Haible  <bruno@clisp.org>
63442
63443         Remove stat module & update lstat.
63444         * config/srclist.txt (libc sources): Remove stat.
63445
63446 2005-06-24  Derek Price  <derek@ximbiot.com>
63447         and Bruno Haible  <bruno@clisp.org>
63448
63449         Remove stat module & update lstat.
63450         * MODULES.html.sh (stat): Remove.
63451         * MODULES.html: Regenerated.
63452         * modules/lstat (Description): Correct function name.
63453         (Files): Add "lstat.h".
63454         (Depends-on): Remove stat, add xalloc, stat-macros.
63455         * modules/stat: Remove this file.
63456         (Include): Add "lstat.h", remove <sys/stat.h>.
63457
63458 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63459
63460         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
63461         (ranged_convert): Don't save conversion in a temporary struct.
63462         This causes a warning with GCC 4.0.0, and anyway in the typical
63463         case it's not worth the extra 100 bytes or so of code.
63464         (ranged_convert, __mktime_internal): When calling a function via a
63465         pointer P, use P () rather than (*P) (), as we now assume C89 or
63466         better.
63467
63468 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63469
63470         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
63471         "who -r" failed to give output.  Problem reported by Tim Waugh.
63472
63473         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
63474         (xcalloc): Use it to avoid needless tests.
63475         Problem reported by Jim Meyering.
63476
63477 2005-06-20  Derek Price  <derek@ximbiot.com>
63478
63479         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
63480         unnecessary for Autoconfs > 2.59c.
63481
63482 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63483
63484         * lib/argp.h (__option_is_short): Check upper limit of
63485         __key. Isprint() requires its argument to have the value
63486         of an unsigned char or EOF.
63487
63488 2005-06-16  Jim Meyering  <jim@meyering.net>
63489
63490         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
63491         when either N or S is zero.
63492
63493 2005-06-16  Derek Price  <derek@ximbiot.com>
63494
63495         * m4/bison.m4: Declare YACC & YFLAGS precious.
63496
63497 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
63498
63499         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
63500         multibyte string or pattern, fall back on unibyte matching.
63501         Problem reported by James Youngman.
63502
63503 2005-06-08  Bruno Haible  <bruno@clisp.org>
63504
63505         * modules/csharpcomp: New file.
63506         * MODULES.html.sh (C#): Add csharpcomp.
63507
63508 2005-06-08  Bruno Haible  <bruno@clisp.org>
63509
63510         * m4/csharpcomp.m4: New file, from GNU gettext.
63511
63512 2005-06-08  Bruno Haible  <bruno@clisp.org>
63513
63514         * lib/csharpcomp.h: New file, from GNU gettext.
63515         * lib/csharpcomp.c: New file, from GNU gettext.
63516         * lib/csharpcomp.sh.in: New file, from GNU gettext.
63517
63518 2005-06-08  Bruno Haible  <bruno@clisp.org>
63519
63520         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
63521         warning on mingw.
63522
63523 2005-06-07  Derek Price  <derek@ximbiot.com>
63524
63525         Sync from CVS.
63526         * lib/glob_.h: Indent nested #ifdef.
63527
63528 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
63529
63530         Sync from coreutils.
63531         Use "file name" when talking about file names, instead of "filename"
63532         or "path", as per the GNU coding standards.
63533         * lib/mkdir-p.c: Renamed from makepath.c.
63534         (make_dir_parents): Renamed from make_path.  All callers changed.
63535         * lib/mkdir-p.h: Likewise.  All includers changed.
63536         * lib/filenamecat.c: Renamed from path-concat.c.
63537         (file_name_concat): Renamed from path_concat.  All callers changed.
63538         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
63539         * lib/filenamecat.h: Likewise.  All includers changed.
63540         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
63541         in comments or local variable names.
63542         * lib/basename.c: Likewise.
63543         * lib/canonicalize.c, canonicalize.h: Likewise.
63544         * lib/dirname.c, dirname.h: Likewise.
63545         * lib/euidaccess.c: Likewise.
63546         * lib/exclude.c: Likewise
63547         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
63548         * lib/fsusage.c, fsuage.h: Likewise.
63549         * lib/fts.c, fts_.h: Likewise.
63550         * lib/getcwd.c: Likewise.
63551         * lib/getloadavg.c: Likewise.
63552         * lib/mkstemp.c: Likewise.
63553         * lib/mountlist.c, mountlist.h: Likewise.
63554         * lib/openat.c, openat.h: Likewise.
63555         * lib/readlink-stub.c: Likewise.
63556         * lib/readutmp.c, readutmp.h: Likewise.
63557         * lib/rename.c: Likewise.
63558         * lib/rmdir.c: Likewise.
63559         * lib/same.c: Likewise.
63560         * lib/savedir.c: Likewise.
63561         * lib/stripslash.c: Likewise.
63562         * lib/tempname.c: Likewise.
63563         * lib/xreadlink.c: Likewise.
63564         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
63565         All uses changed.
63566         * lib/exclude.h: Likewise.
63567
63568         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
63569         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
63570         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
63571         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
63572         * lib/pathmax.h: Include <limits.h> unconditionally, since other
63573         files have been getting away with it for years (MORE/BSD 4.3
63574         is extinct now).
63575         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
63576         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
63577
63578         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
63579         Define to 256, not 255, as per modern POSIX.
63580
63581 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
63582
63583         Sync from coreutils.
63584         Use "file name" when talking about file names, instead of "filename"
63585         or "path", as per the GNU coding standards.
63586         * MODULES.html.sh: mkdir-p renamed from makepath.
63587         filenamecat renamed from path-concat.
63588         * modules/filenamecat: Renamed from modules/path-concat.
63589         (Files): filenamecat.h and filenamecat.c renamed from
63590         path-concat.h and path-concat.c.
63591         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
63592         (Include): filenamecat.h, not path-concat.h.
63593         * modules/mkdir-p: Renamed from modules/makepath.
63594         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
63595         makepath.c.
63596         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
63597         (Include): mkdir-p.h, not makepath.h.
63598
63599 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
63600
63601         Sync from coreutils.
63602         * m4/mkdir-p.m4: Renamed from makepath.m4.
63603         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
63604         Rename files from makepath.c to mkdir-p.c, and from
63605         makepath.h to mkdir-p.h.
63606         * m4/filenamecat.m4: Renamed from path-concat.m4.
63607         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
63608         Rename files from path-concat.c to filenamecat.c,
63609         and from path-concat.h to filenamecat.h.
63610         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
63611         "file name" in local variables or comments.
63612         * m4/rename.m4: Likewise.
63613
63614 2005-06-01  Bruno Haible  <bruno@clisp.org>
63615
63616         * modules/csharpexec: New file.
63617         * MODULES.html.sh (C#): New section.
63618
63619 2005-06-01  Bruno Haible  <bruno@clisp.org>
63620
63621         * m4/csharp.m4: New file, from GNU gettext.
63622         * m4/csharpexec.m4: New file, from GNU gettext.
63623
63624 2005-06-01  Bruno Haible  <bruno@clisp.org>
63625
63626         * lib/csharpexec.h: New file, from GNU gettext.
63627         * lib/csharpexec.c: New file, from GNU gettext.
63628         * lib/csharpexec.sh.in: New file, from GNU gettext.
63629
63630 2005-05-31  Derek Price  <derek@ximbiot.com>
63631             Paul Eggert  <eggert@cs.ucla.edu>
63632
63633         Sync from cvs.
63634         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
63635
63636 2005-05-31  Derek Price  <derek@ximbiot.com>
63637             Paul Eggert  <eggert@cs.ucla.edu>
63638
63639         Sync from cvs.
63640         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
63641
63642 2005-05-29  Derek Price  <derek@ximbiot.com>
63643
63644         * config/srclist.txt (glob_.h, glob.c): Add these files.
63645
63646 2005-05-29  Derek Price  <derek@ximbiot.com>
63647
63648         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
63649         * modules/glob: New file.
63650         * modules/getlogin_r: Add link to POSIX spec in description.
63651
63652 2005-05-29  Derek Price  <derek@ximbiot.com>
63653             Paul Eggert  <eggert@cs.ucla.edu>
63654
63655         * m4/glob.m4: New file.
63656
63657 2005-05-29  Derek Price  <derek@ximbiot.com>
63658             Paul Eggert  <eggert@cs.ucla.edu>
63659
63660         * lib/glob_.h, lib/glob.c: New files.
63661
63662 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
63663
63664         * modules/fts (Files): Remove m4/inttypes-pri.m4.
63665         * modules/fts-lgpl (Depends-on): Remove gettext.
63666
63667 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
63668
63669         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
63670         and don't require gt_INTTYPES_PRI.
63671
63672 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
63673
63674         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
63675
63676         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
63677         the configuration hassle isn't worth it.
63678         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
63679         (LONGEST_MODIFIER, PRIuMAX): Remove.
63680
63681 2005-05-27  Bruno Haible  <bruno@clisp.org>
63682
63683         * lib/getlogin_r.h: Remove second include of <stddef.h>.
63684
63685 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
63686
63687         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
63688         _POSIX_PTHREAD_SEMANTICS for Solaris.
63689
63690 2005-05-25  Derek Price  <derek@ximbiot.com>
63691
63692         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
63693
63694 2005-05-25  Derek Price  <derek@ximbiot.com>
63695             Paul Eggert  <eggert@cs.ucla.edu>
63696
63697         * modules/getlogin_r, m4/getlogin_r.m4: New files.
63698         * lib/getlogin_r.c, getlogin_r.h: New files.
63699
63700 2005-05-25  Bruno Haible  <bruno@clisp.org>
63701             Derek Price  <derek@ximbiot.com>
63702
63703         * lib/getlogin_r.h: Simplify API documentation.
63704
63705 2005-05-23  Derek Price  <derek@ximbiot.com>
63706
63707         * modules/minmax (Files): Add m4/minmax.m4.
63708         (configure.ac): Add gl_MINMAX.
63709
63710 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
63711
63712         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
63713         so that unistd-safer.h (GPL'ed code) need not be included.
63714
63715 2005-05-22  Bruno Haible  <bruno@clisp.org>
63716
63717         * m4/minmax.m4: New file.
63718         Based on a patch by Derek Price <derek@ximbiot.com>.
63719
63720 2005-05-22  Bruno Haible  <bruno@clisp.org>
63721
63722         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
63723         (INT64_MIN): Fix definition.
63724         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
63725
63726         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
63727         NEED_SIGNED_INT_TYPES.
63728
63729         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
63730         HAVE_SYSTEM_INTTYPES.
63731
63732 2005-05-22  Bruno Haible  <bruno@clisp.org>
63733
63734         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
63735         Also include <sys/param.h> if it defines MIN, MAX.
63736         Based on a patch by Derek Price <derek@ximbiot.com>.
63737
63738 2005-05-21  Jim Meyering  <jim@meyering.net>
63739
63740         * modules/fts (Files): Add m4/inttypes-pri.m4.
63741         (Depends-on): Add lstat and remove gettext.  Alphabetize.
63742
63743 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
63744
63745         New fts module.
63746         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
63747         (setup_dir, free_dir): New functions.
63748         (enter_dir, leave_dir): Define trivial
63749         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
63750         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
63751         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
63752         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
63753         Move to fts-cycle.c.
63754         (fts_open): Use setup_dir.
63755         (fts_close): Use free_dir.
63756         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
63757         This adds a label and some gotos, but the alternatives were messier.
63758         Check for memory allocation failure when entering a dir.
63759         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
63760         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
63761         (FTS): New member fts_cycle, that is a union that contains the
63762         old active_dir_ht and cycle_state.  All uses changed to mention
63763         fts_cycle.ht and fts_cycle.state.
63764         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
63765         fts.c, with the following changes:
63766         (setup_dir, free_dir): New functions.
63767         (enter_dir): Now returns bool.  Return true if successful, false
63768         if memory exhausted.  All callers changed.
63769         Do not bother partly cleaning up on
63770         memory allocation failure; that is free_dir's job.
63771         However, free ad if hash_insert fails, to avoid memory leak.
63772         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
63773         fts->fts_options to see which union member to use.
63774
63775 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
63776
63777         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
63778         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
63779
63780 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
63781
63782         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
63783
63784 2005-05-20  Jim Meyering  <jim@meyering.net>
63785
63786         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
63787         Now a macro, to pacify GCC.
63788
63789 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
63790
63791         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
63792         of -1.
63793
63794 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
63795
63796         * lib/chown.c (rpl_chown): Return -1 on failure.
63797
63798 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
63799
63800         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
63801         Don't check for stddef.h.
63802         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
63803         don't use its results.
63804         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
63805         since we include them unconditionally.  Don't require
63806         AM_STDBOOL_H, since stdbool is a prerequisite.
63807         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
63808         since we assume C89 or better.
63809         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
63810         as we don't use their results.
63811         Don't check for fchdir, memmove, memset, strrchr, as we use
63812         them unconditionally.
63813         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
63814         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
63815
63816 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
63817
63818         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
63819         Include <stddef.h> unconditionally, since we assume C89 now.
63820         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
63821         * lib/fts.c: Include fts_.h first, to check interface.
63822         Do not include intprops.h; no longer needed.
63823         Include cycle-check.h and hash.h, since fts_.h no longer does.
63824         Remove unnecessary casts of closedir to void.
63825         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
63826         decide whether to decrement nlinks.
63827         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
63828         (FTS): Use struct hash_table * instead of Hash_table, so that
63829         we no longer need to include hash.h here.
63830
63831 2005-05-18  Jim Meyering  <jim@meyering.net>
63832
63833         * modules/dirfd (License): Change to LGPL.  Most of the code
63834         is already in the public domain.
63835
63836 2005-05-18  Jim Meyering  <jim@meyering.net>
63837
63838         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
63839         Reported by Yoann Vandoorselaere.
63840
63841 2005-05-17  Jim Meyering  <jim@meyering.net>
63842
63843         * m4/fts.m4: New file, from coreutils.
63844
63845 2005-05-17  Jim Meyering  <jim@meyering.net>
63846
63847         * lib/fts.c, lib/fts_.h: New files, from coreutils.
63848
63849 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63850
63851         Sync from coreutils.
63852         * m4/unlinkdir.m4: New file.
63853
63854 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63855
63856         Sync from coreutils.
63857         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
63858         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
63859         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
63860         White space changes only.
63861         * lib/makepath.c (make_path): Port to hosts where leading "//" is
63862         special.
63863         * lib/yesno.c: Include getline.h, not ctype.h.
63864         (yesno): Don't remove leading white space; POSIX doesn't allow it.
63865         Use getline to remove arbitrary restriction on response length.
63866
63867 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63868
63869         * config/srclist-update: Spell out "Street" in FSF postal
63870         mail address; this is the style the FSF seems to prefer.
63871
63872         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
63873         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
63874         this updates FSF postal mail address.
63875
63876         Sync from coreutils.
63877         * modules/unlinkdir: New file.
63878         * modules/yesno (Depends-on): Add getline.
63879         * MODULES.html.sh (File system functions): Add unlinkdir.
63880
63881 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63882
63883         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
63884         lib/strsep.h:
63885         Change the initial comment to refer to GPL, not LGPL.
63886         gnulib-tool will change it to LGPL as needed.
63887
63888         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
63889         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
63890         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
63891         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
63892         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
63893         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
63894         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
63895         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
63896         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
63897         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
63898         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
63899         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
63900         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
63901         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
63902         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
63903         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
63904         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
63905         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
63906         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
63907         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
63908         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
63909         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
63910         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
63911         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
63912         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
63913         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
63914         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
63915         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
63916         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
63917         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
63918         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
63919         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
63920         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
63921         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
63922         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
63923         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
63924         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
63925         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
63926         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
63927         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
63928         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
63929         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
63930         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
63931         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
63932         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
63933         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
63934         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
63935         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
63936         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
63937         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
63938         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
63939         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
63940         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
63941         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
63942         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
63943         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
63944         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
63945         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
63946         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
63947         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
63948         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
63949         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
63950         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
63951         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
63952         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
63953         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
63954         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
63955         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
63956         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
63957         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
63958         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
63959         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
63960         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
63961         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
63962         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
63963         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
63964         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
63965         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
63966         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
63967         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
63968         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
63969         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
63970         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
63971         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
63972         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
63973         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
63974         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
63975         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
63976         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
63977         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
63978         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
63979         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
63980         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
63981         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
63982         lib/yesno.c, lib/yesno.h:
63983         Update FSF postal mail address.
63984
63985 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63986
63987         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
63988         tests/test-memmem.c, tests/test-stpncpy.c:
63989         Update FSF postal mail address.
63990
63991 2005-05-13  Bruno Haible  <bruno@clisp.org>
63992
63993         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
63994         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
63995         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
63996         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
63997         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
63998         Add support for 64-bit integers in the MSVC compiler.
63999
64000 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64001
64002         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
64003
64004 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
64005
64006         * gnulib-tool (func_import): Sort and uniquify recommended includes.
64007
64008 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
64009
64010         * doc/getdate.texi (General date syntax): Don't say that date
64011         date --iso-8601=ns generates acceptable dates; it doesn't yet.
64012         Problem reported by Nic Ferrier.
64013
64014 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64015
64016         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
64017         specified in ai_socktype. Fix invalid ai_protocol
64018         check. ai_protocol is usually set to 0 or depending on
64019         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
64020         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
64021         ai_socktype / ai_protocol in the returned addrinfo structure.
64022
64023 2005-05-10  Simon Josefsson  <jas@extundo.com>
64024
64025         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
64026         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64027
64028 2005-05-10  Karl Berry  <karl@gnu.org>
64029
64030         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
64031         (from http://www.gnu.org/licenses).
64032         * doc/COPYING.LIB: also rename to COPYING.LESSER.
64033         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
64034         fdl.texi suffices.
64035
64036 2005-05-10  Karl Berry  <karl@gnu.org>
64037
64038         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
64039         (COPYING.DOC): remove.
64040
64041         * config/srclist-update: new FSF address.
64042
64043 2005-05-10  Derek Price  <derek@ximbiot.com>
64044
64045         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
64046         possible.
64047
64048 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64049             Bruno Haible  <bruno@clisp.org>
64050
64051         * modules/inet_ntop: New file.
64052         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64053         inet_ntop.
64054
64055 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64056             Bruno Haible  <bruno@clisp.org>
64057
64058         * m4/inet_ntop.m4: New file.
64059
64060 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64061             Bruno Haible  <bruno@clisp.org>
64062
64063         * lib/inet_ntop.h: New file.
64064         * lib/inet_ntop.c: New file, from glibc with modifications.
64065
64066 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
64067
64068         * modules/time_r (License): Change to LGPL.
64069         * modules/extensions (License): Change to LGPL.  Actually,
64070         the license is more permissive than that, but currently gnulib-tool
64071         doesn't know how to handle more-permissive licenses.
64072
64073         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
64074         Problem reported by Dave Love.
64075
64076 2005-05-08  Jim Meyering  <jim@meyering.net>
64077
64078         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
64079         blank.
64080
64081 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
64082
64083         * modules/argmatch (Depends-on): Add stdbool.
64084         * modules/backupfile (Depends-on): Likewise.
64085         * modules/chdir-long (Depends-on): Likewise.
64086         * modules/closeout (Depends-on): Likewise.
64087         * modules/cycle-check (Depends-on): Likewise.
64088         * modules/dirname (Depends-on): Likewise.
64089         * modules/fnmatch (Depends-on): Likewise.
64090         * modules/fsusage (Depends-on): Likewise.
64091         * modules/fwriteerror (Depends-on): Likewise.
64092         * modules/getcwd (Depends-on): Likewise.
64093         * modules/getloadavg (Depends-on): Likewise.
64094         * modules/hard-locale (Depends-on): Likewise.
64095         * modules/makepath (Depends-on): Likewise.
64096         * modules/mountlist (Depends-on): Likewise.
64097         * modules/nanosleep (Depends-on): Likewise.
64098         * modules/posixtm (Depends-on): Likewise.
64099         * modules/quotearg (Depends-on): Likewise.
64100         * modules/readtokens (Depends-on): Likewise.
64101         * modules/readtokens0 (Depends-on): Likewise.
64102         * modules/readutmp (Depends-on): Likewise.
64103         * modules/save-cwd (Depends-on): Likewise.
64104         * modules/strftime (Depends-on): Likewise.
64105         * modules/userspec (Depends-on): Likewise.
64106         * modules/utimecmp (Depends-on): Likewise.
64107         * modules/xgetcwd (Depends-on): Likewise.
64108         * modules/xnanosleep (Depends-on): Likewise.
64109         * modules/xstrtod (Depends-on): Likewise.
64110         * modules/yesno (Depends-on): Likewise.
64111
64112 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
64113
64114         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
64115         needless checks.
64116
64117 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64118
64119         Merge from coreutils.  Among other things,
64120         add bulletproofing for cases where stdin, stdout, or stderr are closed.
64121         * lib/fd-safer.c: New file.
64122         * lib/fcntl-safer.h, open-safer.c: Remove.
64123         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
64124         * lib/dup-safer.c: Include unistd-safer.h first.
64125         Don't include errno.h.
64126         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
64127         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
64128         * lib/file-type.c: Rely on file-type.h change.
64129         * lib/getloadavg.c: Include unistd-safer.h.
64130         (getloadavg): Use safer open.
64131         * lib/getusershell.c: Include "stdio-safer.h".
64132         (getusershell): Use safer fopen.
64133         * lib/long-options.c (long_options): Use NULL rather than 0.
64134         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
64135         'free'.
64136         * lib/modechange.c: Likewise.
64137         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
64138         (MODE_DONE): New constant.
64139         (struct mode_change): Remove 'next' member.
64140         (make_node_op_equals): New function; like the old one of the
64141         same name, except it allocates an array.
64142         (mode_compile, mode_create_from_ref): Use it.
64143         (mode_compile): Allocate result as an array, not a linked list.
64144         Parse octal string ourself, so that we catch mistakes like "+0".
64145         (mode_adjust): Arg is an array, not a linked list.
64146         * lib/modechange.c: Include stat-macros.h, xalloc.h.
64147         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
64148         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
64149         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
64150         Remove.  This is now stat-macros.h's job.
64151         (talloc): Remove.  All callers replaced by xalloc, so that
64152         our invokers don't have to worry about reporting memory failures.
64153         (make_node_op_equals): Remove.
64154         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
64155         New constants.
64156         (struct mode_change): Moved here from modechange.h.
64157         (mode_append_entry): Remove.
64158         (mode_compile): Remove MASKED_OPS arg, since it encouraged
64159         apps to have incorrect behavior.  Use simpler algorithm for head
64160         and tail.  Don't futz with umask; that's now the job of mode_adjust.
64161         Detect more invalid usages rather than having somewhat-random behavior.
64162         Don't insert an "a=" action, as that leads to incorrect behavior.
64163         (mode_compile, mode_create_from_ref): Return NULL on error instead
64164         of an enum, since now there's only one way to have an error.  All
64165         callers changed.
64166         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
64167         at the correct time.  Simplify calculation of "+u" and its ilk.
64168         Don't mishandle "+X".
64169         (mode_free): Remove "register" and localize decls.
64170         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
64171         (struct mode_change): Move to modechange.c; callers don't
64172         need to see this stuff.
64173         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
64174         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
64175         (mode_change, mode_adjust): Reflect the new signatures noted above.
64176         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
64177         that might redefine system include files.
64178         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
64179         (my_usleep): Use NULL rather than (void *) 0.
64180         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
64181         Use siginterrupt to specify that system calls should be interrupted.
64182         (rpl_nanosleep): Move initialization of suspended closer to call of
64183         my_usleep.
64184         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
64185         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
64186         (desirable_utmp_entry): New function.
64187         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
64188         using x2nrealloc, to simplify logic.
64189         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
64190         size calculation.  Do not assume utmp file is a regular file.
64191         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
64192         (READ_UTMP_CHECK_PIDS): New constant.
64193         * lib/save-cwd.c: Include unistd-safer.h.
64194         (save_cwd): Use fd_safer.
64195         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
64196         [!_LIBC] Include "stat-macros.h" instead.
64197         * lib/unistd-safer.h (fd_safer): New decl.
64198
64199 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64200
64201         * modules/getloadavg (Depends-on): Add unistd-safer.
64202         * modules/getusershell (Depends-on): Add stdio-safer.
64203         * modules/lstat (Depends-on): Remove xalloc.
64204         * modules/mkstemp (Depends-on): Add stat-macros.
64205         * modules/modechange (Depends-on): Remove xstrtol.
64206         Add stat-macros, xalloc.
64207         * modules/save-cwd (Depends-on): Add unistd-safer.
64208         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
64209         * modules/unistd-safer (Files): Add lib/fd-safer.c
64210         (Makefile.am): Remove lib_SOURCES.
64211
64212         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
64213         Remove fcntl-safer; unistd-safer supersedes it.
64214
64215 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64216
64217         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
64218         AC_HEADER_STAT.
64219         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
64220         (gl_PREREQ_CHOWN): Remove.
64221         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
64222         it.  Don't require AC_HEADER_STAT.
64223         (gl_PREREQ_LSTAT): Remove.
64224         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
64225         Don't require AC_HEADER_STAT.
64226         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
64227         (gl_PREREQ_RMDIR): Remove.
64228         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
64229         mention stat-macros.h or AC_HEADER_STAT, since we'll make
64230         the stat-macros module a prerequisite.
64231         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
64232         * m4/filemode.m4 (gl_FILEMODE): Likewise.
64233         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
64234         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
64235         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
64236         variable names.
64237         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
64238         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
64239         variable prefixes.
64240         * m4/fcntl-safer.m4: Remove.
64241         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
64242         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
64243         Invoke gl_PREREQ_FD_SAFER.
64244         (gl_PREREQ_FD_SAFER): New macro.
64245         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
64246         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
64247         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
64248         Remove duplicate call to AC_LIBOBJ(readutmp).
64249         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
64250
64251         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
64252         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
64253
64254 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64255
64256         * MODULES.html.sh (Misc): Add byteswap.
64257
64258 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
64259
64260         * modules/getcwd (Depends-on): Add extensions.
64261         * modules/openat (Depends-on): Likewise.
64262
64263 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
64264
64265         * modules/byteswap: New file.
64266
64267 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
64268
64269         * m4/byteswap.m4: New file.
64270
64271 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
64272
64273         * lib/byteswap_.h: New file.
64274
64275 2005-04-25  Karl Berry  <karl@gnu.org>
64276
64277         * m4/gettext.m4: Update from GNU gettext 0.14.4.
64278
64279 2005-04-25  Albert Chin  <china@thewrittenword.com>
64280
64281         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
64282         Toolkit C bug.
64283
64284 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
64285
64286         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
64287         (func_ln_if_changed) Remove forcibly for no error message
64288         in case file does not exist.
64289
64290 2005-04-19  Simon Josefsson  <jas@extundo.com>
64291
64292         * gnulib-tool (Options): Make --symlink mean --symbolic.
64293
64294 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
64295
64296         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
64297
64298 2005-04-16  Simon Josefsson  <jas@extundo.com>
64299
64300         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
64301
64302 2005-04-15  Simon Josefsson  <jas@extundo.com>
64303
64304         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
64305
64306 2005-04-15  Simon Josefsson  <jas@extundo.com>
64307
64308         * gnulib-tool: Rename --symlink to --symbolic.
64309
64310 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
64311
64312         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
64313         symbolic links to files instead of copying/moving.  Add --aux-dir,
64314         specifying directory relative --dir where auxiliary build tools
64315         are placed.
64316
64317 2005-04-14  Bruno Haible  <bruno@clisp.org>
64318
64319         * modules/allocsa (License): Change to LGPL.
64320         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
64321
64322 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64323
64324         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
64325         that "UTC +1 second" continues to work.  Problem reported
64326         by Dmitry V. Levin.
64327         (relunit_snumber): New rule.
64328         (relunit): Use it.
64329
64330 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
64331
64332         * lib/getdate.y (universal_time_zone_table): New constant.
64333         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
64334         universal_time_zone_table.
64335         (lookup_zone): Prefer universal_time_zone_table to
64336         local_time_zone_table, so that "GMT" time stamps are allowed in
64337         London during the summer.  Problem reported by Ian Abbott.
64338
64339 2005-04-12  Jim Meyering  <jim@meyering.net>
64340
64341         * lib/human.c (humblock): Set *options even when returning due to
64342         xstrtoumax conversion failure.  Thanks to a used-uninitialized
64343         warning from gcc-4.
64344
64345 2005-04-09  Jim Meyering  <jim@meyering.net>
64346
64347         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
64348         -Wuninitialized: initialize tm0.tm_year.
64349
64350 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
64351
64352         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
64353         count, since there's no maximum.  All uses changed.
64354         Add member dsts_seen.
64355         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
64356         not being INT_MAX.
64357         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
64358         Use pc_rels_seen to decide whther a date is absolute.
64359
64360         * lib/getdate.y (number): Don't overwrite year.
64361         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
64362         check.
64363
64364 2005-04-02  Simon Josefsson  <jas@extundo.com>
64365
64366         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
64367         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
64368
64369 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
64370
64371         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
64372         where no absolute path name can be longer than PATH_MAX.
64373
64374 2005-03-27  Jim Meyering  <jim@meyering.net>
64375
64376         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
64377
64378 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
64379
64380         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
64381         "one's complement" -> "ones' complement" in comment, as per Knuth.
64382         "value of type" -> "type or expression" in comment.
64383         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
64384
64385 2005-03-26  Jim Meyering  <jim@meyering.net>
64386
64387         Comment nits.
64388         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
64389         Correct typos: s/or/of/.
64390
64391 2005-03-26  Jim Meyering  <jim@meyering.net>
64392
64393         * modules/check-include-files: Move to ../ and rename to...
64394         * check-module: ...this.
64395
64396 2005-03-25  Jim Meyering  <jim@meyering.net>
64397
64398         * modules/xvasprintf (Files): Add xalloc.h.
64399
64400 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
64401
64402         * modules/gettext (Files): config/config.rpath ->
64403         build-aux/config.rpath
64404         * modules/iconv (Files): Likewise.
64405         Problem reported by Oskar Liljeblad.
64406
64407 2005-03-23  Jim Meyering  <jim@meyering.net>
64408
64409         * modules/check-include-files: New script to check for
64410         missing dependencies, multiple includes, etc.
64411
64412         * modules/c-strtold (Depends-on): Add xalloc.
64413         * modules/c-strtod (Depends-on): Add xalloc.
64414         * modules/hash (Depends-on): Add xalloc.
64415         (Files): Remove lib/xalloc.h.
64416
64417         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
64418         * modules/userspec (Files): Add lib/inttostr.h.
64419
64420 2005-03-23  Jim Meyering  <jim@meyering.net>
64421
64422         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
64423
64424 2005-03-22  Jim Meyering  <jim@meyering.net>
64425
64426         * modules/stat-macros: New module.
64427         * modules/canonicalize, modules/euidaccess, modules/file-type,
64428         * modules/filemode, modules/lchown, modules/makepath,
64429         * modules/rmdir, modules/stat: Depend on new stat-macros module
64430         rather than listing lib/stat-macros.h manually.
64431         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
64432
64433 2005-03-22  Jim Meyering  <jim@meyering.net>
64434
64435         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
64436
64437 2005-03-22  Bruno Haible  <bruno@clisp.org>
64438
64439         * config/srclist.txt: Replace target directory 'config' with
64440         'build-aux'.
64441         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
64442         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
64443         ../build-aux/.
64444
64445 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
64446
64447         * modules/chdir-long (Depends-on): Add mempcpy.
64448
64449         * modules/acl, modules/backupfile, modules/c-strtod,
64450         modules/c-strtold, modules/canon-host, modules/canonicalize,
64451         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
64452         modules/exclude, modules/exitfail, modules/file-type,
64453         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
64454         modules/getdate, modules/getline, modules/getpagesize,
64455         modules/getpass, modules/getugroups, modules/group-member,
64456         modules/hard-locale, modules/hash, modules/human, modules/idcache,
64457         modules/inttostr, modules/long-options, modules/makepath,
64458         modules/md5, modules/memcasecmp, modules/memcoll,
64459         modules/modechange, modules/mountlist, modules/path-concat,
64460         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
64461         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
64462         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
64463         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
64464         modules/strftime, modules/strndup, modules/strverscmp,
64465         modules/timespec, modules/unlocked-io, modules/userspec,
64466         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
64467         modules/yesno:
64468         Remove lib_SOURCES line from Makefile.am section, as this is now
64469         done automatically by the corresponding Autoconf macro.
64470
64471 2005-03-21  Jim Meyering  <jim@meyering.net>
64472
64473         Changes imported from coreutils.
64474
64475         * lib/cycle-check.c: Don't include xalloc.h.
64476
64477         * lib/path-concat.c: Don't include assert.h.
64478         (path_concat): Remove assertion that would have triggered
64479         for ABASE starting with more than one slash.
64480         Reported by Andreas Schwab.
64481
64482         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
64483         properly when ABASE is an absolute file name.
64484         Correct the description of this function.
64485         Include <assert.h>.
64486         Add an assertion and a test driver.
64487         This fixes a bug introduced on 2004-07-02.
64488         Andreas Schwab reported the resulting failure of cp --parents:
64489         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
64490
64491 2005-03-21  Jim Meyering  <jim@meyering.net>
64492
64493         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
64494         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
64495
64496 2005-03-21  Jim Meyering  <jim@meyering.net>
64497         and  Paul Eggert  <eggert@cs.ucla.edu>
64498
64499         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
64500         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
64501         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
64502         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
64503         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
64504         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
64505         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
64506         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
64507         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
64508         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
64509         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
64510         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
64511         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
64512         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
64513         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
64514         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
64515         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
64516         for these modules.
64517
64518 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
64519
64520         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
64521         (which shouldn't happen), generate nothing instead of returning 0
64522         immediately, so that nstrftime (NULL, ...) doesn't return 0.
64523
64524 2005-03-16  Bruno Haible  <bruno@clisp.org>
64525
64526         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
64527         HAVE_LONGLONG_64BIT.
64528
64529 2005-03-16  Bruno Haible  <bruno@clisp.org>
64530
64531         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
64532         HAVE_LONGLONG_64BIT.
64533
64534 2005-03-16  Bruno Haible  <bruno@clisp.org>
64535
64536         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
64537         HAVE_LONGLONG_64BIT.
64538
64539 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
64540
64541         * lib/strftime.c (my_strftime): Prepend space to format so that we can
64542         reliably distinguish strftime failure from empty output on POSIX
64543         hosts.
64544
64545 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
64546
64547         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
64548         (iconv_string): Don't guess a size-zero buffer, as that might cause
64549         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
64550         result would be 'too large', where 'too large' is (heuristically)
64551         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
64552         overflow concerns.  This will prevent some unwanted malloc failures
64553         when the inputs are very large.
64554
64555 2005-03-15  Karl Berry  <karl@gnu.org>
64556
64557         * config/srclist.txt (config.rpath): from gettext.
64558         * config/config.rpath: update.
64559
64560 2005-03-15  Bruno Haible  <bruno@clisp.org>
64561
64562         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
64563         to 'negate'.
64564
64565         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
64566         variable.
64567
64568         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
64569         results.
64570
64571 2005-03-14  Simon Josefsson  <jas@extundo.com>
64572
64573         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
64574         <fx@gnu.org>.
64575
64576 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
64577
64578         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
64579         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
64580         intprops.h.
64581         * lib/strtol.c: Likewise.
64582
64583 2005-03-14  Jim Meyering  <jim@meyering.net>
64584
64585         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
64586         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
64587         to be nonzero so that we (and caller) can detect the difference
64588         between a valid zero-length expansion and an error return, even
64589         when the underlying strftime fails before writing anything into
64590         that location.
64591
64592 2005-03-14  Bruno Haible  <bruno@clisp.org>
64593
64594         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
64595         Update from GNU gettext 0.14.3.
64596
64597 2005-03-10  Jim Meyering  <jim@meyering.net>
64598
64599         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
64600
64601 2005-03-10  Jim Meyering  <jim@meyering.net>
64602
64603         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
64604         so that this module works on systems without fchdir.
64605
64606 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
64607
64608         Factor int-properties macros into a single file, except for
64609         glibc-related files.
64610         * lib/intprops.h: New file.
64611         * lib/getloadavg.c: Include it instead of limits.h.
64612         (INT_STRLEN_BOUND): Remove.
64613         * lib/human.c: Include intprops.h.
64614         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
64615         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
64616         302/1000.
64617         * lib/inttostr.h: Include intprops.h instead of limits.h.
64618         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
64619         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
64620         for consistency with intprops.h.
64621         (time_t_is_integer, twos_complement_arithmetic): Use them.
64622         * lib/sig2str.h: Include <signal.h>, intprops.h.
64623         (INT_STRLEN_BOUND): Remove.
64624         * lib/strftime.c (TYPE_SIGNED): Remove.
64625         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
64626         * lib/strtol.c: Adjust comments to match intprops.h.
64627         * lib/userspec.c: Include intprops.h.
64628         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
64629         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
64630         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
64631         instead of rolling our own expressions.
64632         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
64633
64634         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
64635         instead of int.
64636         (my_strftime): Do not mishandle years close to INT_MAX, by doing
64637         the right thing even if adding 1900 would overflow.  Similarly
64638         for tm_mon + 1 and tm_yday + 1.
64639         Make %Y always equivalent to %C%y, and similarly for %G and %g.
64640         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
64641         (DO_SIGNED_NUMBER): New macro.
64642         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
64643
64644 2005-03-07  Bruno Haible  <bruno@clisp.org>
64645
64646         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
64647
64648 2005-03-07  Bruno Haible  <bruno@clisp.org>
64649
64650         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
64651
64652 2005-03-04  Derek R. Price  <derek@ximbiot.com>
64653
64654         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
64655         (func_import): Only replace files via --import when they have actually
64656         changed.
64657
64658 2005-03-03  Derek R. Price  <derek@ximbiot.com>
64659
64660         * m4/mmap-anon.m4: New file.
64661         * m4/pagealign_alloc.m4: New file.
64662
64663 2005-03-03  Derek R. Price  <derek@ximbiot.com>
64664             Bruno Haible  <bruno@clisp.org>
64665
64666         * modules/pagealign_alloc: New file.
64667         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
64668
64669 2005-03-03  Derek R. Price  <derek@ximbiot.com>
64670             Bruno Haible  <bruno@clisp.org>
64671
64672         * lib/pagealign_alloc.h: New file.
64673         * lib/pagealign_alloc.c: New file.
64674
64675 2005-03-03  Bruno Haible  <bruno@clisp.org>
64676
64677         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
64678         Use an all-permissive copyright notice, recommended by RMS.
64679
64680 2005-03-02  Bruno Haible  <bruno@clisp.org>
64681
64682         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
64683         of AIX, the replacement has to be done only after <string.h> is
64684         included, therefore not in config.h. stpncpy.h does the replacement,
64685         and stpncpy.c uses it.
64686
64687 2005-03-02  Bruno Haible  <bruno@clisp.org>
64688
64689         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
64690         stpncpy.c uses it.
64691
64692 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64693
64694         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
64695         The workaround isn't strictly needed for POSIX conformance, and
64696         it's too much of a pain to configure and maintain.  We'll ask
64697         people to fix their kernels instead.
64698         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
64699         (NANOSLEEP_BUG_WORKAROUND): Remove.
64700         (xnanosleep): Remove the workaround.
64701
64702 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64703
64704         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
64705         Reported by Derek Price.
64706         (Include): Add "timespec.h".
64707
64708         * modules/xnanosleep (Depends-on): Remove gethrxtime.
64709
64710 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64711
64712         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
64713         to detect nanosleep bug.
64714
64715 2005-03-01  Bruno Haible  <bruno@clisp.org>
64716
64717         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
64718
64719 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
64720
64721         * modules/gethrxtime: New file.
64722         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
64723         (Depends-on): Add gethrxtime.
64724         (configure.ac): Add gl_XNANOSLEEP.
64725         (Makefile.am): Remove lib_SOURCES line.
64726
64727 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
64728
64729         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
64730         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
64731
64732 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
64733
64734         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
64735         * lib/timespec.h (gettime): Return void, since it always
64736         succeeds now.  All uses changed.
64737         * lib/gettime.c (gettime) Likewise.
64738         [HAVE_NANOTIME]: Prefer nanotime.
64739         Assume gettimeofday succeeds, as POSIX requires.
64740         Assime time () succeeds, since other code already does.
64741         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
64742         (timespec_subtract): Remove.
64743         (NANOSLEEP_BUG_WORKAROUND): New constant.
64744         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
64745         things considerably.  Use it only on GNU/Linux hosts, since the
64746         workaround shouldn't be needed elsewhere.
64747
64748 2005-02-24  Bruno Haible  <bruno@clisp.org>
64749
64750         * modules/gettext (Files): Add m4/glibc2.m4.
64751
64752 2005-02-24  Bruno Haible  <bruno@clisp.org>
64753
64754         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
64755         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
64756         * m4/progtest.m4:
64757         Update from GNU gettext 0.14.2.
64758         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
64759
64760 2005-02-24  Bruno Haible  <bruno@clisp.org>
64761
64762         * lib/localcharset.c: Update from GNU gettext 0.14.2.
64763         * lib/config.charset: Update from GNU gettext 0.14.2.
64764
64765 2005-02-24  Bruno Haible  <bruno@clisp.org>
64766
64767         * lib/gettext.h: Update from GNU gettext 0.14.2.
64768
64769 2005-02-23  Simon Josefsson  <jas@extundo.com>
64770
64771         * m4/iconvme.m4: New file.
64772
64773 2005-02-23  Jim Meyering  <jim@meyering.net>
64774
64775         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
64776         change.
64777         Thanks to Bruno Haible for catching it.
64778
64779 2005-02-22  Simon Josefsson  <jas@extundo.com>
64780
64781         * modules/iconvme: New file.
64782
64783         * MODULES.html.sh: Add iconvme.
64784
64785 2005-02-22  Simon Josefsson  <jas@extundo.com>
64786
64787         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
64788
64789 2005-02-22  Simon Josefsson  <jas@extundo.com>
64790
64791         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
64792
64793 2005-02-22  Jim Meyering  <jim@meyering.net>
64794
64795         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
64796         s/ifndef/ifdef/.
64797
64798 2005-02-20  Neil Conway  <neilc@samurai.com>
64799
64800         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
64801         returned by OSX/Darwin if the specified buffer is not large
64802         enough for the hostname.
64803
64804 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64805
64806         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
64807         pass it to _help, otherwise the latter coredumps trying to
64808         dereference state.root_argp.
64809
64810 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64811
64812         * modules/chdir-long (Depends-on): Add memrchr.
64813         * modules/memrchr (Files): Add lib/memrchr.h.
64814         (Include): "memrchr.h".
64815
64816 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64817
64818         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
64819
64820 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64821
64822         * lib/memrchr.h: New file.
64823         * lib/chdir-long.c: Include it.
64824         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
64825         Don't bother including stddef.h.
64826
64827 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64828
64829         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
64830         inclusion.
64831         Include <sys/types.h>, for dev_t.
64832         (ME_DUMMY, ME_REMOTE): Move from here....
64833         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
64834         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
64835         Dmitry V. Levin.
64836         Include mountlist.h first, to test the interface.
64837
64838 2005-01-29  Bruno Haible  <bruno@clisp.org>
64839
64840         * lib/progname.c (program_name): Initialize.
64841         Needed when linking statically on MacOS X.
64842
64843 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64844
64845         Sync from coreutils.
64846         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
64847         (Depends-on): Add c-strtod.
64848         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
64849
64850 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64851
64852         Sync from coreutils.
64853         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
64854
64855         Remove files that are specific to coreutils.
64856         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
64857
64858 2005-01-28  Bruno Haible  <bruno@clisp.org>
64859
64860         * modules/javacomp: New file.
64861         * MODULES.html.sh (Java): Add javacomp.
64862
64863 2005-01-28  Bruno Haible  <bruno@clisp.org>
64864
64865         * m4/javacomp.m4: New file, from GNU gettext.
64866
64867 2005-01-28  Bruno Haible  <bruno@clisp.org>
64868
64869         * lib/javacomp.sh.in: New file, from GNU gettext.
64870         * lib/javacomp.h: New file, from GNU gettext.
64871         * lib/javacomp.c: New file, from GNU gettext.
64872
64873 2005-01-26  Simon Josefsson  <jas@extundo.com>
64874
64875         * lib/gai_strerror.c: Use GPL in header.
64876
64877 2005-01-26  Bruno Haible  <bruno@clisp.org>
64878
64879         * modules/javaexec: New file.
64880         * MODULES.html.sh (Java): Add javaexec.
64881
64882 2005-01-26  Bruno Haible  <bruno@clisp.org>
64883
64884         * m4/javaexec.m4: New file, from GNU gettext.
64885
64886 2005-01-26  Bruno Haible  <bruno@clisp.org>
64887
64888         * lib/javaexec.sh.in: New file, from GNU gettext.
64889         * lib/javaexec.h: New file, from GNU gettext.
64890         * lib/javaexec.c: New file, from GNU gettext.
64891
64892 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64893
64894         * modules/lchown (Depends-on): Remove lchown.h
64895
64896 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64897
64898         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
64899         must be defined if the header file was not found, in order
64900         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
64901
64902 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64903
64904         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
64905         initializers for struct pentry_state.
64906         (__argp_error): Check return value of __asprintf
64907         (__argp_failure): Translate error message
64908
64909         * lib/argp-parse.c: Removed braces around the expansion of N_()
64910
64911 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64912
64913         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
64914         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
64915         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
64916         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
64917         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
64918         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
64919         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
64920         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
64921         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
64922         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
64923         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
64924         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
64925         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
64926         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
64927         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
64928         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
64929         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
64930         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
64931         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
64932         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
64933         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
64934         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
64935         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
64936         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
64937         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
64938         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
64939         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
64940         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
64941         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
64942         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
64943         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
64944         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
64945         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
64946         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
64947         xstrtol.m4, xstrtoumax.m4, yesno.m4:
64948         Use an all-permissive copyright notice, recommended by RMS.
64949
64950 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
64951
64952         * modules/chdir-long (Depends-on): Remove mempcpy.
64953
64954 2005-01-21  Jim Meyering  <jim@meyering.net>
64955
64956         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
64957         same value as for Solaris 9.
64958
64959         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
64960         component length.  This included changing the parameter to be
64961         of type `char *' rather than `char const *'.
64962         * lib/chdir-long.h (chdir_long): Update prototype.
64963
64964         * lib/openat.c (fdopendir, fstatat): New functions.
64965         * lib/openat.h: Include headers required for use of DIR and struct
64966         stat.
64967         [AT_SYMLINK_NOFOLLOW]: Define.
64968         (fdopendir, fstatat): Add prototypes.
64969
64970 2005-01-21  Bruno Haible  <bruno@clisp.org>
64971
64972         * modules/classpath: New file.
64973         * MODULES.html.sh (Java): Add classpath.
64974
64975 2005-01-21  Bruno Haible  <bruno@clisp.org>
64976
64977         * lib/classpath.h: New file, from GNU gettext.
64978         * lib/classpath.c: New file, from GNU gettext.
64979
64980 2005-01-20  Simon Josefsson  <jas@extundo.com>
64981
64982         * modules/version-etc-fsf: New file.
64983
64984 2005-01-20  Simon Josefsson  <jas@extundo.com>
64985
64986         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
64987         * lib/version-etc.c: Remove version_etc_copyright.
64988         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
64989         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
64990
64991 2005-01-20  Simon Josefsson  <jas@extundo.com>
64992
64993         * lib/base64.h (isbase64): Add.
64994
64995         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
64996         using a unsigned prototype, don't inline.
64997         (base64_decode): Use it.
64998
64999 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65000
65001         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
65002         it.
65003
65004 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65005
65006         * lib/save-cwd.c (save_cwd): Remove code to support the case
65007         where fchdir is missing or flaky.
65008
65009 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65010
65011         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
65012
65013 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65014
65015         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
65016         AC_LIBSOURCES now does this.
65017         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
65018         with new ullong_max module.
65019
65020 2005-01-19  Bruno Haible  <bruno@clisp.org>
65021
65022         * modules/sh-quote: New file.
65023         * MODULES.html.sh (Executing programs): Add sh-quote.
65024
65025 2005-01-19  Bruno Haible  <bruno@clisp.org>
65026
65027         * lib/sh-quote.h: New file, from GNU gettext.
65028         * lib/sh-quote.c: New file, from GNU gettext.
65029
65030 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65031
65032         Merge from coreutils.
65033         * m4/ullong_max.m4: New file.
65034         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
65035         (gl_MACROS): Assume localeconv exists.
65036
65037 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65038
65039         Merge changes from coreutils, as described below in several
65040         changelogs dated today.
65041
65042         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
65043         (O_DIRECTORY): Remove; not needed here, since "." must be
65044         a directory.  All uses removed.
65045         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
65046         universal on Suns, and we also need to test for IRIX.
65047         Revamp code to use 'if' rather than '#if'.
65048         Avoid unnecessary comparison of cwd->desc to 0.
65049
65050         * lib/utimens.c (futimens): Robustify the previous patch, by checking
65051         for known valid error numbers rather than observed invalid ones.
65052
65053 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65054
65055         * modules/ullong_max: New file.
65056
65057         * modules/chdir-long, modules/openat: New files.
65058         * modules/save-cwd (Depends-on): Depend on chdir-long.
65059         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
65060
65061 2005-01-18  Jim Meyering  <jim@meyering.net>
65062
65063         Merge from coreutils.
65064         * m4/chdir-long.m4, m4/openat.m4: New files.
65065         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
65066         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
65067         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
65068         is sane and DOES follow symlinks.  Besides, testing 20 different
65069         systems found no broken chown implementations.
65070         Prompted by a change in rsync's copy of this macro.
65071         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
65072
65073         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
65074
65075         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
65076         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
65077         NULL-means-set-to-current-time semantics.
65078         Remove temporary file immediately, rather than waiting
65079         for configure's at-exit trap code to do it.
65080
65081 2005-01-18  Jim Meyering  <jim@meyering.net>
65082
65083         * lib/version-etc.c (version_etc_copyright): Update copyright date.
65084
65085         * lib/utimens.c (futimens): Account for the fact that futimes
65086         can also fail with errno == ENOSYS or errno == ENOENT.
65087         Patch from Dmitry V. Levin.
65088
65089         Change the name of the robust chdir function from chdir to chdir_long.
65090         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
65091         (restore_cwd): Use chdir_long, not chdir.
65092         * lib/chdir-long.c: Renamed from chdir.c.
65093         * lib/chdir-long.h: Renamed from chdir.h.
65094         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
65095         Hurd.
65096
65097 2005-01-18  Bruno Haible  <bruno@clisp.org>
65098
65099         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
65100         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
65101         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
65102         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
65103         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
65104         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
65105         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
65106         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
65107         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
65108         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
65109         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
65110         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
65111         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
65112         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
65113         Use an all-permissive copyright notice, recommended by RMS.
65114
65115 2005-01-18  Bob Proulx  <bob@proulx.com>
65116
65117         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
65118         simplify offsetof() macro construct to avoid compile failure with
65119         native HP-UX 11.0 ANSI C compiler.
65120
65121 2005-01-17  Bruno Haible  <bruno@clisp.org>
65122
65123         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
65124         redundant because stpncpy.m4 takes care of it.
65125
65126 2005-01-17  Bruno Haible  <bruno@clisp.org>
65127
65128         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
65129
65130 2005-01-17  Bruno Haible  <bruno@clisp.org>
65131
65132         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
65133         used.
65134
65135 2005-01-17  Bruno Haible  <bruno@clisp.org>
65136
65137         * lib/fwriteerror.h (fwriteerror): Change specification to include
65138         fclose.
65139         * lib/fwriteerror.c: Include <stdbool.h>.
65140         (fwriteerror): At the end, close the file stream. Record whether
65141         stdout was already closed.
65142
65143 2005-01-17  Bruno Haible  <bruno@clisp.org>
65144
65145         * lib/execute.c (environ): Declare if needed.
65146         * lib/pipe.c (environ): Likewise.
65147         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
65148
65149 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65150
65151         * modules/argp: Depend on vsnprintf
65152
65153 2005-01-10  Jim Meyering  <jim@meyering.net>
65154
65155         * modules/closeout (Depends-on): Add atexit.
65156
65157 2005-01-06  Bruno Haible  <bruno@clisp.org>
65158
65159         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
65160
65161 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65162
65163         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
65164         definitions to be after all include files, to avoid collisions.
65165         Problem reported by Bob Proulx.
65166
65167 2005-01-04  Jim Meyering  <jim@meyering.net>
65168
65169         Changes imported from coreutils.
65170         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
65171         as the mkstemp template, use a temporary directory and an
65172         8.3-friendly template to avoid trouble on systems like DJGPP.
65173         Reported by Juan M. Guerrero via Stepan Kasal.
65174         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
65175         close. Remove the temporary directory right away, rather than waiting
65176         for configure's at-exit trap code to do it.
65177         Suggestion from Stepan Kasal.
65178
65179 2005-01-01  Simon Josefsson  <jas@extundo.com>
65180
65181         * gnulib-tool: Print #include directives when --import'ing.
65182
65183 2004-12-28  Simon Josefsson  <jas@extundo.com>
65184
65185         * tests/test-base64.c: Include required header files.  Remove
65186         unused variables.
65187
65188 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65189
65190         * modules/error (Depends-on): Remove gettext.
65191
65192 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65193
65194         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
65195         not needed.  This removes a dependency on the gettext module.
65196         [defined _LIBC]: Do not include <libintl.h>; not needed.
65197
65198 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
65199
65200         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
65201         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
65202
65203 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
65204
65205         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
65206         HAVE_DECL_STRTOLD.
65207
65208 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65209
65210         * modules/getdate (Depends-on): Remove alloca-opt.
65211
65212 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65213
65214         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
65215
65216 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65217
65218         * lib/argp-parse.c: Include <stddef.h>.
65219         (alignof, alignto): New macros.
65220         (parser_init): Don't assume that void * is aligned sufficiently
65221         for struct option.
65222
65223         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
65224         need to extend the stack.
65225         (YYINITDEPTH): New macro, so that the initial stack isn't overly
65226         large.
65227
65228 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65229
65230         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
65231
65232 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
65233
65234         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
65235         (2004-10-24) change.  Apparently this was a false alarm.
65236
65237         * modules/getdate: Depend on alloca-opt, not alloca.
65238
65239 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
65240
65241         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
65242         Remove now-obsolete comment about AIX.
65243         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
65244         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
65245         (YYMAXDEPTH): New macro.
65246
65247 2004-12-18  Simon Josefsson  <jas@extundo.com>
65248
65249         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
65250
65251 2004-12-18  Bruno Haible  <bruno@clisp.org>
65252
65253         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
65254
65255 2004-12-18  Bruno Haible  <bruno@clisp.org>
65256
65257         * lib/fatal-signal.c (fatal_signals): Make non-const.
65258         (init_fatal_signals): New function.
65259         (uninstall_handlers, install_handlers): Ignore signals that were set to
65260         SIG_IGN.
65261         (at_fatal_signal): Call init_fatal_signals.
65262         (init_fatal_signal_set): Likewise. Ignore signals that were set to
65263         SIG_IGN.
65264         Reported by Paul Eggert.
65265
65266 2004-12-18  Bruno Haible  <bruno@clisp.org>
65267
65268         * doc/alloca.texi: New file.
65269         * doc/alloca-opt.texi: New file.
65270
65271 2004-12-17  Jim Meyering  <jim@meyering.net>
65272
65273         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
65274         Otherwise, install-sh could exit with improper exit status when
65275         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
65276
65277 2004-12-16  Simon Josefsson  <jas@extundo.com>
65278
65279         * tests/test-base64.c: Add license.
65280
65281 2004-12-15  Stepan Kasal  <address@hidden>
65282
65283         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
65284
65285 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
65286
65287         * modules/getcwd (Files): Add m4/d-ino.m4.
65288         Suggested by Mark D. Baushke.
65289
65290 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
65291
65292         * lib/getdate.y (textint): New member "negative".
65293         (time_zone_hhmm): New function.
65294         Expect 14 shift-reduce conflicts, not 13.
65295         (o_colon_minutes): New rule.
65296         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
65297         (yylex): Set the "negative" member of signed numbers.
65298
65299 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
65300
65301         * doc/getdate.texi (Time of day items, Time zone items):
65302         Describe new formats +00:00, UTC+00:00.
65303
65304 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65305
65306         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
65307         spurious "-l"s.  Problem reported by Stepan Kasal.
65308
65309 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
65310
65311         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
65312         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
65313
65314 2004-12-04  Simon Josefsson  <jas@extundo.com>
65315
65316         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
65317         Vandoorselaere <yoann@prelude-ids.org>.
65318
65319 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
65320
65321         Changes imported from coreutils.
65322         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
65323         exist.
65324         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
65325
65326 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
65327
65328         Changes imported from coreutils.
65329         * lib/hard-locale.c: Assume <locale.h> exists.
65330         Include "strdup.h".
65331         (GLIBC_VERSION): New macro.
65332         (hard_locale): Assume setlocale exists.
65333         Rewrite to avoid #ifdef.
65334         Use strdup rather than malloc + strcpy.
65335         * lib/human.c: Assume <locale.h> exists.
65336         (human_readable): Assume localeconv exists.
65337
65338 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
65339
65340         * modules/hard-locale (Depends-on): Add strdup.
65341
65342 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65343
65344         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
65345         convert T2, not T.  (Imported from libc.)
65346
65347 2004-11-30  Simon Josefsson  <jas@extundo.com>
65348
65349         * modules/restrict (License): Change to LGPL.
65350
65351 2004-11-30  Simon Josefsson  <jas@extundo.com>
65352
65353         * m4/restrict.m4: Add copyright and copying conditions.
65354
65355 2004-11-30  Simon Josefsson  <jas@extundo.com>
65356
65357         * m4/base64.m4: New file.
65358
65359 2004-11-30  Simon Josefsson  <jas@extundo.com>
65360
65361         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
65362         base64.
65363
65364         * tests/test-base64.c: New file.
65365
65366         * modules/base64: New file.
65367
65368 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
65369
65370         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
65371         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
65372
65373         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
65374
65375 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
65376
65377         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
65378         (__getcwd.c): Don't restore errno; glibc doesn't.
65379         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
65380         first, falling back to our code only if its results look suspicious.
65381         Ensure that the resulting buffer is only as large as necessary.
65382
65383         * lib/readutmp.c: Include readutmp.h first.
65384         Include <errno.h>, since readutmp.h no longer does that.
65385         * lib/readutmp.h: Don't include <errno.h>,
65386         <sys/param.h>, <time.h>; not needed to establish interface.
65387         (errno): Remove decl.
65388         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
65389         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
65390         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
65391
65392 2004-11-28  Simon Josefsson  <jas@extundo.com>
65393
65394         * lib/base64.h, base64.c: New file.
65395
65396 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65397
65398         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
65399
65400 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65401
65402         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
65403         (Depends-on): Remove pathmax, same.  Add mempcpy.
65404         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
65405         (Makefile.am): Append getcwd.h to lib_SOURCES.
65406         (Include): Add getcwd.h.
65407         (Maintainer): Change from Jim Meyering to "all, glibc",
65408         since getdate now uses intended-for-glibc code.
65409         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
65410         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
65411
65412 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
65413
65414         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
65415         HP's ANSI C compiler.
65416         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
65417         Declaring int functions causes warnings on some modern systems and
65418         shouldn't be needed to compile on ancient ones.
65419         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
65420         defined.
65421
65422         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
65423         with the following changes.
65424         (__set_errno): Parenthesize properly.
65425         Include <stdbool.h>.
65426         (MIN, MAX, MATCHING_INO): New macros.
65427         (__getcwd): Define with prototype, not K&R form.
65428         Use heuristics to allocate default buffer on stack if possible.
65429         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
65430         behavior, and to avoid the PATH_MAX limit when computing
65431         ../../../../...
65432         Use MATCHING_INO to compare inode number to file.
65433         Check for arithmetic overflow in size calculations.
65434         Fix bug in reallocation of dot array that caused getcwd to fail
65435         on directories nested deeper than 75.
65436         Be more careful about saving errno on error.
65437         Do not use realloc; use only free+malloc, as this is a bit
65438         more flexible and avoids a needless copy operation.
65439         Do not inspect st_dev and st_ino for symbolic links; POSIX
65440         doesn't specify the latter.
65441         Check for closedir errors.
65442         Avoid needless casts.
65443         Use "#ifdef weak_alias" around weak_alias, to be like other
65444         glibc code.
65445         The following changes to getcwd.c have effect only when used in
65446         gnulib; they have no effect inside glibc proper.
65447         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
65448         as alloca isn't used.
65449         (alloca, __alloca): Likewise.
65450         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
65451         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
65452         unconditionally, as gnulib assumes C89 or better.
65453         Do not include <sys/param.h>.
65454         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
65455         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
65456         better.
65457         (NULL) [!defined NULL]: Remove; we assume C89 or better.
65458         Include <dirent.h> in a way that is compatible with modern Autoconf.
65459         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
65460         New macros, if not already defined.
65461         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
65462         Use "_LIBC", not "defined _LIBC", for consistency.
65463         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
65464         a mempcpy module.
65465         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
65466         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
65467         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
65468         credit only to Jim Meyering and adjust the copyright dates.
65469         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
65470         <stdlib.h>, <unistd.h>, "pathmax.h".
65471         Instead, include "xgetcwd.h" (first) and "getcwd.h".
65472         (INITIAL_BUFFER_SIZE): Remove.
65473         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
65474
65475 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
65476
65477         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
65478         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
65479         Use the _ONCE methods, for efficiency.
65480         Check for fcntl.h.  In test program, include <errno.h>
65481         and <fcntl.h> if available.  Remove old K&R cruft from
65482         test program.  Check for common errors in GNU/Linux,
65483         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
65484         don't do AC_LIBOBJ, as that's getcwd.m4's job.
65485         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
65486         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
65487         name accordingly.
65488         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
65489         accommodate new getcwd.c.
65490         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
65491         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
65492         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
65493         that's all we need now.
65494
65495 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65496
65497         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
65498         argp-parse.c depends on getopt internals, that means we should
65499         always use our getopt, to be on the safe side.
65500         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
65501         order not to spoil the result of an eventual previous invocation
65502         of gl_GETOPT_SUBSTITUTE.
65503
65504 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65505
65506         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
65507         redefinition warnings. To avoid them, include the defines
65508         in `#if !defined __need_getopt ... #endif'. The only place
65509         where __getopt_argv_const is used is in definitions
65510         of getopt_long and getopt_long_only below, which are as well
65511         protected by `#ifndef __need_getopt'.
65512         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
65513         __need_getopt after including <stdio.h> and <unistd.h> These
65514         headers might have defined it.
65515
65516 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
65517
65518         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
65519
65520 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
65521
65522         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
65523         (futimens): New function, which uses futimes if available.
65524         (futimens, utimens): Support timespec==NULL, with same semantics
65525         as utime and utimens.
65526         * lib/utimens.h (futimens): New decl.
65527
65528 2004-11-23  Jim Meyering  <jim@meyering.net>
65529
65530         * lib/getopt_.h: Remove trailing blanks.
65531
65532 2004-11-23  Jim Meyering  <jim@meyering.net>
65533
65534         * lib/__fpending.c: Add comment.
65535
65536 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
65537
65538         * modules/canonicalize (Depends-on): Add xreadlink.
65539         Problem reported by James Youngman.
65540
65541 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65542
65543         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
65544         New macros.
65545         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
65546         optopt): Use them instead of invoking ## directly; otherwise, the
65547         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
65548
65549 2004-11-19  Bruno Haible  <bruno@clisp.org>
65550
65551         * lib/strtok_r.c: Move comments from here...
65552         * lib/strtok_r.h: ... to here.
65553
65554 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65555
65556         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
65557         implementations that mishandle size_t overflow.
65558
65559 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65560
65561         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
65562         might fail.  Problem reported by Yoann Vandoorselaere.
65563         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
65564         implementations that mishandle size_t overflow.
65565
65566 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65567
65568         * modules/canon-host (Depends-on): Add strdup.
65569
65570 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65571
65572         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
65573
65574 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65575
65576         * lib/canon-host.c: Include "strdup.h".
65577         (canon_host): Use getaddrinfo if available, so that IPv6 works.
65578         Use strdup instead of malloc/strcpy to duplicate strings.
65579
65580         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
65581         (human_space_before_unit): New constant.
65582         * lib/human.c (human_readable): Support it.
65583
65584         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
65585         (xgetcwd): Set errno correctly when failing.
65586         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
65587         the failure is actually due to a PATH_MAX problem.
65588
65589         Further getopt changes to make it more likely that glibc will
65590         buy the changes back.
65591         * lib/getopt.c (POSIXLY_CORRECT): New constant.
65592         (getopt): Use it, so to preserve glibc semantic
65593         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
65594         when compiling for libc.
65595         * lib/getopt_.h (__getopt_argv_const): Bring it back.
65596         (getopt_long, getopt_long_only): Use it.
65597
65598         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
65599         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
65600         (getopt): Argv is now char * const *, as per standard.
65601         (_getopt_internal_r, _getopt_internal): Argv is now char **,
65602         not char *__getopt_argv_const *.
65603         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
65604         _getopt_long_only_r): Likewise.
65605         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
65606         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
65607         _getopt_long_r, _getopt_long_only_r): Likewise.
65608         * lib/getopt_.h (__getopt_argv_const): Remove.
65609         (getopt): Argv is now char * const *, as per standard.
65610
65611         * lib/getdate.y (tORDINAL): New token.
65612         (day, relunit): Allow it for relative times.
65613         (relative_time_table): Use tORDINAL for ordinals.
65614
65615 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65616
65617         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
65618         Document that "second" isn't allowed as an ordinal number.
65619
65620 2004-11-16  Jim Meyering  <jim@meyering.net>
65621
65622         * modules/closeout (Depends-on): Add fpending.
65623
65624 2004-11-15  Jim Meyering  <jim@meyering.net>
65625
65626         * lib/closeout.c: Include "__fpending.h" once again.
65627         Include <stdbool.h>.
65628         (close_stdout): Don't fail just because stdout was closed initially,
65629         since some programs don't write to stdout in the normal course of
65630         operation (other than --version and --help), and we don't want this
65631         function to make e.g. `touch file >&-' fail.
65632         But do fail if it was closed and someone has tried to write to it.
65633         E.g., `printf foo >&-' must fail.
65634
65635 2004-11-13  Jim Meyering  <jim@meyering.net>
65636
65637         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
65638
65639 2004-11-12  Simon Josefsson  <jas@extundo.com>
65640
65641         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
65642         small doc fix is still pending.
65643
65644 2004-11-11  Simon Josefsson  <jas@extundo.com>
65645
65646         * modules/strtok_r: New file.
65647
65648         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65649         strtok_r.
65650
65651 2004-11-11  Simon Josefsson  <jas@extundo.com>
65652
65653         * m4/strtok_r.m4: New file.
65654
65655         * m4/getopt.m4: Replace opterr.
65656
65657 2004-11-11  Simon Josefsson  <jas@extundo.com>
65658
65659         * lib/strtok_r.h, strtok_r.c: New file.
65660
65661 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
65662
65663         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
65664         of replacing opterr, getopt, etc.  This should handle the
65665         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
65666
65667 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
65668
65669         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
65670         we can stop lying to compilers about the constness of argv when we
65671         are compiled outside glibc.
65672         (getopt, getopt_long, getopt_long_only): Use it.
65673         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
65674         _getopt_internal, getopt): Likewise.
65675         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
65676         _getopt_long_only_r): Likewise.
65677         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
65678         _getopt_long_r, _getopt_long_only_r): Likewise.
65679
65680         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
65681         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
65682         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
65683         the other external symbols.
65684         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
65685         declaration, since the above renaming now works around collisions.
65686
65687 2004-11-11  Jim Meyering  <jim@meyering.net>
65688
65689         * lib/linebreak.c: Remove trailing blanks.
65690         * lib/alloca_.h: Likewise.
65691         * lib/acosl.c: Likewise.
65692         * lib/euidaccess.c: Likewise.
65693         * lib/allocsa.h: Likewise.
65694
65695 2004-11-10  Simon Josefsson  <jas@extundo.com>
65696
65697         * m4/getaddrinfo.m4: New file.
65698
65699 2004-11-10  Simon Josefsson  <jas@extundo.com>
65700
65701         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
65702
65703 2004-11-10  Simon Josefsson  <jas@extundo.com>
65704
65705         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65706         getaddrinfo.
65707
65708         * modules/getaddrinfo: New file.
65709
65710 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65711
65712         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
65713
65714 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65715
65716         * lib/mktime.c (SHR): New macro, which is a portable
65717         substitute for >> that should work even on Crays.
65718         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
65719         Problem reported by Mark D. Baushke in
65720         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
65721         * lib/getdate.y (SHR): Likewise.
65722         (tm_diff): Use it.
65723         * lib/strftime.c (SHR): Likewise.
65724         (tm_diff): Use it.
65725         * lib/quotearg.c (struct quoting_options): Use unsigned int for
65726         quote_these_too, so that right shifts are well defined.  All uses
65727         changed.
65728
65729 2004-11-10  Jim Meyering  <jim@meyering.net>
65730
65731         Ensure that no close failure goes unreported.
65732         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
65733         return early when it seems there's nothing to flush.
65734         Don't include __fpending.h.
65735
65736 2004-11-10  Jim Meyering  <jim@meyering.net>
65737
65738         * modules/closeout (Depends-on): Remove fpending.
65739
65740 2004-11-10  Jim Meyering  <jim@meyering.net>
65741
65742         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
65743
65744 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65745
65746         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
65747         gl_FUNC_STRFTIME.
65748         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
65749         and AC_REQUIRE when possible, to avoid duplicate checks.
65750         Check for <wchar.h>.
65751
65752 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65753
65754         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
65755
65756 2004-11-09  Bruno Haible  <bruno@clisp.org>
65757
65758         * m4/sockpfaf.m4: New file.
65759
65760 2004-11-05  Bruno Haible  <bruno@clisp.org>
65761
65762         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
65763         Reported by Mark D. Baushke <mdb@cvshome.org>.
65764
65765 2004-11-04  Bruno Haible  <bruno@clisp.org>
65766
65767         2004-09-11  Bruno Haible  <bruno@clisp.org>
65768                 * allocsa.valgrind: New file.
65769         2004-02-06  Bruno Haible  <bruno@clisp.org>
65770                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
65771                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
65772                 Reported by Christopher Seip <chris.seip@hp.com>.
65773
65774 2004-11-04  Bruno Haible  <bruno@clisp.org>
65775
65776         * modules/allocsa (Files): Add lib/allocsa.valgrind.
65777         (Makefile.am): Distribute it.
65778
65779 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
65780
65781         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
65782         with errno == ERANGE if the buffer is too small.
65783         Problem reported by Mark D. Baushke.
65784
65785 2004-11-03  Albert Chin  <china@thewrittenword.com>
65786             Paul Eggert  <eggert@cs.ucla.edu>
65787
65788         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
65789         equivalent, substitute $ac_type for equivalent type rather than
65790         blindly using uint32_t *always* which won't work if uint32_t is not
65791         available.  Define _UINT32_T to work around typedef of uint32_t if
65792         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
65793         2.5.1.
65794
65795 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
65796
65797         * m4/jm-macros.m4: Sync from coreutils.
65798         (gl_MACROS): Check for mbrlen, for pathchk.
65799         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
65800
65801 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
65802
65803         * lib/xreadlink.c (MAXSIZE): New macro.
65804         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
65805         size does not exceed MAXSIZE.  Avoid cast.
65806         As suggested by Mark D. Baushke in
65807         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
65808         if readlink fails with buffer size just under MAXSIZE, try again
65809         with MAXSIZE.
65810
65811 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
65812
65813         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
65814
65815 2004-11-02  Derek R. Price  <derek@ximbiot.com>
65816         and  Paul Eggert  <eggert@cs.ucla.edu>
65817
65818         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
65819         (get_date): Overparenthesize to avoid GCC warning.
65820
65821 2004-11-02  Bruno Haible  <bruno@clisp.org>
65822
65823         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
65824         returns void.
65825
65826 2004-11-02  Bruno Haible  <bruno@clisp.org>
65827
65828         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
65829         function returns void.
65830
65831 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65832
65833         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
65834         fflush_unlocked, flockfile, funlockfile, funlockfile,
65835         fputs_unlocked, putc_unlocked.
65836
65837 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65838
65839         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
65840         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
65841         already declared.
65842
65843 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65844
65845         * modules/getdate (Files): Add doc/getdate.texi.
65846         (Depends-on): Add setenv, xalloc.
65847
65848 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65849
65850         * lib/getdate.y: Add support for TZ="foo" within a date string.
65851         Fix some bugs near time_t boundaries.  Reject dates with
65852         out-of-range components, e.g., "Sept 31".
65853         Include <stdlib.h>, "setenv.h", "xalloc.h".
65854         (ISDIGIT_LOCALE): Remove; unused.
65855         Note that the TZ and time functions used here are not reentrant.
65856         (mktime_ok, get_tz): New functions.
65857         (TZBUFSIZE): New constant.
65858         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
65859         This requires that we sometimes generate our own TZ="XXX..." setting.
65860
65861 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65862
65863         * doc/getdate.texi: New file, from coreutils with modifications for
65864         the new TZ parsing.
65865
65866 2004-10-27  Derek R. Price  <derek@ximbiot.com>
65867
65868         * lib/mktime.c (not_equal_tm): Remove redundant check.
65869
65870 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65871
65872         * modules/regex (lib_SOURCES): Add regex.c.
65873         Reported by James Youngman in
65874         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
65875
65876 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65877
65878         * lib/getdate.y: Use Bison 1.875 features, and some minor
65879         code cleanups.  This change does not affect semantics.
65880         Don't include <stdlib.h>; no longer needed.
65881         Don't include unlocked-io.h; only the "#if TEST" code uses
65882         stdio, and performance isn't crucial there.
65883         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
65884         Bison 1.875 features as described below.
65885         All uses of "PC." replaced by "pc->".
65886         (YYSTYPE): Add a forward declaration.
65887         (yylex, yyerror): Use full prototypes in forward decls.
65888         Use "%pure-parser" rather than obsolescent "%pure_parser".
65889         Use %parse-param and %lex-param instead of obsolescent
65890         YYPARSE_PARAM and YYLEX_PARAM.
65891         (meridian_table, month_and_day_table, time_units_table,
65892         relative_time_table, time_zone_table, military_table,
65893         lookup_zone, lookup_word, get_date):
65894         Use NULL instead of 0 where appropriate.
65895         (to_hour): Avoid abort (), to avoid a dependency on
65896         stdlib.h.
65897         (yyerror, yylex): Now accepts parser_control * arg.
65898         (main) [TEST]: Use '\0' rather than 0 for char.
65899
65900 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65901
65902         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
65903
65904 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65905
65906         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
65907         It's now the caller's responsibility to handle the case where
65908         !HAVE_GETPAGESIZE && !defined getpagesize.
65909
65910         * lib/mktime.c (leapyear): Arg is long int, not int.
65911
65912 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
65913
65914         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
65915
65916 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65917
65918         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
65919         missing.  Problem reported by James Youngman.
65920
65921 2004-10-16  Simon Josefsson  <jas@extundo.com>
65922
65923         * gnulib-tool: Fix comments.  Fix parse problem.
65924         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
65925
65926 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
65927
65928         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
65929         implementation of getopt_long.  Problem reported by Alexander Taler in:
65930         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
65931
65932 2004-10-15  Bruno Haible  <bruno@clisp.org>
65933
65934         * gnulib-tool: Untabify. Initialize supplied_libname.
65935         (func_usage): More homogenous output.
65936         (func_modules_transitive_closure, func_modules_to_filelist,
65937         func_emit_lib_Makefile_am): New functions.
65938         (func_import): New function, extracted from big case statement. Use
65939         func_get_license, func_modules_transitive_closure,
65940         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
65941         opt_lgpl. Don't use test -a, as it's not portable.
65942         (func_create_testdir): Use func_modules_transitive_closure,
65943         func_modules_to_filelist, func_emit_lib_Makefile_am.
65944
65945 2004-10-15  Bruno Haible  <bruno@clisp.org>
65946
65947         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
65948
65949 2004-10-15  Bruno Haible  <bruno@clisp.org>
65950
65951         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
65952         the portions belonging to each module.
65953         Suggested by Derek Robert Price <derek@ximbiot.com>.
65954
65955 2004-10-12  Simon Josefsson  <jas@extundo.com>
65956
65957         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
65958         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
65959         to real functions.
65960
65961 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65962
65963         * modules/vsnprintf: New file.
65964
65965 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65966
65967         * m4/vsnprintf.m4: New file.
65968
65969 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65970
65971         * lib/vsnprintf.h: New file.
65972         * lib/vsnprintf.c: New file.
65973
65974 2004-10-11  Bruno Haible  <bruno@clisp.org>
65975
65976         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
65977         vsnprintf.
65978
65979 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65980
65981         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
65982
65983 2004-10-07  Bruno Haible  <bruno@clisp.org>
65984
65985         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
65986         fits into the provided buffer.
65987
65988 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65989
65990         * lib/diacrit.c, diacrit.h: Add GPL notice.
65991
65992         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
65993         notice.
65994         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
65995         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
65996         This avoids a potential constant-folding bug.
65997
65998 2004-10-05  Bruno Haible  <bruno@clisp.org>
65999
66000         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
66001         for the declaration of strsep.
66002
66003 2004-10-05  Bruno Haible  <bruno@clisp.org>
66004
66005         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
66006
66007 2004-10-04  Simon Josefsson  <jas@extundo.com>
66008
66009         * modules/memmem: New file.
66010         * tests/test-memmem.c: New file.
66011         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
66012
66013 2004-10-04  Simon Josefsson  <jas@extundo.com>
66014
66015         * m4/memmem.m4: New file.
66016
66017 2004-10-04  Simon Josefsson  <jas@extundo.com>
66018
66019         * lib/memmem.h: New file.
66020         * lib/memmem.c: New file, taken from glibc.
66021
66022 2004-10-04  Simon Josefsson  <jas@extundo.com>
66023
66024         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
66025         '#ifdef USE_UNLOCKED_IO'.
66026
66027 2004-10-04  Simon Josefsson  <jas@extundo.com>
66028
66029         * config/srclist.txt: Add memmem from glibc.
66030
66031 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66032
66033         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
66034
66035         * modules/argmatch, modules/argp, modules/closeout, modules/error,
66036         modules/exclude, modules/getdate, modules/getline,
66037         modules/getndelim2, modules/getpass, modules/getpass-gnu,
66038         modules/getusershell, modules/linebuffer, modules/md5,
66039         modules/mountlist, modules/posixtm, modules/readtokens,
66040         modules/readutmp, modules/regex, modules/sha1,
66041         modules/version-etc, modules/yesno:
66042         Remove dependency on unlocked-io.
66043
66044 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66045
66046         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
66047
66048         * m4/unlocked-io.m4: Add copyright notice.
66049         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
66050
66051 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66052
66053         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
66054         * lib/xmalloc.c (xmemdup): Likewise.
66055         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
66056         XFREE): Remove these long-obsolescent macros.
66057         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
66058         * lib/xstrdup.c: Remove.
66059
66060         * lib/regex.c (re_comp): Cast gettext return value to char *,
66061         Problem reported by Martin Neitzel via Mark D. Baushke.
66062
66063 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66064
66065         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
66066         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
66067         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
66068         regex.c, sha1.c, version-etc.c, yesno.c:
66069         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
66070         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
66071         the includer's responsibility.
66072
66073         Sync from coreutils.
66074
66075         * lib/modechange.c (mode_compile): Don't decrement a pointer that
66076         points to the start of a string, as the C Standard says the
66077         resulting behavior is undefined.
66078
66079         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
66080         simple -> simple_backups, numbered_existing ->
66081         numbered_existing_backups, numbered -> numbered_backups
66082         to avoid shadowing problems.  All uses changed.
66083         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
66084         * lib/backupfile.c (check_extension, numbered_backup):
66085         Rename locals to avoid shadowing 'basename'.
66086         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
66087         once.
66088
66089         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
66090         * lib/.cvsignore: Add getopt.h.
66091
66092 2004-10-04  Bruno Haible  <bruno@clisp.org>
66093
66094         * modules/README: New file.
66095         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
66096         not a module.
66097
66098 2004-10-02  Jim Meyering  <jim@meyering.net>
66099
66100         * lib/dirfd.h, getpagesize.h: Add copyright notice.
66101
66102 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66103
66104         * modules/strsep: New file.
66105
66106 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66107
66108         * m4/strsep.m4: New file.
66109
66110 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66111
66112         * lib/strsep.h: New file.
66113         * lib/strsep.c: New file.
66114
66115 2004-10-01  Simon Josefsson  <jas@extundo.com>
66116
66117         * lib/snprintf.c (snprintf): Handle size==0.
66118
66119 2004-10-01  Simon Josefsson  <jas@extundo.com>
66120             Bruno Haible  <bruno@clisp.org>
66121
66122         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
66123         (snprintf): Declare 'args'.
66124
66125 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
66126
66127         * lib/snprintf.c: Remove comments as to why each header is needed.
66128
66129 2004-10-01  Bruno Haible  <bruno@clisp.org>
66130
66131         * MODULES.html.sh: Add strsep.
66132
66133 2004-09-30  Simon Josefsson  <jas@extundo.com>
66134
66135         * modules/snprintf: New file.
66136
66137 2004-09-30  Simon Josefsson  <jas@extundo.com>
66138
66139         * m4/snprintf.m4: New file.
66140
66141 2004-09-30  Simon Josefsson  <jas@extundo.com>
66142
66143         * lib/snprintf.h, lib/snprintf.c: New files.
66144
66145 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66146
66147         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
66148         (hol_entry_help): Never translate an empty string.
66149         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
66150         * lib/argp.h (OPTION_NO_TRANS): New option.
66151
66152 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
66153
66154         * modules/argp (Maintainer): Replace Simon Josefsson
66155         by Sergey Poznyakoff.
66156
66157 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
66158
66159         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
66160         changes merged back into glibc.
66161
66162 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
66163
66164         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
66165
66166 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66167
66168         * lib/xvasprintf.c: Include xalloc.h.
66169         (xvasprintf): Use xalloc_die, not xmalloc_die.
66170
66171 2004-09-29  Bruno Haible  <bruno@clisp.org>
66172
66173         * modules/alloca-opt: New file, derived from modules/alloca.
66174         * modules/allocsa: Depend on alloca-opt instead of alloca.
66175         * modules/setenv: Likewise.
66176         * modules/vasnprintf: Likewise.
66177         * MODULES.html.sh: Add alloca-opt.
66178
66179 2004-09-28  Simon Josefsson  <jas@extundo.com>
66180
66181         * gnulib-tool: New parameter --lgpl, to asseert that modules are
66182         LGPL, and to replace license template from GPL to LGPL.
66183
66184 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
66185
66186         * modules/dummy: Change license to LGPL.
66187
66188 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
66189
66190         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
66191
66192 2004-09-24  Simon Josefsson  <jas@extundo.com>
66193
66194         * modules/minmax (License): Change from GPL to LGPL.
66195
66196 2004-09-23  Simon Josefsson  <jas@extundo.com>
66197
66198         * gnulib-tool (--import): Typo.
66199
66200 2004-09-23  Simon Josefsson  <jas@extundo.com>
66201
66202         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
66203
66204 2004-09-22  Bruno Haible  <bruno@clisp.org>
66205
66206         * modules/*: Add 'License' field.
66207         * gnulib-tool: Accept --extract-license option.
66208         (func_get_license): New function.
66209
66210 2004-09-21  Bruno Haible  <bruno@clisp.org>
66211
66212         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
66213         Reported by Simon Josefsson.
66214
66215 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66216
66217         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
66218         gl_AC_TYPE_LONG_LONG.
66219
66220 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66221
66222         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
66223
66224 2004-09-18  Simon Josefsson  <jas@extundo.com>
66225         and  Paul Eggert  <eggert@cs.ucla.edu>
66226
66227         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
66228         calls with autoreconf.  Define GL_LIB.
66229
66230 2004-09-14  Karl Berry  <karl@gnu.org>
66231
66232         * config/srclist.txt: unsync setenv.c, sigh.
66233
66234 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
66235
66236         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
66237         Problem reported by Bruno Haible in:
66238         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
66239
66240 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
66241
66242         * config/srclist.txt: Comment out argp-pvh.c.
66243
66244 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
66245
66246         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
66247         in case some system header has #define'd it.  Problem reported by
66248         Soeren D. Schulze in
66249         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
66250
66251 2004-09-09  Karl Berry  <karl@gnu.org>
66252
66253         * regex.[ch]: delete from the root.  These were supposed to be
66254                 synced with emacs cvs, but this has not happened for about
66255                 a year, and anyway nothing else uses emacs regex.[ch].
66256                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
66257                 lib/regex[.ch] is untouched.
66258
66259 2004-09-09  Bruno Haible  <bruno@clisp.org>
66260
66261         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
66262
66263 2004-09-09  Bruno Haible  <bruno@clisp.org>
66264
66265         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
66266         modifications.
66267         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
66268
66269 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
66270
66271         * modules/xvasprintf: New file.
66272         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
66273
66274 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
66275
66276         * lib/xvasprintf.h: New file.
66277         * lib/xvasprintf.c: New file.
66278         * lib/xasprintf.c: New file.
66279
66280 2004-09-08  Bruno Haible  <bruno@clisp.org>
66281
66282         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
66283
66284 2004-09-08  Bruno Haible  <bruno@clisp.org>
66285
66286         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
66287         length is > INT_MAX.
66288         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
66289         more.
66290
66291 2004-09-08  Bruno Haible  <bruno@clisp.org>
66292
66293         * lib/stdint_.h: New file, taken from GNU clisp.
66294
66295 2004-09-08  Bruno Haible  <bruno@clisp.org>
66296             Oskar Liljeblad  <oskar@osk.mine.nu>
66297
66298         * modules/stdint: New file.
66299         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
66300
66301 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66302
66303         Import from coreutils.
66304         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
66305         strings on unbounded length.  alloca's performance benefits aren't
66306         that important here.
66307         (V_STRDUP): Remove.
66308         (parse_with_separator): New function, with most of the internals
66309         of the old parse_user_spec.  Allow user to omit both user and group,
66310         for compatibility with FreeBSD.
66311         Clone only the user name, not the entire spec.
66312         Do not set *uid, *gid unless entirely successful.
66313         Avoid memory leak in some failing cases.
66314         Fix regression for USER.GROUP reported by Dmitry V. Levin in
66315         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
66316         (parse_user_spec): Rewrite to use parse_with_separator.
66317
66318 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66319
66320         * modules/userspec: Don't depend on alloca.
66321
66322 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66323
66324         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
66325
66326 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66327
66328         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
66329         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
66330         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
66331
66332 2004-08-16  Simon Josefsson  <jas@extundo.com>
66333
66334         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
66335         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
66336         Add --dry-run for --import.
66337         Let user provided command line parameters override configure.ac
66338         settings.
66339
66340 2004-08-12  Simon Josefsson  <jas@extundo.com>
66341
66342         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
66343         as discussed with Paul Eggert in threads rooted at
66344         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
66345         and
66346         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
66347         Before, the test was empty, and relied on ELIDE_CODE in source
66348         code.)
66349         (gl_PREREQ_GETOPT): New macro.
66350         (gl_GETOPT): Use them.
66351
66352 2004-08-12  Simon Josefsson  <jas@extundo.com>
66353
66354         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
66355         * lib/getopt_.h: Renamed from getopt.h.
66356
66357 2004-08-12  Simon Josefsson  <jas@extundo.com>
66358
66359         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
66360         Change default library name from libfoo to libgnu.
66361         Now, if you have a configure.ac that says:
66362                 gl_SOURCE_BASE(gl)
66363                 gl_M4_BASE(gl/m4)
66364                 gl_MODULES(error getopt etcetera)
66365                 gl_INIT
66366         you can import all you need by running:
66367                 ../gnulib/gnulib-tool --import
66368
66369         * modules/getopt (Files): Rename getopt.h to getopt_.h.
66370         (Makefile.am): Rewrite, use logic from argz.
66371         (Include): Use <getopt.h> instead of "getopt.h".
66372
66373 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
66374
66375         * modules/argp (Files): Add m4/unlocked-io.m4.
66376         (Depends-on): Add extensions.
66377
66378 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
66379
66380         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
66381         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
66382         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
66383         Check for program_invocation_name, program_invocation_short_name,
66384         flockfile, funlockfile, features.h, _getopt_long_only_r.
66385
66386 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
66387
66388         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
66389         its complicated substitute.
66390         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
66391         and program_invocation_name.
66392         (__argp_basename) [!_LIBC]: Remove; the only use was
66393         replaced by its body.
66394         (__argp_short_program_name): Change condition from
66395         !defined __argp_short_program_name to
66396         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
66397         to match argp-namefrob.h.
66398         (__argp_failure): Don't assume strerror_r returns char *.
66399         * lib/argp-parse.c (N_): Define unconditionally.
66400         (argp_default_options): Fill out initializers with 0 to avoid
66401         gcc warnings.
66402
66403 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
66404
66405         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
66406         getopt1.c.
66407
66408 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66409
66410         Merge from coreutils.
66411
66412         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
66413
66414         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
66415         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
66416
66417 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66418
66419         Merge from coreutils.
66420
66421         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
66422         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
66423         for Reliant Unix 5.43.
66424
66425         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
66426         (union fooround): Use uintmax_t, not long int.
66427         The rest is a merge from libc:
66428         [defined _LIBC]: Include <shlib-compat.h>.
66429         (_obstack) [defined _LIBC]: Remove after 2.3.4.
66430
66431         * lib/settime.c (settime): Recode to avoid warning with
66432         Sun Forte C 6U2.
66433
66434         * lib/strverscmp.c: Convert to UTF-8.
66435
66436 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66437
66438         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
66439         m4/uintmax_t.m4.
66440
66441 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66442
66443         * modules/xalloc-die: New file.
66444         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
66445
66446         * modules/md5 (Files): Add m4/uint32_t.m4.
66447         * modules/sha1: Renamed from modules/sha.
66448         (Files):
66449         Rename lib/sha.h to lib/sha1.h.
66450         Rename lib/sha.c to lib/sha1.c.
66451         Rename m4/sha.m4 to m4/sha1.m4.
66452         (lib_SOURCES): Likewise.
66453         (configure.ac): Rename gl_SHA to gl_SHA1.
66454         (Include): sha.h -> sha1.h.
66455
66456 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66457
66458         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
66459         * m4/sha1.m4: Renamed from sha.m4.
66460         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
66461
66462 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66463
66464         * lib/obstack.h (obstack_empty_p):
66465         Don't assume that chunk->contents is suitably aligned.
66466         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
66467         Likewise. Problem reported by Benno in
66468         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
66469
66470         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
66471         readable.  This could be improved further but it'd take some work.
66472
66473 2004-08-08  Simon Josefsson  <jas@extundo.com>
66474
66475         * modules/xgethostname (Depends-on): Remove exit and error (not
66476         used).
66477
66478         * modules/getpass-gnu: Add getpass.h.
66479         (Depends-on): Add stdbool.
66480         * modules/getpass: Add getpass.h.
66481
66482 2004-08-08  Simon Josefsson  <jas@extundo.com>
66483
66484         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
66485         Check getpass declaration.
66486
66487 2004-08-08  Simon Josefsson  <jas@extundo.com>
66488
66489         * lib/xgethostname.c: Don't include error.h (not used).
66490
66491         * lib/getpass.h: Add.
66492         * lib/getpass.c: Include getpass.h first.
66493
66494 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
66495
66496         * lib/xalloc-die.c: New file.
66497         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
66498         All uses removed.
66499         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
66500         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
66501         xalloc-die.c.
66502         (_, N_, xalloc_die): Move to xalloc-die.c.
66503         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
66504         so that we needn't mess with xalloc_msg_memory_exhausted.
66505
66506         * lib/sha1.h: Renamed from sha.h.
66507         (SHA1_H): Renamed from _SHA_H.
66508         (sha1_ctx): Renamed from sha_ctx.
66509         (sha1_init_ctx): Renamed from sha_init_ctx.
66510         (sha1_process_block): Renamed from sha_process_block.
66511         (sha1_process_bytes): Renamed from sha_process_bytes.
66512         (sha1_finish_ctx): Renamed from sha_finish_ctx.
66513         (sha1_read_ctx): Renamed from sha_read_ctx.
66514         (sha1_stream): Renamed from sha_stream.
66515         (sha1_buffer): Renamed from sha_buffer.
66516         * lib/sha1.c: Likewise; renamed from sha.c.
66517         Do not include <sys/types.h>.
66518         Include <stddef.h> rather than <stdlib.h>.
66519
66520 2004-08-08  Bruno Haible  <bruno@clisp.org>
66521
66522         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
66523         FILESYSTEM_PREFIX_LEN.
66524         * lib/progreloc.c: Likewise.
66525         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
66526
66527 2004-08-06  Simon Josefsson  <jas@extundo.com>
66528
66529         * modules/progname (Depends-on): Don't depend on stdbool.
66530
66531 2004-08-06  Simon Josefsson  <jas@extundo.com>
66532
66533         * modules/getsubopt: New file.
66534         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66535         getsubopt.
66536
66537 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66538
66539         More merge from coreutils.
66540
66541         * m4/utimens.m4, m4/utimecmp.m4: New files.
66542         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
66543         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
66544         prereq.m4, sha.m4: Import changes from coreutils.
66545
66546 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66547
66548         More merge from coreutils.
66549         * modules/raise, modules/readtokens0, modules/utimens:
66550         * modules/utimecmp, module/xnanosleep: New files.
66551         * modules/strftime: Add lib/strftime.h.
66552         Change include from <time.h> to "strftime.h".
66553         * modules/yesno: Add lib/yesno.h.
66554         * modules/backupfile: Remove lib/addext.c.
66555         * modules/euidaccess: Add stat-macros.h.
66556         * modules/canonicalize, modules/euidaccess,
66557         modules/filemode, modules/lchown, modules/makepath,
66558         modules/rmdir, modules/stat: Likewise.
66559
66560 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66561
66562         Merge from tar.
66563         * lib/argp-help.c (make_hol, hol_append): Don't assume that
66564         SIZE_MAX is a valid preprocessor constant.
66565         (__argp_basename): Change from "#ifndef _LIBC"
66566         to "#ifndef __argp_short_program_name", so that
66567         we don't compile these functions for tar.
66568
66569         More merges from coreutils.
66570         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
66571         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
66572         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
66573         * lib/addext.c: Remove; no longer needed.
66574         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
66575         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
66576         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
66577         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
66578         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
66579         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
66580         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
66581         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
66582         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
66583         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
66584         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
66585         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
66586         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
66587         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
66588         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
66589         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
66590         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
66591         Import changes from coreutils.
66592
66593 2004-08-05  Simon Josefsson  <jas@extundo.com>
66594
66595         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
66596
66597 2004-08-05  Simon Josefsson  <jas@extundo.com>
66598
66599         * m4/getsubopt.m4: New file.
66600
66601 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
66602
66603         Merge from coreutils.
66604
66605         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
66606         * m4/getcwd-path-max.m4: New files.
66607
66608         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
66609         FILESYSTEM_PREFIX_LEN ->
66610         FILE_SYSTEM_PREFIX_LEN.
66611         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
66612         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
66613         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
66614         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
66615
66616         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
66617         prerequisite modules now handle the DOS stuff.
66618         Don't check for unistd.h.
66619
66620 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
66621
66622         Merge from coreutils.
66623
66624         * lib/.gdb-history: Remove; this doesn't belong here.
66625
66626         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
66627         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
66628         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
66629         * lib/getcwd.c: New files.
66630
66631         * lib/dirname.h: Include <stdbool.h>.
66632         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
66633         for consistency with POSIX terminology.  All uses changed.
66634         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
66635         (strip_trailing_slashes): Use bool for booleans.
66636         * lib/stripslash.c (strip_trailing_slashes): Likewise.
66637
66638         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
66639         sometimes returns a positive errno value even when it succeeds.
66640         (print_errno_message) [!LIBC]: Fall back on strerror if
66641         __strerror_r fails.
66642
66643         * lib/path-concat.c (mempcpy): Don't define if a system header defines
66644         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
66645         (longest_relative_suffix): New function.
66646         (path_concat): Use it.  Assume first argument is not NULL.
66647         Port to DOS.  Omit redundant separators.
66648         Report an error instead of returning NULL.
66649         Use mempcpy instead of memcpy.
66650         (xpath_concat): Remove: not declared or used.
66651
66652         * lib/same.h: Include <stdbool.h>
66653         (same_name): Return bool, not int.
66654         * lib/same.c (same_name): Likewise.
66655         (errno): Don't declare; we assume C89 or better now.
66656
66657         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
66658         if not already defined.
66659
66660         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
66661         * lib/dup-safer.c (errno): Likewise.
66662
66663 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
66664
66665         Merge from coreutils.
66666         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
66667         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
66668         * modules/path-concat: Don't depend on strdup.
66669
66670 2004-08-03  Simon Josefsson  <jas@extundo.com>
66671
66672         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
66673         * lib/progname.h: Don't include stdbool.h.
66674
66675 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
66676
66677         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
66678         * MODULES.html.sh (func_all_modules): Remove fatal.
66679
66680 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
66681
66682         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
66683
66684 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
66685
66686         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
66687         working.
66688
66689 2004-08-02  Simon Josefsson  <jas@extundo.com>
66690
66691         * lib/getsubopt.h: New file, with comments from Bruno Haible.
66692         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
66693         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
66694
66695 2004-08-01  Simon Josefsson  <jas@extundo.com>
66696
66697         * lib/xgetdomainname.c: Include stdlib.h, for free().
66698
66699 2004-07-19  Bruno Haible  <bruno@clisp.org>
66700
66701         * MODULES.html.sh (func_all_modules): Add dummy.
66702
66703 2004-07-16  Simon Josefsson  <jas@extundo.com>
66704
66705         * modules/dummy: New file.
66706
66707 2004-07-16  Simon Josefsson  <jas@extundo.com>
66708
66709         * lib/dummy.c: New file.
66710
66711 2004-07-16  Bruno Haible  <bruno@clisp.org>
66712
66713         * lib/backupfile.h: Add extern "C" for C++.
66714         * lib/closeout.h: Likewise.
66715         * lib/copy-file.h: Likewise.
66716         * lib/findprog.h: Likewise.
66717         * lib/full-write.h: Likewise.
66718         * lib/pathname.h: Likewise.
66719         * lib/progname.h: Likewise.
66720         * lib/stpcpy.h: Likewise.
66721         * lib/stpncpy.h: Likewise.
66722         * lib/strcase.h: Likewise.
66723         * lib/strstr.h: Likewise.
66724         * lib/xalloc.h: Likewise.
66725
66726         * lib/mbswidth.h: Add extern "C" for C++.
66727         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
66728
66729 2004-07-13  Robert Millan  <robertmh@gnu.org>
66730
66731         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
66732
66733 2004-07-09  Simon Josefsson  <jas@extundo.com>
66734
66735         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
66736         failed without this.)
66737
66738 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66739
66740         * modules/chown (Files): Add lib/fchown-stub.c, since
66741         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
66742
66743 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66744
66745         * lib/fchown-stub.c: New file.
66746
66747 2004-06-24  Jim Meyering  <jim@meyering.net>
66748
66749         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
66750
66751 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66752
66753         * modules/argz: Omit "#include".
66754
66755         * MODULES.html.sh (func_all_modules): Add calloc, to match
66756         2004-06-01 addition of calloc module.
66757
66758 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66759
66760         * m4/argz.m4: New file, which is autoupdated from libtool.
66761
66762 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66763
66764         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
66765         libtool.
66766
66767 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66768
66769         * config/srclist-update: Don't insist on "USA." before the
66770         close-comment, as libtool omits the period and puts the */ on a
66771         separate line.
66772         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
66773         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
66774
66775 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
66776
66777         * modules/argz: New file.
66778         * MODULES.html.sh (func_all_modules): Add argz.
66779
66780 2004-06-12  Jim Meyering  <jim@meyering.net>
66781         and  Paul Eggert  <eggert@cs.ucla.edu>
66782
66783         * modules/hash (Files): Add lib/xalloc.h.
66784         * modules/pipe (Depends-on): Add wait-process.
66785         * modules/stat (Depends-on): Add xalloc.
66786         * modules/userspec (Files): Add lib/userspec.h.
66787         * modules/xstrto
66788
66789         Upgrade from gettext-0.13.
66790         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
66791         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
66792         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
66793
66794 2004-06-10  Jim Meyering  <jim@meyering.net>
66795
66796         * lib/calloc.c: New file.
66797
66798 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
66799
66800         * lib/getdate.y (yylex): Allow space between sign and number.
66801         Problem reported by Dan Jacobson.
66802
66803 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
66804
66805         Merge from coreutils CVS.
66806
66807         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
66808         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
66809         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
66810         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
66811         xstrtol.m4: Fix copyright date and/or serial number.
66812
66813         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
66814         See if we need an fchown replacement.
66815         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
66816         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
66817         and use the replacement function if we detect either defect.
66818
66819         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
66820         gl_UTIMECMP.
66821
66822 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
66823         and  Jim Meyering  <jim@meyering.net>
66824
66825         Merge from coreutils CVS.
66826
66827         * lib/stat-macros.h: New file, with contents from file-type.h
66828         and coreutils' system.h.
66829         * lib/file-type.c: Include "stat-macros.h".
66830         * lib/file-type.h (file_type): Move all macro definitions to new file,
66831         stat-macros.h.
66832
66833         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
66834         Wrap old code with this conditional.
66835         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
66836         function that does not dereference symlinks.
66837         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
66838
66839         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
66840         dependency problems.
66841         (xreadlink): Accept new arg SIZE, for efficiency.
66842         All decls and uses changed.
66843         * lib/xreadlink.h: Include <stddef.h>, for size_t.
66844
66845         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
66846         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
66847
66848         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
66849         sysexits.h.
66850
66851 2004-06-01  Jim Meyering  <jim@meyering.net>
66852
66853         * m4/calloc.m4: New file.
66854
66855 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
66856
66857         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
66858         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
66859         Also, fix a typo in a diagnostic.
66860
66861 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
66862
66863         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
66864         or AC_FUNC_REALLOC.
66865
66866 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
66867
66868         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
66869         macros to be defined.
66870         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
66871         the allocator returns NULL because the requested size is zero.
66872
66873 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66874
66875         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
66876         var.  Add comment explaining why libc still defines it.  This
66877         merges the following patch from glibc:
66878         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
66879
66880 2004-05-20  Andreas Schwab  <schwab@suse.de>
66881
66882         * m4/free.m4: Replace free if it not known to work, not the other
66883         way round.
66884
66885 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66886
66887         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
66888         present in glibc since revision 1.1 of this file.
66889         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
66890         obstack_alignment_mask, obstack_alloc, obstack_base,
66891         obstack_blank, obstack_blank_fast, obstack_chunk_size,
66892         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
66893         obstack_grow0, obstack_init, obstack_int_grow,
66894         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
66895         obstack_next_free, obstack_object_size, obstack_ptr_grow,
66896         obstack_ptr_grow_fast, obstack_room): Remove declarations of
66897         nonexistent functions.
66898
66899 2004-05-18  Karl Berry  <karl@gnu.org>
66900
66901         * config/srclist.txt: break link for vasnprintf.c.
66902
66903 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66904
66905         Port obstack to the AS/400, where pointers are 16 bytes wide and
66906         you cannot cast an integer to a valid pointer.  This patch is
66907         currently waiting to be integrated into glibc; see
66908         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
66909
66910         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
66911         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
66912         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
66913         (struct obstack): temp member is now a union of a pointer and
66914         an integer, instead of an integer.  All integer uses changed.
66915         This does not affect the physical layout of struct obstack,
66916         except on hosts (like the AS/400) where the size or alignment of
66917         void * is greater than that of ptrdiff_t.
66918         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
66919         __STDC__)]: Store temporary in pointer member of union, not
66920         integer member.
66921         * lib/obstack.c: Include <stddef.h>, for offsetof.
66922         (struct fooalign): Remove; it doesn't need a name.
66923         (union fooround): Change double to long double, and add void *.
66924         (DEFAULT_ALIGNMENT): Use offsetof to compute.
66925         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
66926         not a macro.  Hence the values are always int; so remove all
66927         casts-to-int in uses.
66928
66929 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66930
66931         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
66932         we can get this patch merged into glibc.
66933
66934 2004-05-17  Derek R. Price  <derek@ximbiot.com>
66935             Paul Eggert  <eggert@cs.ucla.edu>
66936
66937         * m4/argp: Depend on alloca.
66938
66939 2004-05-17  Derek R. Price  <derek@ximbiot.com>
66940             Paul Eggert  <eggert@cs.ucla.edu>
66941
66942         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
66943         freecoding.
66944
66945 2004-05-17  Bruno Haible  <bruno@clisp.org>
66946
66947         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
66948         precision that consists of a '.' followed by an empty digit string.
66949         Patch by Tor Lillqvist <tml@iki.fi>.
66950
66951 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66952
66953         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
66954         for backward compatibility with older code.  We need our own
66955         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
66956         it under some other name, and our alloca.h will define it.
66957
66958 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66959             Derek Price  <derek@ximbiot.com>
66960
66961         * lib/alloca.c: Include <alloca.h>, to get our interface.
66962         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
66963         include <alloca.h> first.  Use C89 prototype for alloca; this
66964         requires including <stddef.h> for size_t.  Use extern "C" if C++.
66965         Use #elif for simplicity, since we can assume C89 now.
66966         Don't try to source the system alloca.h since it will not be found
66967         and to prevent recursively including its replacement.
66968         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
66969         * lib/regex.c: Likewise.
66970
66971 2004-05-16  Derek Price  <derek@ximbiot.com>
66972             Paul Eggert  <eggert@cs.ucla.edu>
66973
66974         getline cleanup.  This changes the getndelim2 API: both order of
66975         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
66976         no delimiter).
66977
66978         * lib/getline.c: Don't include stddef.h or stdio.h, since our
66979         interface does that.
66980         (getline): Always use getdelim, so that we don't have two
66981         copies of this code.
66982         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
66983         if available.
66984         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
66985         (GETNDELIM2_MAXIMUM): New macro.
66986         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
66987         instead of the old practice of delim2==0.  All callers changed.
66988         Return -1 on overflow, instead of returning junk.
66989         Do not set *linesize unless allocation succeeds.
66990         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
66991         that we include sys/types.h.
66992         * lib/getnline.h: Likewise.
66993         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
66994         (getndelim2): Reorder arguments.
66995         * lib/getnline.c (getnline, getndelim):
66996         Don't discard the NMAX argument.
66997         (getnline): Invoke getndelim, to avoid code duplication.
66998         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
66999         of (size_t) -1 by callers of the getnline family.
67000
67001 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67002
67003         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
67004         Check for gettimeofday.
67005         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
67006         Check for settimeofday, stime.
67007
67008 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67009
67010         * lib/nanosleep.c (suspended): Change its type from int to
67011         sig_atomic_t volatile.
67012         (first_call): Make it private to rpl_nanosleep, and have it
67013         be zero initially as that's a bit faster.
67014         (my_usleep): Round up fractional times instead of truncating them,
67015         as this is the usual meaning for 'sleep'.
67016
67017         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
67018         doesn't work.
67019         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
67020         (ENOSYS): Define if not defined.
67021         (settime): Fall back on stime if it exists and settimeofday fails.
67022         But don't bother with fallbacks if a method fails with errno == EPERM.
67023
67024 2004-05-11  Jim Meyering  <jim@meyering.net>
67025
67026         Prior to this change, the save_cwd caller required read access to the
67027         current directory on most systems (ones with the fchdir function).
67028
67029         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
67030         fails, try write-only, and finally, resort to using xgetcwd.
67031
67032 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67033
67034         * lib/obstack.c, obstack.h: Import changes from libc.
67035
67036 2004-04-28  Bruno Haible  <bruno@clisp.org>
67037
67038         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
67039         also implicitly appends .exe to executables.
67040         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
67041         accepts Windows pathnames.
67042         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
67043         Treat Cygwin like Windows, since it now accepts Windows pathnames.
67044         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
67045         Treat Cygwin like Windows, since it now accepts Windows pathnames.
67046         Reported by Derek Robert Price <derek@ximbiot.com>.
67047
67048 2004-04-21  Karl Berry  <karl@gnu.org>
67049
67050         * config/srclist.txt (localcharset.c): break sync.
67051
67052 2004-04-20  Paul Eggert  <eggert@twinsun.com>
67053
67054         * m4/host-os.m4: Add a copyright notice.
67055
67056 2004-04-20  Jim Meyering  <jim@meyering.net>
67057
67058         Change UTILS_ to gl_ in AC_DEFINE'd names.
67059         Change utils_- and jm_-prefixed variables, too.
67060         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
67061         UTILS_FUNC_MKDIR_TRAILING_SLASH.
67062         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
67063
67064         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
67065         Don't emit trailing blanks.
67066         Also rename jm_-prefixed variables to have gl_ prefix.
67067
67068         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
67069         Also rename jm_-prefixed variables to have gl_ prefix.
67070
67071         * m4/jm-macros.m4: Reflect the renamings.
67072         * m4/prereq.m4: Likewise.
67073
67074 2004-04-20  Jim Meyering  <jim@meyering.net>
67075
67076         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
67077         memory.
67078
67079 2004-04-20  Jim Meyering  <jim@meyering.net>
67080             Bruno Haible  <bruno@clisp.org>
67081
67082         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
67083         memory when realloc fails.
67084
67085 2004-04-19  Jim Meyering  <jim@meyering.net>
67086
67087         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
67088         now that readutmp.c may call `free (0)'.
67089
67090 2004-04-19  Bruno Haible  <bruno@clisp.org>
67091
67092         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
67093         * m4/inttypes_h.m4: Likewise.
67094         * m4/stdint_h.m4: Likewise.
67095         * m4/intmax_t.m4: Likewise.
67096         * m4/uintmax_t.m4: Likewise.
67097
67098 2004-04-18  Jim Meyering  <jim@meyering.net>
67099
67100         * m4/prereq.m4: Don't forbid jm_ prefix.
67101
67102         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
67103         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
67104         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
67105         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
67106         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
67107         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
67108         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
67109         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
67110         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
67111         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
67112         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
67113         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
67114         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
67115         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
67116         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
67117         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
67118         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
67119         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
67120         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
67121
67122 2004-04-18  Jim Meyering  <jim@meyering.net>
67123
67124         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
67125         failure, don't leak memory and do call END_UTMP_ENT.
67126
67127 2004-04-16  Jim Meyering  <jim@meyering.net>
67128
67129         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
67130         coreutils' stat program.
67131         (gl_PREREQ): Don't require jm_PREREQ_STAT.
67132
67133 2004-04-11  Paul Eggert  <eggert@twinsun.com>
67134
67135         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
67136         C89.
67137         (CHAR_BIT): Remove, since we assume C89.
67138         Include <stdint.h> if available, as per current Autoconf CVS advice.
67139
67140 2004-03-31  Jim Meyering  <jim@meyering.net>
67141
67142         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
67143         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
67144         * m4/xalloc.m4: Likewise.
67145
67146 2004-03-30  Paul Eggert  <eggert@twinsun.com>
67147
67148         Merge from coreutils.
67149
67150         * m4/inttostr.m4: New file.
67151         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
67152         Require AM_STDBOOL_H and gl_TIMESPEC instead.
67153         Require gl_CLOCK_TIME.
67154         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
67155
67156 2004-03-30  Paul Eggert  <eggert@twinsun.com>
67157
67158         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
67159         not bool, to be more consistent with Unix conventions.
67160         Suggested by Bruno Haible.
67161
67162         Merge from coreutils.
67163
67164         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
67165         * lib/umaxtostr.c: New files.
67166
67167         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
67168         the usual <time.h> dance.
67169         (get_date): Change signature to support fractional time stamps.
67170         All callers changed.
67171         * lib/getdate.y: Include "getdate.h" first, as we can now
67172         assume C89 and don't need to worry about 'const'.
67173         Similarly, include "unlocked-io.h" near start, not in middle.
67174         Include <limits.h>.
67175         (textint.value): Use long int rather than int.
67176         (textint.digits): Use size_t rather than int.
67177         (BILLION, LOG10_BILLION): New constants.
67178         (parser_control): New member rel_ns.  Members day_ordinal,
67179         time_zone, month, day, hour, minutes, rel_year, rel_month,
67180         rel_day, rel_hour, rel_minutes, rel_seconds
67181         are now long int, not int.  Member seconds is now struct timespec,
67182         not int.  New member timespec_seen.  Members dates_seen, days_seen,
67183         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
67184         not int.
67185         (%union.intval): Now long int, not int.
67186         New member timespec.
67187         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
67188         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
67189         (spec): Now is a timespec or an item list.
67190         (timespec, items): New nonterminals.
67191         (time, rel, relunit, number, get_date):
67192         Add support for fractional seconds.
67193         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
67194         (gmtime, localtime, mktime): Remove decls; not needed with C89.
67195         (to_hour): First arg is now long int, not int.
67196         (to_year): Returns long int, not int.
67197         Don't treat year -70 like 70.
67198         (tm_diff): Returns long int, not int.
67199         (lookup_word): Use bool instead of int when appropriate.
67200         (yylex): Use size_t for count, not int.
67201         Detect overflow when parsing large integer constants.
67202         Add support for fractions.
67203         (get_date): Make pointers 'const' if possible.
67204         Use more-portable code to detect integer overflow.
67205         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
67206         Don't use ctime; it's not reliable if the year has >4 digits.
67207
67208         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
67209         This is for compatibility with BSD.
67210
67211         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
67212         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
67213         From coreutils' system.h.
67214
67215         * lib/userspec.c: Don't include "posixver.h".
67216         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
67217         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
67218         compatible extension.  Simplify code by removing a boolean int
67219         that was always nonzero if a string was nonnull.
67220
67221 2004-03-30  Jim Meyering  <jim@meyering.net>
67222
67223         Merge from coreutils.
67224
67225         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
67226         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
67227         on some systems one must include <grp.h> before it.
67228         Reported by Christian Krackowizer.
67229
67230 2004-03-30  Jim Meyering  <jim@meyering.net>
67231
67232         Merge from coreutils.
67233
67234         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
67235
67236         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
67237         an empty input stream.
67238
67239         * lib/readtokens.c: Include <stdbool.h>.
67240         (readtoken): Use `size_t' rather than int/long.
67241         All callers adjusted.
67242         Use `bool' rather than `int' where appropriate.
67243         Use memset rather than an explicit loop.
67244         Use x2nrealloc rather than xrealloc.
67245         Allow the use of `\0' as a delimiter.
67246         (readtokens): Likewise.
67247         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
67248
67249 2004-03-30  Jim Meyering  <jim@meyering.net>
67250
67251         * m4/realloc.m4: Remove file, since now it does no more than
67252         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
67253         the `configure.ac' section of module/realloc.
67254         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
67255
67256 2004-03-30  Bruno Haible  <bruno@clisp.org>
67257
67258         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
67259         nonnull.
67260
67261 2004-03-29  Paul Eggert  <eggert@twinsun.com>
67262
67263         Merge changes to getloadavg.c from coreutils and Emacs.
67264
67265         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
67266         Define to an expression, not to the empty string.
67267         Include cloexec.h and xalloc.h.
67268         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
67269         Use set_cloexec_flag rather than rolling our own.
67270         * lib/cloexec.c, lib/cloexec.h: New files.
67271
67272 2004-03-29  Paul Eggert  <eggert@twinsun.com>
67273
67274         * m4/cloexec.m4: New file.
67275
67276 2004-03-18  Paul Eggert  <eggert@twinsun.com>
67277
67278         * lib/getopt.h: Sync with libc CVS.
67279
67280 2004-03-18  Paul Eggert  <eggert@twinsun.com>
67281             Bruno Haible  <bruno@clisp.org>
67282
67283         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
67284         mbswidth.
67285
67286 2004-03-18  Paul Eggert  <eggert@twinsun.com>
67287             Bruno Haible  <bruno@clisp.org>
67288
67289         * lib/mbswidth.h: Include <wchar.h> only if
67290         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
67291         <wchar.h>.
67292         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
67293
67294 2004-03-09  Paul Eggert  <eggert@twinsun.com>
67295
67296         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
67297         Sync with libc CVS.
67298         * lib/getopt_int.h: New file, also synced from libc.
67299
67300 2004-03-09  Paul Eggert  <eggert@twinsun.com>
67301
67302         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
67303         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
67304         Bring back getopt.c, getopt.h, getopt1.c.
67305
67306 2004-03-07  Paul Eggert  <eggert@twinsun.com>
67307
67308         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
67309         All uses changed.  Check for sa_sigaction member; this fixes
67310         a bug first reported by Jason Andrade in
67311         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
67312
67313 2004-03-07  Paul Eggert  <eggert@twinsun.com>
67314
67315         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
67316         '#if' expressions.  Unlike the code it replaces, it does not
67317         depend on (defined _SC_PAGESIZE).  However, it does depend on
67318         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
67319         first reported by Jason Andrade in
67320         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
67321
67322 2004-02-25  Simon Josefsson  <jas@extundo.com>
67323
67324         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
67325
67326 2004-02-25  Simon Josefsson  <jas@extundo.com>
67327
67328         * lib/strdup.h: New file.
67329         * lib/strdup.c: Include it.
67330         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
67331         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
67332
67333 2004-02-23  Karl Berry  <karl@gnu.org>
67334
67335         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
67336         (from fencepost.gnu.org:/gd/gnuorg).
67337
67338 2004-02-23  Karl Berry  <karl@gnu.org>
67339
67340         * config/srclistvars.sh (GNUORG) [karl]: redefine.
67341         * config/srclist.txt: add maintain/standards documents.
67342
67343 2004-02-18  Bruno Haible  <bruno@clisp.org>
67344
67345         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
67346         Reported by Derek Robert Price <derek@ximbiot.com>.
67347
67348 2004-02-16  Karl Berry  <karl@gnu.org>
67349
67350         * config/mkinstalldirs, install-sh: update from automake.
67351
67352 2004-02-06  Karl Berry  <karl@gnu.org>
67353
67354         * m4/po.m4: update from gettext 0.14.1.
67355
67356 2004-02-06  Karl Berry  <karl@gnu.org>
67357
67358         * lib/config.charset: update from gettext 0.14.1.
67359
67360 2004-02-05  Paul Eggert  <eggert@twinsun.com>
67361
67362         Add comments and code, prompted by suggestions from Bruno Haible
67363         for sh-quote.
67364         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
67365         describing the enum quoting_style values.
67366         * lib/quotearg.c (quotearg_alloc): New function.
67367         (quotearg_buffer_restyled): Treat lone { and } as special.
67368         Treat = as special.  Work around bug with older shells
67369         that "see" a '\' that is really the 2nd byte of a multibyte char.
67370         Quote empty string with shell_quoting_style.
67371
67372 2004-02-03  Bruno Haible  <bruno@clisp.org>
67373
67374         * m4/pipe.m4: New file, from GNU gettext.
67375
67376 2004-02-03  Bruno Haible  <bruno@clisp.org>
67377
67378         * lib/pipe.h: New file, from GNU gettext.
67379         * lib/pipe.c: New file, from GNU gettext.
67380
67381 2004-01-27  Bruno Haible  <bruno@clisp.org>
67382
67383         * m4/execute.m4: New file, from GNU gettext.
67384
67385 2004-01-27  Bruno Haible  <bruno@clisp.org>
67386
67387         * lib/execute.h: New file, from GNU gettext.
67388         * lib/execute.c: New file, from GNU gettext.
67389         * lib/w32spawn.h: New file, from GNU gettext.
67390
67391 2004-01-24  Paul Eggert  <eggert@twinsun.com>
67392
67393         Merge from diffutils.
67394
67395         * lib/file-type.c (file_type): Add typed memory objects.
67396         * lib/file-type.h (S_TYPEISTMO): New macro.
67397
67398         * lib/c-stack.h (c_stack_action): Remove argv argument.
67399         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
67400         (die): Don't calculate message unless segv_action returns.
67401         (get_stack_location, min_address_from_argv, max_address_from_argv,
67402         volatile stack_base, volatile_stack_size): Remove.
67403         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
67404         that every segmentation violation is a stack overflow.  (Ouch!)
67405         See Debian bug 136249 (still outstanding) for more info about why
67406         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
67407
67408 2004-01-24  Paul Eggert  <eggert@twinsun.com>
67409
67410         Exit-status fix from coreutils.
67411
67412         Use exit_failure consistently in place of EXIT_FAILURE,
67413         so that program exit statuses are consistent on failure.
67414
67415         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
67416         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
67417         * lib/argmatch.h: Comment fix to match the above.
67418         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
67419         Now a macro referring to exit_failure, instead of a separate
67420         variable.  Include "exitfail.h" to get it.
67421         * lib/xstrtol.h: Include "exitfail.h".
67422         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
67423
67424         * lib/long-options.c (parse_long_options): Use prototype
67425         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
67426         for clarity.
67427
67428 2004-01-21  Jim Meyering  <jim@meyering.net>
67429
67430         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
67431         so as not to conflict with a different-sized __mktime_internal
67432         function in GNU libc.
67433         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
67434         Problem building statically-linked `ls' reported by Michael Brunnbauer.
67435
67436 2004-01-20  Karl Berry  <karl@gnu.org>
67437
67438         * config/config.guess: update from config.
67439
67440         * config/srclistvars.sh: GNUWWWLICENSES for karl.
67441
67442 2004-01-20  Bruno Haible  <bruno@clisp.org>
67443
67444         Safer stack allocation.
67445         * lib/setenv.c: Include allocsa.h.
67446         (alloca): Remove fallback definition.
67447         (freea): Remove macro.
67448         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
67449         instead of freea.
67450
67451 2004-01-20  Bruno Haible  <bruno@clisp.org>
67452
67453         * m4/eealloc.m4: New file, from GNU gettext.
67454
67455 2004-01-20  Bruno Haible  <bruno@clisp.org>
67456
67457         * m4/allocsa.m4: New file, from GNU gettext.
67458
67459 2004-01-20  Bruno Haible  <bruno@clisp.org>
67460
67461         * lib/xallocsa.h: New file, from GNU gettext.
67462         * lib/xallocsa.c: New file, from GNU gettext.
67463
67464 2004-01-20  Bruno Haible  <bruno@clisp.org>
67465
67466         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
67467
67468 2004-01-20  Bruno Haible  <bruno@clisp.org>
67469
67470         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
67471         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
67472         specially.
67473
67474 2004-01-20  Bruno Haible  <bruno@clisp.org>
67475
67476         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
67477         patch.
67478
67479 2004-01-20  Bruno Haible  <bruno@clisp.org>
67480
67481         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
67482
67483 2004-01-20  Bruno Haible  <bruno@clisp.org>
67484
67485         * lib/eealloc.h: New file.
67486
67487 2004-01-20  Bruno Haible  <bruno@clisp.org>
67488
67489         * lib/binary-io.h: Avoid warnings on Cygwin.
67490
67491 2004-01-20  Bruno Haible  <bruno@clisp.org>
67492
67493         * lib/allocsa.h: New file, from GNU gettext.
67494         * lib/allocsa.c: New file, from GNU gettext.
67495
67496 2004-01-18  Karl Berry  <karl@gnu.org>
67497
67498         * doc/gpl.texi, doc/lgpl.texi: new files.
67499
67500 2004-01-18  Karl Berry  <karl@gnu.org>
67501
67502         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
67503         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
67504
67505 2004-01-15  Paul Eggert  <eggert@twinsun.com>
67506
67507         Merge from coreutils.
67508
67509         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
67510         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
67511         (gl_DEFAULT_POSIX2_VERSION): Move
67512         the documentation from 'configure' into 'config.hin',
67513         so that 'configure --help' isn't burdened by it and
67514         we don't have to worry about its formatting there.
67515         Reword the documentation so that it's more succinct
67516         and can be run together into a single paragraph.
67517         * m4/same.m4 (gl_SAME): Check for pathconf.
67518
67519 2004-01-15  Paul Eggert  <eggert@twinsun.com>
67520
67521         Merge from coreutils.
67522
67523         * lib/posixver.c: Include posixver.h.
67524
67525         * lib/same.c: Include <stdbool.h>, <limits.h>.
67526         (_POSIX_NAME_MAX): Define if not defined.
67527         (MIN): New macro.
67528         (same_name): If file names are silently truncated, report
67529         that the file names are the same if they are the same after
67530         the silent truncation.
67531
67532         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
67533         conversion function.
67534         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
67535         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
67536         longer needed.
67537
67538 2004-01-15  Jim Meyering  <jim@meyering.net>
67539
67540         Merge from coreutils.
67541
67542         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
67543         if no library is required.
67544         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
67545         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
67546         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
67547         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
67548         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
67549         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
67550         value, $ac_cv_search_crypt, if it's "none required".
67551         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
67552         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
67553         not gl_FUNC_GETLOADAVG.
67554         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
67555         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
67556
67557 2004-01-15  Jim Meyering  <jim@meyering.net>
67558
67559         Merge from coreutils.
67560
67561         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
67562         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
67563         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
67564
67565         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
67566         optional configure-time default.
67567
67568         * lib/version-etc.c (version_etc_copyright): Update copyright date.
67569
67570         * lib/xreadlink.c (xreadlink): Correct outdated comment.
67571
67572 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
67573
67574         Merge from coreutils.
67575
67576         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
67577         value, $ac_cv_search_nanosleep, if it's "none required".
67578
67579 2004-01-14  Paul Eggert  <eggert@twinsun.com>
67580
67581         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
67582         with like-named macro in fnmatch.c.
67583         (EXT): Use an internal constant instead.
67584
67585         Merge fnmatch patches from glibc.
67586         * lib/fnmatch.c (mbsinit): Remove define.
67587         Add libc_hidden_ver (__fnmatch, fnmatch).
67588         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
67589         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
67590
67591 2004-01-14  Karl Berry  <karl@gnu.org>
67592
67593         * config/install-sh: update from automake.
67594
67595 2004-01-13  Karl Berry  <karl@gnu.org>
67596
67597         * config/install-sh: update from automake.
67598
67599 2004-01-09  Karl Berry  <karl@gnu.org>
67600
67601         * config/install-sh: update from automake.
67602
67603 2004-01-05  Karl Berry  <karl@gnu.org>
67604
67605         * config/config.{sub,guess}: update from config.
67606
67607 2003-12-31  Karl Berry  <karl@gnu.org>
67608
67609         * config/depcomp: update from automake.
67610
67611 2003-12-14  Karl Berry  <karl@gnu.org>
67612
67613         * lib/config.charset: update from gettext-runtime.
67614
67615 2003-12-03  Paul Eggert  <eggert@twinsun.com>
67616
67617         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
67618         Bug reported by Alfred M. Szmidt.
67619
67620 2003-12-03  Bruno Haible  <bruno@clisp.org>
67621
67622         * m4/gettext.m4: Upgrade from gettext-0.13.
67623         * m4/po.m4: Upgrade from gettext-0.13.
67624         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
67625         * m4/intmax.m4: New file, from gettext-0.13.
67626         * m4/printf-posix.m4: New file, from gettext-0.13.
67627
67628 2003-11-29  Karl Berry  <karl@gnu.org>
67629
67630         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
67631
67632 2003-11-25  Paul Eggert  <eggert@twinsun.com>
67633             Bruno Haible  <bruno@clisp.org>
67634
67635         * lib/printf-parse.h: Don't include sys/types.h.
67636         (ARG_NONE): New macro.
67637         (char_directive): Change type of *arg_index fields to size_t.
67638         * lib/printf-parse.c: Don't include sys/types.h.
67639         (SSIZE_MAX): Remove macro.
67640         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
67641         Remove unnecessary overflow check.
67642         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
67643         fields.
67644
67645 2003-11-25  Bruno Haible  <bruno@clisp.org>
67646
67647         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
67648
67649 2003-11-25  Bruno Haible  <bruno@clisp.org>
67650
67651         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
67652         gt_TYPE_SSIZE_T.
67653
67654 2003-11-24  Paul Eggert  <eggert@twinsun.com>
67655
67656         * modules/alloca: Remove dependency on xalloc.
67657
67658 2003-11-24  Paul Eggert  <eggert@twinsun.com>
67659
67660         * lib/alloca.c: Remove dependency on xalloc module.
67661         (xalloc_die): Remove.
67662         (memory_full) [!defined emacs]: New macro.
67663         [!defined emacs]: Don't include xalloc.h.
67664         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
67665         address arithmetic overflows.  Change datatypes a bit to avoid
67666         unnecessary casts.
67667
67668 2003-11-22  Jim Meyering  <jim@meyering.net>
67669
67670         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
67671         s/size/size_t/.
67672
67673 2003-11-21  Karl Berry  <karl@gnu.org>
67674
67675         * config/config.{sub,guess}: update from config.
67676
67677 2003-11-18  Karl Berry  <karl@gnu.org>
67678
67679         * config/config.{sub,guess}: update from config.
67680
67681         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
67682
67683 2003-11-17  Paul Eggert  <eggert@twinsun.com>
67684
67685         * README: Mention that S+T cannot overflow if S is the size of
67686         an existing object and T is sufficiently small.
67687
67688 2003-11-17  Jim Meyering  <jim@meyering.net>
67689
67690         On systems without utime and without a utimes function capable of
67691         dealing with a NULL struct utimbuf* argument, this utime replacement
67692         could -- in unusual circumstances -- leak a file descriptor.
67693         * lib/utime.c: Include <unistd.h> and <errno.h>.
67694         (utime_null): Be sure to close `fd' and to preserve errno.
67695         Reported by Geoff Collyer via Arnold Robbins.
67696
67697 2003-11-17  Bruno Haible  <bruno@clisp.org>
67698
67699         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
67700         (Depends-on): Add xsize.
67701
67702 2003-11-17  Bruno Haible  <bruno@clisp.org>
67703
67704         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
67705
67706 2003-11-17  Bruno Haible  <bruno@clisp.org>
67707
67708         * lib/vasnprintf.c (alloca): Remove fallback definition.
67709         (freea): Remove definition.
67710         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
67711         Reported by Paul Eggert.
67712
67713 2003-11-16  Paul Eggert  <eggert@twinsun.com>
67714             Bruno Haible  <bruno@clisp.org>
67715
67716         Protect against address arithmetic overflow.
67717         * lib/printf-args.h: Include stddef.h.
67718         (arguments): Change type of field 'count' to size_t.
67719         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
67720         'unsigned int' where appropriate.
67721         * lib/printf-parse.h: Include sys/types.h.
67722         (char_directive): Change type of *arg_index fields to ssize_t.
67723         (char_directives): Change type of fields 'count', max_*_length to
67724         size_t.
67725         * lib/printf-parse.c: Include sys/types.h and xsize.h.
67726         (SSIZE_MAX): Define fallback value.
67727         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
67728         instead of 'int' where appropriate. Check a_allocated, d_allocated
67729         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
67730         * lib/vasnprintf.c: Include xsize.h.
67731         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
67732         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
67733         overflow. Avoid wraparound when converting a width or precision from
67734         decimal to binary.
67735
67736 2003-11-16  Bruno Haible  <bruno@clisp.org>
67737
67738         Update from GNU gettext.
67739         * lib/printf-parse.c: Generalize to it can be compiled for wide
67740         strings.
67741         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
67742         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
67743         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
67744         SNPRINTF): New macros.
67745         Don't include <alloca.h> if the file is used inside libintl.
67746         (local_wcslen): New function, for Solaris 2.5.1.
67747         (VASNPRINTF): Use it instead of wcslen.
67748
67749 2003-11-16  Bruno Haible  <bruno@clisp.org>
67750
67751         * lib/xsize.h (xmax): New function.
67752         (xsum, xsum3, xsum4): Declare as "pure" functions.
67753
67754 2003-11-12  Paul Eggert  <eggert@twinsun.com>
67755
67756         * modules/xalloc (Files): Undo latest change, since xalloc.h
67757         no longer needs SIZE_MAX or PTRDIFF_MAX.
67758
67759 2003-11-12  Paul Eggert  <eggert@twinsun.com>
67760
67761         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
67762         gl_PTRDIFF_MAX.
67763
67764 2003-11-12  Paul Eggert  <eggert@twinsun.com>
67765
67766         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
67767         "return", to pacify some unknown compiler.  Problem reported
67768         by Joerg Schilling.
67769
67770 2003-11-12  Paul Eggert  <eggert@twinsun.com>
67771
67772         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
67773         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
67774         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
67775         heuristic is just as accurate as far as we know, and it removes a
67776         dependency on size_max.m4 and ptrdiff_max.m4.
67777
67778 2003-11-11  Bruno Haible  <bruno@clisp.org>
67779
67780         * modules/xsize (Files): Add m4/size_max.m4.
67781         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
67782
67783 2003-11-11  Bruno Haible  <bruno@clisp.org>
67784
67785         * m4/size_max.m4: New file.
67786         * m4/ptrdiff_max.m4: New file.
67787         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
67788         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
67789         (gl_XALLOC): Invoke it.
67790
67791 2003-11-11  Bruno Haible  <bruno@clisp.org>
67792
67793         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
67794         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
67795         defined.
67796
67797 2003-11-10  Paul Eggert  <eggert@twinsun.com>
67798
67799         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
67800         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
67801         rejected some allocations of exactly SIZE_MAX - 2 bytes.
67802         From Bruno Haible.
67803         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
67804         not (size_t) -1, since it's defined here.
67805
67806 2003-11-09  Karl Berry  <karl@gnu.org>
67807
67808         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
67809
67810 2003-11-06  Paul Eggert  <eggert@twinsun.com>
67811
67812         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
67813         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
67814         Reject sizes of exactly SIZE_MAX bytes.
67815         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
67816         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
67817
67818 2003-11-05  Bruno Haible  <bruno@clisp.org>
67819
67820         * lib/xsize.h: Include limits.h, to avoid a possible collision with
67821         SIZE_MAX defined in <limits.h> on Solaris.
67822
67823 2003-11-04  Jim Meyering  <jim@meyering.net>
67824
67825         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
67826         variable names, rather than @VAR@.
67827         * modules/poll: Likewise.
67828
67829 2003-11-04  Bruno Haible  <bruno@clisp.org>
67830
67831         * modules/xsize: New file.
67832         * modules/linebreak: Depend on xsize.
67833         * MODULES.html.sh (func_all_modules): Add xsize.
67834
67835 2003-11-04  Bruno Haible  <bruno@clisp.org>
67836
67837         * m4/xsize.m4: New file.
67838
67839 2003-11-04  Bruno Haible  <bruno@clisp.org>
67840
67841         * lib/xsize.h: New file.
67842         * lib/linebreak.c: Include xsize.h.
67843         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
67844         argument for overflow.
67845         Suggested by Paul Eggert.
67846
67847 2003-11-03  Karl Berry  <karl@gnu.org>
67848
67849         * config/config.{guess,sub}: update from config.
67850
67851 2003-11-03  Jim Meyering  <jim@meyering.net>
67852
67853         * modules/userspec (lib_SOURCES): Add userspec.h.
67854         (Include): Add "userspec.h".
67855         Improve description.
67856
67857 2003-11-03  Jim Meyering  <jim@meyering.net>
67858
67859         * lib/userspec.c: Include "userspec.h".
67860         * lib/userspec.h: New file.
67861
67862 2003-11-03  Bruno Haible  <bruno@clisp.org>
67863
67864         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
67865
67866 2003-11-03  Bruno Haible  <bruno@clisp.org>
67867
67868         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
67869         available, to avoid (extremely rare) race condition.
67870         Suggested by Paul Eggert.
67871
67872 2003-11-02  Karl Berry  <karl@gnu.org>
67873
67874         * config/srclist.txt (vasprintf.c): sync broken, sigh.
67875
67876 2003-10-31  Paul Eggert  <eggert@twinsun.com>
67877
67878         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
67879         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
67880         (read_filesystem_list): Set and use me_type_malloced.
67881         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
67882         whatever the type happens to be), for brevity and consistency.
67883         Check for size calculation overflow on Alphas running OSF/1.
67884
67885 2003-10-31  Jim Meyering  <jim@meyering.net>
67886
67887         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
67888
67889         * lib/linebuffer.c: Include <string.h> for declaration of memset.
67890
67891 2003-10-30  Paul Eggert  <eggert@twinsun.com>
67892             Bruno Haible  <bruno@clisp.org>
67893
67894         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
67895         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
67896
67897 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67898
67899         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
67900         netbsd*-gnu*.  Suggested by Robert Millan.
67901
67902 2003-10-29  Paul Eggert  <eggert@twinsun.com>
67903
67904         * modules/group-member: Depend on stdbool.
67905
67906 2003-10-29  Paul Eggert  <eggert@twinsun.com>
67907
67908         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
67909
67910 2003-10-29  Paul Eggert  <eggert@twinsun.com>
67911
67912         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
67913         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
67914         after the 'gnu' in these cases.  This fixes some bugs in the
67915         previous change, and is based on suggestions by Robert Millan.
67916
67917 2003-10-29  Paul Eggert  <eggert@twinsun.com>
67918
67919         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
67920         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
67921         no longer needed.
67922         * lib/quotearg.c (quotearg_n_options): Use it.
67923         * lib/group-member.c: Include <stdbool.h>.
67924         (free_group_info): Arg is now const *; don't free arg.
67925         (get_group_info): Now returns bool and accepts struct group_info *,
67926         rather than returning a malloc'ed struct group_info *.
67927         All uses changed.  Check for overflow in internal size calculation.
67928
67929         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
67930         rather than xmalloc/xrealloc.
67931         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
67932         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
67933         conformance bug: the old code used a pointer after freeing the
67934         storage that it addressed.
67935         * lib/hash.c (hash_initialize): Simplify the code by using
67936         xalloc_oversized rather than doing it by hand.
67937         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
67938         the buffer preserved.  Use free and xmalloc instead.
67939         * lib/quotearg.c (quotearg_n_options): Likewise.
67940         Use a simpler test for size overflow.  Don't use xalloc_oversized
67941         because unsigned int might be wider than size_t (!); this suggests
67942         that we should switch from unsigned int to size_t for slot numbers.
67943
67944 2003-10-28  Paul Eggert  <eggert@twinsun.com>
67945
67946         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
67947         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
67948         NetBSD kernels.  Requested by Richard Stallman.
67949
67950 2003-10-27  Paul Eggert  <eggert@twinsun.com>
67951
67952         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
67953         to allocate the returned structure.  Do not allocate a subarray,
67954         as x2nrealloc will do that.
67955         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
67956         instead of xnrealloc.
67957         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
67958
67959 2003-10-27  Bruno Haible  <bruno@clisp.org>
67960
67961         * lib/stdbool_.h: Better support for BeOS.
67962
67963 2003-10-26  Paul Eggert  <eggert@twinsun.com>
67964
67965         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
67966         now uses inline.
67967
67968 2003-10-26  Paul Eggert  <eggert@twinsun.com>
67969
67970         * lib/xalloc.h (xalloc_oversized): New static inline function, for
67971         callers that want to do their own size-overflow checking.  Include
67972         <stdbool.h>, since xalloc_oversized returns bool.
67973         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
67974         to use xalloc_oversized.
67975
67976         Add two functions x2realloc, x2nrealloc, for programs that grow
67977         arrays dynamically by doubling their sizes.
67978         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
67979         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
67980         New functions.
67981
67982         Port to C99 semantics for 'inline' of external functions.
67983         Bug reported by Bruno Haible.
67984         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
67985         with the old contents of xnmalloc.
67986         (xnmalloc, xmalloc): Use it.
67987         (xnrealloc_inline): New static inline function,
67988         with the old contents of xnrealloc.
67989         (xnrealloc, xrealloc): Use it.
67990
67991         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
67992         that.
67993
67994 2003-10-26  Karl Berry  <karl@gnu.org>
67995
67996         * config/srclist.txt (COPYING.DOC): no longer available from
67997         /gd/gnuorg; don't know where the ultimate source is.
67998
67999 2003-10-25  Paul Eggert  <eggert@twinsun.com>
68000
68001         Fix several address-calculation bugs in the hash modules,
68002         plus some minor code cleanup.
68003
68004         * lib/hash.h: Include <stdbool.h>, for bool.
68005         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
68006         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
68007         hash_get_n_entries, hash_get_max_bucket_length,
68008         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
68009         hash_rehash): Use size_t rather than unsigned.
68010         * lib/hash.c (struct hash_table, hash_get_n_buckets,
68011         hash_get_n_buckets_used, hash_get_n_entries,
68012         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
68013         hash_get_entries, hash_do_for_each, hash_string, is_prime,
68014         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
68015         Likewise.
68016         (SIZE_MAX): Define if not defined.
68017         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
68018         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
68019         hash_print):
68020         Use const * when possible.
68021         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
68022         (check_tuning): Fix bug: if tuning parameters were very close to
68023         0 or 1, rounding errors could have caused subscript violations.
68024         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
68025         (hash_initialize): Add 'fail:' label
68026         to free table and return NULL, and use it to simplify code.
68027         Use calloc rather than clearing the storage ourself.
68028         (hash_initialize, hash_rehash): Check for arithmetic overflow in
68029         buffer size calculations.
68030         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
68031         Include <stddef.h>, for size_t.
68032         * lib/hash-pjw.c (hash_pjw): Likewise.
68033         Switch to method described by Bruno Haible.
68034         Include <limits.h>, for CHAR_BIT.
68035         (SIZE_BITS): New macro.
68036
68037 2003-10-23  Paul Eggert  <eggert@twinsun.com>
68038
68039         * m4/getline.m4 (AM_FUNC_GETLINE):
68040         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
68041         hosts.  Problem reported by Derek Robert Price in
68042         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
68043         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
68044         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
68045
68046 2003-10-21  Paul Eggert  <eggert@twinsun.com>
68047
68048         * lib/getndelim2.c (getndelim2): When size calculation overflows,
68049         ceiling the allocation at NMAX bytes rather than silently
68050         discarding input bytes before NMAX is reached.  This makes
68051         a difference only if NMAX exceeds SIZE_MAX / 2.
68052
68053         * lib/obstack.c: Merge from glibc.
68054         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
68055         Add libc_hidden_def (_obstack_newchunk).
68056         (_obstack_free) [! defined _LIBC]: Remove.
68057         [defined _LIBC]: Make a strong alias from obstack_free, rather than
68058         a clone of the function body.
68059         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
68060         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
68061
68062         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
68063         glibc.
68064         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
68065         arg to memcpy.
68066
68067         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
68068         (obstack_ptr_grow_fast, obstack_int_grow_fast):
68069         Don't use lvalue casts, as GCC plans to remove support for them
68070         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
68071         was also present in the non-GCC version, indicating that this
68072         code had always been buggy and had never been widely used.
68073         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
68074         Use the fast variant of each macro, rather than copying the
68075         definiens of the fast variant; that way, we'll be more likely to
68076         catch future bugs in the fast variants.
68077
68078 2003-10-20  Bruno Haible  <bruno@clisp.org>
68079
68080         * modules/wait-process: New file.
68081         * MODULES.html.sh (func_all_modules): Add wait-process.
68082
68083 2003-10-20  Bruno Haible  <bruno@clisp.org>
68084
68085         * m4/wait-process.m4: New file.
68086
68087 2003-10-20  Bruno Haible  <bruno@clisp.org>
68088
68089         * lib/wait-process.h: New file, from GNU gettext.
68090         * lib/wait-process.c: New file, from GNU gettext.
68091
68092 2003-10-19  Jim Meyering  <jim@meyering.net>
68093
68094         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
68095         HPUX 10.20.
68096
68097 2003-10-18  Karl Berry  <karl@gnu.org>
68098
68099         * config/config.guess: update from config.
68100
68101 2003-10-16  Paul Eggert  <eggert@twinsun.com>
68102
68103         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
68104         (getgroups): First arg is int, not size_t.
68105         Don't let 'free' mangle errno.
68106
68107 2003-10-16  Paul Eggert  <eggert@twinsun.com>
68108
68109         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
68110
68111 2003-10-16  Karl Berry  <karl@gnu.org>
68112
68113         * config/config.{guess,sub}: update from config.
68114
68115 2003-10-16  Jim Meyering  <jim@meyering.net>
68116
68117         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
68118         memcpy.
68119
68120 2003-10-15  Paul Eggert  <eggert@twinsun.com>
68121
68122         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
68123         (SIZE_MAX): Remove.
68124         (new_exclude, add_exclude_file): Initial size no longer needs to
68125         be a power of 2.
68126         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
68127         our own address arithmetic overflow checking.
68128
68129         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
68130         (fnmatch): Do not alloca more than 2000 wide characters;
68131         instead, use malloc for large buffers.
68132         Check for address arithmetic overflow, and return -1
68133         with errno set to ENOMEM in that case.
68134         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
68135         (NEW_PATTERN): Do not alloca more than 8000 bytes;
68136         instead, return -1.  Check for address arithmetic overflow.
68137
68138 2003-10-14  Paul Eggert  <eggert@twinsun.com>
68139
68140         Handle invalid suffixes and overflow independently, so that
68141         callers can treat them independently as needed.  Fix some bugs in
68142         suffix handling, e.g., "100k@" was not diagnosed as an invalid
68143         suffix for a human-readable blocksize.  The major caller-visible
68144         change is the addition of a new
68145         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
68146         that both overflow and suffix chars were found.
68147
68148         * lib/human.c (humblock): Don't check separately for invalid suffix
68149         char; that is xstrtoumax's job (now that its bug is fixed).
68150         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
68151         INTMAX_MAX]: New macros.
68152         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
68153         TYPE_MAXIMUM): New macros.
68154         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
68155         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
68156         if overflow occurs, as it's what __strtol does and it's more useful
68157         in practice.
68158         (__xstrtol): If __strtol reports some error other than ERANGE,
68159         reflect it to the caller as LONGINT_INVALID.  If it reports
68160         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
68161         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
68162         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
68163         value.
68164         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
68165         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
68166         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
68167         [defined UINTMAX_MAX]: New macros.
68168
68169 2003-10-14  Bruno Haible  <bruno@clisp.org>
68170
68171         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
68172
68173 2003-10-14  Bruno Haible  <bruno@clisp.org>
68174
68175         * m4/sig_atomic_t: New file, from GNU gettext.
68176         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
68177
68178 2003-10-14  Bruno Haible  <bruno@clisp.org>
68179
68180         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
68181         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
68182         Also use volatile where needed.
68183
68184 2003-10-12  Paul Eggert  <eggert@twinsun.com>
68185
68186         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
68187         Change maintainer from Bruno Haible to 'all'.
68188
68189 2003-10-12  Paul Eggert  <eggert@twinsun.com>
68190
68191         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
68192
68193 2003-10-12  Paul Eggert  <eggert@twinsun.com>
68194
68195         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
68196         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
68197         and define in terms of the other primitives.
68198         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
68199         (SIZE_MAX): Define if not already defined.
68200         (array_size_overflow): New function.
68201         (xalloc_die): Abort instead of exiting if 'error' returns.
68202         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
68203         (xmalloc, xrealloc): Use them.
68204         (xcalloc): Check for address arithmetic overflow.
68205         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
68206         a bit faster than strcpy.
68207
68208 2003-10-10  Simon Josefsson  <jas@extundo.com>
68209
68210         * modules/argp (Depends-on): Add restrict and strcase.
68211
68212 2003-10-10  Simon Josefsson  <jas@extundo.com>
68213
68214         * m4/argp.m4: Add AC_C_INLINE.
68215
68216 2003-10-08  Paul Eggert  <eggert@twinsun.com>
68217
68218         Merge getpass from libc, plus a few fixes.
68219
68220         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
68221         Include <stdbool.h>.
68222         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
68223         __fsetlocking to empty.
68224         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
68225         do include <bits/libc-lock.h>.
68226         Do not include <fcntl.h>; not needed.
68227         [_LIBC]: Include <wchar.h>.
68228         (NOTCANCEL_MODE): New macro.
68229         (flockfile, funlockfile) [_LIBC]: New macros.
68230         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
68231         [!_LIBC]: New macros.
68232         (call_fclose): New function.
68233         (getpass): Use it.  Save tty stream separately; this simplifies the
68234         code and makes it more reliable if stdin happens to equal stdout.
68235         Invoke __fsetlocking on tty.
68236         Handle thread cancellation if needed.
68237         Namespace cleanup (use __tcgetattr, __getline).
68238         Use bool for Booleans.
68239         [USE_IN_LIBIO]: Handle wide streams.
68240         [!_LIBC]: Unconditionally do the fseek, since we don't know what
68241         stream might go where.
68242
68243         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
68244         doesn't have to include <stdio.h> before us.
68245         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
68246         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
68247         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
68248         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
68249         if not declared, so that we can use getpass.c code from libc without
68250         rewriting it.
68251         (flockfile, ftrylockfile, funlockfile): New macros.
68252
68253 2003-10-08  Paul Eggert  <eggert@twinsun.com>
68254
68255         * modules/getpass: Depend on stdbool.
68256
68257 2003-10-08  Paul Eggert  <eggert@twinsun.com>
68258
68259         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
68260
68261 2003-10-07  Karl Berry  <karl@gnu.org>
68262
68263         * config/config.{guess,sub}: update from config.
68264
68265 2003-10-06  Jim Meyering  <jim@meyering.net>
68266             Bruno Haible  <bruno@clisp.org>
68267
68268         This lets translators provide better translations for the
68269         "Written by ..." part of --version output.
68270         * lib/version-etc.h: Include stdarg.h.
68271         (version_etc_copyright): Declare as readonly.
68272         (version_etc): Make this function variadic with a NULL-terminated list
68273         of author name strings.
68274         (version_etc_va): New declaration.
68275         * lib/version-etc.c: Include stdarg.h, stdlib.h.
68276         (version_etc_copyright): Declare as readonly.
68277         (version_etc_va): New function. Provide a different translatable string
68278         for each possible number of authors < 10. Abbreviate when there are 10
68279         authors or more.
68280         (version_etc): Make this function variadic. Call version_etc_va.
68281         Suggestion from Gary V. Vaughan.
68282
68283         * lib/long-options.h (parse_long_options): Change prototype: the
68284         authors string is moved to the end and becomes variadic.
68285         * lib/long-options.c: Include stdarg.h.
68286         (parse_long_options): Make this function variadic, too.
68287         Call version_etc_va, not version_etc.
68288
68289 2003-10-06  Bruno Haible  <bruno@clisp.org>
68290
68291         * modules/version-etc-2: Remove file.
68292         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
68293
68294 2003-10-06  Bruno Haible  <bruno@clisp.org>
68295
68296         * modules/fatal-signal: New file.
68297         * MODULES.html.sh (func_all_modules): Add fatal-signal.
68298
68299 2003-10-06  Bruno Haible  <bruno@clisp.org>
68300
68301         * m4/fatal-signal.m4: New file.
68302         * m4/signalblocking.m4: New file, from GNU gettext.
68303
68304 2003-10-06  Bruno Haible  <bruno@clisp.org>
68305
68306         * lib/version-etc-2.h: Remove file.
68307         * lib/version-etc-2.c: Remove file.
68308
68309 2003-10-06  Bruno Haible  <bruno@clisp.org>
68310
68311         * lib/fatal-signal.h: New file, from GNU gettext.
68312         * lib/fatal-signal.c: New file, from GNU gettext.
68313
68314 2003-10-05  Paul Eggert  <eggert@twinsun.com>
68315
68316         * README: Rework advice for preventing empty .o files.
68317         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
68318         not <sys/types.h>.
68319
68320 2003-10-04  Karl Berry  <karl@gnu.org>
68321
68322         * lib/argp*: update from libc.
68323
68324 2003-10-04  Karl Berry  <karl@gnu.org>
68325
68326         * config/config.{guess,sub}: update from config.
68327
68328 2003-10-02  Bruno Haible  <bruno@clisp.org>
68329
68330         * modules/lchown (Include): Add lchown.h.
68331         * modules/time_r (Include): Use "..." syntax.
68332         * modules/xgetdomainname (Include): Add xgetdomainname.h.
68333
68334 2003-10-01  Simon Josefsson  <jas@extundo.com>
68335
68336         * MODULES.html.sh (func_all_modules): Move gethostname from section
68337         'based on' to section 'lacking' POSIX:2001.
68338
68339 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
68340
68341         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
68342         to output mode on the same stream.
68343
68344 2003-09-29  Paul Eggert  <eggert@twinsun.com>
68345
68346         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
68347         Fix arg typo in previous patch.
68348
68349 2003-09-28  Jim Meyering  <jim@meyering.net>
68350
68351         * lib/error.c: Correct cpp indentation.
68352
68353 2003-09-27  Paul Eggert  <eggert@twinsun.com>
68354
68355         * modules/free: New file.
68356
68357 2003-09-27  Paul Eggert  <eggert@twinsun.com>
68358
68359         * m4/free.m4: New file.
68360
68361 2003-09-27  Paul Eggert  <eggert@twinsun.com>
68362
68363         * lib/minmax.h (MIN, MAX)
68364         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
68365         Omit the special code that used __typeof__, since we worry that
68366         it could be more trouble than it's worth.  See:
68367         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
68368         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
68369
68370         * lib/free.c: New file.
68371
68372 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
68373
68374         Trivial fixes to Makefile.am parts of module listings.
68375         * modules/strstr: Append strstr.h to lib_SOURCES.
68376         * modules/strcase: Likewise, for strcase.h.
68377
68378 2003-09-27  Karl Berry  <karl@gnu.org>
68379
68380         * config/mkinstalldirs: update from automake.
68381
68382 2003-09-26  Paul Eggert  <eggert@twinsun.com>
68383
68384         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
68385         (error_tail): Do not loop, reallocating temporary buffer, since
68386         the output cannot contain more wide characters than the input
68387         contains bytes, the size must be big enough already.  This avoids
68388         one potential size overflow calculation.  Check for size overflow
68389         when calculating temporary buffer size.  Free temporary buffer
68390         when done, if it was allocated with malloc; this plugs a memory
68391         leak.  Remove casts from void * to pointers, that are no longer
68392         needed now that we're assuming C89 or better.
68393
68394         Merge error changes from glibc.
68395
68396         * lib/error.c, error.h: Update copyright notice header to match glibc.
68397         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
68398         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
68399         Disable cancellation while printing error.
68400         * lib/error.h: Prepend __ to parameter names.
68401
68402 2003-09-26  Jim Meyering  <jim@meyering.net>
68403
68404         * lib/error.c (error_tail): Move some declarations
68405         into inner scope where the local variables are used.
68406
68407 2003-09-26  Bruno Haible  <bruno@clisp.org>
68408
68409         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
68410         stpncpy().
68411         Don't define stpncpy through config.h; it's now done through stpncpy.h.
68412
68413 2003-09-26  Bruno Haible  <bruno@clisp.org>
68414
68415         * lib/stpncpy.h (gnu_stpncpy): New declaration.
68416         (stpncpy): Define as alias for gnu_stpncpy.
68417         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
68418
68419 2003-09-25  Simon Josefsson  <jas@extundo.com>
68420
68421         * lib/xgetdomainname.h: New file.
68422         * lib/xgetdomainname.c: New file.
68423
68424 2003-09-25  Simon Josefsson  <jas@extundo.com>
68425             Bruno Haible  <bruno@clisp.org>
68426
68427         * modules/getdomainname: New file.
68428         * modules/xgetdomainname: New file.
68429         * MODULES.html.sh (func_all_modules): Add getdomainname,
68430         xgetdomainname.
68431
68432 2003-09-25  Simon Josefsson  <jas@extundo.com>
68433             Bruno Haible  <bruno@clisp.org>
68434
68435         * m4/getdomainname.m4: New file.
68436
68437 2003-09-25  Simon Josefsson  <jas@extundo.com>
68438             Bruno Haible  <bruno@clisp.org>
68439
68440         * lib/getdomainname.h: New file.
68441         * lib/getdomainname.c: New file.
68442
68443 2003-09-25  Karl Berry  <karl@gnu.org>
68444
68445         * lib/argp-fmtstream.c, argp-help.c: update from libc.
68446
68447 2003-09-25  Karl Berry  <karl@gnu.org>
68448
68449         * config/install-sh: update from automake.
68450
68451 2003-09-25  Bruno Haible  <bruno@clisp.org>
68452
68453         * modules/version-etc-2: New file, from modules/version-etc with
68454         modifications.
68455         * MODULES.html.sh (func_all_modules): Add version-etc-2.
68456
68457 2003-09-25  Bruno Haible  <bruno@clisp.org>
68458
68459         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
68460         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
68461
68462 2003-09-24  Simon Josefsson  <jas@extundo.com>
68463
68464         * modules/xgethostname: Add xgethostname.h.
68465
68466 2003-09-24  Paul Eggert  <eggert@twinsun.com>
68467
68468         * lib/linebuffer.c (freebuffer): Don't free the argument, just
68469         the buffer associated with the argument.  Bug reported by
68470         Simon Josefsson.
68471
68472 2003-09-24  Paul Eggert  <eggert@twinsun.com>
68473
68474         * README: Document assumptions that 'int' is at least 32 bits
68475         wide, that integer arithmetic is 2's complement without overflow,
68476         that there are no holes in integer values, that adding sizes of
68477         two nonoverlapping objects can't overflow, and that all-bits-zero
68478         yields scalar zero.  Fix spelling and capitalization typos.
68479
68480 2003-09-19  Karl Berry  <karl@gnu.org>
68481
68482         * lib/argp.h: update from libc.
68483
68484 2003-09-17  Paul Eggert  <eggert@twinsun.com>
68485
68486         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
68487         to avoid spurious warnings like "AC_RUN_IFELSE was called before
68488         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
68489
68490 2003-09-17  Paul Eggert  <eggert@twinsun.com>
68491
68492         * gnulib-tool: Use "test -h", not "test -L", for portability
68493         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
68494         (tags_regexp): Remove, since \| doesn't conform to POSIX.
68495         (sed_extract_prog): Issue s commands one-by-one, rather than
68496         using \| in one s command.
68497
68498 2003-09-16  Paul Eggert  <eggert@twinsun.com>
68499
68500         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
68501         input error, instead of returning NULL the next time we are called
68502         (and therefore losing track of errno).
68503
68504 2003-09-16  Bruno Haible  <bruno@clisp.org>
68505
68506         * gnulib-tool (func_create_testdir): Warn about duplicated
68507         dependencies.
68508
68509 2003-09-15  Paul Eggert  <eggert@twinsun.com>
68510
68511         * modules/argmatch, modules/fatal, modules/obstack,
68512         modules/xalloc, modules/xgethostname: Sort dependencies by
68513         importance, not alphabetically.
68514
68515 2003-09-15  Paul Eggert  <eggert@twinsun.com>
68516
68517         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
68518         fails, so that the caller gets the proper errno.
68519
68520         * lib/readutmp.c (read_utmp): Likewise.
68521         Check for fstat error.  Close stream and free storage
68522         when failing.
68523
68524 2003-09-14  Karl Berry  <karl@gnu.org>
68525
68526         * config/srclist.txt (strdup.c): disable for c89 changes.
68527
68528 2003-09-14  Jim Meyering  <jim@meyering.net>
68529
68530         * lib/getloadavg.c: Correct cpp indentation.
68531         * lib/strdup.c: Likewise.
68532         * lib/vasnprintf.c: Likewise.
68533
68534 2003-09-14  Bruno Haible  <bruno@clisp.org>
68535
68536         * modules/fwriteerror: New file.
68537         * MODULES.html.sh (func_all_modules): Add fwriteerror.
68538
68539 2003-09-14  Bruno Haible  <bruno@clisp.org>
68540
68541         * lib/fwriteerror.h: New file.
68542         * lib/fwriteerror.c: New file.
68543
68544 2003-09-12  Paul Eggert  <eggert@twinsun.com>
68545
68546         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
68547         modules/xgethostname, modules/xalloc: Depend on exit.
68548
68549 2003-09-12  Paul Eggert  <eggert@twinsun.com>
68550
68551         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
68552
68553         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
68554         and AC_MINIX, too, so that their extensions are available.
68555
68556         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
68557         This macro has been superseded by gl_BACKUPFILE.
68558
68559         More patches to assume C89 or better.
68560
68561         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
68562
68563         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
68564         unconditionally.
68565         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
68566         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
68567         Include <string.h>, <stdlib.h> unconditionally.
68568         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
68569         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
68570         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
68571         headers or for string.h.
68572         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
68573         or strtoul.
68574
68575         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
68576         headers.
68577         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
68578         * m4/userspec.m4 (gl_USERSPEC): Likewise.
68579         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
68580         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
68581         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68582         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
68583         memcpy, memset.
68584         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
68585         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
68586         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
68587         strtol.
68588         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
68589         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
68590         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
68591         strtoul.
68592
68593 2003-09-12  Paul Eggert  <eggert@twinsun.com>
68594
68595         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
68596         * lib/obstack.c [!defined _LIBC]: Likewise.
68597         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
68598         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
68599         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
68600
68601         More changes to assume C89 or better.
68602
68603         * lib/error.c (error_tail): Assume vprintf.
68604
68605         * lib/argmatch.c (getenv): Remove decl.
68606         * lib/progreloc.c (get_full_program_name): Define via prototype.
68607         * lib/setenv.c (clearenv): Likewise.
68608         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
68609         needed.
68610         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
68611         (malloc, memcpy): Remove decls.
68612         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
68613         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
68614         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
68615         (memcpy): Remove macro.
68616         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
68617         (__P): Remove.  All uses removed.
68618         (PTR): Remove.  All uses changed to void *.
68619         (CHAR_BIT, NULL): Remove.
68620         (spaces, zeros, memset_space, memset_zero)
68621         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
68622         Remove.
68623         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
68624         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
68625         Define with prototype.
68626         Remove now-unnecessary prototype decl.
68627         (extra_args_spec): Assume ANSI C.  All uses changed.
68628         (extra_args_spec_iso): Remove.
68629         (my_strftime, emacs_strftimeu): Define via prototype.
68630         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
68631         unconditionally.
68632         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
68633         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
68634         (strtoul, strtol): Remove decls.
68635         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
68636         LONG_MAX): Remove.
68637         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
68638         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
68639         (LOCALE_PARAM_PROTO): New macro.
68640         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
68641         (INTERNAL (strtol), strtol): Define with a prototype.
68642         (PARAMS): Remove.  All uses removed.
68643         * lib/tempname.c: Include <string.h> unconditionally.
68644         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
68645         * lib/xgethostname.c (main): Define with a prototype.
68646         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
68647         Include <stdlib.h> unconditionally.
68648         (calloc, malloc, realloc, free): Remove decls.
68649         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
68650         Include <stdlib.h> unconditionally.  Sort include file names.
68651         (strtod): Remove.
68652         (xstrtod): Define with a prototype.
68653         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
68654         (strtol, strtoul): Remove decls.
68655
68656 2003-09-11  Paul Eggert  <eggert@twinsun.com>
68657
68658         More patches to assume C89 or better.
68659         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
68660         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
68661         string.h, memchr, STDC_HEADERS.
68662
68663 2003-09-11  Paul Eggert  <eggert@twinsun.com>
68664
68665         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
68666         Include <stdlib.h>, <string.h> unconditionally.
68667         Remove now-unnecessary cast to char *.
68668         * lib/strnlen.c: Include <string.h> unconditionally.
68669         * lib/yesno.c (yesno): Define with a prototype.
68670
68671 2003-09-11  Bruno Haible  <bruno@clisp.org>
68672
68673         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
68674
68675 2003-09-10  Jim Meyering  <jim@meyering.net>
68676
68677         * lib/error.c: Correct indentation of cpp directives.
68678
68679 2003-09-10  Bruno Haible  <bruno@clisp.org>
68680
68681         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
68682         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
68683         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
68684         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
68685         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
68686         <stdlib.h> and <string.h> checks.
68687         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
68688         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
68689
68690 2003-09-10  Bruno Haible  <bruno@clisp.org>
68691
68692         * lib/strcspn.c: Include <string.h> unconditionally.
68693         * lib/strpbrk.c: Include <string.h> unconditionally.
68694         * lib/strstr.c: Include <string.h> unconditionally.
68695         * lib/unicodeio.c: Include <string.h> unconditionally.
68696         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
68697         * lib/unsetenv.c: Likewise.
68698         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
68699         * lib/yesno.c: Include <stdlib.h> unconditionally.
68700         (rpmatch): Add prototype.
68701
68702 2003-09-09  Paul Eggert  <eggert@twinsun.com>
68703
68704         More patches to assume C89 or better.
68705         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
68706         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
68707         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
68708         or for string.h.
68709         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
68710         stdlib.h.
68711         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
68712         C headers.
68713         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
68714         string.h.
68715         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
68716         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
68717         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
68718         or for string.h.
68719         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
68720         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
68721         C headers.
68722         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
68723         memcpy.
68724         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
68725         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
68726         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
68727         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
68728         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
68729         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
68730         string.h, free.
68731         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
68732         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
68733         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
68734         C headers, or for string.h.
68735         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
68736         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
68737         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
68738         headers, memory.h, stdlib.h, string.h, strings.h.
68739         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
68740         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
68741         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
68742         strchr.
68743         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
68744         headers, memory.h, string.h.
68745         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
68746         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
68747         free.
68748         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
68749         headers.
68750         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
68751         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
68752         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
68753         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
68754         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
68755
68756 2003-09-09  Paul Eggert  <eggert@twinsun.com>
68757
68758         More K&R removal.
68759
68760         * lib/acosl.c (main): Use a prototype.
68761         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
68762         tanl.c: Likewise.
68763
68764         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
68765
68766         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
68767         (getopt, etopt_long, getopt_long_only, _getopt_internal)
68768         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
68769         with a prototype.
68770         * lib/getopt.c (const): Remove macro.
68771         Include <string.h> unconditionally.
68772         (my_index): Remove; all uses changed to strchr.
68773         (strlen): Remove decl.
68774         (exchange): Remove forward decl; no longer needed.
68775         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
68776         Define with prototype.
68777         * lib/getopt1.c (const): Remove macro.
68778         (getopt_long, getopt_long_only, main): Define with prototype.
68779
68780         * lib/getugroups.c: Include <string.h> unconditionally.
68781
68782         * lib/getusershell.c: Include <stdlib.h> unconditionally.
68783         (getusershell, setusershell, endusershell, readname, main):
68784         Define with prototypes.
68785
68786         * lib/group-member.c: Include group-member.h first.
68787         Include <stdlib.h> unconditionally.
68788
68789         * lib/hard-locale.c: Include hard-locale.h first.
68790         Include <stdlib.h>, <string.h> unconditionally.
68791
68792         * lib/hash.c (free, malloc): Remove decls.
68793         Include <stdlib.h> unconditionally.
68794
68795         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
68796         (getenv): Do not declare.
68797
68798         * lib/idcache.c: Include <string.h> unconditionally.
68799
68800         * lib/long-options.c: Include long-options.h first, to test interface.
68801         Include <stdlib.h> unconditionally.
68802
68803         * lib/makepath.c: Include makepath.h first, to test interface.
68804         Include <stdlib.h> and <string.h> unconditionally.
68805
68806         * lib/linebuffer.c: Include <stdlib.h>.
68807         (free): Remove decl.
68808
68809         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
68810         stddef.h. rpl_malloc returns void *, not char *.
68811         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
68812         prototype.
68813
68814         * lib/md5.h: Include <limits.h> unconditionally.
68815         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
68816         (__P): Remove; all uses removed.
68817         * lib/md5.c: Include "md5.h" first.
68818         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
68819         md5_buffer, md5_process_bytes, md5_process_block):
68820         Define with prototypes.
68821         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
68822         * lib/sha.c: Include "sha.h" first.
68823         Include <stdlib.h>, <string.h> unconditionally.
68824
68825         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
68826         * lib/memcmp.c (__ptr_t): Likewise.
68827         * lib/memrchr.c (__ptr_t): Likewise.
68828         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
68829         Include <string.h> unconditionally.
68830         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
68831         * lib/memchr.c: Include <stdlib.h> unconditionally.
68832         * lib/memchr.c (LONG_MAX): Remove.
68833         * lib/memrchr.c (LONG_MAX): Likewise.
68834         * lib/memchr.c (__memchr): Define via a prototype.
68835         * lib/memrchr.c (__memrchr): Likewise.
68836         * lib/memcmp.c (__P): Remove, and remove all uses.
68837         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
68838         Remove forward decls; no longer needed.
68839         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
68840         Use types required by C89 in prototype.
68841
68842         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
68843         * lib/savedir.c: Likewise.
68844         * lib/mkdir.c (free): Remove decl.
68845         * lib/rmdir.c (rmdir): Define with a prototype.
68846         * lib/savedir.c: Include savedir.h first, to test interface.
68847
68848         * lib/mktime.c (STDC_HEADERS): Remove.
68849         Include <stdlib.h>, <string.h> unconditionally.
68850
68851         * lib/modechange.c: Include <stdlib.h> unconditionally.
68852         (malloc): Remove decl.
68853
68854         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
68855         (free): Remove decl.
68856
68857         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
68858         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
68859         (This type really should be intptr_t, but that's a C99ism.)
68860         (_obstack_memcpy): Remove: all uses changed to memcpy.
68861         Include <string.h> unconditionally.
68862         (struct obstack): Assume __STDC__ for types of members
68863         chunkfun, freefun, extra_arg.
68864         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
68865         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
68866         obstack_begin, obstack_specify_allocation,
68867         obstack_specify_allocation_with_arg, obstack_chunkfun,
68868         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
68869         Remove unprototyped decls and the macros that use them.
68870         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
68871         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
68872         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
68873         (defined __STDC__ && __STDC__)]:
68874         Remove nonprototyped code.
68875         Include <stdlib.h> unconditionally.
68876         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
68877         _obstack_allocated_p, _obstack_free, obstack_free,
68878         _obstack_memory_used, print_and_abort):
68879         Define using prototypes.
68880         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
68881         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
68882         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
68883         obstack_next_free, obstack_object_size, obstack_room) [0]:
68884         Remove unused, unprototyped code.
68885
68886         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
68887
68888         * lib/physmem.c (physmem_total, physmem_available, main): Define
68889         with prototypes.
68890
68891         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
68892         (main): Define with a prototype.
68893
68894         * lib/posixver.c (getenv): Remove decl.
68895
68896         * lib/putenv.c (malloc): Returns void *, not char *.
68897         Include <string.h> unconditionally.
68898         (strchr, memcpy, NULL): Do not define.
68899
68900         * lib/readtokens.c: Include readtokens.h first, to test interface.
68901         Include <stdlib.h>, <string.h> unconditionally.
68902         (init_tokenbuffer): Define with a prototype.
68903
68904         * lib/regex.c (PARAMS): Remove.  All uses removed.
68905         All uses of _RE_ARGS removed, too.
68906         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
68907         unconditionally.
68908         (bzero): Assume memset exists.
68909         (memcmp, memcpy, NULL): Remove.
68910         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
68911         char, or assignments to local vars of type signed char.
68912         (init_syntax_once, PREFIX(extract_number_and_incr),
68913         PREFIX(print_partial_compiled_pattern),
68914         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
68915         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
68916         PREFIX(regex_grow_registers), PREFIX(regex_compile),
68917         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
68918         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
68919         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
68920         wcs_compile_range, byte_compile_range, truncate_wchar,
68921         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
68922         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
68923         count_mbs_length, wcs_re_match_2_internal,
68924         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
68925         PREFIX(alt_match_null_string_p),
68926         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
68927         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
68928         regfree, PREFIX(extract_number)): Define with prototype.  Remove
68929         now-unnecessary declaration, if any.
68930         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
68931         regcomp, regexec):
68932         Remove now-unnecessary casts among pointer types.
68933         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
68934
68935         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
68936         (free): Remove decl.
68937
68938         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
68939
68940         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
68941         (free): Remove decl.
68942
68943         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
68944         * lib/xgetcwd.c: Likewise.
68945
68946         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
68947         (free): Remove decl.
68948
68949         * lib/strchrnul.c (strchrnul): Define with a prototype.
68950         Fix bug: c_in was not converted to char before searching.
68951
68952         The following changes are not K&R related:
68953
68954         * lib/group-member.h: Include <sys/types.h>, so that this file is
68955         self-contained.
68956         * lib/makepath.h: Likewise.
68957
68958         * lib/getusershell.c (readname, default_index, line_size, readname):
68959         Use size_t, not int, for sizes.
68960         (readname): If the size overflows, report an error instead of
68961         looping forever.
68962
68963 2003-09-09  Paul Eggert  <eggert@twinsun.com>
68964
68965         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
68966         libc.
68967
68968 2003-09-09  Paul Eggert  <eggert@twinsun.com>
68969
68970         * README: New section: portability guidelines.
68971
68972 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
68973
68974         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
68975         C89 spec.
68976
68977 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
68978
68979         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
68980
68981 2003-09-08  Paul Eggert  <eggert@twinsun.com>
68982
68983         Assume C89 or better; remove K&R cruft.
68984         A few of these changes were first proposed by Derek Robert Price
68985         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
68986
68987         * lib/addext.c: Include <string.h> unconditionally.
68988         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
68989         Don't declare getenv or malloc.
68990
68991         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
68992         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
68993         (NULL): Remove.
68994         (find_stack_direction, alloca): Use prototypes.
68995
68996         * lib/atexit.c (atexit): Define using a prototype.
68997
68998         * lib/basename.c, dirname.c, stripslash.c:
68999         Include <string.h> unconditionally.
69000
69001         * lib/bcopy.c: Include <stddef.h>.
69002         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
69003
69004         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
69005
69006         * lib/error.h (error, error_at_line, error_print_progname)
69007         [! (defined (__STDC__) && __STDC__)]: Remove decls.
69008         * lib/error.c: Include error.h first, to check interface.
69009         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
69010         (VA_START): Remove; all uses changeed to va_start.
69011         (exit, strerror): Remove decls.
69012         (error_print_progname): Prototype uncondionally.
69013         Don't include <errno.h>; no longer needed.
69014         (private_strerror): Remove.
69015         (error_tail): Always define.
69016         (error, error_at_line): Assume C89 or better; always use prototypes.
69017         * lib/fatal.c: Include "fatal.h" first, to test interface.
69018         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
69019         (VA_START): Remove; all uses changed to va_start.
69020         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
69021         this case.
69022         (exit): Remove decl.
69023         (fatal): Prototype unconditionally.  Assume va_start works.
69024         Abort at end, to pacify gcc.
69025
69026         * lib/euidaccess.c (main): Define with a prototype.
69027
69028         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
69029
69030         * lib/exitfail.c: Include <stdlib.h> unconditionally.
69031
69032         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
69033         prototypes.
69034         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
69035         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
69036         (getenv): Remove decl.
69037         (fnmatch): Define using a prototype.
69038         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
69039         (FCT): Define using a prototype.
69040
69041         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
69042
69043         * lib/gethostname.c: Include <stddef.h>.
69044         (gethostname): Define with prototype.  Length is size_t, not int.
69045
69046 2003-09-08  Paul Eggert  <eggert@twinsun.com>
69047
69048         Assume C89 or better; remove K&R cruft.
69049         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
69050         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
69051         string.h, getenv, malloc.
69052         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
69053         headers.
69054         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
69055         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
69056         do not check for strerror.
69057         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
69058         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
69059         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
69060         do not check for doprnt or vprintf.
69061         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
69062         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
69063
69064 2003-09-08  Paul Eggert  <eggert@twinsun.com>
69065
69066         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
69067         getversion.c should have been removed then, but was accidentally
69068         preserved.
69069
69070         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
69071         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
69072
69073 2003-09-08  Karl Berry  <karl@gnu.org>
69074
69075         * config/config.sub, config.guess, srclistvars.sh: update from savannah
69076                 config, forget about prep.
69077
69078         * config/depcomp, missing: update from automake.
69079
69080 2003-09-07  Paul Eggert  <eggert@twinsun.com>
69081
69082         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
69083         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
69084
69085 2003-09-07  Paul Eggert  <eggert@twinsun.com>
69086
69087         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
69088         copy_tm_result.  Bug reported by Simon Josefsson in
69089         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
69090
69091 2003-09-06  Paul Eggert  <eggert@twinsun.com>
69092
69093         * m4/time_r.m4: New file.
69094         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
69095         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
69096         is. Check for timegm declaration.
69097         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
69098         Do not check for gmtime_r.
69099         Replace mktime if __mktime_internal does not exist and if mktime
69100         hasn't been replaced already.
69101
69102 2003-09-06  Paul Eggert  <eggert@twinsun.com>
69103
69104         * lib/time_r.c, lib/time_r.h: New files.
69105
69106         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
69107         __localtime_r.
69108         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
69109         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
69110
69111         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
69112         __gmtime_r.
69113         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
69114         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
69115         Include <time_r.h>.
69116
69117         * lib/timegm.c: Switch to glibc implementation, with the following
69118         changes:
69119         [defined HAVE_CONFIG_H]: Include <config.h>.
69120         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
69121         (__mktime_internal) [!defined _LIBC]: New decl.
69122         (__gmtime_r) [!defined _LIBC]: New macro and function.
69123         (timegm): Use a prototype, since gnulib assumes C89.
69124         Do not bother declaring tmp to be const, as it's not really usefu.
69125         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
69126         (timegm): Declare only if HAVE_DECL_TIMEGM.
69127
69128 2003-09-06  Paul Eggert  <eggert@twinsun.com>
69129
69130         * MODULES.html.sh (func_all_modules): Add time_r.
69131         * modules/time_r: New file.
69132         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
69133         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
69134
69135 2003-09-03  Paul Eggert  <eggert@twinsun.com>
69136
69137         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
69138         Bug reported by Lute Kamstra in
69139         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
69140
69141         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
69142         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
69143         course with correspondingly smaller numbers for tomorrow and
69144         yesterday.  From Tadayoshi Funaba.  Originally installed into
69145         sh-utils on 1999-08-07, but the patch got lost (I guess during the
69146         coreutils merge?).
69147
69148 2003-08-31  Simon Josefsson  <jas@extundo.com>
69149
69150         * modules/timegm: New file.
69151         * MODULES.html.sh (func_all_modules): Add timegm.
69152
69153 2003-08-31  Simon Josefsson  <jas@extundo.com>
69154
69155         * m4/timegm.m4: New file.
69156
69157 2003-08-31  Simon Josefsson  <jas@extundo.com>
69158
69159         * lib/timegm.h: New file.
69160         * lib/timegm.c: New file.  Based on
69161         wget-1.8.2/src/http.c:mktime_from_utc.
69162
69163 2003-08-31  Karl Berry  <karl@gnu.org>
69164
69165         * lib/argp.h: update from libc.
69166
69167 2003-08-28  Bruno Haible  <bruno@clisp.org>
69168
69169         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
69170         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
69171         followed by '#define fnmatch fnmatch_posix' gives an error.
69172
69173 2003-08-28  Bruno Haible  <bruno@clisp.org>
69174
69175         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
69176         warning on QNX, which defines O_BINARY to 000000.
69177
69178 2003-08-27  Jim Meyering  <jim@meyering.net>
69179
69180         * m4/mkstemp.m4: Require that the system mkstemp be able to create
69181         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
69182         would fail after 32.  Reported by Danny Levinson.  Details here:
69183         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
69184
69185 2003-08-24  Bruno Haible  <bruno@clisp.org>
69186
69187         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
69188         MSVC7 <stdio.h> is included later.
69189
69190 2003-08-22  Simon Josefsson  <jas@extundo.com>
69191
69192         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
69193
69194 2003-08-20  Karl Berry  <karl@gnu.org>
69195
69196         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
69197
69198 2003-08-20  Bruno Haible  <bruno@clisp.org>
69199
69200         * modules/progname: New file.
69201         * MODULES.html.sh (func_all_modules): Add progname.
69202
69203 2003-08-20  Bruno Haible  <bruno@clisp.org>
69204
69205         * lib/progname.h: New file, from GNU gettext.
69206         * lib/progname.c: New file, from GNU gettext.
69207         * lib/progreloc.c: New file, from GNU gettext.
69208
69209 2003-08-19  Jim Meyering  <jim@meyering.net>
69210
69211         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
69212         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
69213
69214 2003-08-19  Bruno Haible  <bruno@clisp.org>
69215
69216         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
69217         more.
69218
69219 2003-08-19  Bruno Haible  <bruno@clisp.org>
69220
69221         * lib/xstrdup.c: Assume <string.h> exists.
69222
69223 2003-08-18  Paul Eggert  <eggert@twinsun.com>
69224
69225         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
69226         in makefile rules.
69227
69228 2003-08-18  Jim Meyering  <jim@meyering.net>
69229
69230         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
69231         * m4/lib-ld.m4: Likewise.
69232
69233 2003-08-18  Jim Meyering  <jim@meyering.net>
69234
69235         * lib/setenv.h: Indent nested cpp directive.
69236         * lib/vasnprintf.c: Remove trailing blanks.
69237
69238 2003-08-17  Simon Josefsson  <jas@extundo.com>
69239
69240         * modules/xstrndup: New file.
69241         * MODULES.html.sh (func_all_modules): Add xstrndup.
69242
69243 2003-08-17  Simon Josefsson  <jas@extundo.com>
69244
69245         * modules/argp: Fix autoconf macro name. Add more dependencies.
69246
69247 2003-08-17  Simon Josefsson  <jas@extundo.com>
69248
69249         * m4/xstrndup.m4: New file.
69250
69251 2003-08-17  Simon Josefsson  <jas@extundo.com>
69252
69253         * m4/argp.m4: New file.
69254
69255 2003-08-17  Simon Josefsson  <jas@extundo.com>
69256             Bruno Haible  <bruno@clisp.org>
69257
69258         * lib/xstrndup.h: New file.
69259         * lib/xstrndup.c: New file.
69260
69261 2003-08-17  Bruno Haible  <bruno@clisp.org>
69262
69263         * modules/strndup (Files, Include): Add lib/strndup.h.
69264
69265 2003-08-17  Bruno Haible  <bruno@clisp.org>
69266
69267         * modules/euidaccess (Files): Add lib/euidaccess.h.
69268
69269 2003-08-17  Bruno Haible  <bruno@clisp.org>
69270
69271         * lib/strndup.h: New file.
69272
69273 2003-08-17  Bruno Haible  <bruno@clisp.org>
69274
69275         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
69276         like AC_GNU_SOURCE.
69277         * modules/extensions (configure.ac): Comment out the invocation of
69278         gl_USE_SYSTEM_EXTENSIONS.
69279
69280 2003-08-16  Paul Eggert  <eggert@twinsun.com>
69281
69282         Merges from coreutils, etc.
69283         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
69284         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
69285         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
69286         fixing a typo.
69287         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
69288         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
69289
69290 2003-08-16  Paul Eggert  <eggert@twinsun.com>
69291
69292         Document merge from coreutils.
69293         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
69294         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
69295         * modules/utime: Add m4/utimes-null.m4.
69296
69297 2003-08-16  Paul Eggert  <eggert@twinsun.com>
69298
69299         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
69300         space, undoing this 2003-08-12 change:
69301         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
69302
69303 2003-08-16  Paul Eggert  <eggert@twinsun.com>
69304
69305         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
69306         strtoul.c from libc, undoing this 2003-08-12 change:
69307         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
69308
69309 2003-08-16  Jim Meyering  <jim@meyering.net>
69310
69311         Merges from coreutils.
69312         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
69313         prefix.  Adjust cache variables similarly.  Create 500 rather than
69314         just 300 files, to exercise bug on Darwin6.5, too.
69315         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
69316         $missing_dir.
69317         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
69318         AM_SYS_POSIX_TERMIOS.
69319         Reported by mkc@mathdogs.com.
69320         Also change use of $am_cv_sys_posix_termios
69321         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
69322         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
69323         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
69324         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
69325         in /proc/mounts until it finds one with matching device number.  This
69326         is unnecessary when the FILE argument *is* a mount point.  No stat call
69327         is necessary in that case.  So, disable the statvfs-testing code on
69328         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
69329         as RedHat bug# 84846.
69330         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
69331         to 1MB, so as not to render systems with no stack size limit (e.g.,
69332         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
69333         Include <unistd.h>.  On some systems,
69334         it is required for the definition of _SC_PAGESIZE.
69335
69336 2003-08-16  Jim Meyering  <jim@meyering.net>
69337
69338         Merge from coreutils.
69339         * lib/xstrtoimax.c: #else #if -> #elif.
69340         * lib/xstrtoumax.c: Likewise.
69341
69342 2003-08-16  Jim Meyering  <jim@meyering.net>
69343
69344         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
69345         * m4/utimes.m4: Removed.
69346         * m4/utimes-null.m4: Renamed from utimes.m4.
69347
69348         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
69349         to 1MB, so as not to render systems with no stack size limit (e.g.,
69350         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
69351         Include <unistd.h>.  On some systems,
69352         it is required for the definition of _SC_PAGESIZE.
69353
69354 2003-08-16  Jim Meyering  <jim@meyering.net>
69355         and Paul Eggert  <eggert@cs.ucla.edu>
69356
69357         Merges from coreutils, etc.
69358
69359         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
69360         using the latest version from cvs.  This avoids problems with #line
69361         directives using a vendor (Sun) compiler.
69362         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
69363         Don't set GETGROUPS_LIB here; now it's
69364         done via getgroups.m4's wrapper function.
69365         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
69366         rather than just in sh-util/configure.in, so that the
69367         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
69368         same.
69369         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
69370         AC_FUNC_GETLOADAVG where to find getloadavg.c.
69371         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
69372         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
69373         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
69374         Remove code that is now done by the newly-required macros.
69375         Append $(EXEEXT) to DF_PROG.
69376         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
69377         Do not invoke or require the following here,
69378         since prereq.m4 or some gnulib .m4 now does this for us:
69379         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
69380         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
69381         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
69382         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
69383         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
69384         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
69385         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
69386         AC_FUNC_OBSTACK.
69387         Do not replace the following functions, as this is now the job
69388         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
69389         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
69390         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
69391         atexit getpass, strdup, getpagesize.
69392         Replace 'raise'.
69393         Do not check for the following functions, as this is now the job
69394         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
69395         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
69396         setregid.
69397         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
69398         Check for sys/sysctl.h.
69399         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
69400         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
69401         of checking for ssize_t ourselves.
69402
69403         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
69404         Require every macro that gnulib/modules/* suggests for us.
69405         (jm_PREREQ_ADDEXT): New macro.
69406         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
69407         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
69408
69409         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
69410         (gl_PHYSMEM): Use it.
69411         Also check for `table' function.
69412         Check for new headers and functions.
69413         Add check for sys/sysmp.h.
69414         With suggestions from Kaveh Ghazi.
69415         Ignore headers that are present but cannot be compiled.  This
69416         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
69417         C 5.4.
69418
69419 2003-08-15  Paul Eggert  <eggert@twinsun.com>
69420
69421         Document merge from coreutils.
69422         * modules/userspec: Depend on posixver.
69423         * modules/strftime: Depend on tzset.
69424
69425 2003-08-15  Paul Eggert  <eggert@twinsun.com>
69426
69427         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
69428         rather than tab, after '#' in shell-script copyright notices.
69429         Suggested by Bruno Haible.
69430
69431 2003-08-15  Paul Eggert  <eggert@twinsun.com>
69432
69433         * config/srclist-update: Use three spaces, rather than tab, after '#'
69434         in shell-script copyright notices.  Suggested by Bruno Haible.
69435         Remove unnecessary parenthesization in regular expression.
69436
69437 2003-08-15  Jim Meyering  <jim@meyering.net>
69438
69439         Merge from coreutils.
69440         * lib/xgethostname.c: Include <stdlib.h>.
69441         (xghostname): Don't exit for anything other than memory-related
69442         failure; just return NULL.
69443         * lib/userspec.c: Include "posixver.h".
69444         (parse_user_spec): Accept `.' as a separator only
69445         in pre-POSIX-200112 mode.
69446         * lib/strtoimax.c: Use #elif rather than #else #if.
69447         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
69448         Remove function, now that we can rely on a working tzset function.
69449         [!_LIBC]: Ensure that the required autoconf test has been run.
69450         [!defined _NL_CURRENT && HAVE_STRFTIME]:
69451         Use underlying_strftime for %r.
69452         * lib/sha.c: Merge in some clean-up and optimization changes from
69453         glibc.
69454         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
69455         Ensure that it is a multiple of 64.
69456         Rearrange loop exit tests so as to avoid performing an
69457         additional fread after encountering an error or EOF.
69458         * lib/realloc.c: Update copyright date.
69459
69460 2003-08-15  Jim Meyering  <jim@meyering.net>
69461         and Paul Eggert  <eggert@twinsun.com>
69462
69463         Merge from coreutils.
69464         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
69465         member but strut utmpx does not.  Needed for AIX 4.3.3.
69466         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
69467
69468 2003-08-15  Jim Meyering  <jim@meyering.net>
69469         and Paul Eggert  <eggert@cs.ucla.edu>
69470
69471         Merges from coreutils, etc.
69472         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
69473         Require gl_FUNC_TZSET_CLOBBER.
69474         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
69475         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
69476         members.
69477
69478 2003-08-14  Paul Eggert  <eggert@twinsun.com>
69479
69480         Help the merge from coreutils.
69481         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
69482         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
69483         * m4/tzset.m4: Use it too.
69484
69485 2003-08-14  Paul Eggert  <eggert@twinsun.com>
69486
69487         * modules/tzset: New file.
69488
69489 2003-08-14  Jim Meyering  <jim@meyering.net>
69490
69491         Merges from coreutils.
69492         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
69493         variable names, rather than @FNMATCH_H@.
69494         * modules/alloca: Likewise for $(ALLOCA_H).
69495
69496         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
69497         the three copies of the literal target, `fnmatch.h'.
69498         * modules/alloca (alloca.h): Likewise.
69499
69500 2003-08-14  Jim Meyering  <jim@meyering.net>
69501
69502         Merge from coreutils.
69503         * m4/tzset.m4: New file.
69504         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
69505         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
69506         otherwise, AIX 5.1 systems would end up using the latter.
69507         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
69508         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
69509         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
69510         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
69511
69512 2003-08-14  Jim Meyering  <jim@meyering.net>
69513
69514         Merge from coreutils.
69515         * lib/obstack.h: Whitespace changes.
69516         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
69517         and xcalloc return values.
69518         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
69519         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
69520         hang on OSF/1 5.1 for DIR on both local and remote file systems.
69521         Reported by (and fix confirmed by) Nelson H. F. Beebe.
69522         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
69523         error from mntctl.
69524         Use mntctl's return value to drive the entry-processing loop, since
69525         we can't rely on the value of the vmt_length member in the last
69526         entry.  On some systems doing so could result in exhausting
69527         virtual memory.  Based in part on a patch from Mike Jetzer.
69528
69529 2003-08-14  Jim Meyering  <jim@meyering.net>
69530         and Paul Eggert  <eggert@twinsun.com>
69531
69532         Merges from coreutils, plus other fixes.
69533         * lib/physmem.c: Merge in portability changes from gcc/libiberty
69534         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
69535         for credits and details.  Thanks to Kaveh Ghazi for helping
69536         to keep these files in sync.
69537         (ARRAY_SIZE): Define it.
69538         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
69539         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
69540         (memcasecmp): Don't assume size_t fits in unsigned int.
69541         Remove casts and duplicate code.
69542         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
69543         (memcpy): Remove definition.
69544         Merge in some clean-up and optimization changes from glibc.
69545         [BLOCKSIZE]: Move definition to top of file.
69546         Ensure that it is a multiple of 64.
69547         Rearrange loop exit tests so as to avoid performing an
69548         additional fread after encountering an error or EOF.
69549         * lib/md5.h (md5_uintptr): Define.
69550         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
69551         return to the initial working directory.  Preserve errno
69552         for caller.
69553         * lib/idcache.c: Include "xalloc.h".
69554         (xmalloc, xrealloc): Remove decls.
69555         (getuser): Remove casts no longer required in C89.
69556         * lib/human.c: Include stdio.h, for sprintf.
69557         * lib/group-member.c: Include "xalloc.h".
69558         (xmalloc, xrealloc): Remove decls.
69559         (get_group_info): Remove casts no longer required in C89.
69560         * lib/getusershell.c (readname): Remove casts no longer required in
69561         C89.
69562         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
69563         * lib/getline.c: Whitespace fix, from coreutils.
69564
69565 2003-08-13  Paul Eggert  <eggert@twinsun.com>
69566
69567         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
69568         Check for isascii.
69569
69570         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
69571         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
69572         Undo previous (whitespace-only) change.
69573
69574 2003-08-13  Paul Eggert  <eggert@twinsun.com>
69575
69576         * lib/exclude.c: Include <ctype.h>
69577         (IN_CTYPE_DOMAIN): New macro.
69578         (is_space): New fn.
69579         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
69580         and empty lines.
69581
69582         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
69583         Undo previous (whitespace-only) change.
69584
69585 2003-08-13  Paul Eggert  <eggert@twinsun.com>
69586
69587         * config/srclist-update: Change update back to the old behavior,
69588         leaving whitespace alone.  Use one 'sed' command rather than a
69589         pipeline.
69590         (fixlicense): Now a variable, not a function.
69591         (remove_trailing_blanks): Remove.
69592         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
69593         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
69594         Undo previous (whitespace-only) change.
69595
69596 2003-08-12  Paul Eggert  <eggert@twinsun.com>
69597
69598         Merge from coreutils.
69599         * modules/euidaccess: Add lib_SOURCES, include for new
69600         file euidaccess.h
69601
69602 2003-08-12  Paul Eggert  <eggert@twinsun.com>
69603
69604         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
69605         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
69606         Normalize leading white space and remove trailing white space.
69607
69608         Merge from coreutils
69609         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
69610
69611         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
69612         0.12.1.  These files are now being upgraded automatically by
69613         ../config/srclist-update.
69614
69615 2003-08-12  Paul Eggert  <eggert@twinsun.com>
69616
69617         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
69618         Normalize leading white space and remove trailing white space.
69619         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
69620         notice, as per ../config/srclist-update.
69621
69622         Merge from coreutils.
69623         * lib/euidaccess.h: New file.
69624         * lib/euidaccess.c: Include it.
69625         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
69626         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
69627         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
69628
69629 2003-08-12  Paul Eggert  <eggert@twinsun.com>
69630
69631         * config/srclist-update: Add copyright notice.
69632         (remove_id_lines, remove_trailing_blanks): New constants.
69633         (fixfile): Use them to normalize spacing a bit in copied files.
69634         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
69635         Normalize leading white space and remove trailing white space.
69636
69637         * config/texinfo.tex: Sync with texinfo.
69638
69639         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
69640         strtoul.c from libc, to merge coreutils whitespace changes.
69641
69642         * config/srclist.txt: Get the following m4 files from gettext:
69643         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
69644         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
69645         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
69646         wint_t.m4.
69647
69648 2003-08-12  Karl Berry  <karl@gnu.org>
69649
69650         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
69651         been made.
69652
69653 2003-08-11  Paul Eggert  <eggert@twinsun.com>
69654
69655         * modules/gnu-source, m4/gnu-source.m4:
69656         Remove; we're assuming Autoconf 2.54 or later now.
69657         Suggested by Bruno Haible.
69658         * MODULES.html.sh (func_all_modules): Remove gnu-source.
69659
69660 2003-08-11  Bruno Haible  <bruno@clisp.org>
69661
69662         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
69663
69664 2003-08-11  Bruno Haible  <bruno@clisp.org>
69665
69666         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
69667         (vasnprintf): Use it instead of wcslen.
69668
69669 2003-08-11  Bruno Haible  <bruno@clisp.org>
69670
69671         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
69672         value to ensure that _Bool promotes to int. Use #define for _Bool when
69673         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
69674
69675 2003-08-10  Karl Berry  <karl@gnu.org>
69676
69677         * lib/regex.h: update from libc (whitespace fix).
69678
69679 2003-08-09  Paul Eggert  <eggert@twinsun.com>
69680
69681         Merge some files from coreutils.  These changes were
69682         originally made by Jim Meyering.
69683         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
69684         many older Unixes require this.
69685         * lib/alloca.c (alloca): Remove cast to argument of free;
69686         no longer needed in C89.
69687         * lib/alloca_.h, regex.h: Fix white space to match
69688         what GNU indent does.
69689
69690 2003-08-09  Paul Eggert  <eggert@twinsun.com>
69691
69692         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
69693         apparently Emacs's Unicode mode got confused before my 2003-08-05
69694         checkin.
69695
69696 2003-08-08  Paul Eggert  <eggert@twinsun.com>
69697
69698         * m4/extensions.m4: New file.
69699         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
69700         Require gl_USE_SYSTEM_EXTENSIONS.
69701         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
69702         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
69703
69704 2003-08-08  Paul Eggert  <eggert@twinsun.com>
69705
69706         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
69707         * modules/extensions, modules/gnu-source: New files.
69708         * modules/timespec, modules/unlocked-io: Depend on extensions.
69709
69710 2003-08-07  Paul Eggert  <eggert@twinsun.com>
69711
69712         * modules/restrict: New file.
69713         * MODULES.html.sh (func_all_modules): Add restrict.
69714         * modules/regex: Depend on restrict.
69715
69716 2003-08-07  Paul Eggert  <eggert@twinsun.com>
69717
69718         * m4/restrict.m4: New file.
69719         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
69720
69721 2003-08-07  Bruno Haible  <bruno@clisp.org>
69722
69723         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
69724         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
69725
69726 2003-08-07  Bruno Haible  <bruno@clisp.org>
69727
69728         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
69729         makes the module 'getndelim2' compatible with the module 'getline'.
69730
69731 2003-08-05  Paul Eggert  <eggert@twinsun.com>
69732
69733         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
69734         byte with "\201" to avoid glitches when editing that source file
69735         with multi-gnome-terminal.
69736
69737 2003-08-05  Paul Eggert  <eggert@twinsun.com>
69738
69739         * lib/bumpalloc.h: Remove.
69740
69741 2003-08-05  Paul Eggert  <eggert@twinsun.com>
69742
69743         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
69744         * modules/bumpalloc: Remove.
69745
69746 2003-08-04  Paul Eggert  <eggert@twinsun.com>
69747
69748         * lib/getloadavg.c: Change copyright notice and spacing to conform to
69749         GNU coding style.
69750
69751         Merge from coreutils.
69752         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
69753         1. From glibc.
69754         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
69755         from Karl Berry, implemented by Jim Meyering.
69756         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
69757         from Dmitry V. Levin.
69758         Remove anachronistic cast of xrealloc.
69759         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
69760         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
69761         type. Otherwise, it wouldn't compile with at least /bin/cc on
69762         ymp-cray-unicos9.0.2.X.
69763         Combine two mostly-identical uses of alloca into one.
69764         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
69765
69766 2003-08-04  Dave Love  <d.love@dl.ac.uk>
69767
69768         [From Emacs.]
69769
69770         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
69771         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
69772         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
69773         obsolete NLIST_NAME_UNION.
69774         [__GNU__]: Undef BSD and FSCALE.
69775         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
69776
69777 2003-08-03  Paul Eggert  <eggert@twinsun.com>
69778
69779         * lib/stdbool_.h (_Bool): Make it signed char, instead of
69780         an enum type, so that it's guaranteed to promote to int.  See:
69781         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
69782
69783 2003-08-03  Karl Berry  <karl@gnu.org>
69784
69785         * config/depcomp: update from automake.
69786
69787 2003-07-31  Paul Eggert  <eggert@twinsun.com>
69788
69789         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
69790         (strerror): Don't assume that a printable int fits in 14 bytes.
69791
69792 2003-07-31  Bruno Haible  <bruno@clisp.org>
69793
69794         * modules/getpass-gnu: New file.
69795         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
69796
69797 2003-07-31  Bruno Haible  <bruno@clisp.org>
69798
69799         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
69800
69801 2003-07-24  Karl Berry  <karl@gnu.org>
69802
69803         * config/missing: update from automake.
69804
69805 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
69806             Bruno Haible  <bruno@clisp.org>
69807
69808         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
69809         * lib/getline.c (getline, getdelim): Likewise.
69810         Remove _GNU_SOURCE define; now it's defined in config.h through
69811         m4/getline.m4.
69812
69813 2003-07-23  Karl Berry  <karl@gnu.org>
69814
69815         * config/config.sub: update from prep.
69816
69817 2003-07-22  Paul Eggert  <eggert@twinsun.com>
69818
69819         * modules/xalloc (Depends-on): Add exitfail.
69820         * modules/xmemcoll: Likewise.
69821
69822 2003-07-22  Paul Eggert  <eggert@twinsun.com>
69823
69824         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
69825         over-parenthesization in macros.
69826
69827         Sync with coreutils.
69828
69829         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
69830         required by C99.
69831
69832         Use `exit_failure' for xalloc and xmemcoll instead of their own
69833         private exit-failure variables.
69834         * lib/xalloc.h (xalloc_exit_failure): Remove.
69835         * lib/xmalloc.c: Likewise.  Include exitfail.h.
69836         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
69837         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
69838         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
69839         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
69840
69841 2003-07-20  Jim Meyering  <jim@meyering.net>
69842
69843         * modules/closeout (Depends-on): Add exitfail.
69844         Suggestion from Bruno Haible.
69845
69846 2003-07-19  Karl Berry  <karl@gnu.org>
69847
69848         * config/config.sub: update from prep.
69849
69850 2003-07-18  Paul Eggert  <eggert@twinsun.com>
69851
69852         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
69853         Remove.
69854         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
69855         to test that it can stand by itself.  Include "exitfail.h".
69856         Clients should set exit_failure instead.
69857         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
69858
69859 2003-07-18  Bruno Haible  <bruno@clisp.org>
69860
69861         * modules/getndelim2: New file.
69862         * modules/getline: Share files with module getndelim2.
69863         * modules/getnline: Depend on getndelim2 instead of sharing files with
69864         it. Add getnline.c to lib_SOURCES.
69865         * MODULES.html.sh (func_all_modules): Add getndelim2.
69866
69867 2003-07-18  Bruno Haible  <bruno@clisp.org>
69868
69869         * m4/getndelim2.m4: New file.
69870         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
69871         invoke gl_PREREQ_GETNDELIM2.
69872         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
69873         gl_PREREQ_GETNDELIM2.
69874         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
69875         gl_GETNDELIM2.
69876
69877 2003-07-18  Bruno Haible  <bruno@clisp.org>
69878
69879         * lib/getndelim2.h: New file.
69880         * lib/getndelim2.c: Make into a module of its own. Include config.h,
69881         getndelim2.h.
69882         (getndelim2): Make non-static. Change return type to ssize_t.
69883         * lib/getline.h: Change argument names.
69884         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
69885         * lib/getnline.c: Include getndelim2.h.
69886
69887 2003-07-18  Andreas Schwab  <schwab@suse.de>
69888
69889         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
69890
69891 2003-07-17  Karl Berry  <karl@gnu.org>
69892
69893         * config/config.sub: update from prep.
69894
69895 2003-07-17  Bruno Haible  <bruno@clisp.org>
69896
69897         * modules/getnline: New file.
69898         * modules/getline: Add lib/getndelim2.c to source file list.
69899         * MODULES.html.sh (func_all_modules): Add getnline.
69900
69901 2003-07-17  Bruno Haible  <bruno@clisp.org>
69902
69903         * m4/getnline.m4: New file.
69904
69905 2003-07-17  Bruno Haible  <bruno@clisp.org>
69906
69907         * m4/Makefile.am.in: Remove file.
69908         * m4/Makefile.am: Remove file.
69909         * m4/Makefile.in: Remove file.
69910
69911 2003-07-17  Bruno Haible  <bruno@clisp.org>
69912
69913         * lib/getnline.h: New file.
69914         * lib/getnline.c: New file.
69915         * lib/getndelim2.c: New file, extracted from getline.c.
69916         (getndelim2): Renamed from getdelim2, with added nmax argument.
69917         * lib/getline.c: Include getndelim2.c.
69918         (getdelim2): Moved out to getndelim2.c.
69919         (getline, getdelim): Update.
69920
69921 2003-07-17  Bruno Haible  <bruno@clisp.org>
69922
69923         * lib/Makefile.am: Remove file.
69924         * lib/Makefile.in: Remove file.
69925
69926 2003-07-17  Bruno Haible  <bruno@clisp.org>
69927
69928         * configure.in: Remove file.
69929         * Makefile.in: Remove file.
69930
69931 2003-07-17  Bruno Haible  <bruno@clisp.org>
69932
69933         * MODULES.html.sh: Put the </BODY> right before </HTML>.
69934
69935 2003-07-16  Karl Berry  <karl@gnu.org>
69936
69937         * config/srclist-update: was running fixlicense twice, which caused
69938                 texinfo.tex to be nullified for some reason.  Simplify,
69939                 $gplsrc is no longer needed as far as I can see?
69940
69941 2003-07-16  Jim Meyering  <jim@meyering.net>
69942
69943         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
69944
69945 2003-07-15  Paul Eggert  <eggert@twinsun.com>
69946
69947         * config/srclist.txt: Get the following files from gettext-runtime/intl
69948         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
69949         ref-del.sin.  From Bruno Haible.
69950         * config/srclist-update (fixfile): Change grep pattern again, since the
69951         previous fix didn't work (there was another trailing $).  Use
69952         '[$]' to escape the $s.
69953
69954 2003-07-15  Karl Berry  <karl@gnu.org>
69955
69956         * lib/vasnprintf.c: update from gettext.
69957
69958 2003-07-15  Karl Berry  <karl@gnu.org>
69959
69960         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
69961         gets expanded when surrounded by '$'.
69962
69963 2003-07-15  Jim Meyering  <jim@meyering.net>
69964
69965         * modules/save-cwd: Don't depend on error.  From Derek Price.
69966
69967 2003-07-15  Jim Meyering  <jim@meyering.net>
69968
69969         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
69970
69971 2003-07-14  Simon Josefsson  <jas@extundo.com>
69972
69973         * modules/mempcpy: New file.
69974         * MODULES.html.sh (func_all_modules): Add mempcpy.
69975
69976 2003-07-14  Simon Josefsson  <jas@extundo.com>
69977
69978         * m4/mempcpy.m4: New file.
69979
69980 2003-07-14  Simon Josefsson  <jas@extundo.com>
69981
69982         * lib/mempcpy.h: New file.
69983         * lib/mempcpy.c: New file.
69984
69985 2003-07-14  Paul Eggert  <eggert@twinsun.com>
69986
69987         * modules/getdate, modules/posixtm: Depend on mktime.
69988
69989 2003-07-14  Paul Eggert  <eggert@twinsun.com>
69990
69991         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
69992         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
69993         unicodeio.c, unicodeio.h, unlocked-io.h:
69994         Switch from LGPL to GPL.
69995
69996 2003-07-14  Paul Eggert  <eggert@twinsun.com>
69997
69998         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
69999         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
70000         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
70001         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
70002         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
70003         updated automatically by ../config/srclist-update.  This changes
70004         their license from LPGL to GPL.
70005
70006 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70007
70008         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
70009         assumed to refer to the root of the most recent stable gettext version.
70010         * config/srclistvars.sh: Add defaults for eggert.
70011         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
70012         Match "This program" as well as "The program".  This is needed
70013         for gettext.
70014
70015 2003-07-14  Jim Meyering  <jim@meyering.net>
70016
70017         Don't emit diagnostics.  Let callers do that.
70018         * lib/save-cwd.c: Don't include "error.h".
70019         (save_cwd): Don't call error.  Ensure that errno is valid
70020         when returning nonzero.
70021
70022         * lib/save-cwd.h (restore_cwd): Update prototype.
70023         * lib/save-cwd.c (restore_cwd): Remove two parameters.
70024         Simplify.  Don't call error upon failure.  Let callers do that.
70025         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
70026         when auditing is enabled.  But don't bother updating the #if.
70027
70028 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
70029
70030         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
70031         it breaks C++ compilation.
70032         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
70033
70034 2003-07-10  Simon Josefsson  <jas@extundo.com>
70035
70036         * modules/strchrnul (Makefile.am): Add strchrnul.h.
70037
70038 2003-07-10  Jim Meyering  <jim@meyering.net>
70039
70040         * m4/clock_time.m4: Remove trailing blank.
70041         * m4/intmax_t.m4: Likewise.
70042
70043 2003-07-10  Jim Meyering  <jim@meyering.net>
70044
70045         * lib/vasnprintf.c: Remove trailing blanks.
70046         Make cpp indentation consistent.
70047
70048 2003-07-09  Paul Eggert  <eggert@twinsun.com>
70049
70050         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
70051         posixver.c, strftime.c, strnlen.c, strverscmp.c:
70052         Switch from LGPL to GPL.
70053
70054 2003-07-09  Paul Eggert  <eggert@twinsun.com>
70055
70056         * config/srclist.txt: Sort sublists.  Add
70057         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
70058         that differ from gnulib for one reason or another; we'd like this list
70059         to be smaller but for now let's document what we have.
70060
70061 2003-07-08  Paul Eggert  <eggert@twinsun.com>
70062
70063         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
70064         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
70065         and sweeter "eval x=$x".
70066         * config/srclist.txt: Get lib/argp* from glibc.
70067
70068 2003-07-07  Paul Eggert  <eggert@twinsun.com>
70069
70070         * lib/mktime.c: Fix some boundary cases and remove need for floating
70071         point.
70072
70073         Issue a compile-time diagnostic if time_t is floating point, or if
70074         two's complement arithmetic is not in effect, or if arithmetic
70075         right shift does not propagate the sign.  These assumptions were
70076         all in the original code but they weren't checked.
70077
70078         (TIME_T_MIDPOINT, verify): New macros.
70079         (__isleap): Remove; it has integer overflow problems.
70080         (leapyear): New function, without those problems.
70081         (ydhms_tm_diff): Remove; splitting into two parts.
70082         (ydhms_diff): New function, containing the arithmetic part of
70083         the old ydhms_tm_diff function.  Issue a compile-time
70084         diagnostic if we are not using C99 integer division.
70085         Avoid casts when possible.
70086         (guess_time_tm): New function, containing the checking part of
70087         the old ydhms_tm_diff function.  Return the new value, rather than
70088         the difference between it and the old.  Accept a new argument T
70089         so that *T specifies the old value.  Check for overflow in the result.
70090
70091         (__mktime_internal): Use a time_t offset, not a long int offset.
70092         This undoes the 2003-06-04 change, which is no longer needed now
70093         that we have better overflow checking.
70094         (localtime_offset): Likewise.
70095
70096         (__mktime_internal): Avoid harmful overflow on hosts where time_t
70097         and long are 64-bit but int is only 32-bit.
70098         (ydhms_diff): Use long int to store year1 and yday1.
70099         Issue a compile-time diagnostic if long int is not wide enough.
70100
70101         (__mktime_internal): Use long int to store adjusted year and yday.
70102         Use plain C rather than preprocessor commands, if that doesn't
70103         affect efficiency.
70104         Check for overflow (and try to repair) after each probe
70105         rather than checking only at the very end.  This avoids some bugs
70106         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
70107         does not equal GMT offset at maximum time).
70108         Use integer to check for overflow rather than floating point; this
70109         is more portable to non-IEEE hosts, and is a tad faster.
70110         When we detect that we are oscillating between two values,
70111         don't check whether tm_isdst has the requested value, since
70112         we already know the answer.  When tm_isdst has the wrong value,
70113         use a different heuristic to find the right one, based on the
70114         extreme values actually observed in practice in tz2003a,
70115         rather than the (overly optimistic) "previous 3 calendar quarters".
70116
70117         (not_equal_tm, print_tm, check_result): Use "const T" rather than
70118         "T const" to accommodate glibc style.
70119         (check_result): Use less-confusing report format.  "long" -> "long int.
70120         (main): Likewise.
70121         Don't loop if the iteration overflows time_t.
70122         Allow a negative step in the iteration.
70123
70124 2003-07-06  Karl Berry  <karl@gnu.org>
70125
70126         * config/depcomp: update from automake.
70127         * config/config.sub: update from prep.
70128
70129 2003-07-03  Karl Berry  <karl@gnu.org>
70130
70131         * config/config.guess: update from prep.
70132
70133 2003-07-01  Paul Eggert  <eggert@twinsun.com>
70134
70135         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
70136         xreadlink.c now includes it unconditionally.
70137
70138 2003-07-01  Paul Eggert  <eggert@twinsun.com>
70139
70140         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
70141         having it depend on HAVE_SYS_TYPES_H.
70142
70143 2003-07-01  Bruno Haible  <bruno@clisp.org>
70144
70145         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
70146         <sys/types.h> should be sufficient.
70147         Reported by Paul Eggert.
70148
70149 2003-06-26  Karl Berry  <karl@gnu.org>
70150
70151         * config/depcomp: update from automake.
70152
70153 2003-06-26  Bruno Haible  <bruno@clisp.org>
70154
70155         * modules/human: Depend on module stdbool.
70156
70157 2003-06-25  Bruno Haible  <bruno@clisp.org>
70158
70159         * modules/readlink: New file.
70160         * modules/xreadlink: Depend on it.
70161         * MODULES.html.sh (func_all_modules): Add readlink.
70162
70163 2003-06-25  Bruno Haible  <bruno@clisp.org>
70164
70165         * m4/readlink.m4: New file.
70166
70167 2003-06-25  Bruno Haible  <bruno@clisp.org>
70168
70169         * lib/readlink.c: New file.
70170
70171 2003-06-22  Karl Berry  <karl@gnu.org>
70172
70173         * config/srclist.txt: update mkinstalldirs from automake.
70174         * config/mkinstalldirs: update.
70175
70176 2003-06-22  Bruno Haible  <bruno@clisp.org>
70177
70178         Portability to mingw32.
70179         * m4/ssize_t.m4: New file, from GNU gettext.
70180         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
70181         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
70182
70183 2003-06-22  Bruno Haible  <bruno@clisp.org>
70184
70185         * modules/safe-read: Add m4/ssize_t.m4.
70186         * modules/xreadlink: Add m4/ssize_t.m4.
70187
70188 2003-06-20  Bruno Haible  <bruno@clisp.org>
70189
70190         Assume C89, so PARAMS isn't needed.
70191         * lib/unicodeio.h (PARAMS): Remove.
70192         * lib/unicodeio.c: Don't use PARAMS.
70193
70194 2003-06-18  Karl Berry  <karl@gnu.org>
70195
70196         * config/config.{guess,sub}: update from prep.
70197
70198 2003-06-18  Jim Meyering  <jim@meyering.net>
70199
70200         Merge changes from coreutils.
70201         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
70202         Remove explicit declarations of xmalloc and realloc.
70203         Include xalloc.h.
70204         (read_utmp): Remove anachronistic cast of xmalloc.
70205
70206 2003-06-17  Paul Eggert  <eggert@twinsun.com>
70207
70208         Assume C89, so PARAMS isn't needed.
70209         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
70210         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
70211         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
70212         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
70213         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
70214         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
70215         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
70216         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
70217         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
70218         lib/xstrtod.h, lib/xstrtol.h: Likewise.
70219         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
70220         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
70221         no longer needed. Anyway, config.h should always be included before any
70222         other file.
70223
70224 2003-06-11  Simon Josefsson  <jas@extundo.com>
70225
70226         * modules/sysexits: New file.
70227         * MODULES.html.sh (func_all_modules): Add sysexits.
70228
70229 2003-06-11  Simon Josefsson  <jas@extundo.com>
70230
70231         * lib/sysexit_.h: New file.
70232
70233 2003-06-11  Derek Price  <derek@ximbiot.com>
70234
70235         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
70236         necessary.
70237
70238 2003-06-11  Bruno Haible  <bruno@clisp.org>
70239
70240         * m4/sysexits.m4: New file.
70241
70242 2003-06-10  Simon Josefsson  <jas@extundo.com>
70243
70244         * lib/argp.h: New file, from glibc.
70245         * lib/argp-ba.c: New file, from glibc.
70246         * lib/argp-eexst.c: New file, from glibc.
70247         * lib/argp-fmtstream.c: New file, from glibc.
70248         * lib/argp-fmtstream.h: New file, from glibc.
70249         * lib/argp-fs-xinl.c: New file, from glibc.
70250         * lib/argp-help.c: New file, from glibc.
70251         * lib/argp-namefrob.h: New file, from glibc.
70252         * lib/argp-parse.c: New file, from glibc.
70253         * lib/argp-pv.c: New file, from glibc.
70254         * lib/argp-pvh.c: New file, from glibc.
70255         * lib/argp-xinl.c: New file, from glibc.
70256
70257 2003-06-10  Simon Josefsson  <jas@extundo.com>
70258
70259         * modules/strchrnul: New file.
70260
70261 2003-06-10  Simon Josefsson  <jas@extundo.com>
70262
70263         * modules/argp: New file.
70264
70265 2003-06-10  Simon Josefsson  <jas@extundo.com>
70266
70267         * m4/strchrnul.m4: New file.
70268
70269 2003-06-10  Simon Josefsson  <jas@extundo.com>
70270
70271         * lib/strchrnul.h: New file.
70272         * lib/strchrnul.c: New file.
70273
70274 2003-06-10  Bruno Haible  <bruno@clisp.org>
70275
70276         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
70277
70278 2003-06-07  Karl Berry  <karl@gnu.org>
70279
70280         * config/config.{guess,sub}: update from prep.
70281
70282 2003-06-07  Jim Meyering  <jim@meyering.net>
70283
70284         * modules/strtod: Use $(...) notation, not @...@ for
70285         AC_REPLACE'd variables.
70286         * modules/localcharset: Likewise.
70287
70288 2003-06-07  Jim Meyering  <jim@meyering.net>
70289
70290         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
70291         in place of my name in the copyright comment.
70292         Remove definition and uses of __P.
70293
70294         From coreutils.
70295         * lib/stat.c: Don't declare xmalloc explicitly.
70296         Instead, include "xalloc.h".
70297         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
70298         xrealloc, and xcalloc return values.
70299         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
70300         Improve comment.
70301         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
70302
70303 2003-06-07  Bruno Haible  <bruno@clisp.org>
70304
70305         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
70306         avoid AC_CONFIG_LINKS.
70307         * modules/fnmatch (Makefile.am): Use explicit creation rule for
70308         fnmatch.h, to avoid AC_CONFIG_LINKS.
70309         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
70310
70311 2003-06-07  Bruno Haible  <bruno@clisp.org>
70312
70313         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
70314         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
70315         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
70316         directory.
70317         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
70318         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
70319         directory.
70320
70321 2003-06-06  Jim Meyering  <jim@meyering.net>
70322
70323         Merge from coreutils.
70324         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
70325         Consolidate declarations and initializations of *_base* locals.
70326
70327         Merge from coreutils.
70328         This avoids a core dump on systems without GNU putenv,
70329         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
70330         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
70331         (unsetenv): New static function, from GNU libc.
70332         (rpl_putenv): Use it.
70333
70334         * lib/modechange.c: Remove trailing blanks.
70335
70336         Merge from coreutils.
70337         * lib/fsusage.c: Remove declaration of statfs.
70338         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
70339
70340         * lib/posixtm.c: Include <stdbool.h> unconditionally.
70341
70342 2003-06-06  Jim Meyering  <jim@meyering.net>
70343
70344         * lib/stdbool_.h: Renamed from stdbool.h.in.
70345
70346 2003-06-06  Jim Meyering  <jim@meyering.net>
70347             Bruno Haible  <bruno@clisp.org>
70348
70349         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
70350         Adjust Makefile.am snippet not to redirect directly to target.
70351         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
70352
70353 2003-06-05  Paul Eggert  <eggert@twinsun.com>
70354
70355         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
70356         mismatch, look in future quarters as well as past.  This fixes a
70357         bug when processing fall-backwards gaps immediately after a long
70358         period of daylight-saving time.
70359
70360         * lib/mktime.c: Assume freestanding C89 or better.
70361         (HAVE_LIMITS_H): Remove.  Assume it's 1.
70362         (__P): Remove; not used.
70363         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
70364         (mktime, not_equal_tm, print_tm, check_result,
70365         main): Use prototypes.  Use const * where appropriate.
70366         (main): Fix typo in testing code that uncovered by above changes.
70367         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
70368
70369 2003-06-04  Paul Eggert  <eggert@twinsun.com>
70370
70371         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
70372         locale.h, localeconv.  This merges changes from coreutils.
70373
70374         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
70375         It can be removed after the next Autoconf is released.
70376         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
70377         needed.
70378
70379 2003-06-04  Paul Eggert  <eggert@twinsun.com>
70380
70381         * lib/mktime.c: Fix Debian bug 177940
70382         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
70383         (localtime_offset): Now long int, not time_t, because we want it
70384         to be guaranteed to be signed.  All uses changed.
70385         (__mktime_internal): If overflow would occur when adding offset,
70386         don't add it.
70387
70388         Merge 'human' changes from coreutils.  Rewrite to support
70389         locale-specific notations like thousands separators.
70390         * lib/human.c: Simplify authorship notice.
70391         Include human.h immediately after config.h.
70392         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
70393         <limits.h>: Do not include, since human.h does.
70394         (SIZE_MAX, UINTMAX_MAX): New macros.
70395         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
70396         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
70397         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
70398         (power_letter): Renamed from suffixes.
70399         (generate_suffix_backwards): Remove.
70400         (adjust_value): Now takes int style (because of human.h changes)
70401         and long double value (for greater precision on some platforms).
70402         (group_number): New function.
70403         (human_readable): Use it.  Use integer options, not enum.
70404         Put the options before the sizes in the arg list.
70405         Support all the new options.
70406         The old human_readable function has been removed;
70407         use inttostr.h instead.
70408         (human_readable, default_block_size, humblock):
70409         Use uintmax_t, not int, for block sizes.
70410         (human_readable_inexact, block_size_types): Remove.
70411         (block_size_opts): New constant.
70412         (human_options): Renamed from human_block_size, with new signature
70413         that allows block sizes up to UINTMAX_MAX.  All callers changed.
70414         * lib/human.h: Add copyright and authorship notice.
70415         Include <limits.h> and <stdbool.h> unconditionally.
70416         (PARAMS): Remove.  All uses removed.
70417         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
70418         (enum human_inexact_style): Remove tag; now a nameless enum.
70419         (human_floor, human_ceiling, human_round_to_even): Now have
70420         values 2, 0, 1 rather than -1, 1, 0.
70421         (human_group_digits, human_suppress_point_zero, human_autoscale,
70422         human_base_1024, human_SI, human_B): New constants.
70423         (human_readable_inexact, human_block_size): Remove.
70424         (human_readable): Size args are now uintmax_t, not int.
70425         (human_options): New decl.
70426
70427         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
70428         unnecessary now that we assume C89 or better.  This change
70429         imported from coreutils.
70430
70431         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
70432         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
70433         in the 2003-05-30 sync from glibc.
70434
70435         .h files should stand alone, but we shouldn't include <sys/types.h>
70436         if we can get away with just <stddef.h>.
70437
70438         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
70439         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
70440         rather than <sys/types.h>, as we merely need size_t.
70441         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
70442         to get size_t.
70443         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
70444         Include <stdio.h>, to get FILE.
70445         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
70446         memcasecmp.h has included <stddef.h> and all we need is size_t.
70447         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
70448         our interface, instead of including <sys/types.h>
70449
70450 2003-06-04  Paul Eggert  <eggert@twinsun.com>
70451
70452         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
70453         now, as glibc mktime is buggy on non-glibc systems.
70454
70455 2003-06-03  Karl Berry  <karl@gnu.org>
70456
70457         * config/config.sub: update from prep.
70458
70459 2003-06-02  Paul Eggert  <eggert@twinsun.com>
70460
70461         [from coreutils]
70462         Fix some minor time-related bugs with POSIX time arguments.
70463         Some valid time stamps were being rejected (notably -1, and
70464         time stamps before 1900 on 64-bit hosts).  And some invalid
70465         time stamps were being accepted, e.g. September 31.
70466
70467         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
70468         that we can return (time_t) -1 successfully.
70469         * lib/posixtm.c: Likewise.
70470         [HAVE_STDBOOL_H]: Include <stdbool.h>.
70471         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
70472         (t): Remove static var.
70473         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
70474         of static var.  All uses changed.
70475         (year): Do not reject years before 1900; they can occur with
70476         64-bit time_t.
70477         (posix_time_parse): Do not check for out-of-range components;
70478         that is now the caller's responsibility, since our checks were
70479         only approximations.
70480         (posixtime): Use mktime to check for out-of-range components,
70481         since it knows them exactly.
70482         If mktime returns (time_t) -1, check whether an error actually occurred
70483         by invoking localtime on -1.
70484         (main) [TEST_POSIXTIME]: Check for input data errors, and report
70485         posixtime failures better.
70486         Improve the test data (in comments only).
70487
70488 2003-06-02  Karl Berry  <karl@gnu.org>
70489
70490         * config/mkinstalldirs (version): new variable.
70491         (--version): new option.
70492         (usage): improve message.
70493
70494 2003-05-30  Karl Berry  <karl@gnu.org>
70495
70496         * lib/mktime.c: update from libc.
70497
70498 2003-05-30  Bruno Haible  <bruno@clisp.org>
70499
70500         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
70501         * config/config.rpath: Upgrade to gettext-0.12.1.
70502
70503 2003-05-30  Bruno Haible  <bruno@clisp.org>
70504
70505         * m4/gettext.m4: Upgrade to gettext-0.12.1.
70506         * m4/nls.m4: New file, from gettext-0.12.1.
70507         * m4/po.m4: New file, from gettext-0.12.1.
70508         * m4/progtest.m4: Upgrade to gettext-0.12.1.
70509
70510 2003-05-30  Bruno Haible  <bruno@clisp.org>
70511
70512         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
70513         * lib/localcharset.h: Likewise.
70514         * lib/localcharset.c: Likewise.
70515
70516 2003-05-29  Karl Berry  <karl@gnu.org>
70517
70518         * config/config.rpath: update from gettext.
70519
70520 2003-05-28  Paul Eggert  <eggert@twinsun.com>
70521
70522         Assume the headers required for C89 freestanding compilers.
70523         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
70524         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
70525         * m4/human.m4 (gl_HUMAN): Likewise.
70526         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
70527         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
70528         * m4/userspec.m4 (gl_USERSPEC): Likewise.
70529         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
70530         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70531         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
70532
70533 2003-05-28  Paul Eggert  <eggert@twinsun.com>
70534
70535         Assume the headers required for C89 freestanding compilers.
70536         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
70537         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
70538         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
70539         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
70540         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
70541         define, since <limits.h> is guaranteed to do that.
70542         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
70543         * lib/exclude.c: Include <stdbool.h> unconditionally.
70544         * lib/tempname.c: Include <stddef.h> unconditionally.
70545         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
70546         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
70547         <stddef.h> does that.
70548         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
70549         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
70550         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
70551         needed.
70552         * lib/xstrtol.c: Likewise.
70553         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
70554         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
70555
70556         * lib/addext.c (addext): Use assignment rather than cast, to avoid
70557         warnings on some platforms.
70558
70559         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
70560         arbitrarily.
70561
70562 2003-05-26  Jim Meyering  <jim@meyering.net>
70563
70564         Merge in a change from coreutils:
70565         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
70566         that is guaranteed to be `no'.  Use `no_such_member' to indicate
70567         that condition, rather than `-1' which is slightly misleading.
70568         Change the name of the cache variable to have the gl_ prefix.
70569         Prompted by a patch from Richard Dawe for DJGPP.
70570
70571 2003-05-24  Karl Berry  <karl@gnu.org>
70572
70573         * config/config.guess: update from prep.
70574
70575 2003-05-22  Karl Berry  <karl@gnu.org>
70576
70577         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
70578
70579 2003-05-20  Karl Berry  <karl@gnu.org>
70580
70581         * config/config.guess: update from prep.
70582
70583 2003-05-18  Karl Berry  <karl@gnu.org>
70584
70585         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
70586         might actually be set by the user.
70587
70588         * config/depcomp, install-sh, mdate-sh: update from automake.
70589
70590 2003-05-17  Bruno Haible  <bruno@clisp.org>
70591
70592         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
70593         invalid expansion for AC_EGREP_CPP.
70594         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
70595         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
70596         Suggested by Akim Demaille <akim@epita.fr> in
70597         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
70598
70599 2003-05-12  Jim Meyering  <jim@meyering.net>
70600
70601         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
70602         the space-padded-by-default conversion specifiers, %e, %k, %l.
70603
70604 2003-05-12  Bruno Haible  <bruno@clisp.org>
70605
70606         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
70607         the string is longer than 4 KB.
70608
70609 2003-05-11  Karl Berry  <karl@gnu.org>
70610
70611         * config/config.{guess,sub}: update from prep.
70612
70613 2003-05-09  Bruno Haible  <bruno@clisp.org>
70614
70615         * modules/error: Add m4/strerror_r.m4 to file list.
70616
70617 2003-05-03  Bruno Haible  <bruno@clisp.org>
70618
70619         Upgrade to Unicode-4.0.
70620         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
70621         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
70622         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
70623         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
70624         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
70625         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
70626         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
70627         Change width of U+E0100..U+E01EF from 1 to 0.
70628
70629 2003-04-25  Jim Meyering  <jim@meyering.net>
70630
70631         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
70632         of type size_t, not int.
70633
70634 2003-04-25  Bruno Haible  <bruno@clisp.org>
70635
70636         * lib/copy-file.c: Include <stddef.h>, for size_t.
70637
70638 2003-04-21  Paul Eggert  <eggert@twinsun.com>
70639
70640         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
70641         code which expansion is under static control.  Patch imported from
70642         Akim Demaille's patch to Bison; see
70643         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
70644
70645 2003-04-14  Bruno Haible  <bruno@clisp.org>
70646
70647         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
70648
70649 2003-04-11  Jim Meyering  <jim@meyering.net>
70650
70651         Merge changes from Coreutils.
70652
70653         2003-03-22  Jim Meyering  <jim@meyering.net>
70654
70655         * lib/strftime.c (widen): Cast alloca return value to proper type.
70656
70657         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
70658
70659         From GNU libc.
70660         * lib/strftime.c (my_strftime): Handle very large width
70661         specifications for numeric values correctly.  Improve checks for
70662         overflow.
70663
70664         2003-01-19  Jim Meyering  <jim@meyering.net>
70665
70666         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
70667         definitions.
70668         (nl_get_alt_digit) [! defined my_strftime]: Define.
70669         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
70670         _nl_get_alt_digit and _nl_get_walt_digit.
70671
70672         * lib/strftime.c (my_strftime): Merge in locale-related changes from
70673         libc. These changes have no effect outside of _LIBC.
70674
70675 2003-04-10  Bruno Haible  <bruno@clisp.org>
70676
70677         * modules/findprog: New file.
70678         * MODULES.html.sh (func_all_modules): Add it.
70679
70680 2003-04-10  Bruno Haible  <bruno@clisp.org>
70681
70682         * m4/findprog.m4: New file.
70683         * m4/eaccess.m4: New file.
70684
70685 2003-04-10  Bruno Haible  <bruno@clisp.org>
70686
70687         * lib/findprog.h: New file, from GNU gettext.
70688         * lib/findprog.c: New file, from GNU gettext.
70689
70690 2003-04-05  Jim Meyering  <jim@meyering.net>
70691
70692         Merge changes from Coreutils.
70693
70694         * lib/exclude.h (PARAMS): Remove definition and uses.
70695         * lib/exclude.c: Remove uses of `PARAMS'.
70696
70697         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
70698         Add test-cases for DOS filenames. Declare program_name.
70699         (main): Set up program_name.  Patch by Rich Dawe.
70700
70701         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
70702         error from mntctl.
70703         Use mntctl's return value to drive the entry-processing loop, since
70704         we can't rely on the value of the vmt_length member in the last
70705         entry.  On some systems doing so could result in exhausting
70706         virtual memory.  Based in part on a patch from Mike Jetzer.
70707
70708 2003-04-04  Bruno Haible  <bruno@clisp.org>
70709
70710         * modules/linebreak: New file.
70711         * MODULES.html.sh (func_all_modules): Add it.
70712
70713 2003-04-04  Bruno Haible  <bruno@clisp.org>
70714
70715         * m4/linebreak.m4: New file.
70716
70717 2003-04-04  Bruno Haible  <bruno@clisp.org>
70718
70719         * lib/linebreak.h: New file, from GNU gettext.
70720         * lib/linebreak.c: New file, from GNU gettext with slight
70721         modifications.
70722         * lib/lbrkprop.h: New file, from GNU gettext.
70723
70724 2003-04-03  Bruno Haible  <bruno@clisp.org>
70725
70726         * modules/utf8-ucs4: New file.
70727         * modules/utf16-ucs4: New file.
70728         * modules/ucs4-utf8: New file.
70729         * modules/ucs4-utf16: New file.
70730         * MODULES.html.sh (func_all_modules): Add them.
70731
70732 2003-04-03  Bruno Haible  <bruno@clisp.org>
70733
70734         * m4/utf-ucs4.m4: New file.
70735         * m4/ucs4-utf.m4: New file.
70736
70737 2003-04-03  Bruno Haible  <bruno@clisp.org>
70738
70739         * lib/utf8-ucs4.h: New file, from GNU gettext.
70740         * lib/utf16-ucs4.h: New file, from GNU gettext.
70741         * lib/ucs4-utf8.h: New file, from GNU gettext.
70742         * lib/ucs4-utf16.h: New file, from GNU gettext.
70743
70744 2003-04-02  Bruno Haible  <bruno@clisp.org>
70745
70746         * modules/binary-io: New file.
70747         * MODULES.html.sh (func_all_modules): Add it.
70748
70749 2003-04-02  Bruno Haible  <bruno@clisp.org>
70750
70751         * lib/binary-io.h: New file, from GNU gettext.
70752
70753 2003-04-01  Bruno Haible  <bruno@clisp.org>
70754
70755         * modules/pathname: New file.
70756         * MODULES.html.sh (func_all_modules): Add it.
70757
70758 2003-04-01  Bruno Haible  <bruno@clisp.org>
70759
70760         * lib/pathname.h: New file, from GNU gettext.
70761         * lib/concatpath.c: New file, from GNU gettext.
70762
70763 2003-03-30  Bruno Haible  <bruno@clisp.org>
70764
70765         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
70766
70767 2003-03-30  Bruno Haible  <bruno@clisp.org>
70768
70769         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
70770         function chown() doesn't exist.
70771
70772 2003-03-28  Bruno Haible  <bruno@clisp.org>
70773
70774         * modules/copy-file: New file.
70775         * MODULES.html.sh (func_all_modules): Add it.
70776
70777 2003-03-28  Bruno Haible  <bruno@clisp.org>
70778
70779         * m4/copy-file.m4: New file.
70780
70781 2003-03-28  Bruno Haible  <bruno@clisp.org>
70782
70783         * lib/copy-file.h: New file, from GNU gettext.
70784         * lib/copy-file.c: New file, from GNU gettext.
70785
70786 2003-03-18  Jim Meyering  <jim@meyering.net>
70787
70788         * lib/quote.c (quote_n): Fix typo in comment.
70789
70790 2003-03-18  Bruno Haible  <bruno@clisp.org>
70791
70792         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
70793         checking.
70794         * m4/onceonly_2_57.m4: Likewise.
70795
70796 2003-03-17  Bruno Haible  <bruno@clisp.org>
70797
70798         * m4/onceonly.m4: Require autoconf 2.54 or newer.
70799         (m4_quote): Remove macro.
70800         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
70801
70802 2003-03-14  Jim Meyering  <jim@meyering.net>
70803
70804         Merge changes from Coreutils.
70805         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
70806         to be const, in order to avoid warnings.
70807         (obstack_room): Likewise.
70808         (obstack_empty_p): Likewise.
70809
70810 2003-03-14  Bruno Haible  <bruno@clisp.org>
70811
70812         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
70813         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
70814
70815 2003-03-13  Paul Eggert  <eggert@twinsun.com>
70816
70817         Merge changes from Bison.
70818         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
70819         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
70820         when compiling Bison 1.875's `bitset bset = obstack_alloc
70821         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
70822         * lib/hash.c: Include <stdbool.h> unconditionally.
70823
70824 2003-03-13  Paul Eggert  <eggert@twinsun.com>
70825
70826         * m4/onceonly.m4 (m4_quote): New macro.
70827         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
70828         Quote AC_FOREACH variable-expansions properly.
70829
70830 2003-03-13  Paul Eggert  <eggert@twinsun.com>
70831
70832         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
70833
70834 2003-03-09  Paul Eggert  <eggert@twinsun.com>
70835
70836         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
70837         Reported by Bruce Becker; see:
70838         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
70839
70840 2003-03-03  Paul Eggert  <eggert@twinsun.com>
70841             Bruno Haible  <bruno@clisp.org>
70842
70843         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
70844         Reported by John Hughes, see
70845         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
70846
70847 2003-02-20  Bruno Haible  <bruno@clisp.org>
70848
70849         * MODULES.html.sh (func_all_modules): Add poll.
70850
70851 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
70852
70853         * modules/poll: New file.
70854
70855 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
70856
70857         * lib/poll_.h: New file.
70858         * lib/poll.c: New file.
70859
70860 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
70861
70862         * m4/poll.m4: New file.
70863
70864 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
70865
70866         * modules/mathl: New file.
70867
70868 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
70869
70870         * lib/mathl.h: New file.
70871         * lib/acosl.c: New file.
70872         * lib/asinl.c: New file.
70873         * lib/atanl.c: New file.
70874         * lib/ceill.c: New file.
70875         * lib/cosl.c: New file.
70876         * lib/expl.c: New file.
70877         * lib/floorl.c: New file.
70878         * lib/frexpl.c: New file.
70879         * lib/ldexpl.c: New file.
70880         * lib/logl.c: New file.
70881         * lib/sincosl.c: New file.
70882         * lib/sinl.c: New file.
70883         * lib/sqrtl.c: New file.
70884         * lib/tanl.c: New file.
70885         * lib/trigl.c: New file.
70886         * lib/trigl.h: New file.
70887
70888 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
70889
70890         * m4/mathl.m4: New file.
70891
70892 2003-02-18  Bruno Haible  <bruno@clisp.org>
70893
70894         * MODULES.html.sh (func_all_modules): Add mathl.
70895
70896 2003-02-17  Bruno Haible  <bruno@clisp.org>
70897
70898         * modules/mkdtemp: New module.
70899         * MODULES.html.sh (func_all_modules): Add it.
70900
70901 2003-02-17  Bruno Haible  <bruno@clisp.org>
70902
70903         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
70904
70905 2003-02-17  Bruno Haible  <bruno@clisp.org>
70906
70907         * lib/mkdtemp.h: New file, from GNU gettext.
70908         * lib/mkdtemp.c: New file, from GNU gettext.
70909
70910 2003-02-02  Jim Meyering  <jim@meyering.net>
70911
70912         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
70913         e.g. glibc-2.2.93.
70914
70915 2003-01-31  Bruno Haible  <bruno@clisp.org>
70916
70917         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
70918         'rpl_rename'.
70919         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
70920         'rpl_strnlen'.
70921         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
70922         'rpl_strtod'.
70923         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
70924         'rpl_utime'.
70925
70926 2003-01-31  Bruno Haible  <bruno@clisp.org>
70927
70928         * lib/rename.c: #undef rename before defining rpl_rename.
70929         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
70930
70931 2003-01-30  Bruno Haible  <bruno@clisp.org>
70932
70933         * modules/vasnprintf, modules/vasprintf: New modules.
70934         * MODULES.html.sh (func_all_modules): Add them.
70935
70936 2003-01-30  Bruno Haible  <bruno@clisp.org>
70937
70938         * m4/signed.m4: New file, from GNU gettext.
70939         * m4/longdouble.m4: New file, from GNU gettext.
70940         * m4/wchar_t.m4: New file, from GNU gettext.
70941         * m4/wint_t.m4: New file, from GNU gettext.
70942         * m4/vasnprintf.m4: New file.
70943         * m4/vasprintf.m4: New file.
70944
70945 2003-01-30  Bruno Haible  <bruno@clisp.org>
70946
70947         * lib/printf-args.h: New file, from GNU gettext.
70948         * lib/printf-args.c: New file, from GNU gettext.
70949         * lib/printf-parse.h: New file, from GNU gettext.
70950         * lib/printf-parse.c: New file, from GNU gettext.
70951         * lib/vasnprintf.h: New file, from GNU gettext.
70952         * lib/vasnprintf.c: New file, from GNU gettext.
70953         * lib/asnprintf.c: New file, from GNU gettext.
70954         * lib/vasprintf.h: New file, from GNU gettext with modifications.
70955         * lib/vasprintf.c: New file, from GNU gettext.
70956         * lib/asprintf.c: New file, from GNU gettext.
70957
70958 2003-01-29  Bruno Haible  <bruno@clisp.org>
70959
70960         * modules/stpncpy: New module.
70961         * MODULES.html.sh (func_all_modules): Add it.
70962
70963 2003-01-29  Bruno Haible  <bruno@clisp.org>
70964
70965         * m4/stpncpy.m4: New file.
70966
70967 2003-01-29  Bruno Haible  <bruno@clisp.org>
70968
70969         * lib/stpncpy.h: New file, from GNU gettext with modifications.
70970         * lib/stpncpy.c: New file, from GNU gettext with modifications.
70971
70972 2003-01-28  Bruno Haible  <bruno@clisp.org>
70973
70974         * modules/c-ctype: New module.
70975         * MODULES.html.sh (func_all_modules): Add it.
70976
70977 2003-01-28  Bruno Haible  <bruno@clisp.org>
70978
70979         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
70980         Paul Eggert.
70981         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
70982         Paul Eggert.
70983
70984 2003-01-27  Bruno Haible  <bruno@clisp.org>
70985
70986         * modules/xsetenv: New module.
70987         * MODULES.html.sh (func_all_modules): Add it.
70988
70989 2003-01-27  Bruno Haible  <bruno@clisp.org>
70990
70991         * lib/xsetenv.h: New file, from GNU gettext.
70992         * lib/xsetenv.c: New file, from GNU gettext.
70993
70994 2003-01-23  Jim Meyering  <jim@meyering.net>
70995
70996         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
70997         from working on systems without dirfd (at least Irix and OSF1/Tru64).
70998
70999 2003-01-23  Bruno Haible  <bruno@clisp.org>
71000
71001         * modules/minmax: New module.
71002         * MODULES.html.sh (func_all_modules): Add it.
71003
71004 2003-01-23  Bruno Haible  <bruno@clisp.org>
71005
71006         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
71007         Eggert.
71008
71009 2003-01-22  Bruno Haible  <bruno@clisp.org>
71010
71011         * modules/exit: New module.
71012         * MODULES.html.sh (func_all_modules): Add it.
71013
71014 2003-01-22  Bruno Haible  <bruno@clisp.org>
71015
71016         * lib/exit.h: New file, from GNU gettext.
71017
71018 2003-01-19  Bruno Haible  <bruno@clisp.org>
71019
71020         * gnulib-tool: Recognize option --extract-maintainer.
71021         (func_get_maintainer): New function.
71022         * modules/*: Add Maintainer entry.
71023
71024 2003-01-16  Jim Meyering  <jim@meyering.net>
71025
71026         * m4/regex.m4: The `regex' struct is both input and output.
71027         Initialize it before each use.  Patch by Tim Waugh.
71028
71029 2003-01-16  Bruno Haible  <bruno@clisp.org>
71030
71031         * MODULES.html.sh: Add a table of contents. Add the module name as
71032         leftmost column. Add hyperlinks.
71033
71034 2003-01-15  Bruno Haible  <bruno@clisp.org>
71035
71036         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
71037
71038 2003-01-15  Bruno Haible  <bruno@clisp.org>
71039
71040         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
71041         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
71042         suffix.
71043
71044 2003-01-15  Bruno Haible  <bruno@clisp.org>
71045
71046         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
71047
71048 2003-01-15  Bruno Haible  <bruno@clisp.org>
71049
71050         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
71051         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
71052
71053 2003-01-14  Jim Meyering  <jim@meyering.net>
71054
71055         * lib/same.c (same_name): Tweak a comment.
71056
71057 2003-01-14  Bruno Haible  <bruno@clisp.org>
71058
71059         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
71060         when a string comparison is sufficient.
71061
71062 2003-01-14  Bruno Haible  <bruno@clisp.org>
71063
71064         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
71065         'unsigned int'.
71066
71067 2003-01-14  Bruno Haible  <bruno@clisp.org>
71068
71069         * lib/hash-pjw.c: Add comment about low quality of this function.
71070
71071 2003-01-13  Bruno Haible  <bruno@clisp.org>
71072
71073         * modules/stpcpy: Distribute lib/stpcpy.h.
71074         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
71075
71076 2003-01-13  Bruno Haible  <bruno@clisp.org>
71077
71078         * modules/*: Add a description.
71079         * modules/strpbrk: Fix Makefile.am snippet.
71080         * modules/strtoimax: Fix dependencies.
71081         * modules/strtoumax: Likewise.
71082
71083 2003-01-13  Bruno Haible  <bruno@clisp.org>
71084
71085         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
71086         * modules/alloca (Makefile.am): All object files depend on alloca.h.
71087         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
71088
71089 2003-01-13  Bruno Haible  <bruno@clisp.org>
71090
71091         * gnulib-tool (func_create_testdir): Store config/* files in the main
71092         directory.
71093         * config.rpath: Move to ...
71094         * config/config.rpath: ... here.
71095         * modules/gettext: Contains config/config.rpath, not config.rpath.
71096         * modules/iconv: Likewise.
71097
71098 2003-01-12  Paul Eggert  <eggert@twinsun.com>
71099
71100         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
71101         to avoid collisions with libcurses and libreadline.
71102
71103         * m4/getstr.m4: Remove.
71104         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
71105
71106 2003-01-12  Paul Eggert  <eggert@twinsun.com>
71107
71108         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
71109         to avoid collisions with libcurses and libreadline.
71110
71111         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
71112         * lib/getstr.h, getstr.c: Remove.
71113         * lib/getline.c: Include "getline.h", to check interface.
71114         Move body of old getstr.c here: this defines MIN_CHUNK and
71115         declares getdelim2, which is renamed from getstr.
71116         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
71117
71118         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
71119         All uses changed.
71120         * lib/linebuffer.h: Likewise.
71121         (readline): Remove backward-compatibility macro.
71122
71123 2003-01-12  Paul Eggert  <eggert@twinsun.com>
71124
71125         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
71126         to avoid collisions with libcurses and libreadline.
71127         * getstr: Remove.
71128         * MODULES.html.sh: Remove getstr.
71129         * modules/getline: Depend on unlocked-io, not getstr.
71130
71131 2003-01-12  Jim Meyering  <jim@meyering.net>
71132
71133         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
71134
71135 2003-01-10  Bruno Haible  <bruno@clisp.org>
71136
71137         * modules/alloca: Change Makefile.am requirements. Simplify Include
71138         requirements. Add lib/alloca_.h to file list.
71139
71140 2003-01-10  Bruno Haible  <bruno@clisp.org>
71141
71142         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
71143
71144 2003-01-10  Bruno Haible  <bruno@clisp.org>
71145
71146         * lib/alloca_.h: New file.
71147         * lib/getdate.y: Unconditionally include alloca.h.
71148         * lib/makepath.c: Likewise.
71149         * lib/setenv.c: Likewise.
71150         * lib/userspec.c: Likewise.
71151
71152 2003-01-09  Karl Berry  <karl@gnu.org>
71153
71154         * MODULES.html.sh: include `dirname $0` in PATH, to find
71155         gnulib-tool.
71156
71157 2003-01-09  Bruno Haible  <bruno@clisp.org>
71158
71159         * modules/stdbool: Change configure.ac, Makefile.am requirements.
71160         Simplify Include requirements. Add lib/stdbool.h.in to file list.
71161
71162 2003-01-09  Bruno Haible  <bruno@clisp.org>
71163
71164         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
71165
71166 2003-01-09  Bruno Haible  <bruno@clisp.org>
71167
71168         * lib/stdbool.h.in: New file.
71169
71170 2003-01-09  Bruno Haible  <bruno@clisp.org>
71171
71172         * gnulib-tool (func_all_modules): Ignore files ending in ~.
71173         * MODULES.html.sh: Likewise.
71174
71175 2003-01-08  Jim Meyering  <jim@meyering.net>
71176
71177         * lib/full-write.c: Undefine and define-away `const' after inclusion
71178         of errno.h, not before.  Suggestion from Bruno Haible.
71179
71180 2003-01-08  Bruno Haible  <bruno@clisp.org>
71181
71182         * modules/full-read: Depend on full-write.
71183
71184 2003-01-08  Bruno Haible  <bruno@clisp.org>
71185
71186         * lib/safe-read.c: Include specification header first, to ensure its
71187         selfcontainedness.
71188         * lib/full-write.c: Likewise.
71189
71190 2003-01-07  Jim Meyering  <jim@meyering.net>
71191
71192         * lib/full-write.c: Rework so that it may serve to define full_read,
71193         too.
71194         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
71195
71196 2003-01-07  Bruno Haible  <bruno@clisp.org>
71197
71198         * lib/strtoimax.c: Include <stdint.h> as an alternative to
71199         <inttypes.h>.
71200         * lib/xstrtol.h: Likewise.
71201         * lib/xstrtoimax.c: Likewise.
71202         * lib/xstrtoumax.c: Likewise.
71203         * lib/human.h: Likewise.
71204
71205         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
71206         on systems that have <inttypes.h> but not <stdint.h>.
71207
71208 2003-01-07  Bruno Haible  <bruno@clisp.org>
71209
71210         * MODULES.html.sh: Add copyright notice.
71211         (missed_files): Omit CVS directory entries.
71212         (func_module): Make it work with sed-3.02.
71213         * MODULES.txt: Remove file.
71214
71215 2003-01-06  Jim Meyering  <jim@meyering.net>
71216
71217         * lib/version-etc.c: Update year in translatable copyright string.
71218
71219 2003-01-03  Karl Berry  <karl@gnu.org>
71220
71221         * config/config.{guess,sub}: update from prep.
71222
71223 2003-01-02  Karl Berry  <karl@gnu.org>
71224
71225         * doc/COPYING.DOC: belatedly updated to 1.2.
71226
71227 2003-01-01  Karl Berry  <karl@gnu.org>
71228
71229         * gnulib-tool (func_verify_module): report module name $module in
71230         error message, not $1.
71231         * gnulib-tool (create-testdir): don't complain if destdir couldn't
71232         be created, only if it doesn't exist.
71233         * gnulib-tool (last_checkin_date): don't expand the $Date here.
71234
71235 2002-12-31  Paul Eggert  <eggert@twinsun.com>
71236
71237         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
71238
71239 2002-12-31  Paul Eggert  <eggert@twinsun.com>
71240
71241         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
71242         memcmp if strcoll doesn't work.
71243
71244 2002-12-31  Bruno Haible  <bruno@clisp.org>
71245
71246         * lib/utime.c (utime_null): No need to call ftruncate if the file was
71247         nonempty.
71248
71249 2002-12-31  Bruno Haible  <bruno@clisp.org>
71250
71251         * lib/memcoll.c (STRCOLL): New macro.
71252         (memcoll): Use it.
71253
71254 2002-12-31  Bruno Haible  <bruno@clisp.org>
71255
71256         * lib/localcharset.h: New file.
71257         * lib/localcharset.c: Include it.
71258         * lib/unicodeio.c: Likewise.
71259
71260 2002-12-31  Bruno Haible  <bruno@clisp.org>
71261
71262         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
71263         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
71264
71265 2002-12-31  Bruno Haible  <bruno@clisp.org>
71266
71267         * lib/getline.h: Include <stddef.h>, for size_t.
71268
71269         * lib/unicodeio.h: Include <stddef.h>, for size_t.
71270         * lib/unicodeio.c: Don't include <stddef.h>.
71271
71272 2002-12-31  Bruno Haible  <bruno@clisp.org>
71273
71274         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
71275         HAVE_TM_ZONE.
71276
71277 2002-12-24  Karl Berry  <karl@gnu.org>
71278
71279         * config/config.guess: update from prep.
71280
71281 2002-12-24  Bruno Haible  <bruno@clisp.org>
71282
71283         General infrasructure.
71284         * m4/README: Rewritten.
71285         * m4/onceonly.m4: New file.
71286         * m4/onceonly_2_57.m4: New file.
71287
71288         Module atexit.
71289         * m4/atexit.m4: New file.
71290
71291         Module strtod.
71292         * m4/strtod.m4: New file.
71293
71294         Module strtol.
71295         * m4/strtol.m4: New file.
71296
71297         Module strtoul.
71298         * m4/strtoul.m4: New file.
71299
71300         Module memchr.
71301         * m4/memchr.m4: New file.
71302
71303         Module memcmp.
71304         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
71305         (jm_FUNC_MEMCMP): Invoke it.
71306
71307         Module memcpy.
71308         * m4/memcpy.m4: New file.
71309
71310         Module memmove.
71311         * m4/memmove.m4: New file.
71312
71313         Module memset.
71314         * m4/memset.m4: New file.
71315
71316         Module strcspn.
71317         * m4/strcspn.m4: New file.
71318
71319         Module strpbrk.
71320         * m4/strpbrk.m4: New file.
71321
71322         Module strstr.
71323         * m4/strstr.m4: New file.
71324
71325         Module strerror.
71326         * m4/strerror.m4: New file.
71327
71328         Module mktime.
71329         * m4/mktime.m4: Renamed from jm-mktime.m4.
71330         (gl_PREREQ_MKTIME): New macro.
71331         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
71332
71333         Module malloc.
71334         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
71335         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
71336         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
71337
71338         Module realloc.
71339         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
71340         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
71341         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
71342
71343         Module strftime.
71344         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
71345         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
71346         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
71347         gl_TM_GMTOFF.
71348         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
71349
71350         Module xalloc.
71351         * m4/xalloc.m4: New file.
71352
71353         Module alloca.
71354         * m4/alloca.m4: New file.
71355
71356         Module putenv.
71357         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
71358         (jm_FUNC_PUTENV): Invoke it.
71359
71360         Module setenv.
71361         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
71362         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
71363         when invoked twice.
71364         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
71365         gt_FUNC_SETENV.
71366
71367         Module memrchr.
71368         * m4/memrchr.m4: New file.
71369
71370         Module stpcpy.
71371         * m4/stpcpy.m4: New file.
71372
71373         Module strcase.
71374         * m4/strcase.m4: New file.
71375
71376         Module strdup.
71377         * m4/strdup.m4: New file.
71378
71379         Module strnlen.
71380         * m4/strnlen.m4: New file.
71381
71382         Module strndup.
71383         * m4/strndup.m4: New file.
71384
71385         Module xstrtod.
71386         * m4/xstrtod.m4: New file.
71387
71388         Module xstrtol.
71389         * m4/xstrtol.m4: New file.
71390
71391         Module getdate.
71392         * m4/getdate.m4: New file.
71393
71394         Module unlocked-io.
71395         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
71396         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
71397         * m4/jm-glibc-io.m4n: Remove file.
71398
71399         Module long-options.
71400         * m4/long-options.m4: New file.
71401
71402         Module md5.
71403         * m4/md5.m4: New file.
71404
71405         Module sha.
71406         * m4/sha.m4: New file.
71407
71408         Module getstr.
71409         * m4/getstr.m4: New file.
71410
71411         Module getline.
71412         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
71413         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
71414         <sys/types.h>, for size_t. Use the function name gnu_getline, not
71415         simply getline. Infoke gl_PREREQ_GETLINE.
71416
71417         Module obstack.
71418         * m4/obstack.m4: New file.
71419
71420         Module hash.
71421         * m4/hash.m4: New file.
71422
71423         Module readtokens.
71424         * m4/readtokens.m4: New file.
71425
71426         Module strverscmp.
71427         * m4/strverscmp.m4: New file.
71428
71429         Module stdbool.
71430         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
71431         OSF/1.
71432
71433         Module strtoll.
71434         * m4/strtoll.m4: New file.
71435
71436         Module strtoull.
71437         * m4/strtoull.m4: New file.
71438
71439         Module strtoimax.
71440         * m4/strtoimax.m4: New file.
71441
71442         Module strtoumax.
71443         * m4/strtoumax.m4: New file.
71444
71445         Module xstrtoimax.
71446         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
71447         jm_AC_PREREQ_XSTRTOIMAX.
71448         Moved the strtol prerequisites to strtol.m4.
71449         Moved the strtoll prerequisites to strtoll.m4.
71450         Moved the strtoimax prerequisites to strtoimax.m4.
71451
71452         Module xstrtoumax.
71453         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
71454         jm_AC_PREREQ_XSTRTOUMAX.
71455         Moved the strtoul prerequisites to strtoul.m4.
71456         Moved the strtoull prerequisites to strtoull.m4.
71457         Moved the strtoumax prerequisites to strtoumax.m4.
71458
71459         Module chown.
71460         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
71461         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
71462
71463         Module dup2.
71464         * m4/dup2.m4: New file.
71465
71466         Module ftruncate.
71467         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
71468         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
71469
71470         Module getgroups.
71471         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
71472         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
71473
71474         Module gettimeofday.
71475         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
71476         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
71477         gl_PREREQ_GETTIMEOFDAY.
71478
71479         Module mkdir.
71480         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
71481         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
71482
71483         Module mkstemp.
71484         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
71485         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
71486         jm_AC_TYPE_UINTMAX_T.
71487         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
71488
71489         Module stat.
71490         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
71491         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
71492
71493         Module lstat.
71494         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
71495         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
71496
71497         Module timespec.
71498         * m4/timespec.m4 (gl_TIMESPEC): New macro.
71499         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
71500         * m4/st_mtim.m4: Indentation.
71501
71502         Module nanosleep.
71503         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
71504         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
71505         gl_PREREQ_NANOSLEEP.
71506
71507         Module regex.
71508         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
71509         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
71510         (gl_REGEX): New macro.
71511
71512         Module rename.
71513         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
71514         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
71515
71516         Module rmdir.
71517         * m4/rmdir.m4: New file.
71518
71519         Module utime.
71520         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
71521         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
71522         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
71523
71524         Module dirname.
71525         * m4/dirname.m4: New file.
71526
71527         Module getopt.
71528         * m4/getopt.m4: New file.
71529
71530         Module unistd-safer.
71531         * m4/unistd-safer.m4: New file.
71532
71533         Module fnmatch.
71534         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
71535         declaration.
71536         (gl_PREREQ_FNMATCH_EXTRA): New macro.
71537         (gl_FUNC_FNMATCH_POSIX): New macro.
71538         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
71539         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
71540         simply fnmatch.
71541
71542         Module exclude.
71543         * m4/exclude.m4: New file.
71544
71545         Module human.
71546         * m4/human.m4: New file.
71547
71548         Module acl.
71549         * m4/acl.m4: Nop.
71550
71551         Module backupfile.
71552         * m4/backupfile.m4: New file.
71553         * m4/d-ino.m4: Indentation.
71554
71555         Module fsusage.
71556         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
71557         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
71558         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
71559
71560         Module dirfd.
71561         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
71562         requirements.
71563
71564         Module euidaccess.
71565         * m4/euidaccess.m4: New file.
71566
71567         Module file-type.
71568         * m4/file-type.m4: New file.
71569
71570         Module fileblocks.
71571         * m4/fileblocks.m4: New file.
71572
71573         Module filemode.
71574         * m4/filemode.m4: New file.
71575
71576         Module isdir.
71577         * m4/isdir.m4: New file.
71578
71579         Module lchown.
71580         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
71581         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
71582
71583         Module makepath.
71584         * m4/makepath.m4: New file.
71585
71586         Module modechange.
71587         * m4/modechange.m4: New file.
71588
71589         Module mountlist.
71590         * m4/mountlist.m4: New file.
71591         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
71592         Indentation.
71593
71594         Module path-concat.
71595         * m4/path-concat.m4: New file.
71596
71597         Module pathmax.
71598         * m4/pathmax.m4: New file.
71599
71600         Module same.
71601         * m4/same.m4: New file.
71602
71603         Module save-cwd.
71604         * m4/save-cwd.m4: New file.
71605
71606         Module savedir.
71607         * m4/savedir.m4: New file.
71608
71609         Module xgetcwd.
71610         * m4/xgetcwd.m4: New file.
71611         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
71612
71613         Module xreadlink.
71614         * m4/xreadlink.m4: New file.
71615
71616         Module safe-read.
71617         * m4/safe-read.m4: New file.
71618
71619         Module safe-write.
71620         * m4/safe-write.m4: New file.
71621
71622         Module closeout.
71623         * m4/closeout.m4: New file.
71624
71625         Module stdio-safer.
71626         * m4/stdio-safer.m4: New file.
71627
71628         Module getpass.
71629         * m4/getpass.m4: New file.
71630
71631         Module getugroups.
71632         * m4/getugroups.m4: New file.
71633
71634         Module group-member.
71635         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
71636         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
71637
71638         Module idcache.
71639         * m4/idcache.m4: New file.
71640
71641         Module userspec.
71642         * m4/userspec.m4: New file.
71643
71644         Module gettime.
71645         * m4/clock_time.m4: New file.
71646         * m4/gettime.m4: New file.
71647
71648         Module settime.
71649         * m4/settime.m4: New file.
71650
71651         Module posixtm.
71652         * m4/posixtm.m4: New file.
71653
71654         Module gethostname.
71655         * m4/gethostname.m4: New file.
71656
71657         Module canon-host.
71658         * m4/canon-host.m4: New file.
71659
71660         Module gettext.
71661         * m4/codeset.m4: New file, from gettext-0.11.5.
71662         * m4/gettext.m4: New file, from gettext-0.11.5.
71663         * m4/glibc21.m4: New file, from gettext-0.11.5.
71664         * m4/iconv.m4: New file, from gettext-0.11.5.
71665         * m4/intdiv0.m4: New file, from gettext-0.11.5.
71666         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
71667         * m4/inttypes.m4: New file, from gettext-0.11.5.
71668         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
71669         * m4/isc-posix.m4: New file, from gettext-0.11.5.
71670         * m4/lcmessage.m4: New file, from gettext-0.11.5.
71671         * m4/lib-ld.m4: New file, from gettext-0.11.5.
71672         * m4/lib-link.m4: New file, from gettext-0.11.5.
71673         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
71674         * m4/progtest.m4: New file, from gettext-0.11.5.
71675         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
71676         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
71677         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
71678
71679         Module localcharset.
71680         * m4/localcharset.m4: New file.
71681
71682         Module hard-locale.
71683         * m4/hard-locale.m4: New file.
71684
71685         Module mbswidth.
71686         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
71687         onceonly macros.
71688         * m4/mbrtowc.m4: Add comment.
71689
71690         Module memcasecmp.
71691         * m4/memcasecmp.m4: New file.
71692
71693         Module memcoll.
71694         * m4/memcoll.m4: New file.
71695
71696         Module unicodeio.
71697         * m4/unicodeio.m4: New file.
71698
71699         Module rpmatch.
71700         * m4/rpmatch.m4: New file.
71701
71702         Module yesno.
71703         * m4/yesno.m4: New file.
71704
71705         Module exitfail.
71706         * m4/exitfail.m4: New file.
71707
71708         Module c-stack.
71709         * m4/c-stack.m4 (gl_C_STACK): New macro.
71710         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
71711
71712         Module error.
71713         * m4/error.m4 (gl_ERROR): New macro.
71714         (jm_PREREQ_ERROR): Use onceonly macros.
71715
71716         Module fatal.
71717         * m4/fatal.m4: New file.
71718
71719         Module getloadavg.
71720         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
71721         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
71722
71723         Module getpagesize.
71724         * m4/getpagesize.m4: New file.
71725
71726         Module getusershell.
71727         * m4/getusershell.m4: New file.
71728
71729         Module physmem.
71730         * m4/physmem.m4: New file.
71731
71732         Module posixver.
71733         * m4/posixver.m4: New file.
71734
71735         Module quotearg.
71736         * m4/quotearg.m4: New file.
71737
71738         Module quote.
71739         * m4/quote.m4: New file.
71740
71741         Module readutmp.
71742         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
71743
71744         Module sig2str.
71745         * m4/sig2str.m4: New file.
71746
71747         Other.
71748         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
71749         ulonglong.m4.
71750         * m4/intmax_t.m4: New file.
71751         * m4/d-type.m4: Indentation.
71752         * m4/jm-macros.m4: Update.
71753         * m4/prereq.m4 (jm_PREREQ): Update.
71754         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
71755         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
71756         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
71757         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
71758         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
71759         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
71760         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
71761         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
71762         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
71763         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
71764         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
71765         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
71766         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
71767         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
71768         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
71769         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
71770         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
71771         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
71772         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
71773
71774 2002-12-24  Bruno Haible  <bruno@clisp.org>
71775
71776         * MODULES.txt: Update according to m4/ changes.
71777
71778         Module gettext.
71779         * config.rpath: New file, from gettext-0.11.5.
71780
71781         * modules/*: New module descriptions.
71782         * gnulib-tool: New file.
71783         * MODULES.html.sh: New file.
71784
71785 2002-12-21  Karl Berry  <karl@gnu.org>
71786
71787         * doc/fdl.texi: update to version 1.2.
71788
71789 2002-12-19  Karl Berry  <karl@gnu.org>
71790
71791         * config/config.guess: update from prep.
71792
71793 2002-12-18  Bruno Haible  <bruno@clisp.org>
71794
71795         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
71796         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
71797
71798 2002-12-17  Bruno Haible  <bruno@clisp.org>
71799
71800         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
71801         stdlib.h, string.h.
71802
71803 2002-12-17  Bruno Haible  <bruno@clisp.org>
71804
71805         * lib/canon-host.c (strdup): Remove unused declaration.
71806
71807         * lib/fsusage.c: Include full_read.h.
71808         (get_fs_usage): Use full_read instead of safe_read.
71809
71810         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
71811
71812 2002-12-12  Karl Berry  <karl@gnu.org>
71813
71814         * config/config.guess: update from prep.
71815
71816 2002-12-11  Bruno Haible  <bruno@clisp.org>
71817
71818         * m4/setenv.m4: New file, from gettext-0.11.5.
71819
71820 2002-12-11  Bruno Haible  <bruno@clisp.org>
71821
71822         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
71823         not unsetenv().
71824         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
71825         modifications:
71826
71827         2002-12-11  Bruno Haible  <bruno@clisp.org>
71828
71829                 * setenv.c (alloca): Fall back to malloc.
71830                 (freea): New macro.
71831                 (setenv): Use freea() to free memory allocated with alloca().
71832
71833         2002-11-13  Bruno Haible  <bruno@clisp.org>
71834
71835                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
71836                 function declarations.
71837                 * unsetenv.c (unsetenv): Likewise.
71838
71839         2002-03-04  Bruno Haible  <bruno@clisp.org>
71840
71841                 Portability to AIX 4.3.3.
71842                 * unsetenv.c: New file, extracted from setenv.c.
71843                 * setenv.c: Move the unsetenv() function to unsetenv.c.
71844
71845         2001-12-20  Bruno Haible  <bruno@clisp.org>
71846
71847                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
71848                 use malloc instead. For SunOS 4.
71849
71850         2001-12-11  Bruno Haible  <bruno@clisp.org>
71851
71852                 * setenv.c: Declare alloca.
71853                 (compar_fn_t): New typedef.
71854                 (KNOWN_VALUE, STORE_VALUE): Use it.
71855
71856         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
71857         setenv.h.
71858
71859 2002-12-10  Paul Eggert  <eggert@twinsun.com>
71860
71861         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
71862         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
71863         Choose values that are less likely to collide with system fnmatch
71864         options.
71865         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
71866         defined (e.g., a pure POSIX system).
71867         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
71868         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
71869
71870 2002-12-06  Paul Eggert  <eggert@twinsun.com>
71871
71872         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
71873         a pain in practice to deal with generated m4 files.  This change
71874         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
71875
71876         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
71877         and jm-glibc-io.m4, as they are no longer a special case.
71878         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
71879         kludge and the auto-generation stuff.  Check only whether the
71880         functions are declared, not whether they exist, since older hosts
71881         that don't declare the functions can't use the optimization anyway.
71882
71883 2002-12-06  Jim Meyering  <jim@meyering.net>
71884
71885         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
71886
71887         Merge in changes from libc's misc/error.c, in preparation
71888         for the merge of gnulib's changes back into libc.
71889
71890         * lib/error.c (_): Define only if not already defined.
71891         Move definition to follow all #include directives.
71892         Include unlocked-io.h only if !_LIBC.
71893         [_LIBC]: Include <libio/libioP.h>.
71894         [USE_IN_LIBIO]: Include <libio/iolibio.h>
71895         (fflush): Tweak definition to use INTUSE.
71896         (putc): Define.
71897
71898 2002-12-05  Paul Eggert  <eggert@twinsun.com>
71899
71900         * lib/alloca.c [defined emacs]: Include "lisp.h".
71901         (xalloc_die) [defined emacs]: New macro.
71902         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
71903         [! defined emacs]: Include <xalloc.h>.
71904         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
71905         (pointer): Typedef to POINTER_TYPE *.
71906         (malloc): Remove decl; we now always use xmalloc.
71907         (alloca): Use old-style definition, since Emacs needs this.
71908         Check for arithmetic overflow when computing combined size.
71909
71910 2002-12-04  Paul Eggert  <eggert@twinsun.com>
71911
71912         Do not generate unlocked-io.h automatically, since it's easier to
71913         maintain it by hand.
71914
71915         * lib/unlocked-io.h: New file, from GNU diffutils,
71916         but with proper copyright notice and attribution.
71917         * lib/gen-uio: Remove.
71918         * lib/Makefile.am: Add copyright notice.
71919         (libfetish_a_SOURCES): Add unlocked-io.h.
71920         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
71921         (DISTCLEANFILES, io_functions): Remove macros.
71922         (EXTRA_DIST): Remove gen_uio.
71923         (unlocked-io.h): Remove rule.
71924
71925 2002-12-04  Jim Meyering  <jim@meyering.net>
71926
71927         Reflect the fact that stat.c and lstat.c are no longer generated.
71928         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
71929         (DISTCLEANFILES): Likewise.
71930         (EXTRA_DIST): Likewise.
71931         (all_local): Don't depend on stat.c or lstat.c.
71932         (stat.c, lstat.c): Remove rules.
71933         (EXTRA_DIST): Remove xstat.in.
71934
71935         * lib/xstat.in: Remove file.  Contents moved into stat.c.
71936         * lib/stat.c: New file.  Contents mostly from xstat.in.
71937         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
71938         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
71939
71940         * lib/safe-read.c: Rework so that it may serve to define safe_write,
71941         too.
71942         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
71943
71944 2002-12-03  Jim Meyering  <jim@meyering.net>
71945
71946         * lib/safe-read.c, safe-write.c: Change variable names and comments,
71947         but not semantics, to minimize the differences between these two files.
71948         (safe_read): Change comment to mention SAFE_READ_ERROR.
71949
71950         * lib/safe-read.c (IS_EINTR): Define.
71951         (safe_read): Use IS_EINTR in place of in-function cpp directives.
71952
71953 2002-12-02  Jim Meyering  <jim@meyering.net>
71954
71955         * lib/safe-read.c (EINTR): Define.
71956         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
71957         (INT_MAX): Provide fallback.
71958         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
71959
71960         * lib/safe-read.h (SAFE_READ_ERROR): Define.
71961
71962 2002-12-02  Bruno Haible  <bruno@clisp.org>
71963
71964         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
71965         Define, taken from safe-read.c.
71966         (INT_MAX): Provide fallback.
71967         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
71968         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
71969
71970         * lib/safe-read.c (EINTR): Remove definition.
71971         (safe_read): Don't use EINTR if it is absent.
71972
71973 2002-12-01  Jim Meyering  <jim@meyering.net>
71974
71975         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
71976         zero.
71977         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
71978
71979 2002-11-27  Paul Eggert  <eggert@twinsun.com>
71980
71981         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
71982         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
71983         with `if (! (value < limit)) abort ();', for readability.
71984
71985 2002-11-26  Karl Berry  <karl@gnu.org>
71986
71987         * lib/strdup.c: copy from libc again, with jim's ok.
71988         * lib/.cppi-disable: re-add strdup.c
71989
71990 2002-11-25  Karl Berry  <karl@gnu.org>
71991
71992         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
71993         instead of "strtol.c".
71994
71995 2002-11-25  Karl Berry  <karl@gnu.org>
71996
71997         * config/install-sh: update from automake for variable quoting, $0 in
71998         error msgs, etc.
71999
72000         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
72001         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
72002         entry.
72003
72004 2002-11-25  Jim Meyering  <jim@meyering.net>
72005
72006         * lib/mktime.c: Sync from libc, now that it has the latest fix.
72007
72008 2002-11-24  Karl Berry  <karl@gnu.org>
72009
72010         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
72011         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
72012
72013 2002-11-24  Jim Meyering  <jim@meyering.net>
72014
72015         Update from coreutils:
72016
72017         * lib/mktime.c: Merge in changes from libc.
72018
72019         Avoid a link-time failure on some Linux systems.
72020         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
72021         (otherwise).
72022         (__mon_yday): Declare with the STATIC attribute.
72023         (__mktime_internal): Likewise.
72024         Based on a report from Greg Schafer.
72025
72026 2002-11-23  Jim Meyering  <jim@meyering.net>
72027
72028         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
72029         Use `unsigned', not `int', as type of index.
72030
72031         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
72032
72033         * lib/fsusage.c: Remove unneeded parentheses around operands of
72034         `defined'.
72035
72036 2002-11-22  Paul Eggert  <eggert@twinsun.com>
72037
72038         * lib/quotearg.h: Allow multiple inclusion by surrounding with
72039         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
72040         so that we can be included first.
72041         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
72042         * lib/quotearg.c: Include quotearg.h immediately after config.h.
72043         No need to include stddef.h or sys/types.h any more.
72044         Surround local include files with "", not "<>".
72045         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
72046         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
72047         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
72048         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
72049         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
72050         (ISPRINT): Remove; no longer needed now that we assume C89.
72051
72052         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
72053         Preserve errno.
72054
72055         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
72056         quotearg_char): Use SIZE_MAX rather than
72057         (size_t) -1 when we are talking about "infinity".
72058
72059         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
72060
72061 2002-11-22  Paul Eggert  <eggert@twinsun.com>
72062
72063         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
72064         hint that one should use `if (! x) abort ();' rather than `assert
72065         (x);', and anyway it's one less thing to worry about configuring.
72066         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
72067         hash_rehash, hash_insert): Use abort rather than assert.
72068
72069 2002-11-22  Bruno Haible  <bruno@clisp.org>
72070
72071         * lib/safe-read.h: Assume C89. Add comments.
72072         (safe_read): Change return type to size_t.
72073         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
72074         byte counts > SSIZE_MAX correctly.
72075         * lib/safe-write.h: New file.
72076         * lib/safe-write.c: New file.
72077         * lib/full-read.h: New file.
72078         * lib/full-read.c: New file.
72079         * lib/full-write.h: Assume C89. Add comments.
72080         * lib/full-write.c: Include safe-write.h.
72081         (full_write): Rewritten to use safe_write.
72082         Suggested by Jim Meyering and Paul Eggert.
72083
72084 2002-11-21  Jim Meyering  <jim@meyering.net>
72085
72086         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
72087
72088         Merge in changes from the coreutils.
72089
72090         2002-09-25  Paul Eggert  <eggert@twinsun.com>
72091         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
72092         <stdint.h>.
72093         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
72094         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
72095         int.  Work more efficiently if X is the same width as uintmax_t.
72096         Do not compare X to -1, to avoid bogus compiler warning.
72097         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
72098         Don't assume that f_frsize and f_bsize are the same type.
72099
72100         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
72101         warning on FreeBSD.
72102
72103         * lib/makepath.c (make_path): Restore umask *before* creating the final
72104         component.
72105         (make_path): Minor reformatting.
72106
72107         * lib/xmalloc.c: Adjust to work with new autoconf macros,
72108         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
72109         HAVE_MALLOC/HAVE_REALLOC.
72110
72111         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
72112         dummy ones.  At least on GNU/Linux systems, `auto' means something
72113         else.
72114         From Michael Stone.
72115
72116 2002-11-21  Bruno Haible  <bruno@clisp.org>
72117
72118         Remove case insensitive option matching.
72119         * lib/argmatch.h (argcasematch): Remove declaration.
72120         (ARGCASEMATCH): Remove macro.
72121         (__xargmatch_internal): Remove case_sensitive argument.
72122         (XARGMATCH): Update.
72123         (XARGCASEMATCH): Remove macro.
72124         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
72125         case_sensitive argument.
72126         (argcasematch): Remove function.
72127         (__xargmatch_internal): Remove case_sensitive argument.
72128         (main): Use XARGMATCH instead of XARGCASEMATCH.
72129
72130         * lib/xmalloc.c: Change compile-time error message. Add comment about
72131         required autoconf version.
72132
72133 2002-11-20  Paul Eggert  <eggert@twinsun.com>
72134
72135         Merge argmatch cleanups from Bison.  Assume C89.
72136
72137         * lib/argmatch.c: Include config.h here, not in argmatch.h.
72138         Include stdlib.h, for EXIT_FAILURE.
72139         Always include <string.h>, since we assume C89.
72140         (EXIT_FAILURE): Remove pre-C89 bug workaround.
72141         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
72142         Include <stddef.h> instead, since it's all we need for size_t.
72143         (PARAMS): Remove.  All uses removed.
72144         (ARRAY_CARDINALITY): Do not bother to #undef.
72145         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
72146         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
72147         Remove unnecessary parentheses.
72148         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
72149         Insert necessary parentheses.
72150         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
72151         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
72152
72153 2002-11-19  Bruno Haible  <bruno@clisp.org>
72154
72155         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
72156         * lib/mbswidth.h: Include <stddef.h>, for size_t.
72157
72158         * lib/mbswidth.h (PARAMS): Remove macro.
72159         (mbswidth, mbsnwidth): Use ANSI C function declarations.
72160         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
72161
72162         * lib/gcd.h (PARAMS): Remove macro.
72163         (gcd): Use ANSI C function declarations.
72164         * lib/gcd.c (gcd): Likewise.
72165
72166 2002-11-15  Bruno Haible  <bruno@clisp.org>
72167
72168         * lib/strcspn.c: Include <stddef.h>.
72169         (strcspn): Use ANSI C function declaration. Change return type to
72170         size_t. Use NULL.
72171         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
72172         (strpbrk): Use NULL.
72173         * lib/strpbrk.h (PARAMS): Remove macro.
72174         (strpbrk): Use ANSI C function declaration.
72175         * lib/strstr.c: Don't include <sys/types.h>.
72176         * lib/strstr.h (PARAMS): Remove macro.
72177         (strstr): Use ANSI C function declarations.
72178
72179 2002-11-14  Karl Berry  <karl@gnu.org>
72180
72181         * config/mkinstalldirs: `do' on separate line, instead of
72182         `for var; do'.
72183
72184 2002-11-06  Bruno Haible  <bruno@clisp.org>
72185
72186         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
72187         * lib/gcd.c (gcd): Likewise.
72188
72189 2002-11-05  Bruno Haible  <bruno@clisp.org>
72190
72191         * lib/gcd.h: New file, from gettext-0.11.5.
72192         * lib/gcd.c: New file, from gettext-0.11.5.
72193
72194 2002-11-05  Bruno Haible  <bruno@clisp.org>
72195
72196         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72197         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72198         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72199         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72200
72201         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
72202         <libintl.h>.
72203         * lib/makepath.c: Include gettext.h instead of <locale.h> and
72204         <libintl.h>.
72205
72206         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
72207         * lib/human.c: Include gettext.h instead of <libintl.h>.
72208         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
72209         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
72210         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
72211         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
72212         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
72213         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
72214         (textdomain): Remove definition.
72215         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
72216
72217         * lib/long-options.c: Remove include of <libintl.h> and definition of
72218         _.
72219         * lib/same.c: Remove include of <libintl.h> and definition of _.
72220
72221 2002-11-04  Owen Taylor  <otaylor@redhat.com>
72222
72223         * lib/config.charset: A few additions for Solaris.
72224
72225 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
72226
72227         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
72228         * lib/localcharset.c (locale_charset): Declare as extern "C".
72229
72230 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
72231
72232         * lib/config.charset: msdos in uk_UA uses CP1125.
72233
72234 2002-11-04  Bruno Haible  <bruno@clisp.org>
72235
72236         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
72237         * lib/strcase.h: New file, from GNU gettext-0.11.5.
72238         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
72239         * lib/strstr.h: New file, from GNU gettext-0.11.5.
72240         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
72241
72242 2002-11-04  Bruno Haible  <bruno@clisp.org>
72243
72244         * lib/localcharset.c (locale_charset): Don't return an empty string.
72245
72246 2002-11-04  Bruno Haible  <bruno@clisp.org>
72247
72248         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
72249         aliases.
72250
72251 2002-11-04  Bruno Haible  <bruno@clisp.org>
72252
72253         * lib/config.charset: Update for newest glibc. Add canonical names
72254         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
72255
72256 2002-11-04  Bruno Haible  <bruno@clisp.org>
72257
72258         * lib/config.charset: Add support for NetBSD.
72259
72260 2002-11-04  Bruno Haible  <bruno@clisp.org>
72261
72262         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
72263
72264 2002-11-01  Bruno Haible  <bruno@clisp.org>
72265
72266         * configure.in: Add AC_CONFIG_AUX_DIR call.
72267         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
72268         test/Makefile.
72269         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
72270
72271 2002-09-28  Karl Berry  <karl@gnu.org>
72272
72273         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
72274         installed automake until the next release, since changes have been
72275         made.
72276
72277 2002-09-25  Karl Berry  <karl@gnu.org>
72278
72279         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
72280         * lib/getopt*: copy from libc/posix.
72281         * lib/gettext.h: copy from gettext.
72282         * lib/.cppi-disable: add strdup.c, gettext.h.
72283
72284 2002-09-25  Karl Berry  <karl@gnu.org>
72285
72286         * config/srclist.txt: enable gettext.h check.
72287         * config/config.{guess,sub}: update from prep.
72288         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
72289                 from automake 1.6.3.
72290         See srclist*.
72291
72292 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
72293
72294         * regex.c (PATFETCH): Remove the translating fetch.
72295         (PATFETCH_RAW): Rename to PATFETCH.
72296         (set_image_of_range): New fun.
72297         (SET_RANGE_TABLE_WORK_AREA): Use it.
72298         (regex_compile): Don't translate the pattern chars so eagerly.
72299         Only do it when inserting an `exactn' bytecode or when handling
72300         a char-range.
72301         (mutually_exclusive_p): Avoid empty statement.
72302
72303 2002-07-06  Jim Meyering  <meyering@lucent.com>
72304
72305         * m4/README: Don't mention Makefile.am.in.
72306         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
72307
72308 2002-07-01  Jim Meyering  <meyering@lucent.com>
72309
72310         * lib/c-stack.c: Include sys/time.h.
72311         From Volker Borchert.
72312
72313 2002-06-26  Paul Eggert  <eggert@twinsun.com>
72314
72315         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
72316
72317 2002-06-26  Paul Eggert  <eggert@twinsun.com>
72318
72319         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
72320         New macro.  Use it uniformly instead of
72321         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
72322         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
72323         reported by Vin Shelton.
72324
72325 2002-06-22  Paul Eggert  <eggert@twinsun.com>
72326
72327         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
72328         Do not assume SA_SIGINFO behavior.
72329         Bug reported by Jim Meyering on NetBSD 1.5.2.
72330
72331 2002-06-22  Jim Meyering  <meyering@lucent.com>
72332
72333         * m4/c-stack.m4: New file, from diffutils-2.8.2.
72334         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
72335
72336         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
72337         now that configure.ac uses AC_GNU_SOURCE.
72338         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
72339         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
72340
72341         Update to latest tools.  Suggestions from Paul Eggert.
72342         * m4/stdbool.m4: New file, from diffutils-2.8.2.
72343         * m4/gnu-source.m4: Update from diffutils-2.8.2.
72344         * m4/fnmatch.m4: Likewise.
72345         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
72346         to AC_HEADER_STDBOOL
72347
72348 2002-06-22  Jim Meyering  <meyering@lucent.com>
72349
72350         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
72351         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
72352
72353 2002-06-22  Jim Meyering  <meyering@lucent.com>
72354
72355         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
72356
72357         * lib/exitfail.c, exitfail.h: Likewise.
72358         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
72359
72360         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
72361         of fnmatch.h.
72362         (EXTRA_DIST): Add fnmatch_loop.c.
72363         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
72364
72365         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
72366         * lib/fnmatch.c: Update from diffutils-2.8.2.
72367         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
72368         * lib/fnmatch.h: Remove file.
72369
72370 2002-06-21  Jim Meyering  <meyering@lucent.com>
72371
72372         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
72373         * m4/mbrtowc.m4: Likewise.
72374
72375         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
72376         * m4/mbswidth.m4: Reflect name change:
72377         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
72378         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
72379
72380         * m4/lib-link.m4: Update from gettext-0.11.2.
72381         * m4/gettext.m4: Likewise.
72382
72383         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
72384         From Alfred M. Szmidt.
72385
72386 2002-06-18  Paul Eggert  <eggert@twinsun.com>
72387
72388         * lib/file-type.h: Report an error if neither S_ISREG nor
72389         S_IFREG is defined, instead of using a test specific to glibc
72390         2.2.  This should be safe, since POSIX requires S_ISREG and
72391         Unix Version 7 had S_IFREG.  We don't need to check for
72392         <sys/types.h> since we don't use any symbols that it defines.
72393
72394 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
72395
72396         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
72397         $@-t, so that each temporary file name is unique and valid in the first
72398         8 characters, for operation under DOS.
72399
72400 2002-06-15  Paul Eggert  <eggert@twinsun.com>
72401
72402         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
72403
72404 2002-06-15  Jim Meyering  <meyering@lucent.com>
72405
72406         Work even with DJGPP 2.03, which lacks support for symlinks.
72407         From Richard Dawe.
72408         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
72409         is defined.
72410         * lib/lchown.c (S_ISLNK): Likewise.
72411
72412 2002-06-15  Jim Meyering  <meyering@lucent.com>
72413
72414         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
72415         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
72416         have been included before this file.
72417
72418 2002-06-14  Jim Meyering  <meyering@lucent.com>
72419
72420         * lib/file-type.h: Use the version from diffutils-2.8.2.
72421         * lib/file-type.c: Likewise.
72422
72423 2002-06-07  Jim Meyering  <meyering@lucent.com>
72424
72425         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
72426         They're needed at least for NetBSD 1.5.2.
72427         ($statxfs_includes): Include those same headers.
72428         ($statxfs_includes): Include sys/vfs.h if available.
72429         ($statxfs_includes): Likewise for sys/statvfs.h.
72430         Check for the following members in both structs statfs and statvfs:
72431         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
72432
72433 2002-06-01  Jim Meyering  <meyering@lucent.com>
72434
72435         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
72436         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
72437
72438 2002-05-28  Jim Meyering  <meyering@lucent.com>
72439
72440         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
72441         Reported by Volker Borchert.
72442
72443 2002-05-27  Jim Meyering  <meyering@lucent.com>
72444
72445         Fix a problem seen only on nonconforming systems whereby ls.c's
72446         use of localtime, and then of gettimeofday would cause trouble:
72447         the localtime call used to initialize rpl_gettimeofday's save
72448         mechanism would clobber ls's current local time information so
72449         that in any long listing the first file would always be listed
72450         with date 1970-01-01.  Analysis by Volker Borchert.
72451
72452         * lib/gettimeofday.c (localtime): Undefine.
72453         (rpl_localtime): New function.
72454
72455 2002-05-27  Jim Meyering  <meyering@lucent.com>
72456
72457         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
72458         localtime.
72459
72460         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
72461         use the replacement function; it wouldn't resolve at link time.
72462         Reported by Volker Borchert.
72463
72464 2002-05-22  Jim Meyering  <meyering@lucent.com>
72465
72466         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
72467         file-type.h.
72468         * lib/file-type.h: New file.
72469         * lib/file-type.c (file_type): New file/function.  Extracted from
72470         diffutils.
72471
72472 2002-04-30  Jim Meyering  <meyering@lucent.com>
72473
72474         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
72475
72476 2002-04-29  Paul Eggert  <eggert@twinsun.com>
72477
72478         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
72479
72480 2002-04-29  Paul Eggert  <eggert@twinsun.com>
72481
72482         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
72483         Do not check for alloca.h (no longer used) or stdbool.h (was never
72484         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
72485
72486 2002-04-29  Paul Eggert  <eggert@twinsun.com>
72487
72488         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
72489
72490 2002-04-29  Jim Meyering  <meyering@lucent.com>
72491
72492         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
72493         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
72494         Use AC_FUNC_STRNLEN here instead.
72495
72496         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
72497         With autoconf-2.53a, it's part of AC_PROG_CC.
72498
72499 2002-04-28  Paul Eggert  <eggert@twinsun.com>
72500
72501         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
72502         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
72503
72504 2002-04-28  Paul Eggert  <eggert@twinsun.com>
72505
72506         * lib/sig2str.h, lib/sig2str.c: New files.
72507         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
72508
72509 2002-04-28  Paul Eggert  <eggert@twinsun.com>
72510
72511         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
72512         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
72513         of 127, since 64 is the largest conceivable number for ancient
72514         nonstandard hosts.
72515         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
72516
72517 2002-04-28  Jim Meyering  <meyering@lucent.com>
72518
72519         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
72520
72521 2002-04-24  Jim Meyering  <meyering@lucent.com>
72522
72523         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
72524         (jm_PREREQ): Use it.
72525
72526         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
72527         mach/mach.h fcntl.h.
72528         Check for this function: setlocale.
72529
72530 2002-04-24  Jim Meyering  <meyering@lucent.com>
72531
72532         * lib/gettext.h: New file, from Gettext.
72533         * lib/Makefile.am (INCLUDES): Remove -I../intl.
72534         (libfetish_a_SOURCES): Add gettext.h.
72535
72536 2002-04-16  Jim Meyering  <meyering@lucent.com>
72537
72538         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
72539         ut_pid, ut_id, ut_exit.
72540
72541 2002-04-16  Jim Meyering  <meyering@lucent.com>
72542
72543         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
72544         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
72545         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
72546
72547 2002-04-12  Jim Meyering  <meyering@lucent.com>
72548
72549         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
72550         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
72551         existence of the getmntinfo function.  Needed for Darwin 5.3.
72552
72553         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
72554         This is necessary at least on Darwin 5.3.
72555
72556         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
72557         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
72558         strnlen.o in the library, and that makes some versions of ranlib
72559         object.
72560
72561 2002-04-12  Jim Meyering  <meyering@lucent.com>
72562
72563         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
72564
72565 2002-04-09  Jim Meyering  <meyering@lucent.com>
72566
72567         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
72568         to be more precise.  Rather than saying we're checking whether the
72569         function `works', say what we're testing.
72570         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
72571         Reported by Bruno Haible.
72572
72573 2002-03-10  Jim Meyering  <meyering@lucent.com>
72574
72575         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
72576         Suggestion from Santiago Vila.
72577
72578 2002-03-08  Jim Meyering  <meyering@lucent.com>
72579
72580         * lib/rename.c: Mention that this wrapper is needed also on
72581         mips-dec-ultrix4.4 systems.
72582
72583 2002-03-02  Jim Meyering  <meyering@lucent.com>
72584
72585         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
72586         not HAVE_CLOCK_SETTIME.
72587
72588 2002-02-27  Paul Eggert  <eggert@twinsun.com>
72589
72590         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
72591         Check for clock_settime.
72592
72593 2002-02-27  Paul Eggert  <eggert@twinsun.com>
72594
72595         * lib/nanosleep.h: Rename to....
72596         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
72597
72598         * lib/gettime.c: New file.
72599         * lib/settime.c: New file.
72600         * lib/stime.c: Remove.
72601
72602         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
72603         timespec.h.  Remove nanosleep.h.
72604
72605 2002-02-25  Paul Eggert  <eggert@twinsun.com>
72606
72607         * m4/acl.m4: New file.
72608         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
72609         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
72610
72611 2002-02-25  Paul Eggert  <eggert@twinsun.com>
72612
72613         * lib/acl.c, lib/acl.h: New files.
72614         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
72615
72616 2002-02-24  Jim Meyering  <meyering@lucent.com>
72617
72618         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
72619         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
72620         cause trouble.  Reported by Nelson Beebe.
72621
72622 2002-02-23  Paul Eggert  <eggert@twinsun.com>
72623
72624         * lib/path-concat.c (xpath_concat): Reorder code to pacify
72625         compilers that don't know that xalloc_die never returns.
72626
72627 2002-02-20  Jim Meyering  <meyering@lucent.com>
72628
72629         * lib/getdate.c: Regenerate using bison-1.33.
72630
72631 2002-02-17  Jim Meyering  <meyering@lucent.com>
72632
72633         * config/config.guess (main): Don't use `head -1'; it's no longer
72634         portable. Use `sed 1q' instead.
72635
72636 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
72637
72638         * m4/codeset.m4: Upgrade to gettext-0.11.
72639         * m4/gettext.m4: Upgrade to gettext-0.11.
72640         * m4/glibc21.m4: Upgrade to gettext-0.11.
72641         * m4/iconv.m4: Upgrade to gettext-0.11.
72642         * m4/isc-posix.m4: Upgrade to gettext-0.11.
72643         * m4/lcmessage.m4: Upgrade to gettext-0.11.
72644         * m4/lib-ld.m4: New file, from gettext-0.11.
72645         * m4/lib-link.m4: New file, from gettext-0.11.
72646         * m4/lib-prefix.m4: New file, from gettext-0.11.
72647         * m4/progtest.m4: Upgrade to gettext-0.11.
72648
72649 2002-02-15  Paul Eggert  <eggert@twinsun.com>
72650
72651         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
72652         (jm_PREREQ): Use it.
72653
72654 2002-02-15  Paul Eggert  <eggert@twinsun.com>
72655
72656         * lib/posixver.c, lib/posixver.h: New files.
72657         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
72658
72659 2002-02-02  Paul Eggert  <eggert@twinsun.com>
72660             Bruno Haible  <bruno@clisp.org>
72661
72662         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
72663         (fwrite_success_callback): New declaration.
72664         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
72665         print_unicode_char. Call failure callback instead of error.
72666         (fwrite_success_callback): New function.
72667         (exit_failure_callback): New function.
72668         (fallback_failure_callback): New function.
72669         (print_unicode_char): Call unicode_to_mb.
72670
72671 2002-01-26  Jim Meyering  <meyering@lucent.com>
72672
72673         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
72674         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
72675
72676 2002-01-26  Jim Meyering  <meyering@lucent.com>
72677
72678         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
72679
72680 2002-01-22  Paul Eggert  <eggert@twinsun.com>
72681
72682         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
72683
72684 2002-01-22  Jim Meyering  <meyering@lucent.com>
72685
72686         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
72687         Otherwise, some versions of automake would omit the rule that makes
72688         Makefile from Makefile.in.
72689
72690 2002-01-21  Paul Eggert  <eggert@twinsun.com>
72691
72692         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
72693         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
72694         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
72695         (memcoll): Set errno to zero if there is no error.
72696
72697         * lib/quotearg.c (quotearg_buffer_restyled):
72698         Fix bug with quoting buffers containing NUL when backslashing escapes.
72699         This bug was exposed by the other changes in this patch.
72700         (quotearg_n_options): New arg ARGSIZE.
72701         All callers changed.
72702         (quoting_options_from_style): New function.
72703         (quotearg_n_style): Use it.
72704         (quotearg_n_style_mem): New function.
72705
72706         * lib/quotearg.h (quotearg_n_style_mem): New function.
72707
72708 2002-01-19  Jim Meyering  <meyering@lucent.com>
72709
72710         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
72711         Remove useless quotes: DF_PROG="df".
72712         * m4/strnlen.m4: New file.
72713
72714 2002-01-16  Paul Eggert  <eggert@twinsun.com>
72715
72716         * lib/backupfile.c (ISDIGIT): Comment fix.
72717         * lib/getdate.y (ISDIGIT): Likewise.
72718         * lib/posixtm.c (ISDIGIT, year): Likewise.
72719         * lib/strverscmp.c (ISDIGIT): Likewise.
72720         * lib/userspec.c (ISDIGIT): Likewise.
72721
72722 2002-01-16  Jim Meyering  <meyering@lucent.com>
72723
72724         * lib/getdate.y: Add three semicolons, each just before a closing
72725         brace. Bison (as of version 1.31) no longer papers over that mistake.
72726
72727 2002-01-05  Jim Meyering  <meyering@lucent.com>
72728
72729         * lib/version-etc.c (version_etc_copyright): Update copyright year.
72730
72731 2001-12-19  Paul Eggert  <eggert@twinsun.com>
72732
72733         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
72734         not silently exit merely because the output buffer happens to
72735         have nothing pending.
72736
72737 2001-12-18  Paul Eggert  <eggert@twinsun.com>
72738
72739         See the big note in ../ChangeLog.
72740         * lib/human.c (suffixes): Prefer K to k for 1024.
72741         (generate_suffix_backwards): New function.
72742         (human_readable_inexact): Use it.
72743         * lib/xstrtol.c (__xstrtol): If there is no number but there
72744         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
72745         Accept 'K' as well as 'k'.
72746
72747 2001-12-15  Jim Meyering  <meyering@lucent.com>
72748
72749         * lib/regex.h (__restrict_arr): Update from libc.
72750
72751         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
72752         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
72753         (STREQ): Define.
72754
72755 2001-12-14  Jim Meyering  <meyering@lucent.com>
72756
72757         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
72758         Suggestion from Bruno Haible.
72759
72760 2001-12-10  Jim Meyering  <meyering@lucent.com>
72761
72762         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
72763         xrealloc, Instead, include "xalloc.h".
72764         (initbuffer): Don't cast xmalloc return value to char*.
72765         (readline): Reword comment.
72766         Don't cast xrealloc return value to char*
72767         Return NULL, not 0.
72768
72769 2001-12-09  Jim Meyering  <meyering@lucent.com>
72770
72771         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
72772         about `signed and unsigned type in conditional expression'.
72773         * lib/posixtm.c (posix_time_parse): Likewise.
72774
72775         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
72776
72777         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
72778         to avoid a pedantic warning.
72779
72780         * lib/getstr.c: Don't include assert.h.
72781         (getstr): Remove warning-evoking assertions.
72782         Return -1 if offset parameter is out of bounds.
72783         Change the type of a local from int to size_t.
72784
72785         * lib/strftime.c (my_strftime_localtime_r): Include this function
72786         definition in the `#if ! HAVE_TM_GMTOFF' block.
72787
72788         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
72789         Include xalloc.h instead.
72790
72791 2001-12-02  Jim Meyering  <meyering@lucent.com>
72792
72793         * lib/tempname.c: Don't declare getenv, thus reverting the change of
72794         2001-11-18.  It's no longer necessary, now that stdlib.h is always
72795         included.
72796
72797         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
72798         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
72799
72800 2001-11-30  Akim Demaille  <akim@epita.fr>
72801
72802         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
72803         before being defined.
72804
72805 2001-11-27  Paul Eggert  <eggert@twinsun.com>
72806
72807         * lib/quotearg.h (quotearg_n, quotearg_n_style):
72808         First arg is int, not unsigned.
72809         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
72810         (SIZE_MAX, UINT_MAX): New macros.
72811         (quotearg_n_options): Abort if N is negative.
72812         Avoid overflow check on hosts where size_t is 64 bits and int
72813         is 32 bits, as overflow is impossible there.
72814         Fix off-by-one typo that caused unnecessary reallocation.
72815
72816 2001-11-27  Jim Meyering  <meyering@lucent.com>
72817
72818         * lib/tempname.c: Merge with version from libc.
72819         * lib/regex.c: Likewise.
72820
72821         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
72822         systems for which STDC_HEADERS is 0, it was not included, resulting in
72823         a warning about an integer-to-pointer conversion problem with getenv.
72824         Reported by Volker Borchert.
72825
72826 2001-11-26  Jim Meyering  <meyering@lucent.com>
72827
72828         * lib/gtod.h: Remove file.
72829         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
72830         * lib/gettimeofday.c: Don't include gtod.h.
72831         (GTOD_init): Remove function.
72832         (rpl_gettimeofday): Do its job here instead, rather than aborting.
72833         Suggestion from Volker Borchert.
72834
72835 2001-11-23  Jim Meyering  <meyering@lucent.com>
72836
72837         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
72838         it.
72839         * lib/hash.c (struct hash_table): Define it here instead.
72840
72841 2001-11-22  Jim Meyering  <meyering@lucent.com>
72842
72843         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
72844
72845 2001-11-20  Jim Meyering  <meyering@lucent.com>
72846
72847         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
72848         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
72849
72850 2001-11-19  Jim Meyering  <meyering@lucent.com>
72851
72852         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
72853         directory.  Use "conftestXXXXXX" as the template.
72854         Suggestion from Paul Eggert.
72855
72856         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
72857         immediately, so the test doesn't mistakenly hit the max-open-files
72858         limit.
72859
72860 2001-11-18  Paul Eggert  <eggert@twinsun.com>
72861
72862         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
72863         (TEMPORARIES): New macro.
72864         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
72865         removes an artificial limitation (e.g. HP-UX 10.20, where
72866         TMP_MAX is 17576).
72867
72868 2001-11-18  Jim Meyering  <meyering@lucent.com>
72869
72870         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
72871
72872 2001-11-18  Jim Meyering  <meyering@lucent.com>
72873
72874         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
72875         on SunOS 4.
72876
72877         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
72878         files will be created before anything else.
72879
72880 2001-11-17  Paul Eggert  <eggert@twinsun.com>
72881
72882         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
72883         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
72884
72885 2001-11-17  Jim Meyering  <meyering@lucent.com>
72886
72887         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
72888         Prompted by a report from Bob Proulx.
72889
72890         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
72891         Instead, require UTILS_FUNC_MKSTEMP.
72892
72893 2001-11-17  Jim Meyering  <meyering@lucent.com>
72894
72895         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
72896         Now, that's done as part of AC_FUNC_STRTOD.
72897
72898 2001-11-17  Jim Meyering  <meyering@lucent.com>
72899
72900         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
72901         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
72902         rather than group writable.  Patch by Juan F. Codagnone.
72903
72904         * lib/readtokens.c: Remove explicit declarations of xmalloc and
72905         xrealloc, Instead, include "xalloc.h".
72906
72907         * lib/mountlist.c: Include unlocked-io.h after all system headers.
72908         Remove explicit declarations of xmalloc, xrealloc,
72909         and xstrdup.  Instead, include "xalloc.h".
72910
72911         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
72912         unlocked-io.h.
72913         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
72914         Likewise.
72915         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
72916
72917         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
72918         Reported by Padraig Brady.
72919
72920         * lib/mkstemp.c: #undef mkstemp.
72921         Include config.h.
72922         (rpl_mkstemp): Rename from mkstemp.
72923         Protoize.
72924
72925 2001-11-16  Jim Meyering  <meyering@lucent.com>
72926
72927         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
72928         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
72929         determine the amount of total physical memory, use pstat_getstatic.
72930         HPUX-11 doesn't define _SC_PHYS_PAGES.
72931         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
72932         If sysconf couldn't be used to determine the amount of available
72933         physical memory, use both pstat_getstatic and pstat_getdynamic.
72934         Based on a patch from Bob Proulx.
72935
72936 2001-11-10  Jim Meyering  <meyering@lucent.com>
72937
72938         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
72939         (jm_PREREQ): Use it.
72940
72941 2001-11-09  Jim Meyering  <meyering@lucent.com>
72942
72943         * m4/jm-macros.m4: Require autoconf-2.52f.
72944         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
72945         Use these AC_-prefixed names, not the AM_-prefixed ones.
72946
72947         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
72948
72949 2001-11-05  Jim Meyering  <meyering@lucent.com>
72950
72951         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
72952
72953 2001-11-04  Jim Meyering  <meyering@lucent.com>
72954
72955         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
72956         $DEFS.
72957
72958 2001-11-03  Jim Meyering  <meyering@lucent.com>
72959
72960         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
72961         of AC_DEFUN.
72962
72963         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
72964         know the name of the variable in the macro definition.
72965
72966 2001-11-03  Jim Meyering  <meyering@lucent.com>
72967
72968         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
72969         in argmatch_to_argument call.
72970
72971         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
72972         argument.
72973
72974         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
72975         e.g., a fault due to an attempt to free a NULL pointer.
72976
72977 2001-11-01  Jim Meyering  <meyering@lucent.com>
72978
72979         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
72980         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
72981
72982 2001-11-01  Jim Meyering  <meyering@lucent.com>
72983
72984         * lib/dirfd.c, lib/dirfd.h: New files.
72985         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
72986
72987         * lib/hash.c (hash_print) [TESTING]: Clean up.
72988
72989 2001-10-22  Paul Eggert  <eggert@twinsun.com>
72990
72991         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
72992         to avoid a warning if -Wall.
72993
72994 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
72995
72996         * README: New file
72997         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
72998         (per RMS's instructions, this is now the canonical source)
72999         * lgpl/, gpl/: New directories.
73000
73001 2001-10-21  Paul Eggert  <eggert@twinsun.com>
73002
73003         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
73004
73005 2001-10-21  Jim Meyering  <meyering@lucent.com>
73006
73007         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
73008         this code would end up calling gettext even in packages built
73009         with --disable-nls.
73010         * lib/getopt.c (_): Likewise.
73011         * lib/regex.c (_): Likewise.
73012
73013 2001-10-20  Paul Eggert  <eggert@twinsun.com>
73014
73015         * m4/error.m4 (jm_PREREQ_ERROR):
73016         Do not invoke AC_CHECK_FUNCS with strerror_r, as
73017         AC_FUNC_STRERROR_R does that.
73018         Check for strerror declaration.
73019
73020         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
73021         are supposed to have them these days.
73022         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
73023         Merge changes from latest Autoconf CVS.
73024         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
73025         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
73026         POSIX decided to standardize on the int flavor of strerror_r.
73027
73028 2001-10-20  Paul Eggert  <eggert@twinsun.com>
73029
73030         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
73031         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
73032         Use strerror_r that is only a macro, even if it is not a function.
73033         (strerror): Check for HAVE_DECL_STRERROR before declaring.
73034         (private_strerror): Use prototypes, not old-style function definition.
73035         (print_errno_message): New function.
73036         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
73037         char*-flavored one.
73038         (error_tail, error, error_at_line): Use it.
73039
73040 2001-10-11  Jim Meyering  <meyering@lucent.com>
73041
73042         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
73043         and quote_n (1, ... to avoid clobbering a buffer.
73044
73045 2001-10-05  Jim Meyering  <meyering@lucent.com>
73046
73047         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
73048         hash-pjw.h.
73049         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
73050         * lib/hash-pjw.h: New file.
73051
73052 2001-09-30  Jim Meyering  <meyering@lucent.com>
73053
73054         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
73055         `struct fsstat' has the `f_fstypename' member.
73056         Use that to define FS_TYPE, which is now used to make
73057         the getfsstat link test tighter.
73058
73059 2001-09-30  Jim Meyering  <meyering@lucent.com>
73060
73061         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
73062         Include <sys/ucred.h>, for Apple Darwin.
73063         Include sys/mount.h and sys/fs_types.h only if available.
73064         (FS_TYPE): Define.
73065         (read_filesystem_list): Use FS_TYPE.
73066
73067 2001-09-29  Paul Eggert  <eggert@twinsun.com>
73068
73069         * lib/exclude.c (excluded_filename): 0 -> false, since it's
73070         a boolean context.
73071
73072 2001-09-29  Jim Meyering  <meyering@lucent.com>
73073
73074         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
73075         [one-argument getmntent function]): Include stdio.h before mntent.h.
73076         SunOS 4.1.x needs it for the declaration of `FILE'.
73077         Patch by Volker Borchert.
73078
73079         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
73080         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
73081         sys/fs_types.h, and make the link-test for getfsstat guard #include
73082         directives with appropriate #if HAVE_*_H tests so that we can
73083         detect getfsstat on Apple Darwin1.3.7 systems.
73084         Reported by Nelson Beebe.
73085         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
73086
73087 2001-09-28  Paul Eggert  <eggert@twinsun.com>
73088
73089         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
73090         #defines strtoimax.  Also treat the other strto* functions
73091         like strtoimax.
73092
73093         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
73094         Check for strtoul and strtoumax,
73095         as those declarations are made even in the signed case.
73096         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
73097         Likewise, for strtol and strtoimax.
73098
73099 2001-09-28  Paul Eggert  <eggert@twinsun.com>
73100
73101         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
73102         #defines strtoimax.  Also treat the other strto* functions
73103         like strtoimax.
73104
73105         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
73106         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
73107         (strtoimax, strtoumax): Do not declare if already defined as a macro.
73108
73109 2001-09-26  Jim Meyering  <meyering@lucent.com>
73110
73111         Most macros in unlocked-io.h had the wrong number of arguments.
73112         * lib/gen-uio: New script.
73113         (USE_UNLOCKED_IO): Define to 1 if not already defined.
73114         * lib/unlocked-io.hin: Remove file.
73115         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
73116         rather than trying to embed it here.
73117         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
73118         Reported by Padraig Brady.
73119
73120 2001-09-25  Volker Borchert  <bt@teknon.de>
73121
73122         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
73123         `result'.
73124
73125 2001-09-24  Jim Meyering  <meyering@lucent.com>
73126
73127         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
73128
73129 2001-09-23  Jim Meyering  <meyering@lucent.com>
73130
73131         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
73132         instead of the mere test for existence of mntent.h.  The latter
73133         would get a false-positive on AIX 3.4 systems.
73134         In the outer getmntent if-block, don't die if neither of the getmntent
73135         tests succeeds.  Instead, just fall through and continue with the
73136         remaining tests.
73137
73138 2001-09-23  Jim Meyering  <meyering@lucent.com>
73139
73140         * lib/mountlist.c: Remove useless parentheses in #if directives.
73141         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
73142         the deprecated MOUNTED symbol is no longer defined in mntent.h.
73143
73144 2001-09-22  Jim Meyering  <meyering@lucent.com>
73145
73146         * m4/gettext.m4: New file.  From gettext.
73147         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
73148         * m4/progtest.m4: Likewise
73149         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
73150         * m4/glibc21.m4: Likewise.
73151
73152         * m4/libintl.m4: Remove.  No longer used.
73153
73154 2001-09-22  Jim Meyering  <meyering@lucent.com>
73155
73156         * lib/localcharset.c: Update from latest gettext.
73157         * lib/config.charset: Likewise.
73158
73159 2001-09-20  Jim Meyering  <meyering@lucent.com>
73160
73161         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
73162         strtoimax.
73163         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
73164         strtoumax.
73165
73166 2001-09-20  Jim Meyering  <meyering@lucent.com>
73167
73168         * lib/xstrtol.c (strtoimax): Guard declaration with
73169         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
73170         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
73171         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
73172         (strtoumax): Likewise, for completeness (it wasn't necessary).
73173
73174 2001-09-17  Paul Eggert  <eggert@twinsun.com>
73175
73176         * lib/strtoimax.c (HAVE_LONG_LONG):
73177         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
73178         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
73179         to work around bug in IBM C compiler.
73180
73181 2001-09-17  Jim Meyering  <meyering@lucent.com>
73182
73183         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
73184         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
73185         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
73186         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
73187         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
73188         whenever the right hand side need not be expanded by the shell.
73189
73190 2001-09-16  Paul Eggert  <eggert@twinsun.com>
73191
73192         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
73193         library.  It's not correct, as some older glibcs are buggy.
73194         fnmatch wasn't fixed until glibc 2.2.
73195
73196         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
73197         special shell magic here.
73198
73199 2001-09-16  Jim Meyering  <meyering@lucent.com>
73200
73201         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
73202         * m4/jm-macros.m4: Require it.
73203
73204 2001-09-16  Jim Meyering  <meyering@lucent.com>
73205
73206         * lib/mkdir.c: New file.
73207
73208 2001-09-15  Jim Meyering  <meyering@lucent.com>
73209
73210         * m4/jm-macros.m4: Check for help2man.
73211
73212 2001-09-11  Jim Meyering  <meyering@lucent.com>
73213
73214         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
73215         The body, by Paul Eggert, was moved here from configure.in.
73216         * m4/jm-macros.m4: Require UTILS_HOST_OS.
73217
73218 2001-09-04  Paul Eggert  <eggert@twinsun.com>
73219
73220         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
73221         (jm_PREREQ): Use it.
73222
73223 2001-09-04  Paul Eggert  <eggert@twinsun.com>
73224
73225         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
73226         Use ssize_t, not int, to store result of readlink.
73227         Check for ssize_t overflow as well as size_t overflow,
73228         as POSIX says the result of readlink is implementation-defined
73229         when ssize_t overflows.
73230         Remove unnecessary cast to char*.
73231         Use free+malloc instead of realloc, as the storage doesn't need
73232         to be preserved and it's clearer and can be more efficient that way.
73233         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
73234         * lib/xreadlink.h (xreadlink): Update prototype.
73235
73236 2001-09-04  Paul Eggert  <eggert@twinsun.com>
73237
73238         * lib/xgetcwd.c: Revert some of the previous change; intead,
73239         fix the HAVE_GETCWD_NULL code to behave more like the
73240         !HAVE_GETCWD_NULL code used to.
73241
73242         Include "xalloc.h".
73243         (xgetcwd): Do not return NULL when memory is exhausted; instead,
73244         invoke xalloc_die.
73245
73246 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73247
73248         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
73249         sys/param.h, as pathmax.h includes them.
73250
73251 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73252
73253         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
73254         (jm_PREREQ_XGETCWD): New macro.
73255
73256         * m4/getcwd.m4: New file.
73257
73258 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73259
73260         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
73261         like the HAVE_GETCWD_NULL code.
73262         Include pathmax.h if not HAVE_GETCWD.
73263         Do not include xalloc.h.
73264         (INITIAL_BUFFER_SIZE): New symbol.
73265         Do not use xmalloc / xrealloc, since the caller is responsible for
73266         handling errors.  Preserve errno around `free' during failure.
73267         Do not overrun buffer when using getwd.
73268
73269 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73270
73271         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
73272         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
73273         getcwd (NULL, 0).
73274
73275 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73276
73277         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
73278         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
73279         spotted by Jim Meyering.
73280
73281 2001-09-03  Jim Meyering  <meyering@lucent.com>
73282
73283         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
73284         failure.
73285
73286 2001-09-02  Jim Meyering  <meyering@lucent.com>
73287
73288         * lib/error.c: Update from GNU libc.
73289
73290 2001-09-01  Jim Meyering  <meyering@lucent.com>
73291
73292         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
73293         Used by df.
73294
73295 2001-09-01  Jim Meyering  <meyering@lucent.com>
73296
73297         * lib/xreadlink.c: New file.
73298         * lib/xreadlink.h: New file.
73299         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
73300         xreadlink.h.
73301
73302         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
73303         doesn't conflict with sparc Solaris 7's definition in
73304         /usr/include/sys/int_types.h.
73305
73306         * lib/exclude.c: Use `""', not `<>' to #include non-system header
73307         files.
73308         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
73309         and strncasecmp as r-values.  Unixware didn't have declarations.
73310
73311 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73312
73313         * lib/xstrtol.h: Add copyright notice.
73314         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
73315         LONGINT_INVALID_SUFFIX_CHAR.
73316
73317 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73318
73319         * lib/xstrtol.c (strtoimax): New decl.
73320
73321 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73322
73323         * lib/xgetcwd.c: Don't include pathmax.h.
73324         Include stdlib.h and unistd.h if available.
73325         Include xalloc.h.
73326         (xmalloc, xstrdup, free): Remove decls.
73327         (xgetcwd): Don't assume sizes fit in unsigned.
73328         Check for overflow when computing sizes.
73329         Simplify reallocation code.
73330
73331 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73332
73333         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
73334         a directory's st_size can have an arbitrary value, so the old
73335         usage could waste an arbitrary amount of memory.  All uses
73336         changed.
73337         * lib/savedir.h: Update prototype.
73338
73339 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73340
73341         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
73342
73343         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
73344         old strtoimax.c.
73345
73346         Also, make the following further changes to make this file's
73347         configuration more similar to that of strtol.c:
73348         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
73349         (strtoumax, uintmax_t, strtoull, strtol): Remove.
73350         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
73351         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
73352         changed to signed values.
73353
73354         And make the following changes as well:
73355         Fix copyright notice, as 1999 was missing.
73356         (verify): New macro.
73357         (strtoimax): Check sizes at compile-time, not run-time.
73358         Prefer strtol to strtoll if both work.
73359         (main): Remove; it was not that useful and was a pain to maintain.
73360
73361         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
73362
73363 2001-08-31  Jim Meyering  <meyering@lucent.com>
73364
73365         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
73366         Use an initial, malloc'd, buffer of length 128 rather than
73367         a statically allocated one of length 1024.
73368
73369 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73370
73371         Simplify code, partly by assuming autoconf 2.52 semantics.
73372
73373         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
73374
73375         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
73376         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
73377         All uses removed.
73378         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
73379         Move AC_REQUIRE to next-to-top level, to avoid confusion.
73380         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
73381         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
73382         jm_AC_HEADER_INTTYPES_H.
73383         * m4/jm-macros.m4 (jm_MACROS): Likewise.
73384
73385         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
73386
73387         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
73388         Quote first arg of AC_DEFUN.
73389         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
73390         since they are needed to parse the include file even if we need
73391         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
73392         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
73393         but with opposite signedness.
73394
73395 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73396
73397         Merge 'exclude' changes from tar 1.13.22.
73398         This fixes one or two unlikely storage allocation overflow bugs,
73399         but doesn't change user-visible behavior otherwise.
73400
73401 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73402
73403         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
73404         (jm_PREREQ_EXCLUDE): New macro.
73405
73406 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73407
73408         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
73409         tm to be declared.
73410
73411 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73412
73413         * lib/hash.c: Remove '2001' from copyright notice.
73414
73415 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73416
73417         * lib/full-write.h: New file.
73418         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
73419         * lib/full-write.c: Correct credits, as cccp.c no longer
73420         exists and anyway it was so heavily changed from the old cccp
73421         code as to be unrecognizable.  Include full-write.h.
73422         (full_write) Return size_t, with short writes meaning failure.
73423         All callers changed.  This fixes a bug with large buffers
73424         on 64-bit hosts.
73425         * lib/utime.c: Include full-write.h.
73426
73427 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73428
73429         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
73430         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
73431         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
73432         Include if available.
73433         (<xalloc.h>): Include
73434         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
73435         (verify): New macro.  Use it to verify that EXCLUDE macros do not
73436         collide with FNM macros.
73437         (struct patopts): New struct.
73438         (struct exclude): Use it, as exclude patterns now come with options.
73439         (new_exclude): Support above changes.
73440         (new_exclude, add_exclude_file):
73441         Initial size must now be a power of two to simplify overflow checking.
73442         (free_exclude, fnmatch_no_wildcards): New function.
73443         (excluded_filename): No longer requires options arg, as the options
73444         are determined by add_exclude.  Now returns bool, not int.
73445         (excluded_filename, add_exclude):
73446         Add support for the fancy new exclusion options.
73447         (add_exclude, add_exclude_file): Now takes int options arg.
73448         Check for arithmetic overflow when computing sizes.
73449         (add_exclude_file): xrealloc might modify errno, so don't
73450         realloc until after errno might be used.
73451
73452         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
73453         New macros.
73454         (free_exclude): New decl.
73455         (add_exclude, add_exclude_file): Now takes int options arg.
73456         (excluded_filename): No longer requires options arg, as the options
73457         are determined by add_exclude.  Now returns bool, not int.
73458
73459 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73460
73461         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
73462
73463 2001-08-27  Jim Meyering  <meyering@lucent.com>
73464
73465         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
73466
73467         * lib/version-etc.c (N_): Remove definition.
73468         Revert most of last change.
73469         Instead, simply don't mark the `Copyright...' string for translation.
73470         Based on advice from Paul Eggert.
73471
73472         * lib/strtoxmax.c: Tweak comment.
73473
73474 2001-08-26  Jim Meyering  <meyering@lucent.com>
73475
73476         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
73477
73478         * m4/xstrtoimax.m4: New file.
73479         * m4/xstrtoumax.m4: Add comments explaining why we
73480         AC_REPLACE_FUNCS(strtol).
73481
73482 2001-08-26  Jim Meyering  <meyering@lucent.com>
73483
73484         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
73485         of copyright with `%s' so translators don't get an untranslated
73486         message in 2002.
73487         (COPYRIGHT_YEAR): Define.
73488         (version_etc): Use fprintf rather than fputs.
73489         Suggestion from Ulrich Drepper.
73490
73491         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
73492
73493         * lib/strtoll.c: New file, from GNU libc.
73494         * lib/xstrtoimax.c: New file.
73495
73496         * lib/xstrtol.h: Add xstrtoimax.
73497         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
73498         * lib/strtoimax.c: New file.  Likewise, but first define
73499         STRTOUXMAX_SIGNED.
73500
73501         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
73502         ...
73503         * lib/strtoxmax.c: ... then renamed to this.
73504
73505 2001-08-18  Paul Eggert  <eggert@twinsun.com>
73506
73507         * m4/inttypes.m4: Add AC_PREREQ(2.13).
73508         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
73509         (jm_AC_TYPE_INTMAX_T): New macro.
73510         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
73511
73512         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
73513
73514         * m4/longlong.m4: Renamed from ulonglong.m4.
73515         * m4/inttypes.m4: Renamed from inttypes_h.m4.
73516         * m4/uintmax_t.m4: Removed.
73517
73518 2001-08-13  Paul Eggert  <eggert@twinsun.com>
73519
73520         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
73521         Port to Solaris 8, where 'sed' requires a space after the 'r'
73522         command, and where sh dislikes "$/".  Clean up the spacing a bit.
73523         Redirect output to $tmp just once.
73524
73525 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
73526
73527         * lib/addext.c (<errno.h>): Include.
73528         (errno): Declare if not defined.
73529         (addext): Work correctly when pathconf returns -1 and leaves
73530         errno alone because there is no limit.  Also, work even if
73531         pathconf returns a value greater than SIZE_MAX.
73532
73533 2001-08-12  Jim Meyering  <meyering@lucent.com>
73534
73535         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
73536         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
73537         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
73538         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
73539         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
73540         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
73541         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
73542         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
73543         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
73544         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
73545         utime.m4, utimes.m4, xstrtoumax.m4:
73546         Quote the first argument in each use of AC_DEFUN.
73547
73548 2001-08-12  Jim Meyering  <meyering@lucent.com>
73549
73550         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
73551         Simply `return getcwd (NULL, 0);'.
73552         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
73553         Use 1300 as initial value for length, not PATH_MAX.
73554
73555         * lib/pathmax.h: Clean up cpp syntax.
73556
73557 2001-08-12  Jim Meyering  <meyering@lucent.com>
73558
73559         * lib/gettimeofday.c: New file.
73560         * lib/gtod.h: New file.
73561         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
73562
73563 2001-08-05  Jim Meyering  <meyering@lucent.com>
73564
73565         * m4/jm-macros.m4: Require autoconf-2.52.
73566
73567 2001-08-04  Jim Meyering  <meyering@lucent.com>
73568
73569         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
73570         stmt, to get in sync with glibc.
73571
73572 2001-08-03  Paul Eggert  <eggert@twinsun.com>
73573
73574         The following changes are from gettext 0.10.39 as maintained by
73575         Bruno Haible.
73576
73577         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
73578         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
73579         with inverted sense.  All uses changed.
73580
73581         * lib/mbswidth.c: Don't include <limits.h>.
73582         Include <stdlib.h> and <string.h> unconditionally.
73583         (iswcntrl, mbsinit, ISCNTRL): New macros.
73584         (mbsnwidth): Use K&R style function declarations.
73585         Don't bother checking for MB_LEN_MAX == 1, since the compiler
73586         can optimize it when MB_CUR_MAX == 1.
73587         The width of control characters is zero, not 1.
73588
73589 2001-08-03  Paul Eggert  <eggert@twinsun.com>
73590
73591         The following changes are from gettext 0.10.39 as maintained by
73592         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
73593
73594         * m4/codeset.m4: Upgrade to serial AM1.
73595         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
73596         all uses changed.  Quote first arg of AC_DEFUN.
73597         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
73598
73599         * m4/iconv.m4: Upgrade to serial AM2.
73600         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
73601         Add --with-libconv-prefix.
73602         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
73603         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
73604         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
73605         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
73606         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
73607
73608         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
73609         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
73610         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
73611         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
73612         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
73613         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
73614         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
73615         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
73616         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
73617
73618         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
73619         string.h any more.
73620
73621         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
73622         not the default value.
73623
73624         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
73625         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
73626         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
73627         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
73628         Also check for iswcntrl, used for wcwidth fallback.
73629         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
73630         to Autoconf 2.13.
73631
73632 2001-08-03  Jim Meyering  <meyering@lucent.com>
73633
73634         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
73635         as it was in the original.  Reported by Paul Eggert.
73636
73637 2001-07-16  Jim Meyering  <meyering@lucent.com>
73638
73639         * m4/gettimeofday.m4: New file.
73640         Prompted by a report from Bernhard Baehr.
73641
73642 2001-07-15  Jim Meyering  <meyering@lucent.com>
73643
73644         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
73645         stuff. Now it's in ../Makefile.cfg.
73646
73647 2001-07-15  Jim Meyering  <meyering@lucent.com>
73648
73649         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
73650         (BUILT_SOURCES): Add unlocked-io.h.
73651         (io_functions): Define.
73652         (unlocked-io.h): New rule.
73653         (DISTCLEANFILES): Add unlocked-io.h.
73654         (all-local): Depend on unlocked-io.h, to ensure it is created.
73655
73656         * lib/unlocked-io.hin: New file
73657
73658         * lib/regex.c: Update from glibc.
73659
73660 2001-07-05  Jim Meyering  <meyering@lucent.com>
73661
73662         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
73663         recommendation.
73664         (libfetish_a_SOURCES): Put all .h files here instead.
73665         Remove a thus-exposed (better checks in automake) duplicate and
73666         two unnecessary .h files.
73667
73668 2001-07-04  Jim Meyering  <meyering@lucent.com>
73669
73670         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
73671         that generates jm-glibc-io.m4 so that it doesn't trigger any make
73672         distcheck failure.
73673
73674 2001-07-02  Jim Meyering  <meyering@lucent.com>
73675
73676         The following changes were prompted by suggestions from Bruno Haible.
73677
73678         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
73679         is now generated.
73680         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
73681         definition of EXTRA_DIST.
73682         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
73683         ensure that the generated file is created/updated whenever the list
73684         of $(unlocked_functions) is changed.
73685         (jm-glibc-io.m4): New rule.
73686         (unlocked-io.h): New rule -- currently unused.
73687
73688 2001-06-24  Jim Meyering  <meyering@lucent.com>
73689
73690         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
73691         unmatched right bracket, rather than kludging it with an extra,
73692         falsely-matching quote in a comment.  Patch by Akim Demaille.
73693
73694 2001-06-11  Jim Meyering  <meyering@lucent.com>
73695
73696         * lib/regex.c: Update from GNU libc.
73697
73698 2001-05-27  Jim Meyering  <meyering@lucent.com>
73699
73700         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
73701         Check for ut_type in struct utmp.
73702
73703 2001-05-27  Jim Meyering  <meyering@lucent.com>
73704
73705         * lib/readutmp.h (UT_TYPE): Define.
73706
73707 2001-05-24  Jim Meyering  <meyering@lucent.com>
73708
73709         * lib/argmatch.c: Include "quote.h".
73710         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
73711         quote function.  Reported by Göran Uddeborg.
73712
73713 2001-05-22  Jim Meyering  <meyering@lucent.com>
73714
73715         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
73716         now that we use the package-supplied version unconditionally.
73717         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
73718
73719 2001-05-21  Jim Meyering  <meyering@lucent.com>
73720
73721         * m4/regex.m4: Change a couple backticks to single quotes to avoid
73722         shell syntax errors.
73723
73724 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
73725
73726         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
73727
73728 2001-05-20  Paul Eggert  <eggert@twinsun.com>
73729
73730         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
73731         Don't bother to check library strftime, since
73732         we'll be using our own my_strftime function anyway.
73733         Define my_strftime instead of strftime.
73734
73735 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
73736
73737         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
73738         which is not yet declared.
73739
73740 2001-05-15  Jim Meyering  <meyering@lucent.com>
73741
73742         * m4/regex.m4: Use proper quoting so brackets appear in the test
73743         program.
73744         Reported by, and with help from, Bruno Haible.
73745
73746 2001-05-13  Jim Meyering  <meyering@lucent.com>
73747
73748         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
73749         undefined.
73750
73751 2001-05-11  Paul Eggert  <eggert@twinsun.com>
73752
73753         dirname code cleanup.  base_name now behaves more compatibly
73754         with POSIX basename when given file names that have trailing
73755         slashes, and similarly for dir_name.  Add new primitives
73756         base_len and dir_len.  Put the directory-name-related decls
73757         into dirname.h.
73758
73759         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
73760         * lib/backupfile.c (base_name): Likewise.
73761         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
73762         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
73763         * lib/makepath.c (strip_trailing_slashes): Likewise.
73764         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
73765         ISSLASH): Likewise.
73766         * lib/rename.c (strip_trailing_slashes): Likewise.
73767         * lib/same.c (base_name): Likewise.
73768         * lib/stripslash.c (ISSLASH): Likewise.
73769
73770         * lib/addext.c: Include <dirname.h> after size_t is defined.
73771         * lib/backupfile.c: Likewise.
73772
73773         * lib/addext.c (addext): Use base_len to trim redundant
73774         trailing slashes instead of doing it ourselves.
73775         But do not trim the last slash if it is not redundant.
73776
73777         * lib/backupfile.c (find_backup_file_name,
73778         max_backup_version): Use base_len instead of rolling it ourselves.
73779         Handle the case of "" and (on DOS) "C:" correctly.
73780
73781         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
73782         needed. Include <string.h>, <dirname.h>.
73783         (base_name): Allow file names ending in slashes, other than names
73784         that are all slashes.  In this case, return the basename followed
73785         by the slashes.  This is more general, and can be used in places
73786         where the original base_name purposely had an assertion failure.
73787         (base_len): New function.
73788
73789         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
73790         Do not include <assert.h>; no longer needed.
73791         Include xalloc.h.
73792         (memrchr): Remove decl.
73793         (dir_name_r): Remove.
73794         (dir_len): Renamed from dirlen.  All callers changed.
73795         Rewrite in terms of base_name, for simplicity and consistency.
73796         (dir_name): Never return NULL.  All callers changed.
73797         Do not include <stdlib.h> in test program; no longer needed.
73798         return 0; is fine for test program.
73799
73800         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
73801         New macros.
73802         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
73803
73804         * lib/path-concat.c (path_concat): Use base_len to compute
73805         base length, not strlen; this means we cannot rely on memcpy
73806         to null-terminate.
73807
73808         * lib/same.c (STREQ): Remove.
73809         (same_name): Handle the case where the basename ends in trailing '/'.
73810
73811         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
73812         a slash was stripped.  Do not strip the last slash after a
73813         file system prefix.
73814
73815 2001-05-11  Paul Eggert  <eggert@twinsun.com>
73816
73817         * lib/Makefile.am (libfetish_a_SOURCES):
73818         Add strftime.c, since we now compile it on all hosts.
73819
73820         * lib/strftime.c (my_strftime):
73821         Define to nstrftime if emacs, but only if my_strftime is not defined.
73822         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
73823         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
73824         Add one more extra argument: a nanoseconds value.
73825         All uses changed.
73826         (ns): New macro.
73827         (my_strftime function): Add %N format.
73828         (emacs_strftimeu): Renamed from emacs_strftime,
73829         with extra ut argument.
73830
73831 2001-05-09  Paul Eggert  <eggert@twinsun.com>
73832
73833         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
73834
73835 2001-04-21  Jim Meyering  <meyering@lucent.com>
73836
73837         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
73838         doesn't interfere.
73839
73840 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
73841
73842         * m4/ftruncate.m4: Check for chsize.
73843         Link with ftruncate.o unconditionally if ftruncate is missing.
73844         This was required when cross-compiling to i586-mingw32msvc.
73845
73846 2001-04-08  Jim Meyering  <meyering@lucent.com>
73847
73848         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
73849         recomputed; that's necessary when the offset spans a DST transition.
73850         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
73851
73852 2001-04-02  Jim Meyering  <meyering@lucent.com>
73853
73854         * lib/regex.h, regex.c: Update from GNU libc.
73855
73856 2001-03-24  Jim Meyering  <meyering@lucent.com>
73857
73858         * m4/jm-macros.m4: Require autoconf-2.49d.
73859
73860 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
73861
73862         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
73863
73864 2001-03-19  Paul Eggert  <eggert@twinsun.com>
73865
73866         * lib/version-etc.c (version_etc_copyright): Update to 2001.
73867
73868 2001-03-17  Jim Meyering  <meyering@lucent.com>
73869
73870         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
73871         now that the version in autoconf is equivalent.
73872         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
73873
73874         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
73875         Suggestion from Akim Demaille.
73876
73877         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
73878         (jm_PREREQ_TEMPNAME): New function.
73879
73880 2001-03-16  Paul Eggert  <eggert@twinsun.com>
73881
73882         * lib/tempname.c (uint64_t): Define to uintmax_t if
73883         not defined, and if UINT64_MAX is not defined.
73884         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
73885         Reported by John David Anglin.
73886
73887 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
73888
73889         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
73890         resolve alias if codeset is empty.
73891         * lib/config.charset (BeOS): Use wildcard syntax.
73892
73893 2001-03-13  Jim Meyering  <meyering@lucent.com>
73894
73895         * lib/path-concat.c (path_concat)
73896         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
73897         concatenating e.g., `C:' and `foo'.
73898         From Bruno Haible.
73899
73900 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
73901
73902         * lib/localcharset.c (locale_charset): Don't use
73903         setlocale(LC_CTYPE,NULL). Don't return NULL.
73904         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
73905
73906 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
73907
73908         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
73909         support for DOS/DJGPP.
73910
73911 2001-03-01  Paul Eggert  <eggert@twinsun.com>
73912
73913         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
73914         lacks mkstemp.  Compile our own tempname.c if we compile our own
73915         mkstemp.c, as mkstemp relies on tempname.
73916
73917 2001-03-01  Jim Meyering  <meyering@lucent.com>
73918
73919         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
73920         AH_VERBATIM really does output its argument verbatim.
73921
73922 2001-02-28  Paul Eggert  <eggert@twinsun.com>
73923
73924         * lib/Makefile.am (libfetish_a_SOURCES):
73925         Add dup-safer.c, fopen-safer.c.
73926         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
73927
73928         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
73929         * lib/unistd-safer.h: New files.
73930
73931 2001-02-25  Paul Eggert  <eggert@twinsun.com>
73932
73933         The mkstemp replacement is taken from glibc 2.2.2, with some
73934         portability fixes for use outside glibc, as follows:
73935
73936         * lib/tempname.c (struct_stat64): New macro.
73937         (direxists, __gen_tempname): Use it.
73938         This avoids a portability problem with Solaris 8.
73939
73940         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
73941         (<stddef.h>, <stdint.h>, <string.h>):
73942         Include only if STDC_HEADERS || _LIBC.
73943         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
73944         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
73945         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
73946         (__set_errno): Define this macro if <errno.h> doesn't.
73947         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
73948         Define these macros if <stdio.h> doesn't.
73949         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
73950         Define these macros if <sys/stat.h>
73951         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
73952         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
73953         __xstat64): Define if not _LIBC.
73954         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
73955         (__gen_tempname): Invoke gettimeofday only if
73956         HAVE_GETTIMEOFDAY || _LIBC;
73957         otherwise, fall back on plain "time".
73958         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
73959
73960         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
73961
73962         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
73963
73964 2001-02-18  Paul Eggert  <eggert@twinsun.com>
73965
73966         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
73967
73968 2001-02-17  Paul Eggert  <eggert@twinsun.com>
73969
73970         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
73971         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
73972         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
73973         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
73974
73975 2001-02-17  Paul Eggert  <eggert@twinsun.com>
73976
73977         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
73978         Remove workaround macros for hosts that have mbrtowc but not
73979         mbstate_t, as we now insist on proper declarations for both
73980         before using mbrtowc.
73981
73982 2001-02-17  Jim Meyering  <meyering@lucent.com>
73983
73984         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
73985         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
73986         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
73987         UnixWare 7.1.1.
73988
73989         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
73990         rather than AC_CACHE_VAL.
73991
73992 2001-02-17  Jim Meyering  <meyering@lucent.com>
73993
73994         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
73995         around included file name.
73996
73997         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
73998
73999         * lib/strftime.c: Update from GNU libc (the only changes were to
74000         comments).
74001
74002 2001-02-17  Jim Meyering  <meyering@lucent.com>
74003
74004         * lib/regex.c: Update from libc.
74005
74006 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
74007
74008         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
74009         clash.
74010
74011 2001-02-16  Paul Eggert  <eggert@twinsun.com>
74012
74013         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
74014         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
74015         Reported by Mark Hounschell via Paul Eggert.
74016
74017 2001-02-07  Jim Meyering  <meyering@lucent.com>
74018
74019         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
74020
74021 2001-02-05  Jim Meyering  <meyering@lucent.com>
74022
74023         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
74024         it includes the patch required for `large file' support with at least
74025         HP-UX's 10.20 /bin/cc.
74026
74027 2001-02-03  Jim Meyering  <meyering@lucent.com>
74028
74029         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
74030         AS_IF, now that it works once again (mysteriously).
74031         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
74032
74033 2001-01-30  Jim Meyering  <meyering@lucent.com>
74034
74035         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
74036         * m4/chown.m4: Rename conftestchown to conftest.chown.
74037         * m4/rename.m4: s/conftestdir/conftest.d1/ and
74038         s/conftestdir2/conftest.d2/.
74039         * m4/utimes.m4: s/conftestdata/conftest.data/
74040         Inspired by Pavel Roskin's change in autoconf.
74041
74042 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
74043
74044         * lib/config.charset: Update for FreeBSD 4.2.
74045
74046 2001-01-27  Jim Meyering  <meyering@lucent.com>
74047
74048         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
74049         a use of AS_IF.
74050         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
74051
74052 2001-01-26  Jim Meyering  <meyering@lucent.com>
74053
74054         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
74055         quotearg.c includes it.
74056
74057 2001-01-26  Jim Meyering  <meyering@lucent.com>
74058
74059         * lib/quotearg.c: Include stddef.h.
74060         * lib/quote.c: Include stddef.h.
74061         Reported by Axel Kittenberger.
74062
74063         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
74064         line in double quotes so that it evokes a better diagnostic.
74065         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
74066         Reported by Axel Kittenberger.
74067
74068 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
74069
74070         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
74071         as if it was a `charset'.
74072
74073 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
74074
74075         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
74076         has const.
74077
74078 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
74079
74080         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
74081         to avoid a warning.  Add back 'const' to inptr.
74082
74083 2001-01-20  Jim Meyering  <meyering@lucent.com>
74084
74085         Be sure that headers are checked before used in code compiled
74086         for the type checks.
74087         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
74088         In place of that, invoke jm_CHECK_ALL_TYPES.
74089         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
74090         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
74091         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
74092         The check for ssize_t was mistakenly run before the test for unistd.h.
74093
74094         The configure-time check for stdbool.h was missing.
74095         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
74096         (jm_PREREQ_HASH): New function.
74097
74098 2001-01-17  Jim Meyering  <meyering@lucent.com>
74099
74100         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
74101         for autoconf-2.49c.
74102         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
74103
74104 2001-01-16  Jim Meyering  <meyering@lucent.com>
74105
74106         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
74107         From Bruno Haible.
74108
74109 2001-01-14  Jim Meyering  <meyering@lucent.com>
74110
74111         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
74112         foo and bar.  Create conftestdir/ in the script, not in the C code.
74113         Remove directories in the script, not in the C code.
74114         Remove conftestdir{,2} before trying to create the directory.
74115         Make the entire configure script fail if the mkdir fails.
74116
74117 2001-01-14  Jim Meyering  <meyering@lucent.com>
74118
74119         * lib/rename.c: New file.  From Volker Borchert.
74120         Include stdlib.h, string.h or strings.h, and xalloc.h.
74121         Use strip_trailing_slashes rather than open-coding it.
74122
74123 2001-01-03  Paul Eggert  <eggert@twinsun.com>
74124
74125         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
74126
74127 2001-01-03  Jim Meyering  <meyering@lucent.com>
74128
74129         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
74130         of local `inptr' to avoid warning with some system declarations of
74131         iconv.
74132
74133 2001-01-02  Volker Borchert  <bt@teknon.de>
74134
74135         * m4/rename.m4: New file.
74136         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
74137
74138 2001-01-01  Jim Meyering  <meyering@lucent.com>
74139
74140         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
74141         even on systems with utmpx.h.  It's necessary for the declaration of
74142         utmp's ut_user member.  Reported by Andreas Jaeger.
74143
74144         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
74145         available. They are required for the declarations of getgrgid and
74146         getpwuid resp.
74147         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
74148         Reported by Andreas Jaeger.
74149
74150 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
74151
74152         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
74153         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
74154         so `make install' also works in VPATH builds.
74155
74156 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
74157
74158         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
74159         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
74160         can be used in subdirectories.
74161
74162 2000-12-29  Paul Eggert  <eggert@twinsun.com>
74163
74164         * lib/modechange.c: Do not assume that mode_t uses the
74165         traditional octal encoding.  E.g. "chmod 1 FOO" should set
74166         the other-execute bit of FOO even if S_IXOTH != 1.
74167
74168         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
74169         WOTH, XOTH, ALLM): New macros.
74170         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
74171          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
74172         Use them.
74173         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
74174         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
74175         (mode_compile):
74176         No need to use uintmax_t; unsigned long is long enough.
74177         Don't bother to get suffix since we don't use it.
74178
74179 2000-12-26  Jim Meyering  <meyering@lucent.com>
74180
74181         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
74182         better with autoheader.
74183
74184 2000-12-24  Jim Meyering  <meyering@lucent.com>
74185
74186         * lib/hash.c (is_prime): Return explicit boolean values.
74187         (hash_get_first): Return NULL to appease Irix5.6's 89.
74188         Reported by Nelson Beebe.
74189
74190 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
74191
74192         * lib/localcharset.c (locale_charset): Add support for Win32.
74193
74194 2000-12-18  Paul Eggert  <eggert@twinsun.com>
74195
74196         * lib/physmem.h, lib/physmem.c: New files.
74197
74198         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
74199         (noinst_HEADERS): Add physmem.h.
74200
74201         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
74202         't' for compatibility with Solaris 8 sort.
74203
74204 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
74205
74206         * lib/config.charset: Add support for BeOS.
74207
74208 2000-12-17  Jim Meyering  <meyering@lucent.com>
74209
74210         * m4/dos.m4 (jm_AC_DOS): New file and macro.
74211         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
74212
74213 2000-12-16  Jim Meyering  <meyering@lucent.com>
74214
74215         This bug had a serious impact on chown: `chown N:M FILE' (for integer
74216         N and M) would have treated it like `chown N:N FILE'.
74217
74218         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
74219
74220 2000-12-16  Jim Meyering  <meyering@lucent.com>
74221
74222         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
74223         SHELLS_FILE to a file name that's useful on djgpp systems.
74224         Include stdlib.h.
74225         (ADDITIONAL_DEFAULT_SHELLS): Define.
74226         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
74227         Based mostly on a patch from Prashant TR.
74228
74229 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
74230
74231         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
74232         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
74233         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
74234
74235 2000-12-08  Andreas Schwab  <schwab@suse.de>
74236
74237         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
74238         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
74239
74240 2000-12-07  Jim Meyering  <meyering@lucent.com>
74241
74242         * lib/stripslash.c (ISSLASH): Define.
74243         (strip_trailing_slashes): Use ISSLASH rather than comparing against
74244         `/'.
74245         From Prashant TR.
74246
74247         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
74248         (dir_name_r): Declare this function as static.
74249         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
74250         manifest itself on a name containing a mix of slashes and
74251         backslashes.
74252         Make this function work with names starting with a DOS-style
74253         drive letter and colon prefix.
74254         (dir_name): Append `.' if necessary.
74255         Based mostly on patches from Prashant TR and Eli Zaretskii.
74256
74257         * lib/dirname.h (dir_name_r): Remove prototype.
74258
74259 2000-12-06  Paul Eggert  <eggert@twinsun.com>
74260
74261         * m4/off_t-format.m4: Remove this file.
74262         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
74263
74264 2000-12-06  Jim Meyering  <meyering@lucent.com>
74265
74266         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
74267         replacement strtoull, we may well need the replacement strtoul, too.
74268         Check for declarations of strtoul and strtoull.
74269         Check for strtol.  Mainly as a cue to cause automake to include
74270         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
74271         Check for limits.h -- strtol.c needs it.
74272
74273 2000-12-05  Jim Meyering  <meyering@lucent.com>
74274
74275         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
74276
74277 2000-12-04  Jim Meyering  <meyering@lucent.com>
74278
74279         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
74280         Also include memory.h, stdlib.h, unistd.h if appropriate.
74281         Reported by Andreas Jaeger (conflicting declaration of malloc).
74282
74283 2000-12-02  Jim Meyering  <meyering@lucent.com>
74284
74285         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
74286         * m4/jm-macros.m4 (jm_MACROS): require it.
74287
74288 2000-12-02  Jim Meyering  <meyering@lucent.com>
74289
74290         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
74291
74292 2000-12-01  Paul Eggert  <eggert@twinsun.com>
74293
74294         * lib/memrchr.c: Include <config.h> before any system include file.
74295
74296 2000-11-30  Jim Meyering  <meyering@lucent.com>
74297
74298         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
74299
74300 2000-11-30  Jim Meyering  <meyering@lucent.com>
74301
74302         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
74303
74304 2000-11-29  Paul Eggert  <eggert@twinsun.com>
74305
74306         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
74307
74308 2000-11-26  Jim Meyering  <meyering@lucent.com>
74309
74310         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
74311
74312 2000-11-22  Paul Eggert  <eggert@twinsun.com>
74313
74314         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
74315         size of (size_t) -1; it's not portable.
74316
74317 2000-11-17  Jim Meyering  <meyering@lucent.com>
74318
74319         * lib/strstr.c: Update from GNU libc.
74320
74321 2000-11-17  Akim Demaille  <akim@epita.fr>
74322
74323         * lib/obstack.h: Formatting changes.
74324         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
74325         prevent type checking.
74326         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
74327         cast the value to (void *): assigning a `foo *' to a `void *'
74328         variable is valid.
74329         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
74330
74331 2000-11-16  Jim Meyering  <meyering@lucent.com>
74332
74333         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
74334
74335 2000-11-11  Jim Meyering  <meyering@lucent.com>
74336
74337         * lib/error.c: Add a couple #includes, merging from GNU libc version.
74338
74339 2000-11-10  Jim Meyering  <meyering@lucent.com>
74340
74341         * lib/obstack.h: Update from GNU libc.
74342         * lib/obstack.c: Likewise.
74343
74344 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
74345
74346         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
74347
74348 2000-11-06  Paul Eggert  <eggert@twinsun.com>
74349
74350         * lib/getusershell.c (setusershell): Use rewind rather than
74351         fseek/fseeko, to avoid configuration hassles with fseeko.
74352         Don't bother opening SHELLS_FILE if shellstream is NULL;
74353         it's not necessary.
74354
74355 2000-11-05  Jim Meyering  <meyering@lucent.com>
74356
74357         * lib/makepath.h (make_dir): Declare.
74358         * lib/makepath.c (make_dir): Remove `static' attribute.
74359         Tweak a comment.
74360
74361 2000-11-04  Jim Meyering  <meyering@lucent.com>
74362
74363         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
74364
74365 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
74366
74367         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
74368         last one in a bucket, advance to the next bucket.
74369
74370 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
74371
74372         * lib/fnmatch.c: Do not comment out all the code if we are using
74373         the GNU C library, because in some cases we are replacing buggy
74374         code in the GNU C library itself.
74375
74376 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
74377
74378         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
74379         (regex_compile): Catch bogus \(\1\).
74380
74381 2000-10-30  Paul Eggert  <eggert@twinsun.com>
74382
74383         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
74384         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
74385         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
74386
74387 2000-10-30  Paul Eggert  <eggert@twinsun.com>
74388
74389         * lib/error.h, getline.h, modechange.h:
74390         Remove "2000" from Copyright line, as the file hasn't been
74391         changed this year other than in the copyright notice.
74392
74393         * lib/xalloc.h: Add "2000" to Copyright line, as this file
74394         was changed this year.
74395
74396 2000-10-29  Jim Meyering  <meyering@lucent.com>
74397
74398         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
74399         renaming.
74400         * m4/ls-mntd-fs.m4: Likewise
74401
74402 2000-10-29  Jim Meyering  <meyering@lucent.com>
74403
74404         * lib/xstat.in: Fix grammar in comment.
74405
74406 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
74407
74408         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
74409         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
74410         doesn't define __restrict_arr.
74411
74412 2000-10-28  Jim Meyering  <meyering@lucent.com>
74413
74414         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
74415         (jm_PREREQ_MEMCHR): New function.
74416
74417 2000-10-28  Jim Meyering  <meyering@lucent.com>
74418
74419         * lib/memchr.c: Update from libc.
74420         Adjust for portability:
74421         [HAVE_STDLIB_H]: Include stdlib.h.
74422         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
74423         Undef __memchr, too.
74424         [!weak_alias]: Define __memchr to memchr.
74425
74426         * lib/regex.c: Update from libc.
74427         * lib/regex.h: Likewise.
74428         * lib/getopt1.c: Likewise.
74429         * lib/memcmp.c: Likewise.
74430
74431         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
74432         Avoid using fseek, when possible -- it's broken by design.
74433         Patch by Ulrich Drepper.
74434
74435 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
74436
74437         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
74438         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
74439         Giving in to popular pressure to shut up the compiler with casts.
74440
74441 2000-10-26  Jim Meyering  <meyering@lucent.com>
74442
74443         * lib/strftime.c: Update from libc.
74444
74445 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
74446
74447         * regex.c: More `unsigned char' -> `re_char' changes.
74448         Also change several `int' into `re_wchar_t'.
74449         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
74450         (PUSH_FAILURE_POINTER): Don't cast any more.
74451         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
74452         We want GCC to complain, since this piece of code makes
74453         re_match non-reentrant, which *should* be fixed.
74454         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
74455         (EXTEND_BUFFER): Use RETALLOC.
74456         (SET_LIST_BIT): Don't cast.
74457         (re_wchar_t): New type.
74458         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
74459         that those two functions will always properly return.
74460         (IMMEDIATE_QUIT_CHECK): Cast to void.
74461         (analyse_first): Use recursion rather than an explicit stack.
74462         (re_compile_fastmap): Can't fail anymore.
74463         (re_search_2): Don't check re_compile_fastmap for failure.
74464         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
74465         Now also sets the new value (passed in a new argument).
74466         (re_match_2_internal): Use it.
74467         Also, use a new var `reg' of type size_t when looping through regs
74468         rather than reuse the inappropriate `mcnt'.
74469
74470 2000-10-25  Jim Meyering  <meyering@lucent.com>
74471
74472         * lib/obstack.c: Update from libc.
74473
74474 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
74475
74476         * regex.c (regex_compile): Change the way of handling a range from
74477         a char less than 256 to a char not less than 256.
74478
74479 2000-10-24  Andrew Innes  <andrewi@gnu.org>
74480
74481         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
74482         NT-Emacs only.
74483         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
74484         so that re_search functions only quit when callers expect them to.
74485
74486 2000-10-23  Jim Meyering  <meyering@lucent.com>
74487
74488         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
74489         wrong.  That set_locale call must not have any side effects.
74490         From Paul Eggert.
74491
74492 2000-10-22  Jim Meyering  <meyering@lucent.com>
74493
74494         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
74495         [CYCLIC]: Remove now-unused definition.
74496
74497         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
74498         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
74499         Suggestion from Ulrich Drepper.
74500
74501 2000-10-21  Jim Meyering  <meyering@lucent.com>
74502
74503         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
74504         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
74505         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
74506
74507 2000-10-21  Jim Meyering  <meyering@lucent.com>
74508
74509         * lib/dirname.c (memrchr): Declare if necessary.
74510         (dir_name): Remove the restriction that there be no
74511         trailing slashes.  Now, this code skips past them, effectively
74512         ignoring them.
74513         [TEST_DIRNAME] (main): New unit tests.
74514
74515         * lib/memrchr.c: New file from GNU libc.
74516         Undef __memrchr, too.
74517         [!weak_alias]: Define __memrchr to memrchr.
74518         Guard weak_alias use with `#ifdef weak_alias'.
74519
74520 2000-10-21  Jim Meyering  <meyering@lucent.com>
74521
74522         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
74523         (dir_name): Use dir_name_r.
74524         * lib/dirname.h (dir_name_r): Declare it.
74525
74526 2000-10-17  Jim Meyering  <meyering@lucent.com>
74527
74528         * lib/quote.h (PARAMS): Define and use.
74529         Reported by Akim Demaille.
74530
74531         * lib/getopt.c: Update from libc.
74532
74533 2000-10-16  Jim Meyering  <meyering@lucent.com>
74534
74535         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
74536         setlocale.
74537         From Jan Fedak.
74538
74539 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
74540
74541         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
74542
74543 2000-09-25  Jim Meyering  <meyering@lucent.com>
74544
74545         * lib/md5.h (rol): Define (from GnuPG).
74546
74547         * lib/sha.c: Give credit (GnuPG) where due.
74548         (M): Use rol rather than open-coding it.
74549         Add a FIXME comment.
74550
74551 2000-09-21  Jim Meyering  <meyering@lucent.com>
74552
74553         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
74554         Reported by Michael Stone.
74555
74556 2000-09-20  Jim Meyering  <meyering@lucent.com>
74557
74558         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
74559         (noinst_HEADERS): Add sha.h.
74560         Based on code from Scott G. Miller and from GnuPG.
74561
74562 2000-09-18  Jim Meyering  <meyering@lucent.com>
74563
74564         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
74565         LIBS. Otherwise, everyone ends up linking with -lelf for some
74566         configurations.
74567         Reported by Mike Stone.
74568
74569 2000-09-15  Jim Meyering  <meyering@lucent.com>
74570
74571         * lib/regex.c: Update from libc.
74572
74573 2000-09-10  Jim Meyering  <meyering@lucent.com>
74574
74575         * lib/getopt.c (_getopt_internal): Update from glibc.
74576
74577 2000-09-09  Jim Meyering  <meyering@lucent.com>
74578
74579         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
74580         think it should be used as a general replacement for isascii.
74581         * lib/fnmatch.c: Likewise.
74582         * lib/mbswidth.c: Likewise
74583         * lib/regex.c: Likewise.
74584
74585         Don't use atoi.
74586         * lib/userspec.c: Include sys/param.h and limits.h.
74587         Include xstrtol.h.
74588         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
74589         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
74590         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
74591         UID, GID.  Check range.
74592
74593 2000-09-06  Jim Meyering  <meyering@lucent.com>
74594
74595         * lib/getopt.c (_getopt_internal): Update from glibc.
74596
74597 2000-08-30  Jim Meyering  <meyering@lucent.com>
74598
74599         * lib/strftime.c: Merge in changes from GNU libc.
74600
74601 2000-08-26  Jim Meyering  <meyering@lucent.com>
74602
74603         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
74604         * m4/fpending.m4: New file.
74605
74606 2000-08-26  Jim Meyering  <meyering@lucent.com>
74607
74608         * lib/closeout.c: Include "__fpending.h".
74609         (close_stdout_status): Return right away if there's nothing to flush.
74610
74611         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
74612         * lib/__fpending.c: New file.
74613         * lib/__fpending.h: New file.
74614
74615 2000-08-20  Jim Meyering  <meyering@lucent.com>
74616
74617         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
74618         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
74619         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
74620
74621 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
74622
74623         Improve fileutils installation on systems where running
74624         programs (like install) can't be unlinked.
74625         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
74626         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
74627
74628 2000-08-07  Paul Eggert  <eggert@twinsun.com>
74629
74630         Standardize on "memory exhausted" instead of "Memory exhausted"
74631         or "virtual memory exhausted".
74632         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
74633         "virtual memory exhausted".
74634         * lib/same.c (same_name): Invoke xalloc_die instead of printing
74635         our own message.
74636         * lib/userspec.c (parse_user_spec): Likewise.
74637         * lib/bumpalloc.h: comment fix
74638         * lib/same.c, userspec.c: Include xalloc.h.
74639
74640         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
74641         not char *const and pointing to a constant array.
74642         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
74643         (xrealloc): Comment fix.
74644
74645         * lib/userspec.c (parse_user_spec):
74646         Don't translate a message until just before returning,
74647         to avoid unnecessary translation.
74648
74649 2000-08-07  Jim Meyering  <meyering@lucent.com>
74650
74651         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
74652         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
74653         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
74654         getgroups.c, gethostname.c, getopt.h, group-member.c,
74655         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
74656         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
74657         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
74658         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
74659         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
74660         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
74661         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
74662         yesno.c: Back out Copyright date changes for each file with no change
74663         this year.  This eases coordination with other programs using the same
74664         source code modules.  From Paul Eggert.
74665
74666 2000-08-06  Paul Eggert  <eggert@twinsun.com>
74667
74668         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
74669         not char, for compatibility with glibc 2.1.3 strftime.c.
74670
74671 2000-08-03  Greg McGary  <greg@mcgary.org>
74672
74673         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
74674         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
74675         (EXTEND_BUFFER): Use them.
74676
74677 2000-08-01  Jim Meyering  <meyering@lucent.com>
74678
74679         * lib/dirname.c (ISSLASH): Define.
74680         (BACKSLASH_IS_PATH_SEPARATOR): Define.
74681         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
74682         both `\' and `/' may be use as path separators.
74683         Based on a patch from Prashant TR.
74684
74685 2000-07-31  Paul Eggert  <eggert@twinsun.com>
74686
74687         * lib/quotearg.c (quotearg_n_options): Don't make the initial
74688         slot vector a constant, since it might get modified.
74689
74690 2000-07-31  Jim Meyering  <meyering@lucent.com>
74691
74692         * lib/xmalloc.c: Use `virtual memory exhausted', not
74693         `Memory exhausted'.
74694         * lib/obstack.c (print_and_abort): Likewise.
74695
74696 2000-07-30  Paul Eggert  <eggert@twinsun.com>
74697
74698         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
74699         buffer, so that the caller can always quote one small
74700         component of a "memory exhausted" message in slot 0.
74701         From a suggestion by Jim Meyering.
74702
74703 2000-07-30  Jim Meyering  <meyering@lucent.com>
74704
74705         * lib/makepath.c (make_path): Quote the other instance, too.
74706
74707         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
74708         (STATIC_BUF_SIZE): Define.
74709         (quotearg_n_options): Use only statically allocated storage when
74710         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
74711         than STATIC_BUF_SIZE.
74712
74713 2000-07-29  Jim Meyering  <meyering@lucent.com>
74714
74715         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
74716         * lib/dirname.c (dir_name): Likewise.
74717
74718         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
74719         `/'.
74720
74721         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
74722         (dir_name): Assert that there are no trailing slashes.
74723
74724 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
74725
74726         * lib/mbswidth.h (mbswidth): Add a flags argument.
74727         (mbswidth): New declaration.
74728         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
74729         * lib/mbswidth.c (mbswidth): Add a flags argument.
74730         (mbsnwidth): New function.
74731
74732 2000-07-24  Jim Meyering  <meyering@lucent.com>
74733
74734         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
74735
74736 2000-07-23  Paul Eggert  <eggert@twinsun.com>
74737
74738         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
74739
74740 2000-07-23  Paul Eggert  <eggert@twinsun.com>
74741
74742         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
74743         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
74744         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
74745         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
74746         invoke multibyte primitives.
74747
74748 2000-07-23  Paul Eggert  <eggert@twinsun.com>
74749
74750         * lib/quotearg.c:
74751         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
74752         so that mbstate_t is always defined.
74753
74754         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
74755         be 1 in at least one GCC installation, and this configuration
74756         error is likely to be common.  Ignoring MB_LEN_MAX hurts
74757         performance on hosts that have mbrtowc but have only unibyte
74758         locales, but I assume these hosts are rare.
74759
74760 2000-07-23  Paul Eggert  <eggert@twinsun.com>
74761
74762         * lib/mbswidth.c (_XOPEN_SOURCE):
74763         Don't define; this causes problems on Solaris 7.
74764         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
74765
74766 2000-07-23  Jim Meyering  <meyering@lucent.com>
74767
74768         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
74769         too: getgrgid, getpwuid, getuid.
74770
74771 2000-07-23  Jim Meyering  <meyering@lucent.com>
74772
74773         * lib/basename.c (base_name): Add an assertion.
74774
74775 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
74776
74777         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
74778         shadow its mbsinit function.
74779
74780 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
74781
74782         * lib/mbswidth.h: New file.
74783         * lib/mbswidth.c: New file.
74784         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
74785         (noinst_HEADERS): Add mbswidth.h.
74786
74787 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
74788
74789         * lib/config.charset: Add support for FreeBSD. Improve support for
74790         HP-UX and IRIX 6.
74791
74792 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
74793
74794         * m4/mbswidth.m4: New file.
74795         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
74796
74797 2000-07-15  Jim Meyering  <meyering@lucent.com>
74798
74799         * lib/makepath.c: Include quote.h.
74800         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
74801         corresponding argument in a `quote (...)' call.
74802         Give better diagnostics.
74803
74804         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
74805         (noinst_HEADERS): Add quote.h.
74806
74807         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
74808         from tar's src/misc.c.
74809         * lib/quote.h: New file.  Prototypes for same.
74810
74811 2000-07-14  Paul Eggert  <eggert@twinsun.com>
74812
74813         From a suggestion by Bruno Haible.
74814         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
74815         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
74816         to decide whether to define the BeOS workaround macro;
74817         this adjusts to the change to AC_MBSTATE_T.
74818
74819 2000-07-14  Jim Meyering  <meyering@lucent.com>
74820
74821         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
74822         jm_AC_TYPE_UINTMAX_T.
74823
74824 2000-07-13  Paul Eggert  <eggert@twinsun.com>
74825
74826         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
74827
74828         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
74829         quotearg_buffer_restyled): Add support for
74830         clocale_quoting_style.  Undo previous change to
74831         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
74832         and "{RIGHT QUOTATION MARK}" msgids.
74833
74834 2000-07-10  Paul Eggert  <eggert@twinsun.com>
74835
74836         From a suggestion by Bruno Haible.
74837         * m4/mbstate_t.m4 (AC_MBSTATE_T):
74838         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
74839         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
74840         and mbstate_t, to a single-part test that simply defines mbstate_t.
74841         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
74842         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
74843
74844 2000-07-10  Jim Meyering  <meyering@lucent.com>
74845
74846         * m4/strerror_r.m4: Mirror the correction made in autoconf.
74847
74848         * m4/gnu-source.m4: Output to confdefs.h directly.
74849         Suggestion from Akim Demaille.
74850
74851 2000-07-09  Paul Eggert  <eggert@twinsun.com>
74852
74853         The old behavior of quoting `like this' doesn't look good with
74854         newer, ISO-style fonts.  See:
74855         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
74856
74857         Instead, quote "like this" by default.  Let the translator
74858         tailor the locale-specific quoting behavior by providing
74859         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
74860
74861         * lib/quotearg.c (N_): New macro.
74862         (gettext_default): New function.
74863         (quotearg_buffer_restyled): Use
74864         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
74865         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
74866
74867 2000-07-09  Jim Meyering  <meyering@lucent.com>
74868
74869         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
74870         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
74871
74872         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
74873         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
74874
74875 2000-07-09  Jim Meyering  <meyering@lucent.com>
74876
74877         * lib/Most files: Update copyright dates to include 2000.
74878
74879 2000-07-08  Jim Meyering  <meyering@lucent.com>
74880
74881         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
74882         if not defined.
74883         (xgethostname): Remove now-unnecessary #ifdef.
74884         Move declaration of `err' into loop where it's used.
74885
74886 2000-07-05  Paul Eggert  <eggert@twinsun.com>
74887         and Bruno Haible  <haible@clisp.cons.org>
74888
74889         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
74890         only if the test for an object-type mbstate_t fails.  This
74891         prevents us from mistakenly reporting that mbstate_t is a
74892         system object type after we "#define mbstate_t int" to work
74893         around its lack.
74894
74895 2000-07-05  Paul Eggert  <eggert@twinsun.com>
74896         and Bruno Haible  <haible@clisp.cons.org>
74897
74898         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
74899
74900 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
74901
74902         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
74903         to strerror_r.
74904         Include <ctype.h> for use of isalpha.
74905
74906 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
74907
74908         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
74909         by allocating a larger buffer. Test the gethostname return value for
74910         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
74911         returns an error and ENAMETOOLONG isn't defined.
74912
74913 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
74914
74915         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
74916         dimension.
74917
74918 2000-07-04  Jim Meyering  <meyering@lucent.com>
74919
74920         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
74921         of the deprecated AC_CHECKING.
74922
74923 2000-07-04  Jim Meyering  <meyering@lucent.com>
74924
74925         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
74926         Reported by Bruno Haible.
74927
74928 2000-07-04  Jim Meyering  <meyering@lucent.com>
74929
74930         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
74931         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
74932         lacks mbrtowc.
74933
74934 2000-07-03  Paul Eggert  <eggert@twinsun.com>
74935
74936         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
74937         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
74938
74939 2000-07-03  Paul Eggert  <eggert@twinsun.com>
74940         and Bruno Haible  <haible@clisp.cons.org>
74941
74942         * lib/quotearg.c (mbrtowc):
74943         Assign to *pwc, and return 1 only if result is nonzero.
74944         (iswprint): Use ISPRINT when substituting our own mbrtowc.
74945
74946 2000-07-03  Jim Meyering  <meyering@lucent.com>
74947
74948         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
74949
74950 2000-07-03  Jim Meyering  <meyering@lucent.com>
74951
74952         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
74953         This is necessary to get a definition of e.g., UTMP_FILE on
74954         HP-UX 10.20.
74955         From Bob Proulx.
74956
74957 2000-07-02  Jim Meyering  <meyering@lucent.com>
74958
74959         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
74960
74961         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
74962         AC_LIBOBJ(function_name).
74963         * m4/chown.m4: Likewise.
74964         * m4/fnmatch.m4: Likewise.
74965         * m4/ftruncate.m4: Likewise.
74966         * m4/getgroups.m4: Likewise.
74967         * m4/getline.m4: Likewise.
74968         * m4/group-member.m4: Likewise.
74969         * m4/jm-macros.m4: Likewise.
74970         * m4/lstat.m4: Likewise.
74971         * m4/malloc.m4: Likewise.
74972         * m4/memcmp.m4: Likewise.
74973         * m4/nanosleep.m4: Likewise.
74974         * m4/putenv.m4: Likewise.
74975         * m4/realloc.m4: Likewise.
74976         * m4/regex.m4: Likewise.
74977         * m4/stat.m4: Likewise.
74978         * m4/strftime.m4: Likewise.
74979
74980 2000-07-02  Jim Meyering  <meyering@lucent.com>
74981
74982         * lib/quotearg.c (mbstate_t): Don't define here.
74983
74984 2000-07-02  Jim Meyering  <meyering@lucent.com>
74985
74986         * lib/nanosleep.c (SIGCONT): Define if not already defined.
74987
74988 2000-07-01  Jim Meyering  <meyering@lucent.com>
74989
74990         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
74991
74992 2000-07-01  Jim Meyering  <meyering@lucent.com>
74993
74994         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
74995         problem.
74996
74997 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
74998
74999         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
75000         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
75001
75002 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
75003
75004         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
75005         per change in ../m4/ls-mntd-fs.m4.
75006         (read_filesystem_list): Ignore symbolic links.
75007
75008 2000-06-29  Jim Meyering  <meyering@lucent.com>
75009
75010         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
75011         for declaration of strcmp.
75012
75013         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
75014
75015         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
75016         Avoid warning by casting result to `char *' to remove `const'.
75017
75018 2000-06-28  Jim Meyering  <meyering@lucent.com>
75019
75020         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
75021         included by quotearg.c, for which we perform this test.  From
75022         Bruno Haible.
75023
75024 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
75025
75026         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
75027         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
75028         <utmpx.h> exists, put readutmp.o into LIBOBJS.
75029
75030 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
75031
75032         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
75033
75034 2000-06-26  Paul Eggert  <eggert@twinsun.com>
75035
75036         savedir now sets errno on failure and invokes xmalloc to get memory.
75037         Fix a couple of other minor bugs while we're at it.
75038
75039         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
75040         (NAMLEN): Remove macro.
75041         (malloc, realloc): Remove decls.
75042         (stpcpy): Likewise.
75043         ("xalloc.h"): Include.
75044         (NAME_SIZE_DEFAULT): New macro.
75045         (savedir): Use xmalloc / xrealloc to allocate memory.
75046         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
75047         Skip "" directory entries.
75048         Use strlen to calculate directory entry length, since the old method
75049         is rarely used these days and isn't worth supporting.
75050         Don't use a pointer after freeing it.
75051         Check for integer overflow when calculating allocation size.
75052         Use memcpy to copy entries, instead of stpcpy.
75053         Set errno properly when returning NULL.
75054         Check for readdir error.
75055
75056 2000-06-26  Jim Meyering  <meyering@lucent.com>
75057
75058         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
75059
75060 2000-06-25  Jim Meyering  <meyering@lucent.com>
75061
75062         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
75063         Linux header bug when _XOPEN_SOURCE is defined to 500.
75064
75065 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
75066
75067         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
75068         deficiency.
75069
75070 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
75071
75072         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
75073         Include xalloc.h.
75074         Don't include <stdlib.h>.  Don't declare malloc, realloc.
75075
75076 2000-06-24  Jim Meyering  <meyering@lucent.com>
75077
75078         * m4/strerror_r.m4: Revive this file -- to try out an experimental
75079         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
75080         for which strerror does return char*, but which lacks a conveniently
75081         accessible declaration of the function.  If the compile-test says
75082         strerror_r doesn't work, then resort to a `run'-test that works on
75083         BeOS and segfaults on DEC Unix.
75084
75085 2000-06-24  Jim Meyering  <meyering@lucent.com>
75086
75087         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
75088
75089 2000-06-23  Paul Eggert  <eggert@twinsun.com>
75090
75091         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
75092         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
75093
75094 2000-06-23  Paul Eggert  <eggert@twinsun.com>
75095
75096         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
75097         (mbrtowc, mbstate_t): Define substitutes if
75098         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
75099         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
75100         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
75101
75102 2000-06-23  Jim Meyering  <meyering@lucent.com>
75103
75104         * m4/afs.m4: Add missing AC_MSG_RESULT.
75105         Reported by Bruno Haible.
75106
75107         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
75108         Suggestion from Bruno Haible.
75109
75110 2000-06-23  Jim Meyering  <meyering@lucent.com>
75111
75112         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
75113
75114 2000-06-21  Jim Meyering  <meyering@lucent.com>
75115
75116         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
75117
75118 2000-06-21  Jim Meyering  <meyering@lucent.com>
75119
75120         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
75121         (noinst_HEADERS): Add getstr.h.
75122
75123         * lib/getline.c (getstr): Move into a separate file.
75124         * lib/getstr.c (getstr): New file, extracted from getline.c, with
75125         the following changes: new parameter, delim2; both delim[12]
75126         parameters have type `int', not `char'.  The latter would lose
75127         with 8-bit delimiters.
75128         * lib/getstr.h: New file.
75129
75130 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
75131
75132         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
75133         than 1024, return a memory chunk of least possible size, instead
75134         of size PATH_MAX + 2. In the loop, increment the size proportionally.
75135         Use free/xmalloc instead of xrealloc to avoid copying for very long
75136         paths.
75137
75138 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
75139
75140         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
75141         the empty string.
75142
75143 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
75144
75145         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
75146         address, not strdup.  Include <stdlib.h> and don't declare free().
75147
75148 2000-06-19  Jim Meyering  <meyering@lucent.com>
75149
75150         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
75151
75152 2000-06-18  Jim Meyering  <meyering@lucent.com>
75153
75154         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
75155
75156         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
75157         `checking whether...' message to be consistent with that of the
75158         lstat test.
75159
75160 2000-06-18  Jim Meyering  <meyering@lucent.com>
75161
75162         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
75163         Besides, these days every porting target provides a mkdir function.
75164
75165         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
75166         needed. (this snippet comes from src/system.h).
75167
75168 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
75169
75170         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
75171
75172 2000-06-15  Paul Eggert  <eggert@twinsun.com>
75173
75174         * lib/human.c (adjust_value): New function.
75175         (human_readable_inexact): Apply rounding style even when
75176         printing approximate values.
75177
75178 2000-06-14  Paul Eggert  <eggert@twinsun.com>
75179
75180         * lib/human.c (human_readable_inexact): Allow an input block
75181         size that is not a multiple of the output block size, and vice versa.
75182         Reported by Piergiorgio Sartor.
75183
75184 2000-06-14  Paul Eggert  <eggert@twinsun.com>
75185
75186         * lib/getdate.y (get_date): Apply relative times after time
75187         zone indicator, not before.  Reported by Todd A. Jacobs.
75188
75189 2000-06-13  Jim Meyering  <meyering@lucent.com>
75190
75191         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
75192
75193         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
75194
75195 2000-06-12  Paul Eggert  <eggert@twinsun.com>
75196
75197         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
75198
75199 2000-06-12  Jim Meyering  <meyering@lucent.com>
75200
75201         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
75202         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
75203         optional argument.
75204         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
75205         the optional argument, `lib'.
75206
75207 2000-06-08  Jim Meyering  <meyering@lucent.com>
75208
75209         * m4/largefile.m4: Remove file (now that it's part of autoconf).
75210
75211 2000-06-04  Paul Eggert  <eggert@twinsun.com>
75212
75213         Rewrite largefile configuration so that we don't need to run
75214         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
75215         AC_CANONICAL_HOST in configure.in -- jmm]
75216
75217         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
75218         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
75219         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
75220         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
75221         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
75222         All uses changed.
75223         Instead of inspecting the output of getconf, try to compile the
75224         test program without and with the macro definition.
75225         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
75226         for getconf.  Instead, check for the needed flags by compiling
75227         test programs.
75228
75229 2000-06-04  Paul Eggert  <eggert@twinsun.com>
75230
75231         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
75232
75233 2000-06-04  Jim Meyering  <meyering@lucent.com>
75234
75235         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
75236         SunOS 4.1.4 for which gid_t is an unsigned type.
75237
75238 2000-06-03  Jim Meyering  <meyering@lucent.com>
75239
75240         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
75241         now that autoconf requires that.
75242
75243         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
75244         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
75245         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
75246
75247 2000-06-03  Jim Meyering  <meyering@lucent.com>
75248
75249         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
75250
75251 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
75252
75253         * m4/glibc21.m4: New file.
75254         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
75255
75256 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
75257
75258         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
75259         newer, don't install charset.alias.
75260         * lib/config.charset: Change the Linux/glibc rules so they become empty
75261         on glibc-2.1 or newer.
75262
75263 2000-06-02  Jim Meyering  <meyering@lucent.com>
75264
75265         * lib/mountlist.c: Back out last change.  Instead, do this...
75266         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
75267         me_dummy member using the same `ignore'-testing code.
75268         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
75269         fs_type strings.
75270         From Mark D. Roth.
75271
75272 2000-05-29  Jim Meyering  <meyering@lucent.com>
75273
75274         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
75275         mounts with the `ignore' attribute.  Based on a patch from
75276         Mark D. Roth.
75277
75278 2000-05-28  Jim Meyering  <meyering@lucent.com>
75279
75280         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
75281         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75282         * m4/stat.m4: Likewise.
75283         * m4/lstat.m4: Likewise.
75284         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
75285
75286         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
75287         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
75288
75289 2000-05-26  Jim Meyering  <meyering@lucent.com>
75290
75291         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
75292
75293 2000-05-24  Jim Meyering  <meyering@lucent.com>
75294
75295         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
75296         autoconf requires that.
75297         * m4/lib-check.m4: Likewise.
75298         * m4/jm-macros.m4: Likewise.
75299         * m4/strftime.m4: Likewise.
75300
75301         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
75302         AC_CHECK_DECLS, now that autoconf requires that.
75303
75304 2000-05-22  Jim Meyering  <meyering@lucent.com>
75305
75306         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75307         * m4/lstat.m4: Likewise.
75308
75309 2000-05-22  Jim Meyering  <meyering@lucent.com>
75310
75311         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
75312
75313 2000-05-20  Jim Meyering  <meyering@lucent.com>
75314
75315         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
75316         (jm_PREREQ): Use it.
75317
75318 2000-05-18  Jim Meyering  <meyering@lucent.com>
75319
75320         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
75321         back, too, since it may have been modified by allocate_entry.
75322         (hash_delete): Rewrite to use neither the assignment operator
75323         nor the comma operator in an if-expression.
75324
75325 2000-05-15  Paul Eggert  <eggert@twinsun.com>
75326
75327         * lib/closeout.c:
75328         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
75329         Remove; no longer needed.
75330         "quotearg.h": Add include.
75331         (file_name): Do not bother to explicitly initialize to NULL; it's less
75332         efficient on some hosts.
75333         (close_stdout_status): Remove test as to whether stdout was already
75334         closed; it breaks for the case "echo x | sort >&-".
75335         Quote file name colons.
75336         Do not assume that _("write error") lacks format strings.
75337
75338 2000-05-15  Jim Meyering  <meyering@lucent.com>
75339
75340         * lib/version-etc.c (version_etc_copyright): Update the copyright
75341         string used in all --version output.
75342
75343 2000-05-14  Jim Meyering  <meyering@lucent.com>
75344
75345         * lib/closeout.c (close_stdout_set_file_name): New function.
75346         (close_stdout_status): Use new file-scoped global.
75347         Return right away if fstat says the stdout file descriptor is invalid.
75348         * lib/closeout.h (close_stdout_set_file_name): Declare.
75349
75350 2000-05-10  Jim Meyering  <meyering@lucent.com>
75351
75352         * lib/closeout.c [default_exit_status]: New file-scoped variable.
75353         (close_stdout_set_status): New function.
75354         * lib/closeout.h (close_stdout_set_status): Declare.
75355
75356 2000-05-09  Jim Meyering  <meyering@lucent.com>
75357
75358         * m4/gettext.m4: Rename this...
75359         * m4/libintl.m4: ...to this.
75360
75361 2000-05-08  Jim Meyering  <meyering@lucent.com>
75362
75363         * lib/long-options.c: Don't include closeout.h.
75364         (parse_long_options): Don't call close_stdout for --version.
75365
75366 2000-05-06  Paul Eggert  <eggert@twinsun.com>
75367
75368         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
75369         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
75370         2.1.3 bug.  This avoids a clash when files like regex.c define
75371         _GNU_SOURCE.
75372
75373 2000-05-06  Jim Meyering  <meyering@lucent.com>
75374
75375         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
75376         (AC_REPLACE_FUNCS): Add strnlen.
75377
75378         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
75379         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
75380
75381         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
75382         AC_SEARCH_LIBS call for nanosleep.
75383         (LIB_NANOSLEEP): Set and AC_SUBST.
75384
75385 2000-05-06  Jim Meyering  <meyering@lucent.com>
75386
75387         * lib/strnlen.c: Undefine __strnlen and strnlen.
75388         [!weak_alias]: Define __strnlen to strnlen.
75389
75390         * lib/atexit.c: New file, from libiberty.
75391
75392 2000-05-06  Jim Meyering  <meyering@lucent.com>
75393
75394         * lib/closeout.c (close_stdout_status): Also check for errors on the
75395         stderr stream.
75396
75397 2000-05-05  Jim Meyering  <meyering@lucent.com>
75398
75399         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
75400         AC_SEARCH_LIBS call for clock_gettime.
75401         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
75402
75403         * m4/search-libs.m4: Update from autoconf.
75404
75405         su doesn't work on Solaris 2.6.
75406         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
75407         <shadow.h>.  Reported by Dragos Harabor.
75408
75409 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
75410
75411         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
75412         memcpy instead of xmalloc, xrealloc, path_concat.
75413         (locale_charset): Treat empty environment variables as absent.
75414         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
75415
75416 2000-05-04  Jim Meyering  <meyering@lucent.com>
75417
75418         * lib/getopt.c: Update from glibc.
75419         * lib/obstack.c: Likewise.
75420         * lib/obstack.h: Likewise.
75421         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
75422         file
75423
75424         * lib/regex.h: Likewise.
75425         * lib/strndup.c: Likewise.
75426         * lib/strnlen.c: New file, from glibc.
75427
75428 2000-05-03  Jim Meyering  <meyering@lucent.com>
75429
75430         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
75431
75432 2000-05-02  Paul Eggert  <eggert@twinsun.com>
75433
75434         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
75435         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
75436         compile-time test, rather than inspecting host and OS, to
75437         decide whether to define _LARGEFILE_SOURCE.
75438
75439 2000-05-01  Jim Meyering  <meyering@lucent.com>
75440
75441         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
75442
75443         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
75444         Based on a patch from Bruno Haible.
75445
75446 2000-05-01  Jim Meyering  <meyering@lucent.com>
75447
75448         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
75449
75450 2000-04-29  Jim Meyering  <meyering@lucent.com>
75451
75452         * lib/path-concat.c: Declare strdup only if it's not defined.
75453         * lib/canon-host.c: Likewise.
75454
75455 2000-04-28  Jim Meyering  <meyering@lucent.com>
75456
75457         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
75458         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
75459         is included first, then limits.h is included by locale.h by libintl.h.
75460         From John David Anglin.
75461
75462 2000-04-25  Jim Meyering  <meyering@lucent.com>
75463
75464         * lib/makepath.c (S_IRWXUGO): Define.
75465         (make_path): Always perform explicit chmod if MODE specifies any
75466         of the `special' permission bits.  Prompted by a bug report against
75467         install from Mate Wierdl and Joost van Baal.
75468
75469 2000-04-18  Jim Meyering  <meyering@lucent.com>
75470
75471         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
75472         (jm_PREREQ): Use it.
75473
75474 2000-04-18  Jim Meyering  <meyering@lucent.com>
75475
75476         * lib/README: New file.
75477
75478         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
75479         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
75480
75481 2000-04-17  Jim Meyering  <meyering@lucent.com>
75482
75483         Get it right :-)
75484         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
75485         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
75486         Suggestion from Akim Demaille.
75487
75488 2000-04-17  Jim Meyering  <meyering@lucent.com>
75489
75490         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
75491         the definition of it to rpl_strftime also defined-away the system's
75492         declaration.
75493
75494 2000-04-15  Jim Meyering  <meyering@lucent.com>
75495
75496         Use `C' to denote so-called `contiguous' files, the same way
75497         that tar does.
75498         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
75499         (ftypelet): Use S_ISCTG.
75500         From Michael Deutschmann.
75501
75502 2000-04-14  Jim Meyering  <meyering@lucent.com>
75503
75504         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
75505         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
75506         clobbered.
75507
75508 2000-04-14  Jim Meyering  <meyering@lucent.com>
75509
75510         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
75511
75512 2000-04-13  Jim Meyering  <meyering@lucent.com>
75513
75514         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
75515         AH_VERBATIM to insert required #ifndef into config.h.in.
75516         Suggestion from Akim Demaille.
75517
75518 2000-04-12  Jim Meyering  <meyering@lucent.com>
75519
75520         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
75521         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
75522         Christian Krackowizer.
75523
75524         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
75525         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
75526         (AC_SYS_LARGEFILE): Require.
75527         (AM_C_PROTOTYPES): Require.
75528
75529 2000-04-08  Jim Meyering  <meyering@lucent.com>
75530
75531         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
75532         names don't conflict.  Reported by Eli Zaretskii.
75533
75534 2000-04-07  Jim Meyering  <meyering@lucent.com>
75535
75536         * lib/putenv.c: Move inclusion of errno.h so it follows that of
75537         sys/types.h, to work around system header problems on AIX 3.2.5.
75538         From Bruno Haible.
75539
75540 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
75541
75542         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
75543         bug.  Deal with the different error behavior of Irix iconv.
75544
75545 2000-04-05  Paul Eggert  <eggert@twinsun.com>
75546
75547         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
75548         IRIX if the installer said otherwise.
75549
75550 2000-04-05  Jim Meyering  <meyering@lucent.com>
75551
75552         Portability tweaks required for ultrix4.3.
75553         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
75554         (jm_CHECK_DECLS): Add getutent to the list of functions.
75555         (_jm_DECL_HEADERS): Add utmpx.h.
75556         From John David Anglin.
75557
75558         * m4/strftime.m4: Back out the 2000-04-02 change.
75559         Instead of that change, simply undefine putenv in the test program.
75560
75561 2000-04-05  Jim Meyering  <meyering@lucent.com>
75562
75563         Portability tweaks required for ultrix4.3.
75564         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
75565         getutent.
75566         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
75567         * lib/canon-host.c: Declare strdup.
75568         * lib/path-concat.c: Likewise.
75569         From John David Anglin.
75570
75571 2000-04-04  Jim Meyering  <meyering@lucent.com>
75572
75573         Be more DOS 8.3-friendly.
75574         * lib/ref-add.sin: Renamed from ref-add.sed.in.
75575         * lib/ref-del.sin: Renamed from ref-del.sed.in.
75576         * lib/Makefile.am: Reflect renaming.
75577         Reported by Eli Zaretskii.
75578
75579         Use a temporary file name that won't clash with `charset.alias'
75580         in the DOS 8.3 name space.
75581         * lib/Makefile.am (charset_tmp): Define.
75582         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
75583         (uninstall-local): Likewise.
75584         Reported by Eli Zaretskii.
75585
75586 2000-04-03  Jim Meyering  <meyering@lucent.com>
75587
75588         * m4/gettext.m4: Fix typo in comment.
75589
75590         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
75591         textutils/configure.in).  Suggestion from Paul Eggert.
75592         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
75593
75594 2000-04-02  Paul Eggert  <eggert@twinsun.com>
75595
75596         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
75597         variable in the shell rather than using putenv, which isn't
75598         portable.  This avoids the configure-time inter-test dependency
75599         on the potentially-renamed putenv function.
75600
75601 2000-03-30  Paul Eggert  <eggert@twinsun.com>
75602
75603         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
75604         before checking struct stat.st_blksize, so that
75605         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
75606
75607 2000-03-29  Paul Eggert  <eggert@twinsun.com>
75608
75609         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
75610         since strftime.c uses HAVE_STRFTIME to decide whether to use
75611         the underlying strftime.
75612
75613 2000-03-29  Paul Eggert  <eggert@twinsun.com>
75614
75615         * lib/time/strftime.c (my_strftime): Make sure we call the system
75616         strftime, not ourselves, when invoking the underlying strftime.
75617
75618 2000-03-24  Jim Meyering  <meyering@lucent.com>
75619
75620         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
75621         (charset_alias): Define.
75622         (install-exec-local): Factor out common code.
75623         (uninstall-local): Split lines longer than 80.
75624         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
75625         (SUFFIXES): Define.
75626         (.sed.in.sed): New rule.  Don't redirect directly to $@.
75627         (CLEANFILES): Add ref-add.sed and ref-del.sed.
75628
75629 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
75630
75631         * lib/config.charset: Output a line containing "Packages using this
75632         file".
75633         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
75634         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
75635         ref-del.sed): New rules.
75636
75637 2000-03-17  Jim Meyering  <meyering@lucent.com>
75638
75639         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
75640         Otherwise, include <strings.h>
75641
75642 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
75643
75644         * lib/unicodeio.c (utf8_wctomb): New function.
75645         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
75646         format instead of in UCS-4 with platform dependent endianness.
75647
75648 2000-03-10  Jim Meyering  <meyering@lucent.com>
75649
75650         * m4/lib-check.m4: Look for getspnam in -lgen, too.
75651         From Marco Franzen.
75652
75653 2000-03-07  Paul Eggert  <eggert@twinsun.com>
75654
75655         * lib/savedir.c (savedir): Work even if directory size is
75656         negative; this can happen with some screwy NFS configurations.
75657
75658 2000-03-06  Jim Meyering  <meyering@lucent.com>
75659
75660         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
75661         if it's NULL (because we ran out of memory).  From Bruno Haible.
75662
75663 2000-03-05  Jim Meyering  <meyering@lucent.com>
75664
75665         * lib/localcharset.c ("path-concat.h"): Include.
75666         (get_charset_aliases): Use path_concat instead of ANSI string
75667         concatenation.
75668
75669         * lib/unicodeio.h (PARAMS): Define.
75670         Use it to guard prototype.
75671
75672 2000-03-04  Jim Meyering  <meyering@lucent.com>
75673
75674         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
75675         for lib/localcharset.c.
75676
75677 2000-03-04  Jim Meyering  <meyering@lucent.com>
75678
75679         * lib/Makefile.am (install-exec-local): Create $(libdir) before
75680         installing into it.
75681         (uninstall-local): Uncomment this rule so `make distcheck' works
75682         once again.
75683
75684         * lib/unicodeio.c (<errno.h>): Include it.
75685         (errno): Declare if not defined.
75686
75687         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
75688
75689         * lib/config.charset: New version, incorporating remarks from a linux
75690         i18n mailing list.  From Bruno Haible.
75691
75692 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
75693
75694         * m4/codeset.m4: New file.
75695         * m4/iconv.m4: New file.
75696         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
75697
75698 2000-03-03  Jim Meyering  <meyering@lucent.com>
75699
75700         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
75701
75702 2000-03-02  Jim Meyering  <meyering@lucent.com>
75703
75704         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
75705         the messages come out on separate lines.
75706
75707         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
75708         rather than jm_CHECK_DECLARATIONS.
75709         * m4/decl.m4: Remove now-unused file.
75710
75711         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
75712         geteuid.
75713
75714 2000-03-02  Jim Meyering  <meyering@lucent.com>
75715
75716         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
75717
75718 2000-03-01  Jim Meyering  <meyering@lucent.com>
75719
75720         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
75721         * lib/unicodeio.c: Likewise.
75722
75723 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
75724
75725         * lib/config.charset: New file.
75726         * lib/localcharset.c: New file.
75727         * lib/unicodeio.h, lib/unicodeio.c: New files.
75728         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
75729         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
75730         (noinst_HEADERS): Add unicodeio.h.
75731         (all-local, install-exec-local, charset.alias): New targets.
75732
75733 2000-02-28  Paul Eggert  <eggert@twinsun.com>
75734
75735         * lib/quotearg.c (ALERT_CHAR): New macro.
75736         (quotearg_buffer_restyled): Use it.
75737
75738 2000-02-27  Jim Meyering  <meyering@lucent.com>
75739
75740         * m4/check-decl.m4: Add getenv to the list.
75741
75742 2000-02-27  Jim Meyering  <meyering@lucent.com>
75743
75744         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
75745         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
75746
75747         * lib/backupfile.c: Guard inclusion of stdlib.h with
75748         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
75749         Declare malloc if needed.
75750
75751         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
75752         `#ifndef HAVE_DECL..'
75753         now that autoconf always defines the HAVE_DECL_ symbols.
75754         * lib/human.c: Likewise.
75755         * lib/same.c: Likewise.
75756         * lib/strtoumax.c: Likewise.
75757
75758         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
75759         declaration check was not run.
75760         * lib/hash.c: Likewise.
75761         * lib/human.c: Likewise.
75762         * lib/same.c: Likewise.
75763         * lib/strtoumax.c: Likewise.
75764
75765         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
75766         `.', then first look up the entire `.'-containing string as a login
75767         name.
75768
75769 2000-02-23  Jim Meyering  <meyering@lucent.com>
75770
75771         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
75772         in place of my hack.
75773
75774 2000-02-18  Paul Eggert  <eggert@twinsun.com>
75775
75776         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
75777         (textint): New typedef.
75778         (parser_control): Member year changed from int to textint.
75779         All uses changed.
75780         (YYSTYPE): Removed; replaced by %union with int and textint members.
75781         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
75782         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
75783         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
75784         (tSNUMBER, tUNUMBER): Now of type <textintval>.
75785         (date, number, to_year): Use width of number in digits, not its value,
75786         to determine whether it's a 2-digit year, or a 2-digit time.
75787         (yylex): Store number of digits of numeric tokens.
75788         Reported by John Kendall.
75789
75790         (parser_control): Changed from struct parser_control to typedef (for
75791         consistency).  All uses changed.
75792
75793         (tID): Removed; not used.
75794         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
75795
75796 2000-02-14  Paul Eggert  <eggert@twinsun.com>
75797
75798         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
75799         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
75800
75801 2000-02-12  Jim Meyering  <meyering@lucent.com>
75802
75803         * lib/userspec.c (ISDIGIT): Define it.
75804         (isdigit): Remove definition.
75805         (is_number): Use ISDIGIT, not isdigit.
75806         <libintl.h>: Include.
75807         (_ and N_): Define.
75808         (parse_user_spec): Mark translatable strings.
75809
75810 2000-02-10  Jim Meyering  <meyering@lucent.com>
75811
75812         With these changes, nanosleep.[ch] are finally enough like the other
75813         lib/* replacement files to compile on a few more losing systems.
75814
75815         * lib/nanosleep.h: Don't include config.h.
75816         Remove prototype from declaration of nanosleep.
75817         (PARAMS): Remove now-unneeded definition.
75818         * lib/nanosleep.c: #undef nanosleep.
75819         (rpl_nanosleep): Rename from nanosleep.
75820
75821 2000-02-10  Jim Meyering  <meyering@lucent.com>
75822
75823         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
75824         gnu_nanosleep to rpl_nanosleep.
75825
75826 2000-02-09  Jim Meyering  <meyering@lucent.com>
75827
75828         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
75829         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
75830
75831 2000-02-08  Akim Demaille  <akim@epita.fr>
75832
75833         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
75834         `[' and `]' and remove uses of `changequote'.
75835         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
75836         (AC_SYS_LARGEFILE): Likewise.
75837         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
75838         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
75839         of changequote.
75840         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
75841         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
75842         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
75843         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
75844
75845 2000-02-05  Jim Meyering  <meyering@lucent.com>
75846
75847         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
75848         Remove explicit use of AC_HEADER_TIME.  It is required by
75849         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
75850         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
75851         in autoconf whereby the expansion of the latter ended up preceding
75852         the expansion of its prerequisite, AC_HEADER_TIME.
75853         Reported by Volker Borchert.
75854
75855 2000-02-03  Jim Meyering  <meyering@lucent.com>
75856
75857         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
75858
75859 2000-02-03  Jim Meyering  <meyering@lucent.com>
75860
75861         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
75862         rather than with `#if HAVE_UTMPNAME'.
75863
75864 2000-02-02  Jim Meyering  <meyering@lucent.com>
75865
75866         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
75867         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
75868         Reported by Eli Zaretskii.
75869
75870 2000-02-01  Jim Meyering  <meyering@lucent.com>
75871
75872         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
75873
75874 2000-01-31  Jim Meyering  <meyering@lucent.com>
75875
75876         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
75877         functions.  Add the time.h and sys/time.h headers along with the
75878         AC_REQUIRE'ment of AC_HEADER_TIME.
75879
75880 2000-01-31  Jim Meyering  <meyering@lucent.com>
75881
75882         * lib/nanosleep.h (nanosleep): Guard declaration with
75883         `#if ! HAVE_DECL_NANOSLEEP'.
75884         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
75885         the declaration in that vendor's sys/timers.h.
75886         Reported by Christian Krackowizer.
75887
75888         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
75889         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
75890         (ISPRINT): Likewise.
75891         Reported by Tom Tromey.
75892
75893 2000-01-30  Jim Meyering  <meyering@lucent.com>
75894
75895         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
75896
75897         * m4/prereq.m4 (utmp_includes): Define.
75898         Check for ut_user and ut_name members in both struct utmpx
75899         and struct utmp.
75900
75901 2000-01-30  Jim Meyering  <meyering@lucent.com>
75902
75903         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
75904         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
75905         header files where only utmpx.ut_user is declared.
75906
75907         * lib/readutmp.h (UT_USER): Define.
75908
75909 2000-01-29  Jim Meyering  <meyering@lucent.com>
75910
75911         * m4/lib-check.m4: New file containing library-related checks from
75912         fileutils and sh-utils (textutils had none).
75913
75914 2000-01-28  Jim Meyering  <meyering@lucent.com>
75915
75916         * m4/perl.m4: Change format of warning message to look more like that
75917         from the missing script.  Suggestion from François Pinard.
75918
75919 2000-01-25  Jim Meyering  <meyering@lucent.com>
75920
75921         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
75922         well as time.h in the compile check.
75923         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
75924         Fix typo in cross-compiling case: s/yes/no/.
75925
75926 2000-01-23  Jim Meyering  <meyering@lucent.com>
75927
75928         * m4/jm-macros.m4: Move df-related tests here from
75929         fileutils/configure.in
75930
75931         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
75932         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
75933
75934         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
75935         s/space/ac_fsusage_space/.
75936         (jm_FILE_SYSTEM_USAGE): Take two parameters.
75937
75938         * m4/ftruncate.m4: New file (derived from part of
75939         fileutils/configure.in).
75940         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
75941         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
75942
75943         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
75944         AC_SUBST these here, rather than just in sh-util/configure.in, so
75945         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
75946         all the same.
75947         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
75948         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
75949         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
75950         (AC_SUBST(POW_LIBM)): Likewise.
75951         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
75952
75953 2000-01-23  Jim Meyering  <meyering@lucent.com>
75954
75955         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
75956         obstack.c.
75957
75958 2000-01-22  Jim Meyering  <meyering@lucent.com>
75959
75960         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
75961
75962         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
75963
75964         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
75965         configure.in
75966         (AC_CHECK_HEADERS): Likewise for sh-utils.
75967         (AC_CHECK_HEADERS): Likewise for textutils.
75968         Merge the three lists of headers.
75969
75970         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
75971         from fileutils' configure.in.
75972
75973         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
75974         code. Moved tests into their own function (_jm_DECL_HEADERS) in
75975         check-decl.m4.
75976
75977         * m4/check-decl.m4: Use #if rather than #ifdef.
75978         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
75979         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
75980         (_jm_DECL_HEADERS): Define new function.
75981         (jm_CHECK_DECLARATIONS): Require it.
75982
75983 2000-01-22  Jim Meyering  <meyering@lucent.com>
75984
75985         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
75986         [! HAVE_DECL_STRTOULL]: Declare strtoull.
75987         Required for some AIX systems.  Reported by Christian Krackowizer.
75988         [TESTING] (main): New function.
75989
75990         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
75991         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
75992         letters.
75993
75994         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
75995         iswprint.
75996
75997         * lib/strverscmp.c (ISDIGIT): Define.
75998         (strverscmp): Use ISDIGIT, not isdigit.
75999
76000 2000-01-19  Jim Meyering  <meyering@lucent.com>
76001
76002         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
76003         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
76004         defines `struct timespec' in <sys/time.h>
76005
76006         * m4/c-bs-a.m4: Remove uses of changequote altogether.
76007         Thanks to Akim for explaining.
76008
76009 2000-01-17  Paul Eggert  <eggert@twinsun.com>
76010
76011         * lib/nanosleep.c (nanosleep):
76012         Don't use SA_INTERRUPT to decide whether to call sigaction, as
76013         POSIX.1 doesn't require SA_INTERRUPT and some systems
76014         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
76015         it's been part of POSIX.1 since day 1 (in 1988).
76016
76017 2000-01-17  Jim Meyering  <meyering@lucent.com>
76018
76019         * lib/interlock: Remove unused file.  Reported by François Pinard.
76020
76021 2000-01-16  Paul Eggert  <eggert@twinsun.com>
76022
76023         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
76024         alert, backslash, formfeed, and vertical tab unnecessarily in
76025         shell quoting style.
76026
76027 2000-01-16  Jim Meyering  <meyering@lucent.com>
76028
76029         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
76030         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
76031         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
76032         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
76033
76034 2000-01-16  Jim Meyering  <meyering@lucent.com>
76035
76036         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
76037         because the latter didn't work.
76038
76039 2000-01-15  Jim Meyering  <meyering@lucent.com>
76040
76041         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
76042         (AC_REPLACE_FUNCS): Add memcpy and memset.
76043         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
76044         Add strpbrk.
76045         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
76046
76047 2000-01-12  Jim Meyering  <meyering@lucent.com>
76048
76049         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
76050         (jm_PREREQ): Use it.
76051         (jm_PREREQ_READUTMP): New macro.
76052         (jm_PREREQ): Use it.
76053
76054 2000-01-11  Paul Eggert  <eggert@twinsun.com>
76055
76056         Quote multibyte characters correctly.
76057         * m4/c-bs-a.m4: New file.
76058         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
76059         (jm_PREREQ): Use it.
76060
76061 2000-01-11  Paul Eggert  <eggert@twinsun.com>
76062
76063         * m4/uintmax_t.m4: Port to autoconf 2.13.
76064
76065 2000-01-08  Jim Meyering  <meyering@ascend.com>
76066
76067         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
76068         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
76069
76070 2000-01-04  Jim Meyering  <meyering@ascend.com>
76071
76072         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
76073         jm_STRUCT_DIRENT_D_TYPE.
76074         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
76075         jm_STRUCT_DIRENT_D_INO.
76076         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
76077         jm_STRUCT_UTIMBUF.
76078         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
76079         renamings.
76080         * m4/utime.m4: Likewise.
76081
76082         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
76083         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
76084
76085 2000-01-03  Paul Eggert  <eggert@twinsun.com>
76086
76087         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
76088         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
76089
76090 2000-01-02  Jim Meyering  <meyering@ascend.com>
76091
76092         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
76093         remember if this is necessary.
76094
76095 1999-12-26  Jim Meyering  <meyering@ascend.com>
76096
76097         * m4/jm-macros.m4: Use it here.
76098         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
76099
76100 1999-12-23  Jim Meyering  <meyering@ascend.com>
76101
76102         * m4/jm-macros.m4: Check for clock_gettime (moved from
76103         fileutils/configure.in)
76104         Check for gettimeofday.
76105
76106 1999-12-20  Jim Meyering  <meyering@ascend.com>
76107
76108         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
76109         autoconf-2.14a-1999-12-20.
76110
76111 1999-12-19  Jim Meyering  <meyering@ascend.com>
76112
76113         * m4/lstat-slash.m4: New file.
76114         * m4/jm-macros.m4: Use the new macro:
76115         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76116
76117 1999-12-07  Jim Meyering  <meyering@ascend.com>
76118
76119         * m4/perl.m4: Require that File::Compare be available, too.
76120         Too many systems seem to lack it.
76121
76122         * m4/strftime.m4: Add checks for most of the cpp macros tested in
76123         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
76124
76125 1999-11-18  Paul Eggert  <eggert@twinsun.com>
76126
76127         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
76128         problem with the QNX 4.25 shell, which doesn't propagate exit
76129         status of failed commands inside shell assignments.
76130
76131 1999-11-17  Jim Meyering  <meyering@ascend.com>
76132
76133         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
76134
76135 1999-11-07  Jim Meyering  <meyering@ascend.com>
76136
76137         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
76138
76139 1999-11-06  Jim Meyering  <meyering@ascend.com>
76140
76141         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
76142         * m4/jm-macros.m4 (jm_MACROS): Use it here.
76143
76144 1999-11-05  Jim Meyering  <meyering@ascend.com>
76145
76146         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
76147         configure.in of textutils, fileutils, and sh-utils into this one
76148         (shared between those packages) file.
76149         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
76150         AC_STRUCT_ST_BLKSIZE.
76151
76152 1999-11-03  Jim Meyering  <meyering@ascend.com>
76153
76154         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
76155         of AC_CHECK_TYPE checks includes unistd.h.
76156         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
76157         Suggestion from Akim Demaille.
76158
76159 1999-10-30  Jim Meyering  <meyering@ascend.com>
76160
76161         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
76162         m4-quoted string.
76163         * m4/ls-mntd-fs.m4: Likewise.
76164         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
76165         * m4/jm-winsz1.m4: Likewise.
76166
76167         * m4/const.m4: Remove file, since the fix made it into the experimental
76168         version of autoconf.
76169         * m4/mktime.m4: Likewise.
76170
76171         * m4/check-type.m4: Remove file, now that the latest version of
76172         AC_CHECK_TYPE takes a third arg to specify additional #includes.
76173
76174         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
76175         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
76176         AC_CHECK_TYPE.
76177
76178 1999-10-04  Jim Meyering  <meyering@ascend.com>
76179
76180         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
76181
76182 1999-09-22  Paul Eggert  <eggert@twinsun.com>
76183
76184         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
76185         2.95.1 bug with HP-UX 10.20.
76186
76187 1999-09-17  Jim Meyering  <meyering@ascend.com>
76188
76189         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
76190         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
76191         due to missing strdup (against sh-utils-2.0).
76192
76193 1999-08-29  Jim Meyering  <meyering@ascend.com>
76194
76195         * m4/jm-macros.m4: Require jm_BISON.
76196         * m4/bison.m4: New file.
76197
76198 1999-08-17  Paul Eggert  <eggert@twinsun.com>
76199
76200         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
76201         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
76202
76203 1999-08-05  Jim Meyering  <meyering@ascend.com>
76204
76205         * m4/getline.m4: Rename test file from conftestdata to conftest.data
76206         to avoid conflicts with `conftest' on 8+3 filesystems.
76207         Suggestion from Eli Zaretskii.
76208
76209 1999-08-04  Jim Meyering  <meyering@ascend.com>
76210
76211         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
76212         fileutils and sh-utils (textutils's getline test was inadequate).
76213         (AM_FUNC_GETLINE): Run this test.
76214         (AC_CHECK_FUNCS): Check for getdelim.
76215         Reported by Bob Proulx.
76216
76217 1999-08-02  Jim Meyering  <meyering@ascend.com>
76218
76219         * m4/jm-macros.m4: Add a comment.
76220
76221 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76222
76223         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
76224         <inttypes.h> defines strtoumax as a macro (and not as a
76225         function).
76226
76227 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76228
76229         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
76230         that we can shift, multiply and divide unsigned long long
76231         values; Ultrix cc can't do it.
76232
76233 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76234
76235         * m4/mktime.m4: New file, which is a preview of what should appear
76236         in the next public autoconf release.
76237
76238 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76239
76240         * m4/lfs.m4: Remove this file.
76241         * m4/largefile.m4: New file.  It contains the old contents of
76242         lfs.m4, except that all names with prefix AC_LFS have been
76243         changed to use the prefix AC_SYS_LARGEFILE instead, to be
76244         compatible with future autoconf versions.  Also, some minor m4
76245         quoting problems have been fixed.
76246
76247 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76248
76249         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
76250         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
76251         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
76252         and simplify the shell code.
76253
76254 1999-08-01  Jim Meyering  <meyering@ascend.com>
76255
76256         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
76257         m4.
76258
76259 1999-07-20  Jim Meyering  <meyering@ascend.com>
76260
76261         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
76262
76263 1999-07-15  Jim Meyering  <meyering@ascend.com>
76264
76265         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
76266
76267 1999-05-22  Jim Meyering  <meyering@ascend.com>
76268
76269         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
76270
76271 1999-05-20  Jim Meyering  <meyering@ascend.com>
76272
76273         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
76274         Add a colon after each `then' in case $4 is empty.
76275
76276 1999-05-16  Jim Meyering  <meyering@ascend.com>
76277
76278         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
76279
76280 1999-05-10  Jim Meyering  <meyering@ascend.com>
76281
76282         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
76283
76284         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
76285         AC_FUNC_MKTIME.
76286
76287 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
76288
76289         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
76290
76291 1999-05-04  Paul Eggert  <eggert@twinsun.com>
76292
76293         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
76294         not CPPFLAGS, so that linking works correctly in IRIX.
76295
76296 1999-04-30  Paul Eggert  <eggert@twinsun.com>
76297
76298         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
76299
76300 1999-04-20  Paul Eggert  <eggert@twinsun.com>
76301
76302         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
76303         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
76304         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
76305         jm_AC_TYPE_UNSIGNED_LONG_LONG.
76306         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
76307
76308         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
76309
76310 1999-04-20  Jim Meyering  <meyering@ascend.com>
76311
76312         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
76313         AC_REPLACE xstroull if necessary.  From Paul Eggert.
76314         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
76315
76316 1999-04-18  Jim Meyering  <meyering@ascend.com>
76317
76318         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
76319         * m4/jm-macros.m4: Use it.
76320
76321 1999-04-06  Jim Meyering  <meyering@ascend.com>
76322
76323         * m4/strftime.m4: Remove test for %f.
76324
76325 1999-03-29  Jim Meyering  <meyering@ascend.com>
76326
76327         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
76328         superset of the AC_TYPE_* checks in the textutils, fileutils,
76329         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
76330         AC_TYPE_PID_T.
76331
76332 1999-03-28  Jim Meyering  <meyering@ascend.com>
76333
76334         * m4/jm-macros.m4: Define GNU_PACKAGE here.
76335         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
76336         replaced e.g., in the *.sh files of the sh-utils.
76337
76338 1999-03-20  Jim Meyering  <meyering@ascend.com>
76339
76340         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
76341         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
76342         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
76343
76344 1999-03-19  Jim Meyering  <meyering@ascend.com>
76345
76346         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
76347
76348 1999-03-12  Jim Meyering  <meyering@ascend.com>
76349
76350         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
76351
76352 1999-03-07  Jim Meyering  <meyering@ascend.com>
76353
76354         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
76355         declared.
76356
76357 1999-02-17  Jim Meyering  <meyering@ascend.com>
76358
76359         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
76360         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
76361
76362 1999-02-07  Jim Meyering  <meyering@ascend.com>
76363
76364         * m4/group-member.m4: New file -- extracted from sh-utils'
76365         configure.in.
76366
76367         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
76368         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
76369
76370 1999-02-06  Jim Meyering  <meyering@ascend.com>
76371
76372         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
76373         * m4/fnmatch.m4: Likewise.
76374         * m4/getgroups.m4: Likewise.
76375         * m4/lstat.m4: Likewise.
76376         * m4/malloc.m4: Likewise.
76377         * m4/putenv.m4: Likewise.
76378         * m4/realloc.m4: Likewise.
76379         * m4/regex.m4: Likewise.
76380         * m4/stat.m4: Likewise.
76381         * m4/strftime.m4: Likewise.
76382         Suggestion from Alain Magloire.
76383
76384         * m4/chown.m4: Use `.$ac_objext', not `.o'.
76385         * m4/fnmatch.m4: Likewise.
76386         * m4/getgroups.m4: Likewise.
76387         * m4/getline.m4: Likewise.
76388         * m4/lstat.m4: Likewise.
76389         * m4/malloc.m4: Likewise.
76390         * m4/memcmp.m4: Likewise.
76391         * m4/putenv.m4: Likewise.
76392         * m4/realloc.m4: Likewise.
76393         * m4/regex.m4: Likewise.
76394         * m4/stat.m4: Likewise.
76395         * m4/strftime.m4: Likewise.
76396         Suggestion from Alain Magloire.
76397
76398         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
76399         an argument.
76400
76401         * m4/regex.m4: Add a run-time Test for proper operation of
76402         re_compile_pattern.
76403
76404 1999-01-31  Jim Meyering  <meyering@ascend.com>
76405
76406         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
76407
76408 1999-01-30  Jim Meyering  <meyering@ascend.com>
76409
76410         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
76411
76412         * m4/jm-mktime.m4: Make this a wrapper around the official
76413         AM_FUNC_MKTIME rather than my private copy, now that the official one
76414         is up to date.
76415         * m4/mktime.m4: Remove file.
76416
76417         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
76418         * m4/uptime.m4: Likewise.
76419         * m4/uintmax_t.m4: Likewise.
76420
76421 1999-01-28  Jim Meyering  <meyering@ascend.com>
76422
76423         * m4/jm-macros.m4: Use jm_AFS.
76424         * m4/afs.m4: New file (from fileutils' configure.in).
76425
76426         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
76427         * m4/chown.m4: Likewise.
76428         * m4/d-ino.m4: Likewise.
76429         * m4/d-type.m4: Likewise.
76430         * m4/fnmatch.m4: Likewise.
76431         * m4/getgroups.m4: Likewise.
76432         * m4/gettext.m4: Likewise.
76433         * m4/jm-mktime.m4: Likewise.
76434         * m4/jm-winsz2.m4: Likewise.
76435         * m4/lcmessage.m4: Likewise.
76436         * m4/ls-mntd-fs.m4: Likewise.
76437         * m4/malloc.m4: Likewise.
76438         * m4/memcmp.m4: Likewise.
76439         * m4/putenv.m4: Likewise.
76440         * m4/realloc.m4: Likewise.
76441         * m4/st_mtim.m4: Likewise.
76442         * m4/strftime.m4: Likewise.
76443
76444 1999-01-16  Jim Meyering  <meyering@ascend.com>
76445
76446         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
76447         (ARGMATCH_DIE_DECL): Define.
76448
76449 1999-01-12  Jim Meyering  <meyering@ascend.com>
76450
76451         * m4/Makefile.am.in: Rewrite to avoid using fmt.
76452         Reported by Lars Hecking.
76453
76454 1999-01-10  Jim Meyering  <meyering@ascend.com>
76455
76456         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
76457         gross kludge.
76458         * m4/inttypes_h.m4: Likewise.
76459         * m4/lstat.m4: Likewise.
76460         * m4/malloc.m4: Likewise.
76461         * m4/readdir.m4: Likewise.
76462         * m4/realloc.m4: Likewise.
76463         * m4/st_dm_mode.m4: Likewise.
76464         * m4/stat.m4: Likewise.
76465         * m4/utimbuf.m4: Likewise.
76466         * m4/utimes.m4: Likewise.
76467
76468         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
76469         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
76470         comments in config.h.in are meaningful.
76471
76472         * m4/jm-macros.m4: Require autoconf-2.13 here.
76473
76474         * m4/regex.m4: By default, don't use the included regex.c on systems
76475         with glibc 2.  Suggestion from Uli Drepper.
76476
76477 1999-01-02  Jim Meyering  <meyering@ascend.com>
76478
76479         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
76480
76481 1998-12-18  Jim Meyering  <meyering@ascend.com>
76482
76483         * m4/Makefile.am.in (Makefile.am): Simplify rule.
76484         Based on a suggestion from Lars Hecking.
76485
76486 1998-11-16  Paul Eggert  <eggert@twinsun.com>
76487
76488         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
76489
76490 1998-11-16  Jim Meyering  <meyering@ascend.com>
76491
76492         * m4/lfs.m4: Double-quote the `uname...` expression.
76493
76494 1998-11-14  Jim Meyering  <meyering@ascend.com>
76495
76496         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
76497         * m4/stat.m4: Likewise.
76498
76499 1998-11-03  Jim Meyering  <meyering@ascend.com>
76500
76501         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
76502         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
76503
76504 1998-10-18  Jim Meyering  <meyering@ascend.com>
76505
76506         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
76507
76508 1998-10-17  Jim Meyering  <meyering@ascend.com>
76509
76510         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
76511         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
76512         calls for those previously hard-coded headers.  Instead, take a new
76513         parameter.
76514         (jm_CHECK_DECLARATIONS): Reflect interface change.
76515         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
76516         (jm_CHECK_DECL_LOCALTIME_R): New macro.
76517
76518         * m4/mktime.m4: Test for spring-forward gap before long-running test.
76519
76520 1998-10-14  Jim Meyering  <meyering@ascend.com>
76521
76522         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
76523         instead of "TZ=America/Vancouver".  From Paul Eggert.
76524
76525 1998-10-11  Jim Meyering  <meyering@ascend.com>
76526
76527         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
76528         This adds a test for a recently added compatibility fix for mktime.c.
76529         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
76530
76531 1998-09-27  Jim Meyering  <meyering@ascend.com>
76532
76533         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
76534
76535         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
76536         ../configure.in, including a change from Gordon Matzigkeit to allow
76537         cross-compiling for the Hurd.
76538
76539         * m4/glibc.m4: New file/macro to test for the GNU C Library
76540         versions 1 and 2.  From Gordon Matzigkeit.
76541         Indent.
76542
76543 1998-09-21  Jim Meyering  <meyering@ascend.com>
76544
76545         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
76546
76547 1998-08-18  Paul Eggert  <eggert@twinsun.com>
76548
76549         Port nanosecond-resolution times to UnixWare 2.1.2 and
76550         pedantic Solaris 2.6.
76551
76552         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
76553         AC_STRUCT_ST_MTIM.
76554         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
76555         Generate name of ns member, instead of just 1 or undef.
76556         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
76557
76558 1998-08-15  Jim Meyering  <meyering@ascend.com>
76559
76560         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
76561         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
76562         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
76563         instead of jm_TYPE_SSIZE_T.
76564
76565 1998-08-12  Jim Meyering  <meyering@ascend.com>
76566
76567         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
76568
76569 1998-08-02  Jim Meyering  <meyering@ascend.com>
76570
76571         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
76572         in acconfig.h manually.
76573
76574 1998-07-31  Paul Eggert  <eggert@twinsun.com>
76575
76576         * m4/st_mtim.m4: New file.
76577
76578 1998-07-28  Jim Meyering  <meyering@ascend.com>
76579
76580         * m4/utimes.m4: Undef stat.
76581
76582 1998-07-25  Jim Meyering  <meyering@ascend.com>
76583
76584         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
76585         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
76586
76587 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
76588
76589         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
76590         uid and gid actually remain unchanged.
76591
76592 1998-07-07  Jim Meyering  <meyering@ascend.com>
76593
76594         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
76595
76596 1998-07-04  Jim Meyering  <meyering@ascend.com>
76597
76598         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
76599         to prove that this macro can be used in packages without regex.c.
76600
76601 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
76602
76603         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
76604         is to be used.
76605
76606 1998-07-03  Jim Meyering  <meyering@ascend.com>
76607
76608         * m4/gettext.m4: Add -lintl if it's found to be necessary.
76609
76610         * m4/gettext.m4: New file -- from gettext-0.10.35.
76611         * m4/lcmessage.m4: Likewise.
76612         * m4/progtest.m4: Likewise.
76613
76614         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
76615         * m4/jm-macros.m4: Require the new macro.
76616
76617 1998-06-29  Jim Meyering  <meyering@ascend.com>
76618
76619         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
76620         for the definition of NGROUPS (used in a system header included
76621         by sys/mount.h).
76622
76623 1998-06-28  Jim Meyering  <meyering@ascend.com>
76624
76625         * m4/ls-mntd-fs.m4: New file.
76626         * m4/fstypename.m4: New file.
76627
76628         * m4/jm-macros.m4: Require the new macro.
76629         * m4/jm-glibc-io.m4: New file.
76630
76631 1998-05-19  Jim Meyering  <meyering@ascend.com>
76632
76633         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
76634         * m4/lchown.m4: New file.
76635
76636         * m4/Makefile.am.in: New file.
76637         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
76638
76639 1998-05-14  Jim Meyering  <meyering@ascend.com>
76640
76641         * m4/Makefile.am (EXTRA_DIST): Add them.
76642         * m4/jm-macros.m4: New file.
76643         * m4/utimbuf.m4: New file.
76644
76645 1998-05-12  Jim Meyering  <meyering@ascend.com>
76646
76647         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
76648
76649 1998-05-11  Jim Meyering  <meyering@ascend.com>
76650
76651         * m4/isc-posix.m4: New file.
76652
76653 1998-05-10  Jim Meyering  <meyering@ascend.com>
76654
76655         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
76656
76657 1998-05-09  Jim Meyering  <meyering@ascend.com>
76658
76659         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
76660         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
76661         with automake.
76662
76663         * m4/ssize_t.m4: New file.
76664         * m4/mktime.m4: Remove file -- the new automake has this now.
76665
76666 1998-04-26  Jim Meyering  <meyering@ascend.com>
76667
76668         * m4/assert.m4: New file.
76669         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
76670
76671 1998-04-05  Jim Meyering  <meyering@ascend.com>
76672
76673         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
76674         (jm_PREREQ): Use it here.
76675
76676 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
76677
76678         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
76679         in acconfig.h.
76680
76681 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
76682
76683         * m4/prereq.m4: New file.
76684         * m4/error.m4: New file.
76685         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
76686
76687 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
76688
76689         * m4/getline.m4: Don't set am_cv_func_working_getline before the
76690         cache-check for the same variable -- that defeated the purpose of
76691         the test; the test program was never run.  This was a problem only
76692         on systems with losing getline functions -- HP-UX 10.20 is one.
76693         Reported by Bjorn Helgaas.
76694
76695 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
76696
76697         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
76698
76699 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
76700
76701         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
76702
76703         * m4/const.m4: New file.  Use an initializer in this declaration
76704         typedef int charset[2]; const charset x;
76705         Reported by Bob Glickstein.
76706
76707 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
76708
76709         * m4/chown.m4: Fix reversed types on -1 args to chown.
76710         From Kaveh Ghazi.
76711
76712 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
76713
76714         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
76715         Add lseek and memchr.
76716
76717         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
76718         T.E.Dickey <dickey@clark.net> said that some older preprocessors
76719         have a 20-character limit on names.
76720
76721 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
76722
76723         * m4/inttypes_h.m4: New file.
76724         * m4/uintmax_t.m4: New file.
76725         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
76726
76727
76728         -----
76729
76730         Local Variables:
76731         coding: utf-8
76732         End:
76733
76734         Copyright (C) 1997-2011 Free Software Foundation, Inc.
76735
76736         Copying and distribution of this file, with or without
76737         modification, are permitted provided the copyright notice
76738         and this notice are preserved.