doc: improve ISO 8601 discussion
[gnulib.git] / ChangeLog
1 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
2
3         doc: improve ISO 8601 discussion
4         * doc/parse-datetime.texi (Combined date and time of day items):
5         Specify more carefully what formats are supported and what is
6         done with excess precision.
7
8 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
9
10         doc: avoid small caps
11         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
12         they're more trouble than they're worth.  Suggested by Karl Berry
13         in <http://bugs.gnu.org/13360>.
14
15         regex: conform to strict C
16         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
17         From Aharon Robbins.
18
19         gnulib-tool: fix incompatibility with autopoint 0.18.2
20         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
21         Problem reported by Tom G. Christensen in
22         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
23
24 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
25
26         fprintftime: bring back and reword fwrite comment
27         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
28
29         stdio: remove now-unnecessary stdio.c
30         Since stdio.in.h no longer uses inline functions, we no longer
31         need to compile the extern versions.
32         * lib/stdio.c: Remove.
33         * modules/stdio (Files): Remove lib/stdio.c.
34         (lib_SOURCES): Remove.
35
36         unicodeio: depend on stdio, not ignore-value
37         * lib/unicodeio.c: Do not include ignore-value.h.
38         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
39         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
40
41         fprintftime: depend on stdio, not ignore-value
42         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
43         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
44         since the stdio module arranges to silence that warning now.
45         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
46
47 2012-10-04  Simon Josefsson  <simon@josefsson.org>
48
49         stdint-tests: Fix expanded-before-required-warning.
50         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
51
52 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
53
54         fwrite: silence __wur only for older glibc versions
55         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
56         This will help us remove this workaround some time in the far future.
57
58 2013-01-03  Eric Blake  <eblake@redhat.com>
59
60         fwrite: silence __wur without using inline
61         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
62         just gcc, and in a way that avoids inline issues.
63         * modules/stdio (Depends-on): Drop extern-inline.
64
65 2013-01-03  Jim Meyering  <jim@meyering.net>
66
67         update-copyright: avoid copyright notice date corruption
68         Given a sequence of copyright year numbers in which the final
69         one was a two-digit number that happened to be a substring of
70         a preceding four-digit year number, we would mistakenly update
71         the substring (from two- to four-digit) rather than the two-digit
72         number at the end, which, combined with the addition of the current
73         4-digit year number would yield two 5-digit year numbers, e.g.,
74         here, it would convert the first "99" to "1999, 2013" rather than
75         the final one:
76           1991, 99
77           11999, 20131, 1999
78         * build-aux/update-copyright: Tighten a regexp.
79         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
80         Reported by Joseph Myers in
81         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
82
83 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
84
85         regex: omit needless signed-pointer casts
86         * lib/regcomp.c (build_charclass, build_charclass_op):
87         Use char *, not unsigned char *, for class name and extra.
88         The char values are always nonnegative so there's no need to
89         insist on unsigned char * here, and using char * removes the need
90         for casts.  Reported by Aharon Robbins in
91         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
92
93         regex: support Gawk, which never uses alloca
94         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
95         Do not include in this case.  Gawk doesn't supply a substitute
96         alloca.h and doesn't need one.
97
98         regex: port __libc_lock_define usage to C89
99         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
100         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
101         does not conform to C89, as it has an empty macro argument.
102         Reported by Aharon Robbins in
103         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
104
105 2013-01-01  Eric Blake  <eblake@redhat.com>
106
107         maint: update all copyright year number ranges
108         Run "make update-copyright".
109
110         version-etc: bump copyright year reported in --version
111         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
112
113 2012-12-31  Eric Blake  <eblake@redhat.com>
114
115         sigprocmask-tests: skip test if pid is unexpectedly large
116         * tests/test-sigprocmask.c (main): Add range check.
117
118         git-version-gen: avoid test -z portability glitch
119         * build-aux/git-version-gen: Prefer portable test spelling, since
120         git-version-gen is run on more than just developer machines.
121
122 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
123
124         git-version-gen: add --fallback option to use if git is not present
125         * build-aux/git-version-gen: Add support for the new option --fallback,
126         which comes into play when there is no $tarball_version_file and
127         git is not working.
128         (scriptversion): Update.
129
130         maint.mk: handle missing git with more grace
131         * top/maint.mk (no-submodule-changes, public-submodule-commit):
132         Quietly proceed if git is not present.
133
134 2012-12-31  Eric Blake  <eblake@redhat.com>
135
136         dup2: work around cygwin bug
137         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
138         * lib/dup2.c (rpl_dup2): Work around it.
139         * doc/posix-functions/dup2.texi (dup2): Document it.
140
141 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
142
143         regex: remove unnecessary dependency on localcharset.h
144         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
145         hasn't been needed for years.
146         * modules/regex (Depends-on): Remove localcharset.
147
148         regex: revert single-byte change
149         * lib/regexec.c (check_node_accept_bytes): Revert previous change
150         to this function.  This was alredy fixed in a different way, at
151         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
152         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
153         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
154
155         regex: simplify based on Gawk version
156         * lib/regex_internal.c (re_dfa_add_node): Simplify.
157         Reported by Aharon Robbins in
158         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
159
160 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
161
162         regex: check that pattern char is single-byte
163         Reported by Aharon Robbins in
164         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
165         * lib/regexec.c (check_node_accept_bytes):
166         Return 0 if the pattern string has a multibyte character here.
167
168         regex: implement rational ranges
169         Reported by Aharon Robbins in
170         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
171         * lib/regcomp.c (build_range_exp) [!_LIBC]:
172         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
173         Implement rational ranges.
174
175         regex: avoid redefining __wctype
176         Reported by Aharon Robbins in
177         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
178         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
179         #undef before defining.
180
181         regex: port to hosts where malloc (0) == NULL
182         Reported by Aharon Robbins in
183         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
184         * lib/regex_internal.c (re_node_set_alloc):
185         Don't assume that malloc (0) yields nonnull.
186         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
187         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
188         * modules/regex (Files): Add m4/eealloc.m4.
189
190         regex: port to C89
191         Reported by Aharon Robbins in
192         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
193         * lib/regcomp.c (init_word_char): Declaration before statement.
194
195         regex: merge glibc changes
196         Also, copy the license wording from glibc.  This simplifies
197         merging changes.  gnulib-tool will change the wording to GPL as
198         appropriate, when importing it to other packages.  The only
199         glibc change made since the last merge, which needs merging, is:
200         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
201         * lib/regex_internal.h (gettext): Remove use of INTUSE.
202
203         * users.txt: Add Emacs.
204
205         doc: omit mention of version when not needed
206         * doc/gnulib-intro.texi (Portability and Application Code):
207         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
208         Don't mention particular dates or versions when not necessary, so
209         that the documentation won't go out of date so quickly.
210
211         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
212
213 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
214
215         bootstrap: pass --force to autoreconf.
216         * build-aux/bootstrap (AUTORECONFFLAGS): New.
217         Add "--force" so that Automake's ylwrap and other such tools
218         be updated at each bootstrap invocation.
219         Use it.
220
221 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
222
223         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
224         The earlier patch forgot to update one of the #if conditions, causing
225         a problem on Debian testing i386 reported by Mats Erik Andersson
226         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
227         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
228         (__argp_fmtstream_puts, argp_fmtstream_puts)
229         (__argp_fmtstream_write, argp_fmtstream_write)
230         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
231
232         * doc/gnulib-readme.texi: Minor fixups.
233         (Portability guidelines): Modernize URLs.  Remove some repetition.
234         (Indent with spaces not TABs): Reword to avoid too-long lines.
235         Remove some '@ifset standalone' stuff that isn't used.
236
237         * doc/gnulib-readme.texi (Portability guidelines):
238         ctype.h, not ctime.h.
239
240         Correct name of POSIX.1-2001.
241         * doc/posix-functions/fgetc.texi (fgetc):
242         * doc/posix-functions/fgets.texi (fgets):
243         * doc/posix-functions/fread.texi (fread):
244         * doc/posix-functions/fscanf.texi (fscanf):
245         * doc/posix-functions/getc.texi (getc):
246         * doc/posix-functions/getchar.texi (getchar):
247         * doc/posix-functions/scanf.texi (scanf):
248         POSIX.1-2001, not POSIX-2001.
249
250         doc: move README into manual
251         * README: Move contents to new file doc/gnulib-readme.texi.
252         Replace with a one-line summary.
253         * doc/gnulib.texi (Brief Overview): New section,
254         with old intro preface.  Include gnulib-readme.texi for contents.
255         (Philosophy): Rename from "Introduction", since this
256         section no longer introduces the rest.  Write a new preface.
257         * doc/gnulib-readme.texi: New file, with the old contents of
258         README texinfo-ized.  This way, the README info appears
259         in the online and printed manual.
260
261 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
262
263         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
264         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
265         c_vasprintf() prototype.
266
267 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
268
269         c-vasprintf: Fix "empty declaration" warning reported by GCC.
270         * lib/c-vasprintf.h: Remove stray semicolon.
271
272 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
273
274         gettext: avoid obsolete macro AM_PROG_MKDIR_P
275         It is obsolete and is planned to be removed from Automake 1.14; see
276         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
277         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
278         (installdirs-data, installdirs-data-yes):
279         Use $(MKDIR_P), not $(mkdir_p).
280         * m4/intl.m4 (AM_INTL_SUBDIR):
281         * m4/po.m4 (AM_PO_SUBDIRS):
282         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
283
284 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
285
286         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
287         On this platform, we are not optimizing but we are using
288         the substitute for extern inlines, so compile as if
289         C99-style extern inline, or a substitute, is available.
290         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
291         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
292         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
293         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
294         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
295         Declare as ARGP_FS_EI, not as extern.
296         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
297         (__option_is_short, _option_is_end, __option_is_end)
298         [!_LIBC && __USE_EXTERN_INLINES]:
299         Declare as ARGP_EI, not as extern.
300
301 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
302
303         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
304         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
305         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
306         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
307         ...), as the latter is fatal with older Autoconfs.
308         Problem reported and fix suggested by Eric Blake in thread starting at
309         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
310
311 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
312
313         AC_PROG_MKDIR_P: don't workaround if not buggy
314         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
315         Define only for Autoconf versions before 2.62.
316         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
317         undocumented m4_PACKAGE_VERSION, for consistency with the
318         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
319         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
320         was introduced in 2.62.
321
322 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
323
324         New 'c-*printf' modules for formatted output in C locale.
325
326         New module 'c-vasnprintf'.
327         * modules/c-vasnprintf: New file.
328         * lib/c-vasnprintf.c: New file.
329         * lib/c-vasnprintf.h: New file.
330
331         New module 'c-snprintf'.
332         * modules/c-snprintf: New file.
333         * modules/c-snprintf-tests: New file.
334         * lib/c-snprintf.c: New file.
335         * lib/c-snprintf.h: New file.
336         * tests/test-c-snprintf.c: New file.
337         * tests/test-c-snprintf.sh: New file.
338
339         New module 'c-vsnprintf'.
340         * modules/c-vsnprintf: New file.
341         * modules/c-vsnprintf-tests: New file.
342         * lib/c-vsnprintf.c: New file.
343         * lib/c-vsnprintf.h: New file.
344         * tests/test-c-vsnprintf.c: New file.
345         * tests/test-c-vsnprintf.sh: New file.
346
347         New module 'c-vasprintf'.
348         * modules/c-vasprintf: New file.
349         * modules/c-vasprintf-tests: New file.
350         * lib/c-asprintf.c: New file.
351         * lib/c-vasprintf.c: New file.
352         * lib/c-vasprintf.h: New file.
353         * tests/test-c-vasprintf.c  +: New file.
354         * tests/test-c-vasprintf.sh: New file.
355
356         New module 'c-xvasprintf'.
357         * modules/c-xvasprintf: New file.
358         * modules/c-xvasprintf-tests: New file.
359         * lib/c-xasprintf.c: New file.
360         * lib/c-xvasprintf.c: New file.
361         * lib/c-xvasprintf.h: New file.
362         * tests/test-c-xvasprintf.c: New file.
363         * tests/test-c-xvasprintf.sh: New file.
364
365 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
366
367         argp: better 'inline'
368         Use extern-inline module to declare extern inline functions.
369         This avoids some bogus warning diagnostics.  Problem discovered
370         when modifying GNU tar to use the manywarnings module.
371         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
372         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
373         Define based on extern-inline.
374         * modules/argp (Depends-on): Add extern-inline.
375
376 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
377
378         filemode, sys_stat: Handle MPX files a la AIX.
379         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
380         * lib/sys_stat.in.h (S_ISMPX): New macro.
381         * tests/test-sys_stat.c: Add tests for MPX files.
382
383 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
384
385         x-to-1: honor $PERL
386         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
387         a chance to use his preferred version of Perl.  This is typically
388         required by Darwin users whose default /usr/bin/perl does not have all
389         the libraries required by help2man, and who need to use their MacPorts
390         installation of Perl instead.
391
392 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
393
394         gnu-web-doc-update: add all the new files, even in new directories
395         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
396         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
397         Use it.
398         (main): Don't use cvsutils to get the list of unknown files,
399         just add all the existing files and directories.
400
401 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
402
403         gnu-web-doc-update: improve --help
404         * build-aux/gnu-web-doc-update: Move comments into --help.
405
406 2012-12-07  Eric Wong  <normalperson@yhbt.net>
407
408         mountlist: recognize more "dummy" file systems
409         * lib/mountlist.c (ME_DUMMY_0):
410         Add these dummy FS names to the list:
411         - "debugfs" virtual filesystem for kernel debugging
412         - "devpts" PTY slave filesystem
413         - "devtmpfs" device filesystem on top of tmpfs/ramfs
414         - "fusectl" control filesystem for FUSE
415         - "mqueue" enumerates POSIX message queues
416         - "rpc_pipefs" kernel <-> userspace bridge for NFS
417         - "sysfs" is for exporting kernel objects
418         - "devfs" device filesystem for Linux 2.4 and FreeBSD
419
420 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
421
422         extern-inline: avoid incompatibility with Darwin Libc
423         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
424         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
425         Problem reported by Akim Demaille in
426         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
427
428 2012-12-11  Simon Josefsson  <simon@josefsson.org>
429
430         gnupload: Work with GnuPG using gpg-agent (for smartcards).
431         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
432         let it handle password prompting.
433
434 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
435
436         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
437         * lib/canonicalize.c (canonicalize_filename_mode):
438         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
439         fetching the current directory.  Don't overrun the beginning of
440         rpath if there's no slashes after the MS-Windows drive letter.
441
442 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
443
444         maint.mk: avoid extra forks
445         * top/maint.mk (_cfg_mk): The GNU make manual documents that
446         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
447         So use that instead of "$(shell test -f FILE && echo FILE)".
448
449 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
450
451         vasnprintf: fix ASCII_ONLY typo
452         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
453         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
454         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
455         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
456         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
457
458 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
459
460         list, oset, xlist, xoset: fix extern inline issue with C99
461         This was introduced by my recent changes for 'inline'.
462         Problem reported for gettext by Daiki Ueno in
463         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
464         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
465         (gl_list_nx_create, gl_list_size, gl_list_node_value)
466         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
467         (gl_list_previous_node, gl_list_get_at)
468         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
469         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
470         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
471         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
472         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
473         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
474         (gl_list_iterator_free, gl_sortedlist_search)
475         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
476         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
477         (gl_sortedlist_remove):
478         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
479         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
480         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
481         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
482         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
483         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
484         (gl_list_add_at, gl_sortedlist_add):
485         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
486         Wrap these extern decls inside "#if 0", because they are implemented
487         as inline functions, and extern inline is not what's wanted here.
488         It would simplify these .h files to remove the extern decls entirely,
489         although a downside would be less-clear separation between
490         specification and implementation.
491
492 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
493
494         sys_stat: no 'static inline'
495         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
496         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
497
498         extern-inline: no 'static inline'
499         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
500         Do not require AC_C_INLINE.
501         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
502         'static inline', for older compilers.
503
504         snippet/warn-on-use: no 'static inline'
505         * build-aux/snippet/warn-on-use.h:
506         Remove unnecessary 'inline' in comment.
507
508         rbtree-list, rbtreehash-list: no 'static inline'
509         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
510         * lib/gl_anytree_list2.h (node_at):
511         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
512         (gl_oset_first, add_nodes_to_buckets):
513         Now static, not static inline.
514
515         regex: no 'static inline'
516         * lib/regex_internal.c (calc_state_hash):
517         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
518         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
519         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
520         Now static, not static inline.
521         (inline) [__GNUC__ < 3 && _LIBC]:
522         Remove macro; no longer needed.
523
524         xvasprintf: no 'static inline'
525         * lib/xvasprintf.c (xstrcat):
526         Now static, not static inline.
527         * m4/xvasprintf.m4 (gl_XVASPRINTF):
528         Do not require AC_C_INLINE.
529
530         parse-datetime, parse-duration: no 'static inline'
531         * lib/parse-datetime.y (to_uchar):
532         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
533         (scale_n_add):
534         Now static, not static inline.
535         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
536         * modules/parse-duration (configure.ac):
537         Do not require AC_C_INLINE.
538
539         getaddrinfo: no 'static inline'
540         * lib/getaddrinfo.c (validate_family):
541         Now static, not static inline.
542         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
543         Do not require AC_C_INLINE.
544
545         ftruncate, fts, lstat, openat, raise: no 'static inline'
546         * lib/ftruncate.c (chsize_nothrow):
547         * lib/fts.c (opendirat, diropen):
548         * lib/lstat.c (orig_lstat):
549         * lib/openat.c (orig_openat):
550         * lib/raise.c (raise_nothrow):
551         Now static, not static inline.
552         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
553         * m4/fts.m4 (gl_FUNC_FTS_CORE):
554         * m4/lstat.m4 (gl_PREREQ_LSTAT):
555         * m4/openat.m4 (gl_PREREQ_OPENAT):
556         * m4/raise.m4 (gl_PREREQ_RAISE):
557         Do not require AC_C_INLINE.
558
559         fflush, stat: no 'static inline'
560         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
561         (clear_ungetc_buffer, disable_seek_optimization)
562         (restore_seek_optimization, update_fpos_cache):
563         * lib/stat.c (orig_stat):
564         Now static, not static inline.
565         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
566         (update_fpos_cache):
567         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
568         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
569         * m4/stat.m4 (gl_PREREQ_STAT):
570         Do not require AC_C_INLINE.
571
572         error, filevercmp: no 'static inline'
573         * lib/error.c (is_open, flush_stdout):
574         * lib/filevercmp.c (order):
575         Now static, not static inline.
576         * m4/error.m4 (gl_PREREQ_ERROR):
577         * modules/filevercmp (configure.ac):
578         Do not require AC_C_INLINE.
579
580         dup, execute, fatal-signal, etc.: no 'static inline'
581         * lib/dup.c (dup_nothrow):
582         * lib/execute.c (nonintr_close, nonintr_open):
583         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
584         * lib/fopen.c (orig_fopen):
585         * lib/freadseek.c (freadptrinc):
586         * lib/freopen.c (orig_freopen):
587         * lib/fstat.c (orig_fstat, fstat_nothrow):
588         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
589         (get_rusage_as_via_iterator):
590         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
591         * lib/getdtablesize.c (_setmaxstdio_nothrow):
592         * lib/isatty.c (_isatty_nothrow):
593         * lib/open.c (orig_open):
594         * lib/read.c (read_nothrow):
595         * lib/sigprocmask.c (signal_nothrow):
596         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
597         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
598         * lib/wait-process.c (unregister_slave_subprocess):
599         * lib/write.c (write_nothrow):
600         Now static, not static inline.
601         * lib/spawn-pipe.c (nonintr_open): Define only if
602         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
603         * m4/dup.m4 (gl_PREREQ_DUP):
604         * m4/execute.m4 (gl_EXECUTE):
605         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
606         * m4/fopen.m4 (gl_PREREQ_FOPEN):
607         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
608         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
609         * m4/fstat.m4 (gl_PREREQ_FSTAT):
610         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
611         * m4/isatty.m4 (gl_PREREQ_ISATTY):
612         * m4/open.m4 (gl_PREREQ_OPEN):
613         * m4/read.m4 (gl_PREREQ_READ):
614         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
615         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
616         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
617         * m4/wait-process.m4 (gl_WAIT_PROCESS):
618         * m4/write.m4 (gl_PREREQ_WRITE):
619         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
620         Do not require AC_C_INLINE.
621
622         c-strtod, memcoll, readutmp: no 'static inline'
623         * lib/c-strtod.c (c_locale):
624         * lib/memcoll.c (strcoll_loop):
625         * lib/readutmp.c (desirable_utmp_entry):
626         Now static, not static inline.
627         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
628         * m4/memcoll.m4 (gl_MEMCOLL):
629         * m4/readutmp.m4 (gl_READUTMP):
630         Do not require AC_C_INLINE.
631
632         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
633         * lib/arctwo.c (to_uchar):
634         * lib/md4.c (set_uint32):
635         * lib/md5.c (set_uint32):
636         * lib/sha1.c (set_uint32):
637         * lib/sha256.c (set_uint32):
638         * lib/sha512.c (set_uint64):
639         Now static, not static inline.  This is a bit simpler, and doesn't
640         affect performance with GCC and default optimization.
641         * m4/arctwo.m4 (gl_ARCTWO):
642         * m4/md4.m4 (gl_MD4):
643         * m4/md5.m4 (gl_MD5):
644         * m4/sha1.m4 (gl_SHA1):
645         * m4/sha256.m4 (gl_SHA256):
646         * m4/sha512.m4 (gl_SHA512):
647         Do not require AC_C_INLINE.
648
649         cond, lock, thread: better 'inline'
650         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
651         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
652         New macros.  Use them instead of static inline, for header functions.
653         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
654         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
655         * lib/glthread/lock.c (gl_waitqueue_init)
656         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
657         * lib/glthread/thread.c (get_current_thread_handle):
658         Change 'static inline' to 'inline'.
659         * lib/glthread/cond.h, lib/glthread/thread.h:
660         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
661         * m4/cond.m4 (gl_COND):
662         * m4/lock.m4 (gl_PREREQ_LOCK):
663         * m4/thread.m4 (gl_THREAD):
664         Do not require AC_C_INLINE.
665         * modules/cond, modules/thread (Depends-on): Add extern-inline.
666
667         chdir-long, cycle-check, savewd: better 'inline'
668         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
669         (find_non_slash):
670         * lib/cycle-check.c (is_zero_or_power_of_two):
671         * lib/savewd.c (savewd_delegating):
672         Change 'static inline' to 'inline'.
673         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
674         Replace all remaining uses of 'static inline' with it.
675         * lib/savewd.h:
676         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
677         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
678         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
679         * m4/savewd.m4 (gl_SAVEWD):
680         Do not require AC_C_INLINE.
681         * modules/savewd (Depends-on): Add extern-inline.
682
683         base32, base64: no need for 'inline'
684         * lib/base32.c (to_uchar, get_8, decode_8):
685         * lib/base64.c (to_uchar, get_4, decode_4):
686         Change 'static inline' to 'inline'.
687         * m4/base32.m4 (gl_PREREQ_BASE32):
688         * m4/base64.m4 (gl_PREREQ_BASE64):
689         Do not require AC_C_INLINE.
690
691         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
692         * lib/gl_array_oset.c (gl_array_nx_add_at):
693         (gl_array_remove_at):
694         * lib/gl_linkedhash_list.c (hash_resize_after_add)
695         (add_to_bucket, remove_from_bucket):
696         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
697         Change 'static inline' to 'static', as it's simpler to omit
698         'inline' unless there's a significant performance advantage.
699
700         list, oset, xlist, xoset, xsublist: simplify via extern inline
701         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
702         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
703         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
704         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
705         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
706         New macro.  Replace all uses of 'static inline' with it.
707         [HAVE_INLINE]: Implement functions as *_INLINE functions,
708         instead of as macros FOO that are defined to static inline
709         functions FOO_inline.
710         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
711         * lib/gl_xsublist.c:
712         Reimplement from scratch, by defining the corresponding *_INLINE
713         macro and including the corresponding .h file.  This is simpler.
714         * modules/list, modules/oset, modules/xlist, modules/xoset:
715         (Files): Remove m4/gl_list.m4.
716         (configure.ac): Remove gl_LIST.
717         * m4/gl_list.m4: Remove.
718         * modules/list, modules/oset, modules/xlist, modules/xoset:
719         * modules/xsublist:
720         (Depends-on): Depend on extern-inline, not inline.
721
722         xalloc: better 'inline'
723         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
724         New macro.  Replace all uses of 'static inline' with it.
725         (static_inline): Remove.
726         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
727         Let 'extern inline' do the work automatically, instead of doing
728         it by hand.
729         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
730         Remove.  All uses removed.
731         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
732
733         gethrxtime: better 'inline'
734         * lib/xtime.c: New file.
735         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
736         * lib/xtime.h (XTIME_INCLUDE):
737         New macros.  Replace all uses of 'static inline' with them.
738         * lib/gethrxtime.c (gethrxtime): Define only if
739         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
740         this source file is now always compiled, because of the extern inline.
741         * lib/gethrxtime.h, lib/xtime.h:
742         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
743         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
744         if gethrtime works, as they're not needed in that case.
745         (gl_XTIME): Do not require AC_C_INLINE.
746         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
747         compiled now.  Move the check into gl_GETHRXTIME.
748         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
749         (Depends-on): Add extern-inline.
750         (configure.ac): gethrxtime is always compiled now.
751         (lib_SOURCES): Add gethrxtime.c.
752
753         wctype-h: better 'inline'
754         * lib/wctype-h.c: New file.
755         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
756         New macro.  Replace all uses of 'static inline' with it.
757         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
758         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
759         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
760         (Depends-on): Add extern-inline.
761
762         unistd: better 'inline'
763         * lib/unistd.c: New file.
764         * lib/unistd.in.h (_GL_UNISTD_INLINE):
765         New macro.  Replace all uses of 'static inline' with it.
766         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
767         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
768         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
769         (Depends-on): Add extern-inline.
770
771         sys_socket: better 'inline'
772         * lib/sys_socket.c: New file.
773         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
774         New macro.  Replace all uses of 'static inline' with it.
775         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
776         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
777         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
778         (Depends-on): Add extern-inline.
779
780         stdio: better 'inline'
781         * lib/stdio.c: New file.
782         * lib/stdio.in.h (_GL_STDIO_INLINE):
783         New macro.  Replace all uses of 'static inline' with it.
784         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
785         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
786         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
787         (Depends-on): Add extern-inline.
788
789         sigaction: better 'inline'
790         * lib/sig-handler.c: New file.
791         * lib/sig-handler.h (SIG_HANDLER_INLINE):
792         New macro.  Replace all uses of 'static inline' with it.
793         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
794         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
795         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
796         (Depends-on): Add extern-inline.
797
798         selinux-h: better 'inline'
799         * lib/se-context.c, lib/se-selinux.c: New files.
800         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
801         * lib/se-context.in.h (SE_CONTEXT_INLINE):
802         New macro.  Replace all uses of 'static inline' with it.
803         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
804         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
805         New macro.  Replace all uses of 'static inline' with it.
806         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
807         * modules/selinux-h (Files, lib_SOURCES):
808         Add lib/se-context.c, lib/se-selinux.c.
809         (Depends-on): Add extern-inline.
810         (configure.ac): Do not require AC_C_INLINE.
811
812         pthread: better 'inline'
813         * lib/pthread.c: New file.
814         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
815         New macro.  Replace all uses of 'static inline' with it.
816         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
817         * m4/pthread.m4 (gl_PTHREAD_CHECK):
818         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
819         * modules/pthread (Files): Add lib/pthread.c.
820         (Depends-on): Add extern-inline.
821
822         math: better 'inline'
823         * lib/math.c: New file.
824         * lib/math.in.h (_GL_MATH_INLINE):
825         New macro.  Replace all uses of 'static inline' with it.
826         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
827         * m4/math_h.m4 (gl_MATH_H):
828         Do not require AC_C_INLINE.
829         * modules/math (Files, lib_SOURCES):
830         Add lib/math.c.
831         (Depends-on): Add extern-inline.
832
833         count-one-bits: better 'inline'
834         * lib/count-one-bits.c: New file.
835         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
836         New macro.  Replace all uses of 'static inline' with it.
837         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
838         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
839         Do not require AC_C_INLINE.
840         * modules/count-one-bits (Files, lib_SOURCES):
841         Add lib/count-one-bits.c.
842         (Depends-on): Add extern-inline.
843
844         count-leading-zeros: better 'inline'
845         * lib/count-leading-zeros.c: New file.
846         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
847         New macro.  Replace all uses of 'static inline' with it.
848         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
849         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
850         Do not require AC_C_INLINE.
851         * modules/count-leading-zeros (Files, lib_SOURCES):
852         Add lib/count-leading-zeros.c.
853         (Depends-on): Add extern-inline.
854
855         bitrotate: better 'inline'
856         * lib/bitrotate.c: New file.
857         * lib/bitrotate.h (BITROTATE_INLINE):
858         New macros.
859         Replace all uses of 'static inline' with them.
860         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
861         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
862         (Depends-on): Add extern-inline.
863         (configure.ac): Do not require AC_C_INLINE.
864
865 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
866
867         maint.mk: avoid gratuitous failure
868         Reported by Stefano Lattarini in
869         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
870         * top/maint.mk (public-submodule-commit): Quote more safely.
871
872 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
873
874         canonicalize, canonicalize-lgpl: support MS-Windows file names
875         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
876         for test cases, which it'd be nice to add at some point.
877         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
878         * lib/canonicalize.c (canonicalize_filename_mode):
879         * lib/canonicalize-lgpl.c (__realpath):
880         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
881         slash is at the beginning of the file name.  Use ISSLASH, instead
882         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
883         the first character with '/'.  Test for
884         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
885         with a drive letter.
886         * lib/canonicalize.c (SLASHES): New macro.
887         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
888
889 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
890
891         fts: introduce FTS_VERBATIM
892         * lib/fts_.h (FTS_VERBATIM): New bit flag.
893         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
894         * lib/fts.c (fts_open): Honor it.
895
896 2012-11-09  Pádraig Brady  <P@draigBrady.com>
897
898         getlogin-tests: allow errno == ENXIO
899         * tests/test-getlogin.c (main): Skip tests if getlogin fails
900         with errno == ENXIO (No controlling tty).
901         getlogin_r-tests: Likewise. Also allow errno == ENOENT
902         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
903         with errno == ENOENT.  This was reported to happen in various
904         situations on GNU/Linux.
905
906 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
907
908         getlogin-tests: allow errno == ENOENT
909         * tests/test-getlogin.c (main): Skip tests if getlogin fails
910         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
911         when running a test in an Emacs shell buffer.
912
913 2012-11-08  Jim Meyering  <jim@meyering.net>
914
915         tests/nap.h: avoid warning about unused variable
916         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
917
918         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
919         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
920         white space before each of the special-cased file names, to avoid
921         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
922         in http://bugs.gnu.org/12830.
923
924 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
925
926         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
927         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
928         fails with errno == EBADF when fd is opened with O_PATH.
929         Reported by Jim Meyering in
930         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
931         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
932         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
933
934 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
935
936         test-utimens: speed up by taking shorter naps
937         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
938         New functions.
939         (nap): Use them, to do a better job of guessing the delay.
940         On Fedora 17 with ext4 atop md atop hard disks, this made
941         test-utimens run 10x faster, because the test napped for
942         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
943         <http://bugs.gnu.org/12820#11>.
944
945 2012-11-07  Jim Meyering  <jim@meyering.net>
946
947         mountlist.c: fix a compilation failure
948         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
949         I introduced while transforming commit v0.0-7683-g613bcb6
950
951 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
952
953         errno: port to LynxOS 178 2.2.2
954         Problem reported by Joel Brobecker in
955         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
956         * doc/posix-headers/errno.texi (errno.h): Document this.
957         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
958         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
959         Supply a string for EILSEQ.
960         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
961
962 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
963
964         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
965         Linux kernel 2.6.39 introduced O_PATH (see
966         <http://lwn.net/Articles/433854/>) and this is a better fallback
967         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
968         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
969         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
970         * lib/fcntl.in.h (O_ACCMODE):
971         * tests/test-fcntl-h.c (main):
972         Do not reject O_ACCMODE merely because it has more than the
973         minimal number of bits, as POSIX allows extensions here.
974
975 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
976
977         mountlist: do not classify a bind-mounted dir entry as "dummy"
978         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
979         the "none"-testing clause.
980         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
981         exception for bind-mounted directories.
982
983 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
984
985         quote: provide a means to escape strings with nul characters
986         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
987         (quote, quote_n): Rename formal arguments for consistency with
988         quotearg.
989
990 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
991
992         test-raise: don't assume 199 is an invalid signal
993         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
994
995         sh-quote-tests: port to Solaris 9
996         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
997         Problem reported by Dagobert Michelsen in
998         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
999
1000 2012-10-28  Jim Meyering  <jim@meyering.net>
1001
1002         maint.mk: rename a new configurable variable
1003         * top/maint.mk (_gl_translatable_string_re): Rename from
1004         translation-markers: _gl_ prefix to insulate from user Makefile code,
1005         and the _re suffix to inform that it's a regular expression.
1006
1007 2012-10-26  Eric Blake  <eblake@redhat.com>
1008
1009         maint.mk: let packages tweak sc_po_check pattern
1010         * top/maint.mk (sc_po_check): Add translation-markers, to allow
1011         finding files with other translation markers.
1012
1013 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1014
1015         euidaccess: speed up 'configure' on GNU hosts
1016         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
1017         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
1018         it's needed only in this case.  Use AC_CHECK_DECLS, not
1019         AC_CHECK_DECLS_ONCE.
1020         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
1021         or AC_REQUIRE for AC_FUNC_GETGROUPS.
1022
1023         * lib/regexec.c (re_search_internal): Fix grammar in comment.
1024
1025 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1026
1027         fchmodat, fchownat, fstatat: port to non-inlining compilers
1028         Problem reported for FreeBSD 9 by Jim Meyering in
1029         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
1030         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
1031         New files, which define FCHMODAT_INLINE etc.
1032         * lib/fchmodat.c (FCHMODAT_INLINE):
1033         * lib/fchownat.c (FCHOWNAT_INLINE):
1034         * lib/fstatat.c (FSTATAT_INLINE):
1035         Remove, as chmodat.c etc. now do this.
1036         * modules/fchmodat (Files): Add lib/chmodat.c.
1037         * modules/fchownat (Files): Add lib/chownat.c.
1038         * modules/fstatat (Files): Add lib/statat.c.
1039
1040 2012-10-15  Jim Meyering  <jim@meyering.net>
1041
1042         fchmodat.c, fchownat.c: compile-impeding typos
1043         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
1044         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
1045         Introduced in commit v0.0-7636-gd202279.
1046
1047 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1048
1049         fcntl-h: support GNU flags like O_IGNORE_CTTY
1050         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
1051         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
1052         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
1053         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
1054         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
1055         Define to 0 if not already defined.
1056         * tests/test-fcntl-h.c: Test these new flags.
1057
1058 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1059
1060         faccessat, etc.: support AT_FDCWD-only use
1061         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
1062         this function only if its first argument is AT_FDCWD.
1063         Emacs wants faccessat for AT_EACCESS but not for any first-arg
1064         values other than AT_FDCWD, so it doesn't want all the openat
1065         machinery with fchdir etc.
1066         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
1067         * modules/fstatat, modules/mkdirat, modules/openat (Files):
1068         * modules/unlinkat (Files):
1069         Remove lib/openat-priv.h, as at-internal supplies this file.
1070         Removing this file here allows us to support programs like Emacs
1071         that avoid at-internal.
1072
1073         faccessat: speed up 'configure' on mainstream hosts
1074         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
1075         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
1076         since it's only on unusual platforms that we need to check for
1077         'access', and it's better not to slow 'configure' down on all
1078         platforms.
1079
1080         faccessat: port to Solaris 10
1081         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
1082         Needed on Solaris 10, which doesn't have AT_EACCESS,
1083         so we need the Gnulib fcntl.h, which defines it.
1084
1085 2012-10-14  Pádraig Brady  <P@draigBrady.com>
1086         canonicalize: fix C89 compilation
1087         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
1088         declarations so C89 is supported.  Also remove the comment
1089         referencing memorty allocation as the suggested feature could
1090         not be implemented as suggested.
1091         Reported by Michael Goffioul.
1092
1093 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1094
1095         group-member: omit unnecessary dependencies
1096         This is for Emacs, which has its own allocator and where we
1097         don't want to use xalloc.
1098         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
1099         since we no longer use xmalloc.  Do not include stdbool.h, since
1100         the changes below happen to remove the only use of bool.
1101         (GROUPBUF_SIZE): New constant.
1102         (struct group_info): Remove n_groups member.  Add groupbuf member.
1103         This lets us get the groups without using malloc, usually.
1104         (free_group_info, get_group_info): Adjust to this.
1105         (get_group_info): Return the number of groups found, or -1 on error.
1106         Use plain malloc not xmalloc, and treat its failure as if there
1107         are no groups, as the user already loses in case of error.
1108         (group_member): Simplify, based on changes to get_group_info.
1109         * modules/group-member (Depends-on): Remove dependencies on
1110         xalloc and stdbool.  Add dependency on xalloc-oversized.
1111
1112 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
1113
1114         gethrxtime: port to C++
1115         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
1116
1117 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1118
1119         ptsname: fix macro-name typo
1120         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
1121
1122 2012-10-03  Simon Josefsson  <simon@josefsson.org>
1123
1124         inttostr: Relax license.
1125         * modules/inttostr (License): Change from LGPL to LGPLv2+.
1126
1127 2012-10-03  Eric Blake  <eblake@redhat.com>
1128
1129         ptsname_r: support ptys returned by FreeBSD posix_openpt
1130         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
1131         lives in /dev/pts/.
1132
1133 2012-10-02  Eric Blake  <eblake@redhat.com>
1134
1135         pselect: reject invalid file descriptors
1136         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
1137         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
1138         * modules/pselect (Depends-on): Add dup2.
1139         * doc/posix-functions/pselect.texi (pselect): Document this.
1140
1141         select: reject invalid file descriptors
1142         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
1143         * lib/select.c (rpl_select) [!win32]: Work around it.
1144         * modules/select (Depends-on): Add dup2.
1145         * doc/posix-functions/select.texi (select): Document this.
1146
1147         select: enhance test
1148         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
1149         New functions.
1150         (test_function): Enhance test.
1151         (do_select_bad_fd): Avoid any stale errno values.
1152
1153         ptsname: reject invalid file descriptors
1154         http://www.austingroupbugs.net/view.php?id=503
1155         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
1156         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
1157         * modules/stdlib (Makefile.am): Replace witness.
1158         * lib/stdlib.in.h (ptsname): Allow for replacement.
1159         * modules/ptsname (configure.ac): Trigger replacement.
1160         * doc/posix-functions/ptsname.texi (ptsname): Document this.
1161
1162 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
1163
1164         hash-pjw-bare: new module
1165         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
1166         * lib/hash-pjw-bare.h: Likewise.
1167         * modules/hash-pjw-bare: New file.
1168         * MODULES.html.sh (Misc): Add it.
1169
1170 2012-10-02  Eric Blake  <eblake@redhat.com>
1171
1172         manywarnings: cater to more gcc infelicities
1173         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
1174         -Wuninitialized without -O.
1175
1176 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
1177
1178         select, poll tests: Make setsockopt invocation effective.
1179         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
1180         the bind() call.
1181         * tests/test-select.h (open_server_socket): Likewise.
1182
1183 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
1184
1185         sockets, sys_stat: restore AC_C_INLINE
1186         This undoes the 2012-09-22 patch.
1187         * m4/sockets.m4 (gl_SOCKETS):
1188         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1189         Restore AC_C_INLINE, since MSVC requires __inline or _inline
1190         and does not support plain 'inline'.  Reported by Bruno Haible in
1191         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
1192
1193 2012-09-30  Bruno Haible  <bruno@clisp.org>
1194
1195         localeconv tests: Avoid test failure on OpenIndiana.
1196         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
1197         skip the 'grouping' and 'mon_grouping' tests.
1198         Reported by Jim Meyering.
1199
1200 2012-09-30  Bruno Haible  <bruno@clisp.org>
1201
1202         havelib: Follow libtool developments.
1203         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
1204         Suggested by Simon Josefsson.
1205
1206 2012-09-29  Jim Meyering  <meyering@redhat.com>
1207
1208         fstatat.c: fix a compile-impeding typo
1209         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
1210         Introduced in commit v0.0-7636-gd202279.
1211         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
1212
1213 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
1214
1215         extern-inline: provide a -Wundef safe config.h
1216         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
1217         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
1218         to produce a -Wundef warning free config.h.
1219
1220 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1221
1222         hash-pjw: relax license to LGPLv2+
1223         * modules/hash-pjw (License): Relax, with consent of author.
1224
1225 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1226
1227         maint.mk: fix strict vs. lazy variable issues with RELEASE
1228         * top/maint.mk (_equal): New function.
1229         (member_check): Strip the result to avoid spurious spaces.
1230         (url_dir_list): Do not use ifeq, which is strict, as it will
1231         require RELEASE_TYPE to be defined.
1232         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
1233         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
1234         (announcement_Cc_alpha,announcement_mail_headers_alpha)
1235         (announcement_Cc_beta,announcement_mail_headers_beta)
1236         (announcement_Cc_stable,announcement_mail_headers_stable): these.
1237         (release): Do not depend on $(release-type), as it forces its
1238         evaluation.  Bounce to it.
1239
1240 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1241
1242         maint.mk: formatting changes
1243         * top/maint.mk: Indent bodies of if's.
1244
1245 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
1246
1247         maint.mk: factor the validation of RELEASE_TYPE
1248         With help from Jim Meyering.
1249         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
1250         * top/maint.mk (_empty, _sp): Move their definition earlier.
1251         (member-check, release-type): New.
1252         Use the latter instead of $(RELEASE_TYPE).
1253         Remove now useless local checks.
1254
1255 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1256
1257         maint.mk: provide "make upload" to ease uploading
1258         See
1259         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
1260         Do not depend simply on the current $(VERSION), as there may have been
1261         new commits since the tarball generation.  Rather, rely on $(RELEASE),
1262         as "make release-commit" already does.
1263
1264         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
1265         "make TYPE".
1266
1267         * top/maint.mk (upload_command, upload, release): New.
1268         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
1269         (VERSION): first word of $(RELEASE) is always right.
1270         (emit_upload_commands): Adjust.
1271         * top/README-release: Update.
1272
1273 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1274
1275         maint.mk: silent rules
1276         With help from Stefano Lattarini.
1277         * top/maint.mk (writable-files): Use $(AM_V_GEN).
1278         (announcement): Use $(AM_V_at).
1279
1280 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1281
1282         localename: port gl_locale_name_thread_unsafe to FreeBSD
1283         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
1284         and use the simpler FreeBSD implementation on Mac OS X as well.
1285         Original idea suggested by Ed Maste in
1286         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
1287
1288 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1289
1290         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
1291         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
1292         * lib/mbuiter.c, lib/xsize.c: New files.
1293         * lib/binary-io.h (BINARY_IO_INLINE):
1294         * lib/eealloc.h (EEALLOC_INLINE):
1295         * lib/mbfile.h (MBFILE_INLINE):
1296         * lib/mbiter.h (MBITER_INLINE):
1297         * lib/mbuiter.h (MBUITER_INLINE):
1298         * lib/xsize.h (XSIZE_INLINE):
1299         New macros.
1300         Replace all uses of 'static inline' with them.
1301         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1302         * m4/eealloc.m4 (gl_EEALLOC):
1303         * m4/mbfile.m4 (gl_MBFILE):
1304         * m4/mbiter.m4 (gl_MBITER):
1305         * m4/xsize.m4 (gl_XSIZE):
1306         Do not require AC_C_INLINE.
1307         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
1308         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
1309         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
1310         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
1311         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
1312         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
1313         * modules/binary-io, modules/eealloc, modules/mbfile:
1314         * modules/mbiter, modules/mbuiter:
1315         (Depends-on): Add extern-inline.
1316
1317         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
1318         * lib/pipe-filter-aux.c: New file.
1319         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
1320         Replace all uses of 'static inline' with it.
1321         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1322         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
1323         (filter_retcode): No real need for inline here.
1324         * modules/pipe-filter-gi, modules/pipe-filter-ii:
1325         (Files): Add lib/pipe-filter-aux.c.
1326         (Depends-on): Add extern-inline.
1327         (configure.ac): Do not require AC_C_INLINE.
1328         (lib_SOURCES): Add pipe-filter-aux.c.
1329
1330         fdutimensat: omit unnecessary AC_C_INLINE
1331         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
1332
1333         fchmodat, fchownat, fstatat: use extern-inline
1334         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
1335         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
1336         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
1337         New macros.
1338         * lib/openat.h:
1339         Replace all uses of 'static inline' with them.
1340         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1341         * modules/fchmodat, modules/fchownat, modules/fstatat:
1342         * modules/openat-h:
1343         (Depends-on):
1344         Add extern-inline.
1345         (configure.ac): Remove AC_C_INLINE.
1346
1347         acl, mbchar, priv-set: use extern-inline
1348         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
1349         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
1350         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
1351         New macros.
1352         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
1353         Replace all uses of 'static inline' with it.
1354         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1355         * m4/acl.m4 (gl_FUNC_ACL):
1356         * m4/mbchar.m4 (gl_MBCHAR):
1357         * m4/priv-set.m4 (gl_PRIV_SET):
1358         Remove AC_C_INLINE, since 'inline' is no longer used directly.
1359         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
1360         Add extern-inline.
1361
1362         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
1363         * m4/sockets.m4 (gl_SOCKETS):
1364         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1365         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
1366         environments where it's already guaranteed to work, so we needn't
1367         check for it at 'configure'-time.
1368
1369         tls-tests: omit unnecessary 'inline'
1370         * tests/test-tls.c (perhaps_yield): No longer inline.
1371         Simplicity and portability trump efficiency in test cases.
1372
1373         utimens-tests: avoid unnecessary 'inline'
1374         * modules/fdutimensat-tests (configure.ac):
1375         * modules/futimens-tests (configure.ac):
1376         * modules/utimens-tests (configure.ac):
1377         * modules/utimensat-tests (configure.ac):
1378         Remove AC_C_INLINE.
1379         * tests/test-utimens-common.h (ctime_compare):
1380         No longer inline.  Simplicity and portability trump efficiency here.
1381
1382         misc: don't limit commentary to inline functions
1383         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
1384         * lib/xalloc-oversized.h, lib/xsize.h:
1385         Contrast macros to functions in general, not just to inline functions,
1386         when the commentary does not apply only to inline functions.
1387
1388 2012-09-20  Jim Meyering  <meyering@redhat.com>
1389
1390         non-recursive-gnulib-prefix-hack: new module
1391         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
1392         the file that originated in Bison.
1393         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
1394         largely copied from a snippet that resided in bison's configure.ac.
1395         * modules/non-recursive-gnulib-prefix-hack: New file.
1396         * MODULES.html.sh (Support for maintaining and releasing projects):
1397         Add it.
1398
1399 2012-09-18  Jim Meyering  <meyering@redhat.com>
1400
1401         maint.mk: generalize _gl_tight_scope for non-recursive make
1402         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
1403         that *.h would describe additional .h files in the directory
1404         specified by $(_gl_TS_dir).  I.e., add this...
1405         (_gl_TS_other_headers): New variable.
1406
1407         maint.mk: exempt trailing blanks found in "binary" files
1408         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
1409         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
1410         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1411
1412 2012-09-17  Jim Meyering  <meyering@redhat.com>
1413
1414         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
1415         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
1416         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
1417         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1418
1419 2012-09-17  Jim Meyering  <meyering@redhat.com>
1420
1421         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
1422         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
1423         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
1424         It is not in the same category as "exit (0)" or "exit (1)", and
1425         besides, I know of no symbolic name for that 77.  Reported by
1426         Richard W.M. Jones in
1427         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1428
1429 2012-09-17  Jim Meyering  <meyering@redhat.com>
1430
1431         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
1432         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
1433         all uses of #define, not just those that start in column 1.
1434         Richard W.M. Jones reported a false positive in
1435         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1436
1437 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1438
1439         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
1440         * lib/localcharset.c (locale_charset) [DARWIN7]:
1441         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
1442         as these two values are incompatible.  Problem reported by Max Horn.
1443         For more discussion, please see
1444         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
1445
1446         doc: document sticky-EOF issue
1447         * doc/posix-functions/fgetc.texi (fgetc):
1448         * doc/posix-functions/fgets.texi (fgets):
1449         * doc/posix-functions/fread.texi (fread):
1450         * doc/posix-functions/fscanf.texi (fscanf):
1451         * doc/posix-functions/getc.texi (getc):
1452         * doc/posix-functions/getchar.texi (getchar):
1453         * doc/posix-functions/scanf.texi (scanf):
1454         Mention that glibc and default Solaris do not conform to
1455         C99 and POSIX-2001 or later, with respect to how getchar
1456         etc. behave when feof reports nonzero.
1457
1458 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1459
1460         poll: fix poll(0, NULL, msec)
1461         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
1462         but nfd is 0.  In that case poll should behave like select.
1463
1464 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1465             Paolo Bonzini <bonzini@gnu.org>
1466
1467         poll: fix for systems that can't recv() on a non-socket
1468         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
1469         is readable.  In this case POLLHUP will not be supported.
1470         * doc/posix-functions/poll.texi: Document this.
1471
1472 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
1473
1474         poll/select: document portability problems not fixed by Gnulib.
1475         * doc/posix-functions/poll.texi: poll does not work well on
1476         pipes under Windows.  It has the same limitations as select on
1477         BeOS.
1478         * doc/posix-functions/select.texi: select does not work well
1479         on pipes under Windows.
1480
1481 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1482
1483         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
1484         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
1485         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
1486         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
1487
1488 2012-09-06  Eric Blake  <eblake@redhat.com>
1489
1490         net_if: give more details about the bug being fixed
1491         * doc/posix-headers/net_if.texi: Add clarification.
1492
1493 2012-09-05  Eric Blake  <eblake@redhat.com>
1494
1495         net_if: new module
1496         * modules/net_if: New module, borrowing ideas from netinet_in.
1497         * m4/net_if_h.m4: New file.
1498         * lib/net_if.in.h: Likewise.
1499         * doc/posix-headers/net_if.texi (net/if.h): Document it.
1500         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1501         * tests/test-net_if.c: Make function checks conditional.
1502         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
1503
1504 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
1505
1506         readutmp: fix non-portable UT_PID use
1507         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
1508         Use `UT_PID (u) > 0' as absolute condition.
1509
1510 2012-09-04  Jim Meyering  <meyering@redhat.com>
1511
1512         fts: reduce two or more trailing spaces to just one, usually
1513         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
1514         or more slashes, trim all but the final one.  But if a name consists
1515         solely of two slashes, don't modify it.  If it consists solely of
1516         three or more slashes, strip all but one.
1517
1518         This is part of the solution to a minor problem with rm:
1519         it would print a bogus ELOOP diagnostic when failing to remove
1520         the slash-decorated name of a symlink-to-directory:
1521
1522             $ mkdir d && ln -s d s && env rm -r s/
1523             rm: cannot remove 's': Too many levels of symbolic links
1524
1525         With the change below and a trivial don't-trim-trailing-slashes
1526         adjustment to remove.c, it does this:
1527
1528             $ env rm -r s/
1529             rm: cannot remove 's/': Not a directory
1530
1531         Improved by: Eric Blake
1532
1533         fts: when there is no risk of overlap, use memcpy, not memmove
1534         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
1535
1536 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
1537
1538         stdbool: be more compatible with mixed C/C++ compiles
1539         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
1540         Define to bool, true, false, respectively, as GCC's builtin
1541         stdbool.h does.  Problem reported by Michael Goffioul in
1542         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
1543
1544 2012-08-28  Jim Meyering  <meyering@redhat.com>
1545
1546         revert last change: it was not needed
1547         * tests/test-vc-list-files-git.sh: There's already a test for
1548         a working git, just below.
1549
1550 2012-08-28  Jim Meyering  <meyering@redhat.com>
1551
1552         tests: test-vc-list-files-git.sh: skip if git is not available
1553         * tests/test-vc-list-files-git.sh: Skip this test when git is
1554         not available.
1555
1556 2012-08-26  Bruno Haible  <bruno@clisp.org>
1557
1558         gnulib-tool: Remove no-op option --no-changelog.
1559         * gnulib-tool (func_usage): Don't mention --no-changelog.
1560         (do_changelog): Remove variable.
1561         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1562
1563 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1564
1565         doc: remove fdl-1.2.texi
1566         It is no longer used or maintained, and its use of @acronym
1567         is problematic.  See the thread containing
1568         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
1569         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
1570         * doc/old-licenses/fdl-1.2.texi: Remove.
1571
1572         execinfo: port to FreeBSD
1573         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
1574         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
1575         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
1576         * modules/execinfo (Link): Add $(LIB_EXECINFO).
1577
1578 2012-08-23  Jim Meyering  <meyering@redhat.com>
1579
1580         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
1581         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
1582         to placate gcc's -Wold-style-declaration.
1583
1584 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1585
1586         doc: do not use @acronym
1587         * doc/inet_ntoa.texi (inet_ntoa):
1588         * doc/parse-datetime.texi (Seconds since the Epoch)
1589         (Specifying time zone rules):
1590         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
1591         Don't use @acronym.  Problem reported by John Darlington in
1592         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
1593
1594 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1595
1596         stdnoreturn: port to newer GCCs
1597         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
1598         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
1599         Problem reported by Jim Meyering in
1600         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
1601         Also, rename the 'test' function to a void a clash with the
1602         already-supplied 'main' function; this fixes a bug that incorrectly
1603         rejected GCC 4.7.1's <stdnoreturn.h>.
1604         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
1605         Document GCC problem.
1606
1607 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
1608
1609         pipe-filter: fix comment typo
1610         * lib/pipe-filter.h: Mention correct function.
1611
1612 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
1613
1614         execinfo: new module
1615         This is for Emacs.  Currently, it provides a no-effect stub
1616         on all platforms where it does not already work.
1617         It already works on glibc-based systems, and on Solaris 11.
1618         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
1619         New files.
1620         * doc/glibc-headers/execinfo.texi (execinfo.h):
1621         * MODULES.html.sh (Misc): Document it.
1622
1623 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1624
1625         extern-inline: support old GCC 'inline'
1626         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
1627         if available.  This applies to GCC versions 2.7 through 4.2, or
1628         when newer GCC is using -fgnu89-inline.  The goal is to address
1629         some of the performance issues mentioned by Bruno Haible in
1630         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
1631
1632 2012-08-20  Eric Blake  <eblake@redhat.com>
1633
1634         maint.mk: avoid redundant file name in message
1635         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1636         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
1637         (sc_makefile_path_separator_check): Remove bogus $(ME).
1638
1639 2012-08-20  Mike Frysinger <vapier@gentoo.org>
1640
1641         timer-time: fix link order when static linking on glibc
1642         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1643         _after_ -lrt so that it's significant.
1644
1645 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
1646
1647         timespec: omit unnecessary AC_C_INLINE
1648         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
1649
1650         stat-time: omit unnecessary AC_C_INLINE
1651         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
1652         Do not require AC_C_INLINE.
1653
1654         ignore-value: omit unnecessary AC_C_INLINE
1655         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
1656
1657         sys_select: avoid 'static inline'
1658         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
1659
1660         mktime: avoid 'static inline'
1661         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
1662         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
1663
1664 2012-08-19  Bruno Haible  <bruno@clisp.org>
1665
1666         gnulib-tool: Improve coding style.
1667         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
1668         func_emit_lib_Makefile_am.
1669         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1670
1671 2012-08-19  Bruno Haible  <bruno@clisp.org>
1672
1673         gnulib-tool: Fix indentation.
1674         * gnulib-tool (func_import): Fix indentation.
1675
1676 2012-08-19  Bruno Haible  <bruno@clisp.org>
1677
1678         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
1679         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
1680         on the list of removed files.
1681
1682 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
1683
1684         test-parse-datetime: avoid glibc leap-second glitch
1685         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
1686         with the 2012 rules.  Problem reported by Bruce Dubbs in
1687         <http://bugs.gnu.org/12206>.
1688
1689 2012-08-14  Bruno Haible  <bruno@clisp.org>
1690
1691         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
1692         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
1693         from argument.
1694         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1695
1696 2012-08-14  Eric Blake  <eblake@redhat.com>
1697
1698         ldexp: relax license
1699         * modules/ldexp (License): Trivial relax, since the module only
1700         provides a permissively licensed m4 file.
1701
1702 2012-08-13  Bruno Haible  <bruno@clisp.org>
1703
1704         gnulib-tool: Fix persistence of --witness-c-macro option.
1705         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
1706         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1707
1708 2012-08-11  Eric Blake  <eblake@redhat.com>
1709
1710         count-leading-zeros: use a lookup table on non-gcc compilers
1711         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
1712         alternate implementation, suggested by Jim Meyering.
1713
1714 2012-08-10  Eric Blake  <eblake@redhat.com>
1715
1716         count-leading-zeros: new module
1717         * modules/count-leading-zeros: New module.
1718         * m4/count-leading-zeros.m4: New file.
1719         * lib/count-leading-zeros.h: Likewise.
1720         * modules/count-leading-zeros-tests: New test.
1721         * tests/test-count-leading-zeros.c: New file.
1722         * MODULES.html.sh (Integer arithmetic functions): Document it.
1723
1724 2012-08-07  Simon Josefsson  <simon@josefsson.org>
1725             Jim Meyering  <meyering@redhat.com>
1726
1727         maintainer-makefile: Fix syntax error with dash.
1728         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
1729         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
1730
1731 2012-08-05  Jim Meyering  <meyering@redhat.com>
1732
1733         extern-inline: also ignore -Wmissing-declarations
1734         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
1735         required with gcc-4.8.0-to-be.
1736
1737         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
1738         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
1739         for /error ?([^,]*)/.  This avoids false-positives for strings like
1740         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
1741
1742 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
1743
1744         gnumakefile: better interaction with Automake-NG
1745         * modules/gnumakefile [Makefile.am]: The makefiles generated by
1746         Automake-NG always contain a definition of VPATH, even in non-VPATH
1747         builds (its value being simply '.' in that case).  So, in the
1748         'clean-GNUmakefile' rule, to determine whether running under a
1749         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
1750         '$(VPATH)' expands to the empty string.
1751
1752 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
1753
1754         base64: Use extern C scope in header file, for C++.
1755         * lib/base64.h: Add C++ namespace protection.
1756
1757 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1758
1759         stat-time, timespec, u64: support naive out-of-dir builds
1760         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
1761         Use '#include "foo.h"', not '#include <foo.h>', when including
1762         one's own interface.  This works better when configuring with
1763         out-of-directory builds, since packages need not add an
1764         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
1765
1766 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1767
1768         utimens: use extern-inline
1769         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
1770         * lib/utimens.h: Add copyright notice, since this is now large enough
1771         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1772         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
1773         * modules/utimens (Depends-on): Add extern-inline.
1774
1775         u64: use extern-inline
1776         * lib/u64.c: New file.
1777         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1778         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
1779         * modules/u64 (Files): Add lib/u64.c.
1780         (Depends-on): Add extern-inline.
1781         (configure.ac): No need to require AC_C_INLINE, since extern-inline
1782         does that now.
1783         (lib_SOURCES): Add u64.c.
1784
1785         timespec: use extern-inline
1786         * lib/timespec.c: New file.
1787         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1788         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
1789         * modules/timespec (Files): Add lib/timespec.c.
1790         (Depends-on): Add extern-inline.
1791         (lib_SOURCES): Add timespec.c.
1792
1793         stat-time: use extern-inline
1794         * lib/stat-time.c: New file.
1795         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1796         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
1797         * modules/stat-time (Files): Add lib/stat-time.c.
1798         (Depends-on): Add extern-inline.
1799         (lib_SOURCES): Add stat-time.c.
1800
1801         extern-inline: new module
1802         * modules/extern-inline, m4/extern-inline.m4: New files.
1803         This is for better support of 'extern inline' a la ISO C99,
1804         with a portable alternative on compilers that do not support
1805         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
1806         of the Emacs executable, when compiled with debugging disabled,
1807         which is a typical way that Emacs is built while developing.
1808
1809 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
1810
1811         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
1812         * build-aux/do-release-commit-and-tag: Move variable definitions
1813         together.
1814         ($branch): Instead of defaulting to "master", default to the current
1815         branch (as gnu-web-doc-update does).
1816         (help): Display the current values of the option arguments.
1817         * top/maint.mk (release-commit): New.
1818         * top/README-release: Simplify the corresponding step.
1819
1820 2012-07-30  Eric Blake  <eblake@redhat.com>
1821
1822         passfd: fix comment on recvfd
1823         * lib/passfd.c (recvfd): Fix comment.
1824         Reported by Jann Horn <jannhorn@googlemail.com>.
1825
1826 2012-07-30  Jim Meyering  <meyering@redhat.com>
1827
1828         maint.mk: avoid a sub-shell
1829         * top/maint.mk (release-prep): Remove unneeded sub-shell.
1830
1831 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1832
1833         maint.mk: use silent-rules support from Automake
1834         * top/maint.mk (news-check, vc-diff-check, announcement)
1835         (no-submodule-changes, alpha beta stable, release-prep)
1836         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
1837
1838 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1839
1840         maint.mk: provide a web-manual-update target
1841         * top/maint.mk: here.
1842         * top/README-release: Use it to simplify the web manual update step.
1843
1844 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1845
1846         README-release: shorten the circuit to post a news
1847         * top/README-release: Point directly to the news submission form.
1848
1849 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1850
1851         gnu-web-doc-update: fix --help
1852         * build-aux/gnu-web-doc-update: The information "top level" was written
1853         twice.
1854
1855 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1856
1857         maint.mk: absolute VPATH issue
1858         * top/maint.mk (release-prep): Help Git find .git/.
1859         From Jim Meyering.
1860
1861 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1862
1863         gitlog-to-changelog: fix previous change
1864         * build-aux/gitlog-to-changelog: Fix condition.
1865         Add missing ";".
1866
1867 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1868
1869         gitlog-to-changelog: don't expect .git to be in $srcdir
1870         Reported by Bruno Haible.
1871         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
1872         * build-aux/gitlog-to-changelog (&git_dir_option): New.
1873         Use it.
1874
1875 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1876
1877         maint.mk: absolute VPATH build fix
1878         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
1879         $(srcdir) is not a parent of $(builddir).
1880
1881 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
1882
1883         clean-temp: Fix memory leak.
1884         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
1885         'files' members of tmpdir.
1886
1887 2012-07-27  Jim Meyering  <meyering@redhat.com>
1888
1889         maint.mk: new rule: refresh-gnulib-patches
1890         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
1891         Use this rule to refresh them.
1892         * top/maint.mk (refresh-gnulib-patches): New rule.
1893
1894 2012-07-24  Bruno Haible  <bruno@clisp.org>
1895
1896         gnulib-tool: Fix handling of inctests variable.
1897         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
1898         Reported by Nick Bowler <nbowler@elliptictech.com>.
1899
1900 2012-07-22  Bruno Haible  <bruno@clisp.org>
1901
1902         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
1903         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
1904         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1905         Remove exemption for getpass.h.
1906         Suggested by Eric Blake.
1907
1908 2012-07-20  Eric Blake  <eblake@redhat.com>
1909
1910         verify: document conflict with -Wnested-externs
1911         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
1912
1913         maint.mk: forbid exit(-1)
1914         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
1915
1916 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
1917
1918         fsusage: port back to Solaris
1919         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
1920         error (fsd not declared) on Solaris 10.  Reported privately by
1921         Andrew Borodin.
1922
1923 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
1924
1925         gnu-web-doc-update: fix error messages
1926         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
1927
1928         gnu-web-doc-update: check the requirements.
1929         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
1930         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
1931         * build-aux/bootstrap (find_tool): Comment change.
1932
1933 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
1934
1935         maint.mk: minor simplication.
1936         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
1937         for default values.
1938
1939 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
1940
1941         gitlog-to-changelog: VPATH build issues
1942         If builddir is not a subdirectory of srcdir, running git from it will
1943         fail.
1944         * build-aux/gitlog-to-changelog (--srcdir): New option.
1945
1946 2012-07-15  Bruno Haible  <bruno@clisp.org>
1947
1948         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
1949         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
1950         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
1951         Remove exemption for fpending.h.
1952         Suggested by Eric Blake.
1953
1954 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1955
1956         pthread_sigmask: fix bug on FreeBSD 9
1957         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
1958         Include string.h.
1959         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
1960         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
1961         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
1962         but pthread_sigmask (1729, NULL, NULL) returns zero.
1963         See <http://bugs.gnu.org/11884>.
1964         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
1965         by inspecting whether the main call changed the old mask.
1966
1967 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
1968
1969         README-release: make it more legible
1970         * top/README-release: Improve typography slightly.
1971
1972 2012-07-15  Jim Meyering  <meyering@redhat.com>
1973
1974         maint: require that each sc_... command start with "@"
1975         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
1976         "make sc_maint" helps us avoid this nit.
1977
1978 2012-07-15  Jim Meyering  <meyering@redhat.com>
1979
1980         maint.mk: add leading "@" to quiet new "make syntax-check" rule
1981         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
1982
1983 2012-07-13  Eric Blake  <eblake@redhat.com>
1984
1985         maint.mk: new syntax check for HAVE_DECL checks
1986         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
1987         * cfg.mk
1988         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1989         Exempt some false positives.
1990         Based on a report by Karel Zak.
1991
1992         argp: make HAVE_DECL usage consistent
1993         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
1994         macros, not whether they are defined.
1995         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
1996         convention with other declaration checks.
1997         Reported by Karel Zak, with suggestions from Paul Eggert.
1998
1999         stat-time: relax license to LGPLv2+
2000         * modules/stat-time (License): Relax, with consent of all authors.
2001
2002         strndup: fix m4 usage error
2003         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
2004         defined, to either 0 or 1.
2005         Reported by Karel Zak.
2006
2007 2012-07-11  Jim Meyering  <meyering@redhat.com>
2008
2009         maint: enable the sc_avoid_if_before_free syntax-check rule
2010         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
2011         (if_before_free_offenders_): Define.
2012         (if_before_free_basename_re_): Define.
2013         Exempt current files with useless if-before-free.
2014
2015 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
2016
2017         gettext: do not assume '#define ... defined ...' behavior
2018         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
2019         Do not use '#define FOO ... defined BAR ...', as the C standard says
2020         it's not portable to expect that this works after macro expansion.
2021         Problem reported for gzip by Steven M. Schweda in
2022         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
2023
2024 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
2025
2026         getloadavg: clean out old Emacs and Autoconf cruft
2027         See Glenn Morris in <http://bugs.gnu.org/11905>.
2028         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
2029         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
2030         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
2031         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
2032
2033 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
2034
2035         bootstrap: let warn be like tests/init.sh's warn_
2036         Reported by Jim Meyering.
2037         * build-aux/bootstrap (warn): Remove, replaced by...
2038         (warnf_, warn_): these.
2039         Adjust callers.
2040         Shorten messages that no longer fit in 80 columns.
2041
2042 2012-07-09  Bruno Haible  <bruno@clisp.org>
2043
2044         getopt: Simplify after Emacs changed.
2045         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
2046         (gl_GETOPT_IFELSE): Remove macro.
2047
2048 2012-07-09  Jim Meyering  <meyering@redhat.com>
2049
2050         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
2051         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
2052
2053         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
2054         Bugs in both of those conspired to make the
2055         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
2056         _sc_search_regexp's handling of non-empty $in_files would filter
2057         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
2058         choice of in_files value meant there would be no match in most
2059         projects, due to the presence of two or more Makefile.in files.
2060         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
2061         Fix a bug in how a non-empty $$in_files was processed:
2062         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
2063         in spite of the name, it's a regexp, not a list of file names.
2064
2065 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2066
2067         getloadavg, getopt: fix commentary re configure.in
2068         Autoconf is deprecating the name 'configure.in', so change it to
2069         to the new name 'configure.ac' in a couple of places.
2070         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
2071         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
2072         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
2073         Emacs has renamed it to configure.ac, and it no longer refers
2074         to these macros anyway.
2075
2076         timespec: mark functions with const attributes
2077         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
2078         Mark with _GL_ATTRIBUTE_CONST.
2079
2080 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2081
2082         canonicalize[-lgpl]: handle "guessing" values when cross-building
2083         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
2084         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
2085         matches "*yes" instead of just "yes".  Regression introduced in commit
2086         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
2087
2088 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2089             Bruno Haible  <bruno@clisp.org>
2090
2091         canonicalize: make the right guess when cross-compiling to GNU
2092         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
2093         determine whether cross-compiling to glibc systems, so as to
2094         include GNU/Hurd.
2095
2096 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2097
2098         timespec-sub: avoid duplicate include
2099         * lib/timespec-sub.c: Do not include <config.h> twice.
2100         Reported by Juanma Barranquero.
2101
2102 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
2103
2104         bootstrap: use a more consistent error reporting scheme
2105         * build-aux/bootstrap (warn, die): New.
2106         Use them.
2107
2108 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2109
2110         sys_time: allow too-wide tv_sec
2111         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
2112         timeval even if tv_sec is wider than time_t.  This allows
2113         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
2114         as without this patch gnulib replaces struct timeval
2115         and OpenBSD futimes therefore has a type mismatch.
2116         * doc/posix-headers/sys_time.texi: Mention this.
2117
2118         pthread: check for both pthread_create and pthread_join
2119         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
2120         alter the check so that it tests for both pthread_create and
2121         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
2122         Suggested by Bruno Haible and Richard Yao in
2123         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
2124
2125         parse-datetime: doc tuneup
2126         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
2127         spacing issues.
2128
2129 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
2130
2131         do-release-commit-and-tag: fix the previous commit
2132         * build-aux/do-release-commit-and-tag: Actually the test was right,
2133         but the comment and the error message were misleading.
2134         Fix comment, and improve error message.
2135         Perform check first, so that NEWS is not modified uselessly.
2136
2137         do-release-commit-and-tag: fix typo
2138         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
2139         _not_ start with a stub.
2140
2141 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2142
2143         pthread: check for pthread_create, not pthread_join
2144         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
2145         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
2146         pthread_join in libc.  I hope this removes the need for all the
2147         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
2148         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
2149
2150 2012-07-04  Jim Meyering  <meyering@redhat.com>
2151
2152         parse-datetime: fix failure to diagnose invalid input
2153         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
2154         rather than diagnosing the invalid input.  Now it reports this:
2155         date: invalid date '\260'
2156         * lib/parse-datetime.y (to_uchar): Define.
2157         (yylex): Don't sign-extend "other" bytes.
2158         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
2159         Thanks to Bruno Haible for the patch to this file.
2160         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
2161         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
2162
2163 2012-07-03  Jim Meyering  <meyering@redhat.com>
2164
2165         bootstrap: do not require now-removed build-aux/missing
2166         Now that build-aux/missing is, er, missing, bootstrap would
2167         silently fail.
2168         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
2169         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
2170         no longer part of gnulib.
2171         Diagnose the failure.
2172
2173 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2174
2175         alloca: add support for HP NonStop TNS/E native
2176         * lib/alloca.in.h (alloca): Support the new host.
2177         From a suggestion by Joachim Schmitz in
2178         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
2179
2180 2012-07-02  Pádraig Brady  <P@draigBrady.com>
2181
2182         fsusage: remove code not needed on non GNU/Linux systems.
2183
2184         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2185         Don't include headers no longer needed in this case.
2186         * lib/fsusage.c [STAT_STATVFS &&
2187         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
2188         STAT_STATFS2_FRSIZE to exclude code not used in this case.
2189
2190 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2191
2192         fsusage: include files needed for glibc 2.6 fallback
2193         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2194         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
2195         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
2196         Problem reported by Ludovic Courtès in
2197         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
2198
2199         fsusage: avoid needless check on GNU/Linux
2200         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
2201         on GNU/Linux systems, since it can't possibly work.
2202
2203 2012-07-01  Bruno Haible  <bruno@clisp.org>
2204
2205         log: Fix an autoconf >= 2.64 warning.
2206         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
2207         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2208
2209 2012-06-28  Bruno Haible  <bruno@clisp.org>
2210
2211         log10f: Fix possible configuration problem.
2212         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
2213         $LOGF_LIBM.
2214         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2215
2216 2012-06-28  Bruno Haible  <bruno@clisp.org>
2217
2218         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
2219         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
2220         not gl_cv_func_unlink_works.
2221         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2222
2223 2012-06-27  Eric Blake  <eblake@redhat.com>
2224
2225         config: drop scripts that automake says are not independent
2226         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
2227         * build-aux/elisp-comp: Delete.
2228         * build-aux/missing: Likewise.
2229         * build-aux/ylwrap: Likewise.
2230         * modules/elisp-comp: Likewise.
2231         * MODULES.html.sh: Drop mention of elisp-comp.
2232         * NEWS: Mention this.
2233
2234 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
2235
2236         root-uid: new module
2237         This is for portability to Tandem's NonStop Kernel.
2238         * lib/root-uid.h, modules/root-uid: New files.
2239         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
2240         * lib/write-any-file.c, tests/test-sethostname2.c:
2241         Include "root-uid.h".
2242         * lib/euidaccess.c (euidaccess):
2243         * lib/pt_chown.c (main):
2244         * lib/unlinkdir.c (cannot_unlink_dir):
2245         * lib/write-any-file.c (can_write_any_file):
2246         * m4/mknod.m4 (gl_FUNC_MKNOD):
2247         * tests/test-sethostname2.c (geteuid, main):
2248         Don't assume ROOT_UID == 0.
2249         * modules/euidaccess (Depends-on):
2250         * modules/pt_chown (Depends-on):
2251         * modules/sethostname-tests (Depends-on):
2252         * modules/unlinkdir (Depends-on):
2253         * modules/write-any-file (Depends-on):
2254         Add root-uid.
2255
2256         regex: use locale-independent comparison for codeset name
2257         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
2258         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
2259         for codeset name.
2260         * lib/regex_internal.h: Do not include <strings.h>, since we
2261         no longer use strcasecmp.
2262         * modules/regex (Depends-on): Remove strcase.
2263
2264 2012-06-23  Bruno Haible  <bruno@clisp.org>
2265
2266         getopt-posix: No longer guarantee that option processing is resettable.
2267         * doc/posix-functions/getopt.texi: Drop description of problem with
2268         internal state. Fix info about mingw and msvc9.
2269         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
2270         option processing by getopt(). Run three test programs instead of one.
2271         Simplify cross-compilation guess.
2272         * NEWS: Mention the change.
2273         Reported by Rich Felker <dalias@aerifal.cx>.
2274
2275 2012-06-26  Bruno Haible  <bruno@clisp.org>
2276
2277         argp, regex: Ensure strcasecmp gets declared.
2278         * lib/argp-help.c: Include <strings.h>.
2279         * lib/regex_internal.h: Likewise.
2280         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
2281
2282 2012-06-24  Bruno Haible  <bruno@clisp.org>
2283
2284         ptsname_r: Make it consistent with ptsname on AIX.
2285         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
2286         implementation as for OSF/1.
2287         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
2288         a pty master.
2289
2290         ptsname_r: Make it consistent with ptsname on OSF/1.
2291         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2292         OSF/1.
2293
2294 2012-06-24  Bruno Haible  <bruno@clisp.org>
2295
2296         ttyname_r: Fix result on OSF/1, Solaris.
2297         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
2298
2299 2012-06-24  Bruno Haible  <bruno@clisp.org>
2300
2301         ptsname_r: Add support for Solaris.
2302         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2303         Solaris.
2304
2305         ptsname_r: Fix test failure on native Windows.
2306         * modules/ptsname_r (Depends-on): Add isatty.
2307
2308         ptsname_r: Fix test failures on IRIX, Solaris.
2309         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
2310         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
2311         accordingly.
2312         * lib/ptsname_r.c: Include <fcntl.h>.
2313         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
2314         set errno if fd is invalid.
2315         * tests/test-isatty.c (main): Update comments.
2316
2317 2012-06-24  Bruno Haible  <bruno@clisp.org>
2318
2319         ptsname test: Extend test.
2320         * tests/test-ptsname.c: Include <errno.h>.
2321         (main): Test behaviour with invalid file descriptor.
2322
2323 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2324
2325         time: fix obsolete comment
2326         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
2327         reference to HAVE_STRUCT_TIMESPEC in comment.
2328
2329 2012-06-23  Bruno Haible  <bruno@clisp.org>
2330
2331         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
2332         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
2333         does not handle abbreviated long options with equivalent
2334         disambiguations, set gl_replace_getopt to yes.
2335         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
2336
2337 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
2338
2339         time_r: fix typo that always overrode localtime_r decl
2340         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
2341         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
2342         not in a standard include.
2343
2344 2012-06-22  Bruno Haible  <bruno@clisp.org>
2345
2346         Write "Mac OS X" instead of "MacOS X".
2347         * README: Write "Mac OS X" instead of "MacOS X".
2348         * build-aux/bootstrap: Likewise.
2349         * build-aux/install-reloc: Likewise.
2350         * lib/acl-internal.h: Likewise.
2351         * lib/acl_entries.c: Likewise.
2352         * lib/argp-ba.c: Likewise.
2353         * lib/argp-pv.c: Likewise.
2354         * lib/config.charset: Likewise.
2355         * lib/copy-acl.c: Likewise.
2356         * lib/csharpexec.c: Likewise.
2357         * lib/euidaccess.c: Likewise.
2358         * lib/fbufmode.c: Likewise.
2359         * lib/fflush.c: Likewise.
2360         * lib/file-has-acl.c: Likewise.
2361         * lib/filemode.h: Likewise.
2362         * lib/fpurge.c: Likewise.
2363         * lib/freadable.c: Likewise.
2364         * lib/freadahead.c: Likewise.
2365         * lib/freading.c: Likewise.
2366         * lib/freadptr.c: Likewise.
2367         * lib/freadseek.c: Likewise.
2368         * lib/fseeko.c: Likewise.
2369         * lib/fseterr.c: Likewise.
2370         * lib/fsusage.c: Likewise.
2371         * lib/fwritable.c: Likewise.
2372         * lib/fwriting.c: Likewise.
2373         * lib/get-rusage-as.c: Likewise.
2374         * lib/get-rusage-data.c: Likewise.
2375         * lib/getdomainname.c: Likewise.
2376         * lib/idpriv-drop.c: Likewise.
2377         * lib/idpriv-droptemp.c: Likewise.
2378         * lib/localcharset.c: Likewise.
2379         * lib/locale.in.h: Likewise.
2380         * lib/localename.c: Likewise.
2381         * lib/mbsrtowcs-state.c: Likewise.
2382         * lib/nproc.c: Likewise.
2383         * lib/passfd.c: Likewise.
2384         * lib/posix_openpt.c: Likewise.
2385         * lib/printf-parse.c: Likewise.
2386         * lib/progreloc.c: Likewise.
2387         * lib/safe-read.h: Likewise.
2388         * lib/safe-write.h: Likewise.
2389         * lib/sched.in.h: Likewise.
2390         * lib/set-mode-acl.c: Likewise.
2391         * lib/signal.in.h: Likewise.
2392         * lib/stdint.in.h: Likewise.
2393         * lib/stdio-impl.h: Likewise.
2394         * lib/stdlib.in.h: Likewise.
2395         * lib/strtod.c: Likewise.
2396         * lib/sys_select.in.h: Likewise.
2397         * lib/tcgetsid.c: Likewise.
2398         * lib/unistd.in.h: Likewise.
2399         * lib/unlockpt.c: Likewise.
2400         * lib/vasnprintf.c: Likewise.
2401         * lib/vma-iter.c: Likewise.
2402         * lib/wcsrtombs-state.c: Likewise.
2403         * m4/acl.m4: Likewise.
2404         * m4/acosl.m4: Likewise.
2405         * m4/asinl.m4: Likewise.
2406         * m4/atanl.m4: Likewise.
2407         * m4/c-stack.m4: Likewise.
2408         * m4/cosl.m4: Likewise.
2409         * m4/expl.m4: Likewise.
2410         * m4/extensions.m4: Likewise.
2411         * m4/fdatasync.m4: Likewise.
2412         * m4/fmal.m4: Likewise.
2413         * m4/frexp.m4: Likewise.
2414         * m4/frexpf.m4: Likewise.
2415         * m4/frexpl.m4: Likewise.
2416         * m4/fsusage.m4: Likewise.
2417         * m4/getdomainname.m4: Likewise.
2418         * m4/getloadavg.m4: Likewise.
2419         * m4/getopt.m4: Likewise.
2420         * m4/gettext.m4: Likewise.
2421         * m4/gnulib-common.m4: Likewise.
2422         * m4/intdiv0.m4: Likewise.
2423         * m4/intlmacosx.m4: Likewise.
2424         * m4/largefile.m4: Likewise.
2425         * m4/ldexpl.m4: Likewise.
2426         * m4/link-follow.m4: Likewise.
2427         * m4/locale-ar.m4: Likewise.
2428         * m4/locale-fr.m4: Likewise.
2429         * m4/locale-ja.m4: Likewise.
2430         * m4/locale-tr.m4: Likewise.
2431         * m4/locale-zh.m4: Likewise.
2432         * m4/locale_h.m4: Likewise.
2433         * m4/lock.m4: Likewise.
2434         * m4/logl.m4: Likewise.
2435         * m4/mathfunc.m4: Likewise.
2436         * m4/minus-zero.m4: Likewise.
2437         * m4/mktime.m4: Likewise.
2438         * m4/mmap-anon.m4: Likewise.
2439         * m4/multiarch.m4: Likewise.
2440         * m4/nanosleep.m4: Likewise.
2441         * m4/nocrash.m4: Likewise.
2442         * m4/poll.m4: Likewise.
2443         * m4/printf-frexpl.m4: Likewise.
2444         * m4/printf.m4: Likewise.
2445         * m4/signbit.m4: Likewise.
2446         * m4/sinl.m4: Likewise.
2447         * m4/sqrtl.m4: Likewise.
2448         * m4/strerror_r.m4: Likewise.
2449         * m4/tanl.m4: Likewise.
2450         * m4/threadlib.m4: Likewise.
2451         * m4/ttyname_r.m4: Likewise.
2452         * m4/unlink.m4: Likewise.
2453         * m4/visibility.m4: Likewise.
2454         * m4/wcwidth.m4: Likewise.
2455         * tests/minus-zero.h: Likewise.
2456         * tests/test-alloca-opt.c: Likewise.
2457         * tests/test-copy-acl.sh: Likewise.
2458         * tests/test-copy-file.sh: Likewise.
2459         * tests/test-fdatasync.c: Likewise.
2460         * tests/test-file-has-acl.sh: Likewise.
2461         * tests/test-flock.c: Likewise.
2462         * tests/test-fsync.c: Likewise.
2463         * tests/test-localename.c: Likewise.
2464         * tests/test-malloca.c: Likewise.
2465         * tests/test-nonblocking-pipe.h: Likewise.
2466         * tests/test-nonblocking-socket.h: Likewise.
2467         * tests/test-openpty.c: Likewise.
2468         * tests/test-posix_openpt.c: Likewise.
2469         * tests/test-ptsname.c: Likewise.
2470         * tests/test-ptsname_r.c: Likewise.
2471         * tests/test-sameacls.c: Likewise.
2472         * tests/test-select.h: Likewise.
2473         * tests/test-set-mode-acl.sh: Likewise.
2474         * tests/test-snprintf-posix.h: Likewise.
2475         * tests/test-sprintf-posix.h: Likewise.
2476         * tests/test-strtod.c: Likewise.
2477         * tests/test-time.c: Likewise.
2478         * tests/test-vasnprintf-posix.c: Likewise.
2479         * tests/test-vasprintf-posix.c: Likewise.
2480         * doc/acl-resources.txt: Likewise.
2481         * doc/**/*.texi: Likewise.
2482         Reported by Max Horn <max@quendi.de>.
2483
2484 2012-06-22  Bruno Haible  <bruno@clisp.org>
2485
2486         grantpt: Relax requirement regarding invalid file descriptors.
2487         * lib/grantpt.c: Don't include <fcntl.h>.
2488         (grantpt): Don't verify the validity of the file descriptor.
2489         * modules/grantpt (Depends-on): Remove fcntl-h.
2490         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
2491         file descriptors.
2492         * doc/posix-functions/grantpt.texi: Document more platforms on which
2493         grantpt succeeds for invalid file descriptors.
2494         Reported by Rich Felker <dalias@aerifal.cx>.
2495
2496 2012-06-22  Bruno Haible  <bruno@clisp.org>
2497
2498         fbufmode test: Don't test unportable behaviour.
2499         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
2500         (main): Invoke it three times.
2501         Reported by Szabolcs Nagy <nsz@port70.net>
2502         and Rich Felker <dalias@aerifal.cx>.
2503
2504 2012-06-21  Bruno Haible  <bruno@clisp.org>
2505
2506         gnulib-tool: Refactor inctests variable.
2507         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
2508         (func_modules_transitive_closure,
2509         func_modules_transitive_closure_separately,
2510         func_import, func_create_testdir): Update.
2511
2512         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
2513         * gnulib-tool: Accept option --without-tests.
2514         (func_usage): Document --without-tests option. Rearrange.
2515         (inctests): Normalize according to the mode.
2516         * NEWS: Mention the change.
2517         Suggested by Simon Josefsson.
2518
2519 2012-06-21  Bruce Korb  <bkorb@gnu.org>
2520
2521         parse-duration test: Avoid spurious output.
2522         * tests/test-parse-duration.sh: Reindent with leading tabs.
2523
2524 2012-06-21  Jim Meyering  <meyering@redhat.com>
2525
2526         maint: disable the strncpy prohibition
2527         * cfg.mk: Do not prohibit strncpy here.
2528
2529 2012-06-21  Bruno Haible  <bruno@clisp.org>
2530
2531         nonblocking: Avoid compilation error on mingw64.
2532         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
2533         fscanf.
2534         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
2535         * modules/vfscanf (configure.ac): Likewise.
2536         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
2537         definition only if stdio.h has prepared it.
2538         Reported by Daniel P. Berrange <berrange@redhat.com>.
2539
2540 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
2541
2542         gnulib-tool: Use readlink if it is available.
2543         * gnulib-tool (func_readlink): Choose function more appropriately.
2544
2545 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2546
2547         posixtm-tests: port to buggy compiler
2548         Problem reported by Simon Josefsson in
2549         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
2550         * modules/posixtm-tests (Depends-on): Add stdint.
2551         * tests/test-posixtm.c (struct posixtm_test.t_expected):
2552         Now of type int_least64_t, not int64_t, both because that's
2553         what INT64_C returns and because int_least64_t works even
2554         on 72-bit hosts.
2555         (T): Use INT64_C on constants outside the traditional int range,
2556         to work around compiler bug noted by Simon.
2557
2558         mktime: fix integer overflow in 'configure'-time test
2559         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
2560         after integer overflow.  Problem reported by Rich Felker in
2561         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
2562         Also, don't look for further instances of a bug if we've already
2563         found one instance; this helps 'configure' run faster.
2564
2565 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
2566
2567         tmpfile, clean-temp: Fix invocation of GetVersionEx.
2568         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
2569         GetVersionEx correctly.
2570         * lib/clean-temp.c (supports_delete_on_close): Likewise.
2571
2572 2012-06-20  Bruno Haible  <bruno@clisp.org>
2573
2574         fdopen: Allow implementations that don't reject invalid fd arguments.
2575         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
2576         succeeds.
2577         Reported by Rich Felker <dalias@aerifal.cx>.
2578
2579 2012-06-20  Simon Josefsson  <simon@josefsson.org>
2580
2581         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
2582         bring in LIBINTL.
2583
2584 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2585
2586         init.sh: do not rely on autoupated PWD
2587         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
2588         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
2589         Although Nelson's bug was not necessarily fixed by this patch,
2590         it seems wise to make the change for safety.
2591         * tests/init.sh (path_prepend_): Do not rely on PWD updating
2592         automagically after 'cd'; this is not reliable on older shells.
2593         (setup_): Fail if we cannot cd to temporary directory.
2594
2595 2012-06-19  Bruno Haible  <bruno@clisp.org>
2596
2597         stat, fstat: Avoid warnings on mingw64.
2598         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
2599         redefining.
2600         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
2601         Reported by Daniel P. Berrange <berrange@redhat.com>.
2602
2603 2012-06-19  Bruno Haible  <bruno@clisp.org>
2604
2605         stdioext: Add support for musl libc.
2606
2607         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
2608         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
2609
2610         * m4/fseterr.m4: New file.
2611         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
2612         function exists.
2613         * modules/fseterr (Files): Add m4/fseterr.m4.
2614         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
2615         __fseterr does not exist.
2616         (Makefile.am): Remove fseterr.c from lib_SOURCES.
2617
2618         * lib/freadable.h: Update comment.
2619
2620         * lib/fwritable.h: Update comment.
2621
2622         * lib/freading.h: Update comment.
2623
2624         * lib/fwriting.h: Update comment.
2625
2626         * m4/freadahead.m4: New file.
2627         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
2628         that function exists.
2629         * modules/freadahead (Files): Add m4/freadahead.m4.
2630         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
2631         __freadahead does not exist.
2632         (Makefile.am): Remove freadahead.c from lib_SOURCES.
2633
2634         * m4/freadptr.m4: New file.
2635         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
2636         function exists.
2637         * modules/freadptr (Files): Add m4/freadptr.m4.
2638         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
2639         __freadptr does not exist.
2640         (Makefile.am): Remove freadptr.c from lib_SOURCES.
2641
2642         * m4/freadseek.m4: New file.
2643         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
2644         exists.
2645         * modules/freadseek (Files): Add m4/freadseek.m4.
2646         (configure.ac): Invoke gl_FUNC_FREADSEEK.
2647
2648         * lib/fpurge.c (fpurge): Update comment.
2649
2650         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
2651
2652 2012-06-19  Bruno Haible  <bruno@clisp.org>
2653
2654         *printf-posix: Put more info into config.log.
2655         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
2656         exit code into config.log.
2657
2658 2012-06-19  Bruno Haible  <bruno@clisp.org>
2659
2660         getopt-gnu: Fix exit code overflow in autoconf test.
2661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
2662         to keep them below < 128.
2663
2664 2012-06-17  Jim Meyering  <meyering@redhat.com>
2665
2666         maint.mk: fix typo in code to derive GPG key at release time
2667         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
2668
2669 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2670
2671         regex: avoid warning when pointers are not long
2672         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
2673         and uintptr_t, not long, for portability to hosts where pointers and
2674         long have different sizes.  Issue noted by Daniel P. Berrange in
2675         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
2676         and fix suggested by Bruno Haible in
2677         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
2678
2679 2012-06-17  Bruno Haible  <bruno@clisp.org>
2680
2681         dummy: Relicense into the public domain.
2682         * modules/dummy (License): Set to "public domain".
2683         Suggested by Reuben Thomas.
2684
2685 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2686
2687         announce-gen: VPATH issues
2688         * build-aux/announce-gen (--srcdir): New option, used to trim the
2689         $srcdir part of the path from $builddir to NEWS.
2690         * top/maint.mk (announcement): Adjust.
2691
2692 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2693
2694         gnu-web-doc-update: VPATH builds
2695         * build-aux/gnu-web-doc-update (--builddir): New option.
2696         Revamp the handling of options.
2697         Prefer $(...) to `...`.
2698         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
2699         the template, and it is GNU mktemp specific.
2700         Prefer set -e to long series of &&.
2701         Restore the initial git branch, not "master".
2702         Properly initialize submodules (don't rely only on bootstrap).
2703         Do not reconfigure blindly, use config.status.
2704         * top/README-release: Update instructions for gnu-web-doc-update.
2705
2706 2012-06-11  Jim Meyering  <meyering@redhat.com>
2707
2708         maint.mk: revert most of the previous change re "all these"
2709         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
2710         For rationale, see the discussion at
2711         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
2712
2713 2012-06-10  Karl Berry  <karl@gnu.org>
2714
2715         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
2716
2717         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
2718
2719 2012-06-10  Bruce Korb  <bkorb@gnu.org>
2720
2721         parse-duration: Relicense under LGPLv2+.
2722         * modules/parse-duration (License): Change to LGPLv2+.
2723
2724 2012-06-10  Jim Meyering  <meyering@redhat.com>
2725
2726         maint.mk: prohibit common grammar error: "all these"
2727         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
2728         the list of prohibited word sequences.  It should be "all of these".
2729         * lib/tempname.c (__gen_tempname): Fix one of them.
2730
2731 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2732
2733         do-release-commit-and-tag: support VPATH builds
2734         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
2735         (noteworthy): Defined earlier to factor its value.
2736         (noteworthy_stub): New.
2737         Use it to factor.
2738         (help_version): Split into...
2739         (help, version): these.
2740         Adjust the option processing part.
2741         Support "--option=value" in addition to "--option value".
2742         (builddir): New.
2743         (--builddir): New option.
2744         * top/README-release: Document this.
2745         Reword slightly so that the reader cannot understand that he
2746         has to do these steps before calling do-release-commit-and-tag.
2747
2748 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2749
2750         readme-release: also require announce-gen and maintainer-makefile
2751         * modules/readme-release (Depends-on): here.
2752         * modules/announce-gen, modules/do-release-commit-and-tag,
2753         modules/gnu-web-doc-update, modules/maintainer-makefile
2754         (Description): Point to readme-release.
2755
2756 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2757
2758         maint.mk: fix VPATH issues.
2759         * top/maint.mk (news-check): GNU Make understand $< very well.
2760         (release-prep): NEWS is in $(srcdir).
2761
2762 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
2763
2764         readme-release: require the promoted modules.
2765         * modules/readme-release (Depends-on): Add
2766         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
2767         in this text.
2768
2769 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2770             Bruno Haible  <bruno@clisp.org>
2771
2772         error, strerror-override: Support mingw64 from Fedora 17.
2773         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
2774         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
2775         EINPROGRESS.
2776         * lib/strerror-override.h (strerror_override): Test it.
2777         * lib/strerror-override.c (strerror_override): Likewise.
2778         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
2779
2780 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2781             Bruno Haible  <bruno@clisp.org>
2782
2783         error, strerror-override: Support mingw64 from Fedora 17.
2784         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
2785         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
2786         * lib/strerror-override.h (strerror_override): Test it.
2787         * lib/strerror-override.c (strerror_override): Likewise.
2788
2789 2012-06-03  Bruno Haible  <bruno@clisp.org>
2790
2791         error, strerror-override: Support new errno values from POSIX:2008.
2792         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
2793         ENOTRECOVERABLE.
2794         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
2795         platforms.
2796         * lib/strerror-override.c (strerror_override): Conditionalize the
2797         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
2798         * lib/strerror-override.h (strerror_override): Declare also if
2799         GNULIB_defined_EOWNERDEAD is defined.
2800         * tests/test-errno.c (e130, e131): New variables.
2801         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
2802         ENOTRECOVERABLE.
2803         Reported by Paolo Bonzini.
2804
2805 2012-05-31  Jim Meyering  <meyering@redhat.com>
2806
2807         savewd: add missing dependency on sys_wait module
2808         * modules/savewd (Depends-on): Add sys_wait, needed at least
2809         for MSVC.  Report and suggested change by Michael Goffioul.
2810
2811 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2812
2813         system-quote-tests: port to CentOS 5
2814         Problem reported by Tom G. Christensen in
2815         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
2816         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
2817
2818 2012-05-29  Jim Meyering  <meyering@redhat.com>
2819
2820         maint: fix typos in comments and ChangeLog
2821         Culprits identified and fixed mostly automatically using these commands:
2822         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
2823         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
2824         using http://github.com/lyda/misspell-check
2825         * ChangeLog: Fix typos.
2826         * doc/solaris-versions: Likewise.
2827         * lib/regexec.c (re_search_stub): Likewise.
2828         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
2829
2830 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
2831
2832         manywarnings: remove duplicate -Wmultichar entry
2833         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
2834         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
2835         so keep the entry marked as documented.
2836
2837 2012-05-27  Karl Berry  <karl@gnu.org>
2838
2839         * config/srclist.txt (mktime.c): remove last libc sync,
2840         perhaps just temporarily.
2841
2842 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
2843
2844         regex: don't assume uint64_t or uint32_t
2845         * lib/regcomp.c (init_word_char): Don't assume that the types
2846         uint64_t and uint32_t exist.  The C standard doesn't guarantee
2847         them, and on some 32-bit compilers there is no uint64_t.
2848         Problem reported by Gianluigi Tiesi in
2849         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
2850
2851 2012-05-25  Jim Meyering  <meyering@redhat.com>
2852
2853         maint.mk: add strncpy-prohibiting syntax-check rule
2854         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
2855
2856 2012-05-24  Jim Meyering  <meyering@redhat.com>
2857
2858         maint.mk: compute $(gpg_key_ID) more portably
2859         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
2860         That use of sed is not portable to some fringe systems.
2861         Reported by Paul Eggert in
2862         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
2863
2864 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2865
2866         mktime: sync from glibc
2867         * config/srclist.txt: Uncomment mktime.c.
2868         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
2869         First, indent with tabs, since glibc uses tabs and doesn't want to
2870         change and we'd rather be identical to glibc.  Also, two small
2871         coding changes:
2872         (isdst_differ): Use &&, not &, as && is the usual style.
2873         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
2874         for clarity.
2875
2876 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2877
2878         announce-gen: du -h is more portable than du --human
2879         * build-aux/announce-gen (sizes): Invoke du with -h instead
2880         of --human.  Accept leading white space in its output.
2881
2882 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2883
2884         announce-gen: Improve diagnostics.
2885         * build-aux/announce-gen: When parsing command line options,
2886         prefer "announce-gen: option --release-type requires an argument"
2887         to "Option release-type requires an argument".
2888
2889 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2890
2891         maint.mk: gpg_key_ID: use sed more portably
2892         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
2893         the closing brace.
2894         (refresh-po): Fuse two sed invocations into one.
2895
2896 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
2897
2898         gitlog-to-changelog: support the log message format used in Bison.
2899         * build-aux/gitlog-to-changelog: Support --strip-tab and
2900         --strip-cherry-picked.
2901
2902 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2903
2904         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
2905         the rest of the current time slice to another thread in the current
2906         process. So if the thread that feeds the file decscriptor we're
2907         polling is not in the current process, we get busy-waiting.
2908         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
2909         Patch from Theodore Leblond.
2910         * lib/select.c: Split polling out of the loop that sets the output
2911         fd_sets.  Check for zero result and loop if the wait timeout is
2912         infinite.
2913
2914 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2915
2916         select: Fix build error on IRIX 6.5.
2917         * lib/select.c: Include stddef.h for NULL.
2918
2919 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2920
2921         gc: fix libgcrypt detection on older machines.
2922         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
2923         copyright years because the file has been distributed every year
2924         since it was created.
2925
2926 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
2927
2928         crypto: fix bug in large buffer handling
2929         Problem reported by Serge Belyshev for glibc in
2930         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
2931         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
2932         * lib/md4.c (md4_process_block):
2933         * lib/md5.c (md5_process_block):
2934         * lib/sha1.c (sha1_process_block):
2935         * lib/sha256.c (sha256_process_block):
2936         Don't assume the buffer length is less than 2**32.
2937         * lib/sha512.c (sha512_process_block): Likewise.
2938         Here, the bug is present only in the rare case where the host does
2939         not support uint64_t or where size_t is wider than 64 bits.
2940         Use u64size to work around the problems.
2941         * lib/u64.h (u64size): New macro.
2942
2943 2012-05-15  Pádraig Brady  <P@draigBrady.com>
2944
2945         fsusage: fix block size returned on older Linux 2.6
2946
2947         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
2948         which is available since Linux 2.6.
2949         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
2950         when the member is available so it can be used as a fallback.
2951         * doc/posix-functions/statvfs.texi: Mention the hang issue
2952         on Linux < 2.6.36.
2953
2954 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
2955
2956         bootstrap: suppress stderr chatter
2957         * build-aux/bootstrap (insert_sorted_if_absent, main program):
2958         Omit unnecessary chatter to stderr.  The main program chatter
2959         was there only inadvertantly.
2960
2961         bootstrap: .gitignore files created by autopoint, libtool
2962         I ran into this problem when bootstrapping the latest diffutils.
2963         After './bootstrap', 'git status' reported lots of untracked files
2964         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
2965         autopoint and do not need to be version-controlled.
2966         * build-aux/bootstrap: Put into .gitignore the files that
2967         autopoint and libtool create, by keeping track of files that exist
2968         after but not before these programs are run.
2969         (version_controlled_file): Move up.  2nd arg is now full file
2970         name, not base name; this is more convenient.  Put CVS at the end,
2971         as it's now somewhat deprecated.
2972
2973 2012-05-14  Jim Meyering  <meyering@redhat.com>
2974
2975         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
2976         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
2977         definition.  Reported by Bruno Haible.
2978
2979 2012-05-13  Bruno Haible  <bruno@clisp.org>
2980             Paul Eggert  <eggert@cs.ucla.edu>
2981
2982         binary-io: Define set_binary_mode function.
2983         * lib/binary-io.h (set_binary_mode): New function.
2984         (SET_BINARY): Define in terms of set_binary_mode.
2985         * modules/binary-io (configure.ac): Require AC_C_INLINE.
2986         * tests/test-binary-io.c (main): Accept an argument, and test either
2987         set_binary_mode or SET_BINARY depending on the argument.
2988         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
2989         argument. Clean up also t-bin-out0.tmp.
2990
2991 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
2992
2993         bootstrap: take advantage of POSIX shell features
2994
2995         The 'bootstrap' script offered by Gnulib script already uses POSIX
2996         shell features (like $((...)) arithmetic expansions) that are not
2997         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
2998         means that bootstrap must already be run using a proper POSIX shell,
2999         which will thus provide more features, like ${var#pattern} parameter
3000         expansion or inversion of a command exit status with '!'.  We can
3001         thus use these features to improve the clarity and the performances
3002         of the bootstrap script.
3003
3004         Suggested by Eric Blake.
3005
3006         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
3007         of sed/expr plus command substitutions, to save some forks.  While
3008         we are at it, prefer the POSIX $(...) form of command substitution,
3009         rather than the legacy form `...` (since the former is visually
3010         clearer and interacts better with quoting), and prefer the idiom:
3011           "if ! CMD; then ACTION ..."
3012         over the idiom:
3013           "if CMD; then :; else ACTION ..."
3014         which was required by legacy Bourne shells not supporting '!'.
3015
3016 2012-05-12  Bruno Haible  <bruno@clisp.org>
3017
3018         system-quote: Add more comments.
3019         * lib/system-quote.h: Add more comments about wilcards and limitations.
3020         Suggested by Eli Zaretskii <eliz@gnu.org>.
3021
3022         sh-quote, system-quote: Add comments about wildcards.
3023         * lib/sh-quote.h: Clarify what happens with wildcard characters.
3024         * lib/system-quote.h: Likewise.
3025         Reported by Eli Zaretskii <eliz@gnu.org>.
3026
3027 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3028
3029         fsusage: check for GNU/Linux statvfs problem dynamically
3030         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
3031         Define STAT_STATFS2_BSIZE too, since in this case the code now
3032         checks dynamically whether statvfs is reliable, falling back on
3033         Linux-style statfs otherwise.
3034         (statvfs_works): New function, for dynamically testing statvfs.
3035         (get_fs_usage) [STAT_STATVFS]: Use it.
3036         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
3037         statvfs on GNU/Linux hosts, since it's now done dynamically.
3038
3039 2012-05-10  Bruno Haible  <bruno@clisp.org>
3040
3041         system-quote, execute, spawn-pipe: Escape '?' on Windows.
3042         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
3043         '?' character.
3044         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
3045         * tests/test-system-quote-main.c (check_all): Check also strings like
3046         "??????????".
3047         Reported by Eli Zaretskii <eliz@gnu.org>.
3048
3049 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3050
3051         _Noreturn: port config.h to gcc -Wundef
3052         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
3053         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
3054         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
3055
3056 2012-05-10  Bruno Haible  <bruno@clisp.org>
3057
3058         system-quote: Refactor.
3059         * lib/system-quote.h (system_quote_copy): Fix comment.
3060         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
3061         New functions, extracted from system_quote_copy.
3062         (system_quote_length, system_quote_copy): Use these functions.
3063         Reported by Paul Eggert.
3064
3065 2012-05-08  Bruno Haible  <bruno@clisp.org>
3066
3067         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
3068         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
3069
3070 2012-05-08  Bruno Haible  <bruno@clisp.org>
3071
3072         Tests for module 'system-quote'.
3073         * modules/system-quote-tests: New file.
3074         * tests/test-system-quote.sh: New file.
3075         * tests/test-system-quote-main.c: New file.
3076         * tests/test-system-quote-child.c: New file.
3077
3078         New module 'system-quote'.
3079         * lib/system-quote.h: New file.
3080         * lib/system-quote.c: New file.
3081         * modules/system-quote: New file.
3082
3083 2012-05-08  Bruno Haible  <bruno@clisp.org>
3084
3085         sh-quote: Make C++ safe and allow multiple inclusion.
3086         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
3087         declarations in extern "C".
3088
3089 2012-05-08  Bruno Haible  <bruno@clisp.org>
3090
3091         sh-quote tests: Make tests stricter.
3092         * tests/test-sh-quote.c (check_one): Check the return value of
3093         shell_quote_copy.
3094         (main): Check a string with a CR character. Check a string that
3095         contains UCHAR_MAX.
3096
3097 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
3098
3099         warnings.m4: provide a means to specify the program to compile.
3100         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
3101         (gl_WARN_ADD): here.
3102         Use gl_AS_VAR_APPEND.
3103         Support an argument to specify the program to compile.
3104         (gl_WARN_ADD): Accept an argument to specify the program to compile.
3105         AC_SUBST the WARN_CFLAGS when they are used.
3106         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
3107         leave this to gl_WARN_ADD.
3108
3109 2012-05-08  Eric Blake  <eblake@redhat.com>
3110
3111         doc: recommendations on gettext version
3112         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
3113         choice between versions.
3114         * DEPENDENCIES (gettext): Cover both approaches.
3115
3116 2012-05-08  Jim Meyering  <meyering@redhat.com>
3117
3118         init.sh: explain why EXEEXT support uses aliases rather than functions
3119         * tests/init.sh: Add a comment.
3120
3121         init.sh: don't let bash aliases interfere with tests
3122         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
3123         is bash.  This avoids problems for those who alias standard commands to
3124         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
3125         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
3126
3127 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3128
3129         stdint: be more consistent with glibc, SunOS libc
3130         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
3131         (gl_int_fast16_t, gl_uint_fast16_t)
3132         (gl_int_fast32_t, gl_uint_fast32_t)
3133         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
3134         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
3135         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
3136         Be consistent with glibc by default, and with SunOS 5.10 and later
3137         if __sun is defined.  This lessens the likelihood of clashes if
3138         code compiled for older hosts is combined with code compiled for
3139         newer ones.  Problem reported by Niels Möller in
3140         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
3141
3142 2012-05-07  Eric Blake  <eblake@redhat.com>
3143
3144         isatty: relax license to LGPLv2+
3145         * modules/isatty (License): Relax license.
3146
3147 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3148
3149         stat-size: comment fix
3150         * lib/stat-size.h: Remove obsolete comment about indenting.
3151
3152 2012-05-06  Bruno Haible  <bruno@clisp.org>
3153
3154         Tests for module 'sh-quote'.
3155         * modules/sh-quote-tests: New file.
3156         * tests/test-sh-quote.c: New file.
3157
3158 2012-05-06  Bruno Haible  <bruno@clisp.org>
3159
3160         sh-quote: Improve shell_quote_argv's signature.
3161         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
3162         * lib/sh-quote.c (shell_quote_argv): Likewise.
3163
3164 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3165
3166         stdint: document issues with int_fast8_t etc.
3167         * doc/posix-headers/stdint.texi (stdint.h): Say that other
3168         stdint.h substitutes may define these types differently.  See
3169         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
3170
3171 2012-05-05  Bruno Haible  <bruno@clisp.org>
3172
3173         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
3174         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
3175         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
3176         or 'guessing no (mishandles large arguments)'.
3177
3178 2012-05-05  Bruno Haible  <bruno@clisp.org>
3179
3180         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
3181         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
3182         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3183         set gl_cv_func_link_follows_symlink to "guessing no".
3184
3185 2012-05-05  Bruno Haible  <bruno@clisp.org>
3186
3187         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
3188         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
3189         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
3190         "guessing no".
3191         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
3192
3193 2012-05-05  Bruno Haible  <bruno@clisp.org>
3194
3195         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
3196         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
3197         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3198         set gl_cv_struct_dirent_d_ino to "guessing yes".
3199
3200 2012-05-05  Bruno Haible  <bruno@clisp.org>
3201
3202         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
3203         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
3204         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
3205         "guessing yes".
3206
3207 2012-05-05  Bruno Haible  <bruno@clisp.org>
3208
3209         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
3210         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
3211         compiling to a glibc system, set gl_cv_func_signbit and
3212         gl_cv_func_signbit_gcc to "guessing yes".
3213
3214 2012-05-05  Bruno Haible  <bruno@clisp.org>
3215
3216         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
3217         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
3218         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
3219         to "guessing yes".
3220         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
3221         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
3222
3223 2012-05-05  Bruno Haible  <bruno@clisp.org>
3224
3225         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
3226         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
3227         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
3228         gl_cv_func_realpath_works to "guessing yes".
3229
3230 2012-05-05  Bruno Haible  <bruno@clisp.org>
3231
3232         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
3233         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
3234         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
3235
3236 2012-05-04  Bruno Haible  <bruno@clisp.org>
3237
3238         Tweak last commit.
3239         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
3240         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3241
3242 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
3243
3244         unistd_h: make it easier to avoid sys_types_h
3245         This is useful for Emacs, which has its own method of porting to
3246         Windows, and which therefore does not need the sys_types_h module.
3247         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
3248         code moved here from gl_SYS_TYPES_H.
3249         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
3250         using the code directly.
3251         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
3252         gl_SYS_TYPES_H.
3253         * modules/sys_types (Files):
3254         * modules/unistd (Files): Add m4/off_t.m4.
3255
3256 2012-05-03  Bruno Haible  <bruno@clisp.org>
3257
3258         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
3259         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
3260         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
3261         "guessing yes" or "guessing no".
3262         (gl_FUNC_LSTAT): Update.
3263         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
3264         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3265         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
3266
3267 2012-05-03  Bruno Haible  <bruno@clisp.org>
3268
3269         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
3270         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
3271         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
3272         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
3273         cross-compiling, choose the first alternative on glibc systems.
3274         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
3275
3276 2012-05-03  Bruno Haible  <bruno@clisp.org>
3277
3278         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
3279         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
3280         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
3281
3282 2012-05-03  Bruno Haible  <bruno@clisp.org>
3283
3284         chown: Avoid "guessing no" when cross-compiling to glibc systems.
3285         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
3286
3287 2012-05-03  Bruno Haible  <bruno@clisp.org>
3288
3289         Avoid "guessing no" guesses when cross-compiling to glibc systems.
3290         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
3291         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
3292         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
3293         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
3294         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
3295         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
3296         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
3297         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
3298         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
3299         compiling to glibc systems, set gl_cv_func_chown_slash_works,
3300         gl_cv_func_chown_ctime_works to "guessing yes".
3301         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
3302         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
3303         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
3304         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
3305         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
3306         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
3307         compiling to glibc systems, set gl_cv_func_open_directory_works to
3308         "guessing yes".
3309         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
3310         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
3311         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
3312         "guessing yes".
3313         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
3314         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
3315         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
3316         compiling to glibc systems, set gl_cv_func_floorf_ieee to
3317         "guessing yes".
3318         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
3319         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
3320         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
3321         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
3322         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
3323         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
3324         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
3325         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
3326         "guessing yes".
3327         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
3328         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
3329         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
3330         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
3331         "guessing yes".
3332         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
3333         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
3334         "guessing yes".
3335         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
3336         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
3337         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
3338         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
3339         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
3340         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
3341         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
3342         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
3343         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
3344         compiling to glibc systems, set gl_cv_func_log10f_ieee to
3345         "guessing yes".
3346         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
3347         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
3348         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
3349         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
3350         "guessing yes".
3351         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
3352         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
3353         "guessing yes".
3354         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
3355         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
3356         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
3357         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
3358         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
3359         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
3360         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
3361         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
3362         compiling to glibc systems, set gl_cv_func_mkfifo_works to
3363         "guessing yes".
3364         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
3365         compiling to glibc systems, set gl_cv_func_mknod_works to
3366         "guessing yes".
3367         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
3368         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
3369         "guessing yes".
3370         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
3371         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
3372         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
3373         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
3374         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
3375         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
3376         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
3377         compiling to glibc systems, set gl_cv_func_svid_putenv to
3378         "guessing yes".
3379         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
3380         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
3381         "guessing yes".
3382         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
3383         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
3384         "guessing yes".
3385         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
3386         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
3387         to "guessing yes".
3388         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
3389         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
3390         to "guessing yes".
3391         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
3392         compiling to glibc systems, set gl_cv_func_rmdir_works to
3393         "guessing yes".
3394         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
3395         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
3396         gl_cv_func_unlink_parent_fails to "guessing yes".
3397         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
3398         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
3399         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
3400         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
3401         gl_cv_func_rename_dest_works to "guessing yes".
3402         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
3403         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
3404         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
3405         compiling to glibc systems, set gl_cv_func_roundf_ieee to
3406         "guessing yes".
3407         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
3408         compiling to glibc systems, set gl_cv_func_roundl_ieee to
3409         "guessing yes".
3410         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
3411         compiling to glibc systems, set gl_cv_func_setenv_works to
3412         "guessing yes".
3413         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
3414         compiling to glibc systems, set gl_cv_func_unsetenv_works to
3415         "guessing yes".
3416         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
3417         compiling to glibc systems, set gl_cv_func_sleep_works to
3418         "guessing yes".
3419         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
3420         compiling to glibc systems, set gl_cv_func_stat_file_slash to
3421         "guessing yes".
3422         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
3423         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
3424         "guessing yes".
3425         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
3426         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
3427         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
3428         compiling to glibc systems, set gl_cv_func_truncf_ieee to
3429         "guessing yes".
3430         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
3431         compiling to glibc systems, set gl_cv_func_truncl_ieee to
3432         "guessing yes".
3433         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
3434         compiling to glibc systems, set gl_cv_func_usleep_works to
3435         "guessing yes".
3436         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
3437         compiling to glibc systems, set gl_cv_func_futimesat_works to
3438         "guessing yes".
3439
3440 2012-05-03  Bruno Haible  <bruno@clisp.org>
3441
3442         Say "guessing yes" or "guessing no" when cross-compiling.
3443         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
3444         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
3445         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
3446         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
3447         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
3448         am_cv_func_working_getline to "guessing yes" or "guessing no".
3449         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
3450         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
3451         (gl_FUNC_MEMMEM): When cross-compiling, set
3452         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
3453         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
3454         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
3455         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
3456         set gl_cv_func_strcasestr_works_always to "guessing yes" or
3457         "guessing no".
3458         (gl_FUNC_STRCASESTR): When cross-compiling, set
3459         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
3460         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
3461         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
3462         (gl_FUNC_STRSTR): When cross-compiling, set
3463         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
3464         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
3465         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
3466         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
3467         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
3468
3469 2012-05-01  Bruno Haible  <bruno@clisp.org>
3470
3471         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
3472         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
3473         * build-aux/reloc-ldflags: Likewise.
3474         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
3475
3476 2012-05-01  Bruno Haible  <bruno@clisp.org>
3477
3478         gnulib-tool: Remove transitional code.
3479         * gnulib-tool: Don't warn about --import with 0 arguments any more.
3480         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3481
3482 2012-05-01  Bruno Haible  <bruno@clisp.org>
3483
3484         getcwd: Fix misindentation.
3485         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
3486
3487 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3488
3489         exclude: process exclude and include directives in order
3490         This restores the pre-2009 behavior, and is part of a fix of a
3491         grep bug reported by Quentin Arce in
3492         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
3493         * lib/exclude.c (struct exclude): Remove 'tail' member.
3494         (new_exclude_segment): Prepend the new segment instead of appending.
3495         Return void, since that's now more convenient.
3496         (file_pattern_matches): Renamed from excluded_file_pattern_p.
3497         (file_name_matches): Renamed from excluded_file_name_p.
3498         (file_pattern_matches, file_name_matches):
3499         Return true if the pattern matches, not if it excludes.
3500         All callers changed.
3501         (excluded_file_name): Process the list in reverse order;
3502         since the list is now reversed this restores the pre-2009 behavior.
3503         (add_exclude): Adjust to new reversed-order list.  Use local var
3504         rather than macro, for clarity.
3505         * tests/test-exclude7.sh: Adjust to corrected behavior.
3506
3507         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
3508         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
3509         it's not possible here.  Handle the case of \ at end of pattern
3510         without dumping core.
3511         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
3512
3513         _Noreturn: future-proof non-GNU and non-MSVC compilers
3514         * build-aux/snippet/_Noreturn.h (_Noreturn):
3515         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3516         Do not define _Noreturn if __STDC_VERSION__ indicates this is
3517         C11 or later.  This is more likely to work with random future C
3518         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
3519         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
3520
3521         exclude: handle wildcards with FNM_EXTMATCH
3522         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
3523         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
3524         comment that "has wildcards" really means "has or may have
3525         wildcards".  Simplify by avoiding the need to call strcspn.
3526
3527 2012-04-29  Bruno Haible  <bruno@clisp.org>
3528
3529         gnulib-tool: Fix list of authors.
3530         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
3531
3532 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
3533
3534         bootstrap: support Automake-NG in $buildreq
3535         * bootstrap (check_versions): Handle automake and aclocal from
3536         Automake-NG specially.  They can be specified as respectively
3537         the "automake-ng" and "aclocal-ng" requirements.
3538
3539 2012-04-25  Eric Blake  <eblake@redhat.com>
3540
3541         bootstrap: only force latest Makefile.in.in for gettext module
3542         * build-aux/bootstrap (with_gettext): Only install latest
3543         Makefile.in.in for projects requesting bleeding edge gettext.
3544
3545 2012-04-22  Bruno Haible  <bruno@clisp.org>
3546
3547         doc: Mention reason for replacement on glibc/Linux systems.
3548         * doc/posix-functions/dprintf.texi: Mention the problem with special
3549         'long double' values.
3550         * doc/posix-functions/fprintf.texi: Likewise.
3551         * doc/posix-functions/printf.texi: Likewise.
3552         * doc/posix-functions/snprintf.texi: Likewise.
3553         * doc/posix-functions/sprintf.texi: Likewise.
3554         * doc/posix-functions/vdprintf.texi: Likewise.
3555         * doc/posix-functions/vfprintf.texi: Likewise.
3556         * doc/posix-functions/vprintf.texi: Likewise.
3557         * doc/posix-functions/vsnprintf.texi: Likewise.
3558         * doc/posix-functions/vsprintf.texi: Likewise.
3559         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
3560         platforms with F_DUPFD_CLOEXEC problems.
3561         * doc/posix-functions/glob.texi: Mention which platforms are affected
3562         by the problem with symbolic links.
3563         * doc/posix-functions/linkat.texi: Mention the problem with
3564         AT_SYMLINK_FOLLOW on Linux.
3565
3566 2012-04-22  Bruno Haible  <bruno@clisp.org>
3567
3568         pwrite: Don't replace on all platforms.
3569         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
3570
3571 2012-04-22  Bruno Haible  <bruno@clisp.org>
3572
3573         rint* tests: Avoid gcc warnings.
3574         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
3575         * tests/test-rintf.c (INFINITY, NAN): Likewise.
3576         * tests/test-rintl.c (INFINITY, NAN): Likewise.
3577
3578 2012-04-21  Bruno Haible  <bruno@clisp.org>
3579
3580         users.txt: Update.
3581         * users.txt: Add freedink, wdiff. Update URLs for projects that have
3582         switched from CVS to git, bzr, or svn.
3583
3584 2012-04-21  Bruno Haible  <bruno@clisp.org>
3585
3586         Large File Support for native Windows platforms.
3587
3588         * m4/largefile.m4 (gl_LARGEFILE): New macro.
3589         * modules/largefile (configure.ac): Require gl_LARGEFILE.
3590
3591         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
3592         type.
3593         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
3594         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
3595         * doc/posix-headers/sys_types.texi: Mention the effect of the
3596         'largefile' module.
3597
3598         * lib/fcntl.in.h: Add comments about off_t.
3599         * modules/fcntl-h (Depends-on): Add sys_types.
3600
3601         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
3602         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
3603         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
3604         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
3605         * modules/unistd (Depends-on): Add sys_types.
3606         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
3607
3608         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
3609         instead of lseek.
3610         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
3611         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
3612         * modules/lseek (Depends-on): Add sys_types.
3613
3614         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
3615         msvc-nothrow.h.
3616         (SetFileSize): New function.
3617         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
3618         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
3619         if Large File Support is requested.
3620         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
3621         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
3622
3623         * lib/stdio.in.h: Add comments about off_t.
3624         * modules/stdio (Depends-on): Add sys_types.
3625
3626         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
3627         instead of ftello.
3628         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
3629         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
3630         (gl_PREREQ_FTELLO): New macro.
3631         * modules/ftello (Depends-on): Add sys_types.
3632         (configure.ac): Incoke gl_PREREQ_FTELLO.
3633
3634         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
3635         instead of fseeko.
3636         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
3637         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
3638         (gl_PREREQ_FSEEKO): New macro.
3639         * modules/fseeko (Depends-on): Add sys_types.
3640         (configure.ac): Invoke gl_PREREQ_FSEEKO.
3641
3642         * lib/sys_stat.in.h: Add comments about off_t.
3643         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
3644         64-bit integer for st_size in 'struct stat'.
3645         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
3646         Define _GL_WINDOWS_64_BIT_ST_SIZE.
3647         * modules/sys_stat (Depends-on): Add sys_types.
3648         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
3649
3650         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
3651         instead of stat or _stat.
3652
3653         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
3654         'struct _stati64' instead of fstat and 'struct stat'.
3655         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
3656         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
3657
3658         Reported by Ray Satiro <raysatiro@yahoo.com>.
3659
3660 2012-04-19  Eric Blake  <eblake@redhat.com>
3661
3662         bootstrap: accommodate older libtool
3663         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
3664         Reported by Daniel P. Berrange.
3665
3666 2012-04-19  Jim Meyering  <meyering@redhat.com>
3667
3668         announce-gen: avoid failure due to lack of Digest::SHA1
3669         Even with the preferred Digest::SHA available, this script
3670         would fail when the backup module, Digest::SHA1, was not installed.
3671         * build-aux/announce-gen: Quote the conditional use of "use".
3672         Reported by Reuben Thomas in:
3673         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
3674
3675         bootstrap: don't let a user's CDPATH setting affect this script
3676         When CDPATH is set, cd will sometimes generate output.
3677         When "cd" is run in a subshell whose output matters, that
3678         surprising-to-some output can cause malfunction.
3679         Unsetting CDPATH turns off this shell "feature."
3680         * build-aux/bootstrap (CDPATH): Unset.
3681         Reported by Reuben Thomas in:
3682         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
3683         and inspired by his patch here:
3684         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
3685
3686 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
3687         and Jim Meyering  <meyering@redhat.com>
3688
3689         maint.mk: catch "see @xref{}" and similar
3690         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
3691         prohibit "See also @xref{", "Also see @pxref{", and similar.
3692
3693 2012-04-16  Jim Meyering  <meyering@redhat.com>
3694
3695         bootstrap: really use gnulib's po/Makefile.in.in
3696         * build-aux/bootstrap: Correct the source file name in previous change.
3697         Reported by Akim Demaille.
3698
3699         configmake: correct minor inconsistency in Makefile rule
3700         * modules/configmake (Makefile.am): All other rules like this one
3701         run the final "mv -f ..." in the same backslash-continued command
3702         as the one that does everything else.  This one put the mv -f ...
3703         command on a separate, non-backslash-continued line.
3704         Make it like the others.
3705
3706         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
3707         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
3708         the one from gettext.  Reported by Akim Demaille.
3709
3710 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
3711
3712         Fix recursion of install-* into po directories.
3713         Bison's install-pdf bug reported by Hans Aberg at
3714         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
3715         * build-aux/po/Makefile.in.in (install-dvi, install-html)
3716         (install-info, install-pdf, install-ps): New targets.
3717
3718 2012-04-16  Jim Meyering  <meyering@redhat.com>
3719
3720         maint: avoid spurious "make sc_maint" failure
3721         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
3722         exempt all *.class file names, for lib/javaversion.class.
3723
3724 2012-04-15  Bruno Haible  <bruno@clisp.org>
3725
3726         lseek: Make configure test independent of environment.
3727         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
3728         Windows, we know that lseek() on pipes is broken; skip the runtime
3729         test.
3730
3731 2012-04-14  Bruno Haible  <bruno@clisp.org>
3732
3733         stat: Bypass buggy override in mingw64.
3734         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
3735         * lib/stat.c (stat) [mingw64]: Define to _stat.
3736         * doc/posix-functions/stat.texi: Mention mingw64 bug.
3737
3738 2012-04-14  Bruno Haible  <bruno@clisp.org>
3739
3740         pathmax: Fix compilation error on MSVC 9.
3741         * modules/pathmax (Depends-on): Add unistd.
3742
3743 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
3744
3745         README: document pointer comparison assumption
3746         * README (Portability guidelines): Document assumption about
3747         pointer comparisons, in response to a recent bug-gnulib comment by
3748         Jeffrey Kegler.
3749
3750 2012-04-12  Bruno Haible  <bruno@clisp.org>
3751
3752         Tests for module 'getrusage'.
3753         * modules/getrusage-tests: New file.
3754         * tests/test-getrusage.c: New file.
3755
3756         New module 'getrusage'.
3757         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
3758         warn-on-use.h.
3759         (getrusage): New declaration.
3760         * lib/getrusage.c: New file.
3761         * m4/getrusage.m4: New file.
3762         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
3763         is declared.
3764         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
3765         HAVE_GETRUSAGE.
3766         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
3767         snippet/c++defs, snippet/warn-on-use.
3768         (Makefile.am): Update generation of sys/resource.h. Substitute
3769         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
3770         * modules/getrusage: New file.
3771         * doc/posix-functions/getrusage.texi: Mention the new module.
3772
3773 2012-04-12  Bruno Haible  <bruno@clisp.org>
3774
3775         Tests for module 'sys_resource'.
3776         * modules/sys_resource-tests: New file.
3777         * tests/test-sys_resource.c: New file.
3778
3779         New module 'sys_resource'.
3780         * lib/sys_resource.in.h: New file.
3781         * m4/sys_resource_h.m4: New file.
3782         * modules/sys_resource: New file.
3783         * doc/posix-headers/sys_resource.texi: Mention the new module.
3784
3785 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
3786
3787         ioctl: Fix compilation error on mingw.
3788         * lib/ioctl.c: Include <windows.h>.
3789         Also reported by Ray Satiro <raysatiro@yahoo.com>.
3790
3791 2012-04-04  Jim Meyering  <meyering@redhat.com>
3792
3793         regex: correct #pragma guard expression
3794         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
3795         not 4.3.  Correct its cpp guard expression.
3796
3797 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
3798
3799         regex: remove unnecessary type punning
3800         Problem reported by Vladimir Serbinenko in
3801         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
3802         * lib/regex.h (struct re_pattern_buffer): Change the type of
3803         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
3804         Fix comment to match code.
3805         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
3806         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
3807         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
3808         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
3809         (set_regs):
3810         Omit no-longer-necessary casts.
3811
3812 2012-04-03  Bruno Haible  <bruno@clisp.org>
3813
3814         Tests for module 'ilogbl'.
3815         * modules/ilogbl-tests: New file.
3816         * tests/test-ilogbl.c: New file.
3817
3818         New module 'ilogbl'.
3819         * lib/math.in.h (ilogbl): New declaration.
3820         * lib/ilogbl.c: New file.
3821         * m4/ilogbl.m4: New file.
3822         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
3823         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
3824         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
3825         Split sed invocation, to avoid the limit of 100 substitutions of
3826         HP-UX 'sed'.
3827         * modules/ilogbl: New file.
3828         * tests/test-math-c++.cc: Check the declaration of ilogbl.
3829         * doc/posix-functions/ilogbl.texi: Mention the new module.
3830
3831 2012-04-03  Bruno Haible  <bruno@clisp.org>
3832
3833         Tests for module 'ilogbf'.
3834         * modules/ilogbf-tests: New file.
3835         * tests/test-ilogbf.c: New file.
3836
3837         New module 'ilogbf'.
3838         * lib/math.in.h (ilogbf): New declaration.
3839         * lib/ilogbf.c: New file.
3840         * m4/ilogbf.m4: New file.
3841         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
3842         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
3843         REPLACE_ILOGBF.
3844         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
3845         REPLACE_ILOGBF.
3846         * modules/ilogbf: New file.
3847         * tests/test-math-c++.cc: Check the declaration of ilogbf.
3848         * doc/posix-functions/ilogbf.texi: Mention the new module.
3849
3850 2012-04-03  Bruno Haible  <bruno@clisp.org>
3851
3852         Tests for module 'ilogb'.
3853         * modules/ilogb-tests: New file.
3854         * tests/test-ilogb.c: New file.
3855         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
3856         tests/test-logb-ieee.h.
3857
3858         New module 'ilogb'.
3859         * lib/math.in.h (ilogb): New declaration.
3860         * lib/ilogb.c: New file.
3861         * m4/ilogb.m4: New file.
3862         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
3863         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
3864         REPLACE_ILOGB.
3865         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
3866         REPLACE_ILOGB.
3867         * modules/ilogb: New file.
3868         * tests/test-math-c++.cc: Check the declaration of ilogb.
3869         * doc/posix-functions/ilogb.texi: Mention the new module.
3870
3871 2012-04-03  Bruno Haible  <bruno@clisp.org>
3872
3873         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
3874         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
3875         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
3876         (main): Check their values.
3877         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
3878         problem.
3879
3880 2012-04-03  Bruno Haible  <bruno@clisp.org>
3881
3882         Tests for module 'logbl-ieee'.
3883         * modules/logbl-ieee-tests: New file.
3884         * tests/test-logbl-ieee.c: New file.
3885
3886         New module 'logbl-ieee'.
3887         * modules/logbl-ieee: New file.
3888
3889         Tests for module 'logb-ieee'.
3890         * modules/logb-ieee-tests: New file.
3891         * tests/test-logb-ieee.c: New file.
3892
3893         New module 'logb-ieee'.
3894         * modules/logb-ieee: New file.
3895
3896         Tests for module 'logbf-ieee'.
3897         * modules/logbf-ieee-tests: New file.
3898         * tests/test-logbf-ieee.c: New file.
3899         * tests/test-logb-ieee.h: New file.
3900
3901         New module 'logbf-ieee'.
3902         * modules/logbf-ieee: New file.
3903
3904 2012-04-03  Bruno Haible  <bruno@clisp.org>
3905
3906         Tests for module 'logbl'.
3907         * modules/logbl-tests: New file.
3908         * tests/test-logbl.c: New file.
3909
3910         New module 'logbl'.
3911         * lib/math.in.h (logbl): New declaration.
3912         * lib/logbl.c: New file.
3913         * m4/logbl.m4: New file.
3914         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
3915         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
3916         REPLACE_LOGBL.
3917         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
3918         REPLACE_LOGBL.
3919         * modules/logbl: New file.
3920         * tests/test-math-c++.cc: Check the declaration of logbl.
3921         * doc/posix-functions/logbl.texi: Mention the new module.
3922
3923 2012-04-02  Bruno Haible  <bruno@clisp.org>
3924
3925         Tests for module 'logbf'.
3926         * modules/logbf-tests: New file.
3927         * tests/test-logbf.c: New file.
3928
3929         New module 'logbf'.
3930         * lib/math.in.h (logbf): New declaration.
3931         * lib/logbf.c: New file.
3932         * m4/logbf.m4: New file.
3933         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
3934         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
3935         REPLACE_LOGBF.
3936         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
3937         REPLACE_LOGBF.
3938         * modules/logbf: New file.
3939         * tests/test-math-c++.cc: Check the declaration of logbf.
3940         * doc/posix-functions/logbf.texi: Mention the new module.
3941
3942 2012-04-02  Bruno Haible  <bruno@clisp.org>
3943
3944         logb tests: More tests.
3945         * tests/test-logb.h: New file, based on tests/test-logb.c and
3946         tests/test-frexp.h.
3947         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
3948         (main): Just invoke test_function.
3949         * modules/logb-tests (Files): Add tests/test-logb.h,
3950         tests/minus-zero.h, tests/randomd.c.
3951         (Makefile.am): Add randomd.c to test_logb_SOURCES.
3952
3953         logb: Provide replacement and workarounds.
3954         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
3955         is 1.
3956         * lib/logb.c: New file.
3957         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
3958         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
3959         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
3960         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
3961         * modules/logb (Files): Add lib/logb.c.
3962         (Depends-on): Add isfinite, frexp, isnand.
3963         (configure.ac): Compile the replacement code logb.c if needed.
3964         * tests/test-math-c++.cc: Check the declaration of logb.
3965         * doc/posix-functions/logb.texi: Mention the replacement and the bug
3966         with subnormal numbers.
3967
3968 2012-04-02  Bruno Haible  <bruno@clisp.org>
3969
3970         log10* tests: Speed up.
3971         * tests/test-log10.h (test_function): Reduce amount of random numbers
3972         to test.
3973
3974 2012-04-01  Bruno Haible  <bruno@clisp.org>
3975
3976         logf-ieee: Fix test whether logf works.
3977         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
3978
3979 2012-04-01  Bruno Haible  <bruno@clisp.org>
3980
3981         log10l: Work around log10l-ieee test failure on IRIX 6.5.
3982         * lib/log10l.c: Include <float.h>
3983         (log10l): On IRIX, normalize the +Infinity value.
3984         * modules/log10l (Depends-on): Add 'float'.
3985         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
3986         +Infinity.
3987
3988         log10f-ieee: Work around test failure on NetBSD 5.1.
3989         * m4/log10f-ieee.m4: New file.
3990         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
3991         test whether log10f works with a negative argument. Replace it if not.
3992         * lib/log10f.c (log10f): For negative arguments, return NaN.
3993         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
3994         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
3995         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
3996
3997         log10f-ieee: Work around test failure on Solaris 9.
3998         * modules/log10f-ieee (Depends-on): Add log10-ieee.
3999         (configure.ac): Require gl_FUNC_LOG10F.
4000
4001         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4002         * m4/log10-ieee.m4: New file.
4003         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
4004         whether log10 works with a negative argument. Replace it if not.
4005         * lib/log10.c (log10): For negative arguments, return NaN.
4006         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
4007         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
4008         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
4009
4010         Tests for module 'log10l-ieee'.
4011         * modules/log10l-ieee-tests: New file.
4012         * tests/test-log10l-ieee.c: New file.
4013
4014         New module 'log10l-ieee'.
4015         * modules/log10l-ieee: New file.
4016
4017         Tests for module 'log10-ieee'.
4018         * modules/log10-ieee-tests: New file.
4019         * tests/test-log10-ieee.c: New file.
4020
4021         New module 'log10-ieee'.
4022         * modules/log10-ieee: New file.
4023
4024         Tests for module 'log10f-ieee'.
4025         * modules/log10f-ieee-tests: New file.
4026         * tests/test-log10f-ieee.c: New file.
4027         * tests/test-log10-ieee.h: New file.
4028
4029         New module 'log10f-ieee'.
4030         * modules/log10f-ieee: New file.
4031
4032 2012-04-01  Bruno Haible  <bruno@clisp.org>
4033
4034         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
4035         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
4036         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
4037         workaround.
4038         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
4039         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
4040         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
4041         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
4042         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
4043         (Depends-on): Update conditions.
4044         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
4045         IRIX 6.5, OSF/1 5.1 problems.
4046
4047 2012-04-01  Bruno Haible  <bruno@clisp.org>
4048
4049         log10f: Work around OSF/1 5.1 bug.
4050         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
4051         * lib/log10f.c (log10f): If logf exists, use it and provide just the
4052         workaround.
4053         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
4054         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
4055         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
4056         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
4057         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
4058         (Depends-on): Update conditions.
4059         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
4060
4061 2012-04-01  Bruno Haible  <bruno@clisp.org>
4062
4063         log10: Work around OSF/1 5.1 bug.
4064         * lib/math.in.h (log10): New declaration.
4065         * lib/log10.c: New file.
4066         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
4067         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
4068         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
4069         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
4070         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
4071         * modules/log10 (Files): Add lib/log10.c.
4072         (Depends-on): Add math.
4073         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
4074         * tests/test-math-c++.cc: Check the declaration of log10.
4075         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
4076
4077 2012-03-31  Bruno Haible  <bruno@clisp.org>
4078
4079         log10l tests: More tests.
4080         * modules/log10l-tests (Files): Add tests/test-log10l.h,
4081         tests/minus-zero.h, tests/randoml.c.
4082         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
4083         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
4084         (main): Invoke test_function.
4085
4086         log10f tests: More tests.
4087         * modules/log10f-tests (Files): Add tests/test-log10.h,
4088         tests/minus-zero.h, tests/randomf.c.
4089         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
4090         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
4091         (main): Invoke test_function.
4092
4093         log10 tests: More tests.
4094         * tests/test-log10.h: New file.
4095         * modules/log10-tests (Files): Add tests/test-log10.h,
4096         tests/minus-zero.h, tests/randomd.c.
4097         (Makefile.am): Add randomd.c to test_log10_SOURCES.
4098         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
4099         (main): Invoke test_function.
4100
4101 2012-03-31  Simon Josefsson  <simon@josefsson.org>
4102
4103         fflush: Fix syntax error.
4104         * lib/fflush.c: Include unused-parameter.h, needed for
4105         _GL_UNUSED_PARAMETER.
4106         * modules/fflush (Depends-on): Add snippet/unused-parameter.
4107
4108 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4109
4110         regex: pacify GCC when compiling GRUB
4111         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
4112         a diagnostic.  Reported by Vladimir Serbinenko in
4113         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
4114
4115 2012-03-29  Eric Blake  <eblake@redhat.com>
4116
4117         stdio: don't assume gets any more
4118         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
4119         support.
4120         * modules/stdio (Makefile.am): Likewise.
4121         * lib/stdio-read.c (gets): Likewise.
4122         * tests/test-stdio-c++.cc: Likewise.
4123         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
4124         * lib/stdio.in.h (gets): Make warning occur in more places.
4125         * doc/posix-functions/gets.texi (gets): Update documentation.
4126         Reported by Christer Solskogen.
4127
4128         maint.mk: fix syntax checks without exclusions
4129         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
4130         Reported by Daniel P. Berrange.
4131
4132         strerror_r: avoid compiler warning
4133         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
4134         level.
4135
4136         fflush: avoid compiler warning
4137         * lib/fflush.c (update_fpos_cache): Mark variables that are
4138         potentially unused.
4139
4140 2012-03-25  Bruno Haible  <bruno@clisp.org>
4141
4142         Tests for module 'localeconv'.
4143         * modules/localeconv-tests: New file.
4144         * tests/test-localeconv.c: New file.
4145
4146         New module 'localeconv'.
4147         * lib/locale.in.h (localeconv): New declaration.
4148         * lib/localeconv.c: New file.
4149         * m4/localeconv.m4: New file.
4150         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
4151         REPLACE_LOCALECONV.
4152         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
4153         REPLACE_LOCALECONV.
4154         * modules/localeconv: New file.
4155         * modules/nl_langinfo (Depends-on): Add localeconv.
4156         * modules/human (Depends-on): Likewise.
4157         * doc/posix-functions/localeconv.texi: Mention the new module.
4158
4159 2012-03-25  Bruno Haible  <bruno@clisp.org>
4160
4161         locale: Provide a complete 'struct lconv'.
4162         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4163         'struct lconv' does not contain int_p_cs_precedes.
4164         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4165         * doc/posix-headers/locale.texi: Update.
4166
4167         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
4168         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
4169         * doc/posix-headers/locale.texi: Update.
4170
4171         locale: Provide a working 'struct lconv'.
4172         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
4173         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4174         'struct lconv' does not even contain decimal_point.
4175         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
4176         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
4177         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4178         * doc/posix-headers/locale.texi: Mention the problems with
4179         'struct lconv'.
4180         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4181
4182 2012-03-24  Bruno Haible  <bruno@clisp.org>
4183
4184         Enable common subexpression optimization in GCC.
4185         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
4186         macros.
4187         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
4188         GCC attribute 'const'.
4189         (uc_locale_language): Declare with GCC attribute 'pure'.
4190         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
4191         with GCC attribute 'const'.
4192         * lib/unictype.in.h (uc_is_general_category_withtable,
4193         uc_combining_class, uc_combining_class_name,
4194         uc_combining_class_long_name, uc_bidi_class_name,
4195         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
4196         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
4197         uc_decimal_value, uc_digit_value, uc_numeric_value,
4198         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
4199         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
4200         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
4201         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
4202         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
4203         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
4204         Declare with GCC attribute 'const'.
4205         (uc_general_category_name, uc_general_category_long_name,
4206         uc_general_category_byname, uc_general_category,
4207         uc_is_general_category, uc_combining_class_byname,
4208         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
4209         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
4210         Declare with GCC attribute 'pure'.
4211         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
4212         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
4213         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
4214         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
4215         with GCC attribute 'pure'.
4216         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
4217         'const'.
4218         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
4219         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
4220         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
4221         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
4222         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
4223         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
4224         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
4225         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
4226         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
4227         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
4228         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
4229         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
4230         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
4231         GCC attribute 'pure'.
4232         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
4233         'const'.
4234         * lib/uniwidth.in.h (uc_width): Simplify declaration.
4235         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
4236         u32_strwidth): Declare with GCC attribute 'pure'.
4237
4238         Enable common subexpression optimization in GCC.
4239         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4240         (alphasort): Declare with GCC attribute 'pure'.
4241         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4242         (atoll): Declare with GCC attribute 'pure'.
4243         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
4244         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
4245         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
4246         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4247         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
4248         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
4249         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
4250
4251 2012-03-24  Bruno Haible  <bruno@clisp.org>
4252
4253         gnulib-tool: Avoid unintended error output from 'cmp'.
4254         * gnulib-tool (func_add_file, func_update_file, func_import): Use
4255         "cmp -s", not "cmp > /dev/null".
4256
4257 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
4258
4259         gnulib-tool: fix imprecise comments w.r.t. an automake bug
4260
4261         It's not just Automake versions < 1.9b that creates an empty
4262         pkgdatadir at installation time if pkgdata_DATA is specified
4263         to empty; modern automake versions do this as well, at least
4264         until automake 1.11.4 (not yet released at the moment of writing,
4265         but soon to appear).  That behaviour was generally considered a
4266         feature rather than a bug, at least until this discussion:
4267         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
4268
4269         See also automake bugs #10997 and #11030.
4270
4271         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
4272         reference to relevant automake bug numbers.
4273         (func_emit_tests_Makefile_am): Likewise.
4274
4275 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4276
4277         announce-gen: use Digest::SHA when possible
4278         * build-aux/announce-gen: Use Digest::SHA when possible, falling
4279         back to Digest::SHA1 if necessary.
4280
4281 2012-03-20  Jim Meyering  <meyering@redhat.com>
4282
4283         tests: avoid gcc warnings about argv vs. const initializers
4284         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
4285         warnings about discarding 'const' qualifier from pointer target type.
4286         * tests/test-posix_spawn2.c (main): Likewise.
4287
4288 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4289
4290         README-release: simplify slightly
4291         * top/README-release: Run "git checkout master" only once.
4292
4293 2012-03-15  Mark Wielaard  <mark@klomp.org>
4294
4295         git-merge-changelog: add specific example on how to use with hg.
4296         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
4297
4298 2012-03-18  Mark Wielaard  <mark@klomp.org>
4299
4300         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
4301
4302 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
4303
4304         git-version-gen: don't let "prefix" envvar cause trouble
4305         * build-aux/git-version-gen (prefix): Initialize properly,
4306         so as not to use a value specified via the environment.
4307         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
4308
4309 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4310
4311         regex: diagnose too-large repeat counts in EREs
4312         Previously, the code did not diagnose the too-large repeat count
4313         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
4314         as if it were 'b\{1000000000}', which is unexpected.
4315         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
4316         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
4317         is a reasonable one for this problem.  Another option would be to
4318         create a new REG_OVERFLOW error for repeat counts that are too large.
4319         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
4320         count is too large, so that the caller can distinguish the two cases.
4321         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
4322         "Too large" return code, and that repeat counts are one example of this.
4323
4324 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4325
4326         doc: some glibc x32 integer width issues
4327         * doc/posix-headers/sys_types.texi (sys/types.h):
4328         * doc/posix-headers/time.texi (time.h):
4329         Mention that glibc x32 does not conform to POSIX in a couple of
4330         areas related to integer widths.
4331
4332 2012-03-15  Bruno Haible  <bruno@clisp.org>
4333
4334         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
4335         * lib/fma.c (VOLATILE): New macro.
4336         (FUNC): Use it to work around a GCC compiler bug.
4337
4338 2012-03-13  Bruno Haible  <bruno@clisp.org>
4339
4340         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4341         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
4342         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
4343         REPLACE_HYPOTL to 1.
4344         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
4345
4346 2012-03-13  Bruno Haible  <bruno@clisp.org>
4347
4348         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4349         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
4350         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
4351         REPLACE_REMAINDERL to 1.
4352         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
4353         bug.
4354
4355 2012-03-13  Bruno Haible  <bruno@clisp.org>
4356
4357         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4358         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
4359         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
4360         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
4361         too big rounding errors.
4362         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
4363         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
4364         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
4365         (Depends-on): Update conditions.
4366         * tests/test-sqrtl.c (my_ldexpl): New function.
4367         (main): Add test of a particular value.
4368         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4369
4370 2012-03-13  Pádraig Brady  <P@draigBrady.com>
4371
4372         doc: Update timer_* platform portability notes.
4373         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
4374         that always return ENOSYS.
4375         * doc/posix-functions/timer_delete.texi: Likewise.
4376         * doc/posix-functions/timer_gettime.texi: Likewise.
4377         * doc/posix-functions/timer_settime.texi: Likewise.
4378
4379 2012-03-13  Bruno Haible  <bruno@clisp.org>
4380
4381         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4382         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
4383         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
4384         REPLACE_CBRTL to 1.
4385         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4386
4387 2012-03-13  Bruno Haible  <bruno@clisp.org>
4388
4389         remainderl: Avoid compilation error on AIX >= 5.2.
4390         * lib/math.in.h (remainderl): Undefine macro from the system header.
4391
4392 2012-03-13  Bruno Haible  <bruno@clisp.org>
4393
4394         Avoid compilation errors with MSVC option -fp:strict.
4395         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
4396         * lib/cbrtf.c: Likewise.
4397         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4398
4399 2012-03-12  Bruno Haible  <bruno@clisp.org>
4400
4401         uninorm: Don't crash in out-of-memory conditions.
4402         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
4403         gracefully.
4404         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
4405         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
4406
4407 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
4408
4409         quote: fix syntax-check
4410         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
4411         also exports quote_quoting_options.
4412
4413 2012-03-12  Simon Josefsson  <simon@josefsson.org>
4414
4415         Collapse list of copyright years to ranges.  See
4416         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
4417         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
4418         build-aux/csharpexec.sh.in, build-aux/gnupload,
4419         build-aux/install-reloc, build-aux/javacomp.sh.in,
4420         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
4421         build-aux/move-if-change, build-aux/reloc-ldflags,
4422         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
4423
4424 2012-03-11  Bruno Haible  <bruno@clisp.org>
4425
4426         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4427         * m4/log2f-ieee.m4: New file.
4428         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
4429         whether log2f works with a minus zero argument. Replace it if not.
4430         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
4431         (Depends-on): Add log2-ieee.
4432         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
4433         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
4434
4435         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4436         * m4/log2-ieee.m4: New file.
4437         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
4438         whether log2 works with a minus zero argument. Replace it if not.
4439         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
4440         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
4441         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
4442
4443         Tests for module 'log2l-ieee'.
4444         * modules/log2l-ieee-tests: New file.
4445         * tests/test-log2l-ieee.c: New file.
4446
4447         New module 'log2l-ieee'.
4448         * modules/log2l-ieee: New file.
4449
4450         Tests for module 'log2-ieee'.
4451         * modules/log2-ieee-tests: New file.
4452         * tests/test-log2-ieee.c: New file.
4453
4454         New module 'log2-ieee'.
4455         * modules/log2-ieee: New file.
4456
4457         Tests for module 'log2f-ieee'.
4458         * modules/log2f-ieee-tests: New file.
4459         * tests/test-log2f-ieee.c: New file.
4460         * tests/test-log2-ieee.h: New file.
4461
4462         New module 'log2f-ieee'.
4463         * modules/log2f-ieee: New file.
4464
4465 2012-03-11  Bruno Haible  <bruno@clisp.org>
4466
4467         Tests for module 'log2l'.
4468         * modules/log2l-tests: New file.
4469         * tests/test-log2l.c: New file.
4470
4471         New module 'log2l'.
4472         * lib/math.in.h (log2l): New declaration.
4473         * lib/log2l.c: New file.
4474         * m4/log2l.m4: New file.
4475         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
4476         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
4477         REPLACE_LOG2L.
4478         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
4479         REPLACE_LOG2L.
4480         * modules/log2l: New file.
4481         * tests/test-math-c++.cc: Check the declaration of log2l.
4482         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
4483         and OSF/1 problems.
4484
4485 2012-03-11  Bruno Haible  <bruno@clisp.org>
4486
4487         Tests for module 'log2f'.
4488         * modules/log2f-tests: New file.
4489         * tests/test-log2f.c: New file.
4490
4491         New module 'log2f'.
4492         * lib/math.in.h (log2f): New declaration.
4493         * lib/log2f.c: New file.
4494         * m4/log2f.m4: New file.
4495         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
4496         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
4497         REPLACE_LOG2F.
4498         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
4499         REPLACE_LOG2F.
4500         * modules/log2f: New file.
4501         * tests/test-math-c++.cc: Check the declaration of log2f.
4502         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
4503         and OSF/1 and Cygwin problems.
4504
4505 2012-03-11  Bruno Haible  <bruno@clisp.org>
4506
4507         Tests for module 'log2'.
4508         * modules/log2-tests: New file.
4509         * tests/test-log2.c: New file.
4510         * tests/test-log2.h: New file.
4511
4512         New module 'log2'.
4513         * lib/math.in.h (log2): New declaration.
4514         * lib/log2.c: New file.
4515         * m4/log2.m4: New file.
4516         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
4517         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
4518         REPLACE_LOG2.
4519         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
4520         REPLACE_LOG2.
4521         * modules/log2: New file.
4522         * tests/test-math-c++.cc: Check the declaration of log2.
4523         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
4524         and OSF/1 and Cygwin problems.
4525
4526 2012-03-11  Bruno Haible  <bruno@clisp.org>
4527
4528         exp2* tests: More tests.
4529         * tests/test-exp2.h (test_function): Test all integral arguments that
4530         don't need to overflow or denormalized numbers.
4531         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
4532         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
4533         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
4534
4535 2012-03-10  Bruno Haible  <bruno@clisp.org>
4536
4537         log1pl-ieee: Work around test failure on AIX 7.1.
4538         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
4539
4540         log1pl-ieee: Work around test failure on IRIX 6.5.
4541         * m4/log1pl-ieee.m4: New file.
4542         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
4543         test whether log1pl works with a minus zero argument. Replace it if
4544         not.
4545         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
4546         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
4547         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
4548         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
4549         (Depends-on): Update conditions.
4550         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4551         m4/signbit.m4.
4552         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
4553         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
4554
4555         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
4556         * m4/log1pf-ieee.m4: New file.
4557         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
4558         test whether log1pf works with a minus zero argument. Replace it if
4559         not.
4560         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
4561         m4/signbit.m4.
4562         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
4563         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
4564
4565         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
4566         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
4567         (configure.ac): Require gl_FUNC_LOG1PF.
4568
4569         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
4570         * m4/log1p-ieee.m4: New file.
4571         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
4572         whether log1p works with a minus zero argument. Replace it if not.
4573         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
4574         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
4575         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
4576         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
4577         (Depends-on): Update conditions.
4578         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4579         m4/signbit.m4.
4580         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
4581         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
4582
4583         Tests for module 'log1pl-ieee'.
4584         * modules/log1pl-ieee-tests: New file.
4585         * tests/test-log1pl-ieee.c: New file.
4586
4587         New module 'log1pl-ieee'.
4588         * modules/log1pl-ieee: New file.
4589
4590         Tests for module 'log1p-ieee'.
4591         * modules/log1p-ieee-tests: New file.
4592         * tests/test-log1p-ieee.c: New file.
4593
4594         New module 'log1p-ieee'.
4595         * modules/log1p-ieee: New file.
4596
4597         Tests for module 'log1pf-ieee'.
4598         * modules/log1pf-ieee-tests: New file.
4599         * tests/test-log1pf-ieee.c: New file.
4600         * tests/test-log1p-ieee.h: New file.
4601
4602         New module 'log1pf-ieee'.
4603         * modules/log1pf-ieee: New file.
4604
4605 2012-03-10  Bruno Haible  <bruno@clisp.org>
4606
4607         Tests for module 'log1pl'.
4608         * modules/log1pl-tests: New file.
4609         * tests/test-log1pl.c: New file.
4610
4611         New module 'log1pl'.
4612         * lib/math.in.h (log1pl): New declaration.
4613         * lib/log1pl.c: New file.
4614         * m4/log1pl.m4: New file.
4615         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
4616         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
4617         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
4618         * modules/log1pl: New file.
4619         * tests/test-math-c++.cc: Check the declaration of log1pl.
4620         * doc/posix-functions/log1pl.texi: Mention the new module.
4621
4622 2012-03-10  Bruno Haible  <bruno@clisp.org>
4623
4624         Tests for module 'log1pf'.
4625         * modules/log1pf-tests: New file.
4626         * tests/test-log1pf.c: New file.
4627
4628         New module 'log1pf'.
4629         * lib/math.in.h (log1pf): New declaration.
4630         * lib/log1pf.c: New file.
4631         * m4/log1pf.m4: New file.
4632         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
4633         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
4634         REPLACE_LOG1PF.
4635         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
4636         REPLACE_LOG1PF.
4637         * modules/log1pf: New file.
4638         * tests/test-math-c++.cc: Check the declaration of log1pf.
4639         * doc/posix-functions/log1pf.texi: Mention the new module.
4640
4641 2012-03-10  Bruno Haible  <bruno@clisp.org>
4642
4643         log1p tests: More tests.
4644         * tests/test-log1p.h: New file.
4645         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
4646         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
4647         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
4648         (main): Invoke test_function.
4649
4650         log1p: Provide replacement for Minix and MSVC.
4651         * lib/math.in.h (log1p): New declaration.
4652         * lib/log1p.c: New file.
4653         * m4/log1p.m4: New file.
4654         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
4655         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
4656         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
4657         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
4658         (Depends-on): Add math, isnand, log, round.
4659         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
4660         HAVE_LOG1P is 0.
4661         * tests/test-math-c++.cc: Check the declaration of log1p.
4662         * doc/posix-functions/log1p.texi: Mention the replacement.
4663
4664 2012-03-10  Bruno Haible  <bruno@clisp.org>
4665
4666         math tests: Small simplification.
4667         * tests/test-exp.h (test_function): Use the same err_bound for
4668         'double' on platforms with sizeof (long double) == sizeof (double)
4669         than on platforms with sizeof (long double) > sizeof (double).
4670         * tests/test-exp2.h (test_function): Likewise.
4671         * tests/test-expm1.h (test_function): Likewise.
4672         * tests/test-log.h (test_function): Likewise.
4673
4674 2012-03-10  Bruno Haible  <bruno@clisp.org>
4675
4676         Fix some comments.
4677         * lib/expl.c: Fix an ambiguous comment.
4678         * lib/expm1.c: Likewise.
4679         * lib/expm1l.c: Likewise.
4680         * lib/exp2.c: Likewise.
4681         * lib/exp2l.c: Likewise.
4682
4683 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
4684
4685         regex: allow inclusion of <regex.h> before <limits.h>
4686         Without this patch, portable programs had to include <limits.h> before
4687         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
4688         I ran into this problem with a test version of GNU grep on Solaris 8.
4689         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
4690         This is done conditionally so that this change can be merged
4691         back to glibc.
4692         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
4693         using the included regex.
4694
4695         fts: depend on fdopendir
4696         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
4697         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
4698         problem was introduced when fdopendir was split out.
4699
4700 2012-03-10  Bruno Haible  <bruno@clisp.org>
4701
4702         Remove unused variables.
4703         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
4704         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4705
4706 2012-03-10  Bruno Haible  <bruno@clisp.org>
4707
4708         isnanf-nolibm: Fix last commit.
4709         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
4710
4711         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
4712         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
4713
4714 2012-03-10  Bruno Haible  <bruno@clisp.org>
4715
4716         logf-ieee: Work around test failure on NetBSD 5.1.
4717         * m4/logf-ieee.m4: New file.
4718         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
4719         whether logf works with a negative argument. Replace it if not.
4720         * lib/logf.c (logf): For negative arguments, return NaN.
4721         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
4722         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
4723         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
4724
4725         logf-ieee: Work around test failure on Solaris 9.
4726         * modules/logf-ieee (Depends-on): Add log-ieee.
4727         (configure.ac): Require gl_FUNC_LOGF.
4728
4729         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4730         * m4/log-ieee.m4: New file.
4731         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
4732         log works with a negative argument. Replace it if not.
4733         * lib/log.c (log): For negative arguments, return NaN.
4734         * modules/log-ieee (Files): Add m4/log-ieee.m4.
4735         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
4736         * doc/posix-functions/log.texi: Mention the log-ieee module.
4737
4738         Tests for module 'logl-ieee'.
4739         * modules/logl-ieee-tests: New file.
4740         * tests/test-logl-ieee.c: New file.
4741
4742         New module 'logl-ieee'.
4743         * modules/logl-ieee: New file.
4744
4745         Tests for module 'log-ieee'.
4746         * modules/log-ieee-tests: New file.
4747         * tests/test-log-ieee.c: New file.
4748
4749         New module 'log-ieee'.
4750         * modules/log-ieee: New file.
4751
4752         Tests for module 'logf-ieee'.
4753         * modules/logf-ieee-tests: New file.
4754         * tests/test-logf-ieee.c: New file.
4755         * tests/test-log-ieee.h: New file.
4756
4757         New module 'logf-ieee'.
4758         * modules/logf-ieee: New file.
4759
4760 2012-03-10  Bruno Haible  <bruno@clisp.org>
4761
4762         log: Fix bug introduced on 2012-03-09.
4763         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
4764
4765 2012-03-10  Pádraig Brady  <P@draigBrady.com>
4766
4767         timer-time: link explicitly with pthreads on glibc
4768         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
4769         to support static linking, when newer glibc is
4770         detected, as that contains pthread emulation of
4771         POSIX timer functions where required.
4772         * modules/timer-time: Depend on threadlib to
4773         pull in the appropriate library to link.
4774
4775 2012-03-10  Bruno Haible  <bruno@clisp.org>
4776
4777         log* tests: More tests.
4778         * tests/test-log.h: New file.
4779         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
4780         (main): Invoke test_function.
4781         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
4782         (main): Invoke test_function.
4783         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
4784         (main): Invoke test_function.
4785         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4786         tests/randomd.c.
4787         (Makefile.am): Add randomd.c to test_log_SOURCES.
4788         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4789         tests/randomf.c.
4790         (Makefile.am): Add randomf.c to test_logf_SOURCES.
4791         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4792         tests/randoml.c.
4793         (Depends-on): Add 'float'.
4794         (Makefile.am): Add randoml.c to test_logl_SOURCES.
4795
4796 2012-03-09  Bruno Haible  <bruno@clisp.org>
4797
4798         logl: Work around OSF/1 5.1 bug.
4799         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
4800         * lib/logl.c (logl): If logl exists, use it and provide just the
4801         workaround.
4802         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
4803         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
4804         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
4805         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
4806         * modules/logl (configure.ac): Consider REPLACE_LOGL.
4807         (Depends-on): Update conditions.
4808         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
4809
4810 2012-03-09  Bruno Haible  <bruno@clisp.org>
4811
4812         logf: Work around OSF/1 5.1 bug.
4813         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
4814         * lib/logf.c (logf): If logf exists, use it and provide just the
4815         workaround.
4816         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
4817         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
4818         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
4819         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
4820         * modules/logf (configure.ac): Consider REPLACE_LOGF.
4821         (Depends-on): Update conditions.
4822         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
4823
4824 2012-03-09  Bruno Haible  <bruno@clisp.org>
4825
4826         log: Work around OSF/1 5.1 bug.
4827         * lib/math.in.h (log): New declaration.
4828         * lib/log.c: New file.
4829         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
4830         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
4831         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
4832         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
4833         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
4834         * modules/log (Files): Add lib/log.c.
4835         (Depends-on): Add math.
4836         (configure.ac): If REPLACE_LOG is 1, compile an override.
4837         * tests/test-math-c++.cc: Check the declaration of log.
4838         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
4839
4840 2012-03-09  Jim Meyering  <meyering@redhat.com>
4841
4842         readtokens.c: adjust wording in a comment
4843         * lib/readtokens.c: Insert omitted "that" in a comment.
4844
4845 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4846
4847         modechange: add notations +40, 00440, etc.
4848         * lib/modechange.c (mode_compile): Support new notations
4849         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
4850
4851 2012-03-08  Bruno Haible  <bruno@clisp.org>
4852
4853         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
4854         * m4/exp2l-ieee.m4: New file.
4855         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
4856         test whether exp2l works with a NaN argument and with a negative
4857         infinity argument. Replace it if not.
4858         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
4859         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
4860         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
4861         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
4862         (Depends-on): Update conditions.
4863         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
4864         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
4865         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
4866
4867         Tests for module 'exp2l-ieee'.
4868         * modules/exp2l-ieee-tests: New file.
4869         * tests/test-exp2l-ieee.c: New file.
4870
4871         New module 'exp2l-ieee'.
4872         * modules/exp2l-ieee: New file.
4873
4874         Tests for module 'exp2-ieee'.
4875         * modules/exp2-ieee-tests: New file.
4876         * tests/test-exp2-ieee.c: New file.
4877
4878         New module 'exp2-ieee'.
4879         * modules/exp2-ieee: New file.
4880
4881         Tests for module 'exp2f-ieee'.
4882         * modules/exp2f-ieee-tests: New file.
4883         * tests/test-exp2f-ieee.c: New file.
4884         * tests/test-exp2-ieee.h: New file.
4885
4886         New module 'exp2f-ieee'.
4887         * modules/exp2f-ieee: New file.
4888
4889 2012-03-08  Bruno Haible  <bruno@clisp.org>
4890
4891         Tests for module 'exp2l'.
4892         * modules/exp2l-tests: New file.
4893         * tests/test-exp2l.c: New file.
4894
4895         New module 'exp2l'.
4896         * lib/math.in.h (exp2l): New declaration.
4897         * lib/exp2l.c: New file.
4898         * lib/expl-table.c: New file, extracted from lib/expl.c.
4899         * lib/expl.c (gl_expl_table): New declaration.
4900         (expl): Remove expl_table. Update reference.
4901         * m4/exp2l.m4: New file.
4902         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
4903         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
4904         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
4905         * modules/exp2l: New file.
4906         * modules/expl (Files): Add lib/expl-table.c.
4907         (configure.ac): Compile also expl-table.c.
4908         * tests/test-math-c++.cc: Check the declaration of exp2l.
4909         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
4910         problem.
4911
4912 2012-03-08  Bruno Haible  <bruno@clisp.org>
4913
4914         Tests for module 'exp2f'.
4915         * modules/exp2f-tests: New file.
4916         * tests/test-exp2f.c: New file.
4917
4918         New module 'exp2f'.
4919         * lib/math.in.h (exp2f): New declaration.
4920         * lib/exp2f.c: New file.
4921         * m4/exp2f.m4: New file.
4922         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
4923         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
4924         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
4925         * modules/exp2f: New file.
4926         * tests/test-math-c++.cc: Check the declaration of exp2f.
4927         * doc/posix-functions/exp2f.texi: Mention the new module and the
4928         IRIX problem.
4929
4930 2012-03-08  Bruno Haible  <bruno@clisp.org>
4931
4932         Tests for module 'exp2'.
4933         * modules/exp2-tests: New file.
4934         * tests/test-exp2.c: New file.
4935         * tests/test-exp2.h: New file.
4936
4937         New module 'exp2'.
4938         * lib/math.in.h (exp2): New declaration.
4939         * lib/exp2.c: New file.
4940         * m4/exp2.m4: New file.
4941         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
4942         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
4943         REPLACE_EXP2.
4944         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
4945         REPLACE_EXP2.
4946         * modules/exp2: New file.
4947         * tests/test-math-c++.cc: Check the declaration of exp2.
4948         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
4949         and OpenBSD problems.
4950
4951 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4952
4953         savedir: fix comment typo
4954         * lib/savedir.c (savedirstream): Fix typo in comment.
4955
4956 2012-03-08  Bruno Haible  <bruno@clisp.org>
4957
4958         test-readtokens.c: use const; remove unwarranted cast
4959         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
4960
4961 2012-03-08  Bruno Haible  <bruno@clisp.org>
4962
4963         fmal: Avoid compilation error on AIX.
4964         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
4965         AIX 5.2..7.1.
4966
4967 2012-03-08  Bruno Haible  <bruno@clisp.org>
4968
4969         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
4970         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
4971         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
4972         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
4973         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
4974         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
4975         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
4976
4977 2012-03-08  Bruno Haible  <bruno@clisp.org>
4978
4979         remainderf: Override buggy system function on IRIX 6.5.
4980         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
4981         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
4982         when it exists.
4983         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
4984
4985 2012-03-08  Jim Meyering  <meyering@redhat.com>
4986
4987         test-readtokens.c: avoid const-related compilation warnings
4988         * tests/test-readtokens.c: Avoid const-related compilation warnings.
4989
4990 2012-03-07  Jim Meyering  <meyering@redhat.com>
4991             Bruno Haible  <bruno@clisp.org>
4992
4993         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
4994         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
4995         tests/randomd.c.
4996         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
4997         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
4998         tests/randoml.c.
4999         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
5000
5001 2012-03-07  Bruno Haible  <bruno@clisp.org>
5002
5003         expm1l: Avoid compilation error on AIX.
5004         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
5005         AIX 5.2..7.1.
5006
5007 2012-03-07  Bruno Haible  <bruno@clisp.org>
5008
5009         expm1l: Don't override undeclared system function on IRIX 6.5.
5010         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
5011         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
5012         it exists. Set HAVE_DECL_EXPM1L.
5013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
5014         HAVE_EXPM1L.
5015         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
5016         HAVE_EXPM1L.
5017         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
5018
5019 2012-03-07  Bruno Haible  <bruno@clisp.org>
5020
5021         remainderl: Don't override undeclared system function on IRIX 6.5.
5022         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
5023         HAVE_REMAINDERL.
5024         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
5025         declared when it exists. Set HAVE_DECL_REMAINDERL.
5026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
5027         not HAVE_REMAINDERL.
5028         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
5029         HAVE_REMAINDERL.
5030         * doc/posix-functions/remainderl.texi: Mention missing declaration
5031         problem.
5032
5033 2012-03-07  Bruno Haible  <bruno@clisp.org>
5034
5035         rintf: Don't override undeclared system function on IRIX 6.5.
5036         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
5037         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
5038         exists. Set HAVE_DECL_RINTF.
5039         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
5040         HAVE_RINTF.
5041         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
5042         HAVE_RINTF.
5043         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
5044
5045 2012-03-07  Bruno Haible  <bruno@clisp.org>
5046
5047         roundl: Avoid compilation error on AIX.
5048         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
5049         AIX 5.2..7.1.
5050
5051 2012-03-07  Bruno Haible  <bruno@clisp.org>
5052
5053         roundl: Don't override undeclared system function on IRIX 6.5.
5054         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
5055         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
5056         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5057         * modules/roundl (configure.ac): For replacement code, test
5058         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5059         (Depends-on): Update conditions.
5060         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
5061
5062 2012-03-07  Bruno Haible  <bruno@clisp.org>
5063
5064         roundf: Don't override undeclared system function on IRIX 6.5.
5065         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
5066         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
5067         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5068         * modules/roundf (configure.ac): For replacement code, test
5069         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5070         (Depends-on): Update conditions.
5071         * modules/roundf-ieee (Depends-on): Update conditions.
5072         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
5073
5074 2012-03-07  Bruno Haible  <bruno@clisp.org>
5075
5076         round: Don't override undeclared system function on IRIX 6.5.
5077         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
5078         argument.
5079         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
5080         also when it is not declared. Set HAVE_ROUND. For replacement code,
5081         test HAVE_ROUND, not HAVE_DECL_ROUND.
5082         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
5083         not HAVE_DECL_ROUND.
5084         (Depends-on): Update conditions.
5085         * modules/round-ieee (Depends-on): Update conditions.
5086         * doc/posix-functions/round.texi: Mention the IRIX problem.
5087
5088 2012-03-07  Bruno Haible  <bruno@clisp.org>
5089
5090         copysignf: Don't override undeclared system function on IRIX 6.5.
5091         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
5092         HAVE_COPYSIGNF.
5093         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
5094         declared when it exists. Set HAVE_DECL_COPYSIGNF.
5095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
5096         not HAVE_COPYSIGNF.
5097         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
5098         HAVE_COPYSIGNF.
5099         * doc/posix-functions/copysignf.texi: Mention missing declaration
5100         problem.
5101
5102 2012-03-07  Jim Meyering  <meyering@redhat.com>
5103
5104         readtokens: add tests
5105         * modules/readtokens-tests: New file.
5106         * tests/test-readtokens.c: New file.
5107
5108 2012-03-07  Jim Meyering  <meyering@redhat.com>
5109
5110         quotearg: the module must now include quote.h
5111         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
5112         So must the module.
5113         * modules/quotearg (Files): Add quote.h.
5114
5115 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
5116
5117         readtokens: avoid core dumps with unusual calling patterns
5118         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
5119         * lib/readtokens.c: Include limits.h.
5120         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
5121         (readtoken): Don't cache the delimiters; the cache code was buggy
5122         if !delim && saved_delim, or if the new n_delim differs from the old.
5123         Also, it wasn't thread-safe.
5124
5125 2012-03-07  Bruno Haible  <bruno@clisp.org>
5126
5127         quote: Adhere to common module description layout.
5128         * modules/quote (Makefile.am): Add back empty section.
5129
5130 2012-03-06  Akim Demaille  <demaille@gostai.com>
5131
5132         quote: fuse into quotearg
5133         This patch is made for the benefit of Bison.
5134         quote does not leave the choice of the quoting style to the user.
5135         quoting_style provides poor customizability, yet quoting_options,
5136         which is very rich, is hidden inside quotearg.c.  So in order to
5137         allow quote customization, move its implementation to quotearg.c.
5138         * lib/quote.c: Remove.
5139         * modules/quote: Adjust.
5140         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
5141         warning: provide all the members of literal structs.
5142         (quote_quoting_options): New.
5143         (quote, quote_n): Import implementation from quote.c.
5144         * lib/quote.h: Import the comments from quote.c.
5145         (quote_quoting_options): New.
5146
5147 2012-03-06  Bruno Haible  <bruno@clisp.org>
5148
5149         Tests for module 'expm1l-ieee'.
5150         * modules/expm1l-ieee-tests: New file.
5151         * tests/test-expm1l-ieee.c: New file.
5152
5153         New module 'expm1l-ieee'.
5154         * modules/expm1l-ieee: New file.
5155
5156         Tests for module 'expm1f-ieee'.
5157         * modules/expm1f-ieee-tests: New file.
5158         * tests/test-expm1f-ieee.c: New file.
5159
5160         New module 'expm1f-ieee'.
5161         * modules/expm1f-ieee: New file.
5162
5163         Tests for module 'expm1-ieee'.
5164         * modules/expm1-ieee-tests: New file.
5165         * tests/test-expm1-ieee.c: New file.
5166         * tests/test-expm1-ieee.h: New file.
5167
5168         New module 'expm1-ieee'.
5169         * modules/expm1-ieee: New file.
5170         * m4/expm1-ieee.m4: New file.
5171         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
5172         whether expm1 works with a minus zero argument. Replace it if not.
5173         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
5174         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
5175         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
5176         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
5177         (Depends-on): Update conditions.
5178         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
5179         AIX problem.
5180
5181 2012-03-06  Bruno Haible  <bruno@clisp.org>
5182
5183         Work around expm1f bug on IRIX 6.5.
5184         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
5185         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
5186         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
5187         not work.
5188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
5189         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
5190         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
5191         (Depends-on): Update conditions.
5192         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
5193
5194 2012-03-06  Bruno Haible  <bruno@clisp.org>
5195
5196         Tests for module 'expm1l'.
5197         * modules/expm1l-tests: New file.
5198         * tests/test-expm1l.c: New file.
5199
5200         New module 'expm1l'.
5201         * lib/math.in.h (expm1l): New declaration.
5202         * lib/expm1l.c: New file.
5203         * m4/expm1l.m4: New file.
5204         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
5205         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
5206         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
5207         * modules/expm1l: New file.
5208         * tests/test-math-c++.cc: Check the declaration of expm1l.
5209         * doc/posix-functions/expm1l.texi: Mention the new module.
5210
5211 2012-03-06  Bruno Haible  <bruno@clisp.org>
5212
5213         Tests for module 'expm1f'.
5214         * modules/expm1f-tests: New file.
5215         * tests/test-expm1f.c: New file.
5216
5217         New module 'expm1f'.
5218         * lib/math.in.h (expm1f): New declaration.
5219         * lib/expm1f.c: New file.
5220         * m4/expm1f.m4: New file.
5221         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
5222         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
5223         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
5224         * modules/expm1f: New file.
5225         * tests/test-math-c++.cc: Check the declaration of expm1f.
5226         * doc/posix-functions/expm1f.texi: Mention the new module.
5227
5228 2012-03-06  Bruno Haible  <bruno@clisp.org>
5229
5230         Tests for module 'expm1'.
5231         * modules/expm1-tests: New file.
5232         * tests/test-expm1.c: New file.
5233         * tests/test-expm1.h: New file.
5234
5235         New module 'expm1'.
5236         * lib/math.in.h (expm1): New declaration.
5237         * lib/expm1.c: New file.
5238         * m4/expm1.m4: New file.
5239         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
5240         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
5241         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
5242         * modules/expm1: New file.
5243         * tests/test-math-c++.cc: Check the declaration of expm1.
5244         * doc/posix-functions/expm1.texi: Mention the new module.
5245
5246 2012-03-06  Bruno Haible  <bruno@clisp.org>
5247
5248         math: Ensure declarations of math functions.
5249         * modules/acosf (Depends-on): Add 'extensions'.
5250         * modules/asinf (Depends-on): Likewise.
5251         * modules/atan2f (Depends-on): Likewise.
5252         * modules/atanf (Depends-on): Likewise.
5253         * modules/cbrt (Depends-on): Likewise.
5254         * modules/cbrtf (Depends-on): Likewise.
5255         * modules/cbrtl (Depends-on): Likewise.
5256         * modules/copysignf (Depends-on): Likewise.
5257         * modules/copysignl (Depends-on): Likewise.
5258         * modules/cosf (Depends-on): Likewise.
5259         * modules/coshf (Depends-on): Likewise.
5260         * modules/expf (Depends-on): Likewise.
5261         * modules/fabsf (Depends-on): Likewise.
5262         * modules/fabsl (Depends-on): Likewise.
5263         * modules/fmaf (Depends-on): Likewise.
5264         * modules/fmal (Depends-on): Likewise.
5265         * modules/fmodf (Depends-on): Likewise.
5266         * modules/fmodl (Depends-on): Likewise.
5267         * modules/frexpf (Depends-on): Likewise.
5268         * modules/frexpl (Depends-on): Likewise.
5269         * modules/hypot (Depends-on): Likewise.
5270         * modules/hypotf (Depends-on): Likewise.
5271         * modules/hypotl (Depends-on): Likewise.
5272         * modules/ldexpf (Depends-on): Likewise.
5273         * modules/ldexpl (Depends-on): Likewise.
5274         * modules/log10f (Depends-on): Likewise.
5275         * modules/log10l (Depends-on): Likewise.
5276         * modules/log1p (Depends-on): Likewise.
5277         * modules/logb (Depends-on): Likewise.
5278         * modules/logf (Depends-on): Likewise.
5279         * modules/modff (Depends-on): Likewise.
5280         * modules/modfl (Depends-on): Likewise.
5281         * modules/powf (Depends-on): Likewise.
5282         * modules/remainderf (Depends-on): Likewise.
5283         * modules/remainderl (Depends-on): Likewise.
5284         * modules/rintf (Depends-on): Likewise.
5285         * modules/rintl (Depends-on): Likewise.
5286         * modules/sinf (Depends-on): Likewise.
5287         * modules/sinhf (Depends-on): Likewise.
5288         * modules/sqrtf (Depends-on): Likewise.
5289         * modules/tanf (Depends-on): Likewise.
5290         * modules/tanhf (Depends-on): Likewise.
5291         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
5292         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
5293         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
5294         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
5295         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
5296         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
5297         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
5298         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
5299         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
5300         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
5301         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
5302         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
5303         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
5304         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
5305         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
5306         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
5307         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
5308         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5309         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
5310         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
5311         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
5312         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
5313         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
5314         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
5315         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5316         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
5317         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
5318         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5319         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
5320         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
5321         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5322         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
5323         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5324         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5325         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5326         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5327         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
5328         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
5329         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
5330         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
5331         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
5332
5333 2012-03-06  Bruno Haible  <bruno@clisp.org>
5334
5335         math: Update module names in warnings.
5336         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
5337         tanl): Use specific module name in warn-on-use warning.
5338
5339 2012-03-06  Bruno Haible  <bruno@clisp.org>
5340
5341         expl: Simplify computation.
5342         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
5343
5344 2012-03-05  Bruno Haible  <bruno@clisp.org>
5345
5346         exp* tests: More tests.
5347         * tests/test-exp.h: New file.
5348         * tests/test-exp.c: Include <float.h> and test-exp.h.
5349         (main): Invoke test_function.
5350         * tests/test-expf.c: Include <float.h> and test-exp.h.
5351         (main): Invoke test_function.
5352         * tests/test-expl.c: Include <float.h> and test-exp.h.
5353         (main): Invoke test_function.
5354         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
5355         (Makefile.am): Add randomd.c to test_exp_SOURCES.
5356         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
5357         (Makefile.am): Add randomf.c to test_expf_SOURCES.
5358         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
5359         (Depends-on): Add 'float'.
5360         (Makefile.am): Add randoml.c to test_expl_SOURCES.
5361
5362         expl: Fix precision of computed result.
5363         * lib/expl.c: Completely rewritten.
5364         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
5365         (Maintainer): Add me.
5366         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
5367
5368 2012-03-05  Bruno Haible  <bruno@clisp.org>
5369
5370         cbrt* tests: More tests.
5371         * tests/test-cbrt.h: New file.
5372         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
5373         (main): Invoke test_function.
5374         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
5375         (main): Invoke test_function.
5376         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
5377         (main): Invoke test_function.
5378         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
5379         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
5380         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
5381         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
5382         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
5383         (Depends-on): Add 'float'.
5384         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
5385
5386 2012-03-05  Bruno Haible  <bruno@clisp.org>
5387
5388         hypot* tests: More tests.
5389         * tests/test-hypot.h: New file, partially extracted from
5390         tests/test-hypotl.c.
5391         * tests/test-hypot.c: Include test-hypot.h.
5392         (main): Invoke test_function.
5393         * tests/test-hypotf.c: Include test-hypot.h.
5394         (main): Invoke test_function.
5395         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
5396         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
5397         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
5398         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
5399         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
5400         tests/randomf.c.
5401         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
5402         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
5403         tests/randoml.c.
5404         (Depends-on): Add 'fpucw', 'float'.
5405         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
5406
5407 2012-03-05  Bruno Haible  <bruno@clisp.org>
5408
5409         fpucw: Doc about FreeBSD.
5410         * lib/fpucw.h: Mention FreeBSD in comments.
5411
5412 2012-03-04  Bruno Haible  <bruno@clisp.org>
5413
5414         sqrt* tests: More tests.
5415         * tests/test-sqrt.h: New file.
5416         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
5417         (main): Invoke test_function.
5418         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
5419         (main): Invoke test_function.
5420         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
5421         (main): Invoke test_function.
5422         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
5423         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
5424         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
5425         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
5426         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
5427         (Depends-on): Add 'float'.
5428         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
5429
5430 2012-03-04  Bruno Haible  <bruno@clisp.org>
5431
5432         remainder* tests: More tests.
5433         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
5434         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
5435         (main): Invoke test_function.
5436         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
5437         (main): Invoke test_function.
5438         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
5439         (main): Invoke test_function.
5440         * modules/remainder-tests (Files): Add tests/test-remainder.h,
5441         tests/randomd.c.
5442         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
5443         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
5444         tests/randomf.c.
5445         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
5446         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
5447         tests/randoml.c.
5448         (Depends-on): Add 'float'.
5449         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
5450
5451 2012-03-04  Bruno Haible  <bruno@clisp.org>
5452
5453         remainder, remainderf, remainderl: Fix computation for large quotients.
5454         * lib/remainder.c: Completely rewritten.
5455         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
5456         USE_FLOAT.
5457         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
5458         USE_LONG_DOUBLE.
5459         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
5460         isnand, isinf. Remove round, fma.
5461         * modules/remainderf (Files): Add lib/remainder.c.
5462         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
5463         Remove roundf, fmaf.
5464         * modules/remainderl (Files): Add lib/remainder.c.
5465         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
5466         isinf. Remove roundl, fmal.
5467         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
5468         REMAINDER_LIBM.
5469         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
5470         REMAINDERF_LIBM.
5471         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
5472         REMAINDERL_LIBM.
5473
5474 2012-03-04  Bruno Haible  <bruno@clisp.org>
5475
5476         fmod* tests: More tests.
5477         * tests/test-fmod.h (my_ldexp): New function.
5478         (test_function): Reduce amount of random numbers to test. Add tests
5479         of very large quotients x / y.
5480         * tests/test-fmod.c (MAX_EXP): New macro.
5481         * tests/test-fmodf.c (MAX_EXP): Likewise.
5482         * tests/test-fmodl.c (MAX_EXP): Likewise.
5483
5484 2012-03-04  Bruno Haible  <bruno@clisp.org>
5485
5486         fmod, fmodl: Fix computation for large quotients x / y.
5487         * lib/fmod.c: Completely rewritten.
5488         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
5489         USE_LONG_DOUBLE.
5490         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
5491         isnand. Remove fma.
5492         * modules/fmodl (Files): Add lib/fmod.c.
5493         (Depends-on): Add float, isfinite, signbit, fabsl,
5494         frexpl, ldexpl, isnanl. Remove fma.
5495         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
5496         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
5497
5498 2012-03-03  Bruno Haible  <bruno@clisp.org>
5499
5500         fmod* tests: More tests.
5501         * tests/test-fmod.h: New file.
5502         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
5503         (main): Invoke test_function.
5504         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
5505         (main): Invoke test_function.
5506         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
5507         (main): Invoke test_function.
5508         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
5509         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
5510         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
5511         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
5512         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
5513         (Depends-on): Add 'float'.
5514         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
5515
5516 2012-03-03  Bruno Haible  <bruno@clisp.org>
5517
5518         rint* tests: More tests.
5519         * tests/test-rint.h: New file, partially extracted from
5520         tests/test-rintl.c.
5521         * tests/test-rint.c: Include test-rint.h.
5522         (main): Invoke test_function.
5523         * tests/test-rintf.c: Include test-rint.h.
5524         (main): Invoke test_function.
5525         * tests/test-rintl.c: Include test-rint.h.
5526         (main): Invoke test_function.
5527         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
5528         (Makefile.am): Add randomd.c to test_rint_SOURCES.
5529         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
5530         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
5531         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
5532         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
5533
5534 2012-03-03  Bruno Haible  <bruno@clisp.org>
5535
5536         modf* tests: More tests.
5537         * tests/test-modf.h: New file.
5538         * tests/test-modf.c: Include <float.h> and test-modf.h.
5539         (main): Invoke test_function.
5540         * tests/test-modff.c: Include <float.h> and test-modf.h.
5541         (main): Invoke test_function.
5542         * tests/test-modfl.c: Include <float.h> and test-modf.h.
5543         (main): Invoke test_function.
5544         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
5545         (Makefile.am): Add randomd.c to test_modf_SOURCES.
5546         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
5547         (Makefile.am): Add randomf.c to test_modff_SOURCES.
5548         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
5549         (Depends-on): Add 'float'.
5550         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
5551
5552 2012-03-03  Bruno Haible  <bruno@clisp.org>
5553
5554         fabs* tests: More tests.
5555         * tests/test-fabs.h: New file, partially extracted from
5556         tests/test-fabsl.c.
5557         * tests/test-fabs.c (RANDOM): New macro.
5558         * tests/test-fabsf.c (RANDOM): New macro.
5559         * tests/test-fabsl.c (RANDOM): New macro.
5560         * modules/fabs-tests (Files): Add tests/randomd.c.
5561         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
5562         * modules/fabsf-tests (Files): Add tests/randomf.c.
5563         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
5564         * modules/fabsl-tests (Files): Add tests/randoml.c.
5565         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
5566
5567 2012-03-03  Bruno Haible  <bruno@clisp.org>
5568
5569         ldexp* tests: More tests.
5570         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
5571         * tests/test-ldexp.c (RANDOM): New macro.
5572         * tests/test-ldexpf.c (RANDOM): New macro.
5573         * tests/test-ldexpl.c (RANDOM): New macro.
5574         * modules/ldexp-tests (Files): Add tests/randomd.c.
5575         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
5576         * modules/ldexpf-tests (Files): Add tests/randomf.c.
5577         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
5578         * modules/ldexpl-tests (Files): Add tests/randoml.c.
5579         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
5580
5581 2012-03-03  Bruno Haible  <bruno@clisp.org>
5582
5583         frexp* tests: More tests.
5584         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
5585         * tests/test-frexp.c (RANDOM): New macro.
5586         * tests/test-frexpf.c (RANDOM): New macro.
5587         * tests/test-frexpl.c (RANDOM): New macro.
5588         * modules/frexp-tests (Files): Add tests/randomd.c.
5589         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
5590         * modules/frexpf-tests (Files): Add tests/randomf.c.
5591         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
5592         * modules/frexpl-tests (Files): Add tests/randoml.c.
5593         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
5594
5595 2012-03-03  Bruno Haible  <bruno@clisp.org>
5596
5597         Support for pseudo-random numbers in tests.
5598         * tests/randomf.c: New file.
5599         * tests/randomd.c: New file.
5600         * tests/randoml.c: New file.
5601         * tests/macros.h (randomf, randomd, randoml): New declarations.
5602
5603 2012-03-03  Bruno Haible  <bruno@clisp.org>
5604
5605         frexp* tests: Refactor.
5606         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
5607         * tests/test-frexp.c: Include and use it.
5608         * tests/test-frexpf.c: Likewise.
5609         * tests/test-frexpl.c: Likewise.
5610         * modules/frexp-tests (Files): Add tests/test-frexp.h.
5611         * modules/frexpf-tests (Files): Likewise.
5612         * modules/frexpl-tests (Files): Likewise.
5613
5614 2012-03-02  Jim Meyering  <meyering@redhat.com>
5615
5616         maint: don't specify XZ_OPT=-9ev in dist-related rule
5617         Using xz's -9 option is warranted only if you have a very large
5618         tarball (see xz's documentation for the sizes vs. presets), and
5619         requires 64MiB of memory at decompression time.
5620         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
5621         Automake's default of just "-e" is fine.  Override on a
5622         per-package basis by setting XZ_OPT e.g., in cfg.mk.
5623
5624 2012-03-01  Eric Blake  <eblake@redhat.com>
5625
5626         maint.mk: allow announcement for non-gnulib project
5627         * maint.mk (announcement): Skip gnulib version if not used.
5628
5629 2012-03-01  Jim Meyering  <meyering@redhat.com>
5630
5631         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
5632         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
5633         envvar settings cannot interfere.  Otherwise, setting envvars like
5634         prohibit=foo require=bar, etc. would cause spurious test failures.
5635
5636 2012-03-01  Eric Blake  <eblake@redhat.com>
5637
5638         maint.mk: add per-line exclusions to prohibitions
5639         * maint.mk (_sc_search_regexp): Add $exclude parameter.
5640         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
5641         (sc_const_long_option): Use it.
5642
5643 2012-03-01  Bruno Haible  <bruno@clisp.org>
5644
5645         Tests for module 'expl-ieee'.
5646         * modules/expl-ieee-tests: New file.
5647         * tests/test-expl-ieee.c: New file.
5648
5649         New module 'expl-ieee'.
5650         * modules/expl-ieee: New file.
5651
5652         Tests for module 'exp-ieee'.
5653         * modules/exp-ieee-tests: New file.
5654         * tests/test-exp-ieee.c: New file.
5655
5656         New module 'exp-ieee'.
5657         * modules/exp-ieee: New file.
5658
5659         Tests for module 'expf-ieee'.
5660         * modules/expf-ieee-tests: New file.
5661         * tests/test-expf-ieee.c: New file.
5662         * tests/test-exp-ieee.h: New file.
5663
5664         New module 'expf-ieee'.
5665         * modules/expf-ieee: New file.
5666
5667 2012-02-29  Bruno Haible  <bruno@clisp.org>
5668
5669         cbrtl-ieee: Work around test failure on IRIX 6.5.
5670         * m4/cbrtl-ieee.m4: New file.
5671         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
5672         test whether cbrtl works with a minus zero argument. Replace it if not.
5673         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
5674         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
5675         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
5676         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
5677         (Depends-on): Update conditions.
5678         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
5679         m4/signbit.m4.
5680         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
5681         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
5682         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
5683
5684         Tests for module 'cbrtl-ieee'.
5685         * modules/cbrtl-ieee-tests: New file.
5686         * tests/test-cbrtl-ieee.c: New file.
5687
5688         New module 'cbrtl-ieee'.
5689         * modules/cbrtl-ieee: New file.
5690
5691         Tests for module 'cbrt-ieee'.
5692         * modules/cbrt-ieee-tests: New file.
5693         * tests/test-cbrt-ieee.c: New file.
5694
5695         New module 'cbrt-ieee'.
5696         * modules/cbrt-ieee: New file.
5697
5698         Tests for module 'cbrtf-ieee'.
5699         * modules/cbrtf-ieee-tests: New file.
5700         * tests/test-cbrtf-ieee.c: New file.
5701         * tests/test-cbrt-ieee.h: New file.
5702
5703         New module 'cbrtf-ieee'.
5704         * modules/cbrtf-ieee: New file.
5705
5706 2012-02-29  Bruno Haible  <bruno@clisp.org>
5707
5708         cbrtf: Work around bug in IRIX 6.5 system function.
5709         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
5710         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
5711         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
5712         work.
5713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
5714         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
5715         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
5716         (Depends-on): Update conditions.
5717         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
5718
5719 2012-02-29  Bruno Haible  <bruno@clisp.org>
5720
5721         Tests for module 'cbrtl'.
5722         * modules/cbrtl-tests: New file.
5723         * tests/test-cbrtl.c: New file.
5724
5725         New module 'cbrtl'.
5726         * lib/math.in.h (cbrtl): New declaration.
5727         * lib/cbrtl.c: New file.
5728         * m4/cbrtl.m4: New file.
5729         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
5730         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
5731         HAVE_DECL_CBRTL.
5732         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
5733         HAVE_DECL_CBRTL.
5734         * modules/cbrtl: New file.
5735         * tests/test-math-c++.cc: Check the declaration of cbrtl.
5736         * doc/posix-functions/cbrtl.texi: Mention the new module.
5737
5738 2012-02-29  Bruno Haible  <bruno@clisp.org>
5739
5740         Tests for module 'cbrtf'.
5741         * modules/cbrtf-tests: New file.
5742         * tests/test-cbrtf.c: New file.
5743
5744         New module 'cbrtf'.
5745         * lib/math.in.h (cbrtf): New declaration.
5746         * lib/cbrtf.c: New file.
5747         * m4/cbrtf.m4: New file.
5748         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
5749         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
5750         HAVE_DECL_CBRTF.
5751         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
5752         HAVE_DECL_CBRTF.
5753         * modules/cbrtf: New file.
5754         * tests/test-math-c++.cc: Check the declaration of cbrtf.
5755         * doc/posix-functions/cbrtf.texi: Mention the new module.
5756
5757 2012-02-29  Bruno Haible  <bruno@clisp.org>
5758
5759         cbrt: Provide replacement on MSVC and Minix.
5760         * lib/math.in.h (cbrt): New declaration.
5761         * lib/cbrt.c: New file.
5762         * m4/cbrt.m4: New file.
5763         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
5764         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
5765         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
5766         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
5767         (Depends-on): Add dependencies.
5768         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
5769         * tests/test-math-c++.cc: Check the declaration of cbrt.
5770         * doc/posix-functions/cbrt.texi: Mention that the module provides a
5771         replacement.
5772
5773 2012-02-29  Bruno Haible  <bruno@clisp.org>
5774
5775         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
5776         * m4/hypotl-ieee.m4: New file.
5777         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
5778         test whether hypotl works with mixed NaN and Infinity arguments.
5779         Replace it if not.
5780         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
5781         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
5782         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
5783         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
5784         (Depends-on): Update conditions.
5785         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
5786         (Depends-on): Add hypot-ieee.
5787         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
5788         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
5789
5790         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
5791         * m4/hypotf-ieee.m4: New file.
5792         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
5793         test whether hypotf works with mixed NaN and Infinity arguments.
5794         Replace it if not.
5795         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
5796         (Depends-on): Add hypot-ieee.
5797         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
5798         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
5799
5800         hypot-ieee: Work around test failure on OSF/1 and native Windows.
5801         * lib/math.in.h (hypot): New declaration.
5802         * lib/hypot.c: New file.
5803         * m4/hypot-ieee.m4: New file.
5804         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
5805         whether hypot works with mixed NaN and Infinity arguments. Replace it
5806         if not.
5807         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
5808         REPLACE_HYPOT.
5809         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
5810         * modules/hypot (Files): Add lib/hypot.c.
5811         (Depends-on): Add dependencies.
5812         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
5813         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
5814         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
5815         * tests/test-math-c++.cc: Check the declaration of hypot.
5816         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
5817
5818         Tests for module 'hypotl-ieee'.
5819         * modules/hypotl-ieee-tests: New file.
5820         * tests/test-hypotl-ieee.c: New file.
5821
5822         New module 'hypotl-ieee'.
5823         * modules/hypotl-ieee: New file.
5824
5825         Tests for module 'hypot-ieee'.
5826         * modules/hypot-ieee-tests: New file.
5827         * tests/test-hypot-ieee.c: New file.
5828
5829         New module 'hypot-ieee'.
5830         * modules/hypot-ieee: New file.
5831
5832         Tests for module 'hypotf-ieee'.
5833         * modules/hypotf-ieee-tests: New file.
5834         * tests/test-hypotf-ieee.c: New file.
5835         * tests/test-hypot-ieee.h: New file.
5836
5837         New module 'hypotf-ieee'.
5838         * modules/hypotf-ieee: New file.
5839
5840 2012-02-29  Bruno Haible  <bruno@clisp.org>
5841
5842         Remove unused variables.
5843         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
5844         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5845         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
5846         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5847
5848 2012-02-29  Eric Blake  <eblake@redhat.com>
5849
5850         termios: fix pid_t always, not just for tcgetsid
5851         * doc/posix-headers/termios.texi (termios.h): Mention problem.
5852         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
5853         just when building tcgetsid.
5854
5855 2012-02-29  Bruno Haible  <bruno@clisp.org>
5856
5857         Tests for module 'hypotl'.
5858         * modules/hypotl-tests: New file.
5859         * tests/test-hypotl.c: New file.
5860
5861         New module 'hypotl'.
5862         * lib/math.in.h (hypotl): New declaration.
5863         * lib/hypotl.c: New file.
5864         * m4/hypotl.m4: New file.
5865         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5866         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
5867         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
5868         * modules/hypotl: New file.
5869         * tests/test-math-c++.cc: Check the hypotl declaration.
5870         * doc/posix-functions/hypotl.texi: Mention the new module.
5871
5872 2012-02-29  Eric Blake  <eblake@redhat.com>
5873
5874         tcgetsid: fix cygwin header bug
5875         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
5876
5877         docs: update cygwin progress
5878         * doc/posix-functions/llround.texi (llround): Added in cygwin
5879         1.7.8.
5880         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
5881         * doc/glibc-functions/program_invocation_name.texi
5882         (program_invocation_name): Likewise.
5883         * doc/glibc-functions/program_invocation_short_name.texi
5884         (program_invocation_short_name): Likewise.
5885         * doc/glibc-functions/madvise.texi (madvise): Likewise.
5886         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
5887         Likewise.
5888         * doc/posix-functions/pthread_spin_destroy.texi
5889         (pthread_spin_destroy): Added in cygwin 1.7.10.
5890         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
5891         Likewise.
5892         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
5893         Likewise.
5894         * doc/posix-functions/pthread_spin_trylock.texi
5895         (pthread_spin_trylock): Likewise.
5896         * doc/posix-functions/pthread_spin_unlock.texi
5897         (pthread_spin_unlock): Likewise.
5898         * doc/posix-functions/pthread_setschedprio.texi
5899         (pthread_setschedprio): Likewise.
5900         * doc/posix-functions/pthread_attr_getstack.texi
5901         (pthread_attr_getstack): Likewise.
5902         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
5903         (pthread_attr_getstackaddr): Likewise.
5904         * doc/glibc-functions/pthread_getattr_np.texi
5905         (pthread_getattr_np): Likewise.
5906         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
5907         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
5908         * doc/posix-functions/clock_settime.texi (clock_settime):
5909         Likewise.
5910         * doc/posix-functions/pthread_attr_getguardsize.texi
5911         (pthread_attr_getguardsize): Likewise.
5912         * doc/posix-functions/pthread_attr_setguardsize.texi
5913         (pthread_attr_setguardsize): Likewise.
5914         * doc/posix-functions/pthread_attr_setstack.texi
5915         (pthread_attr_setstack): Likewise.
5916         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
5917         (pthread_attr_setstackaddr): Likewise.
5918         * doc/posix-functions/clock_getcpuclockid.texi
5919         (clock_getcpuclockid): Likewise.
5920         * doc/posix-functions/pthread_getcpuclockid.texi
5921         (pthread_getcpuclockid): Likewise.
5922         * doc/glibc-functions/error.texi (error): Likewise.
5923         * doc/glibc-functions/error_at_line.texi (error_at_line):
5924         Likewise.
5925         * doc/glibc-functions/error_message_count.texi
5926         (error_message_count): Likewise.
5927         * doc/glibc-functions/error_one_per_line.texi
5928         (error_one_per_line): Likewise.
5929         * doc/glibc-functions/error_print_progname.texi
5930         (error_print_progname): Likewise.
5931         * doc/posix-functions/pthread_condattr_getclock.texi
5932         (pthread_condattr_getclock): Likewise.
5933         * doc/posix-functions/pthread_condattr_setclock.texi
5934         (pthread_condattr_setclock): Likewise.
5935         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
5936         Likewise.
5937         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
5938         * doc/glibc-functions/getpt.texi (getpt): Likewise.
5939         * doc/glibc-functions/get_current_dir_name.texi
5940         (get_current_dir_name): Likewise.
5941         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
5942         Likewise.
5943         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
5944         wrong return type.
5945         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
5946         1.7.11.
5947
5948 2012-02-29  Bruno Haible  <bruno@clisp.org>
5949
5950         Tests for module 'hypotf'.
5951         * modules/hypotf-tests: New file.
5952         * tests/test-hypotf.c: New file.
5953
5954         New module 'hypotf'.
5955         * lib/math.in.h (hypotf): New declaration.
5956         * lib/hypotf.c: New file.
5957         * m4/hypotf.m4: New file.
5958         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5959         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
5960         REPLACE_HYPOTF.
5961         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
5962         REPLACE_HYPOTF.
5963         * modules/hypotf: New file.
5964         * tests/test-math-c++.cc: Check the hypotf declaration.
5965         * doc/posix-functions/hypotf.texi: Mention the new module.
5966
5967         hypot: Prepare for hypotf module.
5968         * m4/hypot.m4: New file.
5969         * modules/hypot (Files): Add m4/hypot.m4.
5970         (configure.ac): Invoke gl_FUNC_HYPOT.
5971
5972 2012-02-29  Bruno Haible  <bruno@clisp.org>
5973
5974         hypot tests: More tests.
5975         * tests/test-hypot.c: Include <float.h>.
5976         (main): Add tests about overflow and underflow.
5977
5978 2012-02-29  Bruno Haible  <bruno@clisp.org>
5979
5980         math code: Add comments.
5981         * lib/acosl.c: Add comment about related glibc source files.
5982         * lib/asinl.c: Likewise.
5983         * lib/atanl.c: Likewise.
5984         * lib/expl.c: Likewise.
5985         * lib/logl.c: Likewise.
5986         * lib/sincosl.c: Likewise.
5987         * lib/sinl.c: Likewise.
5988         * lib/tanl.c: Likewise.
5989         * lib/trigl.c: Likewise.
5990         * lib/cosl.c: Likewise. Fix comments.
5991
5992 2012-02-28  Bruno Haible  <bruno@clisp.org>
5993
5994         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
5995         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
5996         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
5997         HUGE_VALL are defined.
5998         (numeric_equald): Renamed from numeric_equal.
5999         (numeric_equalf, numeric_equall): New functions.
6000         (main): Check also HUGE_VALF, HUGE_VALL.
6001         * modules/math-tests (Files): Add tests/macros.h.
6002         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
6003         HUGE_VALL.
6004
6005 2012-02-28  Bruno Haible  <bruno@clisp.org>
6006
6007         doc: Move ISO C11 feature notes into POSIX chapters.
6008         * doc/posix-functions/aligned_alloc.texi: Renamed from
6009         doc/glibc-functions/aligned_alloc.texi.
6010         * doc/posix-functions/quick_exit.texi: Renamed from
6011         doc/glibc-functions/quick_exit.texi.
6012         * doc/posix-headers/uchar.texi: Renamed from
6013         doc/glibc-headers/uchar.texi.
6014         * doc/posix-functions/c16rtomb.texi: Renamed from
6015         doc/glibc-functions/c16rtomb.texi.
6016         * doc/posix-functions/c32rtomb.texi: Renamed from
6017         doc/glibc-functions/c32rtomb.texi.
6018         * doc/posix-functions/mbrtoc16.texi: Renamed from
6019         doc/glibc-functions/mbrtoc16.texi.
6020         * doc/posix-functions/mbrtoc32.texi: Renamed from
6021         doc/glibc-functions/mbrtoc32.texi.
6022         * doc/gnulib.texi: Update.
6023         (Glibc uchar.h): Remove section.
6024         Suggested by Eric Blake.
6025
6026 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
6027
6028         stdnoreturn: port to MSVC better
6029         MSVC standard headers use __declspec(noreturn), so #define noreturn
6030         to empty on that platform.  Reported by Bruno Haible in
6031         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
6032         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
6033         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
6034
6035 2012-02-28  Bruno Haible  <bruno@clisp.org>
6036
6037         doc: Mention new glibc headers and functions.
6038         * doc/glibc-headers/uchar.texi: New file.
6039         * doc/glibc-functions/aligned_alloc.texi: New file.
6040         * doc/glibc-functions/c16rtomb.texi: New file.
6041         * doc/glibc-functions/c32rtomb.texi: New file.
6042         * doc/glibc-functions/clock_adjtime.texi: New file.
6043         * doc/glibc-functions/fanotify_init.texi: New file.
6044         * doc/glibc-functions/fanotify_mark.texi: New file.
6045         * doc/glibc-functions/inet6_opt_append.texi: New file.
6046         * doc/glibc-functions/inet6_opt_find.texi: New file.
6047         * doc/glibc-functions/inet6_opt_finish.texi: New file.
6048         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
6049         * doc/glibc-functions/inet6_opt_init.texi: New file.
6050         * doc/glibc-functions/inet6_opt_next.texi: New file.
6051         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
6052         * doc/glibc-functions/inet6_rth_add.texi: New file.
6053         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
6054         * doc/glibc-functions/inet6_rth_init.texi: New file.
6055         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
6056         * doc/glibc-functions/inet6_rth_segments.texi: New file.
6057         * doc/glibc-functions/inet6_rth_space.texi: New file.
6058         * doc/glibc-functions/login.texi: New file.
6059         * doc/glibc-functions/mbrtoc16.texi: New file.
6060         * doc/glibc-functions/mbrtoc32.texi: New file.
6061         * doc/glibc-functions/name_to_handle_at.texi: New file.
6062         * doc/glibc-functions/ntp_gettimex.texi: New file.
6063         * doc/glibc-functions/open_by_handle_at.texi: New file.
6064         * doc/glibc-functions/prlimit.texi: New file.
6065         * doc/glibc-functions/process_vm_readv.texi: New file.
6066         * doc/glibc-functions/process_vm_writev.texi: New file.
6067         * doc/glibc-functions/recvmmsg.texi: New file.
6068         * doc/glibc-functions/scandirat.texi: New file.
6069         * doc/glibc-functions/sendmmsg.texi: New file.
6070         * doc/glibc-functions/setns.texi: New file.
6071         * doc/glibc-functions/timespec_get.texi: New file.
6072         * doc/gnulib.texi: Include them.
6073         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
6074         sections.
6075         Reported by Eric Blake.
6076
6077 2012-02-28  Bruno Haible  <bruno@clisp.org>
6078
6079         Avoid compilation errors with MSVC option -fp:strict.
6080         * lib/floor.c: Use MSVC specific pragma fenv_access.
6081         * lib/ceil.c: Likewise.
6082         * lib/trunc.c: Likewise.
6083         * lib/round.c: Likewise.
6084         * lib/rint.c: Likewise.
6085         * lib/fma.c: Likewise.
6086         * lib/integer_length.c: Likewise.
6087         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6088         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6089         * tests/test-floor2.c: Likewise.
6090         * tests/test-floorf2.c: Likewise.
6091         * tests/test-ceil2.c: Likewise.
6092         * tests/test-ceilf2.c: Likewise.
6093         * tests/test-trunc2.c: Likewise.
6094         * tests/test-truncf2.c: Likewise.
6095         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6096
6097 2012-02-27  Bruno Haible  <bruno@clisp.org>
6098
6099         Tests for module 'sqrtl-ieee'.
6100         * modules/sqrtl-ieee-tests: New file.
6101         * tests/test-sqrtl-ieee.c: New file.
6102
6103         New module 'sqrtl-ieee'.
6104         * modules/sqrtl-ieee: New file.
6105
6106         Tests for module 'sqrt-ieee'.
6107         * modules/sqrt-ieee-tests: New file.
6108         * tests/test-sqrt-ieee.c: New file.
6109
6110         New module 'sqrt-ieee'.
6111         * modules/sqrt-ieee: New file.
6112
6113         Tests for module 'sqrtf-ieee'.
6114         * modules/sqrtf-ieee-tests: New file.
6115         * tests/test-sqrtf-ieee.c: New file.
6116         * tests/test-sqrt-ieee.h: New file.
6117
6118         New module 'sqrtf-ieee'.
6119         * modules/sqrtf-ieee: New file.
6120
6121 2012-02-27  Bruno Haible  <bruno@clisp.org>
6122
6123         remainderl-ieee: Work around test failure on OSF/1.
6124         * m4/remainderl-ieee.m4: New file.
6125         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
6126         present, test whether remainderl works with a zero second argument.
6127         Replace it if not.
6128         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
6129         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
6130         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
6131         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
6132         (Depends-on): Update conditions.
6133         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
6134         (Depends-on): Add remainder-ieee.
6135         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
6136         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
6137         module.
6138
6139         remainderf-ieee: Work around test failure on OSF/1.
6140         * m4/remainderf-ieee.m4: New file.
6141         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
6142         present, test whether remainderf works with a zero second argument.
6143         Replace it if not.
6144         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
6145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
6146         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
6147         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
6148         (Depends-on): Update conditions.
6149         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
6150         (Depends-on): Add remainder-ieee.
6151         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
6152         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
6153         module.
6154
6155         remainder-ieee: Work around test failure on OSF/1.
6156         * m4/remainder-ieee.m4: New file.
6157         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
6158         present, test whether remainder works with a zero second argument.
6159         Replace it if not.
6160         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
6161         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
6162         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
6163         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
6164         (Depends-on): Update dependencies.
6165         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
6166         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
6167         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
6168
6169         Tests for module 'remainderl-ieee'.
6170         * modules/remainderl-ieee-tests: New file.
6171         * tests/test-remainderl-ieee.c: New file.
6172
6173         New module 'remainderl-ieee'.
6174         * modules/remainderl-ieee: New file.
6175
6176         Tests for module 'remainder-ieee'.
6177         * modules/remainder-ieee-tests: New file.
6178         * tests/test-remainder-ieee.c: New file.
6179
6180         New module 'remainder-ieee'.
6181         * modules/remainder-ieee: New file.
6182
6183         Tests for module 'remainderf-ieee'.
6184         * modules/remainderf-ieee-tests: New file.
6185         * tests/test-remainderf-ieee.c: New file.
6186         * tests/test-remainder-ieee.h: New file.
6187
6188         New module 'remainderf-ieee'.
6189         * modules/remainderf-ieee: New file.
6190
6191 2012-02-27  Bruno Haible  <bruno@clisp.org>
6192
6193         modff, modfl: Fix configure syntax error.
6194         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
6195         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6196
6197 2012-02-27  Bruno Haible  <bruno@clisp.org>
6198
6199         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
6200         * m4/fmodl-ieee.m4: New file.
6201         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
6202         whether fmodl works with zero arguments. Replace it if not.
6203         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
6204         (Depends-on): Add fmod-ieee.
6205         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
6206         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
6207
6208         fmodf-ieee: Work around test failure on OSF/1.
6209         * m4/fmodf-ieee.m4: New file.
6210         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
6211         whether fmodf works with zero arguments. Replace it if not.
6212         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
6213         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
6214         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
6215         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
6216         (Depends-on): Update dependencies.
6217         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
6218         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
6219         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
6220
6221         fmodf-ieee: Work around test failure on MSVC 9.
6222         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
6223         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
6224
6225         fmod-ieee: Work around test failures on OSF/1, mingw.
6226         * m4/fmod-ieee.m4: New file.
6227         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
6228         whether fmod works with zero arguments. Replace it if not.
6229         * lib/math.in.h (fmod): New declaration.
6230         * lib/fmod.c: New file.
6231         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
6232         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
6233         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
6234         * modules/fmod (Files): Add lib/fmod.c.
6235         (Depends-on): Add math, isinf, trunc, fma.
6236         (configure.ac): Arrange to compile lib/fmod.c if needed.
6237         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
6238         m4/signbit.m4.
6239         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
6240         * tests/test-math-c++.cc: Check the declaration of fmod.
6241         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
6242
6243         fmodl-ieee: Fix test failures.
6244         * lib/fmodl.c (fmodl): Treat Inf specially.
6245         * modules/fmodl (Depends-on): Add isinf.
6246
6247         Tests for module 'fmodl-ieee'.
6248         * modules/fmodl-ieee-tests: New file.
6249         * tests/test-fmodl-ieee.c: New file.
6250
6251         New module 'fmodl-ieee'.
6252         * modules/fmodl-ieee: New file.
6253
6254         Tests for module 'fmod-ieee'.
6255         * modules/fmod-ieee-tests: New file.
6256         * tests/test-fmod-ieee.c: New file.
6257
6258         New module 'fmod-ieee'.
6259         * modules/fmod-ieee: New file.
6260
6261         Tests for module 'fmodf-ieee'.
6262         * modules/fmodf-ieee-tests: New file.
6263         * tests/test-fmodf-ieee.c: New file.
6264         * tests/test-fmod-ieee.h: New file.
6265
6266         New module 'fmodf-ieee'.
6267         * modules/fmodf-ieee: New file.
6268
6269 2012-02-27  Bruno Haible  <bruno@clisp.org>
6270
6271         Tests for module 'rintl-ieee'.
6272         * modules/rintl-ieee-tests: New file.
6273         * tests/test-rintl-ieee.c: New file.
6274
6275         New module 'rintl-ieee'.
6276         * modules/rintl-ieee: New file.
6277
6278         Tests for module 'rint-ieee'.
6279         * modules/rint-ieee-tests: New file.
6280         * tests/test-rint-ieee.c: New file.
6281
6282         New module 'rint-ieee'.
6283         * modules/rint-ieee: New file.
6284
6285         Tests for module 'rintf-ieee'.
6286         * modules/rintf-ieee-tests: New file.
6287         * tests/test-rintf-ieee.c: New file.
6288         * tests/test-rint-ieee.h: New file.
6289
6290         New module 'rintf-ieee'.
6291         * modules/rintf-ieee: New file.
6292
6293 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
6294
6295         regex: re_search etc. should return -2 when memory exhausted
6296         This bug was uncovered when testing 'grep'.  Without the fix,
6297         re_search and friends return -1 when memory is exhausted, but -1
6298         means no match, and this causes grep to falsely report no-match
6299         instead of memory-exhaustion.  See
6300         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
6301         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
6302         trouble; this can occur if re_search_internal ran out of memory.
6303
6304 2012-02-26  Bruno Haible  <bruno@clisp.org>
6305
6306         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
6307         * m4/modfl-ieee.m4: New file.
6308         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
6309         whether modfl works with Inf. Replace it if not.
6310         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
6311         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
6312         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
6313         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
6314         (Depends-on): Update dependencies.
6315         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
6316         m4/signbit.m4.
6317         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
6318         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
6319
6320         modfl-ieee: Fix dependencies.
6321         * modules/modfl-ieee (Depends-on): Add modf-ieee.
6322
6323         modfl-ieee: Fix test failures.
6324         * lib/modfl.c (modfl): Treat NaN and Inf specially.
6325         * modules/modfl (Depends-on): Add isfinite, isinf.
6326
6327         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
6328         * m4/modff-ieee.m4: New file.
6329         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
6330         whether modff works with NaN and Inf. Replace it if not.
6331         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
6332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
6333         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
6334         * modules/modff (configure.ac): Consider REPLACE_MODFF.
6335         (Depends-on): Update dependencies.
6336         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
6337         m4/signbit.m4.
6338         (Depends-on): Add modf-ieee.
6339         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
6340         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
6341
6342         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
6343         * m4/modf-ieee.m4: New file.
6344         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
6345         whether modf works with NaN and Inf. Replace it if not.
6346         * lib/math.in.h (modf): New declaration.
6347         * lib/modf.c: New file.
6348         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
6349         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
6350         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
6351         * modules/modf (Files): Add lib/modf.c.
6352         (Depends-on): Add math, isfinite, trunc, isinf.
6353         (configure.ac): Addrange to compile lib/modf.c if needed.
6354         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
6355         m4/signbit.m4.
6356         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
6357         * tests/test-math-c++.cc: Check the declaration of modf.
6358         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
6359
6360         Tests for module 'modfl-ieee'.
6361         * modules/modfl-ieee-tests: New file.
6362         * tests/test-modfl-ieee.c: New file.
6363
6364         New module 'modfl-ieee'.
6365         * modules/modfl-ieee: New file.
6366
6367         Tests for module 'modf-ieee'.
6368         * modules/modf-ieee-tests: New file.
6369         * tests/test-modf-ieee.c: New file.
6370
6371         New module 'modf-ieee'.
6372         * modules/modf-ieee: New file.
6373
6374         Tests for module 'modff-ieee'.
6375         * modules/modff-ieee-tests: New file.
6376         * tests/test-modff-ieee.c: New file.
6377         * tests/test-modf-ieee.h: New file.
6378
6379         New module 'modff-ieee'.
6380         * modules/modff-ieee: New file.
6381
6382 2012-02-26  Bruno Haible  <bruno@clisp.org>
6383
6384         Tests for module 'fabsl-ieee'.
6385         * modules/fabsl-ieee-tests: New file.
6386         * tests/test-fabsl-ieee.c: New file.
6387
6388         New module 'fabsl-ieee'.
6389         * modules/fabsl-ieee: New file.
6390
6391         Tests for module 'fabs-ieee'.
6392         * modules/fabs-ieee-tests: New file.
6393         * tests/test-fabs-ieee.c: New file.
6394
6395         New module 'fabs-ieee'.
6396         * modules/fabs-ieee: New file.
6397
6398         Tests for module 'fabsf-ieee'.
6399         * modules/fabsf-ieee-tests: New file.
6400         * tests/test-fabsf-ieee.c: New file.
6401         * tests/test-fabs-ieee.h: New file.
6402
6403         New module 'fabsf-ieee'.
6404         * modules/fabsf-ieee: New file.
6405
6406 2012-02-26  Bruno Haible  <bruno@clisp.org>
6407
6408         Tests for module 'fmal-ieee'.
6409         * modules/fmal-ieee-tests: New file.
6410         * tests/test-fmal-ieee.c: New file.
6411
6412         New module 'fmal-ieee'.
6413         * modules/fmal-ieee: New file.
6414
6415         Tests for module 'fma-ieee'.
6416         * modules/fma-ieee-tests: New file.
6417         * tests/test-fma-ieee.c: New file.
6418
6419         New module 'fma-ieee'.
6420         * modules/fma-ieee: New file.
6421
6422         Tests for module 'fmaf-ieee'.
6423         * modules/fmaf-ieee-tests: New file.
6424         * tests/test-fmaf-ieee.c: New file.
6425         * tests/test-fma-ieee.h: New file.
6426
6427         New module 'fmaf-ieee'.
6428         * modules/fmaf-ieee: New file.
6429
6430 2012-02-26  Bruno Haible  <bruno@clisp.org>
6431
6432         Tests for module 'ldexpl-ieee'.
6433         * modules/ldexpl-ieee-tests: New file.
6434         * tests/test-ldexpl-ieee.c: New file.
6435
6436         New module 'ldexpl-ieee'.
6437         * modules/ldexpl-ieee: New file.
6438
6439         Tests for module 'ldexp-ieee'.
6440         * modules/ldexp-ieee-tests: New file.
6441         * tests/test-ldexp-ieee.c: New file.
6442
6443         New module 'ldexp-ieee'.
6444         * modules/ldexp-ieee: New file.
6445
6446         Tests for module 'ldexpf-ieee'.
6447         * modules/ldexpf-ieee-tests: New file.
6448         * tests/test-ldexpf-ieee.c: New file.
6449         * tests/test-ldexp-ieee.h: New file.
6450
6451         New module 'ldexpf-ieee'.
6452         * modules/ldexpf-ieee: New file.
6453
6454 2012-02-26  Bruno Haible  <bruno@clisp.org>
6455
6456         Refactor frexp*-ieee tests.
6457         * tests/test-frexp-ieee.h: New file.
6458         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
6459         (main): Just call test_function.
6460         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
6461         (main): Just call test_function.
6462         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
6463         (main): Just call test_function.
6464         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
6465         * modules/frexp-ieee-tests (Files): Likewise.
6466         * modules/frexpl-ieee-tests (Files): Likewise.
6467
6468         Tests for module 'frexpl-ieee'.
6469         * modules/frexpl-ieee-tests: New file.
6470         * tests/test-frexpl-ieee.c: New file.
6471
6472         New module 'frexpl-ieee'.
6473         * modules/frexpl-ieee: New file.
6474
6475         Tests for module 'frexp-ieee'.
6476         * modules/frexp-ieee-tests: New file.
6477         * tests/test-frexp-ieee.c: New file.
6478
6479         New module 'frexp-ieee'.
6480         * modules/frexp-ieee: New file.
6481
6482         Tests for module 'frexpf-ieee'.
6483         * modules/frexpf-ieee-tests: New file.
6484         * tests/test-frexpf-ieee.c: New file.
6485
6486         New module 'frexpf-ieee'.
6487         * modules/frexpf-ieee: New file.
6488
6489 2012-02-26  Bruno Haible  <bruno@clisp.org>
6490
6491         roundl-ieee tests: More tests.
6492         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6493         (main): Add tests for [MX] shaded specification in POSIX.
6494         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6495         (Depends-on): Add isnanl-nolibm.
6496
6497         round-ieee tests: More tests.
6498         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6499         (main): Add tests for [MX] shaded specification in POSIX.
6500         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6501         (Depends-on): Add isnand-nolibm.
6502
6503         roundf-ieee tests: More tests.
6504         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6505         (main): Add tests for [MX] shaded specification in POSIX.
6506         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6507         (Depends-on): Add isnanf-nolibm.
6508
6509         truncl-ieee tests: More tests.
6510         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6511         (main): Add tests for [MX] shaded specification in POSIX.
6512         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6513         (Depends-on): Add isnanl-nolibm.
6514
6515         trunc-ieee tests: More tests.
6516         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6517         (main): Add tests for [MX] shaded specification in POSIX.
6518         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6519         (Depends-on): Add isnand-nolibm.
6520
6521         truncf-ieee tests: More tests.
6522         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6523         (main): Add tests for [MX] shaded specification in POSIX.
6524         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6525         (Depends-on): Add isnanf-nolibm.
6526
6527         ceill-ieee tests: More tests.
6528         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6529         (main): Add tests for [MX] shaded specification in POSIX.
6530         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6531         (Depends-on): Add isnanl-nolibm.
6532
6533         ceil-ieee tests: More tests.
6534         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6535         (main): Add tests for [MX] shaded specification in POSIX.
6536         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6537         (Depends-on): Add isnand-nolibm.
6538
6539         ceilf-ieee tests: More tests.
6540         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6541         (main): Add tests for [MX] shaded specification in POSIX.
6542         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6543         (Depends-on): Add isnanf-nolibm.
6544
6545         floorl-ieee tests: More tests.
6546         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6547         (main): Add tests for [MX] shaded specification in POSIX.
6548         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6549         (Depends-on): Add isnanl-nolibm.
6550
6551         floor-ieee tests: More tests.
6552         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6553         (main): Add tests for [MX] shaded specification in POSIX.
6554         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6555         (Depends-on): Add isnand-nolibm.
6556
6557         floorf-ieee tests: More tests.
6558         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6559         (main): Add tests for [MX] shaded specification in POSIX.
6560         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6561         (Depends-on): Add isnanf-nolibm.
6562
6563 2012-02-26  Bruno Haible  <bruno@clisp.org>
6564
6565         fpieee: More comments.
6566         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
6567
6568 2012-02-25  Bruno Haible  <bruno@clisp.org>
6569
6570         Tests for module 'log10l'.
6571         * modules/log10l-tests: New file.
6572         * tests/test-log10l.c: New file.
6573         * tests/test-math-c++.cc: Check the declaration of log10l.
6574
6575         New module 'log10l'.
6576         * lib/math.in.h (log10l): New declaration.
6577         * lib/log10l.c: New file.
6578         * m4/log10l.m4: New file.
6579         * modules/log10l: New file.
6580         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
6581         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
6582         HAVE_DECL_LOG10L.
6583         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
6584         HAVE_DECL_LOG10L.
6585         * doc/posix-functions/log10l.texi: Mention the new module.
6586
6587 2012-02-25  Bruno Haible  <bruno@clisp.org>
6588
6589         fmodl, remainder*: Avoid wrong results due to rounding errors.
6590         * lib/fmodl.c (fmodl): Correct the result if it is not within the
6591         expected bounds.
6592         * lib/remainderf.c (remainderf): Likewise.
6593         * lib/remainder.c (remainder): Likewise.
6594         * lib/remainderl.c (remainderl): Likewise.
6595
6596 2012-02-25  Bruno Haible  <bruno@clisp.org>
6597
6598         Tests for module 'remainderl'.
6599         * modules/remainderl-tests: New file.
6600         * tests/test-remainderl.c: New file.
6601         * tests/test-math-c++.cc: Check the declaration of remainderl.
6602
6603         New module 'remainderl'.
6604         * lib/math.in.h (remainderl): New declaration.
6605         * lib/remainderl.c: New file.
6606         * m4/remainderl.m4: New file.
6607         * modules/remainderl: New file.
6608         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
6609         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
6610         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
6611         HAVE_REMAINDERL.
6612         * doc/posix-functions/remainderl.texi: Mention the new module.
6613
6614 2012-02-25  Bruno Haible  <bruno@clisp.org>
6615
6616         Tests for module 'remainderf'.
6617         * modules/remainderf-tests: New file.
6618         * tests/test-remainderf.c: New file.
6619         * tests/test-math-c++.cc: Check the declaration of remainderf.
6620
6621         New module 'remainderf'.
6622         * lib/math.in.h (remainderf): New declaration.
6623         * lib/remainderf.c: New file.
6624         * m4/remainderf.m4: New file.
6625         * modules/remainderf: New file.
6626         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
6627         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
6628         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
6629         HAVE_REMAINDERF.
6630         * doc/posix-functions/remainderf.texi: Mention the new module.
6631
6632 2012-02-25  Bruno Haible  <bruno@clisp.org>
6633
6634         remainder: Support for MSVC.
6635         * lib/math.in.h (remainder): New declaration.
6636         * lib/remainder.c: New file.
6637         * m4/remainder.m4: New file.
6638         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
6639         (Depends-on): Add math, round, fma.
6640         (configure.ac): Use results of gl_FUNC_REMAINDER.
6641         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
6642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
6643         HAVE_DECL_REMAINDER.
6644         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
6645         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
6646         * tests/test-math-c++.cc: Check the declaration of remainder.
6647         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
6648         problems are fixed.
6649
6650 2012-02-25  Bruno Haible  <bruno@clisp.org>
6651
6652         Tests for module 'fmodl'.
6653         * modules/fmodl-tests: New file.
6654         * tests/test-fmodl.c: New file.
6655         * tests/test-math-c++.cc: Check the declaration of fmodl.
6656
6657         New module 'fmodl'.
6658         * lib/math.in.h (fmodl): New declaration.
6659         * lib/fmodl.c: New file.
6660         * m4/fmodl.m4: New file.
6661         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
6662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
6663         REPLACE_FMODL.
6664         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
6665         REPLACE_FMODL.
6666         * modules/fmodl: New file.
6667         * doc/posix-functions/fmodl.texi: Mention the new module.
6668
6669 2012-02-25  Bruno Haible  <bruno@clisp.org>
6670
6671         Tests for module 'modfl'.
6672         * modules/modfl-tests: New file.
6673         * tests/test-modfl.c: New file.
6674         * tests/test-math-c++.cc: Check the declaration of modfl.
6675
6676         New module 'modfl'.
6677         * lib/math.in.h (modfl): New declaration.
6678         * lib/modfl.c: New file.
6679         * m4/modfl.m4: New file.
6680         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
6681         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
6682         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
6683         * modules/modfl: New file.
6684         * doc/posix-functions/modfl.texi: Mention the new module.
6685
6686 2012-02-25  Bruno Haible  <bruno@clisp.org>
6687
6688         Tests for module 'fabsl'.
6689         * modules/fabsl-tests: New file.
6690         * tests/test-fabsl.c: New file.
6691         * tests/test-math-c++.cc: Check the declaration of fabsl.
6692
6693         New module 'fabsl'.
6694         * lib/math.in.h (fabsl): New declaration.
6695         * lib/fabsl.c: New file.
6696         * m4/fabsl.m4: New file.
6697         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
6698         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
6699         REPLACE_FABSL.
6700         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
6701         REPLACE_FABSL.
6702         * modules/fabsl: New file.
6703         * doc/posix-functions/fabsl.texi: Mention the new module.
6704
6705 2012-02-25  Bruno Haible  <bruno@clisp.org>
6706
6707         fabs tests: More tests.
6708         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
6709         (zero): New variable.
6710         (main): Add tests for signed zero.
6711         * modules/fabs-tests (Files): Add tests/minus-zero.h.
6712
6713         fabsf tests: More tests.
6714         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
6715         (zero): New variable.
6716         (main): Add tests for signed zero.
6717         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
6718
6719 2012-02-24  Bruno Haible  <bruno@clisp.org>
6720
6721         atanl: Provide function definition on MSVC.
6722         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
6723         function pointer.
6724         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
6725
6726 2012-02-24  Bruno Haible  <bruno@clisp.org>
6727
6728         acosl: Provide function definition on MSVC.
6729         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
6730         function pointer.
6731         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
6732
6733 2012-02-24  Bruno Haible  <bruno@clisp.org>
6734
6735         asinl: Provide function definition on MSVC.
6736         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
6737         function pointer.
6738         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
6739
6740 2012-02-24  Bruno Haible  <bruno@clisp.org>
6741
6742         tanl: Provide function definition on MSVC.
6743         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
6744         function pointer.
6745         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
6746
6747 2012-02-24  Bruno Haible  <bruno@clisp.org>
6748
6749         cosl: Provide function definition on MSVC.
6750         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
6751         function pointer.
6752         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
6753
6754 2012-02-24  Bruno Haible  <bruno@clisp.org>
6755
6756         sinl: Provide function definition on MSVC.
6757         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
6758         function pointer.
6759         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
6760
6761 2012-02-24  Bruno Haible  <bruno@clisp.org>
6762
6763         logl: Provide function definition on MSVC.
6764         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
6765         function pointer.
6766         * lib/math.in.h (logl): Undefine if it does not exist as a function.
6767
6768 2012-02-24  Bruno Haible  <bruno@clisp.org>
6769
6770         expl: Provide function definition on MSVC.
6771         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
6772         function pointer.
6773         * lib/math.in.h (expl): Undefine if it does not exist as a function.
6774
6775 2012-02-24  Bruno Haible  <bruno@clisp.org>
6776
6777         sqrtl: Provide function definition on MSVC.
6778         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
6779         a function pointer.
6780         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
6781
6782 2012-02-24  Bruno Haible  <bruno@clisp.org>
6783
6784         ceill: Provide function definition on MSVC.
6785         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
6786         used as a function pointer.
6787         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
6788
6789 2012-02-24  Bruno Haible  <bruno@clisp.org>
6790
6791         floorl: Provide function definition on MSVC.
6792         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
6793         used as a function pointer.
6794         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
6795
6796 2012-02-24  Bruno Haible  <bruno@clisp.org>
6797
6798         ceilf: Provide function definition on MSVC.
6799         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
6800         used as a function pointer.
6801         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
6802
6803 2012-02-24  Bruno Haible  <bruno@clisp.org>
6804
6805         floorf: Provide function definition on MSVC.
6806         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
6807         used as a function pointer.
6808         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
6809
6810 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6811
6812         stdnoreturn: new module
6813         This implements a replacement for C11's <stdnoreturn.h>.
6814         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
6815         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
6816         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6817         * tests/test-stdnoreturn.c: New files.
6818
6819 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
6820
6821         regex: fix false multibyte matches in some regular expressions
6822         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
6823         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
6824         * lib/regex_internal.c (re_string_skip_chars):
6825         Fix miscomputation of remain_len that may cause incomplete
6826         multi-byte character and false match.
6827
6828 2012-02-24  Jim Meyering  <meyering@redhat.com>
6829
6830         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
6831         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
6832         uses with "==" *before* the call, e.g., 0 == strcmp (...)
6833         Remove now-unnecessary str''cmp obfuscation.
6834         Suggested by Akim Demaille.
6835
6836 2012-02-24  Bruno Haible  <bruno@clisp.org>
6837
6838         streq: Rename macro.
6839         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
6840         * NEWS: Mention the change.
6841         * lib/mbrtowc.c (mbrtowc): Update.
6842         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
6843         * lib/wcwidth.c (wcwidth): Update.
6844         Suggested by Akim Demaille and Jim Meyering.
6845
6846 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6847
6848         regex: fix typo in definition of MIN
6849         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
6850         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
6851
6852 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6853             Bruno Haible  <bruno@clisp.org>
6854
6855         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
6856         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
6857         entries into a stack-allocated buffer directly.
6858         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
6859
6860 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6861             Bruno Haible  <bruno@clisp.org>
6862
6863         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
6864
6865          - There were several instances of this pattern:
6866
6867              for (;;) {
6868                n = acl (f, GETACLCNT, 0, NULL);
6869                [ allocate an array A of size N ]
6870                if (acl (f, GETACL, n, a) == n)
6871                  break;
6872              }
6873
6874            This loop might never terminate if some other process is constantly
6875            manipulating the file's ACL.  The loop should be rewritten to
6876            terminate.
6877
6878          - The acl (... GETACLNT ...) call is merely an optimization; its value
6879            is merely a hint as to how big to make the array.  A better
6880            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
6881            and just guess a reasonably-big size, growing the size and trying
6882            again if it's not large enough.  This guarantees termination, and
6883            saves a system call.
6884
6885         * lib/acl-internal.h: Include <limits.h>.
6886         (MIN, SIZE_MAX): New macros.
6887         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
6888         a stack-allocated buffer, and use malloc if it does not fit. Don't
6889         use GETACLCNT.
6890         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6891
6892 2012-02-19  Bruno Haible  <bruno@clisp.org>
6893
6894         acl: Fix endless loop on Solaris with vxfs.
6895         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
6896         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
6897         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6898         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
6899         * tests/test-sameacls.c (main)[Solaris]: Likewise.
6900         Reported by Bill Jones in
6901         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
6902
6903 2012-02-19  Bruno Haible  <bruno@clisp.org>
6904
6905         acl: Fix copy-acl test failure on Solaris 11 2011-11.
6906         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
6907         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
6908         that this function returns 0 in some more cases.
6909
6910 2012-02-19  Bruno Haible  <bruno@clisp.org>
6911
6912         acl: Update doc references.
6913         * doc/acl-resources.txt: Update links to Solaris documentation.
6914
6915 2012-02-19  Bruno Haible  <bruno@clisp.org>
6916
6917         Fix test failure in many locales on Solaris 11.
6918         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
6919         'tr' arguments.
6920         * tests/test-pipe-filter-ii1.c (main): Likewise.
6921         * build-aux/bootstrap (check_versions): Run 'tr' command with range
6922         expressions in the C locale.
6923         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6924         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6925
6926 2012-02-19  Bruno Haible  <bruno@clisp.org>
6927
6928         gnulib-tool: Improve usage message.
6929         * gnulib-tool (func_usage): Move doc of --help and --version to the
6930         section "Operation modes".
6931
6932 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
6933
6934         README-release: make it easier to execute commands
6935         * top/README-release: break commands out on to separate lines.
6936
6937 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
6938
6939         GNUmakefile: simplify detection of unconfigured trees
6940         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
6941         whether the tree make is being run from is already configured or
6942         not.  Related simplifications.
6943
6944 2012-02-13  Simon Josefsson  <simon@josefsson.org>
6945
6946         * gnulib-tool (func_usage): Document --help and --version.
6947
6948 2012-02-11  Jim Meyering  <meyering@redhat.com>
6949
6950         bootstrap: don't exit 0 upon gnulib-tool failure
6951         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
6952         its exit status, not 0.
6953
6954 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
6955
6956         README-release: various improvements
6957         * top/README-release: Give a command to push changes for the
6958         release.  Add "distcheck" to list of other pre-release checks.
6959         Fix instance of "make stable" which should be "make TYPE".
6960
6961 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6962
6963         maint: replace FSF snail-mail addresses with URLs
6964         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
6965         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
6966         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
6967         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
6968         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
6969         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
6970         * lib/check-version.c, lib/check-version.h, lib/config.charset:
6971         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
6972         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
6973         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
6974         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
6975         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
6976         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
6977         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
6978         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
6979         * lib/glthread/thread.c, lib/glthread/thread.h:
6980         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
6981         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
6982         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
6983         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
6984         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
6985         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
6986         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
6987         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
6988         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
6989         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
6990         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
6991         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
6992         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
6993         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
6994         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
6995         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
6996         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
6997         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
6998         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
6999         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
7000         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
7001         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
7002         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
7003         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
7004         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
7005         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
7006         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
7007         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
7008         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
7009         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
7010         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
7011         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
7012         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
7013         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
7014         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
7015         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
7016         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
7017         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
7018         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
7019         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
7020         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
7021         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
7022         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
7023         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
7024         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
7025         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
7026         * tests/test-poll.c, tests/test-quotearg-simple.c:
7027         * tests/test-quotearg.c, tests/test-quotearg.h:
7028         * tests/test-round-ieee.c, tests/test-round1.c:
7029         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
7030         * tests/test-roundl-ieee.c, tests/test-roundl.c:
7031         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
7032         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
7033         * tests/test-strerror.c, tests/test-strerror_r.c:
7034         * tests/test-strsignal.c, tests/test-strverscmp.c:
7035         * tests/test-xmemdup0.c:
7036         Replace FSF snail mail addresses with URLs, as per GNU coding
7037         standards.  See glibc bug
7038         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
7039
7040 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7041
7042         README-release: capitalize a word and split a line
7043         * top/README-release: Fix punctuation and spacing.
7044
7045 2012-02-08  Akim Demaille  <demaille@gostai.com>
7046
7047         fatal-signal: use C prototypes (with explicit void).
7048         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
7049         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
7050
7051 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7052
7053         regex: spelling fix
7054         * lib/regexec.c: spelling fix
7055
7056         regex: rely on stdint.h for SIZE_MAX
7057         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
7058
7059 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7060
7061         regex: merge glibc changes
7062
7063         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
7064         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
7065         (init_word_char): Work even if bitset words are not exactly 32 or
7066         64 bits wide.  Don't assume there are no padding bits.
7067         * lib/regex.c [_LIBC]: Do not include <config.h>.
7068         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
7069         and -Wtype-limits.
7070         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
7071         needless disagreement with glibc.  All uses changed.  Define it to
7072         1 only if _GNU_SOURCE, to match glibc.
7073         (_REG_RM_NAME): Remove; no longer needed, since the names in
7074         question are now all protected by __USE_GNU.
7075         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
7076         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
7077         * lib/regex_internal.h (MIN): New macro.
7078
7079         2012-01-03 Ulrich Drepper <drepper@gmail.com>
7080         * lib/regcomp.c (init_word_char): Optimize regex a bit.
7081
7082         2011-12-30 Jakub Jelinek <jakub@redhat.com>
7083         * lib/regex_internal.c (re_string_fetch_byte_case):
7084         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
7085         is miscompiled, and it turns out it is because of an incorrect
7086         attribute on re_string_fetch_byte_case.  Unlike
7087         re_string_peek_byte_case, this one is really not pure, it modifies
7088         memory (increments pstr->cur_idx), and with the pure attribute GCC
7089         assumed it doesn't and it cached the presumed value of
7090         regexp->cur_idx in a variable across the
7091          for (;; ++i)
7092            {
7093              if (i >= BRACKET_NAME_BUF_SIZE)
7094                return REG_EBRACK;
7095              if (token->type == OP_OPEN_CHAR_CLASS)
7096                ch = re_string_fetch_byte_case (regexp);
7097              else
7098                ch = re_string_fetch_byte (regexp);
7099              if (re_string_eoi(regexp))
7100                return REG_EBRACK;
7101              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
7102                break;
7103              elem->opr.name[i] = ch;
7104            }
7105
7106         2011-11-29 Andreas Schwab <schwab@redhat.com>
7107         * lib/regcomp.c (build_equiv_class):
7108         Fix access after end of search string in regex matcher.
7109
7110         2011-11-12 Ulrich Drepper <drepper@redhat.com>
7111         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
7112
7113         2011-10-12 Ulrich Drepper <drepper@redhat.com>
7114         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
7115
7116         2011-10-11 Ulrich Drepper <drepper@redhat.com>
7117         * lib/regcomp.c (parse_branch, parse_sub_exp):
7118         More regex memory leak fixes and tests.
7119         (parse_sub_exp, parse_bracket_exp):
7120         Fix memory leak for some invalid regular expressions.
7121
7122         2011-05-28 Ulrich Drepper <drepper@gmail.com>
7123         * lib/regex_internal.c, lib/regexec.c:
7124         Fix unnecessary overallocation due to incomplete character.  When
7125         incomplete characters are found at the end of a string the code
7126         ran amok and allocated lots of memory.  Stricter limits are now in
7127         place.
7128
7129         2011-05-20 Reuben Thomas <rrt@sc3d.org>
7130         * lib/regex.h: Update documentation.
7131
7132         2011-05-16 Aharon Robbins <arnold@skeeve.com>
7133         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
7134
7135         2010-05-05 Andreas Schwab <schwab@redhat.com>
7136         * lib/regexec.c (find_collation_sequence_value):
7137         Fix lookup of collation sequence value during regexp matching.
7138
7139         2010-01-22 Ulrich Drepper <drepper@redhat.com>
7140         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
7141
7142         2008-01-16 Ulrich Drepper <drepper@redhat.com>
7143         * lib/regex.h: Cleanup namespace.
7144
7145         2007-11-26 Ulrich Drepper <drepper@redhat.com>
7146         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
7147
7148         2007-08-26 Ulrich Drepper <drepper@redhat.com>
7149         * lib/regex_internal.h: Prevent some declarations and definitions
7150         to be seen when used in tests.
7151
7152         2005-05-06 Ulrich Drepper <drepper@redhat.com>
7153         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
7154         __libc_lock_* macros if not _LIBC.
7155         (struct re_dfa_t): Add lock.
7156
7157 2012-02-07  Eric Blake  <eblake@redhat.com>
7158
7159         maint.mk: also prohibit lower-case @var@
7160         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
7161         lower case, like @top_srcdir@.
7162
7163 2012-02-04  Eric Blake  <eblake@redhat.com>
7164
7165         canonicalize: avoid uninitialized memory use
7166         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
7167         random '/' left in dest.
7168         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
7169
7170 2012-02-04  Bruno Haible  <bruno@clisp.org>
7171
7172         isatty: Fix test failure of ptsname_r on native Windows.
7173         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
7174         and don't set errno.
7175         (isatty): Test first whether fd is valid. Set errno when returning 0.
7176
7177 2012-02-04  Bruno Haible  <bruno@clisp.org>
7178
7179         spawn-pipe tests: Fix a NULL program name in a diagnostic.
7180         * tests/test-spawn-pipe-main.c: Include progname.h.
7181         (main): Invoke set_program_name.
7182         * modules/spawn-pipe-tests (Depends-on): Add progname.
7183
7184         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
7185         * tests/test-nonblocking-socket-main.c: Include progname.h.
7186         (main): Invoke set_program_name.
7187         * modules/nonblocking-socket-tests (Depends-on): Add progname.
7188
7189         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
7190         * tests/test-nonblocking-pipe-main.c: Include progname.h.
7191         (main): Invoke set_program_name.
7192         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
7193
7194 2012-02-04  Eric Blake  <eblake@redhat.com>
7195
7196         canonicalize-lgpl: fix // handling
7197         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
7198
7199         canonicalize: fix // handling
7200         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
7201         /// to //, since only // is special.
7202
7203 2012-02-04  Bruno Haible  <bruno@clisp.org>
7204
7205         ioctl: Fix test failure on native Windows.
7206         * lib/ioctl.c: Include msvc-nothrow.h.
7207         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
7208
7209 2012-02-04  Bruno Haible  <bruno@clisp.org>
7210
7211         fsync: Avoid test failure on native Windows.
7212         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
7213         read-only.
7214
7215 2012-02-04  Bruno Haible  <bruno@clisp.org>
7216
7217         sys_select: Avoid syntax error on OpenBSD 5.0.
7218         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
7219         currently being included, just include the system's <sys/select.h>.
7220
7221 2012-02-04  Bruno Haible  <bruno@clisp.org>
7222
7223         sys_select: Avoid syntax error on OpenBSD 5.0.
7224         * lib/sys_select.in.h: Include <signal.h> only after the include_next
7225         <sys/select.h>, not before.
7226         Reported by Jiri B <jirib@devio.us>.
7227
7228 2012-02-04  Bruno Haible  <bruno@clisp.org>
7229
7230         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
7231         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
7232         global variables.
7233         * tests/test-get-rusage-data.c (main): Likewise.
7234         Reported by Jim Meyering.
7235
7236 2012-02-04  Bruno Haible  <bruno@clisp.org>
7237
7238         stdioext: Fix last commit.
7239         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
7240
7241 2012-02-03  Bruno Haible  <bruno@clisp.org>
7242
7243         stdioext: Add tentative support for Plan9.
7244         * lib/stdio-impl.h: Include <errno.h>.
7245         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
7246         * lib/freadable.c (freadable): Likewise.
7247         * lib/fwritable.c (fwritable): Likewise.
7248         * lib/fbufmode.c (fbufmode): Likewise.
7249         * lib/freading.c (freading): Likewise.
7250         * lib/fwriting.c (fwriting): Likewise.
7251         * lib/freadptr.c (freadptr): Likewise.
7252         * lib/freadseek.c (freadptrinc): Likewise.
7253         * lib/freadahead.c (freadahead): Likewise.
7254         * lib/fpurge.c (fpurge): Likewise.
7255         * lib/fseeko.c (rpl_fseeko): Likewise.
7256         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
7257         Reported by Jens Staal <staal1978@gmail.com>.
7258
7259 2012-02-02  Jim Meyering  <meyering@redhat.com>
7260
7261         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
7262         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
7263         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
7264         not even to try to add the attribute.  Instead, add a pragma to suppress
7265         the suggestion/warning.
7266
7267 2012-01-31  Karl Berry  <karl@gnu.org>
7268
7269         setstate doc: typo.
7270         * doc/posix-functions/setstate.texi (setstate): { not (.
7271
7272 2012-01-31  Bruno Haible  <bruno@clisp.org>
7273
7274         popen: Make more robust on Windows.
7275         * lib/popen.c: On native Windows, use the _popen based code even if
7276         HAVE_POPEN is set.
7277         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
7278         environment variable on native Windows.
7279
7280 2012-01-30  Bruno Haible  <bruno@clisp.org>
7281
7282         pclose: Fix typo.
7283         * lib/stdio.in.h (pclose): Fix typo in warning message.
7284
7285 2012-01-30  Bruno Haible  <bruno@clisp.org>
7286
7287         doc about getlogin_r, setstate.
7288         * doc/posix-functions/getlogin_r.texi: List the incompatible
7289         declaration problem under "not fixed by gnulib".
7290         * doc/posix-functions/setstate.texi: Mention incompatible declaration
7291         problem on Solaris 11 and other platforms.
7292
7293 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
7294             Bruno Haible  <bruno@clisp.org>
7295
7296         poll tests: Make test more robust.
7297         * tests/test-poll.c: Include macros.h.
7298         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
7299         return value of various I/O operations.
7300         * modules/poll-tests (Files): Add tests/macros.h.
7301
7302 2012-01-30  Bruno Haible  <bruno@clisp.org>
7303
7304         sys_stat: Fix support for mingw64 and MSVC.
7305         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
7306         header files already do it.
7307         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
7308         stat itself.
7309         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7310
7311 2012-01-30  Bruno Haible  <bruno@clisp.org>
7312
7313         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
7314         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
7315         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
7316
7317 2012-01-29  Bruno Haible  <bruno@clisp.org>
7318
7319         quotearg: Fix test failure on MacOS X 10.5.
7320         * tests/test-quotearg-simple.c: Include localcharset.h.
7321         (main): If the locale encoding is not ASCII, bypass the tests of
7322         locale_quoting_style and clocale_quoting_style.
7323         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
7324
7325 2012-01-29  Jim Meyering  <meyering@redhat.com>
7326
7327         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
7328         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
7329         detect uses of canonicalize_file_name.
7330
7331 2012-01-28  Bruno Haible  <bruno@clisp.org>
7332
7333         test-framework-sh: Fix test failure with AIX 7.1 diff.
7334         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
7335         in column 1, like 'diff -c' does.
7336         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
7337         whether 'diff -u' is used. Instead, test whether the output contains
7338         some '@' character.
7339
7340 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7341
7342         strtoimax: eliminate need for stdint.h, inttypes.h checks
7343         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
7344         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
7345         the prerequisites for a recently-introduced strtoimax test.
7346         I guess this might cause strtoimax to be replaced when not
7347         strictly necessary on older hosts, but this shouldn't introduce
7348         any bugs and it should make Emacs 'configure' faster on typical
7349         modern hosts.  Problem discovered when importing the latest gnulib
7350         to an Emacs test version.
7351         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
7352
7353 2012-01-28  Bruno Haible  <bruno@clisp.org>
7354
7355         sys_time: Override 'struct timeval' on some native Windows platforms.
7356         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
7357         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
7358         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
7359         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
7360         needs to be overridden.
7361         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
7362         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
7363         * tests/test-sys_select.c: Check that the tv_sec member has the same
7364         size as a 'time_t'.
7365         * tests/test-sys_time.c: Likewise.
7366         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
7367         is set, set also REPLACE_GETTIMEOFDAY.
7368         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
7369         convert the resulting 'struct timeval' before returning.
7370         * lib/select.c: Include <sys/time.h>.
7371         (select, timeval): Undefine at the right place.
7372         * modules/select (Depends-on): Add sys_time.
7373         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
7374         some Windows platforms.
7375         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7376
7377 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7378
7379         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
7380         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
7381         an integer.
7382         * lib/fcntl.c (dupfd): Likewise.
7383         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
7384
7385 2012-01-28  Bruno Haible  <bruno@clisp.org>
7386
7387         fcntl: Avoid compilation error on native Windows.
7388         * modules/fcntl (Depends-on): Add 'close'.
7389
7390 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7391
7392         select, poll, isatty: Avoid warnings on x86_64 mingw64.
7393         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
7394         pointer to an integer.
7395         * lib/poll.c (IsConsoleHandle): Likewise.
7396         * lib/isatty.c (IsConsoleHandle): Likewise.
7397
7398 2012-01-28  Jim Meyering  <meyering@redhat.com>
7399
7400         doc: clarify README-release
7401         * top/README-release: Clarify: you should make a point to have
7402         the latest stable versions of build tools in your PATH, and the
7403         reference to buildreq is solely for its list of tool names, not
7404         for its minimal-functional version numbers.
7405         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
7406
7407         maint.mk: use more readable (yet functionally equivalent) quoting
7408         It is common to quote a single quote in a single quoted string like
7409         this:  '...'\''...'.  Unless you know the idiom, that looks like
7410         gibberish, so prefer to double-quote the string when possible.
7411         Then you can use a more readable, lone single quote: "...'..."
7412         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
7413         "don't" is more readable than the equivalent 'don'\''t'.
7414         (sc_cast_of_x_alloc_return_value): Likewise.
7415         (sc_cast_of_alloca_return_value): Likewise.
7416         (sc_makefile_path_separator_check): Similar: use ":" in '...',
7417         rather than '\'':'\''.
7418
7419 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7420
7421         stdalign: relax _Alignof and tighten _Alignas test
7422         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
7423         as it was too strict: alignof must divide offsetof, but it need
7424         not equal offsetof.  Inspired by Joseph S. Myers's comment
7425         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
7426         Conversely, tighten the _Alignas test a bit, as the resulting
7427         alignment must be exactly 8.
7428
7429 2012-01-27  Bruno Haible  <bruno@clisp.org>
7430
7431         stdalign: Document the last change.
7432         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
7433
7434 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7435
7436         stdalign: check that alignof and offsetof are consistent
7437         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
7438         Problem reported for gnulib by Richard W.M. Jones in
7439         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
7440
7441 2012-01-27  Jim Meyering  <meyering@redhat.com>
7442
7443         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
7444         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
7445         convert a sequence with gaps to the minimal containing range.
7446         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
7447         * tests/test-update-copyright.sh: Test for this.
7448         The FSF confirmed it is ok to do this, assuming there is at
7449         least one significant change per year in the affected range:
7450         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
7451
7452 2012-01-26  Bruno Haible  <bruno@clisp.org>
7453
7454         pipe2: refine doc about thread-safety
7455         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
7456         multithread-safety problem.
7457         * doc/glibc-functions/accept4.texi: Likewise.
7458
7459 2012-01-26  Bruno Haible  <bruno@clisp.org>
7460
7461         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
7462         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
7463         In the test program, include <fcntl.h>, for O_RDONLY.
7464
7465 2012-01-26  Eric Blake  <eblake@redhat.com>
7466
7467         pipe2: document lack of thread-safety in replacement
7468         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
7469         issue in replacement.
7470         * doc/glibc-functions/accept4.texi (accept4): Likewise.
7471         Based on a report by Eric Wong.
7472
7473 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7474             Bruno Haible  <bruno@clisp.org>
7475
7476         malloca: Avoid warnings on x86_64 mingw64.
7477         * lib/malloca.c: Include <stdint.h>.
7478         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
7479         * modules/malloca (Depends-on): Add stdint.
7480         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
7481
7482 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7483
7484         obstack: remove __STDC__ conditionals
7485         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
7486         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
7487         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
7488         m4/include_next.m4 as the only gnulib-maintained places that still
7489         refer to __STDC__.
7490
7491 2012-01-24  Bruno Haible  <bruno@clisp.org>
7492
7493         havelib: Modern quoting.
7494         * build-aux/config.rpath: Quote 'like this', not `like this', as per
7495         the recent change to the GNU coding standards.
7496
7497 2012-01-24  Bruno Haible  <bruno@clisp.org>
7498
7499         stdint: Improve support for Android.
7500         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
7501         Reported by Simon Josefsson <simon@josefsson.org>.
7502
7503 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7504
7505         doc: omit trailing empty lines from INSTALL etc.
7506         * doc/Makefile (INSTALL): Omit trailing empty lines.
7507         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
7508         omit trailing empty lines.  This simplifies the build procedure.
7509
7510 2012-01-23  Jim Meyering  <meyering@redhat.com>
7511
7512         tests: avoid spurious warnings about gl_sockets_startup
7513         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
7514         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
7515         reporting a "statement with no effect".
7516         * tests/test-accept.c (main): Mark as "(void)".
7517         * tests/test-accept4.c (main): Likewise.
7518         * tests/test-bind.c (main): Likewise.
7519         * tests/test-connect.c (main): Likewise.
7520         * tests/test-getpeername.c (main): Likewise.
7521         * tests/test-getsockname.c (main): Likewise.
7522         * tests/test-getsockopt.c (main): Likewise.
7523         * tests/test-listen.c (main): Likewise.
7524         * tests/test-recv.c (main): Likewise.
7525         * tests/test-recvfrom.c (main): Likewise.
7526         * tests/test-send.c (main): Likewise.
7527         * tests/test-sendto.c (main): Likewise.
7528         * tests/test-setsockopt.c (main): Likewise.
7529         * tests/test-shutdown.c (main): Likewise.
7530
7531 2012-01-21  Bruno Haible  <bruno@clisp.org>
7532
7533         locale-fr.m4: Fix for Android.
7534         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
7535         failure of the test program on Bionic libc.
7536
7537 2012-01-21  Jim Meyering  <meyering@redhat.com>
7538
7539         bootstrap: fail when bootstrap_post_import_hook fails
7540         Otherwise, it's far too easy to miss diagnostics emitted
7541         between gnulib-tool's output and that of running configure.
7542         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
7543
7544 2012-01-17  Jim Meyering  <meyering@redhat.com>
7545
7546         maint: enable sc_trailing_blank
7547         * build-aux/pmccabe.css: Remove trailing blanks.
7548         * doc/acl-cygwin.txt: Likewise.
7549         * doc/gnu-oids.texi: Likewise
7550         * cfg.mk: Enable sc_trailing_blank.
7551         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
7552
7553 2012-01-17  Jim Meyering  <meyering@redhat.com>
7554
7555         maint: enable sc_prohibit_openat_without_use
7556         * cfg.mk: Enable sc_prohibit_openat_without_use.
7557         Exempt lib/selinux-at.c.
7558
7559 2012-01-17  Jim Meyering  <meyering@redhat.com>
7560
7561         maint: enable sc_prohibit_cloexec_without_use
7562         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
7563         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
7564
7565 2012-01-17  Jim Meyering  <meyering@redhat.com>
7566
7567         maint: enable sc_prohibit_intprops_without_use
7568         * cfg.mk: Enable sc_prohibit_intprops_without_use
7569         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
7570
7571 2012-01-17  Jim Meyering  <meyering@redhat.com>
7572
7573         maint: enable sc_prohibit_hash_pjw_without_use
7574         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
7575         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
7576         to match any use of \<hash_pjw\>, i.e., not necessarily with a
7577         following " (".
7578
7579 2012-01-17  Jim Meyering  <meyering@redhat.com>
7580
7581         maint: enable double-word-prohibiting rule
7582         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
7583         Exempt three files.
7584
7585 2012-01-17  Jim Meyering  <meyering@redhat.com>
7586
7587         maint: remove empty lines at EOF, but excluding modules/*
7588         Apply syntax rules at home as well as abroad.  Most changes
7589         were induced by running this:
7590           make srcdir=. _build-aux=build-aux -f top/maint.mk \
7591             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
7592             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
7593         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
7594         Exempt modules/* and two binary files.
7595         Also exempt doc/INSTALL*, per request from Bruno Haible.
7596         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
7597         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
7598         * doc/Copyright/request-assign.future: Likewise.
7599         * doc/Copyright/request-disclaim.changes: Likewise.
7600         * doc/INSTALL: Likewise.
7601         * doc/INSTALL.ISO: Likewise.
7602         * doc/INSTALL.UTF-8: Likewise.
7603         * doc/acl-cygwin.txt: Likewise.
7604         * doc/acl-resources.txt: Likewise.
7605         * doc/fdl-1.2.texi: Likewise.
7606         * doc/fdl-1.3.texi: Likewise.
7607         * doc/fdl.texi: Likewise.
7608         * lib/argp-pin.c: Likewise.
7609         * lib/round.c: Likewise.
7610         * lib/unicase/u16-totitle.c: Likewise.
7611         * lib/unictype/block_test.c: Likewise.
7612         * lib/uninorm/canonical-decomposition.c: Likewise.
7613         * m4/README: Likewise.
7614         * m4/relocatable-lib.m4: Likewise.
7615         * tests/test-isnand-nolibm.c: Likewise.
7616         * tests/test-isnand.c: Likewise.
7617         * tests/uninorm/NormalizationTest.txt: Likewise.
7618
7619 2012-01-17  Jim Meyering  <meyering@redhat.com>
7620
7621         maint: add framework to run syntax-check rules against gnulib sources
7622         * cfg.mk: New file, to disable all currently-failing tests.
7623         We'll enable them one by one, as they are made to pass.
7624         * Makefile (sc_maint): New rule.
7625
7626 2012-01-21  Bruno Haible  <bruno@clisp.org>
7627
7628         stdint: Add support for Android.
7629         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
7630         include the system's <stdint.h>.
7631         Reported by Simon Josefsson <simon@josefsson.org>.
7632
7633 2012-01-19  Jim Meyering  <meyering@redhat.com>
7634
7635         bootstrap: add bootstrap_post_import_hook
7636         Bison does still need something like the gnulib_mk_hook whose
7637         invocation I had to remove along with slurp in commit 767ccd40.
7638         Technically, we could get along without it, but doing so would
7639         have required living with a warning and a mandatory post-bootstrap
7640         automake rerun.
7641         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
7642         (bootstrap_post_import_hook): New function.
7643         Invoke it after gnulib-tool --import and before autoreconf.
7644
7645 2012-01-18  Jim Meyering  <meyering@redhat.com>
7646
7647         gitlog-to-changelog: don't use "no_"-prefixed variable name
7648         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
7649         to enable both --cluster and --no-cluster.  Change variable name,
7650         s/\$no_cluster/$cluster/, and reverse usage to match.
7651
7652         gitlog-to-changelog: use "||", not "or" in expressions
7653         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
7654         expressions.
7655
7656 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
7657
7658         gitlog-to-changelog: new option --no-cluster
7659         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
7660         clustering of adjacent commit messages.
7661
7662 2012-01-17  Jim Meyering  <meyering@redhat.com>
7663
7664         maint: spell file systems with two words, not one
7665         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
7666         two words, not one.
7667
7668 2012-01-16  Jim Meyering  <meyering@redhat.com>
7669
7670         bootstrap: add a FIXME comment to ensure we eventually remove the hack
7671         * build-aux/bootstrap (gnulib_tool_options): Add comment.
7672
7673 2012-01-16  Eric Blake  <eblake@redhat.com>
7674
7675         bootstrap: cater to autoconf 2.59
7676         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
7677         is not available.
7678
7679         bootstrap: properly check for libtool
7680         * build-aux/bootstrap (libtoolize): Also run libtool when older
7681         usage is detected.
7682
7683 2012-01-15  Bruno Haible  <bruno@clisp.org>
7684
7685         Improve support for MSVC 9.
7686         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
7687         clashes on MSVC.
7688         * lib/fcntl.in.h: Likewise.
7689         * lib/stdlib.in.h: Likewise.
7690         * lib/sys_stat.in.h: Likewise.
7691
7692 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
7693
7694         gnupload: we hold the master copy of this script now
7695         For motivation and more information, see:
7696         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
7697         * build-aux/gnupload: Make it clear in the heading comments that the
7698         master copy of this file is maintained by gnulib.  Since we are at
7699         it, bump its copyright year and ...
7700         ($scriptversion): ... the date in its version.
7701         ($usage): Patches and bug reports should be sent to the gnulib list,
7702         not the automake one.
7703         * config/srclist.txt: Don't try to sync 'gnupload' from automake
7704         anymore.
7705
7706 2012-01-15  Bruno Haible  <bruno@clisp.org>
7707
7708         Fix module 'random'.
7709         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
7710         initstate, setstate are declared.
7711
7712 2012-01-14  Bruno Haible  <bruno@clisp.org>
7713
7714         Tests for module 'random'.
7715         * modules/random-tests: New file.
7716         * tests/test-random.c: New file, based on tests/test-random_r.c.
7717
7718         New module 'random'.
7719         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
7720         declarations.
7721         * lib/random.c: New file, based on glibc/stdlib/random.c.
7722         * m4/random.m4: New file.
7723         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
7724         HAVE_RANDOM.
7725         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
7726         * modules/random: New file.
7727         * config/srclist.txt: Add an entry for random.c.
7728         * doc/posix-functions/random.texi: Mention the 'random' module.
7729         * doc/posix-functions/initstate.texi: Likewise.
7730         * doc/posix-functions/setstate.texi: Likewise.
7731         * doc/posix-functions/srandom.texi: Likewise.
7732
7733 2012-01-12  Bruno Haible  <bruno@clisp.org>
7734
7735         random_r: Use common idioms.
7736         * lib/random_r.c: Include <stdlib.h> first.
7737
7738         random_r: Override incompatible API on AIX, OSF/1.
7739         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
7740         Override the system function if REPLACE_RANDOM_R is 1.
7741         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
7742         and OSF/1, set REPLACE_RANDOM_R.
7743         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
7744         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
7745         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
7746         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
7747         * doc/glibc-functions/random_r.texi: Likewise.
7748         * doc/glibc-functions/setstate_r.texi: Likewise.
7749
7750         random_r: Support for MSVC 9.
7751         * lib/random_r.c: Include stdint.h, not inttypes.h.
7752
7753 2012-01-12  Eric Blake  <eblake@redhat.com>
7754
7755         inet_ntop: guard extra work by IF_LINT
7756         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
7757         better code generation when not checking for warnings.
7758         Suggested by Paul Eggert and Jim Meyering.
7759
7760         strptime: fix regression on mingw
7761         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
7762         Fix regression.  Reported by Bruno Haible.
7763
7764 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
7765             Bruno Haible  <bruno@clisp.org>
7766
7767         copy-file: add error-code-returning variant.
7768         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
7769         (qcopy_file_preserving): New declaration.
7770         * lib/copy-file.c (qcopy_file_preserving): Renamed from
7771         copy_file_preserving. Change return type to 'int'. Don't emit an error
7772         message here.
7773         (copy_file_preserving): New function.
7774         * tests/test-copy-file.c: Include <stdlib.h>.
7775         (main): Test qcopy_file_preserving if the environment variable
7776         NO_STDERR_OUTPUT is set.
7777         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
7778         with NO_STDERR_OUTPUT
7779         * tests/test-copy-file-2.sh: Likewise.
7780
7781 2012-01-10  Bruno Haible  <bruno@clisp.org>
7782
7783         copy-file: Use 'quote' module consistently.
7784         * lib/copy-file.c (copy_file_preserving): Use quote().
7785
7786         copy-file: Refactor.
7787         * lib/copy-file.c: Include quote.h.
7788         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
7789         message here.
7790         * modules/copy-file (Depends-on): Add quote.
7791
7792         acl: Export qcopy_acl.
7793         * lib/acl.h (qcopy_acl): New declaration.
7794         * lib/copy-acl.c (qcopy_acl): Make non-static.
7795
7796         acl: Rename a local variable.
7797         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
7798
7799         acl: Align return values of copy_acl and qcopy_acl.
7800         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
7801         maybe < -1.
7802
7803 2012-01-11  Eric Blake  <eblake@redhat.com>
7804
7805         strptime: silence gcc warnings
7806         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
7807         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
7808         Reported by Daniel P. Berrange.
7809
7810         inet_ntop: silence gcc warning
7811         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
7812         Reported by Daniel P. Berrange.
7813
7814 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
7815
7816         getloadavg test: skip the test on GNU/Linux without /proc mounted
7817         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
7818         file.  When /proc is not mounted, it always fails with ENOENT.
7819         * tests/test-getloadavg.c (main): Treat ENOENT return code from
7820         getloadavg(3) the same way as ENOSYS and ENOTSUP.
7821
7822 2012-01-10  Bruno Haible  <bruno@clisp.org>
7823
7824         regex: Avoid link error on MSVC 9.
7825         * modules/regex (Depends-on): Add wctype.
7826
7827 2012-01-10  Bruno Haible  <bruno@clisp.org>
7828
7829         doc: Mention --with-tests option.
7830         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
7831         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
7832         --with-tests.
7833         Reported by Reuben Thomas.
7834
7835 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
7836
7837         users.txt: order package names lexicographically.
7838         * users.txt: Order package names lexicographically.
7839
7840 2012-01-10  Jim Meyering  <meyering@redhat.com>
7841
7842         maint.mk: fix description in comment
7843         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
7844
7845         ignore-value: remove deprecated ignore_ptr function
7846         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
7847         * NEWS: Note this.
7848
7849 2012-01-09  Jim Meyering  <meyering@redhat.com>
7850
7851         test-init.sh: avoid a subshell
7852         * tests/test-init.sh: Remove protective subshell.
7853         Suggested by Bernhard Voelker.  While a subshell is normally
7854         required to protect against older shells (Solaris, FreeBSD) that
7855         warn about a missing program before performing redirection, the
7856         shell-selection tests performed by init.sh probably exclude any
7857         offending shell.
7858
7859 2012-01-08  Bruno Haible  <bruno@clisp.org>
7860
7861         setlocale tests: Avoid test failure on Solaris 11 2011-11.
7862         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
7863         variable.
7864
7865 2012-01-08  Bruno Haible  <bruno@clisp.org>
7866
7867         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
7868         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7869         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7870         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
7871         macro.
7872         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
7873         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7874         * lib/spawn_faction_addopen.c: Add workaround implementation if
7875         HAVE_WORKING_POSIX_SPAWN.
7876         * modules/spawn (Makefile): Substitute
7877         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7878         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
7879         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
7880         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7881         (Depends-on): Update conditions.
7882         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
7883         the Solaris 11 bug.
7884
7885 2012-01-08  Bruno Haible  <bruno@clisp.org>
7886
7887         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
7888         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7889         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7890         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
7891         macro.
7892         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
7893         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7894         * lib/spawn_faction_adddup2.c: Add workaround implementation if
7895         HAVE_WORKING_POSIX_SPAWN.
7896         * modules/spawn (Makefile): Substitute
7897         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7898         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
7899         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
7900         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7901         (Depends-on): Update conditions.
7902         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
7903         the Solaris 11 bug.
7904
7905 2012-01-08  Bruno Haible  <bruno@clisp.org>
7906
7907         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
7908         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7909         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7910         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
7911         HAVE_WORKING_POSIX_SPAWN.
7912         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
7913         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
7914         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7915         * lib/spawn_faction_addclose.c: Add workaround implementation if
7916         HAVE_WORKING_POSIX_SPAWN.
7917         * modules/spawn (Makefile): Substitute
7918         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7919         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
7920         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
7921         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7922         (Depends-on): Update conditions.
7923         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7924         the Solaris 11 bug.
7925
7926 2012-01-08  Bruno Haible  <bruno@clisp.org>
7927
7928         doc: Update for Solaris 11 2011-11.
7929         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
7930         * m4/printf.m4: Update comments.
7931
7932 2012-01-08  Bruno Haible  <bruno@clisp.org>
7933
7934         mktime: Avoid compilation error on Solaris 11.
7935         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
7936
7937 2012-01-08  Bruno Haible  <bruno@clisp.org>
7938
7939         doc: Small fix.
7940         * doc/posix-headers/nl_types.texi: Correct platforms list.
7941
7942 2012-01-08  Simon Josefsson  <simon@josefsson.org>
7943
7944         Add lgpl-3.0 module.
7945         * MODULES.html.sh (Support for building documentation): Add
7946         lgpl-3.0.
7947         * modules/lgpl-3.0: New file.
7948
7949 2012-01-08  Jim Meyering  <meyering@redhat.com>
7950
7951         select.c: indent with spaces, not TABs
7952         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
7953
7954 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7955
7956         quotearg: do not use grave accent for left quote
7957         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
7958         locale_quoting_style.
7959         (quotearg_buffer_restyled): Fix example.
7960         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
7961
7962 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7963
7964         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
7965         Most programs do not have translation catalogs for English and much
7966         less separate catalogs for British and American English.  Drop the
7967         suggestion to translators about these two, and provide it
7968         automatically for Unicode locales.  Like most programs, even those
7969         using American English, we use single quotation marks.  This conflicts
7970         with the American typographic convention, but works better when you
7971         cite the entire error message within double quotes.  It also tries not
7972         to clash with established practice and with what non-gnulib programs
7973         will usually do.
7974         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
7975         using an UTF-8 or GB-18030 locale.  The list of other locales with
7976         quotes was provided by Bruno Haible.
7977         (quotearg_buffer_restyled): Adjust instructions to translators.
7978         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
7979         text, since this would be wrong when using Unicode.
7980         * modules/quotearg: Depend on c-strcaseeq.
7981
7982 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7983
7984         quotearg: fix Wikipedia link
7985         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
7986
7987 2012-01-07  Simon Josefsson  <simon@josefsson.org>
7988
7989         Fix for mingw with MSVC9.
7990         * m4/ld-version-script.m4: Check that compiler rejects version
7991         scripts with syntax errors.  Reported by Bruno Haible
7992         <bruno@clisp.org>.
7993
7994 2012-01-06  Bruno Haible  <bruno@clisp.org>
7995
7996         Talk about "native Windows API", not "Woe32".
7997         * lib/accept4.c: Update comments to mention native Windows.
7998         * lib/execute.c: Likewise.
7999         * lib/fatal-signal.c: Likewise.
8000         * lib/localcharset.c: Likewise.
8001         * lib/nanosleep.c: Likewise.
8002         * lib/nl_langinfo.c: Likewise.
8003         * lib/pclose.c: Likewise.
8004         * lib/pipe-filter-gi.c: Likewise.
8005         * lib/pipe-filter-ii.c: Likewise.
8006         * lib/pipe.c: Likewise.
8007         * lib/pipe2.c: Likewise.
8008         * lib/popen.c: Likewise.
8009         * lib/progreloc.c: Likewise.
8010         * lib/relocatable.c: Likewise.
8011         * lib/sigaction.c: Likewise.
8012         * lib/sigprocmask.c: Likewise.
8013         * lib/spawn-pipe.h: Likewise.
8014         * lib/spawn-pipe.c: Likewise.
8015         * lib/spawni.c: Likewise.
8016         * lib/stat-time.h: Likewise.
8017         * lib/w32spawn.h: Likewise.
8018         * tests/test-isatty.c: Likewise.
8019         * lib/config.charset: More comments.
8020         * doc/gnulib-intro.texi: Mention native Windows.
8021         * doc/posix-functions/_Exit_C99.texi: Likewise.
8022         * doc/posix-headers/fcntl.texi: Likewise.
8023
8024 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
8025
8026         argp: Avoid crash if translator uses % characters in a translation.
8027         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
8028         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8029
8030 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
8031
8032         doc: C11 and C++11 are now official
8033         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
8034         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
8035         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
8036         * modules/stdalign:
8037         Replace references to draft C1X to C11, and to draft C++0X to C++11.
8038
8039 2012-01-06  Bruno Haible  <bruno@clisp.org>
8040
8041         uc-is-grapheme-break tests: Tweak.
8042         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
8043         message.
8044
8045 2012-01-06  Bruno Haible  <bruno@clisp.org>
8046
8047         test-init.sh: correct the test for diff -u
8048         * tests/test-init.sh: Also redirect stdout to /dev/null.
8049
8050 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8051
8052         Use ', not `, for quoting output.
8053         * build-aux/announce-gen (usage, sizes, print_news_deltas)
8054         (print_changelog_deltas, get_tool_versions, main program):
8055         * build-aux/git-version-gen:
8056         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
8057         * build-aux/move-if-change (help):
8058         * build-aux/useless-if-before-free (usage, main program):
8059         * check-module (parse_module_file, usage)
8060         (find_included_lib_files, check_module):
8061         * lib/argmatch.c (main) [TEST]:
8062         * lib/argp-help.c (_help):
8063         * lib/getopt1.c (main) [TEST]:
8064         * lib/git-merge-changelog.c (usage):
8065         * lib/xstrtol-error.c (xstrtol_error):
8066         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
8067         * m4/argz.m4 (gl_FUNC_ARGZ):
8068         * m4/bison.m4 (gl_BISON):
8069         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
8070         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
8071         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8072         * m4/fpending.m4 (gl_PREREQ_FPENDING):
8073         * m4/gc-random.m4 (gl_GC_RANDOM):
8074         * m4/intl.m4 (gt_CHECK_DECL):
8075         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
8076         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
8077         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
8078         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
8079         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
8080         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
8081         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
8082         * tests/test-dirname.c (main):
8083         * tests/test-getpass.c (main):
8084         * tests/test-iconvme.c (main):
8085         * tests/test-parse-datetime.c (LOG):
8086         * tests/test-xstrtoimax.sh:
8087         * tests/test-xstrtol.sh:
8088         * tests/test-xstrtoll.sh:
8089         * tests/test-xstrtoumax.sh:
8090         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
8091         * top/GNUmakefile (abort-due-to-no-makefile):
8092         Quote 'like this', not `like this', as per the recent change to
8093         the GNU coding standards.
8094
8095 2012-01-05  Bruno Haible  <bruno@clisp.org>
8096
8097         strtoimax: Don't force a replacement on systems where intmax_t is int.
8098         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
8099         'intmax_t' is not larger than 'int'.
8100         Reported by Pádraig Brady <P@draigBrady.com>.
8101
8102 2012-01-05  Bruno Haible  <bruno@clisp.org>
8103
8104         doc: Mention NetBSD bugs.
8105         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
8106         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
8107
8108 2012-01-05  Bruno Haible  <bruno@clisp.org>
8109
8110         strtoumax tests: Enhance tests.
8111         * tests/test-strtoumax.c (main): Add tests for large values.
8112
8113 2012-01-05  Bruno Haible  <bruno@clisp.org>
8114
8115         strtoimax: Work around AIX 5.1 bug.
8116         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
8117         definition.
8118         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
8119         Set HAVE_STRTOIMAX.
8120         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
8121         REPLACE_STRTOIMAX.
8122         * modules/inttypes-incomplete (Makefile.am): Substitute
8123         REPLACE_STRTOIMAX.
8124         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
8125         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
8126         (Depends-on): Update conditions.
8127         * tests/test-strtoimax.c (main): Add tests for large values.
8128         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
8129
8130 2012-01-05  Bruno Haible  <bruno@clisp.org>
8131
8132         inttypes: Modernize.
8133         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
8134         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
8135         (Makefile.am): Update inttypes.h rule.
8136
8137 2012-01-05  Jim Meyering  <meyering@redhat.com>
8138
8139         init.sh: don't waste a subshell just to redirect stderr
8140         * tests/init.sh: In testing for diff -u and diff -c, use a
8141         stderr-redirecting exec inside `...` rather than a subshell.
8142
8143         test-init.sh: avoid failure on HP-UX 11.00
8144         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
8145         resolves to diff -c or cmp.  Reported by Bruno Haible.
8146
8147 2012-01-05  Bruno Haible  <bruno@clisp.org>
8148
8149         Tests for module 'strtoull'.
8150         * modules/strtoull-tests: New file.
8151         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
8152
8153 2012-01-05  Bruno Haible  <bruno@clisp.org>
8154
8155         Tests for module 'strtoll'.
8156         * modules/strtoll-tests: New file.
8157         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
8158
8159 2012-01-05  Bruno Haible  <bruno@clisp.org>
8160
8161         Tests for module 'strtoul'.
8162         * modules/strtoul-tests: New file.
8163         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
8164
8165 2012-01-05  Bruno Haible  <bruno@clisp.org>
8166
8167         Tests for module 'strtol'.
8168         * modules/strtol-tests: New file.
8169         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
8170
8171 2012-01-04  Jim Meyering  <meyering@redhat.com>
8172
8173         test-init.sh: accommodate Solaris 5.10's different diff -u output
8174         * tests/test-init.sh: Also exempt @@ lines from the comparison
8175         of diff output, since Solaris 5.10 and GNU diff formats differ.
8176         Reported by Stefano Lattarini.
8177
8178 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8179
8180         test-posixtm: don't assume signed integer wraparound
8181         * tests/test-posixtm.c (main): Don't assume wraparound semantics
8182         after signed integer overflow.  Inspired by (though it may not
8183         fix) Bruno Haible's bug report in
8184         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
8185
8186         Spell out "Windows 9x" and "Windows XP".
8187         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
8188         "Windows 9x" and "WinXP" with "Windows XP".
8189
8190 2012-01-04  Jim Meyering  <meyering@redhat.com>
8191
8192         test-vc-list-files-cvs.sh: remove obsolete comment
8193         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
8194         double exit.  Now that's all encapsulated via skip_ and Exit.
8195
8196 2012-01-04  Bruno Haible  <bruno@clisp.org>
8197
8198         Talk about "native Windows API", not "Win32".
8199         * lib/classpath.c: Update comments to mention native Windows.
8200         * lib/csharpexec.c: Likewise.
8201         * lib/dup2.c: Likewise.
8202         * lib/error.c: Likewise.
8203         * lib/fcntl.c: Likewise.
8204         * lib/filename.h: Likewise.
8205         * lib/findprog.c: Likewise.
8206         * lib/get-rusage-as.c: Likewise.
8207         * lib/get-rusage-data.c: Likewise.
8208         * lib/getpagesize.c: Likewise.
8209         * lib/javaexec.c: Likewise.
8210         * lib/msvc-inval.c: Likewise.
8211         * lib/msvc-nothrow.c: Likewise.
8212         * lib/nanosleep.c: Likewise.
8213         * lib/nonblocking.c: Likewise.
8214         * lib/printf-parse.c: Likewise.
8215         * lib/setlocale.c: Likewise.
8216         * lib/sigaction.c: Likewise.
8217         * lib/strerror_r.c: Likewise.
8218         * lib/tmpdir.c: Likewise.
8219         * lib/vasnprintf.c: Likewise.
8220         * lib/w32spawn.h: Likewise.
8221         * lib/waitpid.c: Likewise.
8222         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
8223         * m4/locale-ar.m4: Likewise.
8224         * m4/locale-fr.m4: Likewise.
8225         * m4/locale-ja.m4: Likewise.
8226         * m4/locale-tr.m4: Likewise.
8227         * m4/locale-zh.m4: Likewise.
8228         * m4/printf.m4: Likewise.
8229         * tests/test-cloexec.c: Likewise.
8230         * tests/test-copy-acl.sh: Likewise.
8231         * tests/test-copy-file.sh: Likewise.
8232         * tests/test-file-has-acl.sh: Likewise.
8233         * tests/test-set-mode-acl.sh: Likewise.
8234         * tests/test-dup-safer.c: Likewise.
8235         * tests/test-dup2.c: Likewise.
8236         * tests/test-dup3.c: Likewise.
8237         * tests/test-fcntl.c: Likewise.
8238         * tests/test-nonblocking-pipe.h: Likewise.
8239         * tests/test-nonblocking-socket.h: Likewise.
8240         * tests/test-pipe.c: Likewise.
8241         * tests/test-pipe2.c: Likewise.
8242         * tests/test-spawn-pipe-child.c: Likewise.
8243         * doc/acl-resources.txt: Likewise.
8244         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8245         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
8246         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
8247         * lib/localcharset.c: Update comments to mention native Windows.
8248         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8249         * lib/localename.c: Likewise.
8250         * lib/progreloc.c: Likewise.
8251         * lib/relocatable.c: Likewise.
8252         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8253         (windows_compute_revents): Renamed from win32_compute_revents.
8254         (windows_compute_revents_socket): Renamed from
8255         win32_compute_revents_socket.
8256         * lib/select.c: Update comments to mention native Windows.
8257         (windows_poll_handle): Renamed from win32_poll_handle.
8258         * m4/threadlib.m4: Update comments to mention native Windows.
8259         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
8260         --enable-threads=windows instead of --enable-threads=win32. Set
8261         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
8262         * lib/glthread/lock.h: Update comments to mention native Windows.
8263         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
8264         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
8265         USE_WIN32_THREADS.
8266         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
8267         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
8268         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
8269         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
8270         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
8271         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
8272         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
8273         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
8274         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
8275         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
8276         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
8277         * tests/test-tls.c: Likewise.
8278         Rationale:
8279         Microsoft renamed the "Win32 API" to "Windows API", as it is available
8280         on both 32-bit and 64-bit Windows systems.
8281         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
8282         line of distinction is between "native Windows" on one side and Unix/
8283         POSIX systems on the other side. More details in
8284         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
8285         Suggested by Paul Eggert.
8286
8287 2012-01-03  Bruno Haible  <bruno@clisp.org>
8288
8289         isatty: Support for MSVC 9.
8290         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
8291         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
8292         (_isatty_nothrow): New function.
8293         (isatty): Use it instead of _isatty.
8294         (IsConsoleHandle): Add comment, from Paolo Bonzini.
8295         * lib/poll.c (IsConsoleHandle): Likewise.
8296         * lib/select.c (IsConsoleHandle): Likewise.
8297         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
8298         (gl_PREREQ_ISATTY): New macro.
8299         * modules/isatty (Depends-on): Add msvc-inval.
8300         (configure.ac): Invoke gl_PREREQ_ISATTY.
8301
8302 2012-01-03  Jim Meyering  <meyering@redhat.com>
8303
8304         maint.mk: remove temporary transition aid from over 1.5 years ago
8305         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
8306         purpose was to aid in the transition (avoiding silent malfunction)
8307         from that old name to the new _sc_search_regexp.  This shim was
8308         added by commit 219c504b.
8309
8310         init.sh: do not try to accommodate compare arguments starting with "-"
8311         * tests/init.sh (compare_dev_null_): Do not try to accommodate
8312         compare arguments that start with "-".  Besides, we do not worry
8313         about this when invoking diff or cmp; why start now with sed?
8314         Using "--" to separate options from argument would trigger sed
8315         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
8316         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
8317
8318 2012-01-02  Bruno Haible  <bruno@clisp.org>
8319
8320         Enhance tests for module 'isatty'.
8321         * modules/isatty-tests (Depends-on): Add pipe-posix.
8322         * tests/test-isatty.c: Include <fcntl.h>.
8323         (DEV_NULL): New macro.
8324         (main): Test the resut of isatty() also on regular files, pipes, and
8325         /dev/null.
8326
8327         New module 'isatty'.
8328         * lib/unistd.in.h (isatty): New declaration.
8329         * lib/isatty.c: New file, based on an idea of
8330         Bastien Roucariès <roucaries.bastien@gmail.com>.
8331         * m4/isatty.m4: New file.
8332         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
8333         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
8334         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
8335         REPLACE_ISATTY.
8336         * modules/isatty: New file.
8337         * doc/posix-functions/isatty.texi: Mention the new module.
8338         Suggested by Paolo Bonzini.
8339
8340 2012-01-02  Bruno Haible  <bruno@clisp.org>
8341
8342         canonicalize: Tweak 2011-12-29 commit.
8343         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
8344         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
8345
8346 2012-01-02  Jim Meyering  <meyering@redhat.com>
8347
8348         gitlog-to-changelog: describe input syntax in --help output
8349         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
8350
8351         gitlog-to-changelog: fix typo in --help: show backslash before email @
8352         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
8353         in sources, but not in actual output.
8354
8355 2011-12-30  Jim Meyering  <meyering@redhat.com>
8356
8357         gitlog-to-changelog: don't malfunction when name contains %-directive
8358         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
8359         in a name string cause trouble.  E.g., with a user name of "%s",
8360         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
8361
8362 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
8363
8364         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
8365         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
8366         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
8367         the "  (tiny change)" notation that is appended to the standard
8368         ChangeLog "date  name  email" header line.
8369
8370 2012-01-01  Jim Meyering  <meyering@redhat.com>
8371
8372         test-framework-sh: init.sh: fix "make dist" failure
8373         When using gnulib-tool's --with-tests option and any module that
8374         depends on test-framework-sh, "make dist" would fail due to the
8375         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
8376         in the gltests directory, and not in the gllib/ directory.
8377         One way to work around that is to move the EXTRA_DIST += init.sh
8378         from the primary module to the -tests one:
8379         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
8380         * modules/test-framework-sh (Makefile.am): ...not here.
8381         Reported by Tom G. Christensen in
8382         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
8383
8384         version-etc: update copyright year reported by --version
8385         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
8386
8387 2011-12-31  Pádraig Brady  <P@draigBrady.com>
8388
8389         canonicalize: only stat() if required
8390         * lib/canonicalize.c (canonicalize_filename_mode):
8391         Avoid calling l?stat() when both CAN_MISSING,
8392         and CAN_NOLINKS are set, as we neither need
8393         to resolve symlinks or test component existence.
8394
8395 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8396
8397         doc: cover st_ino issues once; add OpenVMS etc.
8398         * doc/posix-functions/stat.texi (stat):
8399         * doc/posix-functions/lstat.texi (lstat):
8400         * doc/posix-functions/fstatat.texi (fstatat):
8401         * doc/posix-functions/fstat.texi (fstat):
8402         Move general 'struct stat' stuff to sys_stat.texi,
8403         leaving behind a pointer.
8404         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8405         Merge duplicate info about 'struct stat' problems into here.
8406         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
8407         and suggest partial workarounds.
8408
8409         same-inode: port to OpenVMS
8410         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
8411         three st_ino values.
8412
8413 2011-12-30  Pádraig Brady  <P@draigBrady.com>
8414
8415         canonicalize: fix references to stat() and lstat()
8416         * lib/canonicalize.c (canonicalize_filename_mode):
8417         Ensure references always resolve to a replacement
8418         function if required (even via a macro).
8419
8420 2011-12-30  Jim Meyering  <meyering@redhat.com>
8421
8422         gitlog-to-changelog: remove a little duplication
8423         * build-aux/gitlog-to-changelog (main): Grep @lines once,
8424         rather than twice.
8425
8426 2011-12-29  Pádraig Brady  <P@draigBrady.com>
8427
8428         canonicalize: add support for not resolving symlinks
8429         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
8430         indicate we don't want to follow symlinks.  Also
8431         provide CAN_MODE_MASK to aid setting these existing
8432         mutually exclusive values.
8433         * lib/canonicalize.c (canonicalize_filename_mode):
8434         Extract the flags from can_mode parameter, which
8435         are currently just used to select between stat()
8436         and lstat().  Also ensure that mutually exclusive
8437         values are flagged immediately as invalid.
8438         * tests/test-canonicalize.c: Verify symlinks are
8439         not followed, and that invalid flag combinations
8440         are diagnosed.
8441
8442 2011-12-25  Jim Meyering  <meyering@redhat.com>
8443
8444         gitlog-to-changelog: do not clump multi-paragraph entries
8445         Identical header lines (date,name,email+coauthors) are suppressed,
8446         thus putting all entries with those same characteristics under
8447         a single header.  However, when a log entry consists of two or
8448         more paragraphs, it may not be clear where it starts and ends.
8449         This change makes it so that such an entry is always separated
8450         from others by a header line, even when that header would
8451         otherwise be suppressed.
8452         * build-aux/gitlog-to-changelog: Implement the above.
8453         Inspired by a related request from Stefano Lattarini in
8454         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
8455
8456 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8457
8458         announce-gen: fix `cmd' typo in diagnostic
8459         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
8460         diagnostic: a missing '$' meant that the command was not output.
8461
8462 2011-12-23  Jim Meyering  <meyering@redhat.com>
8463
8464         test-framework-sh: distribute init.sh
8465         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
8466         Otherwise, "make -C gnulib-tests check" (at least in grep) would
8467         fail due to the lack of init.sh.
8468
8469         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
8470         * modules/atexit-tests: Rather than listing tests/init.sh,
8471         now that there's a module for it, simply depend on that new module.
8472         * modules/closein-tests: Likewise.
8473         * modules/exclude-tests: Likewise.
8474         * modules/getcwd-tests: Likewise.
8475         * modules/perror-tests: Likewise.
8476         * modules/pread-tests: Likewise.
8477         * modules/pwrite-tests: Likewise.
8478         * modules/vc-list-files-tests: Likewise.
8479         * modules/verify-tests: Likewise.
8480         * modules/xalloc-die-tests: Likewise.
8481         * modules/xstrtoimax-tests: Likewise.
8482         * modules/xstrtol-tests: Likewise.
8483         * modules/xstrtoll-tests: Likewise.
8484         * modules/xstrtoumax-tests: Likewise.
8485         * modules/yesno-tests: Likewise.
8486
8487 2011-12-22  Jim Meyering  <meyering@redhat.com>
8488
8489         test-framework-sh: add minimal tests of init.sh's compare function
8490         * modules/test-framework-sh-tests: New file.
8491         * tests/test-init.sh: New file.
8492
8493         test-framework-sh: new module
8494         * modules/test-framework-sh: New file.
8495         * MODULES.html.sh (Support for maintaining and releasing projects):
8496         List it.
8497
8498         init.sh: do not emit simulated diff output to stderr
8499         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
8500
8501 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8502
8503         .gitignore: ignore gnulib.dvi and regex.info
8504         * doc/.gitignore:add gnulib.dvi and regex.info
8505
8506 2011-12-22  Jim Meyering  <meyering@redhat.com>
8507
8508         init.sh: correct previous change
8509         * tests/init.sh (compare): My previous change was wrong.
8510         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
8511
8512         init.sh: avoid unwarranted test failure when using "set -e"
8513         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
8514         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
8515         a use like "compare exp out" would get evoke an unconditional failure.
8516
8517 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
8518
8519         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
8520         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
8521         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
8522         autoreconf that did not.
8523         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
8524         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8525
8526 2011-12-17  Jim Meyering  <meyering@redhat.com>
8527
8528         bootstrap: remove some now-unneeded code
8529         This script arose back when gnulib-tool was young.
8530         Since then, it has seen improvements that render much of this
8531         script unnecessary.  In particular, it can now make symlinks
8532         to the files it uses.  Also, I no longer see as much value in
8533         marking files as read-only via comments.
8534         If you relied on the symlink-creation feature of the preceding
8535         version of this script, you can get most of that functionality
8536         by adding the --symlink option to the definition of
8537         gnulib_tool_option_extras in your bootstrap.conf file.
8538         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
8539         Run autopoint and libtoolize *before* gnulib-tool.
8540         After it, run an abbreviated autoreconf, rather than a loop around
8541         all tools.
8542         (slirp, bt_mark_as_generated): Remove functions.
8543
8544 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8545
8546         ftoastr: fix typo
8547         * lib/ftoastr.h: Fix misspelling in comment.
8548
8549 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
8550
8551         * top/README-release: fix punctuation.
8552
8553 2011-12-17  Jim Meyering  <meyering@redhat.com>
8554
8555         bootstrap: correct the recent buildreq change
8556         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
8557         had no effect.
8558         * build-aux/bootstrap (buildreq): Bracket each search term with
8559         "*...*", so that the shell "case" statement works as intended.
8560         Add comments.
8561
8562 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
8563
8564         build: let bootstrap resort to wget when downloading .po files
8565         * build-aux/bootstrap (download_po_files): Fallback to wget when
8566         downloading the .po files via rsync fails.  This is necessary to
8567         bootstrap from behind a strict firewall.
8568
8569 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8570
8571         stdint: don't assume C++11 when compiling with g++
8572         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
8573         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
8574         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
8575         work also in C++ before C++11, as that improperly inhibits
8576         generating a substitute stdint.h for that case.
8577
8578 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8579
8580         alloca: protect comment from gnulib-tool
8581         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
8582         that gnulib-tool doesn't think it's a license, and munge it to
8583         say "GCC version 3".
8584
8585 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
8586
8587         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
8588         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
8589         $(abs_top_builddir) instead of $(top_builddir).
8590
8591 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
8592
8593         strftime-tests: also test nanoseconds
8594         * tests/test-strftime.c (T): Add a test of %N.
8595
8596 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
8597
8598         inttypes, stdint: add C++11 support
8599         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
8600         when including inttypes.h and stdint.h.  Support this change to
8601         the standard.
8602         * doc/posix-headers/inttypes.texi (inttypes.h):
8603         * doc/posix-headers/stdint.texi (stdint.h): Document this.
8604         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
8605         Define if not defined already, for the benefit of pre-C++11 hosts.
8606         Define the standard format macros (e.g., PRId8) always.
8607         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
8608         Likewise, if __cpluspus.  Define the standard constant and limit
8609         macros (e.g., INT8_C, INT8_MAX) always.
8610         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
8611         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
8612         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
8613         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
8614         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
8615         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
8616         Likewise.
8617
8618 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
8619
8620         nonblocking tests: Fix test failure on Linux/PPC.
8621         Suggested by Prerna Saxena in
8622         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
8623         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
8624         Set to 1100000.
8625
8626 2011-12-12  Jim Meyering  <meyering@redhat.com>
8627
8628         argmatch: don't hard-code `' when listing valid option arguments
8629         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
8630         use the quote function to add quotes.  Use fputs rather than
8631         fprintf for the format string with no format directive.
8632
8633 2011-12-07  Eric Blake  <eblake@redhat.com>
8634
8635         bootstrap: detect tools required by gnulib-tool
8636         * build-aux/bootstrap (buildreq): Provide minimum implicit
8637         dependencies.
8638         * DEPENDENCIES: Mention patch as a prereq.
8639
8640 2011-12-04  Bruno Haible  <bruno@clisp.org>
8641
8642         sethostname: Port to Windows platforms.
8643         * lib/sethostname.c: Provide an alternate implementation for Windows
8644         platforms.
8645         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
8646         (main): Skip the test if sethostname() fails with EPERM. On Windows
8647         platforms, don't check the result of gethostname().
8648
8649 2011-12-04  Bruno Haible  <bruno@clisp.org>
8650             Jim Meyering  <meyering@redhat.com>
8651
8652         tests: Avoid spurious error message on platforms without mktemp program.
8653         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
8654
8655 2011-12-04  Bruno Haible  <bruno@clisp.org>
8656
8657         sethostname: Fix documentation.
8658         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
8659         "not fixed" section.
8660
8661 2011-12-03  Bruno Haible  <bruno@clisp.org>
8662
8663         gnulib-tool: Verify that the License field is present and non-empty.
8664         * gnulib-tool (func_get_license_raw): New function, extracted from
8665         func_get_license.
8666         (func_get_license): Use it. Warn if the module is not a test module and
8667         has no license.
8668         Suggested by Jim Meyering.
8669
8670 2011-12-03  Bruno Haible  <bruno@clisp.org>
8671
8672         sethostname tests: Fix link error on mingw.
8673         * tests/test-sethostname1.c: New file, extracted from
8674         tests/test-sethostname.c.
8675         * tests/test-sethostname2.c: New file, extracted from
8676         tests/test-sethostname.c.
8677         * tests/test-sethostname.c: Remove file.
8678         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
8679         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
8680         (Depends-on): Add gethostname.
8681         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
8682         Link the latter with $(GETHOSTNAME_LIB).
8683
8684         sethostname tests: Fix compilation error on mingw.
8685         * tests/test-sethostname.c: Don't include <sys/types.h>.
8686         (geteuid): Use a dummy value without uid_t.
8687         * modules/sethostname-tests (Depends-on): Remove sys_types.
8688
8689         sethostname tests: Avoid a gcc warning.
8690         * tests/test-sethostname.c (main): Remove an unused variable.
8691
8692         Tweak last commit.
8693         * modules/sethostname-tests (Files): Sort by decreasing importance.
8694         (configure.ac): Check for geteuid.
8695         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
8696         the test when there's nothing to test. Drop an unnecessary cast.
8697         Improve an error message. Verify that the final sethostname() call
8698         succeeds.
8699
8700 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8701
8702         Add a test suite for the sethostname module.
8703         * modules/sethostname-tests: New file.  A test program
8704         for the sethostname module.
8705         * tests/test-sethostname.c: Likewise.
8706
8707 2011-12-03  Bruno Haible  <bruno@clisp.org>
8708
8709         Tweak last commit.
8710         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
8711         Fix preprocessor directives indentation. Fix typos.
8712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
8713         * modules/unistd (Makefile): Likewise.
8714
8715 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8716
8717         Integrate the sethostname module into unistd.
8718         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
8719         into the unistd.h header.
8720         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
8721         preprocessor directives.
8722         * modules/unistd: Setup the Makefile substitutions of the
8723         SETHOSTNAME preprocessor directives.
8724
8725 2011-12-03  Bruno Haible  <bruno@clisp.org>
8726
8727         Tweak last commit.
8728         * lib/sethostname.c: Don't include <string.h>.
8729         (sethostname): No need to copy the argument string to the stack. Don't
8730         call clearerr. Preserve errno when fprintf failed.
8731         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
8732         Don't invoke AC_REPLACE_FUNCS.
8733         * modules/sethostname (Link): Remove empty section.
8734         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
8735         failure problem.
8736
8737 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8738
8739         New module 'sethostname'.
8740         * lib/sethostname.c (sethostname): New file.  Provide sethostname
8741         for systems that lack it.
8742         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
8743         sethostname declaration and function.
8744         * modules/sethostname: New file.  Define the sethostname module.
8745
8746 2011-12-03  Bruno Haible  <bruno@clisp.org>
8747
8748         Tweak last commit.
8749         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
8750
8751 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8752
8753         Split the HOST_NAME_MAX detection into a separate m4 macro.
8754         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
8755         macro so it can be used by the pending sethostname module.
8756
8757 2011-12-03  Bruno Haible  <bruno@clisp.org>
8758
8759         Fix module descriptions syntax.
8760         * modules/argv-iter (License): Fix syntax.
8761         * modules/di-set (License): Likewise.
8762         * modules/ino-map (License): Likewise.
8763         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
8764
8765 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8766
8767         stdalign: port to Clang 3.0
8768         Problem reported by Simon Josefsson in
8769         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
8770         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
8771         which has <stdalign.h> but which does not define alignof.
8772         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
8773
8774 2011-12-01  Eric Blake  <eblake@redhat.com>
8775
8776         mktempd: silence dd usage
8777         * build-aux/mktempd (rand_bytes): Silence dd.
8778
8779 2011-11-30  Simon Josefsson  <simon@josefsson.org>
8780
8781         manywarnings: Don't mention gcc version in docstring.
8782         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
8783         Jim Meyering <meyering@redhat.com>.
8784
8785 2011-11-30  Jim Meyering  <meyering@redhat.com>
8786
8787         hash: mark a few floating point constants with "f" suffix
8788         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
8789         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
8790         floating point constants with "f", since they're destined to be
8791         saved/used as "float"s.
8792
8793 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
8794
8795         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
8796         * tests/test-float.c (test_long_double): Correct and re-enable the
8797         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
8798
8799 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
8800
8801         Avoid subtracting two pointers that don't point into the same block.
8802         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
8803         only pointers into the same memory block are subtracted. We cannot
8804         assume that sizeof (ptrdiff_t) == sizeof (void *).
8805
8806 2011-11-29  Eric Blake  <eblake@redhat.com>
8807
8808         maint.mk: add syntax check for use of compare from init.sh
8809         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
8810         moved here from coreutils.
8811
8812         manywarnings: drop -Wunsuffixed-float-constants
8813         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
8814         '1.0D', which is the only way to silence this warning for 'double'.
8815
8816 2011-11-29  Jim Meyering  <meyering@redhat.com>
8817
8818         hash: mark compute_bucket_size with the pure attribute
8819         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
8820
8821         quotearg, propername: correct pragma guard expression
8822         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
8823         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
8824
8825 2011-11-28  Jim Meyering  <meyering@redhat.com>
8826
8827         propername: do not mark proper_name with the const attribute
8828         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
8829         since it examines data pointed to by its parameter.
8830         * lib/propername.c (proper_name): Instead, add a pragma to suppress
8831         the suggestion from -Wsuggest-attribute=const.
8832
8833         propername: mark one more function as const
8834         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
8835
8836 2011-11-27  Jim Meyering  <meyering@redhat.com>
8837
8838         mark functions with const and pure attributes
8839
8840         Mark functions per suggestions from gcc-4.6 when using these options:
8841         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
8842         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
8843         Follow these guidelines: when possible, apply the attribute to
8844         an extern declaration, not to its definition.  Apply it to the
8845         definition only when the definition is static.
8846         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
8847         * lib/argv-iter.h (argv_iter_n_args): Likewise.
8848         * lib/base64.h (isbase64): Likewise.
8849         * lib/basename-lgpl.c (last_component, base_len): Likewise.
8850         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
8851         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
8852         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
8853         (c_tolower, c_toupper): Likewise.
8854         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
8855         * lib/chdir-long.c (find_non_slash): Likewise.
8856         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
8857         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
8858         * lib/file-type.h (file_type): Likewise.
8859         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
8860         * lib/filevercmp.c (verrevcmp): Likewise.
8861         * lib/freadahead.h (freadahead): Likewise.
8862         * lib/fts.c (fts_maxarglen): Likewise.
8863         * lib/hash-pjw.h (hash_pjw): Likewise.
8864         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
8865         * lib/hash.c (is_prime, next_prime): Likewise.
8866         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
8867         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
8868         (hash_table_ok, hash_get_first, hash_string): Likewise.
8869         (compute_bucket_size): Likewise.
8870         * lib/i-ring.h (i_ring_empty): Likewise.
8871         * lib/isnan.c (isnanl): Likewise.
8872         * lib/math.h (isnanl, rpl_isnanl): Likewise.
8873         * lib/memcasecmp.h (memcasecmp): Likewise.
8874         * lib/memchr2.h (memchr2): Likewise.
8875         * lib/memcmp2.h (memcmp2): Likewise.
8876         * lib/parse-datetime.y (lookup_zone): Likewise.
8877         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
8878         [!WINDOWS_SOCKETS]: Likewise.
8879         * lib/strnlen1.h (strnlen1): Likewise.
8880         * lib/uniwidth.in.h (uc_width): Likewise.
8881         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
8882         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
8883         (quoting_options_from_style): Add a comment.
8884         * lib/propername.h (proper_name): Add a comment.
8885
8886 2011-11-27  Bruno Haible  <bruno@clisp.org>
8887
8888         Remove unused macros from !_LIBC code in glibc-borrowed files.
8889         * lib/fnmatch.c (STRCOLL): Remove macro.
8890         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
8891         * lib/glob.c (__stat, __readdir64): Remove macros.
8892         * lib/tempname.c (__open64, __xstat64): Remove macros.
8893         Suggested by Paul Eggert.
8894
8895 2011-11-27  Bruno Haible  <bruno@clisp.org>
8896
8897         getcwd: Fix link error on MSVC 9.
8898         * modules/getcwd (Depends-on): Add readdir, rewinddir.
8899
8900 2011-11-27  Bruno Haible  <bruno@clisp.org>
8901
8902         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
8903         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
8904         HAVE_OPENDIR is 0.
8905         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
8906         HAVE_CLOSEDIR is 0.
8907         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
8908         is 0.
8909         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
8910
8911 2011-11-27  Bruno Haible  <bruno@clisp.org>
8912
8913         getcwd: Fix bug from 2011-08-17.
8914         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
8915         platforms that need it.
8916         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
8917         code of 4 to be a failure, not a success. This ensures that
8918         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
8919
8920 2011-11-27  Bruno Haible  <bruno@clisp.org>
8921
8922         binary-io tests: Avoid test failure on mingw when libtool is used.
8923         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
8924         Don't verify the size of t-bin-out1.tmp here.
8925         * tests/test-binary-io.sh: Verify it here.
8926         Reported by Simon Josefsson.
8927
8928 2011-11-26  Bruno Haible  <bruno@clisp.org>
8929
8930         Fix conflict between two instantiations of module 'unistd'.
8931         * gnulib-tool (func_emit_autoconf_snippet): Substitute
8932         ${include_guard_prefix} also in the autoconf snippet.
8933         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
8934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
8935         GNULIB_UNISTD_H_GETOPT.
8936         * modules/getopt-posix (configure.ac): Set the
8937         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
8938         * modules/getopt-gnu (configure.ac): Likewise.
8939         * modules/unistd (Makefile.am): Change the substitution value of
8940         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
8941         Reported by Simon Josefsson.
8942
8943 2011-11-25  Bruno Haible  <bruno@clisp.org>
8944
8945         pagealign_alloc: Doc and comments.
8946         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
8947         module.
8948         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
8949
8950 2011-11-25  Jim Meyering  <meyering@redhat.com>
8951
8952         test-update-copyright.sh: avoid false-positive failure
8953         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
8954         around false positive failure on Cygwin/Windows.  The latter was
8955         matching erroneously-created files with names like
8956         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
8957
8958 2011-11-25  Simon Josefsson  <simon@josefsson.org>
8959
8960         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
8961         * m4/valgrind-tests.m4: Check that the parameters that will be
8962         used works, not just a subset of them.  Reported by Bruno Haible
8963         <bruno@clisp.org>.
8964
8965 2011-11-24  Jim Meyering  <meyering@redhat.com>
8966
8967         test-stdalign.c: comment out long double tests
8968         * tests/test-stdalign.c: Don't try to reduce alignment of long double
8969         variables.  That provokes errors like this from gcc-4.7.0 20111124:
8970         error: '_Alignas' specifiers cannot reduce alignment of \
8971         'static_longdouble_alignas'.
8972
8973 2011-11-22  Jim Meyering  <meyering@redhat.com>
8974
8975         init.sh: make "compare /dev/null FILE" output more readable
8976         * tests/init.sh (compare_): Document the preferred order of arguments.
8977         (emit_diff_u_header_): New function.
8978         (compare_dev_null_): Emit a simulated diff, rather than just the
8979         contents of the unexpected file.  Suggestion from Bruno Haible.
8980
8981 2011-11-21  Jim Meyering  <meyering@redhat.com>
8982             Eric Blake  <eblake@redhat.com>
8983
8984         init.sh: work around OSF/1 5.1's mishandling of /dev/null
8985         * tests/init.sh: Make our compare function slightly more portable.
8986         Reported by Bruno Haible in
8987         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
8988
8989 2011-11-21  Simon Josefsson  <simon@josefsson.org>
8990
8991         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
8992         before using it, in code that ends up in config.h.
8993
8994 2011-11-20  Bruno Haible  <bruno@clisp.org>
8995
8996         getcwd: Work around getcwd bug on AIX 5..7.
8997         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
8998         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
8999         Use a different value for gl_cv_func_getcwd_path_max. Move the
9000         definition of HAVE_PARTLY_WORKING_GETCWD from here...
9001         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
9002         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
9003         Define HAVE_MINIMALLY_WORKING_GETCWD.
9004         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
9005         where it is not even minimally working, that is, on AIX.
9006         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
9007         m4/getcwd-path-max.m4.
9008         (main): Update exit code computation.
9009         * doc/posix-functions/getcwd.texi: Mention list of platforms where
9010         getcwd does not handle long file names.
9011
9012 2011-11-20  Bruno Haible  <bruno@clisp.org>
9013
9014         getcwd: Fix bug from 2009-09-10.
9015         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
9016         like "no".
9017
9018 2011-11-20  Simon Josefsson  <simon@josefsson.org>
9019
9020         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
9021
9022 2011-11-20  Bruno Haible  <bruno@clisp.org>
9023
9024         fma tests: Avoid shadowing local variables.
9025         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
9026         expected.
9027
9028 2011-11-20  Bruno Haible  <bruno@clisp.org>
9029
9030         copysignf tests: Fix.
9031         * tests/test-copysignf.c: Fix signature check.
9032
9033 2011-11-20  Bruno Haible  <bruno@clisp.org>
9034
9035         fma: Remove unused code.
9036         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
9037         unused macros.
9038
9039 2011-11-20  Bruno Haible  <bruno@clisp.org>
9040
9041         sethostname: Fix doc about AIX.
9042         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
9043         sethostname; it has it.
9044
9045         sethostname: Mention more portability problems.
9046         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
9047         problem.
9048         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9049
9050 2011-11-19  Bruno Haible  <bruno@clisp.org>
9051
9052         Depend on module fcntl-h when AT_FDCWD is used.
9053         * modules/utimens (Depends-on): Add fcntl-h.
9054         * modules/areadlinkat (Depends-on): Likewise.
9055         * modules/areadlinkat-with-size (Depends-on): Likewise.
9056         * modules/faccessat (Depends-on): Likewise.
9057         * modules/fchmodat (Depends-on): Likewise.
9058         * modules/fchownat (Depends-on): Likewise.
9059         * modules/getcwd (Depends-on): Likewise.
9060         * modules/mkdirat (Depends-on): Likewise.
9061         * modules/mkfifoat (Depends-on): Likewise.
9062         * modules/readlinkat (Depends-on): Likewise.
9063         * modules/symlinkat (Depends-on): Likewise.
9064         * modules/dup2-tests (Depends-on): Likewise.
9065         * modules/fdutimensat-tests (Depends-on): Likewise.
9066         * modules/futimens-tests (Depends-on): Likewise.
9067
9068 2011-11-19  Bruno Haible  <bruno@clisp.org>
9069
9070         euidaccess: Update a comment.
9071         * lib/euidaccess.c: Update comment about platforms with faccessat.
9072
9073 2011-11-19  Bruno Haible  <bruno@clisp.org>
9074
9075         openat: Fix file list.
9076         * modules/openat (Files): Remove lib/at-func.c.
9077
9078 2011-11-19  Bruno Haible  <bruno@clisp.org>
9079
9080         fstatat: Simplify.
9081         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
9082         gnulib should define rpl_fstatat, there is a
9083         "#define fstatat rpl_fstatat" in <sys/stat.h>.
9084
9085 2011-11-19  Bruno Haible  <bruno@clisp.org>
9086
9087         Ensure 'inline' can be used in tests/test-utimens-common.h.
9088         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
9089         * modules/futimens-tests (configure.ac): Likewise.
9090         * modules/utimens-tests (configure.ac): Likewise.
9091         * modules/utimensat-tests (configure.ac): Likewise.
9092
9093 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9094
9095         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
9096         not hash_insert0.
9097         (hash_insert_if_absent): Doc fix.
9098
9099 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9100
9101         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
9102
9103 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9104
9105         test-getcwd: disambiguate exit status
9106         * tests/test-getcwd.c (test_long_name): Return 0..7.
9107         (main): Exit with an unambiguous exit status.  The old
9108         code yielded a mysterious mixture of two failure codes.
9109
9110         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
9111         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
9112         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
9113         rpl_fstatat or fstatat.  This should fix the other problem
9114         reported by Kai Habel in
9115         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9116         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
9117         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
9118         and I reproduced it on a Solaris 8 host we still have in production.
9119
9120 2011-11-18  Jim Meyering  <meyering@redhat.com>
9121
9122         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
9123         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
9124         Add a sentence to the comment.
9125         (hash_insert0): New function that simply calls hash_insert_if_absent.
9126         * lib/hash.h (hash_insert_if_absent): Declare it.
9127         (hash_insert0): Add deprecation attribute.
9128         (_GL_ATTRIBUTE_DEPRECATED): Define.
9129         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
9130         not hash_insert0.
9131         * NEWS: Mention it, even though it's not really an incompatible change.
9132
9133 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
9134
9135         openat: avoid compilation failure due to lack of <errno.h> inclusion
9136         * lib/openat.c: Include <errno.h>.
9137
9138 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9139
9140         * modules/getcwd (Depends-on): Add fdopendir.
9141         This fixes one of the two problems reported by Kai Habel in
9142         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9143
9144         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
9145         stdalign problem reported by Ian Beckwith in
9146         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
9147         * modules/crypto/gc-arcfour (Depends-on):
9148         Depend conditionally on crypto/arcfour.
9149         * modules/crypto/gc-arctwo (Depends-on):
9150         Depend conditionally on crypto/arctwo.
9151         * modules/crypto/gc-des (Depends-on):
9152         Depend conditionally on crypto/des.
9153         * modules/crypto/gc-hmac-md5 (Depends-on):
9154         Depend conditionally on crypto/hmac-md5.
9155         * modules/crypto/gc-hmac-sha1 (Depends-on):
9156         Depend conditionally on crypto/hmac-sha1.
9157         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
9158         * modules/crypto/gc-md4 (Depends-on):
9159         Depend conditionally on crypto/md4.
9160         * modules/crypto/gc-md5 (Depends-on):
9161         Depend conditionally on crypto/md5.
9162         * modules/crypto/gc-rijndael (Depends-on):
9163         Depend conditionally on crypto/rijndael.
9164         * modules/crypto/gc-sha1 (Depends-on):
9165         Depend conditionally on crypto/sha1.
9166         * modules/crypto/gc-arcfour:
9167         * modules/crypto/gc-arctwo:
9168         * modules/crypto/gc-des:
9169         * modules/crypto/gc-hmac-md5:
9170         * modules/crypto/gc-hmac-sha1:
9171         * modules/crypto/gc-md2:
9172         * modules/crypto/gc-md4:
9173         * modules/crypto/gc-md5:
9174         * modules/crypto/gc-rijndael:
9175         * modules/crypto/gc-sha1:
9176         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
9177         now that the conditional dependencies do the work for us.
9178
9179 2011-11-17  Jim Meyering  <meyering@redhat.com>
9180
9181         tests: factor st_ctime-comparison out of two headers
9182         * tests/test-utimens-common.h (ctime_compare): Define.
9183         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
9184         * tests/test-lutimens.h (test_lutimens): Likewise.
9185         * tests/test-utimens.h (test_utimens): Likewise.
9186
9187         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
9188         Invoke the test program via an init.sh-using wrapper.
9189         * tests/test-getcwd.sh: New file.
9190         * modules/getcwd-tests (Files): Add it.
9191         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
9192
9193 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
9194
9195         gitlog-to-changelog: support multi-author commits.
9196         The FSF cares about keeping track of all authors of patches to its
9197         projects, but Git doesn't provide obvious support for multi-author
9198         changesets. Consensus seems to be forming around the use of extra
9199         Signed-off-by inspired lines in the log message formatted as
9200         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
9201         multi-author commits between version control systems.
9202         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
9203         log message and output in standard ChangeLog multi-author format.
9204         Reported by Peter Rosin <peda@lysator.liu.se>
9205
9206 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
9207             Bruno Haible  <bruno@clisp.org>
9208
9209         Fix some modules' file list.
9210         * modules/fstatat (Files): Add m4/lstat.m4.
9211         * modules/openat (Files): Likewise.
9212         * modules/unlinkat (Files): Likewise.
9213
9214 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
9215
9216         maint.mk: fix tight-scope.mk generation in VPATH builds.
9217         * top/maint.mk (tight-scope.mk): Make sure to prefix file
9218         reference with $(srcdir) so that the file is found correctly even
9219         when running `make syntax-check' in a VPATH build.
9220
9221 2011-11-13  Bruno Haible  <bruno@clisp.org>
9222             Jim Meyering  <meyering@redhat.com>
9223
9224         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
9225         * tests/init.sh (compare): Remove "No differences encountered" or
9226         synonymous output from the 'diff' program.
9227
9228 2011-11-13  Bruno Haible  <bruno@clisp.org>
9229
9230         Makefile: Tweak indentation.
9231         * Makefile: Use tab as first character in every line that contains rule
9232         commands.
9233
9234 2011-11-13  Bruno Haible  <bruno@clisp.org>
9235
9236         Syntax check for copyright statements.
9237         * check-copyright: New file.
9238         * Makefile (sc_check_copyright): New rule.
9239
9240 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9241
9242         * build-aux/git-version-gen: Add --prefix to configure the tag
9243         match string.
9244
9245 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9246
9247         * build-aux/git-version-gen: Add --help and --version.
9248
9249 2011-11-12  Jim Meyering  <meyering@redhat.com>
9250
9251         revamp the other test-exclude?.sh scripts to use init.sh, too
9252         * tests/test-exclude1.sh: Use init.sh.
9253         * tests/test-exclude2.sh: Likewise.
9254         * tests/test-exclude3.sh: Likewise.
9255         * tests/test-exclude4.sh: Likewise.
9256         * tests/test-exclude5.sh: Likewise.
9257         * tests/test-exclude6.sh: Likewise.
9258         * tests/test-exclude7.sh: Likewise.
9259         * tests/test-exclude8.sh: Likewise.
9260         * modules/exclude-tests (Files): List init.sh.
9261
9262         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
9263         These shell scripts ignored failure of the binary test-exclude,
9264         so making the latter return 77 didn't cause them to be skipped.
9265         * tests/test-exclude5.sh: Exit with test-exclude's error status
9266         when that program fails.  Revamp to use init.sh.
9267         * tests/test-exclude2.sh: Likewise.
9268
9269         test-exclude: fix a typo
9270         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
9271
9272 2011-11-11  Bruno Haible  <bruno@clisp.org>
9273
9274         obstack: Fix compilation error on MSVC 9.
9275         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
9276
9277 2011-11-11  Jim Meyering  <meyering@redhat.com>
9278
9279         test-exclude: skip tests rather than failing on deficient systems
9280         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
9281         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
9282         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
9283         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
9284
9285 2011-11-10  Bruno Haible  <bruno@clisp.org>
9286
9287         ptsname_r test: Avoid gcc warning on glibc systems.
9288         * tests/test-ptsname_r.c (null_ptr): New function.
9289         (test_errors): Use it.
9290
9291 2011-11-10  Bruno Haible  <bruno@clisp.org>
9292
9293         ptsname_r: Avoid compilation error on OSF/1 5.1.
9294         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
9295         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
9296         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
9297         function is not declared or incompatibly declared.
9298         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
9299         * modules/ptsname_r (Depends-on, configure.ac): Update.
9300         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
9301
9302 2011-11-10  Bruno Haible  <bruno@clisp.org>
9303
9304         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
9305         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
9306         When cross-compiling, guess yes on all platforms except AIX.
9307         Reported by Ludovic Courtès <ludo@gnu.org>.
9308
9309 2011-11-09  Bruno Haible  <bruno@clisp.org>
9310
9311         ptsname_r tests: Fix bugs.
9312         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
9313         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
9314
9315 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9316
9317         fstatat: work with cross-compilation
9318         Problem reported by Ludovic Courtès in
9319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
9320         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
9321         "cross-compiling" and assume the bug is present.  Replace
9322         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
9323         an inverted sense, to be more conservative about our assumptions.
9324         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
9325
9326 2011-11-09  Bruno Haible  <bruno@clisp.org>
9327
9328         Improve MODULES.html output.
9329         * modules/mkfifoat (Description): Use the word "function".
9330         * modules/readlinkat (Description): Likewise.
9331         * modules/symlinkat (Description): Likewise.
9332
9333 2011-11-09  Eric Blake  <eblake@redhat.com>
9334
9335         ptsname_r-tests: new test module
9336         * modules/ptsname_r-tests: New module.
9337         * tests/test-ptsname_r.c: New file.
9338
9339         ptsname_r: new module
9340         * modules/ptsname_r: New module.
9341         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
9342         * lib/ptsname.c (__ptsname_r): Split...
9343         * lib/ptsname_r.c: ...into new file.
9344         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9345         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
9346         * modules/stdlib (Makefile.am): Substitute witnesses.
9347         * lib/stdlib.in.h (ptsname_r): Declare it.
9348         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
9349         * MODULES.html.sh (Misc): Likewise.
9350         * modules/ptsname (Depends-on): Alter dependency.
9351         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
9352
9353 2011-11-09  Jim Meyering  <meyering@redhat.com>
9354
9355         announce-gen: be more concise when there's only one URL+tarball
9356         * build-aux/announce-gen (get_tool_versions): When you distribute
9357         only one type of tarball, combine the first two "Here are..."
9358         sections and make the key-checking grammar independent of
9359         how many tarballs there are.
9360
9361 2011-11-09  Eric Blake  <eblake@redhat.com>
9362
9363         openpty: provide a stub on mingw
9364         * lib/pty.in.h (includes): Provide forward declarations.
9365         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
9366
9367         raise: fix mingw handling of SIGPIPE
9368         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
9369
9370 2011-11-08  Bruno Haible  <bruno@clisp.org>
9371
9372         More conditional dependencies.
9373         * modules/faccessat (Depends-on): Add conditions.
9374         * modules/fchmodat (Depends-on): Likewise.
9375         * modules/fchownat (Depends-on): Likewise.
9376         * modules/fstatat (Depends-on): Likewise.
9377         * modules/mkfifoat (Depends-on): Likewise.
9378         * modules/readlinkat (Depends-on): Likewise.
9379         * modules/symlinkat (Depends-on): Likewise.
9380         * modules/unlinkat (Depends-on): Likewise.
9381         * modules/utimensat (Depends-on): Likewise.
9382         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
9383         * modules/linkat (Depends-on): Refine the conditions.
9384         * modules/renameat (Depends-on): Likewise.
9385
9386 2011-11-08  Bruno Haible  <bruno@clisp.org>
9387
9388         faccessat: Move AC_LIBOBJ invocation to module description.
9389         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
9390         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
9391         invocation from here...
9392         * modules/faccessat (configure.ac): ... to here. Invoke
9393         gl_PREREQ_FACCESSAT.
9394
9395 2011-11-08  Bruno Haible  <bruno@clisp.org>
9396
9397         faccessat: Simplify autoconf macro.
9398         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
9399         gl_FUNC_EUIDACCESS.
9400
9401 2011-11-08  Bruno Haible  <bruno@clisp.org>
9402
9403         renameat: Fix dependencies.
9404         * modules/renameat (Depends-on): Add stdbool.
9405
9406 2011-11-08  Bruno Haible  <bruno@clisp.org>
9407
9408         mkfifoat: Fix module description.
9409         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
9410         not gl_UNISTD_MODULE_INDICATOR.
9411
9412 2011-11-08  Bruno Haible  <bruno@clisp.org>
9413
9414         fstatat: Remove unused dependency.
9415         * modules/fstatat (Depends-on): Remove fstat.
9416
9417 2011-11-08  Simon Josefsson  <simon@josefsson.org>
9418
9419         GNUmakefile: behave when Makefile is missing.
9420         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
9421
9422 2011-11-08  Bruno Haible  <bruno@clisp.org>
9423
9424         openat: Conditionalize dependencies.
9425         * lib/openat.c: Reduce the scope of some #includes.
9426         * modules/openat (Depends-on): Add conditions.
9427
9428 2011-11-07  Jim Meyering  <meyering@redhat.com>
9429
9430         maint.mk: extract GPG key ID without using a temporary file
9431         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
9432         without using a temporary file.  Based on a suggestion from Werner Koch
9433         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
9434
9435 2011-11-07  Eric Blake  <eblake@redhat.com>
9436
9437         grantpt: fix typo
9438         * lib/stdlib.in.h (grantpt): Check correct function.
9439
9440         maint.mk: silence new syntax check
9441         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
9442
9443 2011-11-06  Bruno Haible  <bruno@clisp.org>
9444
9445         Doc about floating-point and math API.
9446         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
9447         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
9448
9449 2011-11-06  Bruno Haible  <bruno@clisp.org>
9450
9451         stdalign tests: Skip the test when compiled by Sun C.
9452         * tests/test-stdalign.c (main): Skip the test on Sun C.
9453
9454 2011-11-06  Bruno Haible  <bruno@clisp.org>
9455
9456         ansi-c++-opt: Complete the 2011-06-05 change.
9457         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
9458         does not support namespaces, set the variable to "no", not to ":".
9459
9460 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9461
9462         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
9463
9464 2011-11-06  Bruno Haible  <bruno@clisp.org>
9465
9466         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
9467         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
9468         (minus_zerol) [HP-UX]: New macro.
9469         (unary_minus) [HP-UX]: New function.
9470         (copysignl) [HP-UX]: Use unary_minus function.
9471
9472 2011-11-06  Bruno Haible  <bruno@clisp.org>
9473
9474         ldexp, ldexpf, ldexpl: Enhance tests.
9475         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
9476         and tests/test-ldexpl.c.
9477         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
9478         LDEXP, MIN_EXP, MAX_EXP): New macros.
9479         Include test-ldexp.h.
9480         (main): Just call test_function.
9481         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
9482         infinity.h, nan.h.
9483         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9484         MAX_EXP): New macros.
9485         Include test-ldexp.h.
9486         (x, y): Remove variables.
9487         (main): Just call test_function.
9488         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
9489         infinity.h, nan.h.
9490         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9491         MAX_EXP): New macros.
9492         Include test-ldexp.h.
9493         (x, y): Remove variables.
9494         (main): Just call test_function.
9495         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
9496         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
9497         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9498         (Depends-on): Add isnand-nolibm, signbit, float.
9499         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
9500         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9501         (Depends-on): Add isnanf-nolibm, signbit, float.
9502
9503 2011-11-06  Bruno Haible  <bruno@clisp.org>
9504
9505         math tests: Cosmetics.
9506         * tests/test-math-c++.cc: Reorder declarations.
9507
9508 2011-11-05  Bruno Haible  <bruno@clisp.org>
9509
9510         fma*: Simplify test.
9511         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
9512         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
9513
9514         Tests for module 'fmal'.
9515         * modules/fmal-tests: New file.
9516         * tests/test-fmal1.c: New file.
9517         * tests/test-fmal2.c: New file.
9518
9519         New module 'fmal'.
9520         * lib/math.in.h (fmal): New declaration.
9521         * lib/fmal.c: New file.
9522         * m4/fmal.m4: New file.
9523         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
9524         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
9525         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
9526         REPLACE_FMAL.
9527         * modules/fmal: New file.
9528         * doc/posix-functions/fmal.texi: Mention the new module and the various
9529         bugs.
9530
9531         Tests for module 'fmaf'.
9532         * modules/fmaf-tests: New file.
9533         * tests/test-fmaf1.c: New file.
9534         * tests/test-fmaf2.c: New file.
9535
9536         New module 'fmaf'.
9537         * lib/math.in.h (fmaf): New declaration.
9538         * lib/fmaf.c: New file.
9539         * m4/fmaf.m4: New file.
9540         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
9541         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
9542         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
9543         REPLACE_FMAF.
9544         * modules/fmaf: New file.
9545         * doc/posix-functions/fmaf.texi: Mention the new module and the various
9546         bugs.
9547
9548         Tests for module 'fma'.
9549         * modules/fma-tests: New file.
9550         * tests/test-fma1.c: New file.
9551         * tests/test-fma1.h: New file.
9552         * tests/test-fma2.c: New file.
9553         * tests/test-fma2.h: New file.
9554
9555         New module 'fma'.
9556         * lib/math.in.h (fma): New declaration.
9557         * lib/fma.c: New file.
9558         * m4/fma.m4: New file.
9559         * m4/fegetround.m4: New file.
9560         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
9561         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
9562         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
9563         REPLACE_FMA.
9564         * modules/fma: New file.
9565         * doc/posix-functions/fma.texi: Mention the new module and the various
9566         bugs.
9567
9568         Extend gl_MATHFUNC.
9569         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
9570         Support 'void' as argument type.
9571         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
9572
9573 2011-11-05  Jim Meyering  <meyering@redhat.com>
9574
9575         maint.mk: also prohibit inclusion of dirent.h without use
9576         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
9577
9578 2011-11-05  Bruno Haible  <bruno@clisp.org>
9579
9580         ldexpl tests: Avoid test failure on MSVC 9.
9581         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
9582         value. Needed in order to enforce the conversion from a value greater
9583         than LDBL_MAX to Infinity.
9584
9585 2011-11-05  Bruno Haible  <bruno@clisp.org>
9586
9587         New modules 'at-internal', 'openat-h', split off from module 'openat'.
9588         * modules/at-internal: New file, extracted from modules/openat.
9589         * modules/openat-h: New file.
9590         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
9591         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
9592         * modules/openat (Description): Add reference to POSIX function.
9593         (Files): Remove lib/openat.h, lib/openat-proc.c.
9594         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
9595         intprops, unistd.
9596         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
9597         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
9598         gl_FCNTL_MODULE_INDICATOR.
9599         (Include): Remove unistd.h, openat.h.
9600         * modules/areadlinkat (Files): Add lib/at-func.c.
9601         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9602         openat-die, openat-h, save-cwd.
9603         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
9604         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9605         openat-die, openat-h, save-cwd, unistd.
9606         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
9607         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9608         openat-h, save-cwd. Remove fcntl-h, openat.
9609         * modules/fchmodat (Files): Remove lib/openat.h.
9610         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9611         openat, stdbool, unistd.
9612         * modules/fchownat (Files): Remove lib/openat.h.
9613         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9614         openat, stdbool, sys_stat.
9615         * modules/fdopendir (Files): Remove lib/openat-priv.h,
9616         lib/openat-proc.c.
9617         (Depends-on): Add at-internal.
9618         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
9619         * modules/fstatat (Files): Remove lib/openat.h.
9620         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9621         stdbool, unistd.
9622         * modules/fts (Depends-on): Add openat-h.
9623         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
9624         openat.
9625         * modules/mkdirat (Files): Remove lib/openat.h.
9626         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9627         openat, stdbool, sys_stat.
9628         * modules/mkfifoat (Files): Add lib/at-func.c.
9629         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9630         openat-h, save-cwd. Remove fcntl-h, openat.
9631         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
9632         * modules/readlinkat (Files): Add lib/at-func.c.
9633         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9634         openat-h, save-cwd. Remove fcntl-h, openat.
9635         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
9636         openat.
9637         * modules/selinux-at (Files): Add lib/at-func.c.
9638         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9639         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
9640         * modules/symlinkat (Files): Add lib/at-func.c.
9641         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9642         openat-h, save-cwd. Remove fcntl-h, openat.
9643         * modules/unlinkat (Files): Remove lib/openat.h.
9644         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9645         stdbool.
9646         * modules/utimensat (Files): Add lib/at-func.c.
9647         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
9648         openat-die, openat-h, save-cwd.
9649         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
9650         * modules/fdutimensat-tests (Depends-on): Add openat.
9651         * modules/fstatat-tests (Depends-on): Add openat-h.
9652         * modules/readlinkat-tests (Depends-on): Add openat.
9653         * modules/symlinkat-tests (Depends-on): Add openat.
9654
9655 2011-11-05  Bruno Haible  <bruno@clisp.org>
9656
9657         openat: Include <stdbool.h>.
9658         * lib/openat.c: Include <stdbool.h>.
9659
9660 2011-11-04  Bruno Haible  <bruno@clisp.org>
9661
9662         fchownat, renameat, unlinkat: Fix dependencies.
9663         * modules/fchownat (Depends-on): Add fstatat.
9664         * modules/renameat (Depends-on): Likewise.
9665         * modules/unlinkat (Depends-on): Likewise.
9666
9667 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
9668
9669         openat: remove direct dependency on dirent
9670         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
9671         and hasn't been needed ever since fdopendir was split into its own
9672         module on 2009-08-31.
9673         * modules/openat (Depends-on): Remove dirent.
9674
9675 2011-11-04  Bruno Haible  <bruno@clisp.org>
9676
9677         renameat: Optimize code size.
9678         * modules/renameat (configure.ac): Don't compile at-func2.c if
9679         REPLACE_RENAMEAT is 1.
9680
9681 2011-11-04  Bruno Haible  <bruno@clisp.org>
9682
9683         openat tests: Fix file list.
9684         * modules/openat-tests (Files): Add tests/test-open.h.
9685
9686 2011-11-04  Bruno Haible  <bruno@clisp.org>
9687
9688         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
9689         * modules/fchmodat (Depends-on): Add openat-die.
9690         * modules/fchownat (Depends-on): Likewise.
9691         * modules/linkat (Depends-on): Likewise.
9692         * modules/renameat (Depends-on): Likewise.
9693         * modules/openat (Depends-on): Add dirent.
9694
9695 2011-11-04  Jim Meyering  <meyering@redhat.com>
9696
9697         at-func*.c: fix comments
9698         * lib/at-func2.c: Correct/improve first-line comment.
9699         * lib/at-func.c: Correct grammar in first-line comment.
9700
9701 2011-11-04  Bruno Haible  <bruno@clisp.org>
9702
9703         New module 'mkdirat', split off from module 'openat'.
9704         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
9705         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
9706         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
9707         * modules/mkdirat: New file, extracted from modules/openat.
9708         * modules/openat (Files): Remove lib/mkdirat.c.
9709         (Depends-on): Remove mkdir.
9710         (configure.ac): Remove AC_LIBOBJ of mkdirat.
9711         (Include): Remove <sys/stat.h>.
9712         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
9713         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
9714         tests/test-mkdir.h.
9715         (Depends-on): Remove ignore-value.
9716         (Makefile.am): Remove rules for test-mkdirat.
9717         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
9718         of module 'openat'.
9719         * NEWS: Mention the change.
9720
9721 2011-11-04  Bruno Haible  <bruno@clisp.org>
9722
9723         closedir: Avoid warning on mingw.
9724         * lib/closedir.c: Include <unistd.h>.
9725
9726 2011-11-04  Bruno Haible  <bruno@clisp.org>
9727
9728         New module 'fstatat', split off from module 'openat'.
9729         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
9730         defined.
9731         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
9732         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
9733         gl_FUNC_FSTATAT.
9734         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
9735         * modules/fstatat: New file, extracted from modules/openat.
9736         * modules/openat (Files): Remove lib/fstatat.c.
9737         (Depends-on): Remove lstat.
9738         (configure.ac): Remove AC_LIBOBJ of fstatat.
9739         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
9740         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
9741         tests/test-lstat.h, tests/test-stat.h.
9742         (Depends-on): Remove getcwd-lgpl.
9743         (Makefile.am): Remove rules for test-fstatat.
9744         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
9745         of module 'openat'.
9746         * NEWS: Mention the change.
9747         * modules/getcwd (Depends-on): Add fstatat.
9748         * modules/linkat (Depends-on): Likewise.
9749         * modules/mkfifoat-tests (Depends-on): Likewise.
9750         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
9751
9752 2011-11-03  Bruno Haible  <bruno@clisp.org>
9753
9754         New module 'unlinkat', split off from module 'openat'.
9755         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
9756         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
9757         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
9758         * modules/unlinkat: New file, extracted from modules/openat. Correct
9759         the dependency conditions.
9760         * modules/openat (Files): Remove lib/unlinkat.c.
9761         (Depends-on): Remove rmdir, unlink.
9762         (configure.ac): Remove AC_LIBOBJ of unlinkat.
9763         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
9764         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
9765         tests/test-rmdir.h, tests/test-unlink.h.
9766         (Depends-on): Remove unlinkdir.
9767         (Makefile.am): Remove rules for test-unlinkat.
9768         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
9769         of module 'openat'.
9770         * NEWS: Mention the change.
9771         * modules/linkat-tests (Depends-on): Add unlinkat.
9772         * modules/mkfifoat-tests (Depends-on): Likewise.
9773         * modules/readlinkat-tests (Depends-on): Likewise.
9774
9775 2011-11-02  Bruno Haible  <bruno@clisp.org>
9776
9777         New module 'fchmodat', split off from module 'openat'.
9778         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
9779         defined.
9780         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
9781         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
9782         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
9783         * modules/fchmodat: New file, extracted from modules/openat.
9784         * modules/openat (Files): Remove lib/fchmodat.c.
9785         (configure.ac): Remove AC_LIBOBJ of fchmodat.
9786         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
9787         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
9788         (Makefile.am): Remove rules for test-fchmodat.
9789         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
9790         of module 'openat'.
9791         * NEWS: Mention the change.
9792
9793 2011-11-02  Jim Meyering  <meyering@redhat.com>
9794
9795         putenv: indent #definition of "environ" to placate cppi
9796         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
9797
9798         gitlog-to-changelog: provide a ChangeLog-repair mechanism
9799         Git logs are often treated as immutable, because editing them
9800         changes the SHA1 checksums of all descendants.  Thus, errors in
9801         git logs tend to stay there forever.  However, when we generate
9802         a ChangeLog file -- typically for distribution -- from that git log,
9803         we can actually make corrections in the generated file.  The key
9804         lies in recording in machine-readable/applicable form the desired
9805         corrections.  See --help for description and an example.
9806         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
9807         (usage): Describe it; alphabetize option descriptions.
9808         (main): Honor the new option, carefully.
9809
9810 2011-11-01  Jim Meyering  <meyering@redhat.com>
9811
9812         gitlog-to-changelog: avoid an infloop
9813         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
9814         that ends up being empty.
9815
9816 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9817
9818         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
9819         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
9820         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
9821         contains (possibly-quoted) backslashes.  This should avoid
9822         all-too-common shell bugs if COMPLICATED contains backslashes in
9823         the "wrong" places.  Reported by David Evans in
9824         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
9825         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
9826         because we want ASCII ranges.  Is there some reason we don't use
9827         the C locale everywhere in this script?
9828         (func_module, top level): Avoid unwanted pathname expansion when
9829         $repo_url_prefix or $repo_url_suffix_repl contain shell
9830         metacharacters like '?' and '*'.
9831
9832 2011-11-01  Bruno Haible  <bruno@clisp.org>
9833
9834         fchownat: Improve description.
9835         * modules/fchownat (Description): Add link to function.
9836
9837 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9838
9839         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
9840         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
9841         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
9842         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
9843
9844 2011-11-01  Bruno Haible  <bruno@clisp.org>
9845
9846         alignof: Avoid collision with stdalign module.
9847         * lib/alignof.h (alignof): Remove macro.
9848         * NEWS: Mention the change.
9849         Reported by Paul Eggert.
9850
9851 2011-11-01  Bruno Haible  <bruno@clisp.org>
9852
9853         New module 'fchownat', split off from module 'openat'.
9854         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
9855         defined.
9856         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
9857         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
9858         invoke gl_FUNC_FCHOWNAT.
9859         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
9860         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
9861         * modules/fchownat: New file, extracted from modules/openat.
9862         * modules/openat (Files): Remove lib/fchownat.c.
9863         (Depends-on): Remove lchown.
9864         (configure.ac): Remove AC_LIBOBJ of fchownat.
9865         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
9866         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
9867         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
9868         (Depends-on): Remove mgetgroups, usleep, stat-time.
9869         (configure.ac): Remove test for getegid.
9870         (Makefile.am): Remove rules for test-fchownat.
9871         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
9872         of module 'openat'.
9873         * NEWS: Mention the change.
9874
9875 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
9876
9877         stdalign: port better to MSVC and to Sun C 5.11
9878         This fixes some of the problems reported by Bruno Haible in
9879         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
9880         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
9881         shortcomings of MSVC and of Sun C 5.11.
9882         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
9883         around __declspec arg.
9884         * modules/stdalign-tests (Files): Add tests/macros.h.
9885         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
9886         Include macros.h, for ASSERT.
9887         (DECLARE_ALIGNED): Remove.
9888         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
9889         to catch bug), and to 1 if not (simplifies the rest of the code).
9890         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
9891         (CHECK_AUTO): Remove.
9892         (CHECK_ALIGNED): Check only the alignment of the static vars,
9893         since auto var alignment isn't supported by Sun C 5.11.
9894         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
9895         ASSERT failures are easier to diagnose.
9896
9897 2011-10-31  Bruno Haible  <bruno@clisp.org>
9898
9899         doc about some IRIX 5.3 problems.
9900         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
9901         on IRIX 5.3.
9902         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
9903         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
9904         5.3.
9905         * doc/posix-functions/grantpt.texi: Likewise.
9906         * doc/posix-functions/unlockpt.texi: Likewise.
9907         * doc/posix-functions/lgamma.texi: Likewise.
9908         * doc/posix-functions/nextafter.texi: Likewise.
9909         * doc/posix-functions/remainder.texi: Likewise.
9910         * doc/posix-functions/select.texi: Mention misplaced declaration on
9911         IRIX 5.3.
9912         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9913
9914 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
9915
9916         gitlog-to-changelog: fix git-log invocation.
9917         git-log mishandles date strings before 1970-01-01 UTC, and there is
9918         no use to specify --since=1970-01-01 by default anyway.
9919         * build-aux/gitlog-to-changelog: By default, when no --since option
9920         was given, do not specify explicit --since option to git-log.
9921
9922 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
9923
9924         gitlog-to-changelog: new option --append-dot.
9925         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
9926         first non-blank line of each commit message terminated with a dot.
9927
9928 2011-10-30  Bruno Haible  <bruno@clisp.org>
9929
9930         ffsl, ffsll: Avoid compilation error due to 'restrict'.
9931         * lib/ffsl.h: Include <config.h>.
9932         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
9933
9934 2011-10-30  Jim Meyering  <meyering@redhat.com>
9935
9936         GNUmakefile: reenable "make syntax-check" for most projects
9937         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
9938         build-aux variable", "syntax-check" would do nothing but succeed with
9939         the "No version control files detected..." diagnostic (unless you
9940         happened to override _build-aux via cfg.mk).
9941         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
9942         to precede inclusion of maint.mk.  Otherwise, these variables would
9943         be used undefined in any project that does not override the default.
9944
9945 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
9946
9947         gitlog-to-changelog: treat a message with only blank lines as empty.
9948         * build-aux/gitlog-to-changelog: Move the code that removes leading and
9949         trailing blank lines before the code that issues a warning about an
9950         empty commit message.
9951
9952 2011-10-30  Jim Meyering  <meyering@redhat.com>
9953
9954         test-parse-datetime.c: avoid new DST-related false positive test failure
9955         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
9956         based on the time/date we'll convert, not the current time.
9957         Otherwise, the moment we cross a DST boundary like today's in
9958         Europe, (CEST to CET), that offset ends up being one hour off.
9959
9960 2011-10-27  Bruno Haible  <bruno@clisp.org>
9961
9962         fstat: Tweak documentation.
9963         * modules/fstat (Description): More precise description.
9964
9965 2011-10-27  Bruno Haible  <bruno@clisp.org>
9966
9967         Update documentation regarding 'largefile' module.
9968         * doc/posix-functions/fstat.texi: Tweak wording.
9969         * doc/posix-functions/opendir.texi: Mention that the module fixes the
9970         problems with huge directories and/or small ino_t types.
9971         * doc/posix-functions/readdir.texi: Likewise.
9972         * doc/posix-functions/rewinddir.texi: Likewise.
9973
9974 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
9975
9976         maint.mk: don't maintain a second build-aux variable.
9977         * maint.mk (build_aux): Removed.  The maintainer-makefile module
9978         depends on GNUmakefile, which already maintains a cfg.mk
9979         overridable $(_build-aux) for projects with a non-standard
9980         build-aux directory location, although without the $(srcdir)
9981         prefix.  Use that variable consistently instead of introducing a
9982         second one.  Adjust all call sites.
9983
9984 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9985
9986         Add stdalign module and use it in other modules.
9987         This is based on a previous proposal by Bruno Haible
9988         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
9989
9990         stdalign: new module
9991         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
9992         * modules/stdalign: New files.
9993         * MODULES.html.sh (c1x_core_properties): Add stdalign.
9994         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
9995
9996         stdalign-tests: new module
9997         * modules/stdalign-tests, tests/test-stdalign.c: New files.
9998
9999         argp: use stdalign
10000         * lib/argp-parse.c: Include <stdalign.h>.
10001         (alignof): Remove.
10002         * modules/argp (Depends-on): Add stdalign.
10003
10004         crypto libraries: use stdalign
10005         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
10006         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
10007         Do not include <stdlib.h> twice, in md4.c.
10008         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
10009         because we are accessing a pointer's bit-pattern, not a size.
10010         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
10011         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
10012         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
10013         * modules/crypto/sha512: Likewise.
10014
10015         sys_socket: use stdalign, not alignof
10016         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
10017         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
10018
10019 2011-10-27  Bruno Haible  <bruno@clisp.org>
10020
10021         raise test: Avoid a test failure on Linux/MIPS.
10022         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
10023         because 99 is a valid signal on Linux/MIPS.
10024
10025 2011-10-27  Bruno Haible  <bruno@clisp.org>
10026
10027         nonblocking tests: Fix test failure on Linux/MIPS.
10028         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
10029         Set to 270000.
10030
10031 2011-10-27  Bruno Haible  <bruno@clisp.org>
10032
10033         utimensat: Work around problem on Linux/hppa.
10034         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
10035         values.
10036         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
10037
10038 2011-10-25  Jim Meyering  <meyering@redhat.com>
10039
10040         maint.mk: fix a bug in sc_prohibit_stddef_without_use
10041         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
10042         after symbols like NULL, size_t, etc.
10043         Reported by Alfred M. Szmidt.
10044
10045         maint.mk: exempt ENODATA from a syntax-check rule
10046         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
10047         from the sc_prohibit_always-defined_macros syntax-check rule.
10048         Add a comment.  See this for more details:
10049         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
10050
10051 2011-10-23  Jim Meyering  <meyering@redhat.com>
10052
10053         fts: close parent dir FD before returning from post-traversal fts_read
10054         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
10055         unlink A, even though an FD open on A remained.  This is suboptimal
10056         (holding a file descriptor open longer than needed), but otherwise not
10057         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
10058         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
10059         that represents a real problem: it causes the removal of A to fail
10060         with e.g., "rm: cannot remove `A': Device or resource busy"
10061
10062         fts visits each directory twice and keeps a cache (fts_fd_ring) of
10063         directory file descriptors.  After completing the final, FTS_DP,
10064         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
10065         cache, but then proceeded to add a new FD to it via the subsequent
10066         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
10067         final file descriptor would be closed only via fts_close's call to
10068         fd_ring_clear.  Now, it is usually closed earlier, via the final
10069         FTS_DP-returning fts_read call.
10070         * lib/fts.c (restore_initial_cwd): New function, converted from
10071         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
10072         Update callers.
10073         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
10074         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
10075
10076 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
10077             Bruno Haible  <bruno@clisp.org>
10078             Jim Meyering  <jim@meyering.net>
10079
10080         readme-release: improve safety of release prep instructions.
10081         * README-release: Don't git pull all branches when only master
10082         is needed for the release process.
10083         Run make maintainer-clean before changing trees and merging.
10084         Don't try to run ./configure right after git pull in case files
10085         that influence the bootstrap process have changed, move the
10086         ./configure step to after running ./bootstrap.
10087         Don't bootstrap "one last time"... it's the first time!
10088
10089 2011-10-22  Bruno Haible  <bruno@clisp.org>
10090
10091         errno, strerror-override: Support for MSVC 10.
10092         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
10093         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
10094         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
10095         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
10096         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
10097         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
10098         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
10099         Assign values compatible with MSVC 10.
10100         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
10101         New macros.
10102         (GNULIB_defined_EWINSOCK): New macro.
10103         * lib/strerror-override.c (strerror_override): Update accordingly.
10104         * lib/strerror-override.h: Likewise.
10105         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
10106         longer equal to the corresponding errno value.
10107         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10108
10109 2011-10-22  Bruno Haible  <bruno@clisp.org>
10110
10111         perror: Recognize when test program crashes.
10112         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
10113         strerror, set gl_cv_func_perror_works to no.
10114         Reported by Daniel Richard G. <skunk@iskunk.org>.
10115
10116         perror: Fix indentation.
10117         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
10118
10119 2011-10-22  Bruno Haible  <bruno@clisp.org>
10120
10121         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
10122         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
10123         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
10124         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
10125         functions, not as a macro.
10126         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
10127         macros.
10128         (isfinite, isinf, isnan, signbit): Check overloaded functions and
10129         absence of macro.
10130         Suggested by Eric Blake.
10131         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10132
10133 2011-10-21  Bruno Haible  <bruno@clisp.org>
10134
10135         relocatable-prog-wrapper: Don't leave object files behind.
10136         * build-aux/install-reloc: Re-synchronize list of .o files to be
10137         removed with list of compilation units.
10138
10139 2011-10-20  Bruno Haible  <bruno@clisp.org>
10140
10141         openpty, posix_openpt: Remove code duplication.
10142         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
10143         * lib/openpty.c: Include <stdlib.h>.
10144         (openpty): Use posix_openpt on all platforms except IRIX.
10145         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
10146
10147 2011-10-20  Bruno Haible  <bruno@clisp.org>
10148
10149         unlockpt: Detect invalid argument.
10150         * lib/unlockpt.c: Include <fcntl.h>.
10151         (unlockpt): Check whether fd is valid, using fcntl().
10152         * modules/unlockpt (Depends-on): Add fcntl-h.
10153
10154 2011-10-20  Bruno Haible  <bruno@clisp.org>
10155
10156         openpty: Avoid compilation error on AIX 6.1.
10157         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
10158
10159 2011-10-20  Bruno Haible  <bruno@clisp.org>
10160
10161         posix_openpt: Support for OpenBSD.
10162         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
10163         (posix_openpt) [OpenBSD]: New code.
10164         * lib/grantpt.c: Include <fcntl.h>.
10165         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
10166         * modules/grantpt (Depends-on): Add fcntl-h.
10167
10168 2011-10-20  Bruno Haible  <bruno@clisp.org>
10169
10170         posix_openpt test: Coding style.
10171         * tests/test-posix_openpt.c: Use GNU coding style.
10172
10173 2011-10-20  Bruno Haible  <bruno@clisp.org>
10174
10175         grantpt: Support --avoid=pt_chown.
10176         * modules/grantpt (Files): Add lib/pty-private.h.
10177
10178 2011-10-20  Bruno Haible  <bruno@clisp.org>
10179
10180         posix_openpt: Fix autoconf macro.
10181         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
10182         unneeded check for _getpty.
10183
10184 2011-10-20  Bruno Haible  <bruno@clisp.org>
10185
10186         openpty: Update comments.
10187         * lib/openpty.c: Add comments about Minix.
10188
10189 2011-10-19  Eric Blake  <eblake@redhat.com>
10190
10191         openpty: relax license
10192         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
10193
10194         pt_chown: use configmake to simplify build
10195         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
10196
10197         ptsname and others: relax license
10198         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
10199         * modules/unlockpt (License): Likewise.
10200         * modules/pt_chown (License): Likewise.
10201         * modules/ptsname (License): Likewise.
10202         * modules/ttyname_r (License): Likewise.
10203
10204 2011-10-19  Jim Meyering  <meyering@redhat.com>
10205
10206         posix_openpt: remove spurious #endif
10207         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
10208
10209 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
10210
10211         maint.mk: Respect $(build_aux) in web-manual rule.
10212         * top/maint.mk (web-manual): Find gen-announce script in user's
10213         $(build_aux) directory instead of hard-coding 'build-aux'.
10214
10215 2011-10-19  Bruno Haible  <bruno@clisp.org>
10216
10217         posix_openpt: Fix compilation error.
10218         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
10219         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
10220         Mention the openpty module as an alternative.
10221
10222 2011-10-19  Bruno Haible  <bruno@clisp.org>
10223
10224         Support for old NeXTstep 3.3 frexp().
10225         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
10226         execution time of the test to 5 seconds.
10227         Reported by Daniel Richard G. <skunk@iskunk.org>.
10228
10229 2011-10-19  Bruno Haible  <bruno@clisp.org>
10230
10231         Support for old NeXTstep 3.3 sed.
10232         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
10233         part, use /.../, not \|...|. Escape periods in the header file name.
10234         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10235         Reported by Daniel Richard G. <skunk@iskunk.org>.
10236
10237 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10238
10239         Support for old NeXTstep 3.3 gcc.
10240         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
10241         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
10242         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
10243         * lib/spawn.in.h (_Restrict_arr_): Likewise.
10244         * lib/regex.h (_Restrict_arr_): Likewise.
10245         * lib/regex_internal.h (re_token_t): Likewise.
10246         * lib/regexec.c (check_node_accept_bytes): Likewise.
10247         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
10248
10249 2011-10-18  Eric Blake  <eblake@redhat.com>
10250
10251         posix_openpt: new module
10252         * modules/posix_openpt: New module.
10253         * m4/posix_openpt.m4: New file.
10254         * lib/posix_openpt.c: Likewise.
10255         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10256         (gl_STDLIB_H_DEFAULTS): Set defaults.
10257         * modules/stdlib (Makefile.am): Substitute macros.
10258         * lib/stdlib.in.h (posix_openpt): Declare.
10259         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
10260         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
10261         * modules/posix_openpt-tests: New test module.
10262         * tests/test-posix_openpt.c: New test.
10263
10264 2011-10-15  Bruno Haible  <bruno@clisp.org>
10265
10266         xstrtoll: Fix compilation failure.
10267         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
10268         from lib/strtol.c.
10269         * doc/posix-headers/limits.texi: Mention missing numerical limits on
10270         some platforms.
10271         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10272
10273 2011-10-15  Bruno Haible  <bruno@clisp.org>
10274
10275         vasnprintf: Optimize bit search operation.
10276         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
10277         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
10278         gl_DOUBLE_EXPONENT_LOCATION.
10279         * modules/vasnprintf (Files): Add m4/exponentd.m4.
10280         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10281         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10282         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10283         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10284         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10285         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10286         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10287         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
10288
10289 2011-10-15  Bruno Haible  <bruno@clisp.org>
10290
10291         vasnprintf: Fix comments.
10292         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
10293
10294 2011-10-14  Bruno Haible  <bruno@clisp.org>
10295
10296         Tests for module 'integer_length_ll'.
10297         * modules/integer_length_ll-tests: New file.
10298         * tests/test-integer_length_ll.c: New file.
10299
10300         New module 'integer_length_ll'.
10301         * lib/integer_length_ll.c: New file.
10302         * modules/integer_length_ll: New file.
10303
10304 2011-10-14  Bruno Haible  <bruno@clisp.org>
10305
10306         Tests for module 'integer_length_l'.
10307         * modules/integer_length_l-tests: New file.
10308         * tests/test-integer_length_l.c: New file.
10309
10310         New module 'integer_length_l'.
10311         * lib/integer_length_l.c: New file.
10312         * modules/integer_length_l: New file.
10313
10314 2011-10-14  Bruno Haible  <bruno@clisp.org>
10315
10316         Tests for module 'integer_length'.
10317         * modules/integer_length-tests: New file.
10318         * tests/test-integer_length.c: New file.
10319
10320         New module 'integer_length'.
10321         * lib/integer_length.h: New file.
10322         * lib/integer_length.c: New file.
10323         * modules/integer_length: New file.
10324
10325 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10326
10327         popen: Fix dependency conditions.
10328         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
10329
10330 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10331
10332         perror: Fix autoconf test.
10333         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
10334         <stdlib.h> and <string.h>.
10335
10336 2011-10-14  Bruno Haible  <bruno@clisp.org>
10337
10338         ffsl: Optimize on 64-bit platforms.
10339         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
10340         unrolling.
10341
10342 2011-10-13  Bruno Haible  <bruno@clisp.org>
10343
10344         ffsl: Optimize on 32-bit platforms.
10345         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
10346         use ffs() without a loop.
10347
10348         ffsl, ffsll: Optimize for GCC.
10349         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
10350         * lib/ffsl.c (GCC_BUILTIN): New macro.
10351         * lib/ffsll.c (GCC_BUILTIN): Likewise.
10352
10353 2011-10-13  Bruno Haible  <bruno@clisp.org>
10354
10355         ffs, bcopy, memset: Support symbol renaming via config.h.
10356         * lib/ffs.c: Include <config.h>.
10357         * lib/bcopy.c: Likewise.
10358         * lib/memset.c: Likewise.
10359
10360 2011-10-10  Bruno Haible  <bruno@clisp.org>
10361
10362         atanl: Simplify for platforms where 'long double' == 'double'.
10363         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10364         alternative implementation.
10365         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10366         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10367         * modules/atanl (Depends-on): Add atan. Update conditions.
10368
10369 2011-10-10  Bruno Haible  <bruno@clisp.org>
10370
10371         acosl: Simplify for platforms where 'long double' == 'double'.
10372         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10373         alternative implementation.
10374         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10375         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10376         * modules/acosl (Depends-on): Add acos. Update conditions.
10377
10378 2011-10-10  Bruno Haible  <bruno@clisp.org>
10379
10380         asinl: Simplify for platforms where 'long double' == 'double'.
10381         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10382         alternative implementation.
10383         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10384         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10385         * modules/asinl (Depends-on): Add asin. Update conditions.
10386
10387 2011-10-10  Bruno Haible  <bruno@clisp.org>
10388
10389         tanl: Simplify for platforms where 'long double' == 'double'.
10390         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10391         implementation.
10392         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10393         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10394         * modules/tanl (Depends-on): Add tan. Update conditions.
10395         (configure.ac): Don't compile trigl.c if
10396         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10397
10398 2011-10-10  Bruno Haible  <bruno@clisp.org>
10399
10400         cosl: Simplify for platforms where 'long double' == 'double'.
10401         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10402         implementation.
10403         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10404         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10405         * modules/cosl (Depends-on): Add cos. Update conditions.
10406         (configure.ac): Don't compile sincosl.c and trigl.c if
10407         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10408
10409 2011-10-10  Bruno Haible  <bruno@clisp.org>
10410
10411         sinl: Simplify for platforms where 'long double' == 'double'.
10412         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10413         implementation.
10414         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10415         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10416         * modules/sinl (Depends-on): Add sin. Update conditions.
10417         (configure.ac): Don't compile sincosl.c and trigl.c if
10418         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10419
10420 2011-10-10  Bruno Haible  <bruno@clisp.org>
10421
10422         logl: Simplify for platforms where 'long double' == 'double'.
10423         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10424         implementation.
10425         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10426         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10427         * modules/logl (Depends-on): Add log. Update conditions.
10428
10429 2011-10-10  Bruno Haible  <bruno@clisp.org>
10430
10431         expl: Simplify for platforms where 'long double' == 'double'.
10432         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10433         implementation.
10434         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10435         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10436         * modules/expl (Depends-on): Add exp. Update conditions.
10437
10438 2011-10-10  Bruno Haible  <bruno@clisp.org>
10439
10440         sqrtl: Simplify for platforms where 'long double' == 'double'.
10441         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10442         alternative implementation.
10443         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10444         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10445         * modules/sqrtl (Depends-on): Update conditions.
10446
10447 2011-10-10  Bruno Haible  <bruno@clisp.org>
10448
10449         ldexpl: Simplify for platforms where 'long double' == 'double'.
10450         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10451         alternative implementation.
10452         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10453         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10454         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
10455
10456 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
10457
10458         ffsll: set correct witness
10459         * modules/ffsll (configure.ac): Fix typo.
10460
10461 2011-10-10  Bruno Haible  <bruno@clisp.org>
10462
10463         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
10464         * lib/printf-frexpl.c: Include <config.h>.
10465         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10466         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
10467         second time.
10468         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
10469         gl_LONG_DOUBLE_VS_DOUBLE.
10470         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
10471         conditions.
10472
10473 2011-10-10  Bruno Haible  <bruno@clisp.org>
10474
10475         frexpl: Simplify for platforms where 'long double' == 'double'.
10476         * lib/frexpl.c: Include <config.h>.
10477         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10478         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10479         time.
10480         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10481         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10482         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
10483         * modules/frexpl (Depends-on): Add frexp. Update conditions.
10484         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
10485         conditions.
10486
10487 2011-10-10  Jim Meyering  <meyering@redhat.com>
10488
10489         test-renameat: don't leave behind a temporary file
10490         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
10491           ERROR: files left in build directory after distclean:
10492           ./gltests/test-renameat.too
10493           make[1]: *** [distcleancheck] Error 1
10494         Reported by Tom G. Christensen.
10495
10496 2011-10-09  Bruno Haible  <bruno@clisp.org>
10497
10498         rint: Determine RINT_LIBM correctly on AIX 7.
10499         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
10500         directly, not only through a function pointer. Also accept an optional
10501         4th argument with extra code.
10502         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
10503         rintf() call by gcc when optimizing.
10504
10505         mathfunc.m4: Refactor.
10506         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
10507         m4 variable.
10508
10509 2011-10-09  Bruno Haible  <bruno@clisp.org>
10510
10511         rintl: Simplify for platforms where 'long double' == 'double'.
10512         * lib/rintl.c: Include <config.h>.
10513         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10514         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10515         time.
10516         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10517         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10518         * modules/rintl (Depends-on): Add rint. Update conditions.
10519
10520 2011-10-09  Bruno Haible  <bruno@clisp.org>
10521
10522         roundl: Simplify for platforms where 'long double' == 'double'.
10523         * lib/roundl.c: Include <config.h>.
10524         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10525         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10526         time.
10527         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10528         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10529         * modules/roundl (Depends-on): Add round. Update conditions.
10530
10531 2011-10-09  Bruno Haible  <bruno@clisp.org>
10532
10533         truncl: Simplify for platforms where 'long double' == 'double'.
10534         * lib/truncl.c: Include <config.h>.
10535         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10536         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10537         time.
10538         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10539         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10540         * modules/truncl (Depends-on): Add trunc. Update conditions.
10541
10542 2011-10-09  Bruno Haible  <bruno@clisp.org>
10543
10544         ceill: Simplify for platforms where 'long double' == 'double'.
10545         * lib/ceill.c: Include <config.h>.
10546         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10547         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10548         time.
10549         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10550         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10551         * modules/ceill (Depends-on): Add ceil. Update conditions.
10552
10553 2011-10-09  Bruno Haible  <bruno@clisp.org>
10554
10555         floorl: Simplify for platforms where 'long double' == 'double'.
10556         * lib/floorl.c: Include <config.h>.
10557         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10558         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10559         time.
10560         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10561         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10562         * modules/floorl (Depends-on): Add floor. Update conditions.
10563
10564 2011-10-09  Bruno Haible  <bruno@clisp.org>
10565
10566         rint: Fix ordering constraints.
10567         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
10568         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
10569         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10570
10571 2011-10-09  Bruno Haible  <bruno@clisp.org>
10572
10573         copysignl: Simplify for platforms where 'long double' == 'double'.
10574         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10575         alternative.
10576         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10577         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10578         * modules/copysignl (Depends-on): Add copysign. Update conditions.
10579
10580 2011-10-09  Bruno Haible  <bruno@clisp.org>
10581
10582         Tests for module 'rintl'.
10583         * modules/rintl-tests: New file.
10584         * tests/test-rintl.c: New file.
10585
10586         New module 'rintl'.
10587         * lib/math.in.h (rintl): New declaration.
10588         * lib/rintl.c: New file.
10589         * m4/rintl.m4: New file.
10590         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
10591         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
10592         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
10593         * modules/rintl: New file.
10594         * tests/test-math-c++.cc: Check the declaration of rintl.
10595         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10596         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
10597         * doc/posix-functions/rintl.texi: Mention the new module.
10598
10599 2011-10-09  Bruno Haible  <bruno@clisp.org>
10600
10601         Tests for module 'rintf'.
10602         * modules/rintf-tests: New file.
10603         * tests/test-rintf.c: New file.
10604
10605         New module 'rintf'.
10606         * lib/math.in.h (rintf): New declaration.
10607         * lib/rintf.c: New file.
10608         * m4/rintf.m4: New file.
10609         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
10610         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
10611         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
10612         * modules/rintf: New file.
10613         * tests/test-math-c++.cc: Check the declaration of rintf.
10614         * doc/posix-functions/rintf.texi: Mention the new module.
10615
10616 2011-10-09  Bruno Haible  <bruno@clisp.org>
10617
10618         rint: Support for MSVC.
10619         * lib/math.in.h (rint): New declaration.
10620         * lib/rint.c: New file.
10621         * m4/rint.m4: New file.
10622         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
10623         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
10624         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
10625         * modules/rint (Description): Fix.
10626         (Files): Add lib/rint.c, m4/rint.m4.
10627         (Depends-on): Add math.
10628         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
10629         gl_MATH_MODULE_INDICATOR.
10630         * tests/test-math-c++.cc: Check the declaration of rint.
10631         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10632         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
10633         * doc/posix-functions/rint.texi: Mention the replacement provided by
10634         the module.
10635
10636         rint tests: More tests.
10637         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
10638         minus-zero.h, infinity.h, nan.h.
10639         (main): Skip the test if the current rounding mode is not standard. Add
10640         tests for negative numbers, minus zero, infinity, NaN.
10641         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
10642         tests/nan.h.
10643         (Depends-on): Add isnand-nolibm.
10644
10645 2011-10-09  Bruno Haible  <bruno@clisp.org>
10646
10647         Tests for module 'copysignl'.
10648         * modules/copysignl-tests: New file.
10649         * tests/test-copysignl.c: New file.
10650
10651         New module 'copysignl'.
10652         * lib/math.in.h (copysignl): New declaration.
10653         * lib/copysignl.c: New file.
10654         * m4/copysignl.m4: New file.
10655         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
10656         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
10657         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
10658         HAVE_COPYSIGNL.
10659         * modules/copysignl: New file.
10660         * tests/test-math-c++.cc: Check the declaration of copysignl.
10661         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10662         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
10663         * doc/posix-functions/copysignl.texi: Mention the new module.
10664
10665 2011-10-09  Bruno Haible  <bruno@clisp.org>
10666
10667         Tests for module 'copysignf'.
10668         * modules/copysignf-tests: New file.
10669         * tests/test-copysignf.c: New file.
10670
10671         New module 'copysignf'.
10672         * lib/math.in.h (copysignf): New declaration.
10673         * lib/copysignf.c: New file.
10674         * m4/copysignf.m4: New file.
10675         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
10676         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
10677         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
10678         HAVE_COPYSIGNF.
10679         * modules/copysignf: New file.
10680         * tests/test-math-c++.cc: Check the declaration of copysignf.
10681         * doc/posix-functions/copysignf.texi: Mention the new module.
10682
10683 2011-10-09  Bruno Haible  <bruno@clisp.org>
10684
10685         Ensure that HAVE_* variables are set to 1 before they are set to 0.
10686         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
10687         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
10688         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10689         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
10690         gl_SIGNAL_H_DEFAULTS.
10691
10692 2011-10-09  Bruno Haible  <bruno@clisp.org>
10693
10694         poll: Make macro safer.
10695         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
10696         ac_cv_header_poll_h is not set.
10697
10698 2011-10-09  Bruno Haible  <bruno@clisp.org>
10699
10700         copysign: Provide replacement.
10701         * lib/math.in.h (copysign): New declaration.
10702         * lib/copysign.c: New file.
10703         * m4/copysign.m4: New file.
10704         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
10705         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
10706         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
10707         HAVE_COPYSIGN.
10708         * modules/copysign (Description): Clarify.
10709         (Files): Add lib/copysign.c, m4/copysign.m4.
10710         (Depends-on): Add math, signbit.
10711         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
10712         gl_MATH_MODULE_INDICATOR.
10713         * tests/test-math-c++.cc: Check the declaration of copysign.
10714         * doc/posix-functions/copysign.texi: Mention the effects of the module
10715         on Minix and MSVC.
10716
10717 2011-10-09  Bruno Haible  <bruno@clisp.org>
10718
10719         isinf: Ensure macro on AIX 5.1.
10720         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
10721         macro.
10722         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
10723
10724 2011-10-09  Bruno Haible  <bruno@clisp.org>
10725
10726         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
10727         * modules/snprintf-posix-tests (configure.ac): Require
10728         gl_LONG_DOUBLE_VS_DOUBLE.
10729         * modules/sprintf-posix-tests (configure.ac): Likewise.
10730         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
10731         * modules/vasprintf-posix-tests (configure.ac): Likewise.
10732         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
10733         * modules/vsprintf-posix-tests (configure.ac): Likewise.
10734         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
10735         tests on platforms where 'long double' is the same as 'double'.
10736         * tests/test-sprintf-posix.h (test_function): Likewise.
10737         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10738         * tests/test-vasprintf-posix.c (test_function): Likewise.
10739
10740         *printf: Fix for platforms where 'long double' == 'double'.
10741         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
10742         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
10743         * modules/dprintf-posix (Files): Add m4/math_h.m4.
10744         * modules/fprintf-posix (Files): Likewise.
10745         * modules/obstack-printf-posix (Files): Likewise.
10746         * modules/snprintf-posix (Files): Likewise.
10747         * modules/sprintf-posix (Files): Likewise.
10748         * modules/vasnprintf (Files): Likewise.
10749         * modules/vasnprintf-posix (Files): Likewise.
10750         * modules/vasprintf-posix (Files): Likewise.
10751         * modules/vdprintf-posix (Files): Likewise.
10752         * modules/vfprintf-posix (Files): Likewise.
10753         * modules/vsnprintf-posix (Files): Likewise.
10754         * modules/vsprintf-posix (Files): Likewise.
10755         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10756         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10757         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10758         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10759         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10760         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10761         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10762
10763         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
10764         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
10765         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10766         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
10767         'long double'.
10768         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
10769
10770         isinf: Fix for platforms where 'long double' == 'double'.
10771         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10772         Don't blindly assume 80-bit 'long double'.
10773
10774         isfinite: Fix for platforms where 'long double' == 'double'.
10775         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10776         Don't blindly assume 80-bit 'long double'.
10777
10778         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
10779         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
10780         * modules/isfinite-tests (configure.ac): Require
10781         gl_LONG_DOUBLE_VS_DOUBLE.
10782         * modules/isinf-tests (configure.ac): Likewise.
10783         * modules/isnan-tests (configure.ac): Likewise.
10784         * modules/isnanl-tests (configure.ac): Likewise.
10785         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
10786         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
10787         tests on platforms where 'long double' is the same as 'double'.
10788         * tests/test-isinf.c (test_isinfl): Likewise.
10789         * tests/test-isnan.c (test_long_double): Likewise.
10790         * tests/test-isnanl.h (main): Likewise.
10791
10792 2011-10-08  Bruno Haible  <bruno@clisp.org>
10793
10794         Tests for module 'tanhf'.
10795         * modules/tanhf-tests: New file.
10796         * tests/test-tanhf.c: New file.
10797
10798         New module 'tanhf'.
10799         * lib/math.in.h (tanhf): New declaration.
10800         * lib/tanhf.c: New file.
10801         * m4/tanhf.m4: New file.
10802         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
10803         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
10804         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
10805         * modules/tanhf: New file.
10806         * tests/test-math-c++.cc: Check the declaration of tanhf.
10807         * doc/posix-functions/tanhf.texi: Mention the new module.
10808
10809         tanh: Use a .m4 file.
10810         * m4/tanh.m4: New file.
10811         * modules/tanh (Files): Add it.
10812         (configure.ac): Just invoke gl_FUNC_TANH.
10813
10814 2011-10-08  Bruno Haible  <bruno@clisp.org>
10815
10816         Tests for module 'coshf'.
10817         * modules/coshf-tests: New file.
10818         * tests/test-coshf.c: New file.
10819
10820         New module 'coshf'.
10821         * lib/math.in.h (coshf): New declaration.
10822         * lib/coshf.c: New file.
10823         * m4/coshf.m4: New file.
10824         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
10825         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
10826         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
10827         * modules/coshf: New file.
10828         * tests/test-math-c++.cc: Check the declaration of coshf.
10829         * doc/posix-functions/coshf.texi: Mention the new module.
10830
10831         cosh: Use a .m4 file.
10832         * m4/cosh.m4: New file.
10833         * modules/cosh (Files): Add it.
10834         (configure.ac): Just invoke gl_FUNC_COSH.
10835
10836 2011-10-08  Bruno Haible  <bruno@clisp.org>
10837
10838         Tests for module 'sinhf'.
10839         * modules/sinhf-tests: New file.
10840         * tests/test-sinhf.c: New file.
10841
10842         New module 'sinhf'.
10843         * lib/math.in.h (sinhf): New declaration.
10844         * lib/sinhf.c: New file.
10845         * m4/sinhf.m4: New file.
10846         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
10847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
10848         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
10849         * modules/sinhf: New file.
10850         * tests/test-math-c++.cc: Check the declaration of sinhf.
10851         * doc/posix-functions/sinhf.texi: Mention the new module.
10852
10853         sinh: Use a .m4 file.
10854         * m4/sinh.m4: New file.
10855         * modules/sinh (Files): Add it.
10856         (configure.ac): Just invoke gl_FUNC_SINH.
10857
10858 2011-10-08  Bruno Haible  <bruno@clisp.org>
10859
10860         Tests for module 'atan2f'.
10861         * modules/atan2f-tests: New file.
10862         * tests/test-atan2f.c: New file.
10863
10864         New module 'atan2f'.
10865         * lib/math.in.h (atan2f): New declaration.
10866         * lib/atan2f.c: New file.
10867         * m4/atan2f.m4: New file.
10868         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
10869         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
10870         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
10871         * modules/atan2f: New file.
10872         * tests/test-math-c++.cc: Check the declaration of atan2f.
10873         * doc/posix-functions/atan2f.texi: Mention the new module.
10874
10875         atan2: Use a .m4 file.
10876         * m4/atan2.m4: New file.
10877         * modules/atan2 (Files): Add it.
10878         (configure.ac): Just invoke gl_FUNC_ATAN2.
10879
10880 2011-10-08  Bruno Haible  <bruno@clisp.org>
10881
10882         Tests for module 'atanf'.
10883         * modules/atanf-tests: New file.
10884         * tests/test-atanf.c: New file.
10885
10886         New module 'atanf'.
10887         * lib/math.in.h (atanf): New declaration.
10888         * lib/atanf.c: New file.
10889         * m4/atanf.m4: New file.
10890         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
10891         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
10892         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
10893         * modules/atanf: New file.
10894         * tests/test-math-c++.cc: Check the declaration of atanf.
10895         * doc/posix-functions/atanf.texi: Mention the new module.
10896
10897         atan: Use a .m4 file.
10898         * m4/atan.m4: New file.
10899         * modules/atan (Files): Add it.
10900         (configure.ac): Just invoke gl_FUNC_ATAN.
10901
10902 2011-10-08  Bruno Haible  <bruno@clisp.org>
10903
10904         Tests for module 'acosf'.
10905         * modules/acosf-tests: New file.
10906         * tests/test-acosf.c: New file.
10907
10908         New module 'acosf'.
10909         * lib/math.in.h (acosf): New declaration.
10910         * lib/acosf.c: New file.
10911         * m4/acosf.m4: New file.
10912         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
10913         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
10914         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
10915         * modules/acosf: New file.
10916         * tests/test-math-c++.cc: Check the declaration of acosf.
10917         * doc/posix-functions/acosf.texi: Mention the new module.
10918
10919         acos: Use a .m4 file.
10920         * m4/acos.m4: New file.
10921         * modules/acos (Files): Add it.
10922         (configure.ac): Just invoke gl_FUNC_ACOS.
10923
10924 2011-10-08  Bruno Haible  <bruno@clisp.org>
10925
10926         Tests for module 'asinf'.
10927         * modules/asinf-tests: New file.
10928         * tests/test-asinf.c: New file.
10929
10930         New module 'asinf'.
10931         * lib/math.in.h (asinf): New declaration.
10932         * lib/asinf.c: New file.
10933         * m4/asinf.m4: New file.
10934         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
10935         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
10936         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
10937         * modules/asinf: New file.
10938         * tests/test-math-c++.cc: Check the declaration of asinf.
10939         * doc/posix-functions/asinf.texi: Mention the new module.
10940
10941         asin: Use a .m4 file.
10942         * m4/asin.m4: New file.
10943         * modules/asin (Files): Add it.
10944         (configure.ac): Just invoke gl_FUNC_ASIN.
10945
10946 2011-10-08  Bruno Haible  <bruno@clisp.org>
10947
10948         Tests for module 'tanf'.
10949         * modules/tanf-tests: New file.
10950         * tests/test-tanf.c: New file.
10951
10952         New module 'tanf'.
10953         * lib/math.in.h (tanf): New declaration.
10954         * lib/tanf.c: New file.
10955         * m4/tanf.m4: New file.
10956         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
10957         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
10958         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
10959         * modules/tanf: New file.
10960         * tests/test-math-c++.cc: Check the declaration of tanf.
10961         * doc/posix-functions/tanf.texi: Mention the new module.
10962
10963         tan: Use a .m4 file.
10964         * m4/tan.m4: New file.
10965         * modules/tan (Files): Add it.
10966         (configure.ac): Just invoke gl_FUNC_TAN.
10967
10968 2011-10-08  Bruno Haible  <bruno@clisp.org>
10969
10970         Tests for module 'cosf'.
10971         * modules/cosf-tests: New file.
10972         * tests/test-cosf.c: New file.
10973
10974         New module 'cosf'.
10975         * lib/math.in.h (cosf): New declaration.
10976         * lib/cosf.c: New file.
10977         * m4/cosf.m4: New file.
10978         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
10979         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
10980         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
10981         * modules/cosf: New file.
10982         * tests/test-math-c++.cc: Check the declaration of cosf.
10983         * doc/posix-functions/cosf.texi: Mention the new module.
10984
10985         cos: Use a .m4 file.
10986         * m4/cos.m4: New file.
10987         * modules/cos (Files): Add it.
10988         (configure.ac): Just invoke gl_FUNC_COS.
10989
10990 2011-10-08  Bruno Haible  <bruno@clisp.org>
10991
10992         Tests for module 'sinf'.
10993         * modules/sinf-tests: New file.
10994         * tests/test-sinf.c: New file.
10995
10996         New module 'sinf'.
10997         * lib/math.in.h (sinf): New declaration.
10998         * lib/sinf.c: New file.
10999         * m4/sinf.m4: New file.
11000         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
11001         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
11002         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
11003         * modules/sinf: New file.
11004         * tests/test-math-c++.cc: Check the declaration of sinf.
11005         * doc/posix-functions/sinf.texi: Mention the new module.
11006
11007         sin: Use a .m4 file.
11008         * m4/sin.m4: New file.
11009         * modules/sin (Files): Add it.
11010         (configure.ac): Just invoke gl_FUNC_SIN.
11011
11012 2011-10-08  Bruno Haible  <bruno@clisp.org>
11013
11014         Tests for module 'powf'.
11015         * modules/powf-tests: New file.
11016         * tests/test-powf.c: New file.
11017
11018         New module 'powf'.
11019         * lib/math.in.h (powf): New declaration.
11020         * lib/powf.c: New file.
11021         * m4/powf.m4: New file.
11022         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
11023         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
11024         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
11025         * modules/powf: New file.
11026         * tests/test-math-c++.cc: Check the declaration of powf.
11027         * doc/posix-functions/powf.texi: Mention the new module.
11028
11029         pow: Use a .m4 file.
11030         * m4/pow.m4: New file.
11031         * modules/pow (Files): Add it.
11032         (configure.ac): Just invoke gl_FUNC_POW.
11033
11034 2011-10-08  Bruno Haible  <bruno@clisp.org>
11035
11036         Tests for module 'log10f'.
11037         * modules/log10f-tests: New file.
11038         * tests/test-log10f.c: New file.
11039
11040         New module 'log10f'.
11041         * lib/math.in.h (log10f): New declaration.
11042         * lib/log10f.c: New file.
11043         * m4/log10f.m4: New file.
11044         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
11045         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
11046         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
11047         * modules/log10f: New file.
11048         * tests/test-math-c++.cc: Check the declaration of log10f.
11049         * doc/posix-functions/log10f.texi: Mention the new module.
11050
11051         log10: Use a .m4 file.
11052         * m4/log10.m4: New file.
11053         * modules/log10 (Files): Add it.
11054         (configure.ac): Just invoke gl_FUNC_LOG10.
11055
11056 2011-10-08  Bruno Haible  <bruno@clisp.org>
11057
11058         Tests for module 'logf'.
11059         * modules/logf-tests: New file.
11060         * tests/test-logf.c: New file.
11061
11062         New module 'logf'.
11063         * lib/math.in.h (logf): New declaration.
11064         * lib/logf.c: New file.
11065         * m4/logf.m4: New file.
11066         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
11067         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
11068         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
11069         * modules/logf: New file.
11070         * tests/test-math-c++.cc: Check the declaration of logf.
11071         * doc/posix-functions/logf.texi: Mention the new module.
11072
11073         log: Use a .m4 file.
11074         * m4/log.m4: New file.
11075         * modules/log (Files): Add it.
11076         (configure.ac): Just invoke gl_FUNC_LOG.
11077
11078 2011-10-08  Bruno Haible  <bruno@clisp.org>
11079
11080         Tests for module 'expf'.
11081         * modules/expf-tests: New file.
11082         * tests/test-expf.c: New file.
11083
11084         New module 'expf'.
11085         * lib/math.in.h (expf): New declaration.
11086         * lib/expf.c: New file.
11087         * m4/expf.m4: New file.
11088         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
11089         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
11090         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
11091         * modules/expf: New file.
11092         * tests/test-math-c++.cc: Check the declaration of expf.
11093         * doc/posix-functions/expf.texi: Mention the new module.
11094
11095         exp: Use a .m4 file.
11096         * m4/exp.m4: New file.
11097         * modules/exp (Files): Add it.
11098         (configure.ac): Just invoke gl_FUNC_EXP.
11099
11100 2011-10-08  Bruno Haible  <bruno@clisp.org>
11101
11102         Tests for module 'sqrtf'.
11103         * modules/sqrtf-tests: New file.
11104         * tests/test-sqrtf.c: New file.
11105
11106         New module 'sqrtf'.
11107         * lib/math.in.h (sqrtf): New declaration.
11108         * lib/sqrtf.c: New file.
11109         * m4/sqrtf.m4: New file.
11110         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
11111         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
11112         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
11113         * modules/sqrtf: New file.
11114         * tests/test-math-c++.cc: Check the declaration of sqrtf.
11115         * doc/posix-functions/sqrtf.texi: Mention the new module.
11116
11117 2011-10-08  Bruno Haible  <bruno@clisp.org>
11118
11119         Tests: Avoid link failures w.r.t. libintl.
11120         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
11121         $(LIBINTL).
11122         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
11123         $(LIBINTL).
11124         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
11125         against $(LIBINTL).
11126         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
11127         $(LIBINTL).
11128         * modules/openat-tests (Makefile.am): Link test-fchmodat against
11129         $(LIBINTL).
11130         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
11131
11132 2011-10-08  Bruno Haible  <bruno@clisp.org>
11133
11134         pow tests: Defeat compiler optimizations.
11135         * tests/test-pow.c (main): Assign arguments to x and y before use.
11136
11137 2011-10-08  Bruno Haible  <bruno@clisp.org>
11138
11139         gnulib-tool: Improve last commit.
11140         * gnulib-tool (func_modules_transitive_closure): Simplify code.
11141         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
11142         ignore dependencies that are not among the modules list.
11143
11144 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
11145
11146         gnulib-tool: don't follow dependencies to avoided modules
11147         This fixes a bug that is related to the previous one.
11148         * gnulib-tool (func_modules_transitive_closure)
11149         (func_emit_autoconf_snippets):
11150         Check whether a dependency is acceptable before using it.
11151         (--extract-dependencies): Report an error if --avoid is also used,
11152         since this combination of options is not yet supported.
11153
11154         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
11155         Problem reported by Peter Dyballa in
11156         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
11157         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
11158         when echoing "$condition".
11159
11160 2011-10-07  Bruno Haible  <bruno@clisp.org>
11161
11162         Fix documentation about math functions on MacOS X.
11163         * doc/posix-functions/exp2.texi: Don't say the function is missing on
11164         MacOS X 10.5.
11165         * doc/posix-functions/fdim.texi: Likewise.
11166         * doc/posix-functions/feclearexcept.texi: Likewise.
11167         * doc/posix-functions/fegetenv.texi: Likewise.
11168         * doc/posix-functions/fegetround.texi: Likewise.
11169         * doc/posix-functions/feholdexcept.texi: Likewise.
11170         * doc/posix-functions/feraiseexcept.texi: Likewise.
11171         * doc/posix-functions/fesetenv.texi: Likewise.
11172         * doc/posix-functions/fesetround.texi: Likewise.
11173         * doc/posix-functions/fetestexcept.texi: Likewise.
11174         * doc/posix-functions/feupdateenv.texi: Likewise.
11175         * doc/posix-functions/fmax.texi: Likewise.
11176         * doc/posix-functions/fmin.texi: Likewise.
11177         * doc/posix-functions/log2.texi: Likewise.
11178         * doc/posix-functions/modff.texi: Likewise.
11179         * doc/posix-functions/nan.texi: Likewise.
11180         * doc/posix-functions/nanf.texi: Likewise.
11181         * doc/posix-functions/nextafterf.texi: Likewise.
11182         * doc/posix-functions/remquo.texi: Likewise.
11183
11184 2011-10-07  Bruno Haible  <bruno@clisp.org>
11185
11186         modff: Drop assumption about library that defines modff.
11187         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
11188         AC_CHECK_FUNCS.
11189         * modules/modff (Files): Add m4/mathfunc.m4.
11190
11191 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
11192
11193         raise tests: Avoid a GCC warning.
11194         * tests/test-raise.c (handler): Use _Noreturn.
11195
11196 2011-10-07  Bruno Haible  <bruno@clisp.org>
11197
11198         Tests for module 'ldexpf'.
11199         * modules/ldexpf-tests: New file.
11200         * tests/test-ldexpf.c: New file.
11201
11202         New module 'ldexpf'.
11203         * lib/math.in.h (ldexpf): New declaration.
11204         * lib/ldexpf.c: New file.
11205         * m4/ldexpf.m4: New file.
11206         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
11207         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
11208         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
11209         * modules/ldexpf: New file.
11210         * tests/test-math-c++.cc: Check the declaration of ldexpf.
11211         * doc/posix-functions/ldexpf.texi: Mention the new module.
11212
11213 2011-10-06  Bruno Haible  <bruno@clisp.org>
11214
11215         frexpf: Work around problems on IRIX and mingw.
11216         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
11217         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
11218         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
11219         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
11220         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
11221         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
11222         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
11223
11224 2011-10-06  Bruno Haible  <bruno@clisp.org>
11225
11226         fabsf: Drop assumption about library that defines fabsf.
11227         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
11228         AC_CHECK_FUNCS.
11229         * modules/fabsf (Files): Add m4/mathfunc.m4.
11230
11231 2011-10-06  Bruno Haible  <bruno@clisp.org>
11232
11233         frexpf: Drop assumption about library that defines frexpf.
11234         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
11235         'int *', 'float *', 'long double *', 'float', 'long double'.
11236         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
11237         AC_CHECK_FUNCS.
11238         * modules/frexpf (Files): Add m4/mathfunc.m4.
11239
11240         Tests for module 'frexpf'.
11241         * modules/frexpf-tests: New file.
11242         * tests/test-frexpf.c: New file.
11243
11244         New module 'frexpf'.
11245         * lib/math.in.h (frexpf): New declaration.
11246         * lib/frexpf.c: New file.
11247         * m4/frexpf.m4: New file.
11248         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
11249         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
11250         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
11251         * modules/frexpf: New file.
11252         * tests/test-math-c++.cc: Check the declaration of frexpf.
11253         * doc/posix-functions/frexpf.texi: Mention the new module.
11254
11255 2011-10-06  Bruno Haible  <bruno@clisp.org>
11256
11257         math: Sort function declarations of math.in.h.
11258         * lib/math.in.h (frexp, logb): Move declarations.
11259
11260 2011-10-05  Bruno Haible  <bruno@clisp.org>
11261
11262         Tests for module 'modff'.
11263         * modules/modff-tests: New file.
11264         * tests/test-modff.c: New file.
11265
11266         New module 'modff'.
11267         * lib/math.in.h (modff): New declaration.
11268         * lib/modff.c: New file.
11269         * m4/modff.m4: New file.
11270         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
11271         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
11272         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
11273         * modules/modff: New file.
11274         * tests/test-math-c++.cc: Check the declaration of modff.
11275         * doc/posix-functions/modff.texi: Mention the new module.
11276
11277         modf tests: Make test sharper.
11278         * tests/test-modf.c (main): Strengthen upper bound.
11279
11280         modf: Use a .m4 file.
11281         * m4/modf.m4: New file.
11282         * modules/modf (Files): Add it.
11283         (configure.ac): Just invoke gl_FUNC_MODF.
11284
11285 2011-10-05  Bruno Haible  <bruno@clisp.org>
11286
11287         Tests for module 'fmodf'.
11288         * modules/fmodf-tests: New file.
11289         * tests/test-fmodf.c: New file.
11290
11291         New module 'fmodf'.
11292         * lib/math.in.h (fmodf): New declaration.
11293         * lib/fmodf.c: New file.
11294         * m4/fmodf.m4: New file.
11295         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
11296         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
11297         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
11298         * modules/fmodf: New file.
11299         * tests/test-math-c++.cc: Check the declaration of fmodf.
11300         * doc/posix-functions/fmodf.texi: Mention the new module.
11301
11302         fmod: Use a .m4 file.
11303         * m4/fmod.m4: New file.
11304         * modules/fmod (Files): Add it.
11305         (configure.ac): Just invoke gl_FUNC_FMOD.
11306
11307 2011-10-05  Bruno Haible  <bruno@clisp.org>
11308
11309         Tests for module 'fabsf'.
11310         * modules/fabsf-tests: New file.
11311         * tests/test-fabsf.c: New file.
11312
11313         New module 'fabsf'.
11314         * lib/math.in.h (fabsf): New declaration.
11315         * lib/fabsf.c: New file.
11316         * m4/fabsf.m4: New file.
11317         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
11318         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
11319         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
11320         * modules/fabsf: New file.
11321         * tests/test-math-c++.cc: Check the declaration of fabsf.
11322         * doc/posix-functions/fabsf.texi: Mention the new module.
11323
11324         fabs: Use a .m4 file.
11325         * m4/fabs.m4: New file.
11326         * modules/fabs (Files): Add it.
11327         (configure.ac): Just invoke gl_FUNC_FABS.
11328
11329 2011-10-05  Jim Meyering  <meyering@redhat.com>
11330
11331         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
11332         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
11333         ls -lL regression introduced in coreutils-8.12, it does so at the
11334         cost of an additional stat call in the common case.  Besides, now
11335         that the kernel change that prompted commit 95f7c57f has been reverted
11336         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
11337         we have no use for commit 95f7c57f, "file-has-acl: use
11338         acl_extended_file_nofollow if available".
11339
11340 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
11341
11342         file-has-acl: revert unintended change in behavior of ls -L
11343         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
11344         derived from...
11345         (file_has_acl): ...code here.  Call it.
11346         This problem was introduced with 2011-07-22 commit 95f7c57f,
11347         "file-has-acl: use acl_extended_file_nofollow if available".
11348         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
11349
11350 2011-10-03  Bruno Haible  <bruno@clisp.org>
11351
11352         poll: Avoid link errors on MSVC.
11353         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
11354         * modules/poll (Depends-on): Add sockets.
11355         (Link): New section.
11356         * NEWS: Mention the change.
11357         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
11358         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
11359         $(LIB_POLL) instead of $(LIBSOCKET).
11360
11361 2011-10-03  Bruno Haible  <bruno@clisp.org>
11362
11363         sys_select tests: Fix link error on MSVC 9.
11364         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
11365         with $(LIB_SELECT) instead of $(LIBSOCKET).
11366
11367 2011-10-03  Bruno Haible  <bruno@clisp.org>
11368
11369         sys_select: Fix compilation error on mingw.
11370         * lib/sys_select.in.h: On native Windows, include <io.h>.
11371
11372 2011-10-03  Bruno Haible  <bruno@clisp.org>
11373
11374         wmemset: Support for MSVC.
11375         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
11376         whether wmemset() exists.
11377
11378 2011-10-03  Bruno Haible  <bruno@clisp.org>
11379
11380         wmemmove: Support for MSVC.
11381         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
11382         whether wmemmove() exists.
11383
11384 2011-10-03  Bruno Haible  <bruno@clisp.org>
11385
11386         wmemcpy: Support for MSVC.
11387         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
11388         whether wmemcpy() exists.
11389
11390 2011-10-03  Bruno Haible  <bruno@clisp.org>
11391
11392         wmemcmp: Support for MSVC.
11393         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
11394         whether wmemcmp() exists.
11395
11396 2011-10-03  Bruno Haible  <bruno@clisp.org>
11397
11398         wmemchr: Support for MSVC.
11399         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
11400         whether wmemchr() exists.
11401
11402 2011-10-03  Bruno Haible  <bruno@clisp.org>
11403
11404         glthread/*, strsignal: Support for MSVC.
11405         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
11406         including <winsock.h> on MSVC 9.
11407         * lib/glthread/lock.h: Likewise.
11408         * lib/glthread/thread.h: Likewise.
11409         * lib/glthread/tls.h: Likewise.
11410         * lib/glthread/yield.h: Likewise.
11411         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
11412         if HAVE_UNISTD_H is false.
11413         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
11414
11415 2011-10-03  Bruno Haible  <bruno@clisp.org>
11416
11417         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
11418         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
11419         Set to 100000.
11420
11421 2011-10-03  Bruno Haible  <bruno@clisp.org>
11422
11423         acl: Fix specification.
11424         * lib/file-has-acl.c (file_has_acl): Fix specification.
11425
11426 2011-10-03  Bruno Haible  <bruno@clisp.org>
11427
11428         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
11429         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
11430         (compute_curr_prefix, shared_library_fullname,
11431         find_shared_library_fullname, get_shared_library_fullname, relocate):
11432         Use it together with PIC && INSTALLDIR.
11433         Reported by <jojelino@gmail.com>
11434         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
11435
11436 2011-10-01  Jim Meyering  <meyering@redhat.com>
11437
11438         maint.mk: adjust a release-related rule not to require use of gzip
11439         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
11440         Instead, check each file in $(DIST_ARCHIVES).  This is better for
11441         projects that build only .tar.xz files.  Also fix an erroneous test.
11442
11443         test-linkat: don't leave behind a temporary file
11444         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
11445         Otherwise, coreutils' "make distcheck" would fail with this:
11446           Only in /c/cu/tests/torture/coreutils/test/\
11447             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
11448           make[2]: *** [my-distcheck] Error 1
11449
11450         float, math: add omitted file
11451         * lib/itold.c: Add file, required for yesterday's float change.
11452
11453 2011-10-01  Bruno Haible  <bruno@clisp.org>
11454
11455         isinf: Fix for OpenBSD/x86.
11456         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
11457         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
11458         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
11459
11460 2011-10-01  Bruno Haible  <bruno@clisp.org>
11461
11462         isfinite: Fix syntax error in configure test.
11463         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
11464
11465         isfinite: Fix typo.
11466         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
11467         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
11468
11469 2011-10-01  Bruno Haible  <bruno@clisp.org>
11470
11471         nonblocking tests: Fix test failure on Linux/IA-64.
11472         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
11473         Set to 270000.
11474
11475 2011-10-01  Bruno Haible  <bruno@clisp.org>
11476
11477         mkfifoat tests: Fix a test failure on mingw.
11478         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
11479         with error ENOSYS.
11480
11481 2011-09-30  Bruno Haible  <bruno@clisp.org>
11482
11483         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
11484         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
11485         'long double'. Set REPLACE_ITOLD.
11486         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
11487         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
11488         * lib/itold.c: New file.
11489         * modules/float (Files): Add lib/itold.c.
11490         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
11491         (Makefile.am): Substitute REPLACE_ITOLD.
11492         * modules/math (Depends-on): Add float.
11493         (Makefile.am): Substitute REPLACE_ITOLD.
11494         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
11495         * doc/posix-headers/math.texi: Likewise.
11496         * doc/posix-functions/logl.texi: Likewise.
11497
11498 2011-09-30  Bruno Haible  <bruno@clisp.org>
11499
11500         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
11501         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
11502         Set to 140000.
11503
11504 2011-09-30  Bruno Haible  <bruno@clisp.org>
11505
11506         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
11507         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
11508         invocation, say "right after AC_PROG_CC_STDC", not "right after
11509         AC_PROG_CC".
11510         Reported by Gary V. Vaughan <gary@gnu.org>.
11511
11512 2011-09-30  Bruno Haible  <bruno@clisp.org>
11513
11514         Centralize C99 requirement.
11515         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
11516         * modules/stdarg (configure.ac-early): Invoke it instead of
11517         AC_PROG_CC_STDC.
11518         Reported by Gary V. Vaughan and Paul Eggert.
11519
11520 2011-09-29  Bruno Haible  <bruno@clisp.org>
11521
11522         float: Fix LDBL_MAX value on Linux/PowerPC.
11523         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
11524         on Linux/PowerPC.
11525         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
11526         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
11527         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
11528         platform.
11529         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
11530
11531 2011-09-29  Bruno Haible  <bruno@clisp.org>
11532
11533         doc: Improve doc about gl_EARLY.
11534         * doc/gnulib-tool.texi (Initial import): Mention where to place an
11535         AC_PROG_CC_STDC invocation.
11536         Reported by Gary V. Vaughan <gary@gnu.org>.
11537
11538 2011-09-28  Bruno Haible  <bruno@clisp.org>
11539
11540         fgetc, fputc, fread, fwrite tests: Fix link error.
11541         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
11542         on non-MSVC platforms.
11543         * tests/test-fputc.c (main): Likewise.
11544         * tests/test-fread.c (main): Likewise.
11545         * tests/test-fwrite.c (main): Likewise.
11546         Reported by Jim Meyering.
11547
11548 2011-09-27  Bruno Haible  <bruno@clisp.org>
11549
11550         fputc, fwrite tests: Avoid test failure on MSVC.
11551         * tests/test-fgetc.c: Include msvc-inval.h.
11552         (main): Invoke gl_msvc_inval_ensure_handler.
11553         * tests/test-fputc.c: Include msvc-inval.h.
11554         (main): Invoke gl_msvc_inval_ensure_handler.
11555         * tests/test-fread.c: Include msvc-inval.h.
11556         (main): Invoke gl_msvc_inval_ensure_handler.
11557         * tests/test-fwrite.c: Include msvc-inval.h.
11558         (main): Invoke gl_msvc_inval_ensure_handler.
11559         * modules/fgetc-tests (Depends-on): Add msvc-inval.
11560         * modules/fputc-tests (Depends-on): Likewise.
11561         * modules/fread-tests (Depends-on): Likewise.
11562         * modules/fwrite-tests (Depends-on): Likewise.
11563
11564 2011-09-27  Bruno Haible  <bruno@clisp.org>
11565
11566         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
11567         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
11568         (raise): Remove older, duplicated declaration.
11569         (_gl_raise_SIGPIPE): New declaration.
11570         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
11571         (rpl_raise): Remove function.
11572         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
11573         a gnulib-defined SIGPIPE here.
11574         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
11575         'sigprocmask' has detected missing signal-blocking and the module
11576         'sigpipe' is enabled.
11577         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11578
11579 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
11580
11581         base64-tests: avoid memory leak
11582         * tests/test-base64.c (main): Plug memory leak.
11583
11584         base32: new module
11585         * modules/base32: New module.
11586         * lib/base32.c: New file.
11587         * lib/base32.h: Likewise.
11588         * m4/base32.m4: Likewise.
11589         * modules/base32-tests: New test.
11590         * tests/test-base32.c: Likewise.
11591         * MODULES.html.sh (Misc): Mention it.
11592
11593 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11594
11595         gnulib: use more-standard license notice wording
11596         * gnulib-tool (func_emit_copyright_notice): When emitting a
11597         license notice into a file, use the standard wording as suggested
11598         by the current information for GNU maintainers, except say "file"
11599         rather than "program".  The new wording gives a license version
11600         number, which addresses an issue raised by Glenn Morris in
11601         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
11602         * m4/onceonly.m4: Use that same wording here, too.
11603
11604         dup2: minor simplification
11605         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
11606         as lib/dup2.c no longer uses 'inline'.
11607
11608 2011-09-25  Bruno Haible  <bruno@clisp.org>
11609
11610         strings: Fix compilation error on MSVC.
11611         * lib/strings.in.h: Include <stddef.h> for size_t.
11612
11613 2011-09-25  Bruno Haible  <bruno@clisp.org>
11614
11615         fflush et al.: Document limitation on MSVC.
11616         * doc/posix-functions/fflush.texi: Document possible crash in handling
11617         mode other than DEFAULT_HANDLING.
11618         * doc/posix-functions/fgetc.texi: Likewise.
11619         * doc/posix-functions/fputc.texi: Likewise.
11620         * doc/posix-functions/fread.texi: Likewise.
11621         * doc/posix-functions/fwrite.texi: Likewise.
11622
11623 2011-09-25  Bruno Haible  <bruno@clisp.org>
11624
11625         msvc-inval: Allow three invalid parameter handling modes.
11626         * lib/msvc-inval.h: Don't include <stdlib.h> here.
11627         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
11628         macros.
11629         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
11630         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
11631         SANE_LIBRARY_HANDLING as a no-op.
11632         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
11633         <stdlib.h>.
11634         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
11635
11636 2011-09-25  Bruno Haible  <bruno@clisp.org>
11637
11638         msvc-inval: Make handler multithread-safe.
11639         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
11640         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
11641         declarations.
11642         (gl_msvc_inval_current): New declaration.
11643         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11644         Operate on the structure returned by gl_msvc_inval_current().
11645         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
11646         Remove varaiables.
11647         (tls_index, tls_initialized): New variables.
11648         (not_per_thread): New variable.
11649         (gl_msvc_inval_current): New function.
11650         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
11651         returned by gl_msvc_inval_current().
11652
11653 2011-09-25  Bruno Haible  <bruno@clisp.org>
11654
11655         msvc-inval: Install handler globally.
11656         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
11657         !_MSC_VER.
11658         (gl_msvc_invalid_parameter_handler): Remove declaration.
11659         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
11660         declarations.
11661         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11662         Install the handler globally, don't uninstall it.
11663         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
11664         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
11665         currently valid, call RaiseException instead.
11666         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
11667         for !_MSC_VER.
11668
11669 2011-09-25  Bruno Haible  <bruno@clisp.org>
11670
11671         strerror_r-posix: Fix for MSVC 9.
11672         * lib/strerror_r.c (local_snprintf): New function.
11673         (snprintf): Define to local_snprintf, not to _snprintf.
11674
11675 2011-09-25  Bruno Haible  <bruno@clisp.org>
11676
11677         ftruncate: Support for MSVC 9.
11678         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
11679         (chsize_nothrow): New function.
11680         (chsize): Redefine as a macro.
11681         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
11682         * modules/ftruncate (Depends-on): Add msvc-inval.
11683
11684 2011-09-25  Bruno Haible  <bruno@clisp.org>
11685
11686         New module 'fstat'.
11687         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
11688         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
11689         * lib/fchdir.c (rpl_fstat): Remove function.
11690         * m4/fstat.m4: New file.
11691         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
11692         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
11693         declared.
11694         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
11695         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
11696         * modules/fstat: New file.
11697         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
11698         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
11699         is set.
11700         * doc/posix-functions/fstat.texi: Mention the new module and the
11701         problem on MSVC.
11702         * NEWS: Mention the change.
11703         * modules/acl (Depends-on): Add fstat.
11704         * modules/chdir-safer (Depends-on): Likewise.
11705         * modules/chown (Depends-on): Likewise.
11706         * modules/copy-file (Depends-on): Likewise.
11707         * modules/fchdir (Depends-on): Likewise.
11708         * modules/fdopendir (Depends-on): Likewise.
11709         * modules/fopen (Depends-on): Likewise.
11710         * modules/fts (Depends-on): Likewise.
11711         * modules/getcwd (Depends-on): Likewise.
11712         * modules/isapipe (Depends-on): Likewise.
11713         * modules/linkat (Depends-on): Likewise.
11714         * modules/lseek (Depends-on): Likewise.
11715         * modules/mkdir-p (Depends-on): Likewise.
11716         * modules/open (Depends-on): Likewise.
11717         * modules/openat (Depends-on): Likewise.
11718         * modules/read-file (Depends-on): Likewise.
11719         * modules/renameat (Depends-on): Likewise.
11720         * modules/utimens (Depends-on): Likewise.
11721
11722 2011-09-25  Bruno Haible  <bruno@clisp.org>
11723
11724         linkat: Fix compilation on MSVC 9.
11725         * lib/linkat.c: Don't include <stdint.h>.
11726
11727 2011-09-25  Bruno Haible  <bruno@clisp.org>
11728
11729         fclose: Support for MSVC 9.
11730         * lib/fclose.c: Include msvc-inval.h.
11731         (fclose_nothrow): New function.
11732         (rpl_fclose): Use it.
11733         * modules/fclose (Depends-on): Add msvc-inval.
11734         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
11735
11736 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11737
11738         dup2: minor simplifications
11739         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
11740         that it's a performance win.
11741         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
11742         ! defined __CYGWIN__)" to "ifdef F_GETFL".
11743
11744 2011-09-24  Jim Meyering  <meyering@redhat.com>
11745
11746         test-futimens: avoid a warning from gcc -Wshadow
11747         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
11748         to avoid a shadowing warning.
11749
11750 2011-09-24  Bruno Haible  <bruno@clisp.org>
11751
11752         fdopen: Support for MSVC 9.
11753         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
11754         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
11755         * lib/fdopen.c: Include msvc-inval.h.
11756         (fdopen_nothrow): New function.
11757         (rpl_fdopen): Use it.
11758         * modules/fdopen (Depends-on): Add msvc-inval.
11759         * modules/fclose-tests (Depends-on): Add fdopen.
11760         * modules/fflush-tests (Depends-on): Likewise.
11761         * modules/fgetc-tests (Depends-on): Likewise.
11762         * modules/fputc-tests (Depends-on): Likewise.
11763         * modules/fread-tests (Depends-on): Likewise.
11764         * modules/freopen-tests (Depends-on): Likewise.
11765         * modules/fseeko-tests (Depends-on): Likewise.
11766         * modules/ftello-tests (Depends-on): Likewise.
11767         * modules/fwrite-tests  (Depends-on): Likewise.
11768         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
11769
11770 2011-09-24  Bruno Haible  <bruno@clisp.org>
11771
11772         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
11773         * modules/fgetc-tests (Depends-on): Add unistd.
11774         * modules/fputc-tests (Depends-on): Likewise.
11775         * modules/fread-tests (Depends-on): Likewise.
11776         * modules/fwrite-tests (Depends-on): Likewise.
11777
11778 2011-09-24  Bruno Haible  <bruno@clisp.org>
11779
11780         dup: Simplify autoconf test.
11781         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
11782         on gl_MSVC_INVAL's result.
11783
11784 2011-09-24  Bruno Haible  <bruno@clisp.org>
11785
11786         Tests for function fwrite().
11787         * modules/fwrite-tests: New file.
11788         * tests/test-fwrite.c: New file.
11789         * modules/stdio-tests (Depends-on): Add fwrite-tests.
11790
11791         Tests for function fread().
11792         * modules/fread-tests: New file.
11793         * tests/test-fread.c: New file.
11794         * modules/stdio-tests (Depends-on): Add fread-tests.
11795
11796         Activate fputc tests.
11797         * modules/stdio-tests (Depends-on): Add fputc-tests.
11798
11799         Enhance fgetc, fputc tests.
11800         * tests/test-fgetc.c (main): Also test the stream's error indicator.
11801         * tests/test-fputc.c (main): Likewise.
11802
11803 2011-09-24  Bruno Haible  <bruno@clisp.org>
11804
11805         write: Support for MSVC 9.
11806         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11807         is not 1.
11808         * lib/write.c (write_nothrow): New function.
11809         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
11810         not 1. Use write_nothrow.
11811         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
11812         invalid parameter handler.
11813         (gl_PREREQ_WRITE): New macro.
11814         * modules/write (Depends-on): Add msvc-inval.
11815         (configure.ac): Invoke gl_PREREQ_WRITE.
11816         * doc/posix-functions/write.texi: Mention the problem on MSVC.
11817
11818 2011-09-24  Bruno Haible  <bruno@clisp.org>
11819
11820         read: Fix last commit.
11821         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
11822
11823 2011-09-24  Bruno Haible  <bruno@clisp.org>
11824
11825         dup2: Fix last commit.
11826         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
11827         (rpl_dup2): Disable fcntl workaround on native Windows.
11828
11829         sigprocmask: Make code safer.
11830         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
11831         section that changes macro definitions for this compilation unit.
11832
11833 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11834
11835         dup2: clarify by coalescing Windows-specific material
11836         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
11837         "msvc-nothrow.h"' to the Windows-specific section, so that the
11838         Emacs source need not contain these include files.
11839         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
11840         Windows-specific fixes into this function rather than just the
11841         nothrow fix, as this shortens and clarifies the code.  Always
11842         define as a function, as that's a bit cleaner than having it be
11843         sometimes a function and sometimes a macro.
11844         (rpl_dup2): Move the Windows-specific stuff out of here and into
11845         ms_windows_dup2.  Don't protect the Haiku-related fix with
11846         "#if !defined __linux__", as the same code also works around
11847         a Linux kernel bug, and it doesn't add any system calls on any
11848         platform.  Add comment about FreeBSD 6.1.
11849
11850         sigprocmask: move #include directive
11851         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
11852         Windows-specific section, so that the Emacs source need not
11853         contain msvc-inval.h.
11854
11855 2011-09-23  Bruno Haible  <bruno@clisp.org>
11856
11857         read: Support for MSVC 9.
11858         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11859         is not 1.
11860         * lib/read.c (read_nothrow): New function.
11861         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
11862         read_nothrow.
11863         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
11864         invalid parameter handler.
11865         (gl_PREREQ_READ): New macro.
11866         * modules/read (Depends-on): Add msvc-inval.
11867         (configure.ac): Invoke gl_PREREQ_READ.
11868         * doc/posix-functions/read.texi: Mention the problem on MSVC.
11869
11870 2011-09-23  Bruno Haible  <bruno@clisp.org>
11871
11872         close: Support for MSVC 9.
11873         * lib/close.c: Include <errno.h>, msvc-inval.h.
11874         (close_nothrow): New function.
11875         (rpl_close): Use it.
11876         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
11877         invalid parameter handler.
11878         * modules/close (Depends-on): Add msvc-inval.
11879         * modules/dup2-tests (Depends-on): Add close.
11880         * modules/dup3-tests (Depends-on): Likewise.
11881         * modules/fcntl-tests (Depends-on): Likewise.
11882         * modules/spawn-pipe-tests (Depends-on): Likewise.
11883         * modules/unistd-safer-tests (Depends-on): Likewise.
11884         * doc/posix-functions/close.texi: Mention the problem on MSVC.
11885
11886 2011-09-23  Bruno Haible  <bruno@clisp.org>
11887
11888         New module 'dup'.
11889         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
11890         Allow replacement.
11891         * lib/dup.c: New file.
11892         * lib/fchdir.c (rpl_dup): Remove function.
11893         * m4/dup.m4: New file.
11894         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
11895         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
11896         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
11897         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
11898         * modules/dup: New file.
11899         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
11900         'dup' module is in use.
11901         * modules/fdopendir (Depends-on): Add dup.
11902         * modules/fdutimensat-tests (Depends-on): Likewise.
11903         * modules/fts (Depends-on): Likewise.
11904         * modules/futimens-tests (Depends-on): Likewise.
11905         * modules/posix_spawnp-tests (Depends-on): Likewise.
11906         * modules/unistd-safer-tests (Depends-on): Likewise.
11907         * modules/utimens-tests (Depends-on): Likewise.
11908         * doc/posix-functions/dup.texi: Mention the new module and the problem
11909         on MSVC.
11910
11911 2011-09-23  Bruno Haible  <bruno@clisp.org>
11912
11913         getdtablesize: Support for MSVC 9.
11914         * lib/getdtablesize.c: Include msvc-inval.h.
11915         (_setmaxstdio_nothrow): New function.
11916         (_setmaxstdio): Redefine it.
11917         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
11918         * modules/getdtablesize (Depends-on): Add msvc-inval.
11919         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
11920
11921 2011-09-23  Bruno Haible  <bruno@clisp.org>
11922
11923         signal-h: Rename from signal.
11924         * modules/signal-h: Renamed from modules/signal.
11925         * modules/pthread_sigmask (Depends-on): Update.
11926         * modules/raise (Depends-on): Likewise.
11927         * modules/sigaction (Depends-on): Likewise.
11928         * modules/sigpipe (Depends-on): Likewise.
11929         * modules/sigprocmask (Depends-on): Likewise.
11930         * modules/sys_select (Depends-on): Likewise.
11931         * modules/signal-h-tests: Renamed from modules/signal-tests.
11932         (Files, Depends-on, Makefile.am): Update.
11933         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
11934         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
11935         (Files, Makefile.am): Update.
11936         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
11937         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
11938         * modules/signal: New placeholder file.
11939         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
11940         * doc/posix-headers/signal.texi: Update.
11941         * NEWS: Mention the change.
11942
11943 2011-09-23  Bruno Haible  <bruno@clisp.org>
11944
11945         sigprocmask: Avoid crashes through signal() on MSVC 9.
11946         * lib/sigprocmask.c: Include msvc-inval.h.
11947         (signal_nothrow): New function.
11948         (signal): Redefine it.
11949         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
11950         * modules/sigprocmask (Depends-on): Add msvc-inval.
11951         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
11952
11953 2011-09-23  Bruno Haible  <bruno@clisp.org>
11954
11955         Tests for module 'raise'.
11956         * modules/raise-tests: New file.
11957         * tests/test-raise.c: New file.
11958
11959         raise: Support for MSVC.
11960         * lib/signal.in.h (raise): New declaration.
11961         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
11962         for native Windows platforms.
11963         * m4/raise.m4: New file.
11964         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
11965         HAVE_RAISE, REPLACE_RAISE.
11966         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
11967         REPLACE_RAISE.
11968         * modules/raise (Status, Notice): Remove fields.
11969         (Files): Add m4/raise.m4.
11970         (Depends-on): Add signal, msvc-inval.
11971         (configure.ac): Use the common idioms.
11972         (Maintainer): Add me.
11973         * tests/test-signal-c++.cc: Check the signature of raise.
11974         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
11975
11976 2011-09-23  Bruno Haible  <bruno@clisp.org>
11977
11978         pipe2: Fix compilation on pre-C99 compilers.
11979         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
11980
11981 2011-09-23  Bruno Haible  <bruno@clisp.org>
11982
11983         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
11984         * lib/msvc-nothrow.h: New file.
11985         * lib/msvc-nothrow.c: New file.
11986         * m4/msvc-nothrow.m4: New file.
11987         * modules/msvc-nothrow: New file.
11988         * lib/dup2.c: Include msvc-nothrow.h.
11989         (rpl_dup2): No need to protect _get_osfhandle call here.
11990         * lib/accept4.c: Include msvc-nothrow.h.
11991         * lib/error.c: Likewise.
11992         * lib/fcntl.c: Likewise.
11993         * lib/lseek.c: Likewise.
11994         * lib/nonblocking.c: Likewise.
11995         * lib/poll.c: Likewise.
11996         * lib/read.c: Likewise.
11997         * lib/select.c: Likewise.
11998         * lib/sockets.h: Likewise.
11999         * lib/sockets.c: Likewise.
12000         * lib/stdio-read.c: Likewise.
12001         * lib/stdio-write.c: Likewise.
12002         * lib/write.c: Likewise.
12003         * lib/w32sock.h: Likewise.
12004         * lib/w32spawn.h: Likewise.
12005         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
12006         * lib/fsync.c: Likewise.
12007         * lib/isapipe.c: Likewise.
12008         * modules/dup2 (Depends-on): Add msvc-nothrow.
12009         * modules/accept4 (Depends-on): Likewise.
12010         * modules/error (Depends-on): Likewise.
12011         * modules/fcntl (Depends-on): Likewise.
12012         * modules/lseek (Depends-on): Likewise.
12013         * modules/nonblocking (Depends-on): Likewise.
12014         * modules/poll (Depends-on): Likewise.
12015         * modules/read (Depends-on): Likewise.
12016         * modules/select (Depends-on): Likewise.
12017         * modules/sockets (Depends-on): Likewise.
12018         * modules/sigpipe (Depends-on): Likewise.
12019         * modules/write (Depends-on): Likewise.
12020         * modules/accept (Depends-on): Likewise.
12021         * modules/bind (Depends-on): Likewise.
12022         * modules/connect (Depends-on): Likewise.
12023         * modules/gethostname (Depends-on): Likewise.
12024         * modules/getpeername (Depends-on): Likewise.
12025         * modules/getsockname (Depends-on): Likewise.
12026         * modules/getsockopt (Depends-on): Likewise.
12027         * modules/ioctl (Depends-on): Likewise.
12028         * modules/listen (Depends-on): Likewise.
12029         * modules/recv (Depends-on): Likewise.
12030         * modules/recvfrom (Depends-on): Likewise.
12031         * modules/send (Depends-on): Likewise.
12032         * modules/sendto (Depends-on): Likewise.
12033         * modules/setsockopt (Depends-on): Likewise.
12034         * modules/shutdown (Depends-on): Likewise.
12035         * modules/socket (Depends-on): Likewise.
12036         * modules/execute (Depends-on): Likewise.
12037         * modules/spawn-pipe (Depends-on): Likewise.
12038         * modules/flock (Depends-on): Likewise.
12039         * modules/fsync (Depends-on): Likewise.
12040         * modules/isapipe (Depends-on): Likewise.
12041         * tests/test-cloexec.c: Include msvc-nothrow.h.
12042         * tests/test-dup-safer.c: Likewise.
12043         * tests/test-dup2.c: Likewise.
12044         * tests/test-dup3.c: Likewise.
12045         * tests/test-fcntl.c: Likewise.
12046         * tests/test-pipe.c: Likewise.
12047         * tests/test-pipe2.c: Likewise.
12048         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
12049         * modules/unistd-safer-tests (Depends-on): Likewise.
12050         * modules/dup2-tests (Depends-on): Likewise.
12051         * modules/dup3-tests (Depends-on): Likewise.
12052         * modules/fcntl-tests (Depends-on): Likewise.
12053         * modules/pipe-posix-tests (Depends-on): Likewise.
12054         * modules/pipe2-tests (Depends-on): Likewise.
12055
12056 2011-09-23  Bruno Haible  <bruno@clisp.org>
12057
12058         dup2: Make code more maintainable.
12059         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
12060         (rpl_dup2): Use it.
12061         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
12062         * modules/dup2 (configure.ac): Invoke it.
12063         Reported by Paul Eggert.
12064
12065 2011-09-23  Bruno Haible  <bruno@clisp.org>
12066
12067         msvc-inval: Fix compilation error.
12068         * lib/msvc-inval.h: Include <excpt.h>.
12069
12070 2011-09-23  Bruno Haible  <bruno@clisp.org>
12071
12072         mkdir: Tweak for MSVC 9.
12073         * lib/sys_stat.in.h: Update comments.
12074         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
12075
12076         Tests for module 'chdir'.
12077         * modules/chdir-tests: New file.
12078         * tests/test-chdir.c: New file.
12079
12080         New module 'chdir'.
12081         * modules/chdir: New file.
12082         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
12083         (chdir): New declaration.
12084         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
12085         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
12086         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
12087         * tests/test-unistd-c++.cc: Check signature of chdir.
12088         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
12089         * modules/chdir-long (Depends-on): Add chdir.
12090         * modules/fchdir (Depends-on): Likewise.
12091         * modules/rename (Depends-on): Likewise.
12092         * modules/savewd (Depends-on): Likewise.
12093
12094         rmdir: Support for mingw, MSVC 9.
12095         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
12096         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
12097
12098         getcwd: Tweak for MSVC 9.
12099         * lib/unistd.in.h: Update comments.
12100         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
12101
12102 2011-09-22  Bruno Haible  <bruno@clisp.org>
12103
12104         strerror_r-posix: Avoid a link error on MSVC.
12105         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
12106         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
12107
12108 2011-09-22  Bruno Haible  <bruno@clisp.org>
12109
12110         select: Avoid link errors on MSVC.
12111         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
12112         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
12113         * modules/pselect (Link): Likewise.
12114         * NEWS: Mention the change.
12115         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
12116         test-select-stdin against $(LIB_SELECT).
12117         * modules/pselect-tests (Makefile.am): Link test-pselect against
12118         $(LIB_SELECT).
12119
12120 2011-09-22  Bruno Haible  <bruno@clisp.org>
12121
12122         select: Avoid compilation error on MSVC.
12123         * lib/select.c: Don't include <stdbool.h>.
12124
12125 2011-09-21  Bruno Haible  <bruno@clisp.org>
12126
12127         Consolidate all uses of PATH_MAX in *.m4 files.
12128         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
12129         macros.
12130         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
12131         and gl_PATHMAX_SNIPPET.
12132         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12133         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12134         * modules/chdir-long (Files): Add m4/pathmax.m4.
12135         * modules/getcwd (Files): Likewise.
12136
12137 2011-09-21  Bruno Haible  <bruno@clisp.org>
12138
12139         ftruncate: Un-deprecate, concentrate on Win32 support.
12140         * modules/ftruncate (Status, Notice): Remove sections.
12141         (Depends-on): Add largefile.
12142         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
12143         non-mingw platforms.
12144         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
12145         include <io.h>.
12146         * modules/perror-tests (Depends-on): Add ftruncate.
12147         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
12148         'ftruncate' module.
12149
12150 2011-09-21  Bruno Haible  <bruno@clisp.org>
12151
12152         Add dependencies to new dirent related modules.
12153         * modules/opendir (Depends-on): Add closedir.
12154         * modules/getcwd (Depends-on): Add opendir, closedir.
12155         * modules/dirent-safer-tests (Depends-on): Likewise.
12156         * modules/fdopendir-tests (Depends-on): Likewise.
12157         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
12158         * modules/renameat-tests (Depends-on): Likewise.
12159
12160 2011-09-21  Bruno Haible  <bruno@clisp.org>
12161
12162         opendir: Avoid compilation error on mingw.
12163         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
12164         * modules/opendir (Depends-on): Add unistd.
12165
12166 2011-09-21  Bruno Haible  <bruno@clisp.org>
12167
12168         ftruncate tests: Avoid a test failure on mingw.
12169         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
12170
12171 2011-09-21  Bruno Haible  <bruno@clisp.org>
12172
12173         select tests: Avoid test failures on OSF/1 5.1 and mingw.
12174         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
12175         native Windows.
12176
12177 2011-09-21  Bruno Haible  <bruno@clisp.org>
12178
12179         New module 'fdopen'.
12180         * lib/stdio.in.h (fdopen): New declaration.
12181         * lib/fdopen.c: New file.
12182         * m4/fdopen.m4: New file.
12183         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
12184         REPLACE_FDOPEN.
12185         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
12186         REPLACE_FDOPEN.
12187         * modules/fdopen: New file.
12188         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
12189         * tests/test-stdio-c++.cc: Check signature of fdopen.
12190         * doc/posix-functions/fdopen.texi: Mention the new module.
12191
12192 2011-09-21  Bruno Haible  <bruno@clisp.org>
12193
12194         unlockpt tests: Avoid test failure on NetBSD 5.1.
12195         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
12196         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
12197
12198 2011-09-21  Bruno Haible  <bruno@clisp.org>
12199
12200         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
12201         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
12202         * tests/test-getlogin_r.c (main): Likewise.
12203
12204 2011-09-20  Bruno Haible  <bruno@clisp.org>
12205
12206         time tests: Don't require pid_t.
12207         * doc/posix-headers/time.texi: Revert last change.
12208         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
12209         * tests/test-time.c: Comment out the check for pid_t.
12210
12211 2011-09-20  Bruno Haible  <bruno@clisp.org>
12212
12213         fsync tests: Avoid a test failure on mingw.
12214         * tests/test-fsync.c (main): Allow a failure with EIO.
12215
12216 2011-09-20  Bruno Haible  <bruno@clisp.org>
12217
12218         euidaccess: Update comments.
12219         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
12220
12221 2011-09-20  Bruno Haible  <bruno@clisp.org>
12222
12223         Ensure EBADF returns for socket functions on mingw.
12224         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
12225         descriptor is invalid.
12226         * lib/bind.c (rpl_bind): Likewise.
12227         * lib/connect.c (rpl_connect): Likewise.
12228         * lib/getpeername.c (rpl_getpeername): Likewise.
12229         * lib/getsockname.c (rpl_getsockname): Likewise.
12230         * lib/getsockopt.c (rpl_getsockopt): Likewise.
12231         * lib/listen.c (rpl_listen): Likewise.
12232         * lib/recv.c (rpl_recv): Likewise.
12233         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12234         * lib/send.c (rpl_send): Likewise.
12235         * lib/sendto.c (rpl_sendto): Likewise.
12236         * lib/setsockopt.c (rpl_setsockopt): Likewise.
12237         * lib/shutdown.c (rpl_shutdown): Likewise.
12238
12239 2011-09-20  Bruno Haible  <bruno@clisp.org>
12240
12241         select tests: EBADF tests.
12242         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
12243         test_bad_fd): New functions.
12244         (test_function): Invoke also test_bad_fd.
12245
12246 2011-09-20  Bruno Haible  <bruno@clisp.org>
12247
12248         Tests for module 'posix_spawn_file_actions_addopen.
12249         * modules/posix_spawn_file_actions_addopen-tests: New file.
12250         * tests/test-posix_spawn_file_actions_addopen.c: New file.
12251
12252         Tests for module 'posix_spawn_file_actions_adddup2'.
12253         * modules/posix_spawn_file_actions_adddup2-tests: New file.
12254         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
12255
12256         Tests for module 'posix_spawn_file_actions_addclose'.
12257         * modules/posix_spawn_file_actions_addclose-tests: New file.
12258         * tests/test-posix_spawn_file_actions_addclose.c: New file.
12259
12260 2011-09-20  Bruno Haible  <bruno@clisp.org>
12261
12262         Tests for module 'unlockpt'.
12263         * modules/unlockpt-tests: New file.
12264         * tests/test-unlockpt.c: New file.
12265         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
12266
12267         Tests for module 'grantpt'.
12268         * modules/grantpt-tests: New file.
12269         * tests/test-grantpt.c: New file.
12270         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
12271
12272 2011-09-20  Bruno Haible  <bruno@clisp.org>
12273
12274         freopen tests: EBADF tests.
12275         * tests/test-freopen.c: Include errno.h, unistd.h.
12276         (main): Add tests for EBADF, commented out for the moment.
12277
12278         fclose tests: EBADF tests.
12279         * tests/test-fclose.c (main): Add tests for EBADF.
12280
12281         fflush tests: EBADF tests.
12282         * tests/test-fflush.c: Include errno.h, macros.h.
12283         (main): Add tests for EBADF.
12284
12285         ftello tests: EBADF tests.
12286         * tests/test-ftello4.sh: New file.
12287         * tests/test-ftello4.c: New file.
12288         * modules/ftello-tests (Files): Add them.
12289         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
12290
12291         fseeko tests: EBADF tests.
12292         * tests/test-fseeko4.sh: New file.
12293         * tests/test-fseeko4.c: New file.
12294         * modules/fseeko-tests (Files): Add them.
12295         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
12296
12297         Tests for function fputc().
12298         * modules/fputc-tests: New file.
12299         * tests/test-fputc.c: New file.
12300         * modules/stdio-tests (Depends-on): Add fputc-tests.
12301
12302         Tests for function fgetc().
12303         * modules/fgetc-tests: New file.
12304         * tests/test-fgetc.c: New file.
12305         * modules/stdio-tests (Depends-on): Add fgetc-tests.
12306
12307         Tests for function fdopen().
12308         * modules/fdopen-tests: New file.
12309         * tests/test-fdopen.c: New file.
12310         * modules/stdio-tests (Depends-on): Add fdopen-tests.
12311
12312         Tests for module 'vdprintf'.
12313         * modules/vdprintf-tests: New file.
12314         * tests/test-vdprintf.c: New file.
12315
12316         Tests for module 'dprintf'.
12317         * modules/dprintf-tests: New file.
12318         * tests/test-dprintf.c: New file.
12319
12320 2011-09-20  Bruno Haible  <bruno@clisp.org>
12321
12322         Tests for module 'ioctl'.
12323         * modules/ioctl-tests: New file.
12324         * tests/test-ioctl.c: New file.
12325
12326 2011-09-20  Bruno Haible  <bruno@clisp.org>
12327
12328         fcntl tests: EBADF tests.
12329         * tests/test-fcntl.c (main): Add more tests for EBADF.
12330
12331 2011-09-20  Bruno Haible  <bruno@clisp.org>
12332
12333         utimensat tests: EBADF tests.
12334         * tests/test-utimensat.c (main): Add tests for EBADF.
12335
12336         renameat tests: EBADF tests.
12337         * tests/test-renameat.c (main): Add tests for EBADF.
12338
12339         mkfifoat tests: EBADF tests.
12340         * tests/test-mkfifoat.c (main): Add tests for EBADF.
12341
12342         readlinkat tests: EBADF tests.
12343         * tests/test-readlinkat.c (main): Add tests for EBADF.
12344
12345         symlinkat tests: EBADF tests.
12346         * tests/test-symlinkat.c (main): Add tests for EBADF.
12347
12348         linkat tests: EBADF tests.
12349         * tests/test-linkat.c (main): Add tests for EBADF.
12350
12351         Tests for module 'faccessat'.
12352         * modules/faccessat-tests: New file.
12353         * tests/test-faccessat.c: New file.
12354
12355         fdopendir tests: EBADF tests.
12356         * tests/test-fdopendir.c (main): Add more tests for EBADF.
12357
12358         openat tests: EBADF tests.
12359         * tests/test-fchownat.c (main): Add tests for EBADF.
12360         * tests/test-fstatat.c (main): Likewise.
12361         * tests/test-mkdirat.c (main): Likewise.
12362         * tests/test-openat.c (main): Likewise.
12363         * tests/test-unlinkat.c (main): Likewise.
12364         * tests/test-fchmodat.c: New file.
12365         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
12366         (Makefile.am): Also run 'test-fchmodat'.
12367
12368 2011-09-20  Bruno Haible  <bruno@clisp.org>
12369
12370         utimens, futimens, fdutimensat tests: EBADF tests.
12371         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
12372
12373         Tests for function fstat().
12374         * modules/fstat-tests: New file.
12375         * tests/test-fstat.c: New file.
12376         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
12377
12378 2011-09-20  Bruno Haible  <bruno@clisp.org>
12379
12380         test-ttyname_r tests: EBADF tests.
12381         * tests/test-ttyname_r.c (main): Add tests for EBADF.
12382
12383         Tests for module 'isatty'.
12384         * modules/isatty-tests: New file.
12385         * tests/test-isatty.c: New file.
12386
12387         Tests for module 'write'.
12388         * modules/write-tests: New file.
12389         * tests/test-write.c: New file.
12390
12391         Tests for module 'read'.
12392         * modules/read-tests: New file.
12393         * tests/test-read.c: New file.
12394
12395         pwrite tests: EBADF tests.
12396         * tests/test-pwrite.c (main): Add tests for EBADF.
12397
12398         pread tests: EBADF tests.
12399         * tests/test-pread.c (main): Add tests for EBADF.
12400
12401         lseek tests: EBADF tests.
12402         * tests/test-lseek.c (main): Add more tests for EBADF.
12403
12404         Tests for module 'ftruncate'.
12405         * modules/ftruncate-tests: New file.
12406         * tests/test-ftruncate.sh: New file.
12407         * tests/test-ftruncate.c: New file.
12408
12409         fsync tests: EBADF tests.
12410         * tests/test-fsync.c (main): Add more tests for EBADF.
12411
12412         fdatasync tests: EBADF tests.
12413         * tests/test-fdatasync.c (main): Add more tests for EBADF.
12414
12415         Tests for module 'fchown'.
12416         * modules/fchown-tests: New file.
12417         * tests/test-fchown.c: New file.
12418
12419         Tests for module 'fchmod'.
12420         * modules/fchmod-tests: New file.
12421         * tests/test-fchmod.c: New file.
12422
12423         fchdir tests: EBADF tests.
12424         * tests/test-fchdir.c (main): Add more tests for EBADF.
12425
12426         dup2 tests: EBADF tests.
12427         * tests/test-dup2.c (main): Add more tests for EBADF.
12428
12429         Tests for module 'dup'.
12430         * modules/dup-tests: New file.
12431         * tests/test-dup.c: New file.
12432
12433         Tests for module 'close'.
12434         * modules/close-tests: New file.
12435         * tests/test-close.c: New file.
12436
12437 2011-09-20  Bruno Haible  <bruno@clisp.org>
12438
12439         Tests for module 'shutdown'.
12440         * modules/shutdown-tests: New file.
12441         * tests/test-shutdown.c: New file.
12442
12443         Tests for module 'setsockopt'.
12444         * modules/setsockopt-tests: New file.
12445         * tests/test-setsockopt.c: New file.
12446
12447         Tests for module 'sendto'.
12448         * modules/sendto-tests: New file.
12449         * tests/test-sendto.c: New file.
12450
12451         Tests for module 'send'.
12452         * modules/send-tests: New file.
12453         * tests/test-send.c: New file.
12454
12455         Tests for module 'recvfrom'.
12456         * modules/recvfrom-tests: New file.
12457         * tests/test-recvfrom.c: New file.
12458
12459         Tests for module 'recv'.
12460         * modules/recv-tests: New file.
12461         * tests/test-recv.c: New file.
12462
12463         Tests for module 'listen'.
12464         * modules/listen-tests: New file.
12465         * tests/test-listen.c: New file.
12466
12467         Tests for module 'getsockopt'.
12468         * modules/getsockopt-tests: New file.
12469         * tests/test-getsockopt.c: New file.
12470
12471         Tests for module 'getsockname'.
12472         * modules/getsockname-tests: New file.
12473         * tests/test-getsockname.c: New file.
12474
12475         Tests for module 'getpeername'.
12476         * modules/getpeername-tests: New file.
12477         * tests/test-getpeername.c: New file.
12478
12479         Tests for module 'connect'.
12480         * modules/connect-tests: New file.
12481         * tests/test-connect.c: New file.
12482
12483         Tests for module 'bind'.
12484         * modules/bind-tests: New file.
12485         * tests/test-bind.c: New file.
12486
12487         accept4 tests: Fix for native Windows.
12488         * tests/test-accept4.c: Include sockets.h.
12489         (main): Invoke gl_sockets_startup.
12490         * modules/accept4-tests (Depends-on): Add sockets.
12491
12492         accept tests: Fix for native Windows.
12493         * tests/test-accept.c: Include sockets.h.
12494         (main): Invoke gl_sockets_startup.
12495         * modules/accept-tests (Depends-on): Add sockets.
12496
12497 2011-09-19  Bruno Haible  <bruno@clisp.org>
12498
12499         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
12500         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
12501         do...while(0).
12502         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
12503         Suggested by Paul Eggert.
12504
12505 2011-09-19  Bruno Haible  <bruno@clisp.org>
12506
12507         sched: Ensure pid_t is defined.
12508         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
12509         not define pid_t.
12510         * lib/sched.in.h: Include <sys/types.h>.
12511         * doc/posix-headers/sched.texi: Mention the pid_t problem.
12512         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12513
12514 2011-09-19  Bruno Haible  <bruno@clisp.org>
12515
12516         msvc-inval: Ensure the entire expansion is a single statement.
12517         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
12518         of braces.
12519
12520 2011-09-19  Jim Meyering  <meyering@redhat.com>
12521
12522         tests: use printf, not echo in init.sh's warn_ function
12523         * tests/init.sh (warn_): Use printf, not echo.  The latter would
12524         misbehave when given strings containing a backslash or starting
12525         with e.g., -n.  James Youngman suggested setting IFS.
12526
12527 2011-09-19  Eric Blake  <eblake@redhat.com>
12528
12529         futimens: enhance test
12530         * tests/test-futimens.h (test_futimens): Also check for EBADF on
12531         closed non-negative fd.
12532
12533         date: accept 'hence' as opposite of 'ago'
12534         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
12535         * tests/test-parse-datetime.c (main): Enhance test.
12536         Suggested by Jesse Wilson.
12537
12538 2011-09-19  Jim Meyering  <meyering@redhat.com>
12539
12540         getcwd: don't fail in a deep directory on a system without openat
12541         Before this change, getcwd would fail when called from a directory
12542         of depth PATH_MAX / 3 or greater.  That was due to the fact that
12543         the non-openat implementation used "..", "../..", "../../..", etc.
12544         to access ancestor directories.  With too many, that string would
12545         be longer than PATH_MAX.
12546         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
12547         using gnulib's openat replacement.
12548         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
12549         we're using the replacement function.
12550
12551 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
12552
12553         maint.mk: avoid warnings from perl about missing files
12554         * top/maint.mk (def_sym_regex): Ignore files listed in
12555         $(gl_other_headers_) that do not exist, say because a project
12556         does not use a corresponding module.
12557
12558 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12559
12560         stat: use pathmax.h only if needed
12561         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
12562         This is better for Emacs, which does not have a mingw port and
12563         therefore can avoid the pathmax module.
12564
12565         utimens: remove dependency on dup2
12566         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
12567         to work around the Linux kernel bug.
12568         * modules/utimens (Depends-on): Remove dup2.
12569
12570 2011-09-18  Bruno Haible  <bruno@clisp.org>
12571
12572         inet_ntop, inet_pton: Look for it also in libresolv.
12573         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
12574         libnsl, search for it in libresolv.
12575         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12576         Needed on Solaris 7.
12577
12578 2011-09-18  Bruno Haible  <bruno@clisp.org>
12579
12580         accept, accept4 tests: Avoid link error on Solaris.
12581         * modules/accept-tests (Makefile.am): Link test-accept against
12582         $(LIBSOCKET).
12583         * modules/accept4-tests (Makefile.am): Link test-accept4 against
12584         $(LIBSOCKET).
12585
12586         accept4: Avoid link error on Solaris.
12587         * modules/accept4 (Link): New section.
12588
12589         socket functions: Avoid link errors on Solaris.
12590         * modules/accept (Depends-on): Add socketlib.
12591         (Link): New section.
12592         * modules/bind (Depends-on): Add socketlib.
12593         (Link): New section.
12594         * modules/connect (Depends-on): Add socketlib.
12595         (Link): New section.
12596         * modules/getpeername (Depends-on): Add socketlib.
12597         (Link): New section.
12598         * modules/getsockname (Depends-on): Add socketlib.
12599         (Link): New section.
12600         * modules/getsockopt (Depends-on): Add socketlib.
12601         (Link): New section.
12602         * modules/listen (Depends-on): Add socketlib.
12603         (Link): New section.
12604         * modules/recv (Depends-on): Add socketlib.
12605         (Link): New section.
12606         * modules/recvfrom (Depends-on): Add socketlib.
12607         (Link): New section.
12608         * modules/send (Depends-on): Add socketlib.
12609         (Link): New section.
12610         * modules/sendto (Depends-on): Add socketlib.
12611         (Link): New section.
12612         * modules/setsockopt (Depends-on): Add socketlib.
12613         (Link): New section.
12614         * modules/shutdown (Depends-on): Add socketlib.
12615         (Link): New section.
12616         * modules/socket (Depends-on): Add socketlib.
12617         (Link): New section.
12618
12619 2011-09-18  Bruno Haible  <bruno@clisp.org>
12620
12621         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
12622         * tests/test-ptsname.c (main): Terminate the test if it takes longer
12623         than 5 seconds.
12624         * modules/ptsname-tests (configure.ac): Test for alarm.
12625
12626 2011-09-18  Bruno Haible  <bruno@clisp.org>
12627
12628         posix_spawn_file_actions_add*: Fix module dependencies.
12629         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
12630         posix_spawn_file_actions_init.
12631         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
12632         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
12633
12634 2011-09-18  Bruno Haible  <bruno@clisp.org>
12635
12636         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
12637         * tests/test-rename.h (test_rename): Allow error code EEXIST.
12638         * tests/test-renameat.c (main): Likewise.
12639
12640 2011-09-18  Bruno Haible  <bruno@clisp.org>
12641
12642         Tests for module 'accept4'.
12643         * modules/accept4-tests: New file.
12644         * tests/test-accept4.c: New file.
12645
12646 2011-09-18  Bruno Haible  <bruno@clisp.org>
12647
12648         Tests for module 'accept'.
12649         * modules/accept-tests: New file.
12650         * tests/test-accept.c: New file.
12651
12652 2011-09-18  Bruno Haible  <bruno@clisp.org>
12653
12654         dup2: Support for MSVC.
12655         * lib/dup2.c: Include msvc-inval.h.
12656         (rpl_dup2): Handle invalid parameter notifications during dup2 and
12657         _get_osfhandle calls.
12658         * modules/dup2 (Depends-on): Add msvc-inval.
12659         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
12660
12661         New module 'msvc-inval'.
12662         * lib/msvc-inval.h: New file.
12663         * lib/msvc-inval.c: New file.
12664         * m4/msvc-inval.m4: New file.
12665         * modules/msvc-inval: New file.
12666
12667 2011-09-17  Bruno Haible  <bruno@clisp.org>
12668
12669         Tests for module 'pclose'.
12670         * modules/pclose-tests: New file.
12671
12672         New module 'pclose'.
12673         * lib/stdio.in.h (pclose): New declaration.
12674         * lib/pclose.c: New file.
12675         * m4/pclose.m4: New file.
12676         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
12677         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
12678         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
12679         * modules/pclose: New file.
12680         * modules/popen-tests (Depends-on): Add pclose.
12681         * modules/popen-safer-tests (Depends-on): Likewise.
12682         * doc/posix-functions/pclose.texi: Mention the new module.
12683
12684 2011-09-17  Bruno Haible  <bruno@clisp.org>
12685
12686         popen: Support for MSVC.
12687         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
12688         * lib/popen.c (popen): Provide alternate definition for native Windows.
12689         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
12690         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
12691         * modules/popen (Depends-on, configure.ac): Update condition.
12692         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
12693         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
12694         fixed.
12695
12696 2011-09-17  Bruno Haible  <bruno@clisp.org>
12697
12698         isnanl, isnand, isnanf: Work around MSVC bug.
12699         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
12700
12701 2011-09-17  Bruno Haible  <bruno@clisp.org>
12702
12703         sys_socket tests: Fix recent mistake.
12704         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
12705
12706 2011-09-17  Bruno Haible  <bruno@clisp.org>
12707
12708         putenv: Support for MSVC.
12709         * modules/putenv (Depends-on): Add environ.
12710         * lib/putenv.c (environ): Disable declaration.
12711         * lib/unistd.in.h: Update comment.
12712
12713 2011-09-17  Bruno Haible  <bruno@clisp.org>
12714
12715         math: Avoid macro redefinition warnings on MSVC.
12716         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
12717         Undefine before redefining.
12718
12719 2011-09-17  Bruno Haible  <bruno@clisp.org>
12720
12721         doc: Mention functions which are declared as macros.
12722         * doc/posix-functions/*[fl].texi: Mention that some functions are
12723         defined as macros with arguments only.
12724
12725 2011-09-17  Bruno Haible  <bruno@clisp.org>
12726
12727         Add dependencies to new dirent related modules.
12728         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
12729         * modules/fts (Depends-on): Likewise.
12730         * modules/glob (Depends-on): Likewise.
12731         * modules/savedir (Depends-on): Likewise.
12732         * modules/scandir (Depends-on): Likewise.
12733         * modules/dirent-safer (Depends-on): Add opendir, closedir.
12734         * modules/fdopendir (Depends-on): Add opendir.
12735
12736 2011-09-17  Bruno Haible  <bruno@clisp.org>
12737
12738         inet_pton: Support for MSVC on Windows Vista or newer.
12739         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
12740         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
12741         HAVE_DECL_INET_PTON is defined.
12742         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12743         On platforms with <winsock2.h>, test whether inet_pton is declared in
12744         <ws2tcpip.h>. If so, arrange to replace it.
12745         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12746         REPLACE_INET_PTON.
12747         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
12748         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
12749         (Depends-on, configure.ac): Update condition.
12750         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
12751
12752 2011-09-17  Bruno Haible  <bruno@clisp.org>
12753
12754         inet_ntop: Support for MSVC on Windows Vista or newer.
12755         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
12756         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
12757         HAVE_DECL_INET_NTOP is defined.
12758         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12759         On platforms with <winsock2.h>, test whether inet_ntop is declared in
12760         <ws2tcpip.h>. If so, arrange to replace it.
12761         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12762         REPLACE_INET_NTOP.
12763         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
12764         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
12765         (Depends-on, configure.ac): Update condition.
12766         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
12767
12768 2011-09-16  Eric Blake  <eblake@redhat.com>
12769
12770         test-fsync: yet another enhancement
12771         * tests/test-fsync.c (main): Also test behavior on read-only text
12772         file.
12773
12774 2011-09-16  Bruno Haible  <bruno@clisp.org>
12775
12776         Enhance fsync, fdatasync tests.
12777         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
12778         * tests/test-fdatasync.c (main): Likewise.
12779
12780 2011-09-16  Bruno Haible  <bruno@clisp.org>
12781
12782         Support for MSVC compiler: Ensure mode_t gets defined.
12783         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
12784         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12785         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12786         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
12787         * tests/test-fcntl-h.c: Check that mode_t is defined.
12788         * tests/test-sys_stat.c: Likewise.
12789         * tests/test-sys_types.c: Likewise.
12790         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
12791         * doc/posix-headers/sys_stat.texi: Likewise.
12792         * doc/posix-headers/sys_types.texi: Likewise.
12793
12794 2011-09-16  Bruno Haible  <bruno@clisp.org>
12795
12796         sys_stat: Support for MSVC.
12797         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
12798         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
12799         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
12800         MSVC.
12801
12802 2011-09-16  Bruno Haible  <bruno@clisp.org>
12803
12804         Support for MSVC compiler: Ensure off_t gets defined.
12805         * lib/unistd.in.h: Include <sys/types.h>.
12806         * tests/test-fcntl-h.c: Check that off_t is defined.
12807         * tests/test-sys_stat.c: Likewise.
12808         * tests/test-sys_types.c: Likewise.
12809
12810 2011-09-16  Eric Blake  <eblake@redhat.com>
12811
12812         fdatasync: port to Solaris
12813         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
12814         * modules/fdatasync (Link): Document it.
12815         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
12816
12817         fdatasync: port to MacOS X 10.7
12818         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
12819         declared.
12820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
12821         * modules/unistd (Makefile.am): Substitute it.
12822         * lib/unistd.in.h (fdatasync): Declare on MacOS.
12823         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
12824
12825         fdatasync: minor improvements
12826         * modules/fdatasync (Depends-on): Add condition for fsync.
12827         * lib/fdatasync.c (fdatasync): Add comment.
12828         * tests/test-unistd-c++.cc: Test fdatasync.
12829
12830         unistd: update refs to newer POSIX
12831         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
12832         Suggested by Bruno Haible.
12833
12834         fdatasync: new module
12835         * modules/fsync (Description): Document difference to fdatasync.
12836         * modules/fdatasync: New module.
12837         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
12838         * lib/fdatasync.c (fdatasync): Likewise.
12839         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
12840         defaults.
12841         * modules/unistd (Makefile.am): Set witnesses.
12842         * lib/unistd.in.h (fdatasync): Declare.
12843         * MODULES.html.sh: Document it.
12844         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
12845         * modules/fdatasync-tests: New test.
12846         * tests/test-fdatasync.c: Likewise.
12847
12848 2011-09-16  Eric Blake  <eblake@redhat.com>
12849
12850         test-fsync: enhance tests
12851         * modules/fsync-tests (Depends-on): Add errno, for mingw.
12852         * tests/test-fsync.c (main): Enhance test.
12853
12854 2011-09-15  Bruno Haible  <bruno@clisp.org>
12855
12856         Support for MSVC compiler: Ensure ssize_t gets defined.
12857         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
12858         * doc/posix-headers/stdio.texi: Likewise.
12859         * modules/stdio (Depends-on): Add ssize_t.
12860         * modules/sys_socket (Depends-on): Likewise.
12861         * modules/sys_types (Depends-on): Likewise.
12862         * modules/sys_uio (Depends-on): Likewise.
12863         * modules/unistd (Depends-on): Likewise.
12864         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
12865         * tests/test-sys_types.c: Check that ssize_t is defined.
12866
12867 2011-09-14  Bruno Haible  <bruno@clisp.org>
12868
12869         Avoid using #, the m4 comment starter character, near brackets.
12870         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
12871         delimiter character in sed expressions.
12872         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12873         Suggested by Eric Blake.
12874
12875         Properly quote AC_CHECK_DECLS' 4th argument.
12876         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
12877         argument.
12878         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12879         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12880         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12881         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12882         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
12883         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
12884         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
12885         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
12886         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
12887         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
12888         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
12889         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12890         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12891         * m4/isinf.m4 (gl_ISINF): Likewise.
12892         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12893         * m4/readutmp.m4 (gl_READUTMP): Likewise.
12894         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12895         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12896         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12897         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12898         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12899         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12900         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
12901         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12902         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12903         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12904         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
12905         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12906         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12907         Reported by Eric Blake.
12908
12909         Properly quote AC_CHECK_DECL's 4th argument.
12910         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
12911         argument.
12912         * m4/argp.m4 (gl_ARGP): Likewise.
12913         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12914         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12915         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12916         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12917         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
12918         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
12919         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
12920         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12921         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12922         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12923         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12924         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12925         Reported by Eric Blake.
12926
12927 2011-09-14  Eric Blake  <eblake@redhat.com>
12928
12929         opendir: avoid compile warning
12930         * lib/opendir.c (includes): Always include errno.h.
12931         Reported by Tatsuro MATSUOKA.
12932
12933 2011-09-14  Jim Meyering  <meyering@redhat.com>
12934
12935         maint.mk: sc_tight_scope: propagate failure from sub-make
12936         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
12937         Reported by Martin von Gagern.
12938
12939 2011-09-13  Bruno Haible  <bruno@clisp.org>
12940
12941         tempname: Support for MSVC.
12942         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
12943         MSVC.
12944         * modules/tempname (Depends-on): Add fcntl-h.
12945
12946 2011-09-13  Bruno Haible  <bruno@clisp.org>
12947
12948         sys_time: Support for MSVC.
12949         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
12950         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
12951         include <winsock2.h>.
12952         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
12953         function declarations that collide with POSIX.
12954         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
12955         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12956
12957 2011-09-13  Bruno Haible  <bruno@clisp.org>
12958
12959         stat: Support for MSVC.
12960         * lib/stat.c: Include pathmax.h.
12961         * modules/stat (Depends-on): Add pathmax.
12962
12963         pathmax: Support for native Windows.
12964         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
12965
12966 2011-09-12  Bruno Haible  <bruno@clisp.org>
12967
12968         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
12969         * lib/dirent.in.h (struct dirent): New type.
12970         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
12971         DT_WHT): New macros.
12972         (DIR): New type.
12973         (opendir, closedir): Declare only if the module 'opendir' is enabled.
12974         (readdir, rewinddir): New declarations.
12975         * lib/dirent-private.h: New file.
12976         * lib/opendir.c: New file.
12977         * lib/readdir.c: New file.
12978         * lib/rewinddir.c: New file.
12979         * lib/closedir.c: New file.
12980         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
12981         * m4/opendir.m4: New file.
12982         * m4/readdir.m4: New file.
12983         * m4/rewinddir.m4: New file.
12984         * m4/closedir.m4: New file.
12985         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
12986         REPLACE_CLOSEDIR here.
12987         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
12988         readdir, rewinddir are declared.
12989         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
12990         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
12991         HAVE_REWINDDIR, HAVE_CLOSEDIR.
12992         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
12993         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
12994         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
12995         * modules/opendir: New file.
12996         * modules/readdir: New file.
12997         * modules/rewinddir: New file.
12998         * modules/closedir: New file.
12999         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
13000         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
13001         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
13002         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
13003         * NEWS: Mention the 'fchdir' change.
13004
13005 2011-09-11  Bruno Haible  <bruno@clisp.org>
13006
13007         asm-underscore.m4: Support for MSVC.
13008         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
13009         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
13010
13011 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
13012
13013         Doc about crypt functions.
13014         * doc/posix-functions/crypt.texi: Expand range of glibc versions
13015         needing for _GNU_SOURCE to get crypt.
13016         * doc/posix-functions/encrypt.texi: Likewise.
13017         * doc/posix-functions/setkey.texi: Likewise.
13018
13019 2011-09-11  Bruno Haible  <bruno@clisp.org>
13020
13021         doc: Update regarding MSVC 9.
13022         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
13023         tested".
13024         * doc/posix-functions/*.texi: Update with info about MSVC 9.
13025         * doc/posix-headers/*.texi: Likewise.
13026         * doc/pastposix-functions/*.texi: Likewise.
13027         * doc/glibc-functions/*.texi: Likewise.
13028         * doc/glibc-headers/*.texi: Likewise.
13029
13030 2011-09-11  Bruno Haible  <bruno@clisp.org>
13031
13032         unistd et al.: Don't assume <unistd.h> exists.
13033         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
13034         does not exist.
13035         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
13036         exist. But include <stdlib.h>.
13037         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
13038         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
13039         symlink() does not exist.
13040         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
13041         include <io.h> instead.
13042         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
13043         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
13044         include <direct.h> instead.
13045         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13046         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13047         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
13048         <io.h> instead.
13049         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
13050         correctly if the system does not have hard links.
13051         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
13052         <direct.h> instead.
13053         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
13054         it when looking for function declarations.
13055         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
13056         <direct.h> and <io.h> instead.
13057         * doc/posix-headers/unistd.texi: More details about MSVC problem.
13058
13059 2011-09-11  Bruno Haible  <bruno@clisp.org>
13060
13061         strcase: Support for MSVC.
13062         * modules/strcase (Status, Notice): Remove obsoletion mark.
13063         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
13064         * doc/posix-functions/strncasecmp.texi: Likewise.
13065
13066         strings: Don't assume <strings.h> exists.
13067         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
13068         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
13069         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
13070         * doc/posix-headers/strings.texi: Mention the MSVC problem.
13071
13072 2011-09-11  Bruno Haible  <bruno@clisp.org>
13073
13074         dirent: Don't assume <dirent.h> exists.
13075         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
13076         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
13077         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
13078         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
13079
13080 2011-09-11  Bruno Haible  <bruno@clisp.org>
13081
13082         Fix wint_t on MSVC.
13083         * lib/wchar.in.h (wint_t): On MSVC, override it.
13084         * lib/wctype.in.h (wint_t): Likewise.
13085         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
13086         MSVC.
13087         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
13088         * doc/posix-headers/wctype.texi: Likewise.
13089
13090 2011-09-11  Bruno Haible  <bruno@clisp.org>
13091
13092         sys_types: Fix typo.
13093         * lib/sys_types.in.h: Fix typo in comment.
13094         Reported by Paul Eggert.
13095
13096         Support for MSVC compiler: Ensure size_t gets defined.
13097         * modules/strings (Depends-on): Add 'sys_types'.
13098         * modules/sys_uio (Depends-on): Likewise.
13099         * lib/sys_uio.in.h: Update comment.
13100
13101         C++ tests for module 'sys_types'.
13102         * modules/sys_types-c++-tests: New file.
13103         * tests/test-sys_types-c++.cc: New file.
13104
13105         Tests for module 'sys_types'.
13106         * modules/sys_types-tests: New file.
13107         * tests/test-sys_types.c: New file.
13108
13109         New module 'sys_types'.
13110         * lib/sys_types.in.h: New file.
13111         * m4/sys_types_h.m4: New file.
13112         * modules/sys_types: New file.
13113         * doc/posix-headers/sys_types.texi: Mention the new module and the
13114         size_t problem on MSVC 9.
13115
13116 2011-09-11  Bruno Haible  <bruno@clisp.org>
13117
13118         Support for MSVC compiler: Avoid division by a literal 0.
13119         * lib/math.in.h (NAN): Define through a function call also on MSVC.
13120         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
13121         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
13122         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
13123         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
13124         * tests/infinity.h: New file.
13125         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
13126         on MSVC.
13127         * tests/test-ceilf1.c: Include infinity.h.
13128         (main): Use Infinityf.
13129         * tests/test-ceil1.c: Include infinity.h.
13130         (main): Use Infinityd.
13131         * tests/test-ceill.c: Include infinity.h.
13132         (main): Use Infinityl.
13133         * tests/test-dprintf-posix.c: Include infinity.h.
13134         (test_function): Use Infinityd.
13135         * tests/test-floorf1.c: Include infinity.h.
13136         (main): Use Infinityf.
13137         * tests/test-floor1.c: Include infinity.h.
13138         (main): Use Infinityd.
13139         * tests/test-floorl.c: Include infinity.h.
13140         (main): Use Infinityl.
13141         * tests/test-fprintf-posix.c: Include infinity.h.
13142         (test_function): Use Infinityd.
13143         * tests/test-frexp.c: Include infinity.h.
13144         (main): Use Infinityd.
13145         * tests/test-frexpl.c: Include infinity.h.
13146         (main): Use Infinityl.
13147         * tests/test-isfinite.c: Include infinity.h.
13148         (test_isfinitef): Use Infinityf.
13149         (test_isfinited): Use Infinityd.
13150         (test_isfinitel): Use Infinityl.
13151         * tests/test-isinf.c: Include infinity.h.
13152         (test_isinff): Use Infinityf.
13153         (test_isinfd): Use Infinityd.
13154         (test_isinfl): Use Infinityl.
13155         * tests/test-isnan.c: Include infinity.h.
13156         (test_float): Use Infinityf.
13157         (test_double): Use Infinityd.
13158         (test_long_double): Use Infinityl.
13159         * tests/test-isnanf.h: Include infinity.h.
13160         (main): Use Infinityf.
13161         * tests/test-isnand.h: Include infinity.h.
13162         (main): Use Infinityd.
13163         * tests/test-isnanl.h: Include infinity.h.
13164         (main): Use Infinityl.
13165         * tests/test-ldexpl.c: Include infinity.h.
13166         (main): Use Infinityl.
13167         * tests/test-printf-posix.h: Include infinity.h.
13168         (test_function): Use Infinityd.
13169         * tests/test-roundf1.c: Include infinity.h.
13170         (main): Use Infinityf.
13171         * tests/test-round1.c: Include infinity.h.
13172         (main): Use Infinityd.
13173         * tests/test-roundl.c: Include infinity.h.
13174         (main): Use Infinityl.
13175         * tests/test-signbit.c: Include infinity.h.
13176         (test_signbitf): Use Infinityf.
13177         (test_signbitd): Use Infinityd.
13178         (test_signbitl): Use Infinityl.
13179         * tests/test-snprintf-posix.h: Include infinity.h.
13180         (test_function): Use Infinityd, Infinityl.
13181         * tests/test-sprintf-posix.h: Include infinity.h.
13182         (test_function): Use Infinityd, Infinityl.
13183         * tests/test-truncf1.c: Include infinity.h.
13184         (main): Use Infinityf.
13185         * tests/test-trunc1.c: Include infinity.h.
13186         (main): Use Infinityd.
13187         * tests/test-truncl.c: Include infinity.h.
13188         (main): Use Infinityl.
13189         * tests/test-vasnprintf-posix.c: Include infinity.h.
13190         (test_function): Use Infinityd, Infinityl.
13191         * tests/test-vasprintf-posix.c: Include infinity.h.
13192         (test_function): Use Infinityd, Infinityl.
13193         * modules/ceilf-tests (Files): Add tests/infinity.h.
13194         * modules/ceil-tests (Files): Likewise.
13195         * modules/ceill-tests (Files): Likewise.
13196         * modules/dprintf-posix-tests (Files): Likewise.
13197         * modules/floorf-tests (Files): Likewise.
13198         * modules/floor-tests (Files): Likewise.
13199         * modules/floorl-tests (Files): Likewise.
13200         * modules/fprintf-posix-tests (Files): Likewise.
13201         * modules/frexp-tests (Files): Likewise.
13202         * modules/frexp-nolibm-tests (Files): Likewise.
13203         * modules/frexpl-tests (Files): Likewise.
13204         * modules/frexpl-nolibm-tests (Files): Likewise.
13205         * modules/isfinite-tests (Files): Likewise.
13206         * modules/isinf-tests (Files): Likewise.
13207         * modules/isnan-tests (Files): Likewise.
13208         * modules/isnanf-tests (Files): Likewise.
13209         * modules/isnanf-nolibm-tests (Files): Likewise.
13210         * modules/isnand-tests (Files): Likewise.
13211         * modules/isnand-nolibm-tests (Files): Likewise.
13212         * modules/isnanl-tests (Files): Likewise.
13213         * modules/isnanl-nolibm-tests (Files): Likewise.
13214         * modules/ldexpl-tests (Files): Likewise.
13215         * modules/printf-posix-tests (Files): Likewise.
13216         * modules/roundf-tests (Files): Likewise.
13217         * modules/round-tests (Files): Likewise.
13218         * modules/roundl-tests (Files): Likewise.
13219         * modules/signbit-tests (Files): Likewise.
13220         * modules/snprintf-posix-tests (Files): Likewise.
13221         * modules/sprintf-posix-tests (Files): Likewise.
13222         * modules/truncf-tests (Files): Likewise.
13223         * modules/trunc-tests (Files): Likewise.
13224         * modules/truncl-tests (Files): Likewise.
13225         * modules/vasnprintf-posix-tests (Files): Likewise.
13226         * modules/vasprintf-posix-tests (Files): Likewise.
13227         * modules/vdprintf-posix-tests (Files): Likewise.
13228         * modules/vfprintf-posix-tests (Files): Likewise.
13229         * modules/vprintf-posix-tests (Files): Likewise.
13230         * modules/vsnprintf-posix-tests (Files): Likewise.
13231         * modules/vsprintf-posix-tests (Files): Likewise.
13232         * modules/xprintf-posix-tests (Files): Likewise.
13233
13234 2011-09-11  Bruno Haible  <bruno@clisp.org>
13235
13236         Ensure pid_t gets defined.
13237         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
13238         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13239         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13240         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13241         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13242         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13243         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13244         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13245         * tests/test-fcntl-h.c: Check that pid_t is defined.
13246         * tests/test-sched.c: Likewise.
13247         * tests/test-termios.c: Likewise.
13248         * tests/test-time.c: Likewise.
13249         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
13250         * doc/posix-headers/signal.texi: Likewise.
13251         * doc/posix-headers/sys_types.texi: Likewise.
13252         * doc/posix-headers/time.texi: Likewise.
13253
13254 2011-09-11  Bruno Haible  <bruno@clisp.org>
13255
13256         acl: Fix compilation on Solaris 10 (older version).
13257         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
13258         of ACE_EVERYONE.
13259         * lib/set-mode-acl.c (qset_acl): Likewise.
13260         Reported by Christian Jullien <eligis@orange.fr>.
13261
13262 2011-09-10  Bruno Haible  <bruno@clisp.org>
13263
13264         iconv, unsetenv: Add support for MSVC compiler.
13265         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
13266         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
13267
13268 2011-09-10  Bruno Haible  <bruno@clisp.org>
13269
13270         *printf: Add support for MSVC compiler.
13271         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
13272         handles the exception caused by the %n directive. When cross-compiling,
13273         guess no on native Windows.
13274         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13275         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
13276         emulate it through vsnprintf.
13277         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
13278         * doc/posix-functions/dprintf.texi: Update documentation regarding
13279         MSVC 9.
13280         * doc/posix-functions/fprintf.texi: Likewise.
13281         * doc/posix-functions/printf.texi: Likewise.
13282         * doc/posix-functions/snprintf.texi: Likewise.
13283         * doc/posix-functions/sprintf.texi: Likewise.
13284         * doc/posix-functions/swprintf.texi: Likewise.
13285         * doc/posix-functions/vdprintf.texi: Likewise.
13286         * doc/posix-functions/vfprintf.texi: Likewise.
13287         * doc/posix-functions/vprintf.texi: Likewise.
13288         * doc/posix-functions/vsnprintf.texi: Likewise.
13289         * doc/posix-functions/vsprintf.texi: Likewise.
13290         * doc/glibc-functions/asprintf.texi: Likewise.
13291         * doc/glibc-functions/obstack_printf.texi: Likewise.
13292         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13293         * doc/glibc-functions/vasprintf.texi: Likewise.
13294
13295 2011-09-10  Bruno Haible  <bruno@clisp.org>
13296
13297         nocrash: Add support for native Windows.
13298         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
13299
13300 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
13301             Bruno Haible  <bruno@clisp.org>
13302
13303         absolute-header, include-next: Add support for MSVC compiler.
13304         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
13305         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
13306         directory separator in #line directives.
13307         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
13308         recognize also backslash as directory separator in #line directives.
13309
13310 2011-09-08  Jim Meyering  <meyering@redhat.com>
13311
13312         maint.mk: mark the post-release commit log with "maint: " prefix
13313         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
13314         one-line commit-log summary.
13315
13316 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
13317             Bruno Haible  <bruno@clisp.org>
13318
13319         Doc about crypt functions.
13320         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
13321         systems.
13322         * doc/posix-functions/encrypt.texi: Likewise.
13323         * doc/posix-functions/setkey.texi: Likewise.
13324
13325 2011-09-08  Simon Josefsson  <simon@josefsson.org>
13326
13327         * lib/gc.h: Fix copyright header.
13328
13329 2011-09-07  Bruno Haible  <bruno@clisp.org>
13330
13331         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
13332         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
13333         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
13334
13335 2011-09-07  Bruno Haible  <bruno@clisp.org>
13336
13337         openat: Work around compilation error with OSF/1 5.1 DTK cc.
13338         * lib/fopen.c: Use different syntax for include of <stdio.h>.
13339         * lib/freopen.c: Likewise.
13340         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
13341         * lib/lstat.c: Likewise.
13342         * lib/stat.c: Likewise.
13343         * lib/open.c: Use different syntax for include of <fcntl.h>.
13344         * lib/openat.c: Include fcntl.h again, explicitly.
13345
13346 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
13347
13348         parse-datetime: document the newly accepted format
13349         * doc/parse-datetime.texi (Combined date and time of day items):
13350         New section.
13351
13352 2011-09-06  Bruno Haible  <bruno@clisp.org>
13353
13354         acl: Fix a test failure on newer Solaris 10 with ZFS.
13355         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
13356         ENOSYS as no ACL.
13357         Reported by Jim Meyering.
13358
13359 2011-09-06  Bruno Haible  <bruno@clisp.org>
13360
13361         acl: Update for AIX >= 5.3 with NFS.
13362         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
13363         ENOSYS as no ACL.
13364
13365         acl: Fix a test failure on AIX >= 5.3 with NFS.
13366         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
13367         as no ACL.
13368
13369 2011-09-06  Bruno Haible  <bruno@clisp.org>
13370
13371         acl: Fix a test failure on IRIX 6.5 with NFS.
13372         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
13373         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
13374         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
13375         * lib/copy-acl.c (qcopy_acl): Likewise.
13376
13377 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
13378
13379         openat: port to AIX 7.1 with large files
13380         AIX 7.1 does a "#define openat open64at" if large files are in use,
13381         so we can't simply #undef openat.  Use the orig_openat trick (similar
13382         to orig_open in lib/open.c) to work around the problem.  Problem
13383         reported by Kevin Brott for GNU tar, in the thread containing
13384         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
13385         * lib/openat.c (__need_system_fcntl_h): Define first.
13386         Include <fcntl.h> and <sys/types.h> before undefining.
13387         (orig_openat) [HAVE_OPENAT]: New inline function.
13388         (openat) [HAVE_OPENAT]: Do not undef.
13389         (rpl_openat): Use orig_openat, not openat.
13390
13391 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13392             Bruno Haible  <bruno@clisp.org>
13393
13394         acl: Avoid errors on NonStop Kernel.
13395         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
13396         ENOTSUP errors.
13397
13398 2011-09-05  Bruno Haible  <bruno@clisp.org>
13399
13400         acl: Clean up Solaris code.
13401         * lib/acl-internal.h: Remove no-op #if.
13402         * lib/file-has-acl.c: Likewise.
13403         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
13404         * lib/copy-acl.c (qcopy_acl): Likewise.
13405
13406 2011-09-05  Bruno Haible  <bruno@clisp.org>
13407
13408         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
13409         binaries built on the original Solaris 10.
13410         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
13411         trivial.
13412
13413 2011-09-05  Bruno Haible  <bruno@clisp.org>
13414
13415         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13416         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
13417         10.
13418         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
13419         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
13420         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
13421         instead of acl_get, facl_get, acl_set, facl_set.
13422
13423 2011-09-05  Bruno Haible  <bruno@clisp.org>
13424
13425         copy-file: Try unit tests on more file systems.
13426         * tests/test-copy-file-1.sh: New file.
13427         * tests/test-copy-file-2.sh: New file.
13428         * modules/copy-file-tests (Files): Add them.
13429         (Makefile.am): Add them to TESTS.
13430
13431         acl: Try unit tests on more file systems.
13432         * tests/test-file-has-acl-1.sh: New file.
13433         * tests/test-file-has-acl-2.sh: New file.
13434         * tests/test-set-mode-acl-1.sh: New file.
13435         * tests/test-set-mode-acl-2.sh: New file.
13436         * tests/test-copy-acl-1.sh: New file.
13437         * tests/test-copy-acl-2.sh: New file.
13438         * modules/acl-tests (Files): Add them.
13439         (Makefile.am): Add them to TESTS.
13440
13441 2011-09-04  Bruno Haible  <bruno@clisp.org>
13442
13443         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13444         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
13445         10.
13446         (OLD_ALLOW, OLD_DENY): New macros.
13447         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
13448         ACE_ACCESS_ALLOWED_ACE_TYPE.
13449         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
13450         ACE_ACCESS_DENIED_ACE_TYPE.
13451         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
13452         (NEW_ACE_EXECUTE): Fix value.
13453         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
13454         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
13455         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
13456         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
13457         NEW_ACE_SYNCHRONIZE): New macros.
13458         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
13459         instead of acl_fromtext, acl_set, facl_set.
13460         Fixes a coreutils/tests/cp/perm failure.
13461
13462 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
13463
13464         openat: test for fstatat (..., 0) bug
13465         Further testing with tar suggests that fstatat (..., 0)
13466         does not work in general, on AIX 7.1; see
13467         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
13468         So, give up entirely on AIX 7.1's fstatat, and fall back on our
13469         replacement fstatat (which is what older AIX releases were using
13470         anyway).
13471         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
13472         use is now changed to orig_fstatat.  This was probably the right
13473         thing to do anyway.
13474         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
13475         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
13476         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
13477         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
13478         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
13479         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
13480         if the bug is found.
13481
13482         openat: test for fstatat (AT_FDCWD, ..., 0) bug
13483         This tests for another fstatat bug on AIX 7.1:
13484         fstatat (AT_FDCWD, ..., 0) does not work.  See
13485         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
13486         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
13487         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
13488         (rpl_fstatat): Adjust so that it works around either (or both)
13489         bugs if present.
13490         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
13491
13492 2011-09-03  Karl Berry  <karl@gnu.org>
13493
13494         * doc/regex.texi (Character Class Operators): Avoid literal ":"
13495         in index entries.
13496
13497 2011-09-02  Bruno Haible  <bruno@clisp.org>
13498
13499         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
13500         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
13501         values of AR, ARFLAGS, RANLIB.
13502         Reported by John W. Eaton <jwe@gnu.org> for Octave.
13503
13504 2011-09-02  Bruno Haible  <bruno@clisp.org>
13505
13506         Find 'ar' program that fits with --host argument.
13507         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
13508
13509 2011-09-02  Bruno Haible  <bruno@clisp.org>
13510
13511         tests: init.sh: Support any non-GNU diff.
13512         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
13513         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
13514         Solaris 8.
13515
13516 2011-09-02  Bruno Haible  <bruno@clisp.org>
13517
13518         tests: init.sh: work also with any non-GNU diff that supports -u
13519         * tests/init.sh: Relax check for diff -u support.
13520         Rather than checking for GNU diff via --version, simply check
13521         for support for -u itself.  Useful at least on OpenBSD 4.9,
13522         AIX 7.1, IRIX 6.5, and Solaris 10.
13523
13524 2011-09-01  Bruno Haible  <bruno@clisp.org>
13525
13526         strtoimax, strtoumax: Document problem on HP-UX 11.
13527         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
13528         * doc/posix-functions/strtoumax.texi: Likewise.
13529
13530 2011-09-01  Bruno Haible  <bruno@clisp.org>
13531
13532         strtoumax: Avoid link error on OSF/1 with DTK cc.
13533         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
13534         defined as a function.
13535         * modules/strtoumax (Depends-on, configure.ac): Test only whether
13536         strtoumax is defined, not whether it is declared.
13537
13538 2011-09-01  Bruno Haible  <bruno@clisp.org>
13539
13540         strtoimax: Avoid link error on OSF/1 with DTK cc.
13541         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
13542         defined as a function.
13543         * modules/strtoimax (Depends-on, configure.ac): Test only whether
13544         strtoimax is defined, not whether it is declared.
13545
13546 2011-09-01  Bruno Haible  <bruno@clisp.org>
13547
13548         imaxdiv: Avoid link error on OSF/1 with DTK cc.
13549         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
13550         as a function.
13551         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
13552         whether it is declared.
13553
13554 2011-09-01  Bruno Haible  <bruno@clisp.org>
13555
13556         imaxabs: Avoid link error on OSF/1 with DTK cc.
13557         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
13558         as a function.
13559         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
13560         whether it is declared.
13561
13562 2011-09-01  Bruno Haible  <bruno@clisp.org>
13563
13564         Tests for module 'strtoumax'.
13565         * modules/strtoumax-tests: New file.
13566         * tests/test-strtoumax.c: New file.
13567
13568         Tests for module 'strtoimax'.
13569         * modules/strtoimax-tests: New file.
13570         * tests/test-strtoimax.c: New file.
13571
13572         Tests for module 'imaxdiv'.
13573         * modules/imaxdiv-tests: New file.
13574         * tests/test-imaxdiv.c: New file.
13575
13576         Tests for module 'imaxabs'.
13577         * modules/imaxabs-tests: New file.
13578         * tests/test-imaxabs.c: New file.
13579
13580 2011-09-01  Bruno Haible  <bruno@clisp.org>
13581
13582         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
13583         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
13584         pthread_create.
13585
13586 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13587
13588         openat: work around AIX 7.1 fstatat issue
13589         This should fix the problem that was not properly fixed
13590         in the previous change, dated 2011-08-30.
13591         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
13592         __need_system_stat_h defined.
13593         (orig_fstatat) [HAVE_FSTATAT]: New function.
13594         (rpl_fstatat): Go back to the old way of doing things,
13595         except call orig_fstatat instead of fstatat.
13596         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
13597         Remove unnecessary check whether fstatat fills in st_size etc.
13598
13599 2011-09-01  Bruno Haible  <bruno@clisp.org>
13600
13601         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
13602         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
13603         just include the system's header.
13604
13605 2011-08-31  Jim Meyering  <meyering@redhat.com>
13606
13607         tests: avoid spurious assertion failure in test-float.c on ppc64
13608         * tests/test-float.c (test_long_double): Comment out an assertion,
13609         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
13610         with gcc-4.4.4.
13611
13612         maint: indent with spaces, not TABs
13613         I need to get in the habit of running gnulib's "make check".
13614         Both of these would have been caught.
13615         * m4/largefile.m4: Indent with spaces, not TABs.
13616         * lib/parse-datetime.y (iso_8601_time): Likewise.
13617         Spotted by Pádraig Brady.
13618
13619         test-parse-datetime.c: accommodate a relatively strict gcc warning
13620         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
13621         to avoid a warning from gcc's -Werror=missing-declarations.
13622         Insert a few spaces-before-funcall-parenthesis.
13623
13624 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
13625
13626         parse-datetime: accept ISO 8601 date and time rep with "T" separator
13627         The parser now accepts ISO 8601 date-time strings with "T" as the
13628         separator.  It has long parsed dates like "2004-02-29 16:21:42"
13629         with a space between the date and time strings.  Now it also parses
13630         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
13631         variants like "2004-02-29T16:21:42.333-07:00"
13632         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
13633         of day representation using the 'T' separator character.
13634         * doc/parse-datetime.texi (General date syntax): replace use of
13635         deprecated --iso-8601 option with --rfc-3339 in example of date
13636         command output formats that can be parsed.
13637         * tests/test-parse-datetime.c (tm_diff): New function, taken from
13638         lib/parse-datetime.y.
13639         (gmt_offset): New function.
13640         (main): Add additional test cases to validate ISO8601 extended
13641         date and time of day parsing.
13642
13643 2011-08-31  Bruno Haible  <bruno@clisp.org>
13644
13645         freopen: Documentation.
13646         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
13647         name.
13648         Reported by Claudio Bley <claudio.bley@gmail.com>.
13649
13650 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
13651
13652         freopen: Don't crash if the filename argument is NULL.
13653         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
13654         NULL.
13655
13656 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13657
13658         openat: work around AIX 7.1 fstatat bug
13659         Problem reported by Kevin Brott for GNU tar, in the thread containing
13660         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
13661         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
13662         FSTATAT_ST_SIZE_ETC_BROKEN.
13663         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
13664         rpl_fstatat.
13665         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
13666         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
13667         AC_CHECK_FUNCS_ONCE for fstatat.
13668         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
13669         fchmodat, mkdirat, openat and unlinkat.
13670
13671 2011-08-30  Bruno Haible  <bruno@clisp.org>
13672
13673         Avoid endless recursions if config.h includes some header files.
13674         * lib/fopen.c (__need_FILE): Define already before including config.h.
13675         * lib/freopen.c (__need_FILE): Likewise.
13676         * lib/open.c (__need_system_fcntl_h): Likewise.
13677         * lib/stat.c (__need_system_sys_stat_h): Likewise.
13678         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
13679         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
13680
13681 2011-08-25  Karl Berry  <karl@gnu.org>
13682
13683         * config/srclist.txt (ylwrap): new try.
13684         * build-aux/ylwrap: new file.
13685
13686 2011-08-23  Bruno Haible  <bruno@clisp.org>
13687
13688         tmpdir: Use a good default directory on native Windows.
13689         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
13690         (P_tmpdir): Default to _P_tmpdir on native Windows.
13691         (path_search): On native Windows, try the value returned by GetTempPath
13692         before trying P_tmpdir.
13693         * modules/tmpdir (Depends-on): Add pathmax.
13694         Suggested by John Darrington <john@darrington.wattle.id.au>.
13695
13696 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
13697
13698         doc: fix typo in README-release
13699         * top/README-release: Capitalize first word of a sentence.
13700
13701 2011-08-19  Jim Meyering  <meyering@redhat.com>
13702
13703         fts: do not exhaust memory when processing million-entry directories
13704         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
13705         directory would require about 256*N bytes of memory.  Thus, it was
13706         easy to construct a directory too large to be processed by any of
13707         those tools.  With this change, fts' maximum memory utilization is
13708         now limited to around 30MB.
13709         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
13710         (fts_read): When we've processed the final entry (i.e., when
13711         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
13712         using the parent entry to read any remaining entries.  Dispatch
13713         depending on what fts_build returns:
13714         - NULL+stop, aka failure: stop
13715         - NULL otherwise: move up in the dir hierarchy
13716         - non-NULL: handle this new entry
13717         (fts_build): Declare and use new local, continue_readdir.
13718         Prepare to be called from fts_read, when the entries
13719         from a partially-read directory have just been exhausted.
13720         In that case, we'll skip the opendir and instead use the parent's
13721         fts_dirp and derive dir_fd from that.
13722         Finally, in the readdir loop, if we read max_entries entries,
13723         exit the loop ensuring *not* to call closedir.  This is required
13724         so that fts_dirp can be reused on a subsequent call.
13725         Prompted by Ben England's report of memory exhaustion in find
13726         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
13727
13728         maint: fts: move decl of `dp' down into while loop; split a long line
13729         * lib/fts.c (fts_build): No semantic change.
13730
13731         fts: add/use new struct member, fts_dirp
13732         We are about to use this to manage any directory with
13733         too many entries to read all of them into memory at once.
13734         To do that, we'll need to save the DIR* pointer in each
13735         affected FTSENT struct.
13736         * lib/fts_.h: Include <dirent.h>.
13737         (struct FTSENT) [fts_dirp]: New member.
13738         * lib/fts.c (closedir_and_clear): Define.
13739         Use it in place of closedir so that we are sure to
13740         clear the new fts_dirp member when done with it.
13741         (fts_alloc): Initialize the new member.
13742         (fts_lfree): Free, if needed.
13743
13744         maint: fts: give __opendir2 a new parameter and rename
13745         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
13746         than surreptitiously using sole caller's "dir_fd".
13747         (fts_opendir): Rename from __opendir2.
13748
13749         maint: fts.c: remove __opendir2's now-unused parameter, oflag
13750         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
13751
13752         maint: fts.c: correct off-by-one indentation
13753         * lib/fts.c (fts_build): Correct indentation, change style
13754         of a couple of block comments, and bracing style.
13755
13756         maint: fts.c: move __opendir2 #define "up" out of function body
13757         * lib/fts.c (__opendir2): Move "up".  No semantic change.
13758
13759         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
13760         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
13761         out for a long time and besides was useful only on BSD systems.
13762
13763 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13764
13765         regex: port to Stratus OpenVOS
13766         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
13767         define to empty, rather than attempting nonportable optimizations.
13768         Problem reported by Paul Green in:
13769         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
13770         and fix suggested by Eric Blake in:
13771         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
13772
13773 2011-08-17  Eric Blake  <eblake@redhat.com>
13774
13775         getcwd: fix test failures on mingw
13776         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
13777         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
13778         test if long directory cannot be created, and allow mingw errno.
13779
13780         getcwd-lgpl: fix m4 to match relaxed test for BSD
13781         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
13782         (gl_FUNC_GETCWD_SIGNATURE): New macro.
13783         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
13784         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
13785         signature problem.
13786
13787         getcwd: fix compilation on mingw64
13788         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
13789         getcwd.
13790         Reported by Marc-André Lureau.
13791
13792         pipe2: silence compiler warning
13793         * lib/pipe2.c (pipe2): Hide label if it is not used.
13794
13795 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
13796
13797         relocatable-prog: fix link error
13798         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
13799         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
13800         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
13801         into modules/relocatable-lib without noticing that
13802         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
13803         also needs to build relocatable.c.
13804
13805 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13806
13807         getaddrinfo: fix sh typo in gai_strerrorA decl checking
13808         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
13809         shell code: it contained a 'break' that was not in a loop.
13810         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
13811         via a shell-language loop; this may have been true in old Autoconf
13812         versions, but it's not true in Autoconf 2.68.  I found this bug
13813         when testing coreutils git on Solaris 8, whose shell complains
13814         about the syntax error.
13815
13816 2011-08-12  Simon Josefsson  <simon@josefsson.org>
13817
13818         * lib/base64.c: Fix comment to reference RFC 4648.
13819         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
13820         <gvtulder@gmail.com>.
13821
13822 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13823
13824         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
13825
13826         po/Makefile.in.in: fix make -q problem
13827         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
13828         rule, since there's no file named 'check-macro-version' and its
13829         use as a file breaks make -q.
13830         (all): Don't depend on check-macro-version.
13831         (CHECK_MACRO_VERSION): New macro.
13832         (stamp-po): Use it.
13833
13834         configmake: fix make -q problem
13835         * modules/configmake (configmake.h): Update configmake.h's time stamp
13836         even if the file does not change.  Otherwise, 'make -q' fails.
13837         Problem reported by Simon Josefsson in
13838         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
13839
13840 2011-08-11  Jim Meyering  <meyering@redhat.com>
13841
13842         git-version-gen: correct the advice in a comment
13843         * build-aux/git-version-gen: Correct comment.
13844         Don't recommend to list .tarball-version in .gitignore.
13845
13846 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13847
13848         base64: fix off-by-one buffer size bug
13849         Problem and (trivial) fix reported by Gijs van Tulder in
13850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
13851         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
13852         * tests/test-base64.c (main): Catch the bug.
13853
13854 2011-08-10  Eric Blake  <eblake@redhat.com>
13855
13856         closein: correct comments
13857         * lib/closein.c (close_stdin): Improve comments.
13858
13859 2011-08-09  Bruno Haible  <bruno@clisp.org>
13860
13861         More tests for 'fseeko'.
13862         * tests/test-fseeko3.c: New file, from Eric Blake.
13863         * tests/test-fseeko3.sh: New file.
13864         * modules/fseeko-tests (Files): Add them.
13865         (TESTS): Add test-fseeko3.sh.
13866         (check_PROGRAMS): Add test-fseeko3.
13867
13868 2011-08-09  Eric Blake  <eblake@redhat.com>
13869
13870         fseeko: remove unneeded hack
13871         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
13872
13873         fseeko: fix bug on glibc
13874         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
13875         Reported by John W. Eaton.
13876
13877 2011-08-08  Bruno Haible  <bruno@clisp.org>
13878
13879         unictype/base: Fix interoperability with preinstalled libunistring.
13880         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
13881         Reported by Simon Josefsson.
13882
13883 2011-08-08  Bruno Haible  <bruno@clisp.org>
13884
13885         iswblank: Detect declaration correctly.
13886         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
13887         AC_CHECK_DECLS invocation.
13888
13889 2011-08-08  Bruno Haible  <bruno@clisp.org>
13890
13891         tcgetsid: Detect declaration correctly.
13892         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
13893         AC_CHECK_DECLS invocation.
13894         Reported by Simon Josefsson.
13895
13896 2011-08-08  Eric Blake  <eblake@redhat.com>
13897
13898         largefile: fix typo that regressed large file support
13899         * modules/largefile (configure.ac-early): Fix section name.
13900
13901 2011-08-06  Karl Berry  <karl@gnu.org>
13902
13903         * MODULES.html.sh (func_all_files): _Noreturn is no longer
13904         a separate module.
13905
13906 2011-08-05  Simon Josefsson  <simon@josefsson.org>
13907
13908         openat: Fix warnings and commens when building unlinkat.c on Hurd.
13909         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
13910         get prototype for free.
13911
13912 2011-08-04  Bruno Haible  <bruno@clisp.org>
13913
13914         Tests for module 'pathmax'.
13915         * modules/pathmax-tests: New file.
13916         * tests/test-pathmax.c: New file.
13917
13918         canonicalize-lgpl: Support larger filenames on the Hurd.
13919         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
13920         Reported by Paul Eggert.
13921
13922         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
13923         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
13924         * lib/chdir-long.h: Include pathmax.h.
13925         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
13926         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
13927         (PATH_MAX): Remove code that is done by pathmax.h.
13928         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
13929         * lib/tmpfile.c: Add a comment.
13930         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
13931         * modules/chdir-long (Depends-on): Add pathmax.
13932         * modules/getcwd (Depends-on): Add pathmax.
13933         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
13934         is not defined.
13935         * doc/posix-headers/limits.texi: Mention the pathmax module.
13936         * NEWS: Mention the change.
13937
13938 2011-08-02  Bruno Haible  <bruno@clisp.org>
13939
13940         pthread_sigmask: Actually use results of gl_THREADLIB.
13941         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
13942         gl_THREADLIB, not gl_[]THREADLIB.
13943         Reported by Eric Blake.
13944
13945 2011-08-02  Jim Meyering  <meyering@redhat.com>
13946
13947         maint.mk: relax the default _gl_TS_function_match regexp
13948         * top/maint.mk (_gl_TS_function_match): Don't require at least one
13949         space between function name and "(" in an "extern" declaration.
13950         That would fail to match a decl with no space there: extern void foo();
13951
13952 2011-07-31  Iain Nicol  <iain@thenicols.net>
13953
13954         git-version-gen: document that EXTRA_DIST must include .version
13955         * build-aux/git-version-gen: In the how-to-use comment, document
13956         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
13957         will fail when run from an unpacked distribution tarball.
13958
13959 2011-08-01  Bruno Haible  <bruno@clisp.org>
13960
13961         wctype-h: Fix last change.
13962         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
13963         REPLACE_TOWLOWER to 0.
13964         Reported by Sam Steingold <sds@gnu.org>.
13965
13966 2011-07-31  Bruno Haible  <bruno@clisp.org>
13967
13968         frexpl: Update autoconf test.
13969         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
13970         according to changes of 2011-06-20.
13971
13972 2011-07-31  Bruno Haible  <bruno@clisp.org>
13973
13974         sys_utsname: Add support for Minix.
13975         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
13976         <sys/utsname.h>.
13977         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13978         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
13979
13980 2011-07-31  Bruno Haible  <bruno@clisp.org>
13981
13982         strings: Add support for Minix.
13983         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
13984         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
13985         * doc/posix-headers/strings.texi: Document the Minix problem.
13986
13987 2011-07-31  Bruno Haible  <bruno@clisp.org>
13988
13989         wctype-h: Add support for Minix.
13990         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
13991         REPLACE_TOWLOWER.
13992         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
13993         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
13994         REPLACE_ISWCNTRL.
13995
13996 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
13997
13998         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
13999         This is a performance improvement for 64-bit hosts: it causes the
14000         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
14001
14002 2011-07-31  Bruno Haible  <bruno@clisp.org>
14003
14004         stdioext: Add support for Minix.
14005         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
14006         * lib/fpurge.c (fpurge): Likewise.
14007         * lib/freadahead.c (freadahead): Likewise.
14008         * lib/freadable.c (freadable): Likewise.
14009         * lib/freading.c (freading): Likewise.
14010         * lib/freadptr.c (freadptr): Likewise.
14011         * lib/freadseek.c (freadptrinc): Likewise.
14012         * lib/fseeko.c (rpl_fseeko): Likewise.
14013         * lib/fseterr.c (fseterr): Likewise.
14014         * lib/fwritable.c (fwritable): Likewise.
14015         * lib/fwriting.c (fwriting): Likewise.
14016         * lib/fflush.c (clear_ungetc_buffer): Update comment.
14017         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
14018
14019 2011-07-31  Bruno Haible  <bruno@clisp.org>
14020
14021         errno: Port to Minix.
14022         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
14023         ECONNABORTED are defined.
14024         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
14025         GNULIB_defined_ECONNABORTED): New macros.
14026         * lib/strerror-override.h (strerror_override): Test also
14027         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
14028         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
14029         ECONNABORTED.
14030         * doc/posix-headers/errno.texi: Mention the Minix problem.
14031
14032 2011-07-31  Bruno Haible  <bruno@clisp.org>
14033
14034         Work around declaration collisions on Minix.
14035         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
14036         defined, set REPLACE_MBSINIT.
14037         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
14038         defined, set REPLACE_MBRTOWC.
14039         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
14040         set REPLACE_MBRLEN.
14041         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
14042         defined, set REPLACE_MBSRTOWCS.
14043         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
14044         defined, set REPLACE_WCRTOMB.
14045         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
14046         defined, set REPLACE_WCSRTOMBS.
14047
14048 2011-07-31  Bruno Haible  <bruno@clisp.org>
14049
14050         Add support for Minix with ACK compiler.
14051         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
14052         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
14053         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
14054
14055 2011-07-31  Bruno Haible  <bruno@clisp.org>
14056
14057         Documentation about Minix.
14058         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
14059         * doc/glibc-headers/*.texi: Likewise.
14060         * doc/posix-functions/*.texi: Likewise.
14061         * doc/glibc-functions/*.texi: Likewise.
14062
14063 2011-07-31  Bruno Haible  <bruno@clisp.org>
14064
14065         snippet/warn-on-use: Fix indentation.
14066         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
14067
14068 2011-07-25  Jim Meyering  <meyering@redhat.com>
14069
14070         tests: test-update-copyright.sh: remove unnecessary "rm" commands
14071         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
14072         commands.
14073
14074 2011-07-27  Jim Meyering  <meyering@redhat.com>
14075
14076         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
14077         * top/maint.mk (gl_extract_significant_defines_): Now that
14078         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
14079         gnulib/lib/signal.in.h, and now that we recommend to
14080         define-if-undefined those two symbols in application code,
14081         we must filter them out of the "significant" list.
14082         This avoids a "make syntax-check" failure in coreutils.
14083
14084 2011-07-26  Eric Blake  <eblake@redhat.com>
14085
14086         warnings: add comments about previous patch
14087         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
14088         * m4/include_next.m4: Likewise.
14089         * m4/warn-on-use.m4: Likewise.
14090         * m4/warnings.m4: Likewise, and simplify use.
14091         Suggested by Stefano Lattarini.
14092
14093         include-next, warnings: support older autoconf
14094         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
14095         AS_VAR_PUSHDEF in a way that works with older autoconf.
14096         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
14097         Reported by Daniel P. Berrange.
14098
14099 2011-07-25  Bruno Haible  <bruno@clisp.org>
14100
14101         fseek, ftell: Fix doc.
14102         * doc/posix-functions/fseek.texi: Reword statement about
14103         AC_SYS_LARGEFILE.
14104         * doc/posix-functions/ftell.texi: Likewise.
14105
14106 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14107             Bruno Haible  <bruno@clisp.org>
14108
14109         Add dependencies to the 'largefile' module.
14110         * modules/fopen (Depends-on): Add 'largefile'.
14111         * modules/freopen (Depends-on): Likewise.
14112         * modules/fseeko (Depends-on): Likewise.
14113         * modules/ftello (Depends-on): Likewise.
14114         * modules/glob (Depends-on): Likewise.
14115         * modules/lseek (Depends-on): Likewise.
14116         * modules/lstat (Depends-on): Likewise.
14117         * modules/mkostemp (Depends-on): Likewise.
14118         * modules/mkostemps (Depends-on): Likewise.
14119         * modules/mkstemp (Depends-on): Likewise.
14120         * modules/mkstemps (Depends-on): Likewise.
14121         * modules/open (Depends-on): Likewise.
14122         * modules/openat (Depends-on): Likewise.
14123         * modules/pread (Depends-on): Likewise.
14124         * modules/pwrite (Depends-on): Likewise.
14125         * modules/scandir (Depends-on): Likewise.
14126         * modules/stat (Depends-on): Likewise.
14127         * modules/tmpfile (Depends-on): Likewise.
14128         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
14129         since the containing module now depends on the largefile module.
14130         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
14131         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
14132         off_t is fixed by gnulib.
14133         * doc/posix-functions/freopen.texi: Likewise.
14134         * doc/posix-functions/fseeko.texi: Likewise.
14135         * doc/posix-functions/fstatat.texi: Likewise.
14136         * doc/posix-functions/ftello.texi: Likewise.
14137         * doc/posix-functions/glob.texi: Likewise.
14138         * doc/posix-functions/lseek.texi: Likewise.
14139         * doc/posix-functions/lstat.texi: Likewise.
14140         * doc/posix-functions/mkstemp.texi: Likewise.
14141         * doc/posix-functions/open.texi: Likewise.
14142         * doc/posix-functions/openat.texi: Likewise.
14143         * doc/posix-functions/pread.texi: Likewise.
14144         * doc/posix-functions/pwrite.texi: Likewise.
14145         * doc/posix-functions/scandir.texi: Likewise.
14146         * doc/posix-functions/stat.texi: Likewise.
14147         * doc/posix-functions/tmpfile.texi: Likewise.
14148         * doc/glibc-functions/mkostemp.texi: Likewise.
14149         * doc/glibc-functions/mkostemps.texi: Likewise.
14150         * doc/glibc-functions/mkstemps.texi: Likewise.
14151
14152 2011-07-25  Bruno Haible  <bruno@clisp.org>
14153
14154         fcntl: Move AC_LIBOBJ invocation to module description.
14155         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
14156         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
14157
14158         fcntl: Remove call-in from fchdir.m4.
14159         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
14160         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
14161
14162         dup3: Remove potential call-in from fchdir.m4.
14163         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
14164         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
14165
14166         dup2: Move AC_LIBOBJ invocation to module description.
14167         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
14168         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
14169         Don't invoke AC_LIBOBJ.
14170         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
14171
14172         dup2: Remove call-in from fchdir.m4.
14173         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
14174         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
14175
14176         fclose: Move AC_LIBOBJ invocation to module description.
14177         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
14178         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
14179         to 1.
14180         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
14181
14182         fclose: Remove call-in from close.m4.
14183         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
14184         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
14185
14186         close: Move AC_LIBOBJ invocation to module description.
14187         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
14188         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
14189         1.
14190         * modules/close (configure.ac): Invoke AC_LIBOBJ.
14191
14192         close: Remove call-in from fchdir.m4.
14193         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
14194         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
14195
14196         open: Move AC_LIBOBJ invocation to module description.
14197         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
14198         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
14199         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
14200
14201         open: Remove call-in from fchdir.m4.
14202         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
14203         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
14204
14205         fchdir: Start to remove gl_REPLACE_* idiom.
14206         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
14207         (gl_FUNC_FCHDIR): Invoke it.
14208
14209 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14210
14211         * lib/ftell.c (ftell): Comment out cast.
14212
14213         close: use gl_REPLACE_FCLOSE only if defined
14214         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
14215         is defined.  The close module doesn't depend on the fclose module
14216         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
14217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
14218         I reproduced the problem with "./gnulib-tool --test close sys_socket".
14219
14220 2011-07-24  Jim Meyering  <meyering@redhat.com>
14221
14222         test-select.h: avoid warning when using gcc's -Wmissing-declarations
14223         * tests/test-select.h (test_function): Declare as "static".
14224
14225 2011-07-24  Bruno Haible  <bruno@clisp.org>
14226
14227         doc: Mention the effects of AC_SYS_LARGEFILE.
14228         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
14229         on this function.
14230         * doc/posix-functions/aio_error.texi: Likewise.
14231         * doc/posix-functions/aio_fsync.texi: Likewise.
14232         * doc/posix-functions/aio_read.texi: Likewise.
14233         * doc/posix-functions/aio_return.texi: Likewise.
14234         * doc/posix-functions/aio_suspend.texi: Likewise.
14235         * doc/posix-functions/aio_write.texi: Likewise.
14236         * doc/posix-functions/fgetpos.texi: Likewise.
14237         * doc/posix-functions/fopen.texi: Likewise.
14238         * doc/posix-functions/freopen.texi: Likewise.
14239         * doc/posix-functions/fsetpos.texi: Likewise.
14240         * doc/posix-functions/fstatvfs.texi: Likewise.
14241         * doc/posix-functions/ftruncate.texi: Likewise.
14242         * doc/posix-functions/ftw.texi: Likewise.
14243         * doc/posix-functions/getrlimit.texi: Likewise.
14244         * doc/posix-functions/glob.texi: Likewise.
14245         * doc/posix-functions/lio_listio.texi: Likewise.
14246         * doc/posix-functions/lockf.texi: Likewise.
14247         * doc/posix-functions/mkstemp.texi: Likewise.
14248         * doc/posix-functions/mmap.texi: Likewise.
14249         * doc/posix-functions/nftw.texi: Likewise.
14250         * doc/posix-functions/openat.texi: Likewise.
14251         * doc/posix-functions/opendir.texi: Likewise.
14252         * doc/posix-functions/posix_fadvise.texi: Likewise.
14253         * doc/posix-functions/posix_fallocate.texi: Likewise.
14254         * doc/posix-functions/pread.texi: Likewise.
14255         * doc/posix-functions/pwrite.texi: Likewise.
14256         * doc/posix-functions/readdir.texi: Likewise.
14257         * doc/posix-functions/readdir_r.texi: Likewise.
14258         * doc/posix-functions/rewinddir.texi: Likewise.
14259         * doc/posix-functions/scandir.texi: Likewise.
14260         * doc/posix-functions/seekdir.texi: Likewise.
14261         * doc/posix-functions/setrlimit.texi: Likewise.
14262         * doc/posix-functions/statvfs.texi: Likewise.
14263         * doc/posix-functions/telldir.texi: Likewise.
14264         * doc/posix-functions/tmpfile.texi: Likewise.
14265         * doc/posix-functions/truncate.texi: Likewise.
14266         * doc/glibc-functions/fallocate.texi: Likewise.
14267         * doc/glibc-functions/fstatfs.texi: Likewise.
14268         * doc/glibc-functions/fts_children.texi: Likewise.
14269         * doc/glibc-functions/fts_read.texi: Likewise.
14270         * doc/glibc-functions/getdirentries.texi: Likewise.
14271         * doc/glibc-functions/mkostemp.texi: Likewise.
14272         * doc/glibc-functions/mkostemps.texi: Likewise.
14273         * doc/glibc-functions/mkstemps.texi: Likewise.
14274         * doc/glibc-functions/preadv.texi: Likewise.
14275         * doc/glibc-functions/pwritev.texi: Likewise.
14276         * doc/glibc-functions/sendfile.texi: Likewise.
14277         * doc/glibc-functions/statfs.texi: Likewise.
14278
14279 2011-07-24  Bruno Haible  <bruno@clisp.org>
14280
14281         doc: Fix typo.
14282         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
14283
14284 2011-07-24  Bruno Haible  <bruno@clisp.org>
14285
14286         doc: Mention fsusage.
14287         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
14288
14289 2011-07-24  Bruno Haible  <bruno@clisp.org>
14290
14291         doc: Mention new glibc headers and functions.
14292         * doc/glibc-headers/gshadow.texi: New file.
14293         * doc/glibc-functions/endsgent.texi: New file.
14294         * doc/glibc-functions/fgetsgent.texi: New file.
14295         * doc/glibc-functions/fgetsgent_r.texi: New file.
14296         * doc/glibc-functions/getsgent.texi: New file.
14297         * doc/glibc-functions/getsgent_r.texi: New file.
14298         * doc/glibc-functions/getsgnam.texi: New file.
14299         * doc/glibc-functions/getsgnam_r.texi: New file.
14300         * doc/glibc-functions/putsgent.texi: New file.
14301         * doc/glibc-functions/setsgent.texi: New file.
14302         * doc/glibc-functions/sgetsgent.texi: New file.
14303         * doc/glibc-functions/sgetsgent_r.texi: New file.
14304         * doc/glibc-functions/malloc_info.texi: New file.
14305         * doc/glibc-functions/preadv.texi: New file.
14306         * doc/glibc-functions/pwritev.texi: New file.
14307         * doc/glibc-functions/register_printf_modifier.texi: New file.
14308         * doc/glibc-functions/register_printf_specifier.texi: New file.
14309         * doc/glibc-functions/register_printf_type.texi: New file.
14310         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
14311         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
14312         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
14313         * doc/glibc-functions/pthread_getname_np.texi: New file.
14314         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
14315         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
14316         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
14317         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
14318         * doc/glibc-functions/pthread_setname_np.texi: New file.
14319         * doc/glibc-functions/pthread_sigqueue.texi: New file.
14320         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
14321         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
14322         * doc/glibc-functions/qsort_r.texi: New file.
14323         * doc/glibc-functions/quick_exit.texi: New file.
14324         * doc/glibc-functions/syncfs.texi: New file.
14325         * doc/gnulib.texi: Include them.
14326         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
14327         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
14328         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
14329         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
14330         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
14331         * doc/glibc-functions/execvpe.texi: Likewise.
14332
14333 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14334
14335         ftell: don't include <unistd.h>
14336         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
14337         guaranteed to define off_t, and the ftell module depends on the
14338         stdio module.
14339
14340         ftell: do not assume wraparound signed arithmetic
14341         * lib/ftell.c: Include <limits.h>.
14342         (ftell): Don't assume wraparound signed arithmetic.
14343
14344 2011-07-24  Bruno Haible  <bruno@clisp.org>
14345
14346         close: No longer depend on module 'fclose'.
14347         * modules/close (Depends-on): Remove fclose.
14348         * NEWS: Mention the change.
14349         Suggested by Sam Steingold <sds@gnu.org>.
14350
14351 2011-07-24  Bruno Haible  <bruno@clisp.org>
14352
14353         fsusage: Enable large volume support on AIX >= 5.2.
14354         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
14355         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
14356         instead of STAT_STATVFS.
14357         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
14358
14359         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
14360         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
14361         f_blocks field only on MacOS X.
14362
14363         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
14364         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
14365         * modules/fsusage (Depends-on): Add largefile.
14366
14367 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14368
14369         * README: Modernize discussion of signed integers.
14370         Assuming overflow wraparound is no longer safe.
14371         Mention ones' complement and signed magnitude.
14372
14373 2011-07-22  Bruno Haible  <bruno@clisp.org>
14374
14375         select tests, pselect tests: Refactor.
14376         * tests/test-select.h: New file, extracted from tests/test-select.c.
14377         (select_fn): New type.
14378         (test, do_select, do_select_nowait, do_select_wait, test_tty,
14379         test_connect_first, test_accept_first, test_pair, test_socket_pair,
14380         test_pipe): Add my_select argument.
14381         (test_function): Renamed from main. Add my_select argument.
14382         * tests/test-select.c: Move most code to tests/test-select.h. Include
14383         test-select.h.
14384         * modules/select-tests (Files): Add tests/test-select.h.
14385         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
14386         (my_select, main): New functions.
14387         * modules/pselect-tests (Files): Add tests/test-select.h,
14388         tests/macros.h, tests/signature.h.
14389         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
14390         (configure.ac): Check for <sys/wait.h>.
14391
14392 2011-07-22  Bruno Haible  <bruno@clisp.org>
14393
14394         sys_select tests: Check the signature of FD_*.
14395         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
14396         signature tests from here...
14397         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
14398         here.
14399         * modules/sys_select-tests (Files): Add tests/signature.h.
14400
14401 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14402
14403         largefile: new module, replacing large-inode
14404         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
14405         * MODULES.html.sh: Add largefile, remove large-inode.
14406         * modules/largefile, m4/largefile.m4: New files.
14407         * modules/large-inode, m4/large-inode.m4: Remove.
14408
14409         fsusage: port to MacOS X 10.7 with 4 TiB file systems
14410         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
14411         implementations that use only 32 bits to count blocks.
14412         On typical hosts with 1024-byte blocks, this fails with file
14413         systems as small as 4 TiB.  Problem reported by Herb Wartens
14414         <http://debbugs.gnu.org/9140> and this should also fix a similar
14415         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
14416
14417         large-inode: New module
14418         * MODULES.html.sh: Add it.
14419         * modules/large-inode, m4/large-inode.m4: New files.
14420
14421         extensions: Enable extensions on MacOS X 10.5 and later.
14422         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
14423
14424 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
14425
14426         file-has-acl: use acl_extended_file_nofollow if available
14427         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
14428         (acl_extended_file): New macro.
14429         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
14430         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
14431
14432 2011-07-21  Bruno Haible  <bruno@clisp.org>
14433
14434         Declare system functions in a way that works with C++.
14435         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
14436         declare fdopendir as extern "C".
14437         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
14438         declare frexpl as extern "C".
14439         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
14440         declare gai_strerror as extern "C".
14441         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
14442         programs, declare gai_strerror as extern "C".
14443         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
14444         declare getlogin_r as extern "C".
14445         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
14446         as extern "C".
14447         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
14448         declare ldexpl as extern "C".
14449         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
14450         as extern "C".
14451         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
14452         program, declare getmntinfo as extern "C".
14453         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
14454         stpncpy as extern "C".
14455         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
14456         program, declare __xpg_strerror_r as extern "C".
14457         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
14458         strndup as extern "C".
14459         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
14460         declare memset and bzero as extern "C".
14461         Reported by Sam Steingold <sds@gnu.org>.
14462
14463 2011-07-12  Jim Meyering  <meyering@redhat.com>
14464
14465         maint.mk: prohibit inclusion of "verify.h" without use
14466         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
14467
14468 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14469
14470         timer-time: A new module to check for timer_settime()
14471         * m4/timer_time.m4: Check for the posix function.
14472         * modules/timer-time: Add the new module.
14473         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
14474         Mention it.
14475
14476 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
14477             Bruno Haible  <bruno@clisp.org>
14478
14479         pthread_sigmask: assume POSIX threads if --avoid=threadlib
14480         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
14481         not defined, assume POSIX threads and look for pthread_sigmask in
14482         $LIBS, without changing $CPPFLAGS.
14483
14484 2011-07-19  Bruno Haible  <bruno@clisp.org>
14485
14486         strstr: Update cross-compilation guess.
14487         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
14488         CPUs, guess no, in view of glibc
14489         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
14490         Suggested by Eric Blake. Reported by Reuben Thomas.
14491
14492 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14493
14494         getopt-gnu: suppress core dumps from detection code
14495         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
14496         to suppress core dumps that may well occur on glibc systems.
14497         * modules/getopt-gnu: Depend on nocrash.
14498
14499 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14500
14501         pthread_sigmask: ensure usleep is declared
14502         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
14503         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
14504
14505 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
14506
14507         doc: Document NonStop portability issues.
14508         * doc/posix-functions/sigaction.texi (sigaction):
14509         * doc/posix-headers/signal.texi (signal.h):
14510         Document NonStop.  See Joachim Schmitz in
14511         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
14512
14513 2011-07-15  Bruno Haible  <bruno@clisp.org>
14514
14515         ffsl, ffsll: Avoid unportable behaviour.
14516         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
14517
14518 2011-07-15  Bruno Haible  <bruno@clisp.org>
14519
14520         ffs: More tests.
14521         * tests/test-ffs.c (NBITS): New macro.
14522         (main): Add more tests.
14523         * tests/test-ffsl.c (NBITS): New macro.
14524         (main): Add more tests.
14525         * tests/test-ffsll.c (NBITS): New macro.
14526         (main): Add more tests.
14527
14528 2011-07-15  Eric Blake  <eblake@redhat.com>
14529
14530         ffsl, ffsll: new modules
14531         * modules/ffsl: New file.
14532         * modules/ffsll: Likewise.
14533         * m4/ffsl.m4: Likewise.
14534         * m4/ffsll.m4: Likewise.
14535         * lib/ffsl.c: Likewise.
14536         * lib/ffsl.h: Likewise.
14537         * lib/ffsll.c: Likewise.
14538         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
14539         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
14540         * modules/string (Makefile.am): Substitute witnesses.
14541         * lib/strings.in.h (ffsl, ffsll): Declare.
14542         * modules/ffsl-tests: New test file.
14543         * modules/ffsll-tests: Likewise.
14544         * tests/test-ffsl.c: Likewise.
14545         * tests/test-ffsll.c: Likewise.
14546         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14547         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
14548         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
14549
14550         ffs: fix m4 prerequisite
14551         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
14552
14553         ffs: avoid undefined behavior
14554         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
14555         * tests/test-ffs.c (naive, main): Avoid signed shifts.
14556         Reported by Bruno Haible.
14557
14558 2011-07-12  Bruno Haible  <bruno@clisp.org>
14559
14560         pthread_sigmask: Rely on module 'threadlib'.
14561         * modules/pthread_sigmask (Depends-on): Add threadlib.
14562         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
14563         is defined.
14564
14565 2011-07-12  Bruno Haible  <bruno@clisp.org>
14566
14567         regex: Depend on module 'strcase'.
14568         * modules/regex (Depends-on): Add strcase, for strcasecmp().
14569
14570 2011-07-12  Jim Meyering  <meyering@redhat.com>
14571
14572         warn-on-use: fix typo in file name
14573         * modules/snippet/warn-on-use (Files): Correct file name:
14574         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
14575
14576 2011-07-12  Bruno Haible  <bruno@clisp.org>
14577
14578         strings: Document module.
14579         * doc/posix-headers/strings.texi: Mention module 'strings'.
14580
14581 2011-07-12  Bruno Haible  <bruno@clisp.org>
14582
14583         Rename module '_Noreturn' to 'snippet/_Noreturn'.
14584         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
14585         (Files, Makefile.am): Update.
14586         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
14587         * modules/stdlib (Depends-on): Update.
14588
14589 2011-07-12  Bruno Haible  <bruno@clisp.org>
14590
14591         * NEWS: Mention the changes.
14592
14593         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
14594         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
14595         (Files, Makefile.am): Update.
14596         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
14597         * modules/arpa_inet (Depends-on): Update.
14598         * modules/ctype (Depends-on): Update.
14599         * modules/dirent (Depends-on): Update.
14600         * modules/fcntl-h (Depends-on): Update.
14601         * modules/glob (Depends-on): Update.
14602         * modules/iconv-h (Depends-on): Update.
14603         * modules/inttypes-incomplete (Depends-on): Update.
14604         * modules/langinfo (Depends-on): Update.
14605         * modules/locale (Depends-on): Update.
14606         * modules/math (Depends-on): Update.
14607         * modules/netdb (Depends-on): Update.
14608         * modules/poll-h (Depends-on): Update.
14609         * modules/pty (Depends-on): Update.
14610         * modules/search (Depends-on): Update.
14611         * modules/signal (Depends-on): Update.
14612         * modules/spawn (Depends-on): Update.
14613         * modules/stdio (Depends-on): Update.
14614         * modules/stdlib (Depends-on): Update.
14615         * modules/string (Depends-on): Update.
14616         * modules/strings (Depends-on): Update.
14617         * modules/sys_file (Depends-on): Update.
14618         * modules/sys_ioctl (Depends-on): Update.
14619         * modules/sys_select (Depends-on): Update.
14620         * modules/sys_socket (Depends-on): Update.
14621         * modules/sys_stat (Depends-on): Update.
14622         * modules/sys_time (Depends-on): Update.
14623         * modules/sys_times (Depends-on): Update.
14624         * modules/sys_utsname (Depends-on): Update.
14625         * modules/sys_wait (Depends-on): Update.
14626         * modules/termios (Depends-on): Update.
14627         * modules/time (Depends-on): Update.
14628         * modules/unistd (Depends-on): Update.
14629         * modules/wchar (Depends-on): Update.
14630         * modules/wctype-h (Depends-on): Update.
14631         * MODULES.html.sh (Support for building libraries and executables):
14632         Update.
14633
14634         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
14635         * modules/snippet/unused-parameter: Renamed from
14636         modules/unused-parameter.
14637         (Files, Makefile.am): Update.
14638         * build-aux/snippet/unused-parameter.h: Renamed from
14639         build-aux/unused-parameter.h.
14640         * modules/selinux-h (Depends-on): Update.
14641         * modules/unistr/base (Depends-on): Update.
14642         * MODULES.html.sh (Core language properties): Update.
14643
14644         Rename module 'link-warning' to 'snippet/link-warning'.
14645         * modules/snippet/link-warning: Renamed from modules/link-warning.
14646         (Files, Makefile.am): Update.
14647         * build-aux/snippet/link-warning.h: Renamed from
14648         build-aux/link-warning.h.
14649         * MODULES.html.sh (Support for building libraries and executables):
14650         Update.
14651
14652         Rename module 'c++defs' to 'snippet/c++defs'.
14653         * modules/snippet/c++defs: Renamed from modules/c++defs.
14654         (Files, Makefile.am): Update.
14655         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
14656         * modules/arpa_inet (Depends-on): Update.
14657         * modules/ctype (Depends-on): Update.
14658         * modules/dirent (Depends-on): Update.
14659         * modules/fcntl-h (Depends-on): Update.
14660         * modules/glob (Depends-on): Update.
14661         * modules/iconv-h (Depends-on): Update.
14662         * modules/langinfo (Depends-on): Update.
14663         * modules/locale (Depends-on): Update.
14664         * modules/math (Depends-on): Update.
14665         * modules/netdb (Depends-on): Update.
14666         * modules/poll-h (Depends-on): Update.
14667         * modules/pty (Depends-on): Update.
14668         * modules/search (Depends-on): Update.
14669         * modules/signal (Depends-on): Update.
14670         * modules/spawn (Depends-on): Update.
14671         * modules/stdio (Depends-on): Update.
14672         * modules/stdlib (Depends-on): Update.
14673         * modules/string (Depends-on): Update.
14674         * modules/strings (Depends-on): Update.
14675         * modules/sys_ioctl (Depends-on): Update.
14676         * modules/sys_select (Depends-on): Update.
14677         * modules/sys_socket (Depends-on): Update.
14678         * modules/sys_stat (Depends-on): Update.
14679         * modules/sys_time (Depends-on): Update.
14680         * modules/sys_wait (Depends-on): Update.
14681         * modules/termios (Depends-on): Update.
14682         * modules/time (Depends-on): Update.
14683         * modules/unistd (Depends-on): Update.
14684         * modules/wchar (Depends-on): Update.
14685         * modules/wctype-h (Depends-on): Update.
14686
14687         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
14688         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
14689         (Files, Makefile.am): Update.
14690         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
14691         * modules/argv-iter (Depends-on): Update.
14692         * modules/arpa_inet (Depends-on): Update.
14693         * modules/dirent (Depends-on): Update.
14694         * modules/fcntl-h (Depends-on): Update.
14695         * modules/fnmatch (Depends-on): Update.
14696         * modules/getopt-posix (Depends-on): Update.
14697         * modules/glob (Depends-on): Update.
14698         * modules/iconv-h (Depends-on): Update.
14699         * modules/inttypes-incomplete (Depends-on): Update.
14700         * modules/locale (Depends-on): Update.
14701         * modules/math (Depends-on): Update.
14702         * modules/netdb (Depends-on): Update.
14703         * modules/search (Depends-on): Update.
14704         * modules/signal (Depends-on): Update.
14705         * modules/spawn (Depends-on): Update.
14706         * modules/stdio (Depends-on): Update.
14707         * modules/stdlib (Depends-on): Update.
14708         * modules/string (Depends-on): Update.
14709         * modules/strings (Depends-on): Update.
14710         * modules/sys_socket (Depends-on): Update.
14711         * modules/sys_stat (Depends-on): Update.
14712         * modules/sys_time (Depends-on): Update.
14713         * modules/sys_times (Depends-on): Update.
14714         * modules/sys_utsname (Depends-on): Update.
14715         * modules/time (Depends-on): Update.
14716         * modules/unistd (Depends-on): Update.
14717         * modules/wchar (Depends-on): Update.
14718         * MODULES.html.sh (Support for building libraries and executables):
14719         Update.
14720
14721 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14722
14723         Improvements on _Noreturn and related modules.
14724
14725         modules/_Exit-tests: test _Noreturn too
14726         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
14727         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
14728         (main): Use them.
14729
14730         stdnoreturn, stdnoreturn-tests: remove modules
14731         They're not needed here and a bit premature for use elsewhere.  See
14732         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
14733         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
14734         * tests/test-stdnoreturn.c: Remove files.
14735         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
14736         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
14737         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
14738         and using noreturn.
14739         * modules/openat, modules/sigpipe-die, modules/xalloc:
14740         * modules/xmemdup0, modules/xstrtol:
14741         Remove dependency on stdnoreturn.
14742
14743         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
14744         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
14745         Reparenthesize to avoid GCC warning.
14746         Support Microsoft's syntax.
14747         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
14748
14749         _Noreturn-tests: remove module
14750         * modules/_Noreturn-tests: Remove.
14751         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
14752         * tests/test-_Noreturn.c: Remove.
14753         * tests/test-stdnoreturn.c: Merge from the old
14754         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
14755
14756 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14757
14758         _Noreturn, stdnoreturn, and related modules.
14759
14760         * top/maint.mk: Adjust to new noreturn support.
14761         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
14762         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
14763
14764         xalloc: use stdnoreturn.h
14765         * lib/xalloc.h: Include <stdnoreturn.h>.
14766         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14767         * modules/xalloc (Depends-on): Add stdnoreturn.
14768
14769         xstrtol: use stdnoreturn.h
14770         * lib/xstrtol.h: Include <stdnoreturn.h>.
14771         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14772         * modules/xstrtol (Depends-on): Add stdnoreturn.
14773
14774         xmemdup0: use stdnoreturn.h
14775         * lib/xmemdup0.h: Include <stdnoreturn.h>.
14776         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14777         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
14778
14779         sigpipe-die: use stdnoreturn.h
14780         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
14781         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14782         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
14783
14784         openat: use stdnoreturn.h
14785         * lib/openat.h: Include <stdnoreturn.h>.
14786         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14787         * modules/openat (Depends-on): Add stdnoreturn.
14788
14789         * lib/openat-die.c (openat_save_fail): Modernize comment.
14790
14791         * lib/xalloc-die.c (xalloc_die): Modernize comment.
14792
14793         * lib/glthread/thread.h: Modernize comment.
14794
14795         obstack: use _Noreturn
14796         * lib/obstack.c (__attribute__): Remove macro.
14797         (print_and_abort): Use _Noreturn.
14798
14799         c-stack: use _Noreturn
14800         * lib/c-stack.c (die, overflow_handler, segv_handler):
14801         Use _Noreturn rather than __attribute__((noreturn)).
14802
14803         argmatch-tests, exclude_tests: use _Noreturn
14804         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
14805         Remove.
14806         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
14807
14808         stdlib: use _Noreturn
14809         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
14810         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
14811         * modules/stdlib (Depends-on): Add _Noreturn.
14812         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
14813
14814         stdnoreturn-tests: new module
14815         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
14816
14817         stdnoreturn: new module
14818         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
14819         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
14820
14821         _Noreturn-tests: new module
14822         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
14823
14824         _Noreturn: new module
14825         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
14826         New section, mentioning it.
14827         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
14828
14829         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
14830
14831 2011-07-11  Eric Blake  <eblake@redhat.com>
14832
14833         ffs: new module
14834         * modules/ffs: New file.
14835         * m4/ffs.m4: Likewise.
14836         * lib/ffs.c: Likewise.
14837         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
14838         * modules/strings (Makefile.am): Substitute witness.
14839         (Depends-on): Add c++defs.
14840         * lib/strings.in.h (ffs): Declare.
14841         * modules/ffs-tests: New test file.
14842         * tests/test-ffs.c: Test new module.
14843         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14844         * doc/posix-functions/ffs.texi (ffs): Likewise.
14845
14846         regex: avoid compiler warning
14847         * lib/regex.c (includes): Include <strings.h>, for use of
14848         strcasecmp in regcomp.c.
14849         Reported by Joachim Schmitz.
14850
14851 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14852
14853         stdint: respect system's intmax_t if INTMAX_MAX
14854         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
14855         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
14856         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
14857         long but int64_t is long long, and where we will clash with the
14858         system intmax_t if we override it.  See
14859         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
14860         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
14861         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
14862         similarly for UINTMAX_C.
14863
14864 2011-07-08  Bruno Haible  <bruno@clisp.org>
14865
14866         pthread_sigmask tests: Avoid a compiler warning.
14867         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
14868         non-zero.
14869
14870         sigprocmask tests: A better way to avoid a compiler warning.
14871         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
14872         (main): Complain if system() returns non-zero.
14873         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
14874
14875 2011-07-08  Bruno Haible  <bruno@clisp.org>
14876
14877         pthread_sigmask: Work around IRIX bug.
14878         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
14879         bug.
14880         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
14881         there may be unblocked pending signals.
14882         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
14883
14884 2011-07-08  Bruno Haible  <bruno@clisp.org>
14885
14886         pthread_sigmask: Work around Cygwin bug.
14887         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
14888         bug.
14889         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
14890         the system's pthread_sigmask function.
14891         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
14892
14893 2011-07-08  Bruno Haible  <bruno@clisp.org>
14894
14895         pthread_sigmask: Work around bug in single-threaded implementation.
14896         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
14897         FreeBSD, HP-UX, Solaris bug.
14898         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
14899         * lib/pthread_sigmask.c: Include <stddef.h>.
14900         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
14901         the system's pthread_sigmask function.
14902         * modules/pthread_sigmask (configure.ac): Invoke
14903         gl_PREREQ_PTHREAD_SIGMASK.
14904         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
14905         HP-UX, Solaris.
14906
14907 2011-07-08  Eric Blake  <eblake@redhat.com>
14908
14909         test-sigprocmask: avoid compiler warning
14910         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
14911         * tests/test-sigprocmask.c (main): Use it to silence warning.
14912         Reported by Jim Meyering.
14913
14914         test-snprintf: avoid compiler warning
14915         * tests/test-snprintf.c (main): Avoid shadowed declaration.
14916         * tests/test-vsnprintf.c (main): Likewise.
14917         Reported by Jim Meyering.
14918
14919 2011-07-08  Bruno Haible  <bruno@clisp.org>
14920
14921         Tests for module 'pthread_sigmask'.
14922         * modules/pthread_sigmask-tests: New file.
14923         * tests/test-pthread_sigmask1.c: New file, based on
14924         tests/test-sigprocmask.c.
14925         * tests/test-pthread_sigmask2.c: New file.
14926
14927 2011-07-08  Jim Meyering  <meyering@redhat.com>
14928
14929         test-getopt.h: avoid warning about an unused variable
14930         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
14931
14932 2011-07-07  Jim Meyering  <meyering@redhat.com>
14933
14934         maint: reduce list of files exempt from sc_prohibit_leading_TABs
14935         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
14936         now that it no longer contains leading TABs.
14937         Remove unused "url=FIXME" statement.
14938
14939 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14940
14941         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
14942         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14943         When gl_THREADLIB is not in use, assume that the POSIX sematics
14944         are desired.  This is better for Emacs, which uses POSIX semantics
14945         on GNUish and/or POSIXish platforms, and does not use threads at
14946         all otherwise.
14947
14948         pthread_sigmask: fix typo when testing for libraries
14949         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14950         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
14951
14952 2011-07-08  Eric Blake  <eblake@redhat.com>
14953
14954         fts: introduce FTS_NOATIME
14955         * lib/fts_.h (FTS_NOATIME): New bit flag.
14956         (FTS_OPTIONMASK): Adjust.
14957         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
14958         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
14959
14960 2011-07-08  Bruno Haible  <bruno@clisp.org>
14961
14962         Tests for module 'thread'.
14963         * modules/thread-tests: New file.
14964         * tests/test-thread_self.c: New file.
14965         * tests/test-thread_create.cc: New file.
14966
14967 2011-07-08  Bruno Haible  <bruno@clisp.org>
14968
14969         thread: Avoid gcc warnings when using gl_thread_self().
14970         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
14971         'void *'.
14972         (gl_thread_self_pointer): Update.
14973
14974 2011-07-07  Bruno Haible  <bruno@clisp.org>
14975
14976         signal-c++-tests: Check declaration of pthread_sigmask.
14977         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
14978         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
14979         $(LIB_PTHREAD_SIGMASK).
14980
14981 2011-07-07  Bruno Haible  <bruno@clisp.org>
14982
14983         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
14984         * lib/signal.in.h (pthread_sigmask): Override if
14985         REPLACE_PTHREAD_SIGMASK is 1.
14986         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14987         REPLACE_PTHREAD_SIGMASK.
14988         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
14989         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
14990         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
14991         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14992         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
14993
14994 2011-07-07  Bruno Haible  <bruno@clisp.org>
14995
14996         pthread_sigmask: Ensure declaration in <signal.h>.
14997         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
14998         include <pthread.h>.
14999         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
15000         problem.
15001
15002 2011-07-07  Bruno Haible  <bruno@clisp.org>
15003
15004         pthread_sigmask: Document the module.
15005         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
15006
15007 2011-07-07  Bruno Haible  <bruno@clisp.org>
15008
15009         pthread_sigmask: Follow gnulib conventions.
15010         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
15011         gl_PTHREAD_SIGMASK.
15012         * modules/pthread_sigmask (configure.ac): Update.
15013
15014 2011-07-07  Bruno Haible  <bruno@clisp.org>
15015
15016         pthread_sigmask: Make declaration C++ safe.
15017         * lib/signal.in.h: In two special conditions, just do an #include_next.
15018         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15019         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
15020         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15021         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15022         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
15023         not REPLACE_PTHREAD_MASK.
15024         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
15025         not REPLACE_PTHREAD_MASK.
15026         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15027
15028 2011-07-07  Bruno Haible  <bruno@clisp.org>
15029
15030         pthread_sigmask: Fix return value.
15031         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
15032         * lib/pthread_sigmask.c: New file.
15033         * modules/pthread_sigmask (Files): Add it.
15034         (configure.ac): Invoke AC_LIBOBJ.
15035
15036 2011-07-07  Eric Blake  <eblake@redhat.com>
15037
15038         getopt: more portable argv creation
15039         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
15040         const, use char arrays rather than strings.
15041         Suggested by Paul Eggert.
15042
15043 2011-07-07  Bruno Haible  <bruno@clisp.org>
15044
15045         Tests for module 'sigprocmask'.
15046         * modules/sigprocmask-tests: New file.
15047         * tests/test-sigprocmask.c: New file.
15048
15049 2011-07-07  Bruno Haible  <bruno@clisp.org>
15050
15051         float tests: Tweak.
15052         * tests/test-float.c (main): Tweak skip message.
15053
15054 2011-07-07  Eric Blake  <eblake@redhat.com>
15055
15056         getopt: avoid compiler warning during configure
15057         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
15058         assigning string literals to non-const pointer.
15059
15060         getopt-gnu: avoid crash in glibc getopt
15061         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
15062         * tests/test-getopt.h (test_getopt): Enhance test.
15063         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15064         * doc/posix-functions/getopt.texi (getopt): Document it.
15065         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15066         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15067         Likewise.
15068
15069 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15070
15071         getopt: handle W; without long options in getopt [BZ #12922]
15072         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
15073         but no long options are defined, just return 'W'.
15074
15075 2011-07-07  Bruno Haible  <bruno@clisp.org>
15076
15077         Avoid literal tabs.
15078         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
15079         variable containing a tab instead of a literal tab.
15080         Reported by Jim Meyering.
15081
15082 2011-07-07  Bruno Haible  <bruno@clisp.org>
15083
15084         Comments.
15085         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
15086
15087 2011-07-06  Bruno Haible  <bruno@clisp.org>
15088
15089         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
15090         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
15091         <winsock2.h>.
15092         (rpl_fd_isset, FD_ISSET): New definitions, copied from
15093         lib/sys_socket.in.h.
15094         (close, gethostname): Hide declarations from <winsock2.h>.
15095         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15096         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
15097         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
15098         (select): Don't override if gnulib's <sys/select.h> was already
15099         included.
15100         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15101         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15102         setsockopt, shutdown, select): Tweak indentation.
15103
15104 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15105
15106         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
15107         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
15108         in an application that does not use the sys_select module.
15109
15110 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
15111
15112         poll: do not return 0 on timeout=-1
15113         * lib/poll.c: Loop with yield if no events occured
15114
15115 2011-07-06  Eric Blake  <eblake@redhat.com>
15116
15117         pthread_sigmask: always replace when not using pthread
15118         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
15119         replacement when using some threading other than pthread.  Fix
15120         logic bug.
15121
15122 2011-07-06  Bruno Haible  <bruno@clisp.org>
15123
15124         Comments.
15125         * m4/printf.m4: Update comments about mingw.
15126
15127 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15128
15129         sys_select: define sigset_t more portably
15130         * lib/sys_select.in.h: Always include <sys/types.h>, since
15131         we now need sigset_t and mingw defines it there.
15132         Include <signal.h> before split inclusion guard, to avoid
15133         mishaps on Solaris, whose <signal.h> eventually includes us.
15134         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
15135         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
15136         which come from ...
15137         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15138         gl_CHECK_TYPE_SIGSET_T.
15139         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
15140         does the real work.
15141         * modules/sys_select (Depends-on): Add 'signal'.
15142
15143         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
15144         Suggested by Bruno Haible.
15145
15146         pselect: Use pthread_sigmask, not sigprocmask.
15147         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
15148         multithreaded apps better than sigprocmask does.
15149         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
15150         sigprocmask directly.
15151
15152 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15153
15154         * lib/pselect.c (pselect): Use plain name, without "rpl_".
15155         Don't #undef,  since we don't need any underlying pselect.
15156         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
15157         (Depends-on): Add select.
15158         (Link): Add $(LIBSOCKET).
15159         These changes suggested by Bruno Haible.
15160
15161         pselect: document better
15162         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15163         * doc/posix-functions/pselect.texi (pselect): Document new module.
15164
15165         pthread_sigmask: new module
15166         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15167         * doc/posix-functions/pthread_sigmask.texi: Document new module.
15168         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
15169         This is done only as a macro; I don't know how well that'll
15170         work for C++.  Move <sys/types.h> include before the include_next,
15171         to avoid mishap on Solaris.
15172         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
15173         * modules/signal (Makefile.am): Substitute the check's results.
15174         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
15175
15176         test-pselect: new module
15177         * modules/pselect-tests, tests/test-pselect.c: New files.
15178         * tests/test-select.c, tests/test-sys_select-c++.cc:
15179         If TEST_PSELECT is defined, test pselect instead of testing select.
15180
15181         * tests/test-sys_select.c (sigset_t): Test for it, too.
15182         Suggested by Bruno Haible.
15183
15184 2011-07-05  Eric Blake  <eblake@redhat.com>
15185
15186         snprintf: guarantee %1$d, for libintl
15187         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
15188         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
15189         * doc/posix-functions/snprintf.texi (snprintf): Update.
15190         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15191         * tests/test-snprintf.c (main): Enhance test.
15192         * tests/test-vsnprintf.c (main): Likewise.
15193
15194 2011-07-05  Jim Meyering  <meyering@redhat.com>
15195
15196         maint: exempt stdio-read.c and stdio-write.c from the cppi check
15197         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
15198         per Bruno's request, to accommodate this idiom (no space after "#")
15199         even when the function is inside an #if block:
15200         char *
15201         gets (char *s)
15202         #undef gets
15203         {
15204           ...
15205         }
15206
15207 2011-07-04  Jim Meyering  <meyering@redhat.com>
15208
15209         maint: indent with spaces, not TABs, and add a rule to check this
15210         * tests/test-userspec.c: Indent with spaces, not TABs.
15211         * tests/test-argp.c: Likewise.
15212         * tests/test-c-stack2.sh: Likewise.
15213         * tests/test-parse-duration.sh: Likewise
15214         * m4/strtod.m4: Likewise.
15215         * m4/alloca.m4: Likewise.
15216         * m4/pselect.m4: Likewise.
15217         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
15218
15219 2011-07-03  Jim Meyering  <meyering@redhat.com>
15220
15221         maint.mk: correct omissions in prohibit_argmatch_without_use check
15222         This rule would mistakenly report that argmatch.h is included without
15223         use even when both the argmatch and invalid_arg macro were used.
15224         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
15225         of argmatch and invalid_arg.
15226
15227 2011-07-03  Bruno Haible  <bruno@clisp.org>
15228
15229         Comments about EINTR.
15230         * lib/safe-read.h: Explain the purpose of this module.
15231         * lib/safe-write.h: Likewise.
15232         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
15233         module.
15234         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
15235         module.
15236         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15237
15238 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15239
15240         xnanosleep: Rewrite to use new dtotimespec module.
15241         It has the conversion code that used to be in xnanosleep.
15242         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
15243         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
15244         (TIME_T_MAX): Remove.
15245         (xnanosleep): Rewrite in terms of dtotimespec.
15246         * modules/xnanosleep (Depends-on): Add dtotimespec.
15247         Remove intprops, stdbool.
15248
15249         timespec-add, timespec-sub: new modules
15250         * lib/timespec.h (timespec_add, timespec_sub): New decls.
15251         * lib/timespec-add.c, lib/timespec-sub.c:
15252         * modules/timespec-add, modules/timespec-sub: New files.
15253
15254         dtotimespec: new module
15255         * lib/timespec.h (dtotimespec): New decl.
15256         * lib/dtotimespec.c, modules/dtotimespec: New files.
15257
15258         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
15259
15260         pselect: new module
15261         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
15262         (pselect): New decls.
15263         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
15264         since the standard pselect decl uses 'restrict'.
15265         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
15266         HAVE_PSELECT, REPLACE_PSELECT.
15267         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
15268         HAVE_PSELECT, REPLACE_PSELECT.
15269         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
15270
15271         sys_select: don't depend on sys_socket
15272         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
15273         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
15274         This fix works on GNU and GNU-like platforms, but has not been tested
15275         on native Windows.
15276         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
15277         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
15278         gl_HEADER_SYS_SOCKET.
15279         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
15280         gl_PREREQ_SYS_H_WINSOCK2.
15281
15282 2011-06-29  Eric Blake  <eblake@redhat.com>
15283
15284         pipe2: fix C89 compile problem
15285         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
15286         Reported by Bruno Haible.
15287
15288         pipe, pipe2: don't corrupt fd on error
15289         * lib/pipe.c (pipe): Leave fd unchanged on error.
15290         * lib/pipe2.c (pipe2): Likewise.
15291         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
15292         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15293
15294 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
15295
15296         mmap-anon: do not use regular expressions inadvertently
15297         * m4/mmap-anon.m4: Remove trailing period from strings sought
15298         in the output.
15299
15300 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
15301
15302         nanosleep: fix integer overflow problem
15303         * lib/nanosleep.c (my_usleep): Don't assume signed integer
15304         arithmetic wraps around on overflow.
15305
15306         nanosleep: simplify carrying
15307         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
15308         first call to the underyling nanosleep, not for the last one.
15309         This doesn't fix any bugs, but it simplifies the computation of
15310         the remaining delay.  Found while auditing integer overflow issues.
15311
15312         dup2: remove test for existence of fcntl
15313         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
15314         "#if HAVE_FCNTL", in the configure-time test program.
15315         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
15316         and therefore speeds up "configure" a bit.  Found while
15317         adding the dup2 module to Emacs.
15318
15319 2011-06-24  Eric Blake  <eblake@redhat.com>
15320
15321         maint.mk: enhance useless header checks
15322         * top/maint.mk (_sc_header_without_use): Check both include
15323         styles.
15324         (sc_prohibit_assert_without_use)
15325         (sc_prohibit_close_stream_without_use)
15326         (sc_prohibit_getopt_without_use)
15327         (sc_prohibit_quotearg_without_use)
15328         (sc_prohibit_quote_without_use)
15329         (sc_prohibit_long_options_without_use)
15330         (sc_prohibit_inttostr_without_use)
15331         (sc_prohibit_ignore_value_without_use)
15332         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
15333         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
15334         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
15335         (sc_prohibit_hash_pjw_without_use)
15336         (sc_prohibit_safe_read_without_use)
15337         (sc_prohibit_argmatch_without_use)
15338         (sc_prohibit_canonicalize_without_use)
15339         (sc_prohibit_root_dev_ino_without_use)
15340         (sc_prohibit_openat_without_use)
15341         (sc_prohibit_c_ctype_without_use)
15342         (sc_prohibit_signal_without_use)
15343         (sc_prohibit_stdio--_without_use)
15344         (sc_prohibit_stdio-safer_without_use)
15345         (sc_prohibit_strings_without_use)
15346         (sc_prohibit_intprops_without_use)
15347         (sc_prohibit_stddef_without_use)
15348         (sc_prohibit_xfreopen_without_use): Update clients.
15349
15350 2011-06-24  Jim Meyering  <meyering@redhat.com>
15351
15352         syntax-check: keep one maint.mk rule in sync with its header
15353         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
15354         of the bug Eric has just fixed, with today's commit 25e4c2ec.
15355         I prefer to avoid temporary files here, so use <(...), but that
15356         is not supported by /bin/sh, so...
15357         (SHELL): Define to /bin/bash.
15358
15359 2011-06-24  Eric Blake  <eblake@redhat.com>
15360
15361         maint.mk: update sc_prohibit_intprops_without_use
15362         * top/maint.mk (_intprops_names): Match recent changes.
15363
15364 2011-06-24  Bruno Haible  <bruno@clisp.org>
15365
15366         strerror-override: No-op tweak.
15367         * lib/strerror-override.h (strerror_override): Reorder conditions,
15368         for consistency with lib/strerror-override.c.
15369
15370 2011-06-23  Eric Blake  <eblake@redhat.com>
15371
15372         maint.mk: test further PATH_MAX issues
15373         * top/maint.mk (sc_prohibit_path_max_array): Rename...
15374         (sc_prohibit_path_max_allocation): ...and also test alloca.
15375         Suggested by Jim Meyering.
15376
15377 2011-06-22  Eric Blake  <eblake@redhat.com>
15378
15379         maint.mk: add syntax-check to avoid char[PATH_MAX]
15380         * top/maint.mk (sc_prohibit_path_max_array): New rule.
15381
15382         stat: be robust to PATH_MAX definition
15383         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
15384         * modules/stat (Depends-on): Add verify.
15385
15386         link: work around IRIX bug
15387         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
15388         * lib/link.c (rpl_link): Work around it.
15389         * tests/test-link.h (test_link): Enhance test.
15390         * doc/posix-functions/link.texi (link): Document the bug.
15391
15392         getopt: silence clang warning
15393         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
15394         dereference.
15395         Reported by Gustavo Martin Domato.
15396
15397 2011-06-22  Jim Meyering  <meyering@redhat.com>
15398
15399         bootstrap: do not insert a blank line into each .gitignore file
15400         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
15401
15402 2011-06-21  Eric Blake  <eblake@redhat.com>
15403
15404         perror: test for output mismatch
15405         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
15406         perror on IRIX.
15407
15408         strerror_r: fix OpenBSD behavior on out-of-range
15409         * lib/strerror_r.c (strerror_r): Always use maximal string.
15410         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15411
15412         strerror_r: fix OpenBSD behavior on 0
15413         * lib/strerror-override.c (strerror_override): Also override 0
15414         when needed.
15415         * lib/strerror-override.h (strerror_override): Likewise.
15416         * lib/strerror.c (strerror): Simplify, now that 0 override is done
15417         earlier.
15418         * lib/strerror_r.c (strerror_r): Likewise.
15419         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
15420         behavior...
15421         (gl_FUNC_STRERROR_0): ...into new macro.
15422         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
15423         is overridden.
15424         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
15425         * modules/strerror-override (Files): Add strerror.m4.
15426         (configure.ac): Also provide override for 0 when needed.
15427         * doc/posix-functions/strerror.texi (strerror): Document this.
15428         * doc/posix-functions/perror.texi (perror): Likewise.
15429
15430         perror: adjust array size
15431         * modules/perror (Depends-on): Add strerror-override.
15432         * lib/perror.c (perror): Use it to avoid magic number.
15433
15434         strerror-override: reduce size
15435         * lib/strerror-override.c (strerror_override): Use fewer lines.
15436
15437 2011-06-20  Bruno Haible  <bruno@clisp.org>
15438
15439         pathmax: Ensure correct value for PATH_MAX on HP-UX.
15440         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
15441
15442 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
15443
15444         alloca: port to compilers that can optimize like GCC 4.6.0
15445         * lib/alloca.c (find_stack_direction): New signature, taken from
15446         Autoconf git.  This works with GCC 4.6.0.  This code should never
15447         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
15448         be used with other compilers that optimize as well as GCC 4.6.0 does.
15449         (alloca): Adjust to new signature.
15450         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
15451         New macro, which patches Autoconf in a similar way.
15452
15453         c-stack: stop worrying about stack direction
15454         * lib/c-stack.c (find_stack_direction): Remove.
15455         (segv_handler): Don't worry about stack direction growth, as it's
15456         too much of a pain to configure this correctly, given how compilers
15457         are optimizing-away our stack-growth detection code.  Instead, assume
15458         that any access to just before or just after the stack is OK.
15459         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
15460         Don't require AC_FUNC_ALLOCA; no longer needed.
15461
15462 2011-06-20  Eric Blake  <eblake@redhat.com>
15463
15464         test-stat: don't allocate PATH_MAX bytes
15465         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
15466         PATH_MAX-sized buffer.
15467         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
15468         * modules/stat-tests (Depends-on): Likewise.
15469         * tests/test-fstatat.c (includes): Drop pathmax.h.
15470         * tests/test-stat.c (includes): Likewise.
15471         Reported by Bruno Haible.
15472
15473 2011-06-20  Bruno Haible  <bruno@clisp.org>
15474
15475         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
15476         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
15477         * lib/float.c: New file.
15478         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
15479         REPLACE_FLOAT_LDBL.
15480         * modules/float (Files): Add lib/float.c.
15481         (configure.ac): Invoke AC_LIBOBJ.
15482         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
15483
15484 2011-06-20  Bruno Haible  <bruno@clisp.org>
15485
15486         Tests for module 'float'.
15487         * modules/float-tests: New file.
15488         * tests/test-float.c: New file.
15489
15490 2011-06-19  Bruno Haible  <bruno@clisp.org>
15491
15492         isinf: Coding style.
15493         * lib/isinf.c: Use GNU coding style.
15494
15495 2011-06-19  Bruno Haible  <bruno@clisp.org>
15496
15497         linkat test: Avoid test failure on AIX 7.1.
15498         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
15499         * tests/test-link.h (test_link): Likewise.
15500
15501 2011-06-19  Bruno Haible  <bruno@clisp.org>
15502
15503         pread test: Avoid test failure on OpenBSD 4.9.
15504         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
15505
15506 2011-06-19  Bruno Haible  <bruno@clisp.org>
15507
15508         sprintf-posix: Fix test failure on AIX 7.1.
15509         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
15510         * doc/posix-functions/dprintf.texi: Mention limited precision problem
15511         on AIX.
15512         * doc/posix-functions/fprintf.texi: Likewise.
15513         * doc/posix-functions/printf.texi: Likewise.
15514         * doc/posix-functions/snprintf.texi: Likewise.
15515         * doc/posix-functions/sprintf.texi: Likewise.
15516         * doc/posix-functions/vdprintf.texi: Likewise.
15517         * doc/posix-functions/vfprintf.texi: Likewise.
15518         * doc/posix-functions/vprintf.texi: Likewise.
15519         * doc/posix-functions/vsnprintf.texi: Likewise.
15520         * doc/posix-functions/vsprintf.texi: Likewise.
15521
15522 2011-06-19  Bruno Haible  <bruno@clisp.org>
15523
15524         roundl-ieee: Fix test failure on AIX 7.1.
15525         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
15526         * doc/posix-functions/roundl.texi: Mention problem with negative
15527         arguments.
15528
15529 2011-06-19  Bruno Haible  <bruno@clisp.org>
15530
15531         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15532         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
15533         * doc/posix-functions/round.texi: Mention problem with negative
15534         arguments.
15535         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
15536
15537 2011-06-19  Bruno Haible  <bruno@clisp.org>
15538
15539         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15540         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
15541         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
15542         * doc/posix-functions/roundf.texi: Mention problem with negative
15543         arguments.
15544         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
15545
15546 2011-06-19  Bruno Haible  <bruno@clisp.org>
15547
15548         ceilf-ieee: Work around bug on MacOS X 10.5.
15549         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
15550
15551         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
15552         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
15553         IEEE compliant, avoid compiler optimizations.
15554         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15555         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15556         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15557         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15558         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15559         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15560         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15561         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15562         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15563         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15564
15565 2011-06-19  Bruno Haible  <bruno@clisp.org>
15566
15567         ceilf-ieee: Work around bug on AIX 7.1.
15568         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
15569         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
15570
15571 2011-06-19  Bruno Haible  <bruno@clisp.org>
15572
15573         ceil-ieee: Work around bug on AIX 7.1.
15574         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
15575         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
15576
15577 2011-06-18  Bruno Haible  <bruno@clisp.org>
15578
15579         fsync test: Avoid test failure on MacOS X and AIX.
15580         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
15581         EINVAL.
15582
15583 2011-06-18  Bruno Haible  <bruno@clisp.org>
15584
15585         openat, fdopendir tests: Fix link errors.
15586         * modules/openat-tests (Depends-on): Add progname.
15587         * modules/fdopendir-tests (Depends-on): Likewise.
15588         * tests/test-fchownat.c: Include progname.h.
15589         (main): Call set_program_name.
15590         * tests/test-fstatat.c: Include progname.h.
15591         (main): Call set_program_name.
15592         * tests/test-mkdirat.c: Include progname.h.
15593         (main): Call set_program_name.
15594         * tests/test-openat.c: Include progname.h.
15595         (main): Call set_program_name.
15596         * tests/test-unlinkat.c: Include progname.h.
15597         (main): Call set_program_name.
15598         * tests/test-fdopendir.c: Include progname.h.
15599         (main): Call set_program_name.
15600
15601 2011-06-18  Bruno Haible  <bruno@clisp.org>
15602
15603         Doc update.
15604         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
15605         HP-UX.
15606         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
15607
15608 2011-06-18  Bruno Haible  <bruno@clisp.org>
15609
15610         getcwd tests: Avoid compilation error on HP-UX 11.31.
15611         * modules/getcwd-tests (Depends-on): Add pathmax.
15612         * tests/test-getcwd.c: Include pathmax.h.
15613
15614 2011-06-18  Bruno Haible  <bruno@clisp.org>
15615
15616         isfinite, isinf: Fix link error on AIX 6 and 7.
15617         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
15618         needed, also test the macro with a 'float' argument.
15619         * m4/isinf.m4 (gl_ISINF): Likewise.
15620
15621 2011-06-18  Bruno Haible  <bruno@clisp.org>
15622
15623         getloadavg: Don't clobber LIBS. Regression from previous commit.
15624         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
15625         AC_CHECK_LIB from here...
15626         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
15627         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
15628         gl_func_getloadavg_done.
15629         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15630
15631 2011-06-18  Bruno Haible  <bruno@clisp.org>
15632
15633         clean-temp: Improve documentation.
15634         * lib/clean-temp.h: Explain better how to use this module.
15635         Reported by John Darrington <john@darrington.wattle.id.au>.
15636
15637 2011-06-17  Bruno Haible  <bruno@clisp.org>
15638
15639         pread, pwrite: Avoid cc warning on AIX.
15640         * lib/unistd.in.h (pread): Undefine before defining as a macro.
15641         (pwrite): Likewise.
15642
15643 2011-06-17  Bruno Haible  <bruno@clisp.org>
15644
15645         spawn-pipe tests: Fix link error.
15646         * tests/test-spawn-pipe-child.c: Undefine fprintf.
15647         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15648
15649 2011-06-17  Bruno Haible  <bruno@clisp.org>
15650
15651         Tests: Remove unnecessary dependency.
15652         * modules/canonicalize-tests (Depends-on): Remove progname.
15653         * modules/chown-tests (Depends-on): Likewise.
15654         * modules/dirname-tests (Depends-on): Likewise.
15655         * modules/fdopendir-tests (Depends-on): Likewise.
15656         * modules/fdutimensat-tests (Depends-on): Likewise.
15657         * modules/hash-tests (Depends-on): Likewise.
15658         * modules/lchown-tests (Depends-on): Likewise.
15659         * modules/linkat-tests (Depends-on): Likewise.
15660         * modules/renameat-tests (Depends-on): Likewise.
15661         * modules/spawn-pipe-tests (Depends-on): Likewise.
15662         * modules/utimensat-tests (Depends-on): Likewise.
15663
15664 2011-06-17  Bruno Haible  <bruno@clisp.org>
15665
15666         spawn-pipe tests: Fix link error.
15667         * tests/test-spawn-pipe-child.c: Undefine fflush.
15668
15669 2011-06-17  Bruno Haible  <bruno@clisp.org>
15670
15671         Fix tests link errors.
15672         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
15673         * modules/chown-tests (Makefile.am): Don't link test-chown with
15674         LIBINTL.
15675         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
15676         LIBINTL.
15677         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
15678         LIBINTL.
15679         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
15680         LIBINTL.
15681
15682 2011-06-16  Bruno Haible  <bruno@clisp.org>
15683
15684         crypto/gc-sha1: Fix recent regression.
15685         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
15686         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
15687
15688         crypto/gc-md5: Fix recent regression.
15689         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
15690
15691         crypto/gc-md4: Fix recent regression.
15692         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
15693         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
15694
15695         crypto/gc-arctwo: Fix recent regression.
15696         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
15697         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
15698
15699         crypto/gc-rijndael: Fix recent regression.
15700         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
15701         (configure.ac): Invoke AC_LIBOBJ here.
15702         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
15703         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15704
15705         crypto/gc-hmac-sha1: Fix recent regression.
15706         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
15707         (configure.ac): Invoke AC_LIBOBJ here.
15708         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
15709         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15710
15711         crypto/gc-hmac-md5: Fix recent regression.
15712         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
15713         (configure.ac): Invoke AC_LIBOBJ here.
15714         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
15715         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15716
15717         crypto/gc-des: Fix recent regression.
15718         * modules/crypto/gc-des (Files): Remove m4/des.m4.
15719         (configure.ac): Invoke AC_LIBOBJ here.
15720         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
15721         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15722
15723         crypto/gc-arcfour: Fix recent regression.
15724         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
15725         (configure.ac): Invoke AC_LIBOBJ here.
15726         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
15727         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15728
15729 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
15730
15731         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
15732         After the 2011-05-21 change, this macro requires
15733         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
15734         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15735
15736 2011-06-16  Bruno Haible  <bruno@clisp.org>
15737
15738         fprintftime: Move AC_LIBOBJ invocations to module description.
15739         * m4/fprintftime.m4: Remove file.
15740         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
15741         (configure.ac): Remove gl_FPRINTFTIME call.
15742         (Makefile.am): Augment lib_SOURCES.
15743         Reported by Jim Meyering.
15744
15745 2011-06-16  Bruno Haible  <bruno@clisp.org>
15746
15747         tmpfile-safer: Finish 2011-05-23 commit.
15748         * m4/stdio-safer.m4: Really remove file.
15749         Reported by Jim Meyering.
15750
15751 2011-06-16  Bruno Haible  <bruno@clisp.org>
15752
15753         syntax-check: Fix typo.
15754         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
15755         printf-posix.m4.
15756         Reported by Jim Meyering.
15757
15758 2011-06-13  Jim Meyering  <meyering@redhat.com>
15759
15760         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
15761         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
15762
15763 2011-05-23  Bruno Haible  <bruno@clisp.org>
15764
15765         yesno: Move AC_LIBOBJ invocations to module description.
15766         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
15767         * modules/yesno (Makefile.am): Augment lib_SOURCES.
15768
15769 2011-05-23  Bruno Haible  <bruno@clisp.org>
15770
15771         xstrtol: Move AC_LIBOBJ invocations to module description.
15772         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
15773         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
15774
15775 2011-05-23  Bruno Haible  <bruno@clisp.org>
15776
15777         xstrtold: Move AC_LIBOBJ invocations to module description.
15778         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
15779         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
15780
15781 2011-05-23  Bruno Haible  <bruno@clisp.org>
15782
15783         xstrtod: Move AC_LIBOBJ invocations to module description.
15784         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
15785         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
15786
15787 2011-05-23  Bruno Haible  <bruno@clisp.org>
15788
15789         xnanosleep: Move AC_LIBOBJ invocations to module description.
15790         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
15791         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
15792
15793 2011-05-23  Bruno Haible  <bruno@clisp.org>
15794
15795         xgetcwd: Move AC_LIBOBJ invocations to module description.
15796         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
15797         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
15798
15799 2011-05-23  Bruno Haible  <bruno@clisp.org>
15800
15801         xalloc: Move AC_LIBOBJ invocations to module description.
15802         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
15803         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
15804
15805 2011-05-23  Bruno Haible  <bruno@clisp.org>
15806
15807         write-any-file: Move AC_LIBOBJ invocations to module description.
15808         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
15809         invocation.
15810         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
15811
15812 2011-05-23  Bruno Haible  <bruno@clisp.org>
15813
15814         utimens: Move AC_LIBOBJ invocations to module description.
15815         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
15816         * modules/utimens (Makefile.am): Augment lib_SOURCES.
15817
15818 2011-05-23  Bruno Haible  <bruno@clisp.org>
15819
15820         utimecmp: Move AC_LIBOBJ invocations to module description.
15821         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
15822         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
15823
15824 2011-05-23  Bruno Haible  <bruno@clisp.org>
15825
15826         userspec: Move AC_LIBOBJ invocations to module description.
15827         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
15828         * modules/userspec (Makefile.am): Augment lib_SOURCES.
15829
15830 2011-05-23  Bruno Haible  <bruno@clisp.org>
15831
15832         unlinkdir: Move AC_LIBOBJ invocations to module description.
15833         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
15834         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
15835
15836 2011-05-23  Bruno Haible  <bruno@clisp.org>
15837
15838         unistd-safer: Move AC_LIBOBJ invocations to module description.
15839         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
15840         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
15841
15842 2011-05-23  Bruno Haible  <bruno@clisp.org>
15843
15844         tempname: Move AC_LIBOBJ invocations to module description.
15845         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
15846         * modules/tempname (Makefile.am): Augment lib_SOURCES.
15847
15848 2011-05-23  Bruno Haible  <bruno@clisp.org>
15849
15850         strftime: Move AC_LIBOBJ invocations to module description.
15851         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
15852         * modules/strftime (Makefile.am): Augment lib_SOURCES.
15853
15854 2011-05-23  Bruno Haible  <bruno@clisp.org>
15855
15856         stdlib-safer: Move AC_LIBOBJ invocations to module description.
15857         * m4/stdlib-safer.m4: Remove file.
15858         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
15859         (configure.ac): Remove gl_STDLIB_SAFER call.
15860         (Makefile.am): Augment lib_SOURCES.
15861
15862 2011-05-23  Bruno Haible  <bruno@clisp.org>
15863
15864         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
15865         * m4/stdio-safer.m4: Remove file.
15866         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
15867         (configure.ac): Remove gl_TMPFILE_SAFER call.
15868         (Makefile.am): Augment lib_SOURCES.
15869
15870 2011-05-23  Bruno Haible  <bruno@clisp.org>
15871
15872         popen-safer: Move AC_LIBOBJ invocations to module description.
15873         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
15874         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
15875         (configure.ac): Remove gl_POPEN_SAFER call.
15876         (Makefile.am): Augment lib_SOURCES.
15877
15878 2011-05-23  Bruno Haible  <bruno@clisp.org>
15879
15880         freopen-safer: Move AC_LIBOBJ invocations to module description.
15881         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
15882         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
15883         (configure.ac): Remove gl_FREOPEN_SAFER call.
15884         (Makefile.am): Augment lib_SOURCES.
15885
15886 2011-05-23  Bruno Haible  <bruno@clisp.org>
15887
15888         fopen-safer: Move AC_LIBOBJ invocations to module description.
15889         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
15890         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
15891         (configure.ac): Remove gl_FOPEN_SAFER call.
15892         (Makefile.am): Augment lib_SOURCES.
15893
15894 2011-05-23  Bruno Haible  <bruno@clisp.org>
15895
15896         crypto/sha512: Move AC_LIBOBJ invocations to module description.
15897         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
15898         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
15899
15900 2011-05-23  Bruno Haible  <bruno@clisp.org>
15901
15902         crypto/sha256: Move AC_LIBOBJ invocations to module description.
15903         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
15904         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
15905
15906 2011-05-23  Bruno Haible  <bruno@clisp.org>
15907
15908         crypto/sha1: Move AC_LIBOBJ invocations to module description.
15909         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
15910         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
15911
15912 2011-05-23  Bruno Haible  <bruno@clisp.org>
15913
15914         settime: Move AC_LIBOBJ invocations to module description.
15915         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
15916         * modules/settime (Makefile.am): Augment lib_SOURCES.
15917
15918 2011-05-23  Bruno Haible  <bruno@clisp.org>
15919
15920         savedir: Move AC_LIBOBJ invocations to module description.
15921         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
15922         * modules/savedir (Makefile.am): Augment lib_SOURCES.
15923
15924 2011-05-23  Bruno Haible  <bruno@clisp.org>
15925
15926         save-cwd: Move AC_LIBOBJ invocations to module description.
15927         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
15928         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
15929
15930 2011-05-23  Bruno Haible  <bruno@clisp.org>
15931
15932         same: Move AC_LIBOBJ invocations to module description.
15933         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
15934         * modules/same (Makefile.am): Augment lib_SOURCES.
15935
15936 2011-05-23  Bruno Haible  <bruno@clisp.org>
15937
15938         safe-write: Move AC_LIBOBJ invocations to module description.
15939         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
15940         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
15941         instead of gl_SAFE_WRITE.
15942         (Makefile.am): Augment lib_SOURCES.
15943
15944 2011-05-23  Bruno Haible  <bruno@clisp.org>
15945
15946         safe-read: Move AC_LIBOBJ invocations to module description.
15947         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
15948         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
15949         of gl_SAFE_READ.
15950         (Makefile.am): Augment lib_SOURCES.
15951
15952 2011-05-23  Bruno Haible  <bruno@clisp.org>
15953
15954         safe-alloc: Move AC_LIBOBJ invocations to module description.
15955         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
15956         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
15957
15958 2011-05-23  Bruno Haible  <bruno@clisp.org>
15959
15960         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
15961         * m4/rijndael.m4: Remove file.
15962         * modules/crypto/rijndael (Files): Remove it.
15963         (configure.ac): Remove gl_RIJNDAEL call.
15964         (Makefile.am): Augment lib_SOURCES.
15965
15966 2011-05-23  Bruno Haible  <bruno@clisp.org>
15967
15968         readtokens: Move AC_LIBOBJ invocations to module description.
15969         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
15970         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
15971
15972 2011-05-23  Bruno Haible  <bruno@clisp.org>
15973
15974         read-file: Move AC_LIBOBJ invocations to module description.
15975         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
15976         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
15977         of gl_FUNC_READ_FILE.
15978         (Makefile.am): Augment lib_SOURCES.
15979
15980 2011-05-23  Bruno Haible  <bruno@clisp.org>
15981
15982         quotearg: Move AC_LIBOBJ invocations to module description.
15983         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
15984         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
15985
15986 2011-05-23  Bruno Haible  <bruno@clisp.org>
15987
15988         quote: Move AC_LIBOBJ invocations to module description.
15989         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
15990         * modules/quote (Makefile.am): Augment lib_SOURCES.
15991
15992 2011-05-23  Bruno Haible  <bruno@clisp.org>
15993
15994         posixver: Move AC_LIBOBJ invocations to module description.
15995         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
15996         * modules/posixver (Makefile.am): Augment lib_SOURCES.
15997
15998 2011-05-23  Bruno Haible  <bruno@clisp.org>
15999
16000         posixtm: Move AC_LIBOBJ invocations to module description.
16001         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
16002         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
16003
16004 2011-05-23  Bruno Haible  <bruno@clisp.org>
16005
16006         physmem: Move AC_LIBOBJ invocations to module description.
16007         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
16008         * modules/physmem (Makefile.am): Augment lib_SOURCES.
16009
16010 2011-05-23  Bruno Haible  <bruno@clisp.org>
16011
16012         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
16013         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
16014         invocation.
16015         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
16016
16017 2011-05-23  Bruno Haible  <bruno@clisp.org>
16018
16019         mpsort: Move AC_LIBOBJ invocations to module description.
16020         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
16021         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
16022
16023 2011-05-23  Bruno Haible  <bruno@clisp.org>
16024
16025         modechange: Move AC_LIBOBJ invocations to module description.
16026         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
16027         * modules/modechange (Makefile.am): Augment lib_SOURCES.
16028
16029 2011-05-23  Bruno Haible  <bruno@clisp.org>
16030
16031         mkdir-p: Move AC_LIBOBJ invocations to module description.
16032         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
16033         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
16034
16035 2011-05-23  Bruno Haible  <bruno@clisp.org>
16036
16037         mkancesdirs: Move AC_LIBOBJ invocations to module description.
16038         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
16039         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
16040
16041 2011-05-23  Bruno Haible  <bruno@clisp.org>
16042
16043         mgetgroups: Move AC_LIBOBJ invocations to module description.
16044         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
16045         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
16046
16047 2011-05-23  Bruno Haible  <bruno@clisp.org>
16048
16049         memxor: Move AC_LIBOBJ invocations to module description.
16050         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
16051         * modules/memxor (Makefile.am): Augment lib_SOURCES.
16052
16053 2011-05-23  Bruno Haible  <bruno@clisp.org>
16054
16055         memcoll: Move AC_LIBOBJ invocations to module description.
16056         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
16057         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
16058
16059 2011-05-23  Bruno Haible  <bruno@clisp.org>
16060
16061         memcasecmp: Move AC_LIBOBJ invocations to module description.
16062         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
16063         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
16064
16065 2011-05-23  Bruno Haible  <bruno@clisp.org>
16066
16067         crypto/md5: Move AC_LIBOBJ invocations to module description.
16068         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
16069         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
16070
16071 2011-05-23  Bruno Haible  <bruno@clisp.org>
16072
16073         crypto/md4: Move AC_LIBOBJ invocations to module description.
16074         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
16075         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
16076
16077 2011-05-23  Bruno Haible  <bruno@clisp.org>
16078
16079         crypto/md2: Move AC_LIBOBJ invocations to module description.
16080         * m4/md2.m4: Remove file.
16081         * modules/crypto/md2 (Files): Remove it.
16082         (configure.ac): Remove gl_MD2 call.
16083         (Makefile.am): Augment lib_SOURCES.
16084
16085 2011-05-23  Bruno Haible  <bruno@clisp.org>
16086
16087         long-options: Move AC_LIBOBJ invocations to module description.
16088         * m4/long-options.m4: Remove file.
16089         * modules/long-options (Files): Remove it.
16090         (configure.ac): Remove gl_LONG_OPTIONS call.
16091         (Makefile.am): Augment lib_SOURCES.
16092
16093 2011-05-23  Bruno Haible  <bruno@clisp.org>
16094
16095         i-ring: Move AC_LIBOBJ invocations to module description.
16096         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
16097         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
16098
16099 2011-05-23  Bruno Haible  <bruno@clisp.org>
16100
16101         idcache: Move AC_LIBOBJ invocations to module description.
16102         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
16103         * modules/idcache (Makefile.am): Augment lib_SOURCES.
16104
16105 2011-05-23  Bruno Haible  <bruno@clisp.org>
16106
16107         human: Move AC_LIBOBJ invocations to module description.
16108         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
16109         * modules/human (Makefile.am): Augment lib_SOURCES.
16110
16111 2011-05-23  Bruno Haible  <bruno@clisp.org>
16112
16113         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
16114         * m4/hmac-sha1.m4: Remove file.
16115         * modules/crypto/hmac-sha1 (Files): Remove it.
16116         (configure.ac): Remove gl_HMAC_SHA1 call.
16117         (Makefile.am): Augment lib_SOURCES.
16118
16119 2011-05-23  Bruno Haible  <bruno@clisp.org>
16120
16121         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
16122         * m4/hmac-md5.m4: Remove file.
16123         * modules/crypto/hmac-md5 (Files): Remove it.
16124         (configure.ac): Remove gl_HMAC_MD5 call.
16125         (Makefile.am): Augment lib_SOURCES.
16126
16127 2011-05-23  Bruno Haible  <bruno@clisp.org>
16128
16129         hash: Move AC_LIBOBJ invocations to module description.
16130         * m4/hash.m4: Remove file.
16131         * modules/hash (Files): Remove it.
16132         (configure.ac): Remove gl_HASH call.
16133         (Makefile.am): Augment lib_SOURCES.
16134
16135 2011-05-23  Bruno Haible  <bruno@clisp.org>
16136
16137         hard-locale: Move AC_LIBOBJ invocations to module description.
16138         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
16139         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
16140
16141 2011-05-23  Bruno Haible  <bruno@clisp.org>
16142
16143         getugroups: Move AC_LIBOBJ invocations to module description.
16144         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
16145         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
16146
16147 2011-05-23  Bruno Haible  <bruno@clisp.org>
16148
16149         gettime: Move AC_LIBOBJ invocations to module description.
16150         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
16151         * modules/gettime (Makefile.am): Augment lib_SOURCES.
16152
16153 2011-05-23  Bruno Haible  <bruno@clisp.org>
16154
16155         getndelim2: Move AC_LIBOBJ invocations to module description.
16156         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
16157         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
16158
16159 2011-05-23  Bruno Haible  <bruno@clisp.org>
16160
16161         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
16162         * m4/gc-pbkdf2-sha1.m4: Remove file.
16163         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
16164         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
16165         (Makefile.am): Augment lib_SOURCES.
16166
16167 2011-05-23  Bruno Haible  <bruno@clisp.org>
16168
16169         fts: Move AC_LIBOBJ invocations to module description.
16170         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
16171         * modules/fts (configure.ac): ... to here.
16172
16173 2011-05-23  Bruno Haible  <bruno@clisp.org>
16174
16175         file-type: Move AC_LIBOBJ invocations to module description.
16176         * m4/file-type.m4: Remove file.
16177         * modules/file-type (Files): Remove it.
16178         (configure.ac): Remove gl_FILE_TYPE call.
16179         (Makefile.am): Augment lib_SOURCES.
16180
16181 2011-05-23  Bruno Haible  <bruno@clisp.org>
16182
16183         filenamecat*: Respect rules for use of AC_LIBOBJ.
16184         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
16185         Remove AC_LIBOBJ invocation.
16186         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
16187         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
16188
16189 2011-05-23  Bruno Haible  <bruno@clisp.org>
16190
16191         filemode: Move AC_LIBOBJ invocations to module description.
16192         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
16193         * modules/filemode (Makefile.am): Augment lib_SOURCES.
16194
16195 2011-05-23  Bruno Haible  <bruno@clisp.org>
16196
16197         openat-safer: Move AC_LIBOBJ invocations to module description.
16198         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
16199         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
16200
16201 2011-05-23  Bruno Haible  <bruno@clisp.org>
16202
16203         fcntl-safer: Move AC_LIBOBJ invocations to module description.
16204         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
16205         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
16206
16207 2011-05-23  Bruno Haible  <bruno@clisp.org>
16208
16209         exclude: Move AC_LIBOBJ invocations to module description.
16210         * m4/exclude.m4: Remove file.
16211         * modules/exclude (Files): Remove it.
16212         (configure.ac): Remove gl_EXCLUDE call.
16213         (Makefile.am): Augment lib_SOURCES.
16214
16215 2011-05-23  Bruno Haible  <bruno@clisp.org>
16216
16217         dirname*: Respect rules for use of AC_LIBOBJ.
16218         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
16219         invocations.
16220         * modules/dirname (Makefile.am): Augment lib_SOURCES.
16221         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
16222
16223 2011-05-23  Bruno Haible  <bruno@clisp.org>
16224
16225         dirent-safer: Move AC_LIBOBJ invocations to module description.
16226         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
16227         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
16228
16229 2011-05-23  Bruno Haible  <bruno@clisp.org>
16230
16231         crypto/des: Move AC_LIBOBJ invocations to module description.
16232         * m4/des.m4: Remove file.
16233         * modules/crypto/des (Files): Remove it.
16234         (configure.ac): Remove gl_DES call.
16235         (Makefile.am): Augment lib_SOURCES.
16236
16237 2011-05-23  Bruno Haible  <bruno@clisp.org>
16238
16239         cycle-check: Move AC_LIBOBJ invocations to module description.
16240         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
16241         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
16242
16243 2011-05-23  Bruno Haible  <bruno@clisp.org>
16244
16245         c-strtold: Move AC_LIBOBJ invocations to module description.
16246         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
16247         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
16248
16249 2011-05-23  Bruno Haible  <bruno@clisp.org>
16250
16251         c-strtod: Move AC_LIBOBJ invocations to module description.
16252         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
16253         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
16254
16255 2011-05-23  Bruno Haible  <bruno@clisp.org>
16256
16257         crc: Move AC_LIBOBJ invocations to module description.
16258         * m4/crc.m4: Remove file.
16259         * modules/crc (Files): Remove it.
16260         (configure.ac): Remove gl_CRC call.
16261         (Makefile.am): Augment lib_SOURCES.
16262
16263 2011-05-23  Bruno Haible  <bruno@clisp.org>
16264
16265         close-stream: Move AC_LIBOBJ invocations to module description.
16266         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
16267         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
16268
16269 2011-05-23  Bruno Haible  <bruno@clisp.org>
16270
16271         closeout: Move AC_LIBOBJ invocations to module description.
16272         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
16273         * modules/closeout (Makefile.am): Augment lib_SOURCES.
16274
16275 2011-05-23  Bruno Haible  <bruno@clisp.org>
16276
16277         closein: Move AC_LIBOBJ invocations to module description.
16278         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
16279         * modules/closein (Makefile.am): Augment lib_SOURCES.
16280
16281 2011-05-23  Bruno Haible  <bruno@clisp.org>
16282
16283         cloexec: Move AC_LIBOBJ invocations to module description.
16284         * m4/cloexec.m4: Remove file.
16285         * modules/cloexec (Files): Remove it.
16286         (configure.ac): Remove gl_CLOEXEC call.
16287         (Makefile.am): Augment lib_SOURCES.
16288
16289 2011-05-23  Bruno Haible  <bruno@clisp.org>
16290
16291         check-version: Move AC_LIBOBJ invocations to module description.
16292         * m4/check-version.m4: Remove file.
16293         * modules/check-version (Files): Remove it.
16294         (configure.ac): Remove gl_CHECK_VERSION call.
16295         (Makefile.am): Augment lib_SOURCES.
16296
16297 2011-05-23  Bruno Haible  <bruno@clisp.org>
16298
16299         chdir-safer: Move AC_LIBOBJ invocations to module description.
16300         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
16301         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
16302
16303 2011-05-23  Bruno Haible  <bruno@clisp.org>
16304
16305         canonicalize: Move AC_LIBOBJ invocations to module description.
16306         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
16307         AC_LIBOBJ invocation.
16308         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
16309
16310 2011-05-23  Bruno Haible  <bruno@clisp.org>
16311
16312         canon-host: Move AC_LIBOBJ invocations to module description.
16313         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
16314         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
16315         instead of gl_CANON_HOST.
16316         (Makefile.am): Augment lib_SOURCES.
16317
16318 2011-05-23  Bruno Haible  <bruno@clisp.org>
16319
16320         backupfile: Move AC_LIBOBJ invocations to module description.
16321         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
16322         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
16323
16324 2011-05-23  Bruno Haible  <bruno@clisp.org>
16325
16326         argmatch: Move AC_LIBOBJ invocations to module description.
16327         * m4/argmatch.m4: Remove file.
16328         * modules/argmatch (Files): Remove it.
16329         (configure.ac): Remove gl_ARGMATCH call.
16330         (Makefile.am): Augment lib_SOURCES.
16331
16332 2011-05-23  Bruno Haible  <bruno@clisp.org>
16333
16334         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
16335         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
16336         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
16337
16338 2011-05-23  Bruno Haible  <bruno@clisp.org>
16339
16340         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
16341         * m4/arcfour.m4: Remove file.
16342         * modules/crypto/arcfour (Files): Remove it.
16343         (configure.ac): Remove gl_ARCFOUR call.
16344         (Makefile.am): Augment lib_SOURCES.
16345
16346 2011-05-22  Bruno Haible  <bruno@clisp.org>
16347
16348         write: Move AC_LIBOBJ invocations to module description.
16349         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
16350         * modules/write (configure.ac): ... to here.
16351
16352 2011-05-22  Bruno Haible  <bruno@clisp.org>
16353
16354         wmemset: Move AC_LIBOBJ invocations to module description.
16355         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
16356         here...
16357         * modules/wmemset (configure.ac): ... to here.
16358
16359 2011-05-22  Bruno Haible  <bruno@clisp.org>
16360
16361         wmemmove: Move AC_LIBOBJ invocations to module description.
16362         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
16363         here...
16364         * modules/wmemmove (configure.ac): ... to here.
16365
16366 2011-05-22  Bruno Haible  <bruno@clisp.org>
16367
16368         wmemcpy: Move AC_LIBOBJ invocations to module description.
16369         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
16370         here...
16371         * modules/wmemcpy (configure.ac): ... to here.
16372
16373 2011-05-22  Bruno Haible  <bruno@clisp.org>
16374
16375         wmemcmp: Move AC_LIBOBJ invocations to module description.
16376         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
16377         here...
16378         * modules/wmemcmp (configure.ac): ... to here.
16379
16380 2011-05-22  Bruno Haible  <bruno@clisp.org>
16381
16382         wmemchr: Move AC_LIBOBJ invocations to module description.
16383         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
16384         here...
16385         * modules/wmemchr (configure.ac): ... to here.
16386
16387 2011-05-22  Bruno Haible  <bruno@clisp.org>
16388
16389         wcswidth: Move AC_LIBOBJ invocations to module description.
16390         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
16391         here...
16392         * modules/wcswidth (configure.ac): ... to here.
16393
16394 2011-05-22  Bruno Haible  <bruno@clisp.org>
16395
16396         wcwidth: Respect rules for use of AC_LIBOBJ.
16397         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
16398         invocation from here...
16399         * modules/wcwidth (configure.ac): ... to here.
16400         (Depends-on): Update conditions.
16401
16402 2011-05-22  Bruno Haible  <bruno@clisp.org>
16403
16404         wctype: Move AC_LIBOBJ invocations to module description.
16405         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
16406         invocation from here...
16407         * modules/wctype (configure.ac): ... to here.
16408         (Depends-on): Update conditions.
16409
16410 2011-05-22  Bruno Haible  <bruno@clisp.org>
16411
16412         wctrans: Move AC_LIBOBJ invocations to module description.
16413         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
16414         invocation from here...
16415         * modules/wctrans (configure.ac): ... to here.
16416
16417 2011-05-22  Bruno Haible  <bruno@clisp.org>
16418
16419         wctomb: Move AC_LIBOBJ invocations to module description.
16420         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
16421         invocations from here...
16422         * modules/wctomb (configure.ac): ... to here.
16423
16424 2011-05-22  Bruno Haible  <bruno@clisp.org>
16425
16426         wctob: Move AC_LIBOBJ invocations to module description.
16427         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
16428         gl_PREREQ_WCTOB invocations from here...
16429         * modules/wctob (configure.ac): ... to here.
16430         (Depends-on): Update conditions.
16431
16432 2011-05-22  Bruno Haible  <bruno@clisp.org>
16433
16434         wcsxfrm: Move AC_LIBOBJ invocations to module description.
16435         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
16436         here...
16437         * modules/wcsxfrm (configure.ac): ... to here.
16438
16439 2011-05-22  Bruno Haible  <bruno@clisp.org>
16440
16441         wcstok: Move AC_LIBOBJ invocations to module description.
16442         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
16443         * modules/wcstok (configure.ac): ... to here.
16444
16445 2011-05-22  Bruno Haible  <bruno@clisp.org>
16446
16447         wcsstr: Move AC_LIBOBJ invocations to module description.
16448         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
16449         * modules/wcsstr (configure.ac): ... to here.
16450
16451 2011-05-22  Bruno Haible  <bruno@clisp.org>
16452
16453         wcsspn: Move AC_LIBOBJ invocations to module description.
16454         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
16455         * modules/wcsspn (configure.ac): ... to here.
16456
16457 2011-05-22  Bruno Haible  <bruno@clisp.org>
16458
16459         wcsrtombs: Move AC_LIBOBJ invocations to module description.
16460         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
16461         gl_PREREQ_WCSRTOMBS invocations from here...
16462         * modules/wcsrtombs (configure.ac): ... to here.
16463
16464 2011-05-22  Bruno Haible  <bruno@clisp.org>
16465
16466         wcsrchr: Move AC_LIBOBJ invocations to module description.
16467         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
16468         here...
16469         * modules/wcsrchr (configure.ac): ... to here.
16470
16471 2011-05-22  Bruno Haible  <bruno@clisp.org>
16472
16473         wcspbrk: Move AC_LIBOBJ invocations to module description.
16474         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
16475         here...
16476         * modules/wcspbrk (configure.ac): ... to here.
16477
16478 2011-05-22  Bruno Haible  <bruno@clisp.org>
16479
16480         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
16481         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
16482         gl_PREREQ_WCSNRTOMBS invocations from here...
16483         * modules/wcsnrtombs (configure.ac): ... to here.
16484
16485 2011-05-22  Bruno Haible  <bruno@clisp.org>
16486
16487         wcsnlen: Move AC_LIBOBJ invocations to module description.
16488         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
16489         here...
16490         * modules/wcsnlen (configure.ac): ... to here.
16491
16492 2011-05-22  Bruno Haible  <bruno@clisp.org>
16493
16494         wcsncpy: Move AC_LIBOBJ invocations to module description.
16495         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
16496         here...
16497         * modules/wcsncpy (configure.ac): ... to here.
16498
16499 2011-05-22  Bruno Haible  <bruno@clisp.org>
16500
16501         wcsncmp: Move AC_LIBOBJ invocations to module description.
16502         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
16503         here...
16504         * modules/wcsncmp (configure.ac): ... to here.
16505
16506 2011-05-22  Bruno Haible  <bruno@clisp.org>
16507
16508         wcsncat: Move AC_LIBOBJ invocations to module description.
16509         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
16510         here...
16511         * modules/wcsncat (configure.ac): ... to here.
16512
16513 2011-05-22  Bruno Haible  <bruno@clisp.org>
16514
16515         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
16516         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
16517         from here...
16518         * modules/wcsncasecmp (configure.ac): ... to here.
16519
16520 2011-05-22  Bruno Haible  <bruno@clisp.org>
16521
16522         wcslen: Move AC_LIBOBJ invocations to module description.
16523         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
16524         * modules/wcslen (configure.ac): ... to here.
16525
16526 2011-05-22  Bruno Haible  <bruno@clisp.org>
16527
16528         wcsdup: Move AC_LIBOBJ invocations to module description.
16529         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
16530         * modules/wcsdup (configure.ac): ... to here.
16531
16532 2011-05-22  Bruno Haible  <bruno@clisp.org>
16533
16534         wcscspn: Move AC_LIBOBJ invocations to module description.
16535         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
16536         here...
16537         * modules/wcscspn (configure.ac): ... to here.
16538
16539 2011-05-22  Bruno Haible  <bruno@clisp.org>
16540
16541         wcscpy: Move AC_LIBOBJ invocations to module description.
16542         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
16543         * modules/wcscpy (configure.ac): ... to here.
16544
16545 2011-05-22  Bruno Haible  <bruno@clisp.org>
16546
16547         wcscoll: Move AC_LIBOBJ invocations to module description.
16548         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
16549         here...
16550         * modules/wcscoll (configure.ac): ... to here.
16551
16552 2011-05-22  Bruno Haible  <bruno@clisp.org>
16553
16554         wcscmp: Move AC_LIBOBJ invocations to module description.
16555         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
16556         * modules/wcscmp (configure.ac): ... to here.
16557
16558 2011-05-22  Bruno Haible  <bruno@clisp.org>
16559
16560         wcschr: Move AC_LIBOBJ invocations to module description.
16561         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
16562         * modules/wcschr (configure.ac): ... to here.
16563
16564 2011-05-22  Bruno Haible  <bruno@clisp.org>
16565
16566         wcscat: Move AC_LIBOBJ invocations to module description.
16567         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
16568         * modules/wcscat (configure.ac): ... to here.
16569
16570 2011-05-22  Bruno Haible  <bruno@clisp.org>
16571
16572         wcscasecmp: Move AC_LIBOBJ invocations to module description.
16573         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
16574         here...
16575         * modules/wcscasecmp (configure.ac): ... to here.
16576
16577 2011-05-22  Bruno Haible  <bruno@clisp.org>
16578
16579         wcrtomb: Move AC_LIBOBJ invocations to module description.
16580         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
16581         invocations from here...
16582         * modules/wcrtomb (configure.ac): ... to here.
16583
16584 2011-05-22  Bruno Haible  <bruno@clisp.org>
16585
16586         wcpncpy: Move AC_LIBOBJ invocations to module description.
16587         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
16588         here...
16589         * modules/wcpncpy (configure.ac): ... to here.
16590
16591 2011-05-22  Bruno Haible  <bruno@clisp.org>
16592
16593         wcpcpy: Move AC_LIBOBJ invocations to module description.
16594         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
16595         * modules/wcpcpy (configure.ac): ... to here.
16596
16597 2011-05-22  Bruno Haible  <bruno@clisp.org>
16598
16599         waitpid: Move AC_LIBOBJ invocations to module description.
16600         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
16601         invocation from here...
16602         * modules/waitpid (configure.ac): ... to here.
16603
16604 2011-05-22  Bruno Haible  <bruno@clisp.org>
16605
16606         utimensat: Move AC_LIBOBJ invocations to module description.
16607         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
16608         here...
16609         * modules/utimensat (configure.ac): ... to here.
16610
16611 2011-05-22  Bruno Haible  <bruno@clisp.org>
16612
16613         usleep: Move AC_LIBOBJ invocations to module description.
16614         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
16615         here...
16616         * modules/usleep (configure.ac): ... to here.
16617
16618 2011-05-22  Bruno Haible  <bruno@clisp.org>
16619
16620         unlockpt: Move AC_LIBOBJ invocations to module description.
16621         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
16622         gl_PREREQ_UNLOCKPT invocations from here...
16623         * modules/unlockpt (configure.ac): ... to here.
16624
16625 2011-05-22  Bruno Haible  <bruno@clisp.org>
16626
16627         unlink: Respect rules for use of AC_LIBOBJ.
16628         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
16629         * modules/unlink (configure.ac): ... to here.
16630
16631 2011-05-22  Bruno Haible  <bruno@clisp.org>
16632
16633         uname: Move AC_LIBOBJ invocations to module description.
16634         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
16635         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
16636         here...
16637         * modules/uname (configure.ac): ... to here.
16638
16639 2011-05-22  Bruno Haible  <bruno@clisp.org>
16640
16641         ttyname_r: Move AC_LIBOBJ invocations to module description.
16642         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
16643         gl_PREREQ_TTYNAME_R invocations from here...
16644         * modules/ttyname_r (configure.ac): ... to here.
16645
16646 2011-05-22  Bruno Haible  <bruno@clisp.org>
16647
16648         tsearch: Move AC_LIBOBJ invocations to module description.
16649         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
16650         invocations from here...
16651         * modules/tsearch (configure.ac): ... to here.
16652
16653 2011-05-22  Bruno Haible  <bruno@clisp.org>
16654
16655         towctrans: Move AC_LIBOBJ invocations to module description.
16656         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
16657         AC_LIBOBJ invocation from here...
16658         * modules/towctrans (configure.ac): ... to here.
16659
16660 2011-05-22  Bruno Haible  <bruno@clisp.org>
16661
16662         tmpfile: Move AC_LIBOBJ invocations to module description.
16663         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
16664         invocations from here...
16665         * modules/tmpfile (configure.ac): ... to here.
16666
16667 2011-05-22  Bruno Haible  <bruno@clisp.org>
16668
16669         times: Move AC_LIBOBJ invocations to module description.
16670         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
16671         * modules/times (configure.ac): ... to here.
16672
16673 2011-05-22  Bruno Haible  <bruno@clisp.org>
16674
16675         time_r: Move AC_LIBOBJ invocations to module description.
16676         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
16677         invocations from here...
16678         * modules/time_r (configure.ac): ... to here.
16679
16680 2011-05-22  Bruno Haible  <bruno@clisp.org>
16681
16682         timegm: Move AC_LIBOBJ invocations to module description.
16683         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
16684         invocations from here...
16685         * modules/timegm (configure.ac): ... to here.
16686
16687 2011-05-22  Bruno Haible  <bruno@clisp.org>
16688
16689         tcgetsid: Move AC_LIBOBJ invocations to module description.
16690         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
16691         and gl_PREREQ_TCGETSID invocations from here...
16692         * modules/tcgetsid (configure.ac): ... to here.
16693         (Depends-on): Update conditions.
16694
16695 2011-05-22  Bruno Haible  <bruno@clisp.org>
16696
16697         symlinkat: Move AC_LIBOBJ invocations to module description.
16698         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
16699         here...
16700         * modules/symlinkat (configure.ac): ... to here.
16701
16702 2011-05-22  Bruno Haible  <bruno@clisp.org>
16703
16704         symlink: Move AC_LIBOBJ invocations to module description.
16705         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
16706         here...
16707         * modules/symlink (configure.ac): ... to here.
16708
16709 2011-05-22  Bruno Haible  <bruno@clisp.org>
16710
16711         strverscmp: Move AC_LIBOBJ invocations to module description.
16712         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
16713         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
16714         from here...
16715         * modules/strverscmp (configure.ac): ... to here.
16716
16717 2011-05-22  Bruno Haible  <bruno@clisp.org>
16718
16719         strtok_r: Move AC_LIBOBJ invocations to module description.
16720         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
16721         and gl_PREREQ_STRTOK_R invocations from here...
16722         * modules/strtok_r (configure.ac): ... to here.
16723         (Depends-on): Update conditions.
16724
16725 2011-05-22  Bruno Haible  <bruno@clisp.org>
16726
16727         strtoumax: Move AC_LIBOBJ invocations to module description.
16728         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
16729         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
16730         from here...
16731         * modules/strtoumax (configure.ac): ... to here.
16732
16733 2011-05-22  Bruno Haible  <bruno@clisp.org>
16734
16735         strtoimax: Move AC_LIBOBJ invocations to module description.
16736         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
16737         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
16738         from here...
16739         * modules/strtoimax (configure.ac): ... to here.
16740
16741 2011-05-22  Bruno Haible  <bruno@clisp.org>
16742
16743         strtoull: Move AC_LIBOBJ invocations to module description.
16744         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
16745         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
16746         from here...
16747         * modules/strtoull (configure.ac): ... to here.
16748
16749 2011-05-22  Bruno Haible  <bruno@clisp.org>
16750
16751         strtoll: Move AC_LIBOBJ invocations to module description.
16752         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
16753         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
16754         here...
16755         * modules/strtoll (configure.ac): ... to here.
16756
16757 2011-05-22  Bruno Haible  <bruno@clisp.org>
16758
16759         strtoul: Move AC_LIBOBJ invocations to module description.
16760         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
16761         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16762         * modules/strtoul (configure.ac): ... to here.
16763
16764 2011-05-22  Bruno Haible  <bruno@clisp.org>
16765
16766         strtol: Move AC_LIBOBJ invocations to module description.
16767         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
16768         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16769         * modules/strtol (configure.ac): ... to here.
16770
16771 2011-05-22  Bruno Haible  <bruno@clisp.org>
16772
16773         strtod: Move AC_LIBOBJ invocations to module description.
16774         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
16775         invocations from here...
16776         * modules/strtod (configure.ac): ... to here.
16777
16778 2011-05-22  Bruno Haible  <bruno@clisp.org>
16779
16780         strstr*: Move AC_LIBOBJ invocations to module description.
16781         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
16782         invocations from here...
16783         * modules/strstr-simple (configure.ac): ... to here.
16784         * modules/strstr (configure.ac): ... and here.
16785
16786 2011-05-22  Bruno Haible  <bruno@clisp.org>
16787
16788         strsignal: Move AC_LIBOBJ invocations to module description.
16789         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
16790         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
16791         * modules/strsignal (configure.ac): ... to here.
16792         (Depends-on): Update conditions.
16793
16794 2011-05-22  Bruno Haible  <bruno@clisp.org>
16795
16796         strsep: Move AC_LIBOBJ invocations to module description.
16797         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
16798         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
16799         here...
16800         * modules/strsep (configure.ac): ... to here.
16801
16802 2011-05-22  Bruno Haible  <bruno@clisp.org>
16803
16804         strptime: Move AC_LIBOBJ invocations to module description.
16805         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
16806         gl_PREREQ_STRPTIME invocations from here...
16807         * modules/strptime (configure.ac): ... to here.
16808
16809 2011-05-22  Bruno Haible  <bruno@clisp.org>
16810
16811         strpbrk: Move AC_LIBOBJ invocations to module description.
16812         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
16813         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
16814         here...
16815         * modules/strpbrk (configure.ac): ... to here.
16816
16817 2011-05-22  Bruno Haible  <bruno@clisp.org>
16818
16819         strnlen: Move AC_LIBOBJ invocations to module description.
16820         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
16821         invocations from here...
16822         * modules/strnlen (configure.ac): ... to here.
16823
16824 2011-05-22  Bruno Haible  <bruno@clisp.org>
16825
16826         strndup: Move AC_LIBOBJ invocations to module description.
16827         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
16828         invocations from here...
16829         * modules/strndup (configure.ac): ... to here.
16830         (Depends-on): Update conditions.
16831
16832 2011-05-22  Bruno Haible  <bruno@clisp.org>
16833
16834         strncat: Move AC_LIBOBJ invocations to module description.
16835         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
16836         invocations from here...
16837         * modules/strncat (configure.ac): ... to here.
16838
16839 2011-05-22  Bruno Haible  <bruno@clisp.org>
16840
16841         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
16842         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
16843         invocations from here...
16844         * modules/strdup (configure.ac): ... to here.
16845         * modules/strdup-posix (configure.ac): ... and here.
16846
16847 2011-05-22  Bruno Haible  <bruno@clisp.org>
16848
16849         strcspn: Move AC_LIBOBJ invocations to module description.
16850         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
16851         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
16852         here...
16853         * modules/strcspn (configure.ac): ... to here.
16854
16855 2011-05-22  Bruno Haible  <bruno@clisp.org>
16856
16857         strchrnul: Move AC_LIBOBJ invocations to module description.
16858         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
16859         gl_PREREQ_STRCHRNUL invocations from here...
16860         * modules/strchrnul (configure.ac): ... to here.
16861
16862 2011-05-22  Bruno Haible  <bruno@clisp.org>
16863
16864         strcasestr*: Move AC_LIBOBJ invocations to module description.
16865         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
16866         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
16867         * modules/strcasestr-simple (configure.ac): ... to here.
16868         * modules/strcasestr (configure.ac): ... and here.
16869
16870 2011-05-22  Bruno Haible  <bruno@clisp.org>
16871
16872         strcase: Move AC_LIBOBJ invocations to module description.
16873         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
16874         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
16875         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
16876         gl_PREREQ_STRNCASECMP invocations from here...
16877         * modules/strcase (configure.ac): ... to here.
16878
16879 2011-05-22  Bruno Haible  <bruno@clisp.org>
16880
16881         stpncpy: Move AC_LIBOBJ invocations to module description.
16882         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
16883         here...
16884         * modules/stpncpy (configure.ac): ... to here.
16885
16886 2011-05-22  Bruno Haible  <bruno@clisp.org>
16887
16888         stpcpy: Move AC_LIBOBJ invocations to module description.
16889         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
16890         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
16891         here...
16892         * modules/stpcpy (configure.ac): ... to here.
16893
16894 2011-05-21  Bruno Haible  <bruno@clisp.org>
16895
16896         stat: Move AC_LIBOBJ invocations to module description.
16897         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
16898         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
16899         here...
16900         * modules/stat (configure.ac): ... to here.
16901
16902 2011-05-21  Bruno Haible  <bruno@clisp.org>
16903
16904         sleep: Move AC_LIBOBJ invocations to module description.
16905         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
16906         * modules/sleep (configure.ac): ... to here.
16907
16908 2011-05-21  Bruno Haible  <bruno@clisp.org>
16909
16910         signbit: Move AC_LIBOBJ invocations to module description.
16911         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
16912         * modules/signbit (configure.ac): ... to here.
16913
16914 2011-05-21  Bruno Haible  <bruno@clisp.org>
16915
16916         sigprocmask: Move AC_LIBOBJ invocations to module description.
16917         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
16918         gl_PREREQ_SIGPROMASK invocations from here...
16919         * modules/sigprocmask (configure.ac): ... to here.
16920
16921 2011-05-21  Bruno Haible  <bruno@clisp.org>
16922
16923         sigaction: Move AC_LIBOBJ invocations to module description.
16924         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
16925         gl_PREREQ_SIGACTION invocations from here...
16926         * modules/sigaction (configure.ac): ... to here.
16927
16928 2011-05-21  Bruno Haible  <bruno@clisp.org>
16929
16930         sig2str: Move AC_LIBOBJ invocations to module description.
16931         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
16932         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
16933         here...
16934         * modules/sig2str (configure.ac): ... to here.
16935
16936 2011-05-21  Bruno Haible  <bruno@clisp.org>
16937
16938         setlocale: Move AC_LIBOBJ invocations to module description.
16939         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
16940         gl_PREREQ_SETLOCALE invocations from here...
16941         * modules/setlocale (configure.ac): ... to here.
16942
16943 2011-05-21  Bruno Haible  <bruno@clisp.org>
16944
16945         unsetenv: Move AC_LIBOBJ invocations to module description.
16946         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
16947         and gl_PREREQ_UNSETENV invocations from here...
16948         * modules/unsetenv (configure.ac): ... to here.
16949         (Depends-on): Update.
16950
16951 2011-05-21  Bruno Haible  <bruno@clisp.org>
16952
16953         setenv: Move AC_LIBOBJ invocations to module description.
16954         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
16955         here...
16956         * modules/setenv (configure.ac): ... to here.
16957
16958 2011-05-21  Bruno Haible  <bruno@clisp.org>
16959
16960         selinux-h: Move AC_LIBOBJ invocations to module description.
16961         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
16962         AC_LIBOBJ invocation from here...
16963         * modules/selinux-h (configure.ac): ... to here.
16964
16965 2011-05-21  Bruno Haible  <bruno@clisp.org>
16966
16967         select: Respect rules for use of AC_LIBOBJ.
16968         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
16969         here...
16970         * modules/select (configure.ac): ... to here.
16971
16972 2011-05-21  Bruno Haible  <bruno@clisp.org>
16973
16974         scandir: Move AC_LIBOBJ invocations to module description.
16975         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
16976         invocations from here...
16977         * modules/scandir (configure.ac): ... to here.
16978
16979 2011-05-21  Bruno Haible  <bruno@clisp.org>
16980
16981         rpmatch: Move AC_LIBOBJ invocations to module description.
16982         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
16983         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
16984         here...
16985         * modules/rpmatch (configure.ac): ... to here.
16986
16987 2011-05-21  Bruno Haible  <bruno@clisp.org>
16988
16989         rmdir: Respect rules for use of AC_LIBOBJ.
16990         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
16991         * modules/rmdir (configure.ac): ... to here.
16992
16993 2011-05-21  Bruno Haible  <bruno@clisp.org>
16994
16995         renameat: Move AC_LIBOBJ invocations to module description.
16996         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
16997         here...
16998         * modules/renameat (configure.ac): ... to here.
16999
17000 2011-05-21  Bruno Haible  <bruno@clisp.org>
17001
17002         rename: Respect rules for use of AC_LIBOBJ.
17003         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
17004         here...
17005         * modules/rename (configure.ac): ... to here.
17006
17007 2011-05-21  Bruno Haible  <bruno@clisp.org>
17008
17009         remove: Move AC_LIBOBJ invocations to module description.
17010         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
17011         here...
17012         * modules/remove (configure.ac): ... to here.
17013
17014 2011-05-21  Bruno Haible  <bruno@clisp.org>
17015
17016         relocatable-lib: Move AC_LIBOBJ invocations to module description.
17017         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
17018         macro.
17019         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
17020         * modules/relocatable-lib (configure.ac): ... to here.
17021         * modules/relocatable-prog-wrapper (configure.ac): Invoke
17022         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
17023
17024 2011-05-21  Bruno Haible  <bruno@clisp.org>
17025
17026         relocatable-prog: Move AC_LIBOBJ invocations to module description.
17027         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
17028         here...
17029         * modules/relocatable-prog (configure.ac): ... to here.
17030
17031 2011-05-21  Bruno Haible  <bruno@clisp.org>
17032
17033         regex: Move AC_LIBOBJ invocations to module description.
17034         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
17035         invocations from here...
17036         * modules/regex (configure.ac): ... to here.
17037
17038 2011-05-21  Bruno Haible  <bruno@clisp.org>
17039
17040         realloc-*: Move AC_LIBOBJ invocations to module description.
17041         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
17042         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
17043         AC_LIBOBJ invocations from here...
17044         * modules/realloc-gnu (configure.ac): ... to here.
17045         * modules/realloc-posix (configure.ac): ... and here.
17046
17047 2011-05-21  Bruno Haible  <bruno@clisp.org>
17048
17049         readutmp: Move AC_LIBOBJ invocations to module description.
17050         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
17051         * modules/readutmp (configure.ac): ... to here.
17052
17053 2011-05-21  Bruno Haible  <bruno@clisp.org>
17054
17055         readlinkat: Move AC_LIBOBJ invocations to module description.
17056         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
17057         here...
17058         * modules/readlinkat (configure.ac): ... to here.
17059
17060 2011-05-21  Bruno Haible  <bruno@clisp.org>
17061
17062         readlink: Move AC_LIBOBJ invocations to module description.
17063         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
17064         gl_PREREQ_READLINK invocations from here...
17065         * modules/readlink (configure.ac): ... to here.
17066
17067 2011-05-21  Bruno Haible  <bruno@clisp.org>
17068
17069         readline: Move AC_LIBOBJ invocations to module description.
17070         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
17071         gl_PREREQ_READLINE invocations from here...
17072         * modules/readline (configure.ac): ... to here.
17073
17074 2011-05-21  Bruno Haible  <bruno@clisp.org>
17075
17076         read: Move AC_LIBOBJ invocations to module description.
17077         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
17078         * modules/read (configure.ac): ... to here.
17079
17080 2011-05-21  Bruno Haible  <bruno@clisp.org>
17081
17082         rawmemchr: Move AC_LIBOBJ invocations to module description.
17083         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
17084         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
17085         from here...
17086         * modules/rawmemchr (configure.ac): ... to here.
17087
17088 2011-05-21  Bruno Haible  <bruno@clisp.org>
17089
17090         random_r: Move AC_LIBOBJ invocations to module description.
17091         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
17092         gl_PREREQ_RANDOM_R invocations from here...
17093         * modules/random_r (configure.ac): ... to here.
17094
17095 2011-05-21  Bruno Haible  <bruno@clisp.org>
17096
17097         pwrite: Move AC_LIBOBJ invocations to module description.
17098         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
17099         * modules/pwrite (configure.ac): ... to here.
17100
17101 2011-05-21  Bruno Haible  <bruno@clisp.org>
17102
17103         putenv: Move AC_LIBOBJ invocations to module description.
17104         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
17105         * modules/putenv (configure.ac): ... to here.
17106
17107 2011-05-21  Bruno Haible  <bruno@clisp.org>
17108
17109         login_tty: Move AC_LIBOBJ invocations to module description.
17110         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
17111         * modules/login_tty (configure.ac): ... to here.
17112
17113 2011-05-21  Bruno Haible  <bruno@clisp.org>
17114
17115         openpty: Move AC_LIBOBJ invocations to module description.
17116         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
17117         * modules/openpty (configure.ac): ... to here.
17118
17119 2011-05-21  Bruno Haible  <bruno@clisp.org>
17120
17121         forkpty: Move AC_LIBOBJ invocations to module description.
17122         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
17123         * modules/forkpty (configure.ac): ... to here.
17124
17125 2011-05-21  Bruno Haible  <bruno@clisp.org>
17126
17127         ptsname: Move AC_LIBOBJ invocations to module description.
17128         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
17129         invocations from here...
17130         * modules/ptsname (configure.ac): ... to here.
17131
17132 2011-05-21  Bruno Haible  <bruno@clisp.org>
17133
17134         pread: Move AC_LIBOBJ invocations to module description.
17135         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
17136         * modules/pread (configure.ac): ... to here.
17137
17138 2011-05-21  Bruno Haible  <bruno@clisp.org>
17139
17140         posix_spawn*: Move AC_LIBOBJ invocations to module description.
17141         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
17142         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
17143         * modules/posix_spawn (configure.ac): ... to here.
17144         * modules/posix_spawnp (configure.ac): ... and here.
17145
17146 2011-05-21  Bruno Haible  <bruno@clisp.org>
17147
17148         popen: Move AC_LIBOBJ invocations to module description.
17149         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
17150         invocations from here...
17151         * modules/popen (configure.ac): ... to here.
17152
17153 2011-05-21  Bruno Haible  <bruno@clisp.org>
17154
17155         poll: Move AC_LIBOBJ invocations to module description.
17156         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
17157         invocations from here...
17158         * modules/poll (configure.ac): ... to here.
17159
17160 2011-05-21  Bruno Haible  <bruno@clisp.org>
17161
17162         pipe-posix: Move AC_LIBOBJ invocations to module description.
17163         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
17164         * modules/pipe-posix (configure.ac): ... to here.
17165
17166 2011-05-21  Bruno Haible  <bruno@clisp.org>
17167
17168         openat: Respect rules for use of AC_LIBOBJ.
17169         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
17170         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17171         * modules/openat (configure.ac): ... to here.
17172
17173 2011-05-21  Bruno Haible  <bruno@clisp.org>
17174
17175         obstack-printf*: Move AC_LIBOBJ invocations to module description.
17176         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
17177         invocation from here...
17178         * modules/obstack-printf (configure.ac): ... to here.
17179         * modules/obstack-printf-posix (configure.ac): ... and here.
17180
17181 2011-05-21  Bruno Haible  <bruno@clisp.org>
17182
17183         nl_langinfo: Move AC_LIBOBJ invocations to module description.
17184         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
17185         from here...
17186         * modules/nl_langinfo (configure.ac): ... to here.
17187
17188 2011-05-21  Bruno Haible  <bruno@clisp.org>
17189
17190         nanosleep: Move AC_LIBOBJ invocations to module description.
17191         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
17192         gl_PREREQ_NANOSLEEP invocations from here...
17193         * modules/nanosleep (configure.ac): ... to here.
17194
17195 2011-05-21  Bruno Haible  <bruno@clisp.org>
17196
17197         mountlist: Move AC_LIBOBJ invocations to module description.
17198         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
17199         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
17200         * modules/mountlist (configure.ac): ... to here.
17201
17202 2011-05-21  Bruno Haible  <bruno@clisp.org>
17203
17204         mktime: Respect rules for use of AC_LIBOBJ.
17205         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
17206         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
17207         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
17208         (gl_FUNC_MKTIME_INTERNAL): ... and here...
17209         * modules/mktime (configure.ac): ... to here.
17210         * modules/mktime-internal (configure.ac): ... and here.
17211         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
17212
17213 2011-05-21  Bruno Haible  <bruno@clisp.org>
17214
17215         mkstemps: Move AC_LIBOBJ invocations to module description.
17216         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
17217         here...
17218         * modules/mkstemps (configure.ac): ... to here.
17219
17220 2011-05-21  Bruno Haible  <bruno@clisp.org>
17221
17222         mkstemp: Move AC_LIBOBJ invocations to module description.
17223         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
17224         gl_PREREQ_MKSTEMP invocations from here...
17225         * modules/mkstemp (configure.ac): ... to here.
17226
17227 2011-05-21  Bruno Haible  <bruno@clisp.org>
17228
17229         mkostemps: Move AC_LIBOBJ invocations to module description.
17230         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
17231         here...
17232         * modules/mkostemps (configure.ac): ... to here.
17233
17234 2011-05-21  Bruno Haible  <bruno@clisp.org>
17235
17236         mkostemp: Move AC_LIBOBJ invocations to module description.
17237         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
17238         gl_PREREQ_MKOSTEMP invocations from here...
17239         * modules/mkostemp (configure.ac): ... to here.
17240
17241 2011-05-21  Bruno Haible  <bruno@clisp.org>
17242
17243         mknod: Move AC_LIBOBJ invocations to module description.
17244         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
17245         * modules/mknod (configure.ac): ... to here.
17246
17247 2011-05-21  Bruno Haible  <bruno@clisp.org>
17248
17249         mkfifoat: Move AC_LIBOBJ invocations to module description.
17250         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
17251         here...
17252         * modules/mkfifoat (configure.ac): ... to here.
17253
17254 2011-05-21  Bruno Haible  <bruno@clisp.org>
17255
17256         mkfifo: Respect rules for use of AC_LIBOBJ.
17257         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
17258         here...
17259         * modules/mkfifo (configure.ac): ... to here.
17260
17261 2011-05-21  Bruno Haible  <bruno@clisp.org>
17262
17263         mkdtemp: Move AC_LIBOBJ invocations to module description.
17264         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
17265         invocations from here...
17266         * modules/mkdtemp (configure.ac): ... to here.
17267
17268 2011-05-21  Bruno Haible  <bruno@clisp.org>
17269
17270         mkdir: Move AC_LIBOBJ invocations to module description.
17271         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
17272         * modules/mkdir (configure.ac): ... to here.
17273
17274 2011-05-21  Bruno Haible  <bruno@clisp.org>
17275
17276         memset: Move AC_LIBOBJ invocations to module description.
17277         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
17278         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
17279         here...
17280         * modules/memset (configure.ac): ... to here.
17281
17282 2011-05-21  Bruno Haible  <bruno@clisp.org>
17283
17284         memrchr: Move AC_LIBOBJ invocations to module description.
17285         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
17286         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
17287         here...
17288         * modules/memrchr (configure.ac): ... to here.
17289
17290 2011-05-21  Bruno Haible  <bruno@clisp.org>
17291
17292         mempcpy: Move AC_LIBOBJ invocations to module description.
17293         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
17294         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
17295         here...
17296         * modules/mempcpy (configure.ac): ... to here.
17297
17298 2011-05-21  Bruno Haible  <bruno@clisp.org>
17299
17300         memmove: Move AC_LIBOBJ invocations to module description.
17301         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
17302         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
17303         here...
17304         * modules/memmove (configure.ac): ... to here.
17305
17306 2011-05-21  Bruno Haible  <bruno@clisp.org>
17307
17308         memmem*: Move AC_LIBOBJ invocations to module description.
17309         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
17310         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
17311         here...
17312         (gl_FUNC_MEMMEM): ... and here...
17313         * modules/memmem-simple (configure.ac): ... to here.
17314         * modules/memmem (configure.ac): ... and here.
17315
17316 2011-05-21  Bruno Haible  <bruno@clisp.org>
17317
17318         memcpy: Move AC_LIBOBJ invocations to module description.
17319         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
17320         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
17321         here...
17322         * modules/memcpy (configure.ac): ... to here.
17323
17324 2011-05-21  Bruno Haible  <bruno@clisp.org>
17325
17326         memcmp: Simplify autoconf macro.
17327         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
17328         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
17329         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
17330
17331 2011-05-21  Bruno Haible  <bruno@clisp.org>
17332
17333         memcmp: Move AC_LIBOBJ invocations to module description.
17334         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
17335         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
17336         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
17337         * modules/memcmp (configure.ac): ... to here.
17338         (Depends-on): Update conditions.
17339
17340 2011-05-21  Bruno Haible  <bruno@clisp.org>
17341
17342         memchr: Respect rules for use of AC_LIBOBJ.
17343         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
17344         invocations from here...
17345         * modules/memchr (configure.ac): ... to here.
17346
17347 2011-05-21  Bruno Haible  <bruno@clisp.org>
17348
17349         mbtowc: Move AC_LIBOBJ invocations to module description.
17350         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
17351         invocations from here...
17352         * modules/mbtowc (configure.ac): ... to here.
17353
17354 2011-05-21  Bruno Haible  <bruno@clisp.org>
17355
17356         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
17357         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
17358         gl_PREREQ_MBSRTOWCS invocations from here...
17359         * modules/mbsrtowcs (configure.ac): ... to here.
17360
17361 2011-05-21  Bruno Haible  <bruno@clisp.org>
17362
17363         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
17364         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
17365         gl_PREREQ_MBSNRTOWCS invocations from here...
17366         * modules/mbsnrtowcs (configure.ac): ... to here.
17367
17368 2011-05-21  Bruno Haible  <bruno@clisp.org>
17369
17370         mbsinit: Move AC_LIBOBJ invocations to module description.
17371         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
17372         invocations from here...
17373         * modules/mbsinit (configure.ac): ... to here.
17374
17375 2011-05-21  Bruno Haible  <bruno@clisp.org>
17376
17377         mbrlen: Move AC_LIBOBJ invocations to module description.
17378         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
17379         invocations from here...
17380         * modules/mbrlen (configure.ac): ... to here.
17381
17382 2011-05-21  Bruno Haible  <bruno@clisp.org>
17383
17384         mbrtowc: Respect rules for use of AC_LIBOBJ.
17385         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
17386         invocations from here...
17387         * modules/mbrtowc (configure.ac): ... to here.
17388
17389 2011-05-21  Bruno Haible  <bruno@clisp.org>
17390
17391         malloc-*: Move AC_LIBOBJ invocations to module description.
17392         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
17393         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
17394         AC_LIBOBJ invocations from here...
17395         * modules/malloc-gnu (configure.ac): ... to here.
17396         * modules/malloc-posix (configure.ac): ... and here.
17397
17398 2011-05-21  Bruno Haible  <bruno@clisp.org>
17399
17400         lstat, openat: Respect rules for use of AC_LIBOBJ.
17401         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
17402         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
17403         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
17404         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
17405         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
17406         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
17407         here.
17408         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
17409
17410 2011-05-21  Bruno Haible  <bruno@clisp.org>
17411
17412         lseek: Move AC_LIBOBJ invocations to module description.
17413         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
17414         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17415         * modules/lseek (configure.ac): ... to here.
17416
17417 2011-05-21  Bruno Haible  <bruno@clisp.org>
17418
17419         linkat: Move AC_LIBOBJ invocations to module description.
17420         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
17421         here...
17422         * modules/linkat (configure.ac): ... to here.
17423
17424 2011-05-21  Bruno Haible  <bruno@clisp.org>
17425
17426         link: Respect rules for use of AC_LIBOBJ.
17427         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
17428         * modules/link (configure.ac): ... to here.
17429
17430 2011-05-21  Bruno Haible  <bruno@clisp.org>
17431
17432         lchown: Move AC_LIBOBJ invocations to module description.
17433         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17434         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17435         * modules/lchown (configure.ac): ... to here.
17436
17437 2011-05-21  Bruno Haible  <bruno@clisp.org>
17438
17439         iswctype: Move AC_LIBOBJ invocations to module description.
17440         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
17441         here...
17442         * modules/iswctype (configure.ac): ... to here.
17443
17444 2011-05-21  Bruno Haible  <bruno@clisp.org>
17445
17446         iswblank: Move AC_LIBOBJ invocations to module description.
17447         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
17448         here...
17449         * modules/iswblank (configure.ac): ... to here.
17450
17451 2011-05-21  Bruno Haible  <bruno@clisp.org>
17452
17453         atanl: Move AC_LIBOBJ invocations to module description.
17454         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
17455         * modules/atanl (configure.ac): ... to here.
17456
17457 2011-05-21  Bruno Haible  <bruno@clisp.org>
17458
17459         acosl: Move AC_LIBOBJ invocations to module description.
17460         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
17461         * modules/acosl (configure.ac): ... to here.
17462
17463 2011-05-21  Bruno Haible  <bruno@clisp.org>
17464
17465         asinl: Respect rules for use of AC_LIBOBJ.
17466         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
17467         * modules/asinl (configure.ac): ... to here.
17468
17469 2011-05-21  Bruno Haible  <bruno@clisp.org>
17470
17471         tanl: Move AC_LIBOBJ invocations to module description.
17472         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
17473         * modules/tanl (configure.ac): ... to here.
17474
17475 2011-05-21  Bruno Haible  <bruno@clisp.org>
17476
17477         cosl: Move AC_LIBOBJ invocations to module description.
17478         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
17479         * modules/cosl (configure.ac): ... to here.
17480
17481 2011-05-21  Bruno Haible  <bruno@clisp.org>
17482
17483         sinl: Move AC_LIBOBJ invocations to module description.
17484         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
17485         * modules/sinl (configure.ac): ... to here.
17486
17487 2011-05-21  Bruno Haible  <bruno@clisp.org>
17488
17489         logl: Move AC_LIBOBJ invocations to module description.
17490         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
17491         * modules/logl (configure.ac): ... to here.
17492
17493 2011-05-21  Bruno Haible  <bruno@clisp.org>
17494
17495         expl: Move AC_LIBOBJ invocations to module description.
17496         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
17497         * modules/expl (configure.ac): ... to here.
17498
17499 2011-05-21  Bruno Haible  <bruno@clisp.org>
17500
17501         roundl: Move AC_LIBOBJ invocations to module description.
17502         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
17503         * modules/roundl (configure.ac): ... to here.
17504
17505 2011-05-21  Bruno Haible  <bruno@clisp.org>
17506
17507         round: Move AC_LIBOBJ invocations to module description.
17508         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
17509         * modules/round (configure.ac): ... to here.
17510
17511 2011-05-21  Bruno Haible  <bruno@clisp.org>
17512
17513         roundf: Move AC_LIBOBJ invocations to module description.
17514         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
17515         * modules/roundf (configure.ac): ... to here.
17516
17517 2011-05-21  Bruno Haible  <bruno@clisp.org>
17518
17519         truncl: Move AC_LIBOBJ invocations to module description.
17520         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
17521         * modules/truncl (configure.ac): ... to here.
17522
17523 2011-05-21  Bruno Haible  <bruno@clisp.org>
17524
17525         trunc: Move AC_LIBOBJ invocations to module description.
17526         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
17527         * modules/trunc (configure.ac): ... to here.
17528
17529 2011-05-21  Bruno Haible  <bruno@clisp.org>
17530
17531         truncf: Move AC_LIBOBJ invocations to module description.
17532         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
17533         * modules/truncf (configure.ac): ... to here.
17534
17535 2011-05-21  Bruno Haible  <bruno@clisp.org>
17536
17537         ceill: Move AC_LIBOBJ invocations to module description.
17538         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
17539         * modules/ceill (configure.ac): ... to here.
17540
17541 2011-05-21  Bruno Haible  <bruno@clisp.org>
17542
17543         ceil: Move AC_LIBOBJ invocations to module description.
17544         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
17545         * modules/ceil (configure.ac): ... to here.
17546
17547 2011-05-21  Bruno Haible  <bruno@clisp.org>
17548
17549         ceilf: Move AC_LIBOBJ invocations to module description.
17550         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
17551         * modules/ceilf (configure.ac): ... to here.
17552
17553 2011-05-21  Bruno Haible  <bruno@clisp.org>
17554
17555         floorl: Respect rules for use of AC_LIBOBJ.
17556         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
17557         * modules/floorl (configure.ac): ... to here.
17558
17559 2011-05-21  Bruno Haible  <bruno@clisp.org>
17560
17561         floor: Respect rules for use of AC_LIBOBJ.
17562         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
17563         * modules/floor (configure.ac): ... to here.
17564
17565 2011-05-21  Bruno Haible  <bruno@clisp.org>
17566
17567         floorf: Move AC_LIBOBJ invocations to module description.
17568         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
17569         * modules/floorf (configure.ac): ... to here.
17570
17571 2011-05-20  Bruno Haible  <bruno@clisp.org>
17572
17573         sqrtl: Respect rules for use of AC_LIBOBJ.
17574         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
17575         * modules/sqrtl (configure.ac): ... to here.
17576
17577 2011-05-20  Bruno Haible  <bruno@clisp.org>
17578
17579         ldexpl: Respect rules for use of AC_LIBOBJ.
17580         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
17581         * modules/ldexpl (configure.ac): ... to here.
17582
17583 2011-05-20  Bruno Haible  <bruno@clisp.org>
17584
17585         frexpl*: Respect rules for use of AC_LIBOBJ.
17586         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
17587         invocation from here...
17588         * modules/frexpl (configure.ac): ... to here.
17589         * modules/frexpl-nolibm (configure.ac): ... and here.
17590
17591 2011-05-20  Bruno Haible  <bruno@clisp.org>
17592
17593         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
17594         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
17595         invocation from here...
17596         * modules/frexp (configure.ac): ... to here.
17597         * modules/frexp-nolibm (configure.ac): ... and here.
17598
17599 2011-05-20  Bruno Haible  <bruno@clisp.org>
17600
17601         isnan: Respect rules for use of AC_LIBOBJ.
17602         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
17603         invocations here.
17604         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
17605         REPLACE_ISNAN.
17606         * modules/isnand (configure.ac): Likewise.
17607         * modules/isnanl (configure.ac): Likewise.
17608
17609 2011-05-20  Bruno Haible  <bruno@clisp.org>
17610
17611         isnanl*: Respect rules for use of AC_LIBOBJ.
17612         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
17613         invocation from here...
17614         * modules/isnanl (configure.ac): ... to here.
17615         * modules/isnanl-nolibm (configure.ac): ... and here.
17616
17617 2011-05-20  Bruno Haible  <bruno@clisp.org>
17618
17619         isnand*: Move AC_LIBOBJ invocations to module description.
17620         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
17621         invocation from here...
17622         * modules/isnand (configure.ac): ... to here.
17623         * modules/isnand-nolibm (configure.ac): ... and here.
17624
17625 2011-05-20  Bruno Haible  <bruno@clisp.org>
17626
17627         isnanf*: Move AC_LIBOBJ invocations to module description.
17628         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
17629         invocation from here...
17630         * modules/isnanf (configure.ac): ... to here.
17631         * modules/isnanf-nolibm (configure.ac): ... and here.
17632
17633 2011-05-20  Bruno Haible  <bruno@clisp.org>
17634
17635         isnan*: Separate the AC_LIBOBJ invocations.
17636         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
17637         AC_LIBOBJ invocation.
17638         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
17639         here.
17640         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
17641         AC_LIBOBJ invocation.
17642         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
17643         here.
17644         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
17645         AC_LIBOBJ invocation.
17646         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
17647         here.
17648         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
17649
17650 2011-05-08  Bruno Haible  <bruno@clisp.org>
17651
17652         isinf: Move AC_LIBOBJ invocations to module description.
17653         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
17654         * modules/isinf (configure.ac): ... to here.
17655
17656 2011-05-08  Bruno Haible  <bruno@clisp.org>
17657
17658         isfinite: Move AC_LIBOBJ invocations to module description.
17659         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
17660         * modules/isfinite (configure.ac): ... to here.
17661
17662 2011-05-08  Bruno Haible  <bruno@clisp.org>
17663
17664         isblank: Move AC_LIBOBJ invocations to module description.
17665         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
17666         here...
17667         * modules/isblank (configure.ac): ... to here.
17668
17669 2011-05-08  Bruno Haible  <bruno@clisp.org>
17670
17671         isapipe: Move AC_LIBOBJ invocations to module description.
17672         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
17673         gl_PREREQ_ISAPIPE invocations from here...
17674         * modules/isapipe (configure.ac): ... to here.
17675         (Depends-on): Update condition.
17676
17677 2011-05-08  Bruno Haible  <bruno@clisp.org>
17678
17679         ioctl: Move AC_LIBOBJ invocations to module description.
17680         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
17681         invocations from here...
17682         * modules/ioctl (configure.ac): ... to here.
17683         (Depends-on): Update condition.
17684
17685 2011-05-08  Bruno Haible  <bruno@clisp.org>
17686
17687         imaxdiv: Move AC_LIBOBJ invocations to module description.
17688         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
17689         invocations from here...
17690         * modules/imaxdiv (configure.ac): ... to here.
17691
17692 2011-05-08  Bruno Haible  <bruno@clisp.org>
17693
17694         imaxabs: Move AC_LIBOBJ invocations to module description.
17695         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
17696         invocations from here...
17697         * modules/imaxabs (configure.ac): ... to here.
17698
17699 2011-05-08  Bruno Haible  <bruno@clisp.org>
17700
17701         getaddrinfo: Move AC_LIBOBJ invocations to module description.
17702         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
17703         AC_LIBOBJ invocations from here...
17704         * modules/getaddrinfo (configure.ac): ... to here.
17705         (Depends-on): Add conditions.
17706
17707 2011-05-08  Bruno Haible  <bruno@clisp.org>
17708
17709         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17710         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
17711         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17712         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
17713         (gl_PREREQ_INET_PTON): ... from here.
17714         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
17715         gl_PREREQ_INET_PTON here.
17716         (Depends-on): Update condition.
17717
17718 2011-05-08  Bruno Haible  <bruno@clisp.org>
17719
17720         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17721         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
17722         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17723         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
17724         (gl_PREREQ_INET_NTOP): ... from here.
17725         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
17726         gl_PREREQ_INET_NTOP here.
17727         (Depends-on): Update condition.
17728
17729 2011-05-08  Bruno Haible  <bruno@clisp.org>
17730
17731         iconv_open: Move AC_LIBOBJ invocations to module description.
17732         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
17733         AC_LIBOBJ invocations from here...
17734         * modules/iconv_open (configure.ac): ... to here.
17735
17736 2011-05-08  Bruno Haible  <bruno@clisp.org>
17737
17738         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
17739         If module 'iconv_open' is among the main modules and module
17740         'iconv_open-utf' is among the tests dependencies, then
17741         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
17742         return the special iconv_t values. Therefore iconv() and iconv_close()
17743         must support these special iconv_t values, already in lib, not only in
17744         tests.
17745         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
17746         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
17747         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
17748         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
17749         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
17750         (Depends-on): Add the dependencies of iconv_open-utf.
17751         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
17752         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
17753         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
17754
17755 2011-05-08  Bruno Haible  <bruno@clisp.org>
17756
17757         group-member: Move AC_LIBOBJ invocations to module description.
17758         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
17759         gl_PREREQ_GROUP_MEMBER invocations from here...
17760         * modules/group-member (configure.ac): ... to here.
17761
17762 2011-05-08  Bruno Haible  <bruno@clisp.org>
17763
17764         grantpt: Move AC_LIBOBJ invocations to module description.
17765         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
17766         invocations from here...
17767         * modules/grantpt (configure.ac): ... to here.
17768
17769 2011-05-08  Bruno Haible  <bruno@clisp.org>
17770
17771         glob: Move AC_LIBOBJ invocations to module description.
17772         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
17773         from here...
17774         * modules/glob (configure.ac): ... to here.
17775
17776 2011-05-08  Bruno Haible  <bruno@clisp.org>
17777
17778         getusershell: Move AC_LIBOBJ invocations to module description.
17779         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
17780         Move AC_LIBOBJ invocation from here...
17781         * modules/getusershell (configure.ac): ... to here.
17782         (Depends-on): Update condition.
17783
17784 2011-05-08  Bruno Haible  <bruno@clisp.org>
17785
17786         gettimeofday: Move AC_LIBOBJ invocations to module description.
17787         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17788         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
17789         gl_PREREQ_GETTIMEOFDAY invocations from here...
17790         * modules/gettimeofday (configure.ac): ... to here.
17791
17792 2011-05-08  Bruno Haible  <bruno@clisp.org>
17793
17794         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
17795         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
17796         just gl_FUNC_TZSET.
17797         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
17798         (gl_FUNC_TZSET_CLOBBER): Remove actions.
17799         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
17800         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
17801
17802 2011-05-08  Bruno Haible  <bruno@clisp.org>
17803
17804         getsubopt: Move AC_LIBOBJ invocations to module description.
17805         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
17806         gl_PREREQ_GETSUBOPT invocations from here...
17807         * modules/getsubopt (configure.ac): ... to here.
17808
17809 2011-05-08  Bruno Haible  <bruno@clisp.org>
17810
17811         getpass-gnu: Move AC_LIBOBJ invocations to module description.
17812         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
17813         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
17814         * modules/getpass-gnu (configure.ac): ... to here.
17815
17816 2011-05-08  Bruno Haible  <bruno@clisp.org>
17817
17818         getpass: Move AC_LIBOBJ invocations to module description.
17819         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
17820         gl_PREREQ_GETPASS invocations from here...
17821         * modules/getpass (configure.ac): ... to here.
17822
17823 2011-05-08  Bruno Haible  <bruno@clisp.org>
17824
17825         getpagesize: Move AC_LIBOBJ invocations to module description.
17826         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
17827         from here...
17828         * modules/getpagesize (configure.ac): ... to here.
17829
17830 2011-05-08  Bruno Haible  <bruno@clisp.org>
17831
17832         getopt: Move AC_LIBOBJ invocations to module description.
17833         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
17834         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
17835         invocations from here...
17836         * modules/getopt-gnu (configure.ac): ... to here.
17837         * modules/getopt-posix (configure.ac): ... and here.
17838         (Depends-on): Update condition.
17839
17840 2011-05-08  Bruno Haible  <bruno@clisp.org>
17841
17842         getopt, argp: Respect rules for use of AC_LIBOBJ.
17843         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
17844         (gl_REPLACE_GETOPT_ALWAYS): New macro.
17845         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
17846         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
17847
17848 2011-05-08  Bruno Haible  <bruno@clisp.org>
17849
17850         getlogin_r: Move AC_LIBOBJ invocations to module description.
17851         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
17852         gl_PREREQ_GETLOGIN_R invocations from here...
17853         * modules/getlogin_r (configure.ac): ... to here.
17854
17855 2011-05-08  Bruno Haible  <bruno@clisp.org>
17856
17857         getlogin: Move AC_LIBOBJ invocations to module description.
17858         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
17859         here...
17860         * modules/getlogin (configure.ac): ... to here.
17861
17862 2011-05-08  Bruno Haible  <bruno@clisp.org>
17863
17864         getloadavg: Move AC_LIBOBJ invocations to module description.
17865         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
17866         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
17867         * modules/getloadavg (configure.ac): ... to here.
17868
17869 2011-05-08  Bruno Haible  <bruno@clisp.org>
17870
17871         gethrxtime: Move AC_LIBOBJ invocations to module description.
17872         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
17873         LIB_GETHRXTIME from here...
17874         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
17875         invocations from here...
17876         * modules/gethrxtime (configure.ac): ... to here.
17877
17878 2011-05-08  Bruno Haible  <bruno@clisp.org>
17879
17880         gethostname: Move AC_LIBOBJ invocations to module description.
17881         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
17882         gl_PREREQ_GETHOSTNAME invocations from here...
17883         * modules/gethostname (configure.ac): ... to here.
17884
17885 2011-05-08  Bruno Haible  <bruno@clisp.org>
17886
17887         getgroups: Move AC_LIBOBJ invocations to module description.
17888         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
17889         here...
17890         * modules/getgroups (configure.ac): ... to here.
17891
17892 2011-05-08  Bruno Haible  <bruno@clisp.org>
17893
17894         getdtablesize: Move AC_LIBOBJ invocations to module description.
17895         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
17896         invocation from here...
17897         * modules/getdtablesize (configure.ac): ... to here.
17898
17899 2011-05-08  Bruno Haible  <bruno@clisp.org>
17900
17901         getdomainname: Move AC_LIBOBJ invocations to module description.
17902         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
17903         gl_PREREQ_GETDOMAINNAME invocations from here...
17904         * modules/getdomainname (configure.ac): ... to here.
17905
17906 2011-05-08  Bruno Haible  <bruno@clisp.org>
17907
17908         getline: Move AC_LIBOBJ invocations to module description.
17909         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
17910         invocations from here...
17911         * modules/getline (configure.ac): ... to here.
17912
17913 2011-05-08  Bruno Haible  <bruno@clisp.org>
17914
17915         getline: Simplify.
17916         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
17917         It's already handled through the module dependency.
17918
17919 2011-05-08  Bruno Haible  <bruno@clisp.org>
17920
17921         getdelim: Move AC_LIBOBJ invocations to module description.
17922         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
17923         and gl_PREREQ_GETDELIM invocations from here...
17924         * modules/getdelim (configure.ac): ... to here.
17925         (Depends-on): Fix condition.
17926
17927 2011-05-08  Bruno Haible  <bruno@clisp.org>
17928
17929         getcwd: Move AC_LIBOBJ invocations to module description.
17930         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
17931         invocations from here...
17932         * modules/getcwd (configure.ac): ... to here.
17933
17934 2011-05-08  Bruno Haible  <bruno@clisp.org>
17935
17936         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
17937         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
17938         here...
17939         * modules/getcwd-lgpl (configure.ac): ... to here.
17940
17941 2011-05-07  Bruno Haible  <bruno@clisp.org>
17942
17943         crypto/gc: Move AC_LIBOBJ invocations to module description.
17944         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
17945         * modules/crypto/gc (configure.ac): ... to here.
17946
17947 2011-05-07  Bruno Haible  <bruno@clisp.org>
17948
17949         fwriting: Move AC_LIBOBJ invocations to module description.
17950         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
17951         here...
17952         * modules/fwriting (configure.ac): ... to here.
17953
17954 2011-05-07  Bruno Haible  <bruno@clisp.org>
17955
17956         fwritable: Move AC_LIBOBJ invocations to module description.
17957         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
17958         here...
17959         * modules/fwritable (configure.ac): ... to here.
17960
17961 2011-05-07  Bruno Haible  <bruno@clisp.org>
17962
17963         futimens: Move AC_LIBOBJ invocations to module description.
17964         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
17965         here...
17966         * modules/futimens (configure.ac): ... to here.
17967
17968 2011-05-07  Bruno Haible  <bruno@clisp.org>
17969
17970         ftruncate: Move AC_LIBOBJ invocations to module description.
17971         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
17972         gl_PREREQ_FTRUNCATE invocations from here...
17973         * modules/ftruncate (configure.ac): ... to here.
17974
17975 2011-05-07  Bruno Haible  <bruno@clisp.org>
17976
17977         fsync: Move AC_LIBOBJ invocations to module description.
17978         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
17979         invocations from here...
17980         * modules/fsync (configure.ac): ... to here.
17981
17982 2011-05-07  Bruno Haible  <bruno@clisp.org>
17983
17984         fsusage: Move AC_LIBOBJ invocations to module description.
17985         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
17986         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
17987         * modules/fsusage (configure.ac): ... to here.
17988
17989 2011-05-07  Bruno Haible  <bruno@clisp.org>
17990
17991         freopen: Move AC_LIBOBJ invocations to module description.
17992         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
17993         invocations from here...
17994         * modules/freopen (configure.ac): ... to here.
17995
17996 2011-05-07  Bruno Haible  <bruno@clisp.org>
17997
17998         free: Move AC_LIBOBJ invocations to module description.
17999         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
18000         invocations from here...
18001         * modules/free (configure.ac): ... to here.
18002
18003 2011-05-07  Bruno Haible  <bruno@clisp.org>
18004
18005         freadable: Move AC_LIBOBJ invocations to module description.
18006         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
18007         here...
18008         * modules/freadable (configure.ac): ... to here.
18009
18010 2011-05-07  Bruno Haible  <bruno@clisp.org>
18011
18012         fpurge: Move AC_LIBOBJ invocations to module description.
18013         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
18014         invocations from here...
18015         * modules/fpurge (configure.ac): ... to here.
18016
18017 2011-05-07  Bruno Haible  <bruno@clisp.org>
18018
18019         fpending: Move AC_LIBOBJ invocations to module description.
18020         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
18021         gl_FUNC_FPENDING.
18022         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
18023         invocations from here...
18024         * modules/fpending (configure.ac): ... to here.
18025
18026 2011-05-07  Bruno Haible  <bruno@clisp.org>
18027
18028         fopen: Move AC_LIBOBJ invocations to module description.
18029         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
18030         invocations from here...
18031         * modules/fopen (configure.ac): ... to here.
18032
18033 2011-05-07  Bruno Haible  <bruno@clisp.org>
18034
18035         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
18036         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
18037         gl_FUNC_FNMATCH_POSIX.
18038         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
18039         invocations from here...
18040         * modules/fnmatch (configure.ac): ... to here.
18041         * modules/fnmatch-gnu (configure.ac): ... and here.
18042
18043 2011-05-07  Bruno Haible  <bruno@clisp.org>
18044
18045         flock: Move AC_LIBOBJ invocations to module description.
18046         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
18047         invocations from here...
18048         * modules/flock (configure.ac): ... to here.
18049
18050 2011-05-07  Bruno Haible  <bruno@clisp.org>
18051
18052         fileblocks: Move AC_LIBOBJ invocations to module description.
18053         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
18054         gl_PREREQ_FILEBLOCKS invocations from here...
18055         * modules/fileblocks (configure.ac): ... to here.
18056
18057 2011-05-06  Bruno Haible  <bruno@clisp.org>
18058
18059         fflush: Move AC_LIBOBJ invocations to module description.
18060         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
18061         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
18062         invocations from here...
18063         * modules/fflush (configure.ac): ... to here.
18064
18065 2011-05-06  Bruno Haible  <bruno@clisp.org>
18066
18067         fdopendir: Move AC_LIBOBJ invocations to module description.
18068         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
18069         here...
18070         * modules/fdopendir (configure.ac): ... to here.
18071         (Depends-on): Improve conditions.
18072
18073 2011-05-06  Bruno Haible  <bruno@clisp.org>
18074
18075         _Exit: Move AC_LIBOBJ invocations to module description.
18076         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
18077         invocations from here...
18078         * modules/_Exit (configure.ac): ... to here.
18079
18080 2011-05-21  Bruno Haible  <bruno@clisp.org>
18081
18082         euidaccess: Respect rules for use of AC_LIBOBJ.
18083         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18084         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
18085         from here...
18086         * modules/euidaccess (configure.ac): ... to here.
18087
18088 2011-05-06  Bruno Haible  <bruno@clisp.org>
18089
18090         error: Move AC_LIBOBJ invocations to module description.
18091         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
18092         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
18093         invocations from here...
18094         * modules/error (configure.ac): ... to here.
18095
18096 2011-05-06  Bruno Haible  <bruno@clisp.org>
18097
18098         duplocale: Move AC_LIBOBJ invocations to module description.
18099         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
18100         gl_PREREQ_DUPLOCALE invocations from here...
18101         * modules/duplocale (configure.ac): ... to here.
18102
18103 2011-05-05  Bruno Haible  <bruno@clisp.org>
18104
18105         dirfd: Move AC_LIBOBJ invocations to module description.
18106         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
18107         gl_FUNC_DIRFD.
18108         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
18109         here...
18110         * modules/dirfd (configure.ac): ... to here.
18111         (Depends-on): Fix condition.
18112
18113 2011-05-05  Bruno Haible  <bruno@clisp.org>
18114
18115         chown: Respect rules for use of AC_LIBOBJ.
18116         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
18117         * modules/chown (configure.ac): ... to here.
18118
18119 2011-05-05  Bruno Haible  <bruno@clisp.org>
18120
18121         chdir-long: Move AC_LIBOBJ invocations to module description.
18122         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
18123         gl_PREREQ_CHDIR_LONG invocations from here...
18124         * modules/chdir-long (configure.ac): ... to here.
18125
18126 2011-05-05  Bruno Haible  <bruno@clisp.org>
18127
18128         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
18129         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
18130         from here...
18131         * modules/canonicalize-lgpl (configure.ac): ... to here.
18132
18133 2011-05-05  Bruno Haible  <bruno@clisp.org>
18134
18135         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
18136         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
18137         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
18138         REPLACE_CALLOC.
18139         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
18140         * modules/calloc-gnu (configure.ac): Likewise.
18141
18142 2011-05-05  Bruno Haible  <bruno@clisp.org>
18143
18144         btowc: Move AC_LIBOBJ invocations to module description.
18145         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
18146         invocations from here...
18147         * modules/btowc (configure.ac): ... to here.
18148
18149 2011-05-21  Bruno Haible  <bruno@clisp.org>
18150
18151         atexit: Move AC_LIBOBJ invocations to module description.
18152         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
18153         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
18154         here...
18155         * modules/atexit (configure.ac): ... to here.
18156
18157 2011-05-05  Bruno Haible  <bruno@clisp.org>
18158
18159         atoll: Move AC_LIBOBJ invocations to module description.
18160         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
18161         invocations from here...
18162         * modules/atoll (configure.ac): ... to here.
18163
18164 2011-05-05  Bruno Haible  <bruno@clisp.org>
18165
18166         argz: Move AC_LIBOBJ invocations to module description.
18167         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
18168         * modules/argz (configure.ac): ... to here.
18169
18170 2011-05-05  Bruno Haible  <bruno@clisp.org>
18171
18172         alphasort: Move AC_LIBOBJ invocations to module description.
18173         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
18174         gl_PREREQ_ALPHASORT invocations from here...
18175         * modules/alphasort (configure.ac): ... to here.
18176
18177 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18178
18179         verify: new macro verify_expr; verify_true deprecated
18180         * NEWS: Mention this.
18181         * doc/verify.texi (Compile-time Assertions): Document this.
18182         * lib/verify.h (verify_true): Deprecate.
18183         (verify_expr): New macro.
18184         * tests/test-verify.c (function): Test verify_expr.
18185
18186 2011-06-14  Jim Meyering  <meyering@redhat.com>
18187
18188         init.sh: give more portable redirection-related advice in a comment
18189         * tests/init.sh (stderr_fileno_): Update the advice in comments.
18190         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
18191         for lots of discussion.  Stefano Lattarini suggested the solution
18192         of putting "9>&2" after the command.  Reported by Bruno Haible.
18193
18194 2011-06-13  Bruno Haible  <bruno@clisp.org>
18195
18196         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
18197         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
18198         'none'.
18199
18200 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
18201
18202         ftoastr: use strtof only if HAVE_STRTOF
18203         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
18204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
18205         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
18206         * modules/ftoastr (configure.ac): Check for strtof.
18207
18208 2011-06-13  Bruno Haible  <bruno@clisp.org>
18209
18210         gnulib-tool: Addendum to 2011-06-08 commit.
18211         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
18212         and --witness-c-macro have been given, augment AM_CPPFLAGS.
18213
18214 2011-06-13  Bruno Haible  <bruno@clisp.org>
18215
18216         fseeko: Provide a non-inline replacement of fseek().
18217         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
18218         * modules/fseeko (Depends-on): Add fseek.
18219         * modules/fseek (License): Change to LGPLv2+.
18220
18221 2011-06-13  Bruno Haible  <bruno@clisp.org>
18222
18223         ftello: Provide a non-inline replacement of ftell().
18224         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
18225         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
18226         not have ftello() (such as on mingw).
18227         * modules/ftello (Depends-on): Add ftell.
18228         * modules/ftell (License): Change to LGPLv2+.
18229
18230 2011-05-07  Bruno Haible  <bruno@clisp.org>
18231
18232         ftell: Move AC_LIBOBJ invocations to module description.
18233         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
18234         * modules/ftell (configure.ac): ... to here.
18235
18236 2011-05-07  Bruno Haible  <bruno@clisp.org>
18237
18238         ftello: Respect rules for use of AC_LIBOBJ.
18239         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
18240         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
18241         here...
18242         * modules/ftello (configure.ac): ... to here.
18243
18244 2011-05-07  Bruno Haible  <bruno@clisp.org>
18245
18246         fseeko: Simplify.
18247         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
18248         (gl_FUNC_FSEEKO): Inline it here.
18249
18250 2011-05-07  Bruno Haible  <bruno@clisp.org>
18251
18252         fseek: Move AC_LIBOBJ invocations to module description.
18253         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
18254         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18255         * modules/fseek (configure.ac): ... to here.
18256
18257 2011-05-07  Bruno Haible  <bruno@clisp.org>
18258
18259         fseek: Respect rules for use of AC_LIBOBJ.
18260         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
18261         here...
18262         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
18263
18264 2011-05-07  Bruno Haible  <bruno@clisp.org>
18265
18266         fseeko: Respect rules for use of AC_LIBOBJ.
18267         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
18268         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
18269         here...
18270         * modules/fseeko (configure.ac): ... to here.
18271
18272 2011-06-13  Bruno Haible  <bruno@clisp.org>
18273
18274         gnulib-tool: Allow comments in the 'Depends-on' section.
18275         * doc/gnulib.texi (Module description): Mention comment syntax in the
18276         Depends-on section.
18277         * gnulib-tool (func_get_dependencies): Filter out comment lines.
18278
18279 2011-06-13  Bruno Haible  <bruno@clisp.org>
18280
18281         file-set.h: guard __attibute__ use, now that it's not always defined
18282         * lib/file-set.h (record_file): Use __attribute__ only with compiler
18283         versions that support it.  This fixes a coreutils build failure with
18284         the vendor cc on HP-UX 11.31.
18285
18286 2011-06-12  Bruno Haible  <bruno@clisp.org>
18287
18288         acl: Add support for HP-UX >= 11.11 JFS ACLs.
18289         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
18290         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
18291         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
18292         (acl, aclsort): New declarations.
18293         (aclv_nontrivial): New declaration.
18294         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
18295         (file_has_acl): Read also the second kind of HP-UX ACLs.
18296         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
18297         kind of HP-UX ACLs if the first kind fails.
18298         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
18299         second kind of HP-UX ACLs.
18300         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
18301         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
18302         agree.
18303         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18304         hpuxjfs.
18305         Handle hpuxjfs.
18306         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18307         hpuxjfs.
18308         Handle hpuxjfs.
18309         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18310         (func_test_same_acls): Use both lsacl and getacl.
18311         Handle hpuxjfs.
18312         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18313         (func_test_same_acls): Use both lsacl and getacl.
18314         Handle hpuxjfs.
18315
18316 2011-06-12  Bruno Haible  <bruno@clisp.org>
18317
18318         acl: Complete the 2010-08-10 fix.
18319         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
18320         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
18321         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
18322         explicitly.
18323         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
18324         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
18325
18326 2011-06-12  Bruno Haible  <bruno@clisp.org>
18327
18328         spawn-pipe tests: Comments.
18329         * tests/test-spawn-pipe-child.c (main): Update comment.
18330         Reported by James Youngman <jay@gnu.org>.
18331
18332 2011-06-11  James Youngman  <jay@gnu.org>
18333
18334         New module 'stat-size'.
18335         * modules/stat-size: New module.  Provides macros for accessing
18336         file size information in instances of struct stat.  Depends on the
18337         fileblocks module because it calls st_blocks.
18338         * lib/stat-size.h: New file, adapted from coreutils' system.h.
18339         * doc/gnulib.texi: Include stat-size.texi.
18340         * doc/stat-size.texi: Documentation for this module.
18341         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
18342         * m4/fileblocks.m4: Mention that stat-size depends on the call to
18343         AC_STRUCT_ST_BLOCKS.
18344
18345 2011-06-09  Bruno Haible  <bruno@clisp.org>
18346
18347         thread: Support pthreads-win32.
18348         * lib/glthread/thread.h (gl_thread_self): Define differently on
18349         pthreads-win32.
18350         (gl_null_thread): New declaration.
18351         (gl_thread_self_pointer): New macro.
18352         * lib/glthread/thread.c (gl_null_thread): New constant.
18353         * tests/test-lock.c: Use gl_thread_self_pointer instead of
18354         gl_thread_self.
18355         * tests/test-tls.c: Likewise.
18356         Suggested by Paul Eggert. Reported by Eric Blake.
18357
18358 2011-06-09  Bruno Haible  <bruno@clisp.org>
18359
18360         thread: Fix confusion between NULL and 0.
18361         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
18362         Reported by Paul Eggert.
18363
18364 2011-06-09  Bruno Haible  <bruno@clisp.org>
18365
18366         spawn-pipe tests: Avoid test failure on HP-UX 11.
18367         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
18368         is closed.
18369
18370 2011-06-09  Bruno Haible  <bruno@clisp.org>
18371
18372         acl tests: Fix compilation error on HP-UX 11.
18373         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
18374
18375 2011-06-09  Bruno Haible  <bruno@clisp.org>
18376
18377         rmdir: Avoid test failure on HP-UX 10.20.
18378         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
18379         EEXIST.
18380
18381 2011-06-08  Eric Blake  <eblake@redhat.com>
18382
18383         perror: fix test on mingw
18384         * modules/perror-tests (Depends-on): Add dup2.
18385
18386         strerror_r-posix: fix on MacOS
18387         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
18388         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
18389         logic bug.
18390         * lib/strerror_r.c (strerror_r): Fix the bug.
18391         * lib/strerror.c (strerror): Likewise.
18392         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
18393         problem.
18394         * doc/posix-functions/strerror.texi (strerror): Likewise.
18395         * doc/posix-functions/perror.texi (perror): Likewise.
18396         * tests/test-strerror.c (main): Enhance test.
18397         * tests/test-strerror_r.c (main): Likewise.
18398
18399 2011-06-08  Bruno Haible  <bruno@clisp.org>
18400
18401         gnulib-tool: Better isolation between different gnulib-tool invocations.
18402         * gnulib-tool: New option --witness-c-macro.
18403         (witness_c_macro): New variable.
18404         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
18405         AM_CPPFLAGS define it as a C macro.
18406         (func_emit_tests_Makefile_am): Likewise.
18407         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
18408         read it from there.
18409         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
18410         m4_define, not AC_DEFUN.
18411         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
18412         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
18413         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
18414         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
18415         s|...|...|, to substitute the values of the GNULIB_* module indicator
18416         variables.
18417         * modules/dirent (Makefile.am): Likewise.
18418         * modules/fcntl-h (Makefile.am): Likewise.
18419         * modules/iconv-h (Makefile.am): Likewise.
18420         * modules/langinfo (Makefile.am): Likewise.
18421         * modules/locale (Makefile.am): Likewise.
18422         * modules/math (Makefile.am): Likewise.
18423         * modules/netdb (Makefile.am): Likewise.
18424         * modules/poll-h (Makefile.am): Likewise.
18425         * modules/pty (Makefile.am): Likewise.
18426         * modules/search (Makefile.am): Likewise.
18427         * modules/signal (Makefile.am): Likewise.
18428         * modules/spawn (Makefile.am): Likewise.
18429         * modules/stdio (Makefile.am): Likewise.
18430         * modules/stdlib (Makefile.am): Likewise.
18431         * modules/string (Makefile.am): Likewise.
18432         * modules/sys_ioctl (Makefile.am): Likewise.
18433         * modules/sys_select (Makefile.am): Likewise.
18434         * modules/sys_socket (Makefile.am): Likewise.
18435         * modules/sys_stat (Makefile.am): Likewise.
18436         * modules/sys_times (Makefile.am): Likewise.
18437         * modules/sys_utsname (Makefile.am): Likewise.
18438         * modules/sys_wait (Makefile.am): Likewise.
18439         * modules/termios (Makefile.am): Likewise.
18440         * modules/time (Makefile.am): Likewise.
18441         * modules/unistd (Makefile.am): Likewise.
18442         * modules/wchar (Makefile.am): Likewise.
18443
18444 2011-06-08  Eric Blake  <eblake@redhat.com>
18445
18446         strerror: simplify replacement
18447         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
18448         * modules/strerror (configure.ac): No prereqs needed here...
18449         * modules/strerror-override (configure.ac): ...but this needs it.
18450         (Files): Add file for needed prereq macro.
18451
18452 2011-06-08  Bruno Haible  <bruno@clisp.org>
18453
18454         strerror_r-posix: Tweaks.
18455         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
18456         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
18457         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
18458         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
18459         (gl_FUNC_STRERROR_R): ... to here.
18460         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
18461
18462 2011-06-07  Eric Blake  <eblake@redhat.com>
18463
18464         perror: document fixed bugs
18465         * doc/posix-functions/perror.texi (perror): Document recent
18466         patches.
18467
18468 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
18469
18470         stat-time: get_stat_birthtime failure is better-defined
18471         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
18472         return a timestamp whose tv_sec and tv_nsec values are both -1.
18473         Previously, the spec said only that the tv_nsec value was negative.
18474         This upward-compatible change simplifies GNU tar a bit.
18475
18476 2011-06-07  Eric Blake  <eblake@redhat.com>
18477
18478         strerror_r-posix: work around cygwin 1.7.9
18479         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
18480         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
18481         bug without replacing strerror_r.
18482         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
18483         strerror_r is buggy, but without requiring strerror_r compilation.
18484         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
18485
18486         test-perror: relax test to ignore cygwin bug
18487         * tests/test-perror2.c (main): Relax test on requiring detection
18488         of stream errors, and use unbuffered stream.
18489         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
18490         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
18491         * doc/posix-functions/fputc.texi (fputc): Likewise.
18492         * doc/posix-functions/fputs.texi (fputs): Likewise.
18493         * doc/posix-functions/fputws.texi (fputws): Likewise.
18494         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
18495         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
18496         * doc/posix-functions/getopt.texi (getopt): Likewise.
18497         * doc/posix-functions/perror.texi (perror): Likewise.
18498         * doc/posix-functions/printf.texi (printf): Likewise.
18499         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
18500         * doc/posix-functions/psignal.texi (psignal): Likewise.
18501         * doc/posix-functions/putc.texi (putc): Likewise.
18502         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
18503         Likewise.
18504         * doc/posix-functions/putchar.texi (putchar): Likewise.
18505         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
18506         Likewise.
18507         * doc/posix-functions/puts.texi (puts): Likewise.
18508         * doc/posix-functions/putwc.texi (putwc): Likewise.
18509         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
18510         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
18511         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18512         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
18513         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18514         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
18515         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18516         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
18517
18518 2011-05-22  Bruno Haible  <bruno@clisp.org>
18519
18520         strerror: Move AC_LIBOBJ invocations to module description.
18521         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
18522         gl_PREREQ_STRERROR invocations from here...
18523         * modules/strerror (configure.ac): ... to here.
18524
18525 2011-05-21  Bruno Haible  <bruno@clisp.org>
18526
18527         perror: Use common idiom.
18528         * modules/perror (configure.ac): Reorder statements.
18529
18530 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18531
18532         tests: fix usage message in 'mktempd_'
18533         * tests/init.sh (mktempd_): In the usage message, use literal
18534         'mktempd_', not '$ME' (which is even undefined), as the name of
18535         the subroutine.
18536
18537 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18538
18539         tests init: new function 'fatal_', for hard errors
18540         Before this patch, the only way offered by tests/init.sh to
18541         properly signal a hard error was the `framework_failure_'
18542         function.  But the error message issued by that function,
18543         as its name would suggest, refers to a set-up failure in the
18544         testsuite, while hard errors can obviously also be due to
18545         other reasons.  The best way to fix this inconsistency is to
18546         introduce a new function with a more general error message.
18547         * tests/init.sh (fatal_): New function.
18548
18549 2011-06-06  Eric Blake  <eblake@redhat.com>
18550
18551         canonicalize-lgpl: use common idiom
18552         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
18553         over newer POSIX -Rf.
18554         Reported by Bruno Haible.
18555
18556         canonicalize-lgpl: work around AIX realpath bug
18557         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
18558         * doc/posix-functions/realpath.texi (realpath): Document it.
18559         Reported by Bruno Haible.
18560
18561         strerror: work around FreeBSD bug
18562         * lib/strerror.c (strerror): Special case 0.
18563         Reported by Bruno Haible.
18564
18565         strerror-override: avoid bloating errno module
18566         * modules/errno (Files, configure.ac): Move replacement strings...
18567         * modules/strerror-override: ...to new module.
18568         * modules/strerror (Depends-on): Add strerror-override.
18569         * modules/strerror_r-posix (Depends-on): Likewise.
18570         * MODULES.html.sh: Document new module.
18571         Reported by Bruno Haible.
18572
18573 2011-06-06  Bruno Haible  <bruno@clisp.org>
18574
18575         spawn-pipe tests: Rename program.
18576         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
18577         * tests/test-spawn-pipe-child.c: Update comment.
18578         * tests/test-spawn-pipe.sh: Update.
18579         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
18580
18581         spawn-pipe tests: Link the child program only against libc.
18582         * tests/test-spawn-pipe-child.c: New file, extracted from
18583         tests/test-spawn-pipe.c.
18584         (main): Expect only one argument.
18585         (is_open): New function, copied from tests/test-pipe.c.
18586         * tests/test-spawn-pipe.c: Don't include <errno.h>.
18587         (child_main): Remove function.
18588         (test_pipe): Pass only one argument to the child program.
18589         (main): Remove child process code. Expect the child program's name as
18590         first argument.
18591         * tests/test-spawn-pipe.sh: Pass the child program's name as first
18592         argument.
18593         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
18594         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
18595         test-spawn-pipe-child against no libraries.
18596
18597 2011-06-06  Bruno Haible  <bruno@clisp.org>
18598
18599         careadlinkat: Avoid mismatch between ssize_t and int.
18600         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
18601         * lib/careadlinkat.c (careadlinkatcwd): Define always.
18602
18603 2011-06-06  Jim Meyering  <meyering@redhat.com>
18604
18605         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
18606         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
18607         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
18608
18609 2011-06-05  Bruno Haible  <bruno@clisp.org>
18610
18611         ansi-c++-opt: Interoperability with libtool.
18612         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
18613         set the variable to "no", not to ":".
18614         * NEWS: Mention the change.
18615
18616 2011-06-05  Bruno Haible  <bruno@clisp.org>
18617
18618         acl: Fix test failure on AIX 7.
18619         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
18620         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
18621
18622 2011-06-05  Bruno Haible  <bruno@clisp.org>
18623
18624         pipe-filter-ii: Fix test failure on AIX and IRIX.
18625         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
18626         with EAGAIN, retry with a smaller buffer size.
18627
18628 2011-06-05  Bruno Haible  <bruno@clisp.org>
18629
18630         localename: Fix link dependencies.
18631         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
18632         * modules/localename-tests (Makefile.am): Link test-localename with
18633         $(LIBTHREAD).
18634
18635 2011-06-05  Bruno Haible  <bruno@clisp.org>
18636
18637         error: Avoid gcc warning.
18638         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
18639
18640 2011-06-05  Bruno Haible  <bruno@clisp.org>
18641
18642         unsetenv: Avoid gcc warning.
18643         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
18644
18645 2011-06-05  Bruno Haible  <bruno@clisp.org>
18646
18647         setenv: Avoid gcc warning.
18648         * lib/setenv.c (setenv): Provide declaration if system lacks it.
18649
18650 2011-06-05  Bruno Haible  <bruno@clisp.org>
18651
18652         sys_select: Ensure memset is declared also on AIX 7.
18653         * lib/sys_select.in.h: Include <string.h> also on AIX.
18654         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
18655         self-contained also on AIX 7.1.
18656
18657 2011-06-04  Jim Meyering  <meyering@redhat.com>
18658
18659         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
18660         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
18661         function name, "error".
18662         (_gl_translatable_diag_func_re): New configurable variable.
18663
18664 2011-06-04  Bruno Haible  <bruno@clisp.org>
18665
18666         getopt: Avoid gcc warning.
18667         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
18668
18669 2011-06-04  Bruno Haible  <bruno@clisp.org>
18670
18671         strerror_r: Fix comments.
18672         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
18673         commit.
18674
18675 2011-06-04  Bruno Haible  <bruno@clisp.org>
18676
18677         perror: Fix compilation error.
18678         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
18679         Undefine fprintf, not sprintf.
18680         * modules/perror (Depends-on): Remove intprops, verify.
18681
18682 2011-06-04  Bruno Haible  <bruno@clisp.org>
18683
18684         setlocale: Enable replacement on Cygwin 1.5.
18685         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
18686         Cygwin 1.5.x.
18687         * doc/posix-functions/setlocale.texi: Mention that the problem with the
18688         LC_CTYPE category also exists on Cygwin 1.5.x.
18689
18690 2011-06-04  Bruno Haible  <bruno@clisp.org>
18691
18692         strerror-override: Don't disable symbol renamings.
18693         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
18694         * lib/strerror-override.c: Include config.h.
18695         (strerror_override): Don't undefine.
18696
18697 2011-06-03  Bruno Haible  <bruno@clisp.org>
18698
18699         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
18700         * lib/localename.h: Update copyright header.
18701         * lib/localename.c: Likewise.
18702         * lib/relocatable.h: Likewise.
18703         * lib/relocatable.c: Likewise.
18704
18705 2011-06-02  Bruno Haible  <bruno@clisp.org>
18706
18707         doc: Fix a module name.
18708         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
18709
18710 2011-06-02  Bruno Haible  <bruno@clisp.org>
18711
18712         pipe2: Remove dependency on 'nonblocking' module.
18713         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
18714         O_NONBLOCK is defined by gnulib.
18715         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
18716         is zero.
18717         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
18718         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
18719         defined by gnulib.
18720         (get_nonblocking_flag): New function.
18721         (main): Test O_NONBLOCK flag only if it is nonzero.
18722         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
18723
18724 2011-06-03  Jim Meyering  <meyering@redhat.com>
18725
18726         maint: three new prohibit-header-without-use rules
18727         Prohibit use of cloexec.h, posixver.h, same.h without use.
18728         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
18729         (sc_prohibit_posixver_without_use): Likewise.
18730         (sc_prohibit_same_without_use): Likewise.
18731
18732 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18733
18734         allocator: 'die' routine is now given requested size
18735         * lib/allocator.h (struct allocator.die): New size arg.
18736         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
18737         If the actual problem is an ssize_t limitation, not a size_t or
18738         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
18739
18740 2011-06-01  Eric Blake  <eblake@redhat.com>
18741
18742         strerror: drop strerror_r dependency
18743         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
18744         * lib/strerror-override.c (strerror_override): ...to new file.
18745         * lib/strerror-override.h: Add prototype.
18746         * lib/strerror-impl.h: Delete.
18747         * lib/strerror.c (strerror): New implementation.
18748         * modules/errno (Files): Add new files.
18749         (configure.ac): Compile new file as appropriate.
18750         * modules/strerror (Files): Drop unused file.
18751         (Depends-on): Drop strerror_r-posix.
18752         * MODULES.html.sh: Document strerror_r-posix.
18753         Requested by Sam Steingold.
18754
18755         perror: call strerror_r directly
18756         * modules/perror (Files): Drop strerror-impl.h.
18757         * lib/perror.c (perror): Use our own stack buffer, rather than
18758         calling a wrapper that uses static storage.
18759         * doc/posix-functions/perror.texi (perror): Document a limitation
18760         of our replacement.
18761
18762         strerror_r: fix includes for FreeBSD
18763         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
18764         since we use abort on some platforms.
18765         Reported by Matthias Bolte.
18766
18767 2011-05-31  Bruno Haible  <bruno@clisp.org>
18768
18769         Fix link errors in tests: openat-die uses gettext-h.
18770         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
18771         against $(LIBINTL).
18772         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
18773         against $(LIBINTL).
18774         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
18775         $(LIBINTL).
18776         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
18777         against $(LIBINTL).
18778         * modules/linkat-tests (Makefile.am): Link test-linkat against
18779         $(LIBINTL).
18780         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
18781         $(LIBINTL).
18782         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
18783         against $(LIBINTL).
18784         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
18785         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
18786         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
18787         $(LIBINTL).
18788         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
18789         $(LIBINTL).
18790         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
18791         $(LIBINTL).
18792         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18793
18794 2011-05-31  Bruno Haible  <bruno@clisp.org>
18795
18796         Fix link errors in tests: wait-process uses gettext-h.
18797         * modules/nonblocking-pipe-tests (Makefile.am): Set
18798         test_nonblocking_pipe_main_LDADD.
18799         * modules/nonblocking-socket-tests (Makefile.am): Link
18800         test-nonblocking-socket-main against $(LIBINTL).
18801         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18802
18803 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18804
18805         assert-h: work around 'verify' incompatibility
18806         * lib/verify.h: Use @...@ directives, not ifdef.
18807         * modules/assert-h (assert.h): Implement the directives.
18808         (assert.h): Substitute the symbol-prefix more consistently.
18809
18810 2011-05-29  Jim Meyering  <meyering@redhat.com>
18811
18812         trim: remove three superfluous assignments
18813         * lib/trim.c (trim2): Remove three superfluous assignments
18814         and correct brace positioning.
18815
18816 2011-05-29  Bruno Haible  <bruno@clisp.org>
18817
18818         wctype-h: Avoid namespace pollution on Solaris 2.6.
18819         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
18820         identifiers.
18821         * doc/posix-headers/wctype.texi: Mention the problem.
18822         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18823
18824 2011-05-28  Jim Meyering  <meyering@redhat.com>
18825
18826         parse-datetime.y: accommodate -Wstrict-overflow
18827         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
18828         placate -Wstrict-overflow.
18829
18830         trim: avoid a warning from -O2 -Wstrict-overflow
18831         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
18832
18833 2011-05-29  Bruno Haible  <bruno@clisp.org>
18834
18835         gnulib-tool: Fix bug in yesterday's commit.
18836         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
18837         twice.
18838
18839 2011-05-29  Bruno Haible  <bruno@clisp.org>
18840
18841         Allow multiple gnulib generated include files to be combined.
18842         * gnulib-tool (func_compute_include_guard_prefix): New function.
18843         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
18844         ${gl_include_guard_prefix} references.
18845         (func_import, func_create_testdir): Invoke
18846         func_compute_include_guard_prefix.
18847         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
18848         * lib/ctype.in.h: Likewise.
18849         * lib/dirent.in.h: Likewise.
18850         * lib/errno.in.h: Likewise.
18851         * lib/fcntl.in.h: Likewise.
18852         * lib/float.in.h: Likewise.
18853         * lib/getopt.in.h: Likewise.
18854         * lib/iconv.in.h: Likewise.
18855         * lib/langinfo.in.h: Likewise.
18856         * lib/locale.in.h: Likewise.
18857         * lib/math.in.h: Likewise.
18858         * lib/netdb.in.h: Likewise.
18859         * lib/netinet_in.in.h: Likewise.
18860         * lib/poll.in.h: Likewise.
18861         * lib/pthread.in.h: Likewise.
18862         * lib/pty.in.h: Likewise.
18863         * lib/sched.in.h: Likewise.
18864         * lib/se-selinux.in.h: Likewise.
18865         * lib/search.in.h: Likewise.
18866         * lib/signal.in.h: Likewise.
18867         * lib/spawn.in.h: Likewise.
18868         * lib/stdarg.in.h: Likewise.
18869         * lib/stddef.in.h: Likewise.
18870         * lib/stdint.in.h: Likewise.
18871         * lib/stdio.in.h: Likewise.
18872         * lib/stdlib.in.h: Likewise.
18873         * lib/string.in.h: Likewise.
18874         * lib/strings.in.h: Likewise.
18875         * lib/sys_file.in.h: Likewise.
18876         * lib/sys_ioctl.in.h: Likewise.
18877         * lib/sys_select.in.h: Likewise.
18878         * lib/sys_socket.in.h: Likewise.
18879         * lib/sys_stat.in.h: Likewise.
18880         * lib/sys_time.in.h: Likewise.
18881         * lib/sys_times.in.h: Likewise.
18882         * lib/sys_uio.in.h: Likewise.
18883         * lib/sys_utsname.in.h: Likewise.
18884         * lib/sys_wait.in.h: Likewise.
18885         * lib/sysexits.in.h: Likewise.
18886         * lib/termios.in.h: Likewise.
18887         * lib/time.in.h: Likewise.
18888         * lib/unistd.in.h: Likewise.
18889         * lib/wchar.in.h: Likewise.
18890         * lib/wctype.in.h: Likewise.
18891         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
18892         * modules/ctype (Makefile.am): Likewise.
18893         * modules/dirent (Makefile.am): Likewise.
18894         * modules/errno (Makefile.am): Likewise.
18895         * modules/fcntl-h (Makefile.am): Likewise.
18896         * modules/float (Makefile.am): Likewise.
18897         * modules/getopt-posix (Makefile.am): Likewise.
18898         * modules/iconv-h (Makefile.am): Likewise.
18899         * modules/langinfo (Makefile.am): Likewise.
18900         * modules/locale (Makefile.am): Likewise.
18901         * modules/math (Makefile.am): Likewise.
18902         * modules/netdb (Makefile.am): Likewise.
18903         * modules/netinet_in (Makefile.am): Likewise.
18904         * modules/poll-h (Makefile.am): Likewise.
18905         * modules/pthread (Makefile.am): Likewise.
18906         * modules/pty (Makefile.am): Likewise.
18907         * modules/sched (Makefile.am): Likewise.
18908         * modules/search (Makefile.am): Likewise.
18909         * modules/selinux-h (Makefile.am): Likewise.
18910         * modules/signal (Makefile.am): Likewise.
18911         * modules/spawn (Makefile.am): Likewise.
18912         * modules/stdarg (Makefile.am): Likewise.
18913         * modules/stddef (Makefile.am): Likewise.
18914         * modules/stdint (Makefile.am): Likewise.
18915         * modules/stdio (Makefile.am): Likewise.
18916         * modules/stdlib (Makefile.am): Likewise.
18917         * modules/string (Makefile.am): Likewise.
18918         * modules/strings (Makefile.am): Likewise.
18919         * modules/sys_file (Makefile.am): Likewise.
18920         * modules/sys_ioctl (Makefile.am): Likewise.
18921         * modules/sys_select (Makefile.am): Likewise.
18922         * modules/sys_socket (Makefile.am): Likewise.
18923         * modules/sys_stat (Makefile.am): Likewise.
18924         * modules/sys_time (Makefile.am): Likewise.
18925         * modules/sys_times (Makefile.am): Likewise.
18926         * modules/sys_uio (Makefile.am): Likewise.
18927         * modules/sys_utsname (Makefile.am): Likewise.
18928         * modules/sys_wait (Makefile.am): Likewise.
18929         * modules/sysexits (Makefile.am): Likewise.
18930         * modules/termios (Makefile.am): Likewise.
18931         * modules/time (Makefile.am): Likewise.
18932         * modules/unistd (Makefile.am): Likewise.
18933         * modules/wchar (Makefile.am): Likewise.
18934         * modules/wctype-h (Makefile.am): Likewise.
18935         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
18936
18937 2011-05-29  Bruno Haible  <bruno@clisp.org>
18938
18939         assert-h: Allow multiple gnulib generated replacements to coexist.
18940         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
18941
18942 2011-05-29  Bruno Haible  <bruno@clisp.org>
18943
18944         argp: Allow coexistence with strerror_r-posix module.
18945         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
18946         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
18947         by gnulib's <string.h> replacement), assume it has the POSIX signature,
18948         not the glibc signature.
18949
18950 2011-05-28  Bruno Haible  <bruno@clisp.org>
18951
18952         gnulib-tool: Alternative structure of testdirs, similar to --import.
18953         * gnulib-tool: New option --single-configure.
18954         (func_usage): Document it.
18955         (single_configure): New variable.
18956         (func_modules_transitive_closure_separately,
18957         func_modules_transitive_closure_separately,
18958         func_determine_use_libtests, func_modules_add_dummy_separately,
18959         func_modules_to_filelist_separately): New functions, extracted from
18960         func_import.
18961         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
18962         (func_import): Use the new functions.
18963         (func_create_testdir): Set final_modules. Handle $single_configure =
18964         true case.
18965
18966 2011-05-28  Bruno Haible  <bruno@clisp.org>
18967
18968         getloadavg: Remove an unreliable safety check.
18969         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
18970         getloadavg.c is in place.
18971         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
18972         Reported by Sam Steingold <sds@gnu.org>.
18973
18974 2011-05-28  Bruno Haible  <bruno@clisp.org>
18975
18976         doc: Cleanup yet another file produced by texinfo.tex.
18977         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
18978
18979 2011-05-28  Bruno Haible  <bruno@clisp.org>
18980
18981         Finish the conditional dependencies mechanism.
18982         * gnulib-tool: New option --no-conditional-dependencies.
18983         (func_usage): Document it. Don't mark --conditional-dependencies as
18984         experimental.
18985         (cond_dependencies): The possible values can now be true, false, empty.
18986         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
18987         (func_import): Store setting in gnulib-cache.m4 and read it from there.
18988         * doc/gnulib-tool.texi (Conditional dependencies): New section.
18989
18990 2011-05-28  Bruno Haible  <bruno@clisp.org>
18991
18992         doc: Use a recent texinfo.tex.
18993         * doc/Makefile (tex_opts): New variable.
18994         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
18995
18996 2011-05-28  Jim Meyering  <meyering@redhat.com>
18997
18998         intprops.h: adjust comment to match code change
18999         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
19000         only once, it *may* have side effects.  Also fix an unrelated typo.
19001         (_GL_INT_SIGNED): Likewise.
19002
19003 2011-05-26  Simon Josefsson  <simon@josefsson.org>
19004
19005         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
19006
19007 2011-05-26  Bruno Haible  <bruno@clisp.org>
19008
19009         mbsrchr: Avoid collision with system function on Interix.
19010         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
19011         Reported by Markus Duft <mduft@gentoo.org>.
19012
19013 2011-05-15  James Youngman  <jay@gnu.org>
19014
19015         getopt: for ambiguous options, enumerate the possibilities.
19016         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
19017         the ambiguous options when an ambiguous prefix is given. This was
19018         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
19019         glibc change was
19020         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
19021
19022 2011-05-25  Eric Blake  <eblake@redhat.com>
19023
19024         getcwd: work around mingw bug
19025         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
19026         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19027         Reported by Matthias Bolte.
19028
19029 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
19030
19031         test-intprops: disable -Wtype-limits diagnostics
19032         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
19033         diagnostics.  Otherwise, the integer overflow macros generate many
19034         diagnostics.  Reported by Jim Meyering in
19035         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19036
19037         intprops: shorten, to pacify gcc -Woverlength-strings
19038         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
19039         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
19040         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
19041         likely to run afoul of C compiler limits for string constant lengths.
19042         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19043
19044 2011-05-24  Eric Blake  <eblake@redhat.com>
19045
19046         docs: document recently fixed glibc printf bug
19047         * doc/posix-functions/fprintf.texi (fprintf): Document it.
19048         * doc/posix-functions/printf.texi (printf): Likewise.
19049         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19050         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19051
19052         closein-tests: convert to init.sh
19053         * modules/closein-tests (Files): Add init.sh
19054         * tests/test-closein.sh Use it.
19055
19056         yesno-tests: convert to init.sh
19057         * modules/yesno-tests (Files): Add init.sh.
19058         * tests/test-yesno.sh: Use it.
19059
19060         atexit-tests: ensure reliable exit status
19061         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
19062         Reported by Bruno Haible.
19063
19064 2011-05-24  Bruno Haible  <bruno@clisp.org>
19065
19066         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
19067         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
19068         gl_PREREQ_STRERROR_R invocations from here...
19069         * modules/strerror_r-posix (configure.ac): ... to here.
19070
19071 2011-05-24  Eric Blake  <eblake@redhat.com>
19072
19073         strerror_r: fix missing header
19074         * lib/strerror_r.c: Avoid compiler warning about snprintf.
19075
19076         strerror_r: fix AIX test failures
19077         * lib/strerror_r.c (strerror_r): Convert silent truncation to
19078         ERANGE failure.
19079
19080         strerror_r: fix Solaris test failures
19081         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
19082         failures.
19083         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19084
19085         strerror_r: enforce POSIX recommendations
19086         * lib/strerror_r.c (safe_copy): New helper method.
19087         (strerror_r): Guarantee a non-empty string.
19088         * tests/test-strerror_r.c (main): Enhance tests to incorporate
19089         recent POSIX rulings and to match our strerror guarantees.
19090         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19091
19092 2011-05-24  Jim Meyering  <meyering@redhat.com>
19093
19094         test-perror2.c: avoid warning about unused variable
19095         * tests/test-perror2.c (main): Remove declaration of unused "fp".
19096
19097 2011-05-24  Eric Blake  <eblake@redhat.com>
19098
19099         perror: avoid spurious test failure on HP-UX
19100         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
19101
19102         tests: fix logic bug in init.sh
19103         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
19104         shell.
19105
19106 2011-05-24  Jim Meyering  <meyering@redhat.com>
19107
19108         utimensat: do not reference an out-of-scope buffer
19109         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
19110         declared in an inner scope, yet "times" would be dereferenced outside
19111         the scope in which "ts" was valid.
19112         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
19113         of ts[2] "out/up", so that the use of aliased "times" (via
19114         "times = ts;") does not end up referencing an out-of-scope "ts"
19115
19116         opendir-safer.c: don't clobber errno; don't close negative FD
19117         * lib/opendir-safer.c (opendir_safer):
19118         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
19119         file descriptor, and more importantly, don't clobber the
19120         offending errno value with EINVAL.  Before, upon failure
19121         of dup_safer, we would pass the negative file descriptor to
19122         fdopendir, which would clobber errno.
19123
19124 2011-05-23  Bruno Haible  <bruno@clisp.org>
19125
19126         idcache: Fix module description.
19127         * modules/idcache (Include): Set to "idcache.h".
19128
19129 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19130
19131         gnulib-tool: fix portability problem with MacOS sed
19132         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
19133         before the "}".  Problem reported by Leo in
19134         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
19135         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
19136         sed_extract_condition1, sed_extract_condition2.
19137
19138 2011-05-23  Bruno Haible  <bruno@clisp.org>
19139
19140         hash: Simplify autoconf macro.
19141         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
19142
19143 2011-05-23  Bruno Haible  <bruno@clisp.org>
19144
19145         getugroups: Fix module description.
19146         * modules/getugroups (Include): Set to "getugroups.h".
19147
19148 2011-05-23  Bruno Haible  <bruno@clisp.org>
19149
19150         linkat: Simplify autoconf macro.
19151         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
19152
19153 2011-05-23  Bruno Haible  <bruno@clisp.org>
19154             Eric Blake  <eblake@redhat.com>
19155
19156         linkat, renameat: Update dependencies.
19157         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
19158         * modules/linkat (Depends-on): Likewise. Remove also readlink,
19159         symlinkat.
19160
19161 2011-05-23  Jim Meyering  <meyering@redhat.com>
19162
19163         maint.mk: more tight_scope improvements
19164         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
19165         (_gl_TS_headers): Define only in if-0'd block.
19166         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
19167         sometimes we must *not* use it.  Adjust uses accordingly.
19168         (sc_tight_scope): Use much simpler grep-based test to determine
19169         whether we skip this rule.
19170
19171         maint.mk: generalize/improve the tight-scope rule
19172         * top/maint.mk: Emit a warning when the test is skipped.
19173         (_gl_TS_dir): Add $(srcdir)/ prefix.
19174         (_gl_TS_function_match): Simplify, rather than trying
19175         to enumerate common types.  Otherwise, it would fail to match an
19176         "extern unsigned char const *" declaration in idutils.
19177         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
19178         a way to support use of that type of macro.
19179         (_gl_TS_var_match): Simplify regexp.
19180         (_gl_TS_obj_files): New configurable variable.
19181         (_gl_TS_headers): Likewise.
19182
19183 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19184
19185         verify: fix bug when gnulib <assert.h> is also included
19186         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
19187         is defined, not if _GL_STATIC_ASSERT_H is not defined.
19188         Perhaps there's a better way, but this fixes the immediate problem.
19189         Problem reported by Bruno Haible in
19190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
19191
19192 2011-05-22  Bruno Haible  <bruno@clisp.org>
19193
19194         xgetcwd: Simplify autoconf macro.
19195         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
19196
19197 2011-05-22  Bruno Haible  <bruno@clisp.org>
19198
19199         New module 'mktime-internal'.
19200         * modules/mktime-internal: New file.
19201         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
19202         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
19203         mktime_internal as a C macro if libc has __mktime_internal.
19204         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
19205         conditions.
19206         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
19207
19208 2011-05-22  Bruno Haible  <bruno@clisp.org>
19209
19210         timegm: Correct mktime replacement statements.
19211         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
19212         defining mktime as a C macro. This completes a 2009-07-28 commit.
19213
19214 2011-05-22  Bruno Haible  <bruno@clisp.org>
19215
19216         timegm: Simplify autoconf macro.
19217         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
19218
19219 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19220
19221         clock-time: change to LGPLv2+.
19222         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
19223         BSD-like but we have no mark for that; this is good enough for now.
19224
19225 2011-05-21  Bruno Haible  <bruno@clisp.org>
19226
19227         strerror_r: Fix comments.
19228         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
19229
19230 2011-05-21  Bruno Haible  <bruno@clisp.org>
19231
19232         relocatable-prog-wrapper: Fix possible link error.
19233         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
19234         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
19235         (gl_FUNC_SETENV): ... to here.
19236         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
19237         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
19238
19239 2011-05-21  Bruno Haible  <bruno@clisp.org>
19240
19241         relocatable-prog-wrapper: Assume strerror() exists.
19242         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
19243         m4/strerror.m4.
19244         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
19245         * lib/relocwrapper.c: Remove mention of strerror module.
19246         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
19247         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
19248         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
19249         C macro.
19250
19251 2011-05-21  Bruno Haible  <bruno@clisp.org>
19252
19253         select: Simplify replacement idiom.
19254         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
19255         Win32 platforms.
19256         * lib/sys_select.in.h (select): Simplify accordingly.
19257         * modules/select (Depends-on): Likewise.
19258
19259 2011-05-21  Bruno Haible  <bruno@clisp.org>
19260
19261         mkdir-p: Simplify autoconf macro.
19262         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
19263         gl_FUNC_LCHOWN.
19264
19265 2011-05-21  Eric Blake  <eblake@redhat.com>
19266
19267         strerror_r: avoid clobbering strerror on cygwin
19268         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
19269         fall back instead to sys_errlist.
19270         * modules/strerror (configure.ac): Add witness.
19271         * tests/test-strerror_r.c (main): Enhance test.
19272         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19273         * tests/test-perror2.c (main): Free memory before exit.
19274
19275 2011-05-21  Bruno Haible  <bruno@clisp.org>
19276
19277         mkdtemp: Use gnulib naming conventions.
19278         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
19279         * modules/mkdtemp (configure.ac): Update.
19280
19281 2011-05-20  Eric Blake  <eblake@redhat.com>
19282
19283         strerror_r: avoid corrupting errno on Solaris
19284         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
19285         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19286
19287         strerror_r: avoid compiler warning
19288         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
19289
19290         strerror_r: simplify AIX code
19291         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
19292
19293         test-perror: avoid spurious failure on FreeBSD
19294         * modules/perror-tests (Depends-on): Add strerror, now that
19295         strerror_r no longer pulls it in.
19296
19297 2011-05-20  Bruno Haible  <bruno@clisp.org>
19298
19299         strerror_r-posix: Remove unused dependencies.
19300         * modules/strerror_r-posix (Depends-on): Remove strerror.
19301         Reported by Eric Blake.
19302
19303 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19304
19305         intprops: remove assumption about A|B representation
19306         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
19307         is a valid integer if both A and B are.  Although this is true for
19308         all known practical hosts, the C standard doesn't guarantee it,
19309         and the code need not assume it.  Also, this change may work around
19310         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
19311         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
19312
19313 2011-05-20  Eric Blake  <eblake@redhat.com>
19314
19315         perror: work around FreeBSD bug
19316         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
19317         is broken.  Move AC_LIBOBJ...
19318         * modules/perror (configure.ac): Here.
19319         * doc/posix-functions/perror.texi (perror): Document this.
19320         * tests/test-perror2.c (main): Enhance test.
19321
19322         test-perror: check for strerror interactions
19323         * tests/macros.h (STREQ): Add macro.
19324         * modules/perror-tests (Files): Add second test.
19325         * tests/test-perror2.c (main): New file.
19326         * doc/posix-functions/perror.texi (perror): Document glibc bug.
19327
19328         test-perror: rewrite to use init script
19329         * modules/perror-tests (Files): Add init.sh.
19330         * tests/test-perror.sh: Use temporary directory.
19331
19332 2011-05-20  Jim Meyering  <meyering@redhat.com>
19333
19334         maint: replace misused "a" with "an"
19335         * doc/intprops.texi: "a integer"
19336         * doc/regex.texi: "a explanation"
19337         * lib/alignof.h: "a object"
19338         * lib/argmatch.h: "a explanation"
19339         * lib/argp-help.c: "a option" and "a OPTION_DOC"
19340         * lib/stdint.in.h: "a integer"
19341         * lib/userspec.c: "a owner"
19342         * doc/gnulib.texi: Fix "a idea", and reword.
19343
19344 2011-05-19  Jim Meyering  <meyering@redhat.com>
19345
19346         maint: correct misuse of "a" and "an"
19347         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
19348         * lib/argp-help.c: "an docum...": s/an/a/
19349         * lib/argp-parse.c: "An vector": s/An/A/
19350         * lib/execute.c: "an native": s/an/a/
19351         * lib/spawn-pipe.c: Likewise.
19352         * lib/gc.h: "an Gc_rc": s/an/a/
19353         * lib/unigbrk.in.h: "an grapheme": s/an/a/
19354         * lib/fts.c: "an stat.st_dev": s/an/a/
19355
19356 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19357
19358         intprops-tests: work around HP-UX 11.23 cc bug with constants
19359         * tests/test-intprops.c (VERIFY): New macro.
19360         (main): Use it, instead of verify, to work around the compiler bug; see
19361         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19362
19363         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
19364         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
19365         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
19366         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
19367         (_GL_REMAINDER_OVERFLOW): Use it.
19368
19369         intprops-tests: revert unsigned part of previous change
19370         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
19371         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
19372         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
19373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
19374
19375 2011-05-19  Bruno Haible  <bruno@clisp.org>
19376
19377         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
19378         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
19379         strerror_r() returned without filling the buffer.
19380         Reported by Eric Blake.
19381
19382 2011-05-19  Eric Blake  <eblake@redhat.com>
19383
19384         strerror_r: guarantee unchanged errno
19385         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
19386         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
19387         failure.
19388         * tests/test-strerror_r.c (main): Enhance test.
19389
19390 2011-05-19  Bruno Haible  <bruno@clisp.org>
19391
19392         strerror_r: Reorder #if blocks.
19393         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
19394         for consistency with the previous commit.
19395
19396 2011-05-19  Bruno Haible  <bruno@clisp.org>
19397
19398         perror: Avoid clobbering the strerror buffer when possible.
19399         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
19400         * lib/strerror.c: Include it.
19401         * modules/strerror (Files): Add lib/strerror-impl.h.
19402         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
19403         (my_strerror): New function, defined through lib/strerror-impl.h.
19404         (perror): Use it instead of strerror.
19405         * modules/perror (Files): Add lib/strerror-impl.h.
19406         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
19407
19408 2011-05-19  Eric Blake  <eblake@redhat.com>
19409
19410         strerror_r: fix on newer cygwin
19411         * lib/strerror_r.c (strerror_r): Cygwin now has
19412         __xpg_strerror_r, use it.
19413
19414 2011-05-19  Bruno Haible  <bruno@clisp.org>
19415
19416         strerror_r: Avoid clobbering the strerror buffer when possible.
19417         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
19418         (sys_nerr, sys_errlist): New declarations.
19419         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
19420         HP-UX, native Win32, IRIX, and 32-bit Solaris.
19421         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
19422
19423 2011-05-19  Bruno Haible  <bruno@clisp.org>
19424
19425         strerror_r: Fix test failure on mingw.
19426         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
19427         EXTEND_STRERROR_R.
19428         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
19429         macros from errno.in.h instead.
19430
19431 2011-05-19  Eric Blake  <eblake@redhat.com>
19432
19433         strerror: relax test for Solaris
19434         * tests/test-strerror.c (main): Permit Solaris behavior.
19435         * tests/test-strerror_r.c (main): Likewise.
19436
19437         strerror: enforce POSIX ruling on strerror(0)
19438         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
19439         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19440         * lib/strerror_r.c (rpl_strerror_r): Work around it.
19441         * doc/posix-functions/strerror.texi (strerror): Document it.
19442         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
19443         * tests/test-strerror.c (main): Strengthen test.
19444         * tests/test-strerror_r.c (main): Likewise.
19445
19446 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19447
19448         intprop-tests: port to older and more-pedantic compilers
19449         * modules/intprops-tests (Files): Add tests/macros.h.
19450         * tests/test-intprops.c: Include macros.h.
19451         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
19452         it's no longer documented to expand to an integer constant expression.
19453         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
19454         argument is floating point, as it's no longer documented to expand
19455         to an integer constant expression in that case.
19456         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
19457         compiler bugs reported by Bruno Haible.  See
19458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19459         (U0, U1): New constants, to work around the same bugs.  Also,
19460         in tests, use e.g., "(unsigned int) 39" rather than "39u".
19461
19462         intprops: work around C compiler bugs
19463         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
19464         bug in Sun C 5.11 2010/08/13 and other compilers; see
19465         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19466
19467         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
19468         * doc/intprops.texi (Integer Type Determination): Fix
19469         documentation for TYPE_IS_INTEGER: it returns an constant
19470         expression, not an integer constant expression.  Fix doc for
19471         TYPE_SIGNED: it returns an integer constant expression only if its
19472         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
19473         hardly worth documented that way....)
19474
19475 2011-05-18  Bruno Haible  <bruno@clisp.org>
19476
19477         strerror_r: Avoid clobbering the strerror buffer when possible.
19478         * lib/strerror_r.c (strerror_r): Merge the three implementations.
19479         Handle gnulib defined errno values here. When strerror() returns NULL
19480         or an empty string, return EINVAL.
19481         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
19482         gnulib defined errno values here.
19483         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
19484
19485 2011-05-18  Eric Blake  <eblake@redhat.com>
19486
19487         fnmatch: avoid compiler warning
19488         * lib/fnmatch_loop.c (FCT): Use correct type.
19489         Reported by Matthias Bolte.
19490
19491 2011-05-13  Jim Meyering  <meyering@redhat.com>
19492
19493         maint.mk: three new prohibit_<HDR>_without_use rules
19494         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
19495         (sc_prohibit_stdio-safer_without_use): Likewise.
19496         (sc_prohibit_xfreopen_without_use): Likewise.
19497
19498 2011-05-17  Jim Meyering  <meyering@redhat.com>
19499
19500         announce-gen: fail if the NEWS delta is empty
19501         If there's nothing noteworthy in NEWS, then either you forgot
19502         or you shouldn't be releasing.
19503         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
19504
19505 2011-05-17  Pádraig Brady <P@draigBrady.com>
19506
19507         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
19508         reserved symbols starting with double underscore from the check.
19509
19510 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
19511
19512         intprops: add doc
19513         * doc/intprops.texi: New file, documenting intprops.
19514         * doc/gnulib.texi (Particular Modules): Include it.
19515
19516         verify: add doc to gnulib manual and fix example
19517         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
19518         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
19519         (Compile-time Assertions): Fix example so it can't overflow.
19520
19521 2011-05-17  Jim Meyering  <meyering@redhat.com>
19522
19523         warnings.m4: don't usurp save_CPPFLAGS variable name
19524         * m4/warnings.m4: Prefix local temporary variable name with gl_.
19525
19526         doc: fix typo
19527         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
19528
19529 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19530             Bruno Haible  <bruno@clisp.org>
19531
19532         doc: Tweak recent change.
19533         * README (Portability guidelines): Tweak new text.
19534         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
19535         Interix 6.1.
19536
19537 2011-05-16  Eric Blake  <eblake@redhat.com>
19538
19539         inttypes: avoid autoconf warning
19540         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
19541         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19542
19543 2011-05-16  Sam Steingold <sds@gnu.org>
19544         and Eric Blake  <eblake@redhat.com>
19545
19546         vc-list-files: accept multiple directory operands
19547         * build-aux/vc-list-files: Iterate over all remaining operands.
19548
19549 2011-05-16  Bruno Haible  <bruno@clisp.org>
19550
19551         Fix confusion regarding deprecated modules.
19552         * modules/calloc (Status, Notice): Mark module as deprecated, not
19553         obsolete.
19554         * modules/fnmatch-posix (Status, Notice): Likewise.
19555         * modules/getdate (Status, Notice): Likewise.
19556         * modules/getopt (Status, Notice): Likewise.
19557         * modules/malloc (Status, Notice): Likewise.
19558         * modules/pipe (Status, Notice): Likewise.
19559         * modules/realloc (Status, Notice): Likewise.
19560         * modules/rename-dest-slash (Status, Notice): Likewise.
19561         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
19562         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
19563         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
19564         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
19565         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
19566
19567 2011-05-16  Bruno Haible  <bruno@clisp.org>
19568
19569         doc: List the target platforms.
19570         * doc/gnulib-intro.texi (Target Platforms): New section.
19571         * doc/gnulib.texi (Introduction): Update menu.
19572         * README (Portability guidelines): Refer to the new section. Update
19573         statement about oldest supported environment. Remove rationale why
19574         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
19575         unportable C89 function.
19576         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
19577         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
19578
19579 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19580
19581         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
19582
19583 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
19584
19585         intprops-tests: new module
19586         * modules/intprops-tests, tests/test-intprops.c: New files.
19587
19588         intprops: add safe, portable integer overflow checking
19589         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
19590         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
19591         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
19592         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
19593         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
19594         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
19595         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
19596         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
19597         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
19598         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
19599         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
19600
19601 2011-05-12  James Youngman  <jay@gnu.org>
19602
19603         Add a test for glibc's Bugzilla bug #12378.
19604         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
19605         doesn't allow the literal matching of a lone "[" (which is
19606         required by POSIX).
19607         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
19608
19609 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19610
19611         Sync glibc change fixing Bugzilla bug #12378.
19612         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
19613         beginning and fall back to matching as normal character if the
19614         string ends before the matching ']' is found.  This is what POSIX
19615         requires.
19616
19617 2011-05-13  Eric Blake  <eblake@redhat.com>
19618
19619         getcwd-lgpl: relax test for FreeBSD
19620         * doc/posix-functions/getcwd.texi (getcwd): Document portability
19621         issue.
19622         * tests/test-getcwd-lgpl.c (main): Relax test.
19623         Reported by Matthias Bolte.
19624
19625 2011-05-11  Eric Blake  <eblake@redhat.com>
19626
19627         test-fflush: silence compiler warning
19628         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
19629
19630 2011-05-11  Bruno Haible  <bruno@clisp.org>
19631
19632         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
19633         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
19634         * modules/canonicalize (Depends-on): Add 'nocrash'.
19635         * modules/canonicalize-lgpl (Depends-on): Likewise.
19636         * doc/posix-functions/realpath.texi: Update platforms list.
19637         Reported by Ryan Schmidt <ryandesign@macports.org>.
19638
19639 2011-05-11  Bruno Haible  <bruno@clisp.org>
19640
19641         group-member: Declare function in <unistd.h>.
19642         * lib/unistd.in.h (group_member): New declaration.
19643         * lib/group-member.h: Remove file.
19644         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
19645         * tests/test-unistd-c++.cc: Check signature of group_member.
19646         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
19647         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
19648         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
19649         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
19650         HAVE_GROUP_MEMBER.
19651         * modules/group-member (Files): Remove lib/group-member.h.
19652         (Depends-on): Add unistd. Specify conditions.
19653         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19654         (Include): Change to <unistd.h>.
19655         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
19656         HAVE_GROUP_MEMBER.
19657         * NEWS: Mention the change.
19658         * lib/euidaccess.c: Don't include group-member.h.
19659
19660 2011-05-11  Bruno Haible  <bruno@clisp.org>
19661
19662         group-member: Document module.
19663         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
19664         module.
19665
19666 2011-05-11  Bruno Haible  <bruno@clisp.org>
19667
19668         fclose: Fix mistake earlier today.
19669         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
19670
19671 2011-05-11  Eric Blake  <eblake@redhat.com>
19672
19673         fclose: preserve fflush errors
19674         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
19675         Reported by Jim Meyering.
19676
19677         bootstrap: support a prereq of 'rpcgen -' on RHEL5
19678         * build-aux/bootstrap (check_versions): When no specific version
19679         is required, merely check that the app produces an exit status
19680         that indicates its existence.
19681
19682         maint.mk: drop redundant check
19683         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
19684         the same but better.
19685
19686 2011-05-11  Bruno Haible  <bruno@clisp.org>
19687
19688         fclose: Fix possible link error.
19689         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
19690         unregister_shadow_fd. Improve comments.
19691         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
19692         Eric Blake.
19693
19694 2011-05-11  Jim Meyering  <meyering@redhat.com>
19695
19696         maint.mk: improve "can not" detection and generalize rule name
19697         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
19698         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
19699         Use the same technique as in sc_prohibit_doubled_word, so that
19700         we recognize "can not" also when the words are separated by a newline.
19701         Suggested by Eric Blake.
19702         (perl_filename_lineno_text_): Define.  Factored out of...
19703         (prohibit_doubled_word_): ...here.  Use the new definition.
19704         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
19705         (prohibit_undesirable_word_seq_RE_): New overridable variable.
19706         (ignore_undesirable_word_sequence_RE_): New overridable variable.
19707
19708 2011-05-10  Eric Blake  <eblake@redhat.com>
19709
19710         fclose: avoid double close race when possible
19711         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
19712         all but WINDOWS_SOCKETS.
19713
19714 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
19715
19716         openat: correct new comment
19717         * lib/openat-proc.c (openat_proc_name): Correct the comment.
19718
19719 2011-05-10  Jim Meyering  <meyering@redhat.com>
19720
19721         openat: add comments
19722         * lib/openat-proc.c (openat_proc_name): Add comments,
19723         mostly from Eric Blake.
19724
19725 2011-05-09  Eric Blake  <eblake@redhat.com>
19726
19727         openat: reduce syscalls in first probe of /proc
19728         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
19729         be a directory.  Simplify the probe for .. bugs.
19730         * modules/openat (Depends-on): Drop same-inode.
19731         Reported by Bastien ROUCARIES.
19732
19733 2011-05-09  Jim Meyering  <meyering@redhat.com>
19734
19735         maint.mk: change semantics/name of tight_scope variables
19736         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
19737         Rename variables to align with semantics that make them more useful.
19738
19739         maint.mk: tweak new rule's name not to impinge
19740         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
19741         (sc_tight_scope): Use new rule name rather than $@-0.
19742
19743         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
19744         * top/maint.mk (sc_tight_scope): New rule.
19745         (sc_tight_scope-0): New rule, ifdef'd out.
19746         (_gl_TS_dir): Default.
19747         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
19748         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
19749
19750 2011-05-09  Simon Josefsson  <simon@josefsson.org>
19751
19752         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
19753         Haible <bruno@clisp.org>.
19754
19755 2011-05-08  Bruno Haible  <bruno@clisp.org>
19756
19757         Comments.
19758         * m4/isnanf.m4: Add comment.
19759         * m4/isnanl.m4: Likewise.
19760
19761 2011-05-08  Bruno Haible  <bruno@clisp.org>
19762
19763         glob: Remove obsolete macro.
19764         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
19765
19766 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19767
19768         intprops: Sun C 5.11 supports __typeof__
19769         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
19770         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
19771         which is new.
19772         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
19773
19774         intprops: switch to usual gnulib indenting and naming
19775         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
19776         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
19777
19778         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
19779
19780 2011-05-08  Jim Meyering  <meyering@redhat.com>
19781
19782         maint.mk: suppress "Entering/Leaving directory" diag in announcement
19783         * top/maint.mk (release-prep): Use make's --no-print-directory
19784         option when generating the announcement.  This eliminates the
19785         pesky "make[2]: Entering/Leaving directory" diagnostics in the
19786         generated announcement template.
19787
19788 2011-05-08  Bruno Haible  <bruno@clisp.org>
19789
19790         tzset: Fix gettimeofday wrapper on Solaris 2.6.
19791         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
19792         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
19793
19794 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19795
19796         ignore-value, verify: Omit include files from lib_SOURCES.
19797         * modules/ignore-value, modules/verify (Makefile.am):
19798         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
19799         that leads Automake to duplicate use of am__objects_... variables
19800         in Makefile.in.  See
19801         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
19802
19803 2011-05-07  Bruno Haible  <bruno@clisp.org>
19804
19805         fclose: Simplify autoconf macro.
19806         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
19807         defined.
19808
19809 2011-05-07  Bruno Haible  <bruno@clisp.org>
19810
19811         canonicalize-lgpl: Fix autoconf macro ordering bug.
19812         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
19813         gl_STDLIB_H_DEFAULTS.
19814
19815 2011-05-06  Eric Blake  <eblake@redhat.com>
19816
19817         maintainer-makefile: make sc_po_check easier to tune
19818         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
19819         to probe for strings, such as an alternate location for gnulib.
19820
19821         fclose: guarantee behavior on seekable stdin
19822         * modules/fclose (Depends-on): Add fflush.
19823         * doc/posix-functions/fclose.texi (fclose): Document this.
19824         * tests/test-fclose.c (main): Make test for this unconditional.
19825
19826 2011-05-06  Bruno Haible  <bruno@clisp.org>
19827
19828         fflush, fpurge: Relicense under LGPLv2+.
19829         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
19830         * modules/fpurge (License): Likewise.
19831         With permission from Eric Blake and Jim Meyering.
19832         Suggested by Eric Blake.
19833
19834 2011-05-06  Karl Berry  <karl@gnu.org>
19835
19836         * MODULES.html.sh (func_all_modules): remove exit.
19837
19838 2011-05-06  Jim Meyering  <meyering@redhat.com>
19839
19840         maint.mk: use info-gnu@ as the default only for a stable release
19841         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
19842         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
19843         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
19844         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
19845
19846 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19847
19848         assert-h: new module, which supports C1X-style static_assert
19849         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
19850         * lib/verify.h: Revamp so that this can be copied into assert.h,
19851         while retaining the ability to use it standalone as before.
19852         Rename private identifiers so as not to encroach on the
19853         standard C namespace, since this is now used by assert.h.
19854         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
19855         the old verify_true.
19856         (_GL_VERIFY_TRUE): New macro, with much of the contents of
19857         the old verify_true.  Use _GL_VERIFY_TYPE.
19858         (_GL_VERIFY): New macro, with much of the contents of the old verify.
19859         (static_assert): New macro, if _GL_STATIC_ASSERT_H
19860         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
19861         defined when this file is copied into the replacement assert.h.
19862         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
19863         and _Static_assert is not built in.
19864         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
19865         defined, and use the new macros mentioned above.
19866         * doc/posix-headers/assert.texi: Document this.
19867
19868 2011-05-05  Bruno Haible  <bruno@clisp.org>
19869
19870         fclose, fflush: Respect rules for use of AC_LIBOBJ.
19871         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
19872         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
19873         gl_REPLACE_FCLOSE here.
19874         * modules/fflush (Depends-on): Remove fclose.
19875         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
19876         combination with module 'fclose'.
19877
19878 2011-05-05  Bruno Haible  <bruno@clisp.org>
19879
19880         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
19881         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
19882         gl_FUNC_FFLUSH.
19883         (gl_FUNC_FFLUSH): Use it.
19884         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
19885         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
19886         gl_REPLACE_FSEEKO here.
19887
19888 2011-05-05  Bruno Haible  <bruno@clisp.org>
19889
19890         tzset: Relicense under LGPL.
19891         * modules/tzset (License): Change to LGPL.
19892         No agreement needed; it's a no-op.
19893
19894         strtoimax, strtoumax: Relicense under LGPL.
19895         * modules/strtoimax (License): Change to LGPL.
19896         * modules/strtoumax (License): Likewise.
19897         With permission from Jim Meyering, Paul Eggert:
19898         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
19899         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
19900
19901         getgroups: Relicense under LGPL.
19902         * modules/getgroups (License): Change to LGPL.
19903         With permission from Jim Meyering, Paul Eggert, Eric Blake:
19904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19905         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19907
19908         nanosleep: Relicense under LGPL.
19909         * modules/nanosleep (License): Change to LGPL.
19910         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
19911         Haible:
19912         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19913         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19914         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19915         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19916
19917         futimens: Relicense under LGPL.
19918         * modules/futimens (License): Change to LGPL.
19919         With permission from Eric Blake:
19920         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19921
19922         fflush: Relicense under LGPL.
19923         * modules/fflush (License): Change to LGPL.
19924         With permission from Eric Blake, Bruno Haible, Jim Meyering:
19925         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19927         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
19928
19929         tmpfile: Relicense under LGPL.
19930         * modules/tmpfile (License): Change to LGPL.
19931         With permission from Ben Pfaff:
19932         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19933
19934         isfinite: Relicense under LGPL.
19935         * modules/isfinite (License): Change to LGPL.
19936         With permission from Ben Pfaff, Bruno Haible:
19937         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19938         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
19939
19940         acosl..tanl: Relicense under LGPL.
19941         * modules/acosl (License): Change to LGPL.
19942         * modules/asinl (License): Likewise.
19943         * modules/atanl (License): Likewise.
19944         * modules/cosl (License): Likewise.
19945         * modules/expl (License): Likewise.
19946         * modules/logl (License): Likewise.
19947         * modules/sinl (License): Likewise.
19948         * modules/sqrtl (License): Likewise.
19949         * modules/tanl (License): Likewise.
19950         Source code originally from glibc and Paolo Bonzini. Agreements:
19951         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
19952         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
19953
19954 2011-05-05  Bruno Haible  <bruno@clisp.org>
19955
19956         signal: Define sighandler_t.
19957         * lib/signal.in.h (sighandler_t): New type.
19958         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
19959         whether sighandler_t is defined.
19960         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
19961         * modules/signal (Depends-on): Add extensions.
19962         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
19963         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
19964         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
19965
19966 2011-05-05  Eric Blake  <eblake@redhat.com>
19967
19968         maint: remove useless REPLACE_*_H macros
19969         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
19970         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19971         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19972         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
19973         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19974         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19975         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
19976         * m4/btowc.m4: Update callers.
19977         * m4/dirfd.m4: Likewise.
19978         * m4/duplocale.m4: Likewise.
19979         * m4/fchdir.m4: Likewise.
19980         * m4/fdopendir.m4: Likewise.
19981         * m4/inet_ntop.m4: Likewise.
19982         * m4/inet_pton.m4: Likewise.
19983         * m4/ioctl.m4: Likewise.
19984         * m4/mbrlen.m4: Likewise.
19985         * m4/mbrtowc.m4: Likewise.
19986         * m4/mbsinit.m4: Likewise.
19987         * m4/mbsnrtowcs.m4: Likewise.
19988         * m4/mbsrtowcs.m4: Likewise.
19989         * m4/poll.m4: Likewise.
19990         * m4/setlocale.m4: Likewise.
19991         * m4/wcrtomb.m4: Likewise.
19992         * m4/wcsnrtombs.m4: Likewise.
19993         * m4/wcsrtombs.m4: Likewise.
19994         * m4/wctob.m4: Likewise.
19995         * m4/wcwidth.m4: Likewise.
19996         * modules/posix_spawn: Likewise.
19997         * modules/posix_spawn_file_actions_addclose: Likewise.
19998         * modules/posix_spawn_file_actions_adddup2: Likewise.
19999         * modules/posix_spawn_file_actions_addopen: Likewise.
20000         * modules/posix_spawn_file_actions_destroy: Likewise.
20001         * modules/posix_spawn_file_actions_init: Likewise.
20002         * modules/posix_spawnattr_destroy: Likewise.
20003         * modules/posix_spawnattr_getflags: Likewise.
20004         * modules/posix_spawnattr_getpgroup: Likewise.
20005         * modules/posix_spawnattr_getschedparam: Likewise.
20006         * modules/posix_spawnattr_getschedpolicy: Likewise.
20007         * modules/posix_spawnattr_getsigdefault: Likewise.
20008         * modules/posix_spawnattr_getsigmask: Likewise.
20009         * modules/posix_spawnattr_init: Likewise.
20010         * modules/posix_spawnattr_setflags: Likewise.
20011         * modules/posix_spawnattr_setpgroup: Likewise.
20012         * modules/posix_spawnattr_setschedparam: Likewise.
20013         * modules/posix_spawnattr_setschedpolicy: Likewise.
20014         * modules/posix_spawnattr_setsigdefault: Likewise.
20015         * modules/posix_spawnattr_setsigmask: Likewise.
20016         * modules/posix_spawnp: Likewise.
20017
20018 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
20019
20020         Add option to do-release-commit-and-tag to specify branch.
20021         * build-aux/do-release-commit-and-tag: Add --branch.
20022
20023 2011-05-03  Bruno Haible  <bruno@clisp.org>
20024
20025         Avoid unnecessary compilation units, through conditional dependencies.
20026         * modules/accept (Depends-on): Add conditions to the dependencies.
20027         * modules/acosl (Depends-on): Likewise.
20028         * modules/argz (Depends-on): Likewise.
20029         * modules/asinl (Depends-on): Likewise.
20030         * modules/atanl (Depends-on): Likewise.
20031         * modules/atoll (Depends-on): Likewise.
20032         * modules/bind (Depends-on): Likewise.
20033         * modules/btowc (Depends-on): Likewise.
20034         * modules/canonicalize-lgpl (Depends-on): Likewise.
20035         * modules/ceil (Depends-on): Likewise.
20036         * modules/ceilf (Depends-on): Likewise.
20037         * modules/ceill (Depends-on): Likewise.
20038         * modules/chdir-long (Depends-on): Likewise.
20039         * modules/chown (Depends-on): Likewise.
20040         * modules/close (Depends-on): Likewise.
20041         * modules/connect (Depends-on): Likewise.
20042         * modules/cosl (Depends-on): Likewise.
20043         * modules/dirfd (Depends-on): Likewise.
20044         * modules/dprintf (Depends-on): Likewise.
20045         * modules/dprintf-posix (Depends-on): Likewise.
20046         * modules/error (Depends-on): Likewise.
20047         * modules/euidaccess (Depends-on): Likewise.
20048         * modules/expl (Depends-on): Likewise.
20049         * modules/faccessat (Depends-on): Likewise.
20050         * modules/fchdir (Depends-on): Likewise.
20051         * modules/fclose (Depends-on): Likewise.
20052         * modules/fcntl (Depends-on): Likewise.
20053         * modules/fdopendir (Depends-on): Likewise.
20054         * modules/fflush (Depends-on): Likewise.
20055         * modules/floor (Depends-on): Likewise.
20056         * modules/floorf (Depends-on): Likewise.
20057         * modules/floorl (Depends-on): Likewise.
20058         * modules/fnmatch (Depends-on): Likewise.
20059         * modules/fopen (Depends-on): Likewise.
20060         * modules/fprintf-posix (Depends-on): Likewise.
20061         * modules/frexp (Depends-on): Likewise.
20062         * modules/frexp-nolibm (Depends-on): Likewise.
20063         * modules/frexpl (Depends-on): Likewise.
20064         * modules/frexpl-nolibm (Depends-on): Likewise.
20065         * modules/fseek (Depends-on): Likewise.
20066         * modules/fsusage (Depends-on): Likewise.
20067         * modules/ftell (Depends-on): Likewise.
20068         * modules/ftello (Depends-on): Likewise.
20069         * modules/futimens (Depends-on): Likewise.
20070         * modules/getcwd (Depends-on): Likewise.
20071         * modules/getcwd-lgpl (Depends-on): Likewise.
20072         * modules/getdelim (Depends-on): Likewise.
20073         * modules/getdomainname (Depends-on): Likewise.
20074         * modules/getgroups (Depends-on): Likewise.
20075         * modules/gethostname (Depends-on): Likewise.
20076         * modules/getline (Depends-on): Likewise.
20077         * modules/getlogin_r (Depends-on): Likewise.
20078         * modules/getopt-posix (Depends-on): Likewise.
20079         * modules/getpeername (Depends-on): Likewise.
20080         * modules/getsockname (Depends-on): Likewise.
20081         * modules/getsockopt (Depends-on): Likewise.
20082         * modules/getsubopt (Depends-on): Likewise.
20083         * modules/getusershell (Depends-on): Likewise.
20084         * modules/glob (Depends-on): Likewise.
20085         * modules/grantpt (Depends-on): Likewise.
20086         * modules/iconv_open (Depends-on): Likewise.
20087         * modules/iconv_open-utf (Depends-on): Likewise.
20088         * modules/inet_ntop (Depends-on): Likewise.
20089         * modules/inet_pton (Depends-on): Likewise.
20090         * modules/ioctl (Depends-on): Likewise.
20091         * modules/isapipe (Depends-on): Likewise.
20092         * modules/isfinite (Depends-on): Likewise.
20093         * modules/isinf (Depends-on): Likewise.
20094         * modules/lchown (Depends-on): Likewise.
20095         * modules/ldexpl (Depends-on): Likewise.
20096         * modules/link (Depends-on): Likewise.
20097         * modules/linkat (Depends-on): Likewise.
20098         * modules/listen (Depends-on): Likewise.
20099         * modules/logl (Depends-on): Likewise.
20100         * modules/lstat (Depends-on): Likewise.
20101         * modules/mbrlen (Depends-on): Likewise.
20102         * modules/mbrtowc (Depends-on): Likewise.
20103         * modules/mbsinit (Depends-on): Likewise.
20104         * modules/mbsnrtowcs (Depends-on): Likewise.
20105         * modules/mbsrtowcs (Depends-on): Likewise.
20106         * modules/mbtowc (Depends-on): Likewise.
20107         * modules/memcmp (Depends-on): Likewise.
20108         * modules/mkdir (Depends-on): Likewise.
20109         * modules/mkdtemp (Depends-on): Likewise.
20110         * modules/mkfifo (Depends-on): Likewise.
20111         * modules/mkfifoat (Depends-on): Likewise.
20112         * modules/mknod (Depends-on): Likewise.
20113         * modules/mkostemp (Depends-on): Likewise.
20114         * modules/mkostemps (Depends-on): Likewise.
20115         * modules/mkstemp (Depends-on): Likewise.
20116         * modules/mkstemps (Depends-on): Likewise.
20117         * modules/mktime (Depends-on): Likewise.
20118         * modules/nanosleep (Depends-on): Likewise.
20119         * modules/open (Depends-on): Likewise.
20120         * modules/openat (Depends-on): Likewise.
20121         * modules/perror (Depends-on): Likewise.
20122         * modules/poll (Depends-on): Likewise.
20123         * modules/popen (Depends-on): Likewise.
20124         * modules/posix_spawn (Depends-on): Likewise.
20125         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
20126         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20127         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20128         * modules/posix_spawnp (Depends-on): Likewise.
20129         * modules/pread (Depends-on): Likewise.
20130         * modules/printf-posix (Depends-on): Likewise.
20131         * modules/ptsname (Depends-on): Likewise.
20132         * modules/putenv (Depends-on): Likewise.
20133         * modules/pwrite (Depends-on): Likewise.
20134         * modules/readline (Depends-on): Likewise.
20135         * modules/readlink (Depends-on): Likewise.
20136         * modules/readlinkat (Depends-on): Likewise.
20137         * modules/recv (Depends-on): Likewise.
20138         * modules/recvfrom (Depends-on): Likewise.
20139         * modules/regex (Depends-on): Likewise.
20140         * modules/remove (Depends-on): Likewise.
20141         * modules/rename (Depends-on): Likewise.
20142         * modules/renameat (Depends-on): Likewise.
20143         * modules/rmdir (Depends-on): Likewise.
20144         * modules/round (Depends-on): Likewise.
20145         * modules/roundf (Depends-on): Likewise.
20146         * modules/roundl (Depends-on): Likewise.
20147         * modules/rpmatch (Depends-on): Likewise.
20148         * modules/select (Depends-on): Likewise.
20149         * modules/send (Depends-on): Likewise.
20150         * modules/sendto (Depends-on): Likewise.
20151         * modules/setenv (Depends-on): Likewise.
20152         * modules/setlocale (Depends-on): Likewise.
20153         * modules/setsockopt (Depends-on): Likewise.
20154         * modules/shutdown (Depends-on): Likewise.
20155         * modules/sigaction (Depends-on): Likewise.
20156         * modules/signbit (Depends-on): Likewise.
20157         * modules/sigprocmask (Depends-on): Likewise.
20158         * modules/sinl (Depends-on): Likewise.
20159         * modules/sleep (Depends-on): Likewise.
20160         * modules/snprintf (Depends-on): Likewise.
20161         * modules/snprintf-posix (Depends-on): Likewise.
20162         * modules/socket (Depends-on): Likewise.
20163         * modules/sprintf-posix (Depends-on): Likewise.
20164         * modules/sqrtl (Depends-on): Likewise.
20165         * modules/stat (Depends-on): Likewise.
20166         * modules/strchrnul (Depends-on): Likewise.
20167         * modules/strdup-posix (Depends-on): Likewise.
20168         * modules/strerror (Depends-on): Likewise.
20169         * modules/strerror_r-posix (Depends-on): Likewise.
20170         * modules/strndup (Depends-on): Likewise.
20171         * modules/strnlen (Depends-on): Likewise.
20172         * modules/strptime (Depends-on): Likewise.
20173         * modules/strsep (Depends-on): Likewise.
20174         * modules/strsignal (Depends-on): Likewise.
20175         * modules/strstr-simple (Depends-on): Likewise.
20176         * modules/strtod (Depends-on): Likewise.
20177         * modules/strtoimax (Depends-on): Likewise.
20178         * modules/strtok_r (Depends-on): Likewise.
20179         * modules/strtoumax (Depends-on): Likewise.
20180         * modules/symlink (Depends-on): Likewise.
20181         * modules/symlinkat (Depends-on): Likewise.
20182         * modules/tanl (Depends-on): Likewise.
20183         * modules/tcgetsid (Depends-on): Likewise.
20184         * modules/tmpfile (Depends-on): Likewise.
20185         * modules/trunc (Depends-on): Likewise.
20186         * modules/truncf (Depends-on): Likewise.
20187         * modules/truncl (Depends-on): Likewise.
20188         * modules/uname (Depends-on): Likewise.
20189         * modules/unlink (Depends-on): Likewise.
20190         * modules/unlockpt (Depends-on): Likewise.
20191         * modules/unsetenv (Depends-on): Likewise.
20192         * modules/usleep (Depends-on): Likewise.
20193         * modules/utimensat (Depends-on): Likewise.
20194         * modules/vasprintf (Depends-on): Likewise.
20195         * modules/vdprintf (Depends-on): Likewise.
20196         * modules/vdprintf-posix (Depends-on): Likewise.
20197         * modules/vfprintf-posix (Depends-on): Likewise.
20198         * modules/vprintf-posix (Depends-on): Likewise.
20199         * modules/vsnprintf (Depends-on): Likewise.
20200         * modules/vsnprintf-posix (Depends-on): Likewise.
20201         * modules/vsprintf-posix (Depends-on): Likewise.
20202         * modules/wcrtomb (Depends-on): Likewise.
20203         * modules/wcscasecmp (Depends-on): Likewise.
20204         * modules/wcscspn (Depends-on): Likewise.
20205         * modules/wcsdup (Depends-on): Likewise.
20206         * modules/wcsncasecmp (Depends-on): Likewise.
20207         * modules/wcsnrtombs (Depends-on): Likewise.
20208         * modules/wcspbrk (Depends-on): Likewise.
20209         * modules/wcsrtombs (Depends-on): Likewise.
20210         * modules/wcsspn (Depends-on): Likewise.
20211         * modules/wcsstr (Depends-on): Likewise.
20212         * modules/wcstok (Depends-on): Likewise.
20213         * modules/wcswidth (Depends-on): Likewise.
20214         * modules/wctob (Depends-on): Likewise.
20215         * modules/wctomb (Depends-on): Likewise.
20216         * modules/wctype (Depends-on): Likewise.
20217         * modules/wcwidth (Depends-on): Likewise.
20218         * modules/write (Depends-on): Likewise.
20219
20220 2011-05-03  Bruno Haible  <bruno@clisp.org>
20221
20222         Support for conditional dependencies.
20223         * doc/gnulib.texi (Module description): Document the syntax of
20224         conditional dependencies.
20225         * gnulib-tool: New option --conditional-dependencies.
20226         (func_usage): Document it.
20227         (cond_dependencies): New variable.
20228         (func_get_automake_snippet_conditional,
20229         func_get_automake_snippet_unconditional): New functions, extracted from
20230         func_get_automake_snippet.
20231         (func_get_automake_snippet): Use them.
20232         (sed_first_32_chars): New variable.
20233         (func_module_shellfunc_name): New function.
20234         (func_module_shellvar_name): New function.
20235         (func_module_conditional_name): New function.
20236         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
20237         func_cond_module_condition): New functions.
20238         (func_modules_transitive_closure): Add support for conditional
20239         dependencies.
20240         (func_emit_lib_Makefile_am): For a conditional module, enclose the
20241         conditional automake snippet in an automake conditional.
20242         (func_emit_autoconf_snippets): Emit shell functions that contain the
20243         code for conditional modules.
20244         (func_import, func_create_testdir): Update specification.
20245
20246 2011-05-03  Eric Blake  <eblake@redhat.com>
20247
20248         test-getaddrinfo: report error information
20249         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
20250
20251 2011-05-03  Jim Meyering  <meyering@redhat.com>
20252
20253         bootstrap: avoid build failure when $GZIP is set
20254         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
20255         program name.  If defined at all, it is supposed to list gzip options.
20256         Reported by Alan Curry in http://debbugs.gnu.org/8609
20257
20258 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
20259
20260         readme-release: new module with release instructions
20261         * modules/readme-release: New module.
20262         * top/README-release: New file, from coreutils, grep, diffutils.
20263         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20264
20265 2011-05-02  Eric Blake  <eblake@redhat.com>
20266
20267         fflush: also replace fclose when fixing fflush
20268         * modules/fflush (Depends-on): Add fclose.
20269         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
20270         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
20271         memstreams with no backing fd.
20272         * doc/posix-functions/fclose.texi (fclose): Document the use of
20273         fflush module to fix the bug.
20274         * tests/test-fclose.c (main): Relax test when fclose is used in
20275         isolation.
20276
20277         fclose: add some tests
20278         * modules/fclose-tests: New test module.
20279         * tests/test-fclose.c: New file.
20280         * doc/posix-functions/fclose.texi (fclose): Document the bug.
20281
20282         fclose: reduced dependencies
20283         * modules/fclose (Depends-on): Switch from fflush/fseeko to
20284         simpler lseek.
20285         * lib/fclose.c (rpl_fclose): Likewise.
20286         Reported by Simon Josefsson.
20287
20288         exit: drop remaining clients
20289         * modules/argmatch (Depends-on): Replace exit with stdlib.
20290         * modules/copy-file (Depends-on): Likewise.
20291         * modules/execute (Depends-on): Likewise.
20292         * modules/exitfail (Depends-on): Likewise.
20293         * modules/obstack (Depends-on): Likewise.
20294         * modules/pagealign_alloc (Depends-on): Likewise.
20295         * modules/pipe-filter-gi (Depends-on): Likewise.
20296         * modules/pipe-filter-ii (Depends-on): Likewise.
20297         * modules/savewd (Depends-on): Likewise.
20298         * modules/spawn-pipe (Depends-on): Likewise.
20299         * modules/wait-process (Depends-on): Likewise.
20300         * modules/xsetenv (Depends-on): Likewise.
20301         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
20302         * modules/git-merge-changelog (Depends-on): Likewise.
20303         * modules/long-options (Depends-on): Likewise.
20304         * modules/pt_chown (Depends-on): Likewise.
20305         * modules/sysexits (Depends-on): Likewise.
20306
20307         freading: relax license from LGPLv3+ to LGPLv2+
20308         * modules/freading (License): Relax LGPL version.
20309
20310 2011-05-02  Bruno Haible  <bruno@clisp.org>
20311
20312         fchdir: Remove unused dependencies.
20313         * modules/fchdir (Depends-on): Remove include_next.
20314
20315 2011-05-02  Bruno Haible  <bruno@clisp.org>
20316
20317         gnulib-tool: Refactor.
20318         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
20319         from func_emit_autoconf_snippets.
20320         (func_emit_autoconf_snippets): Use it.
20321
20322 2011-05-02  Simon Josefsson  <simon@josefsson.org>
20323
20324         * NEWS: Document removal of 'exit'.
20325         * modules/exit: Remove file.
20326
20327 2011-05-01  Bruno Haible  <bruno@clisp.org>
20328
20329         Update DEPENDENCIES.
20330         * DEPENDENCIES (gettext): Recommend the newest release.
20331         Reported by Simon Josefsson.
20332
20333 2011-05-01  Bruno Haible  <bruno@clisp.org>
20334
20335         gnulib-tool: Reduce code duplication.
20336         * gnulib-tool (func_emit_autoconf_snippets): New function.
20337         (func_import, func_create_testdir): Use it.
20338
20339 2011-04-30  Eric Blake  <eblake@redhat.com>
20340
20341         fclose: don't fail on non-seekable input stream
20342         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
20343         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
20344         since fflush is allowed to fail in that case.
20345
20346 2011-04-30  Bruno Haible  <bruno@clisp.org>
20347
20348         dup3: cleanup
20349         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
20350
20351 2011-04-30  Bruno Haible  <bruno@clisp.org>
20352
20353         netdb: Make it work in C++ mode.
20354         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
20355         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
20356         module.
20357         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
20358         gl_MODULE_INDICATOR_FOR_TESTS.
20359         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
20360         * modules/netdb-c++-tests: New file.
20361         * tests/test-netdb-c++.cc: New file.
20362
20363 2011-04-30  Bruno Haible  <bruno@clisp.org>
20364
20365         New modules 'vfscanf', 'vscanf'.
20366         * modules/vfscanf: New file.
20367         * modules/vscanf: New file.
20368         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
20369         here.
20370         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
20371         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
20372
20373 2011-04-30  Bruno Haible  <bruno@clisp.org>
20374
20375         passfd: Add comments.
20376         * lib/passfd.c: Add comments about platforms.
20377
20378 2011-04-30  Bruno Haible  <bruno@clisp.org>
20379
20380         sys_uio: Make <sys/uio.h> self-contained.
20381         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
20382         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
20383
20384 2011-04-30  Bruno Haible  <bruno@clisp.org>
20385
20386         sys_socket: Ensure 'struct iovec' definition.
20387         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
20388         <sys/socket.h>.
20389         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
20390
20391 2011-04-30  Bruno Haible  <bruno@clisp.org>
20392
20393         sys_uio: Protect definition of 'struct iovec'.
20394         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
20395         it as a C struct.
20396
20397 2011-04-30  Bruno Haible  <bruno@clisp.org>
20398
20399         manywarnings: fix indentation
20400         * m4/manywarnings.m4: Indent by 2 spaces consistently.
20401
20402 2011-04-30  Pádraig Brady <P@draigBrady.com>
20403
20404         manywarnings: add -Wno-missing-field-initializers if needed.
20405         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
20406         option if it's needed to allow initialization with { 0, }
20407
20408 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
20409
20410         announce-gen: cosmetic improvement
20411         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
20412
20413 2011-04-29  Jim Meyering  <meyering@redhat.com>
20414
20415         vc-list-files: indent with spaces, not TABs
20416         * build-aux/vc-list-files: Convert leading TABs to spaces,
20417         to match the style of most other files in gnulib.
20418
20419         announce-gen: indent with spaces, not TABs
20420         * build-aux/announce-gen: Convert all TABs to spaces, to match
20421         the style of most other files in gnulib.
20422
20423 2011-04-29  Eric Blake  <eblake@redhat.com>
20424
20425         quotearg: avoid uninitialized variable use
20426         * lib/quotearg.c (quoting_options_from_style): Initialize
20427         remaining fields, and ensure that custom styles are only used via
20428         quoting_options rather than quoting_style.
20429
20430 2011-04-29  Jim Meyering  <meyering@redhat.com>
20431
20432         maint.mk: remove unused VC-tag variable
20433         * top/maint.mk (VC-tag): Remove unused variable.
20434
20435 2011-04-29  Bruno Haible  <bruno@clisp.org>
20436
20437         netdb: fix gai_strerror replacements
20438         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
20439         * modules/netdb: Substitute it.
20440
20441 2011-04-29  Jim Meyering  <meyering@redhat.com>
20442
20443         test-getcwd.c: avoid new set-but-not-used warning
20444         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
20445         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
20446         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
20447         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
20448
20449         test-hash.c: avoid a new shadowing warning
20450         * tests/test-hash.c (main): Don't shadow "dup".
20451
20452 2011-04-28  Eric Blake  <eblake@redhat.com>
20453
20454         getaddrinfo: fix gai_strerror signature
20455         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
20456         and work around mingw with UNICODE defined.
20457         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
20458         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
20459         * modules/netdb (Makefile.am): Substitute it.
20460         * lib/netdb.in.h (gai_strerror): Declare replacement.
20461         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
20462         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
20463         the fix.
20464
20465         getsockopt: avoid compiler warning
20466         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
20467         Reported by Matthias Bolte.
20468
20469         tests: drop unused link dependency
20470         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
20471         * modules/dirent-safer-tests (Makefile.am): Likewise.
20472         * modules/fdopendir-tests (Makefile.am): Likewise.
20473         * modules/mkfifoat-tests (Makefile.am): Likewise.
20474         * modules/openat-safer-tests (Makefile.am): Likewise.
20475         * modules/openat-tests (Makefile.am): Likewise.
20476         * modules/readlinkat-tests (Makefile.am): Likewise.
20477         * modules/symlinkat-tests (Makefile.am): Likewise.
20478         * modules/linkat-tests (Makefile.am): Likewise.
20479         (Depends-on): Switch to filenamecat-lgpl.
20480         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
20481         LIBINTL.
20482         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
20483         * tests/test-linkat.c (main): Don't require xalloc.
20484
20485         hash, mgetgroups: drop xalloc dependency
20486         * lib/hash.c (includes): Adjust includes.
20487         * lib/mgetgroups.c (includes): Likewise.
20488         (xgetgroups): Move...
20489         * lib/xgetgroups.c: ...to new file.
20490         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
20491         * modules/xgetgroups: New file, split from...
20492         * modules/mgetgroups: ...here.
20493         (Depends-on): Add xalloc-oversized.
20494         * modules/hash (Depends-on): Likewise.
20495         * modules/hash-tests (Depends-on): Drop xalloc.
20496         (test_hash_LDADD): Drop unused library.
20497         * tests/test-hash.c (main): Break xalloc dependency.
20498         (includes): Drop unused include.
20499
20500         xalloc-oversized: new module
20501         * modules/xalloc-oversized: New module.
20502         * modules/xalloc (Depends-on): Add it.
20503         * lib/xalloc.h (xalloc_oversized): Move...
20504         * lib/xalloc-oversized.h: ...into new file.
20505
20506         utimecmp: drop dependency on xmalloc
20507         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
20508         due to memory pressure.
20509         * modules/utimecmp (Depends-on): Drop xalloc.
20510
20511 2011-04-27  Eric Blake  <eblake@redhat.com>
20512
20513         getcwd: fix mingw bugs
20514         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
20515         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
20516         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
20517
20518 2011-04-27  Bruno Haible  <bruno@clisp.org>
20519
20520         mkstemps: Ensure declaration on MacOS X 10.5.
20521         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
20522         * doc/glibc-functions/mkstemps.texi: Document header file problem on
20523         MacOS X.
20524
20525 2011-04-27  Bruno Haible  <bruno@clisp.org>
20526
20527         mkstemp: More documentation.
20528         * doc/posix-functions/mkstemp.texi: Document header file problem on
20529         MacOS X.
20530
20531 2011-04-27  Bruno Haible  <bruno@clisp.org>
20532
20533         mkstemp: Tweak configure message when cross-compiling.
20534         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
20535         result as a guess.
20536
20537 2011-04-27  Bruno Haible  <bruno@clisp.org>
20538
20539         clean-temp: Clarify what it does.
20540         * lib/clean-temp.h: Add more comments.
20541         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
20542         module.
20543         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
20544         * doc/glibc-functions/mkstemps.texi: Likewise.
20545         * doc/glibc-functions/mkostemps.texi: Likewise.
20546
20547 2011-04-27  Eric Blake  <eblake@redhat.com>
20548
20549         fchdir: avoid extra chdir and fix test
20550         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
20551         getcwd-lgpl.
20552         * lib/fchdir.c (get_name): Any absolute name will do; it does not
20553         have to be canonical.
20554         (canonicalize_file_name): Drop unused macro.
20555         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
20556
20557         filenamecat-lgpl: fix licence
20558         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
20559         when it was first created.
20560
20561         linkat, renameat: add missing dependency
20562         * modules/linkat (Depends-on): Require getcwd-lgpl.
20563         * modules/renameat (Depends-on): Likewise.
20564
20565         tests: reduce dependencies
20566         * tests/test-linkat.c (main): Use lighter-weight getcwd.
20567         * tests/test-renameat.c (main): Likewise.
20568         * modules/linkat-tests (Depends-on): Relax dependency.
20569         * modules/renameat-tests (Depends-on): Likewise.
20570         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
20571         dependency explicit.
20572
20573         save-cwd: reduce default dependency
20574         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
20575         * lib/save-cwd.c: Update comments.
20576         * NEWS: Document the semantic change.
20577
20578         getcwd: enhance tests
20579         * tests/test-getcwd-lgpl.c: New file, taken from...
20580         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
20581         repeat long path stress tests from m4 probe.
20582         * modules/getcwd-lgpl-tests: New module.
20583         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
20584         * m4/getcwd-abort-bug.m4: Update comment.
20585         * m4/getcwd-path-max.m4: Likewise.
20586
20587         getcwd-lgpl: new module
20588         * modules/getcwd-lgpl: New module.
20589         * lib/getcwd-lgpl.c: New file.
20590         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20591         * MODULES.html.sh (lacking POSIX:2008): Likewise.
20592         * modules/getcwd (configure.ac): Set C witness.
20593         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
20594
20595         getcwd: tweak comments
20596         * m4/getcwd-abort-bug.m4: Fix comments.
20597         * m4/getcwd-path-max.m4: Likewise.
20598         * m4/getcwd.m4: Likewise.
20599
20600 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20601         and Eric Blake  <eblake@redhat.com>
20602
20603         mkstemp: replace if system version uses wrong permissions
20604         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
20605         read/write mode bits set in file created by mkstemp.
20606         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
20607
20608 2011-04-27  Eric Blake  <eblake@redhat.com>
20609
20610         passfd: avoid compiler warning
20611         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
20612         Reported by Laine Stump.
20613
20614 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
20615
20616         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
20617         required by the NetBSD (and perhaps other 4.4BSD derived) join.
20618
20619 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20620         and Eric Blake  <eblake@redhat.com>
20621
20622         mkstemp: mention clean-temp module
20623         * lib/mkstemp.c: Add comment.
20624         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
20625
20626 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20627
20628         inttypes: also provide default values for 32-bit tests
20629         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
20630         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
20631
20632 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20633
20634         strtoumax: remove dependency on strtoimax
20635         This is like the strtoull change of yesterday.
20636         * modules/strtoumax (Files): Add lib/strtoimax.c.
20637         (Depends-on): Remove strtoimax and add verify.
20638
20639         inttypes-incomplete: new module
20640         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
20641         all but the PRI* and SCN* parts of gl_INTTYPES_H.
20642         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
20643         of gl_INTTYPES_H.
20644         (gl_INTTYPES_H): Rewrite in terms of these new macros.
20645         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
20646         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
20647         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
20648         * modules/strtoumax, modules/xstrtol (Depends-on):
20649         Depend on inttypes-incomplete, not inttypes.
20650         * modules/inttypes-incomplete: New module, containing the contents
20651         of the old modules/inttypes module, except that the Files: section
20652         omits m4/inttypes-pri.m4, and the configure.ac section invokes
20653         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
20654         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
20655         (Depends-on): Depend only on inttypes-incomplete.
20656         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
20657
20658         inttypes: omit now-redundant strtoimax and strtoumax work
20659         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
20660         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
20661
20662         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
20663         This supports apps that need pointers to strtoimax and strtoumax,
20664         and ports to HP-UX 11.00 64.bit, which has macros that expand to
20665         nonexistent functions.  See
20666         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
20667         et seq.
20668         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
20669         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
20670         a macro.
20671         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20672
20673 2011-04-25  Simon Josefsson  <simon@josefsson.org>
20674
20675         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
20676
20677 2011-04-25  Bruno Haible  <bruno@clisp.org>
20678
20679         strtol, strtoul: Mark modules as obsolete.
20680         * modules/strtol (Status, Notice): New sections.
20681         * modules/strtoul (Status, Notice): New sections.
20682
20683 2011-04-25  Bruno Haible  <bruno@clisp.org>
20684
20685         strtod: Remove check for strtod, unless supporting old platforms.
20686         * modules/strtod-obsolete: New file.
20687         * m4/strtod-obsolete.m4: New file.
20688         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
20689         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
20690         * modules/strtod (Depends-on): Add strtod-obsolete.
20691         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
20692
20693 2011-04-25  Bruno Haible  <bruno@clisp.org>
20694
20695         strcase: Make module obsolete.
20696         * modules/strcase (Status, Notice): New sections.
20697
20698 2011-04-25  Bruno Haible  <bruno@clisp.org>
20699
20700         dup2: Remove check for dup2, unless supporting old obsolete platforms.
20701         * modules/dup2-obsolete: New file.
20702         * m4/dup2-obsolete.m4: New file.
20703         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
20704         gl_FUNC_DUP2_OBSOLETE is not also defined.
20705         * modules/dup2 (Depends-on): Add dup2-obsolete.
20706         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
20707
20708 2011-04-25  Bruno Haible  <bruno@clisp.org>
20709
20710         strnlen: Avoid memchr related link error on old obsolete platforms.
20711         * modules/memchr-obsolete: New file.
20712         * m4/memchr-obsolete.m4: New file.
20713         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
20714         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
20715         * modules/memchr (Depends-on): Add memchr-obsolete.
20716         * modules/strnlen (Depends-on): Likewise.
20717         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
20718
20719 2011-04-25  Jim Meyering  <meyering@redhat.com>
20720
20721         maint.mk: makefile_at_at_check extend and clean up
20722         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
20723         in addition to */Makefile.am.
20724         Exempt legitimate uses of @VAR@ notation, e.g.,
20725         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
20726         Remove obsolete coreutils-specific comment.
20727         Prompted by discussion here:
20728         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
20729
20730 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
20731
20732         strtoul: remove dependency on strtol
20733         This is so that 'configure' need not check for strtol merely because
20734         the application needs strtoul.
20735         * modules/strtoul (Files): Add lib/strtol.c.
20736         (Depends-on): Remove strtol.
20737
20738         strtoull: remove dependency on strtoul
20739         This is like the strtoll change.
20740         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
20741         (Depends-on): Remove strtoul.
20742
20743         strtoll: remove dependency on strtol
20744         This is so that 'configure' need not check for strtol merely because
20745         the application needs strtoll.
20746         * modules/strtoll (Files): Add lib/strtol.c.
20747         (Depends-on): Remove strtol.
20748
20749 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20750
20751         inttypes: Move some configure check to module 'imaxdiv'.
20752         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
20753         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
20754         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
20755
20756 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20757
20758         inttypes: Move some configure check to module 'imaxabs'.
20759         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
20760         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
20761         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
20762
20763 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20764
20765         inttypes: Remove configure tests that are not needed since 2009-12-31.
20766         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
20767         gl_cv_header_working_inttypes_h.
20768
20769 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20770
20771         * modules/strnlen (Depends-on): Remove memchr.
20772         The strnlen implementation doesn't need the memchr module's fixes; see
20773         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
20774
20775         strtol: remove dependency on wchar
20776         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
20777         * modules/strtol (Depends-on): Remove wchar.
20778
20779 2011-04-21  Eric Blake  <eblake@redhat.com>
20780
20781         passfd: fix test regression on Linux
20782         * modules/passfd-tests (configure.ac): Correct socketpair check.
20783
20784         passfd: speed up configure and drop unused code
20785         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
20786         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
20787         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
20788         Instead of probing at configure for unix_scm_rights_bsd44_way,
20789         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
20790         check to a struct member probe.
20791         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
20792         (sendfd, recvfd): Update preprocessor checks.
20793         * modules/passfd (Files): Reflect rename, and drop unused file.
20794         (Depends-on): Drop unused dependency.
20795
20796         passfd: allow compilation on mingw
20797         * modules/sys_socket (Depends-on): Add sys_uio.
20798         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
20799         iovec and a minimal struct msghdr.
20800         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
20801         * tests/test-sys_socket.c (main): Enhance test.
20802         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
20803         guaranteed to provide what we need.
20804         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
20805         * modules/passfd-tests (Depends-on): Add sys_wait.
20806         * tests/test-passfd.c (main): Skip test on mingw, for now.
20807         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
20808         partial 'struct msghdr' implementation.
20809
20810         sys_uio: new module
20811         * modules/sys_uio: New module.
20812         * modules/sys_uio-tests: Likewise.
20813         * lib/sys_uio.in.h: New file.
20814         * m4/sys_uio_h.m4: Likewise.
20815         * tests/test-sys_uio.c: Likewise.
20816         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
20817         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
20818
20819 2011-04-20  Jim Meyering  <meyering@redhat.com>
20820
20821         useless-if-before-free: avoid false-positive
20822         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
20823         disjunct so that it too requires a terminating ";".  Without that,
20824         this script would identify as useless one statement from gcc that
20825         was not:
20826           if (aligned_ptr)
20827             free (((void **) aligned_ptr) [-1]);
20828
20829 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
20830
20831         doc: update users.txt.
20832         * users.txt: Add barcode.
20833
20834 2011-04-19  Bruno Haible  <bruno@clisp.org>
20835
20836         ioctl: Remove link dependency on native Windows.
20837         * lib/fd-hook.h: Renamed from lib/close-hook.h.
20838         (gl_close_fn, gl_ioctl_fn): New types.
20839         (struct fd_hook): Renamed from struct close_hook. Change type of
20840         private_close_fn field. Add private_ioctl_fn field.
20841         (close_hook_fn): Add parameter for primary close method.
20842         (execute_close_hooks, execute_all_close_hooks): Likewise.
20843         (ioctl_hook_fn): New type.
20844         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
20845         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20846         argument.
20847         (unregister_fd_hook): Renamed from unregister_close_hook.
20848         * lib/fd-hook.c: Renamed from lib/close-hook.c.
20849         Don't include <unistd.h>.
20850         (close): Remove undef.
20851         (anchor): Update.
20852         (execute_close_hooks): Add argument for primary close method.
20853         (execute_all_close_hooks): Likewise.
20854         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
20855         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20856         argument. Allow each argument to be NULL.
20857         (unregister_fd_hook): Renamed from unregister_close_hook.
20858         * lib/close.c (rpl_close): Pass 'close' function pointer to
20859         execute_all_close_hooks.
20860         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
20861         (primary_ioctl): New function.
20862         (ioctl): Don't call ioctlsocket here. Instead, call
20863         execute_all_ioctl_hooks.
20864         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
20865         close method.
20866         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
20867         (fd_sockets_hook): Renamed from close_sockets_hook.
20868         (gl_sockets_startup, gl_sockets_cleanup): Update.
20869         * modules/fd-hook: Renamed from modules/close-hook. Update.
20870         * modules/close (Depends-on): Add fd-hook, remove close-hook.
20871         * modules/sockets (Depends-on): Likewise.
20872         * modules/ioctl (Depends-on): Add fd-hook.
20873         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
20874         GNULIB_SOCKET.
20875
20876 2011-04-19  Bruno Haible  <bruno@clisp.org>
20877
20878         Move the support of O_NONBLOCK in open() to the 'open' module.
20879         * modules/nonblocking (Depends-on): Remove 'open'.
20880         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
20881         gl_cv_have_open_O_NONBLOCK.
20882         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
20883         O_NONBLOCK support.
20884         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
20885
20886 2011-04-17  Bruno Haible  <bruno@clisp.org>
20887
20888         pipe2: Simplify code.
20889         * lib/pipe2.c (pipe2): Reduce code duplication.
20890
20891 2011-04-17  Bruno Haible  <bruno@clisp.org>
20892
20893         nonblocking: Add comment.
20894         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
20895
20896 2011-04-17  Bruno Haible  <bruno@clisp.org>
20897
20898         nonblocking: Add tests for sockets.
20899         * tests/test-nonblocking-socket.sh: New file.
20900         * tests/test-nonblocking-socket-main.c: New file.
20901         * tests/test-nonblocking-socket-child.c: New file.
20902         * tests/test-nonblocking-socket.h: New file.
20903         * tests/socket-server.h: New file.
20904         * tests/socket-client.h: New file.
20905         * modules/nonblocking-socket-tests: New file.
20906         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
20907
20908 2011-04-17  Bruno Haible  <bruno@clisp.org>
20909
20910         nonblocking: Add tests for pipes.
20911         * tests/test-nonblocking-pipe.sh: New file.
20912         * tests/test-nonblocking-pipe-main.c: New file.
20913         * tests/test-nonblocking-pipe-child.c: New file.
20914         * tests/test-nonblocking-pipe.h: New file.
20915         * tests/test-nonblocking-writer.h: New file.
20916         * tests/test-nonblocking-reader.h: New file.
20917         * tests/test-nonblocking-misc.h: New file.
20918         * modules/nonblocking-pipe-tests: New file.
20919         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
20920
20921 2011-04-16  Bruno Haible  <bruno@clisp.org>
20922
20923         gettext: Clarify the needed programmer actions.
20924         * modules/gettext (Notice): New field.
20925         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
20926
20927 2011-04-16  Bruno Haible  <bruno@clisp.org>
20928
20929         strchrnul: Tweak last commit.
20930         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
20931         bug.
20932         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
20933         as in _GL_FUNCDECL_SYS.
20934         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
20935         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
20936
20937 2011-04-15  Eric Blake  <eblake@redhat.com>
20938
20939         strchrnul: work around cygwin bug
20940         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
20941         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
20942         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
20943         * modules/string (Makefile.am): Substitute it.
20944         * lib/string.in.h (strchrnul): Use it.
20945
20946 2011-04-15  Bruno Haible  <bruno@clisp.org>
20947
20948         Don't require lib/stdio-write.c when only module 'stdio' is used.
20949         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
20950         invocation.
20951         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
20952
20953 2011-04-14  Bruno Haible  <bruno@clisp.org>
20954
20955         Support non-blocking pipe I/O in read() on native Windows.
20956         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
20957         (read): New declaration.
20958         * lib/read.c: New file.
20959         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
20960         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
20961         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
20962         vscanf): New declarations.
20963         * lib/stdio-read.c: New file.
20964         * m4/read.m4: New file.
20965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
20966         REPLACE_READ.
20967         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
20968         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20969         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
20970         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
20971         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
20972         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20973         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20974         * modules/read: New file.
20975         * modules/nonblocking (Files): Add lib/stdio-read.c.
20976         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
20977         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
20978         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20979         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20980         * modules/pread (Depends-on): Add read.
20981         * modules/safe-read (Depends-on): Likewise.
20982         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
20983         gets, scanf, vfscanf, vscanf): Verify signatures.
20984         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
20985         problem with non-blocking pipes.
20986         * doc/posix-functions/fgetc.texi: Likewise.
20987         * doc/posix-functions/fgets.texi: Likewise.
20988         * doc/posix-functions/fread.texi: Likewise.
20989         * doc/posix-functions/fscanf.texi: Likewise.
20990         * doc/posix-functions/getc.texi: Likewise.
20991         * doc/posix-functions/getchar.texi: Likewise.
20992         * doc/posix-functions/gets.texi: Likewise.
20993         * doc/posix-functions/scanf.texi: Likewise.
20994         * doc/posix-functions/vfscanf.texi: Likewise.
20995         * doc/posix-functions/vscanf.texi: Likewise.
20996
20997 2011-04-14  Bruno Haible  <bruno@clisp.org>
20998
20999         Support non-blocking pipe I/O in write() on native Windows.
21000         * lib/write.c (rpl_write): Split a write request that failed merely
21001         because the byte count was larger than the pipe buffer's size.
21002         * doc/posix-functions/write.texi: Mention the problem with large byte
21003         counts.
21004
21005 2011-04-14  Bruno Haible  <bruno@clisp.org>
21006
21007         wchar: Ensure that wchar_t gets defined on uClibc.
21008         * lib/wchar.in.h: On uClibc, include <stddef.h>.
21009         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
21010
21011 2011-04-13  Bruno Haible  <bruno@clisp.org>
21012
21013         safe-write, full-read: Avoid unnecessary compilation units.
21014         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
21015         (Depends-on): Remove safe-read. Add ssize_t.
21016         * modules/full-read (Files): Add lib/full-write.c.
21017         (Depends-on): Add full-write.
21018
21019 2011-04-13  Bruno Haible  <bruno@clisp.org>
21020
21021         Support non-blocking pipe I/O and SIGPIPE in pwrite().
21022         * modules/pwrite (Depends-on): Add 'write'.
21023
21024 2011-04-13  Bruno Haible  <bruno@clisp.org>
21025
21026         Support non-blocking pipe I/O in write() on native Windows.
21027         * lib/unistd.in.h (write): Enable replacement also if
21028         GNULIB_UNISTD_H_NONBLOCKING is 1.
21029         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
21030         (rpl_write): When failing to write on a non-blocking pipe, change
21031         errno from ENOSPC to EAGAIN.
21032         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
21033         putchar, puts, vfprintf, vprintf): Enable replacement also if
21034         GNULIB_STDIO_H_NONBLOCKING is 1.
21035         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
21036         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
21037         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
21038         CALL_WITH_SIGPIPE_EMULATION.
21039         (CALL_WITH_SIGPIPE_EMULATION): Use them.
21040         * m4/nonblocking.m4: New file.
21041         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
21042         for non-blocking I/O support.
21043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21044         GNULIB_UNISTD_H_NONBLOCKING.
21045         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
21046         required for non-blocking I/O support.
21047         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
21048         * modules/nonblocking (Files): Add m4/nonblocking.m4,
21049         lib/stdio-write.c, m4/asm-underscore.m4.
21050         (Depends-on): Add stdio, unistd.
21051         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
21052         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
21053         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
21054         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
21055         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
21056         problem with non-blocking pipes.
21057         * doc/posix-functions/fputc.texi: Likewise.
21058         * doc/posix-functions/fputs.texi: Likewise.
21059         * doc/posix-functions/fwrite.texi: Likewise.
21060         * doc/posix-functions/printf.texi: Likewise.
21061         * doc/posix-functions/putc.texi: Likewise.
21062         * doc/posix-functions/putchar.texi: Likewise.
21063         * doc/posix-functions/puts.texi: Likewise.
21064         * doc/posix-functions/vfprintf.texi: Likewise.
21065         * doc/posix-functions/vprintf.texi: Likewise.
21066         * doc/posix-functions/write.texi: Likewise.
21067
21068 2011-04-10  Jim Meyering  <meyering@redhat.com>
21069
21070         maint.mk: prohibit doubled words
21071         Detect them also when they're separated by a newline.
21072         There are 3 ways to customize it:
21073           - disable the test on a per file basis, as usual with rules using
21074             $(VC_LIST_EXCEPT)
21075           - replace the default doubled-word-selecting regexp (affects all files)
21076           - ignore a particular file-vs-doubled-word match
21077         I nearly used that last one to ignore the "is is" match in
21078         coreutils' NEWS file, since the text was "ls -is is ..."
21079         To do that, I would have added this line to cfg.mk:
21080           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
21081         but it would have ignored any "is is" match in NEWS.
21082         Low probability, but still...
21083         Instead, I changed the text, slightly:
21084           -  ls -is is now consistent with ls -lis in ignoring values returned
21085           +  "ls -is" is now consistent with ls -lis in ignoring values returned
21086         * top/maint.mk (prohibit_double_word_RE_): Provide default.
21087         (prohibit_doubled_word_): Define.
21088         (sc_prohibit_doubled_word): New rule.
21089         (sc_prohibit_the_the): Remove.  Subsumed by the above.
21090
21091 2011-04-10  Jim Meyering  <meyering@redhat.com>
21092
21093         maint: fix doubled-word typo in comment
21094         * m4/gethostname.m4: s/is is/it is/
21095         * m4/getdomainname.m4: Likewise.
21096
21097 2011-04-10  Jim Meyering  <meyering@redhat.com>
21098
21099         maint: remove doubled word: s/it it/it/
21100         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
21101
21102 2011-04-10  Jim Meyering  <meyering@redhat.com>
21103
21104         maint.mk: remove useless semicolon and backslash
21105         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
21106         semicolon and backslash.
21107
21108 2011-04-10  Bruno Haible  <bruno@clisp.org>
21109
21110         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
21111         * modules/stdint-tests (Depends-on): Add wchar.
21112
21113 2011-04-10  Jim Meyering  <meyering@redhat.com>
21114
21115         maint: remove doubled words in comments, e.g., s/a a/a/
21116         * lib/strptime.c (day_of_the_week): s/the the/the/
21117         * tests/test-chown.h (test_chown): s/a a/a/
21118
21119         test-chown.h: correct a cast
21120         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
21121         when the destination is a stat.st_gid.
21122
21123 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
21124
21125         getaddrinfo: Fix test for sa_len member.
21126         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
21127         include <sys/types.h> before <sys/socket.h>.
21128
21129 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21130
21131         maint: change "can not" to "cannot"
21132         * doc/posix-functions/iconv.texi (iconv): This one crossed line
21133         boundaries.
21134
21135 2011-04-09  Jim Meyering  <meyering@redhat.com>
21136
21137         maint: change "a a" to "a"
21138         * tests/test-lchown.h (test_lchown): s/a a/a/
21139
21140         maint.mk: prohibit \<the the\>
21141         * top/maint.mk (sc_prohibit_the_the): New rule.
21142
21143         maint: fix "the the" in comment
21144         * lib/count-one-bits.h: s/the the/the/
21145
21146         maint: change "can not" to "cannot"
21147         But do not change the occurrences in maintain.texi or in
21148         build-aux/po/Makefile.in.in, which I presume comes from gettext.
21149         * doc/gnulib-tool.texi: s/can not/cannot/
21150         * doc/posix-functions/accept.texi (accept): Likewise.
21151         * doc/posix-functions/socket.texi (socket): Likewise.
21152         * lib/mbrtowc.c: Likewise.
21153
21154         maint.mk: prohibit use of "can not"
21155         * top/maint.mk (sc_prohibit_can_not): New rule.
21156         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
21157
21158 2011-04-09  Bruno Haible  <bruno@clisp.org>
21159
21160         careadlinkat: Guard against misuse of careadlinkatcwd.
21161         * lib/careadlinkat.c: Include <stdlib.h>.
21162         (careadlinkatcwd): Check that the fd argument is as expected.
21163
21164 2011-04-09  Bruno Haible  <bruno@clisp.org>
21165
21166         careadlinkat: Use common coding style.
21167         * lib/careadlinkat.c: Move gnulib includes after system includes.
21168
21169 2011-04-09  Bruno Haible  <bruno@clisp.org>
21170
21171         careadlinkat: Clarify specification.
21172         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
21173         (careadlinkatcwd): Add comment.
21174         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
21175
21176 2011-04-09  Bruno Haible  <bruno@clisp.org>
21177
21178         areadlinkat: Avoid link error on many platforms.
21179         * modules/areadlinkat (Depends-on): Add areadlink.
21180
21181 2011-04-09  Bruno Haible  <bruno@clisp.org>
21182
21183         allocator, careadlinkat: Fix double-inclusion guard.
21184         * lib/allocator.h: Fix double-inclusion guard.
21185         * lib/careadlinkat.h: Likewise.
21186
21187 2011-04-09  Bruno Haible  <bruno@clisp.org>
21188
21189         relocatable-prog-wrapper: Update after module 'areadlink' changed.
21190         * lib/relocwrapper.c: Update dependencies hierarchy.
21191         * build-aux/install-reloc: Update list of files to be compiled.
21192         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
21193         lib/allocator.[hc].
21194
21195 2011-04-08  Eric Blake  <eblake@redhat.com>
21196
21197         strftime: silence gnulib-tool warning
21198         * modules/strftime-tests (Depends-on): Drop automatic dependency.
21199
21200 2011-04-08  Bruno Haible  <bruno@clisp.org>
21201
21202         verify: Fix syntax error with GCC 4.6 in C++ mode.
21203         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
21204         (HAVE_STATIC_ASSERT): New macro.
21205         (verify_true, verify): Use 'static_assert' if it is supported and
21206         '_Static_assert' is not supported.
21207
21208 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21209
21210         allocator: New module.
21211         * modules/allocator, lib/allocator.c: New files.
21212         * lib/allocator.h (stdlib_allocator): New decl.
21213         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
21214         Remove.  Do not include <stdlib.h>.
21215         (careadlinkat): Use stdlib_allocator instead of rolling our own.
21216         * modules/careadlinkat (Files): Remove lib/allocator.h.
21217         (Depends-on): Add allocator.
21218
21219         stdlib: let modules use system malloc, realloc
21220         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
21221         if !_GL_USE_STDLIB_ALLOC.
21222         (malloc, realloc): Limit this change to a smaller scope.
21223
21224         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
21225         (malloc, realloc): Don't #undef; no longer needed.
21226         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21227         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21228         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21229         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21230         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21231         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21232         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21233         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21234
21235         careadlinkat: rename members to avoid problem
21236         * lib/allocator.h (struct allocator): Rename members from
21237         malloc/realloc to allocate/reallocate, to avoid problems if malloc
21238         and realloc are #define'd.  Reported by Eric Blake in
21239         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
21240         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
21241
21242 2011-04-08  Eric Blake  <eblake@redhat.com>
21243
21244         nonblocking: reduce dependency
21245         * tests/test-nonblocking.c: Only test sockets when in use.
21246         * modules/nonblocking-tests (Depends-on): Drop socket.
21247         (Makefile.am): Link even if sockets are not present.
21248         * modules/pipe2-tests (Makefile.am): Likewise.
21249         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
21250
21251         pipe2: fix O_NONBLOCK support on mingw
21252         * modules/pipe2 (Depends-on): Add nonblocking.
21253         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
21254         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
21255         * tests/test-nonblocking.c (main): Likewise.
21256         * modules/pipe2-tests (Makefile.am): Avoid link failure.
21257
21258         fcntl-h: fix O_ACCMODE on cygwin
21259         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
21260         * lib/fcntl.in.h (O_ACCMODE): Fix it.
21261
21262         pipe-filter: drop O_NONBLOCK workarounds
21263         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
21264         * modules/pipe-filter-ii (Depends-on): Likewise.
21265         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
21266
21267         nonblocking: provide O_NONBLOCK for mingw
21268         * modules/nonblocking (Depends-on): Add open.
21269         (configure.ac): Set new witness macro.
21270         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
21271         * modules/fcntl-h (Makefile.am): Substitute it.
21272         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
21273         nonblocking module is in use.
21274         * lib/nonblocking.c: Adjust portability test.
21275         * lib/open.c (open): Don't let native open see gnulib flag.
21276         * tests/test-fcntl-h.c (main): Enhance test.
21277         * tests/test-open.h (test_open): Likewise.
21278         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
21279
21280         careadlinkat: fix compilation error on mingw
21281         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
21282         within struct allocator.
21283
21284 2011-04-06  Eric Blake  <eblake@redhat.com>
21285
21286         binary-io: relicense under LGPLv2+
21287         * modules/binary-io (License): Relax to LGPLv2+.
21288         Requested for libvirt, and required by pipe2.
21289
21290 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21291
21292         verify: use _Static_assert if available
21293         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
21294         (verify_true, verify): Use it if available.  This generates better
21295         diagnostics with GCC 4.6.0 and later.
21296
21297 2011-04-05  Bruno Haible  <bruno@clisp.org>
21298
21299         Remove leftover generated .h files after config.status changed.
21300
21301         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
21302         GL_GENERATE_ALLOCA_H.
21303         * modules/alloca-opt (Makefile.am): Remove alloca.h if
21304         GL_GENERATE_ALLOCA_H evaluates to false.
21305
21306         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
21307         GL_GENERATE_ARGZ_H.
21308         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
21309         evaluates to false.
21310
21311         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
21312         GL_GENERATE_BYTESWAP_H.
21313         * modules/byteswap (Makefile.am): Remove byteswap.h if
21314         GL_GENERATE_BYTESWAP_H evaluates to false.
21315
21316         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
21317         GL_GENERATE_ERRNO_H.
21318         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
21319         evaluates to false.
21320
21321         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
21322         GL_GENERATE_FLOAT_H.
21323         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
21324         evaluates to false.
21325
21326         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
21327         GL_GENERATE_FNMATCH_H.
21328         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
21329         GL_GENERATE_FNMATCH_H evaluates to false.
21330
21331         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
21332         GL_GENERATE_GLOB_H.
21333         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
21334         evaluates to false.
21335
21336         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
21337         automake conditional GL_GENERATE_ICONV_H.
21338         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
21339         evaluates to false.
21340
21341         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
21342         GL_GENERATE_NETINET_IN_H.
21343         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
21344         GL_GENERATE_NETINET_IN_H evaluates to false.
21345
21346         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
21347         conditional GL_GENERATE_PTHREAD_H.
21348         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
21349         * modules/pthread (Makefile.am): Remove pthread.h if
21350         GL_GENERATE_PTHREAD_H evaluates to false.
21351
21352         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
21353         GL_GENERATE_SCHED_H.
21354         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
21355         evaluates to false.
21356
21357         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
21358         conditional GL_GENERATE_SELINUX_CONTEXT_H.
21359         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
21360         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
21361
21362         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
21363         GL_GENERATE_STDARG_H.
21364         * modules/stdarg (Makefile.am): Remove stdarg.h if
21365         GL_GENERATE_STDARG_H evaluates to false.
21366
21367         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
21368         GL_GENERATE_STDBOOL_H.
21369         * modules/stdbool (Makefile.am): Remove stdbool.h if
21370         GL_GENERATE_STDBOOL_H evaluates to false.
21371
21372         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
21373         conditional GL_GENERATE_STDDEF_H.
21374         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
21375         * modules/stddef (Makefile.am): Remove stddef.h if
21376         GL_GENERATE_STDDEF_H evaluates to false.
21377
21378         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
21379         GL_GENERATE_STDINT_H.
21380         * modules/stdint (Makefile.am): Remove stdint.h if
21381         GL_GENERATE_STDINT_H evaluates to false.
21382
21383         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
21384         GL_GENERATE_SYSEXITS_H.
21385         * modules/sysexits (Makefile.am): Remove sysexits.h if
21386         GL_GENERATE_SYSEXITS_H evaluates to false.
21387
21388         Reported by Karl Berry and Ralf Wildenhues.
21389
21390 2011-04-05  Bruno Haible  <bruno@clisp.org>
21391
21392         Ensure to rebuild generated .h files when config.status has changed.
21393         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
21394         config.status.
21395         * modules/ctype (Makefile.am): Likewise.
21396         * modules/dirent (Makefile.am): Likewise.
21397         * modules/errno (Makefile.am): Likewise.
21398         * modules/fcntl-h (Makefile.am): Likewise.
21399         * modules/float (Makefile.am): Likewise.
21400         * modules/getopt-posix (Makefile.am): Likewise.
21401         * modules/glob (Makefile.am): Likewise.
21402         * modules/iconv-h (Makefile.am): Likewise.
21403         * modules/inttypes (Makefile.am): Likewise.
21404         * modules/langinfo (Makefile.am): Likewise.
21405         * modules/locale (Makefile.am): Likewise.
21406         * modules/math (Makefile.am): Likewise.
21407         * modules/netdb (Makefile.am): Likewise.
21408         * modules/netinet_in (Makefile.am): Likewise.
21409         * modules/poll-h (Makefile.am): Likewise.
21410         * modules/pthread (Makefile.am): Likewise.
21411         * modules/pty (Makefile.am): Likewise.
21412         * modules/sched (Makefile.am): Likewise.
21413         * modules/search (Makefile.am): Likewise.
21414         * modules/selinux-h (Makefile.am): Likewise.
21415         * modules/signal (Makefile.am): Likewise.
21416         * modules/spawn (Makefile.am): Likewise.
21417         * modules/stdarg (Makefile.am): Likewise.
21418         * modules/stdbool (Makefile.am): Likewise.
21419         * modules/stddef (Makefile.am): Likewise.
21420         * modules/stdint (Makefile.am): Likewise.
21421         * modules/stdio (Makefile.am): Likewise.
21422         * modules/stdlib (Makefile.am): Likewise.
21423         * modules/string (Makefile.am): Likewise.
21424         * modules/strings (Makefile.am): Likewise.
21425         * modules/sys_file (Makefile.am): Likewise.
21426         * modules/sys_ioctl (Makefile.am): Likewise.
21427         * modules/sys_select (Makefile.am): Likewise.
21428         * modules/sys_socket (Makefile.am): Likewise.
21429         * modules/sys_stat (Makefile.am): Likewise.
21430         * modules/sys_time (Makefile.am): Likewise.
21431         * modules/sys_times (Makefile.am): Likewise.
21432         * modules/sys_utsname (Makefile.am): Likewise.
21433         * modules/sys_wait (Makefile.am): Likewise.
21434         * modules/sysexits (Makefile.am): Likewise.
21435         * modules/termios (Makefile.am): Likewise.
21436         * modules/time (Makefile.am): Likewise.
21437         * modules/unistd (Makefile.am): Likewise.
21438         * modules/wchar (Makefile.am): Likewise.
21439         * modules/wctype-h (Makefile.am): Likewise.
21440         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
21441
21442 2011-04-05  Bruno Haible  <bruno@clisp.org>
21443
21444         pipe2: Relicense under LGPLv2+.
21445         * modules/pipe2 (License): Change to LGPLv2+.
21446         Requested by Eric Blake, for libvirt.
21447
21448 2011-04-05  Bruce Korb  <bkorb@gnu.org>
21449
21450         bootstrap: compute gnulib_extra_files after updating build_aux
21451         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
21452         change build_aux or also supply gnulib_extra_files.  Handle correctly.
21453
21454 2011-04-05  Eric Blake  <eblake@redhat.com>
21455
21456         bootstrap: preserve git whitelist item sorting
21457         * build-aux/bootstrap (sort_patterns): New function.
21458         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
21459
21460 2011-04-05  Simon Josefsson  <simon@josefsson.org>
21461
21462         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
21463         sc_space_tab check.
21464
21465 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
21466
21467         areadlink, areadlinkat: rewrite in terms of careadlinkat
21468         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
21469         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
21470         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
21471         (malloc, realloc): Remove #undefs.
21472         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
21473         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
21474         readlink, ssize_t, stdint, unistd.
21475         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
21476         areadlink, stdint.
21477
21478         careadlinkat: new module
21479         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
21480         * modules/careadlinkat: New files, written by me with
21481         a review and feedback from Ben Pfaff in
21482         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
21483
21484 2011-04-01  Bruno Haible  <bruno@clisp.org>
21485
21486         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
21487         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
21488         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
21489         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
21490         Reported by Bruce Korb <bruce.korb@gmail.com>.
21491
21492 2011-04-01  Bruno Haible  <bruno@clisp.org>
21493
21494         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
21495         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
21496         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
21497         * modules/wcpcpy (Depends-on): Add extensions.
21498         * modules/wcpncpy (Depends-on): Likewise.
21499         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
21500         systems.
21501         * doc/posix-functions/wcpncpy.texi: Likewise.
21502         * doc/posix-functions/wcwidth.texi: Likewise.
21503
21504 2011-03-31  Eric Blake  <eblake@redhat.com>
21505
21506         nonblocking: fix mingw test failures
21507         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
21508         non-blocking flag on regular file.
21509         (get_nonblocking_flag): Set errno on invalid fd.
21510         * tests/test-nonblocking.c (main): Avoid test failure on
21511         directories if fchdir is not active.
21512         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
21513
21514 2011-03-31  Bruno Haible  <bruno@clisp.org>
21515
21516         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
21517         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
21518         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
21519         Reported by Simon Josefsson <simon@josefsson.org>.
21520
21521 2011-03-31  Bruno Haible  <bruno@clisp.org>
21522         and Eric Blake  <eblake@redhat.com>
21523
21524         nonblocking: new module
21525         * modules/nonblocking: New module.
21526         * modules/nonblocking-tests: Likewise.
21527         * lib/nonblocking.h: New file.
21528         * lib/nonblocking.c: Likewise.
21529         * tests/test-nonblocking.c: New test.
21530         * lib/ioctl.c (ioctl) [mingw]: Update comment.
21531
21532 2011-03-30  Bruno Haible  <bruno@clisp.org>
21533
21534         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
21535         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
21536         instead of 'printf' format for GCC >= 4.4.
21537         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
21538         (fprintf, printf, vfprintf, vprintf): Declare with
21539         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
21540         the system's vfprintf() function.
21541         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
21542
21543 2011-03-30  Eric Blake  <eblake@redhat.com>
21544
21545         passfd: fix scoping bug
21546         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
21547         before sendmsg/recvmsg.
21548
21549         passfd: standardize coding conventions
21550         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
21551         can be learned at compile time.
21552         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
21553         ifdefs.
21554         (sendfd, recvfd): Follow gnulib code conventions.
21555
21556         passfd: fix incorrect sendmsg arguments
21557         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
21558         incorrect msg_controllen value.
21559         * modules/passfd-tests (Depends-on): Check for alarm.
21560         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
21561         Reported by Bastien ROUCARIES.
21562
21563 2011-03-30  Bruno Haible  <bruno@clisp.org>
21564
21565         c-strcasestr: Relicense under LGPLv2+.
21566         * modules/c-strcasestr (License): Change to LGPLv2+.
21567         Requested by Eric Blake, for libvirt.
21568
21569 2011-03-30  Simon Josefsson  <simon@josefsson.org>
21570
21571         * users.txt: Add libidn2.  Fix libtasn1 link.
21572
21573 2011-03-30  Jim Meyering  <meyering@redhat.com>
21574
21575         tests: readlink* ("",... fails with EINVAL on newer kernels
21576         readlink and readlinkat have typically failed with ENOENT for
21577         the invalid, empty file name,  "".  However, with the advent
21578         of linux-2.6.39, they fail with EINVAL.
21579         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
21580         when operating on the empty file name.
21581         * tests/test-readlink.h (test_readlink): Likewise.
21582
21583 2011-03-29  Bruno Haible  <bruno@clisp.org>
21584
21585         Relicense some modules under LGPLv2+, for libidn2.
21586         * modules/array-mergesort (License): Change to LGPLv2+.
21587         * modules/c-strcaseeq (License): Likewise.
21588         * modules/striconveh (License): Likewise.
21589         * modules/striconveha (License): Likewise.
21590         * modules/uniconv/base (License): Likewise.
21591         * modules/uniconv/u8-conv-from-enc (License): Likewise.
21592         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
21593         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
21594         * modules/unictype/base (License): Likewise.
21595         * modules/unictype/bidiclass-of (License): Likewise.
21596         * modules/unictype/category-M (License): Likewise.
21597         * modules/unictype/category-none (License): Likewise.
21598         * modules/unictype/category-of (License): Likewise.
21599         * modules/unictype/category-test (License): Likewise.
21600         * modules/unictype/category-test-withtable (License): Likewise.
21601         * modules/unictype/combining-class (License): Likewise.
21602         * modules/unictype/joiningtype-of (License): Likewise.
21603         * modules/unictype/scripts (License): Likewise.
21604         * modules/uninorm/base (License): Likewise.
21605         * modules/uninorm/canonical-decomposition (License): Likewise.
21606         * modules/uninorm/composition (License): Likewise.
21607         * modules/uninorm/decompose-internal (License): Likewise.
21608         * modules/uninorm/decomposition-table (License): Likewise.
21609         * modules/uninorm/nfc (License): Likewise.
21610         * modules/uninorm/nfd (License): Likewise.
21611         * modules/uninorm/u32-normalize (License): Likewise.
21612         * modules/unistr/base (License): Likewise.
21613         * modules/unistr/u32-cpy (License): Likewise.
21614         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
21615         * modules/unistr/u32-to-u8 (License): Likewise.
21616         * modules/unistr/u32-uctomb (License): Likewise.
21617         * modules/unistr/u8-check (License): Likewise.
21618         * modules/unistr/u8-mblen (License): Likewise.
21619         * modules/unistr/u8-mbtouc (License): Likewise.
21620         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
21621         * modules/unistr/u8-mbtoucr (License): Likewise.
21622         * modules/unistr/u8-prev (License): Likewise.
21623         * modules/unistr/u8-strlen (License): Likewise.
21624         * modules/unistr/u8-to-u32 (License): Likewise.
21625         * modules/unistr/u8-uctomb (License): Likewise.
21626         * modules/unitypes (License): Likewise.
21627         Requested by Simon Josefsson.
21628
21629 2011-03-29  Simon Josefsson  <simon@josefsson.org>
21630
21631         lib-symbol-visibility: Add a notice.
21632         * modules/lib-symbol-visibility (Notice): New field.
21633
21634 2011-03-29  Bruno Haible  <bruno@clisp.org>
21635
21636         getaddrinfo: Doc fix.
21637         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
21638         section "fixed in Gnulib".
21639
21640 2011-03-28  Simon Josefsson  <simon@josefsson.org>
21641
21642         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
21643         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
21644
21645 2011-03-26  Bruno Haible  <bruno@clisp.org>
21646
21647         unictype/property-byname: Reduce the number of load-time relocations.
21648         * lib/unictype/pr_byname.c: Include <stdlib.h>.
21649         (UC_PROPERTY_INDEX_*): New enumeration values.
21650         (uc_property_byname): Convert an index from the lookup table to an
21651         uc_property_t.
21652         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
21653         values.
21654
21655 2011-03-26  Bruno Haible  <bruno@clisp.org>
21656
21657         unictype/property-byname: Allow omitted word separators and aliases.
21658         * lib/unictype/pr_byname.gperf: Add property names without word
21659         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
21660         for 'space'.
21661
21662 2011-03-26  Bruno Haible  <bruno@clisp.org>
21663
21664         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
21665         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
21666         also hyphens to space.
21667         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
21668         without spaces.
21669         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
21670
21671 2011-03-26  Bruno Haible  <bruno@clisp.org>
21672
21673         unictype/joiningtype-byname: Recognize long names as well.
21674         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
21675         a long name.
21676         * lib/unictype/joiningtype_byname.c: Include <string.h>,
21677         unictype/joiningtype_byname.h.
21678         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
21679         * lib/unictype/joiningtype_byname.gperf: New file.
21680         * modules/unictype/joiningtype-byname (Files): Add
21681         lib/unictype/joiningtype_byname.gperf.
21682         (Depends-on): Add gperf.
21683         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
21684         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
21685         long names.
21686
21687         Tests for module 'unictype/joiningtype-longname'.
21688         * modules/unictype/joiningtype-longname-tests: New file.
21689         * tests/unictype/test-joiningtype_longname.c: New file.
21690
21691         New module 'unictype/joiningtype-longname'.
21692         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
21693         * lib/unictype/joiningtype_longname.c: New file.
21694         * modules/unictype/joiningtype-longname: New file.
21695         * modules/unictype/joiningtype-all (Depends-on): Add
21696         unictype/joiningtype-longname.
21697
21698 2011-03-26  Bruno Haible  <bruno@clisp.org>
21699
21700         unictype/bidiclass-byname: Recognize long names as well.
21701         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
21702         name.
21703         * lib/unictype/bidi_byname.c: Include <string.h>,
21704         unictype/bidi_byname.h.
21705         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
21706         * lib/unictype/bidi_byname.gperf: New file.
21707         * modules/unictype/bidiclass-byname (Files): Add
21708         lib/unictype/bidi_byname.gperf.
21709         (Depends-on): Add gperf.
21710         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
21711         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
21712         long names.
21713
21714         Tests for module 'unictype/bidiclass-longname'.
21715         * modules/unictype/bidiclass-longname-tests: New file.
21716         * tests/unictype/test-bidi_longname.c: New file.
21717
21718         New module 'unictype/bidiclass-longname'.
21719         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
21720         * lib/unictype/bidi_longname.c: New file.
21721         * modules/unictype/bidiclass-longname: New file.
21722         * modules/unictype/bidiclass-all (Depends-on): Add
21723         unictype/bidiclass-longname.
21724
21725 2011-03-26  Bruno Haible  <bruno@clisp.org>
21726
21727         unictype/bidi*: Rename modules.
21728         * modules/unictype/bidiclass-all: Renamed from
21729         modules/unictype/bidicategory-all.
21730         * modules/unictype/bidiclass-name: Renamed from
21731         modules/unictype/bidiclass-name.
21732         (Description): Update.
21733         * modules/unictype/bidiclass-name-tests: Renamed from
21734         modules/unictype/bidicategory-name-tests.
21735         * modules/unictype/bidiclass-byname: Renamed from
21736         modules/unictype/bidicategory-byname.
21737         (Description): Update.
21738         * modules/unictype/bidiclass-byname-tests: Renamed from
21739         modules/unictype/bidicategory-byname-tests.
21740         * modules/unictype/bidiclass-of: Renamed from
21741         modules/unictype/bidicategory-of.
21742         (Description): Update.
21743         * modules/unictype/bidiclass-of-tests: Renamed from
21744         modules/unictype/bidicategory-of-tests.
21745         * modules/unictype/bidiclass-test: Renamed from
21746         modules/unictype/bidicategory-test.
21747         (Description): Update.
21748         * modules/unictype/bidiclass-test-tests: Renamed from
21749         modules/unictype/bidicategory-test-tests.
21750         * modules/unictype/bidicategory-all: New file, a simple redirection.
21751         * modules/unictype/bidicategory-name: Likewise.
21752         * modules/unictype/bidicategory-byname: Likewise.
21753         * modules/unictype/bidicategory-of: Likewise.
21754         * modules/unictype/bidicategory-test: Likewise.
21755         * modules/unictype/property-bidi-* (Dependencies): Update.
21756         * lib/unictype/bidi_*.c: Update comment.
21757
21758 2011-03-26  Bruno Haible  <bruno@clisp.org>
21759
21760         unictype/bidi*: Rename functions, part 2.
21761         * modules/unictype/bidicategory-name (configure.ac): Update required
21762         libunistring version.
21763         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
21764
21765 2011-03-25  Bruno Haible  <bruno@clisp.org>
21766
21767         New module 'unictype/combining-class-all'.
21768         * modules/unictype/combining-class-all: New file.
21769
21770         Tests for module 'unictype/combining-class-byname'.
21771         * modules/unictype/combining-class-byname-tests: New file.
21772         * tests/unictype/test-combiningclass_byname.c: New file.
21773
21774         New module 'unictype/combining-class-byname'.
21775         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
21776         * lib/unictype/combiningclass_byname.c: New file.
21777         * lib/unictype/combiningclass_byname.gperf: New file.
21778         * modules/unictype/combining-class-byname: New file.
21779
21780         Tests for module 'unictype/combining-class-longname'.
21781         * modules/unictype/combining-class-longname-tests: New file.
21782         * tests/unictype/test-combiningclass_longname.c: New file.
21783
21784         New module 'unictype/combining-class-longname'.
21785         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
21786         * lib/unictype/combiningclass_longname.c: New file.
21787         * modules/unictype/combining-class-longname: New file.
21788
21789         Tests for module 'unictype/combining-class-name'.
21790         * modules/unictype/combining-class-name-tests: New file.
21791         * tests/unictype/test-combiningclass_name.c: New file.
21792
21793         New module 'unictype/combining-class-name'.
21794         * lib/unictype.in.h (uc_combining_class_name): New declaration.
21795         * lib/unictype/combiningclass_name.c: New file.
21796         * modules/unictype/combining-class-name: New file.
21797
21798 2011-03-25  Bruno Haible  <bruno@clisp.org>
21799
21800         unictype/combining-class: Rename source files.
21801         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
21802         of unictype/combining.h.
21803         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
21804         Update.
21805         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
21806         * modules/unictype/combining-class (Description): Fix.
21807         (Files, Makefile.am): Update.
21808         * tests/unictype/test-combiningclass.c: Renamed from
21809         tests/unictype/test-combining.c.
21810         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
21811
21812 2011-03-25  Bruno Haible  <bruno@clisp.org>
21813
21814         unictype: Update list of canonical combining classes.
21815         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
21816
21817 2011-03-25  Bruno Haible  <bruno@clisp.org>
21818
21819         unictype/category-byname: Recognize long names as well.
21820         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
21821         a long name.
21822         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
21823         unictype/categ_byname.h.
21824         (UC_CATEGORY_INDEX_*): New enumeration values.
21825         (uc_general_category_byname): Use uc_general_category_lookup and
21826         convert from index to value.
21827         * lib/unictype/categ_byname.gperf: New file.
21828         * modules/unictype/category-byname (Files): Add
21829         lib/unictype/categ_byname.gperf.
21830         (Depends-on): Add gperf.
21831         (Makefile.am): Add rule for generating unictype/categ_byname.h.
21832         * tests/unictype/test-categ_byname.c (main): Test the recognition of
21833         long names.
21834
21835         Tests for module 'unictype/category-longname'.
21836         * modules/unictype/category-longname-tests: New file.
21837         * tests/unictype/test-categ_longname.c: New file.
21838
21839         New module 'unictype/category-longname'.
21840         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
21841         * lib/unictype/categ_longname.c: New file.
21842         * modules/unictype/category-longname: New file.
21843         * modules/unictype/category-all (Depends-on): Add it.
21844
21845 2011-03-25  Bruno Haible  <bruno@clisp.org>
21846
21847         Tests for module 'unictype/category-LC'.
21848         * modules/unictype/category-LC-tests: New file.
21849         * tests/unictype/test-categ_LC.c: New file, automatically generated.
21850
21851         New module 'unictype/category-LC'.
21852         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
21853         (UC_CATEGORY_LC): New declaration.
21854         (UC_CASED_LETTER): New macro.
21855         * lib/gen-uni-tables.c (is_category_LC): New function.
21856         (output_categories): Also handle category LC.
21857         (UC_CATEGORY_MASK_LC): New enumeration value.
21858         (general_category_byname): Also handle category LC.
21859         * lib/unictype/categ_LC.c: New file.
21860         * lib/unictype/categ_LC.h: New file, automatically generated.
21861         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
21862         category LC.
21863         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
21864         * modules/unictype/category-LC: New file.
21865         * modules/unictype/category-byname (Depends-on): Add
21866         unictype/category-LC.
21867         * modules/unictype/category-all (Depends-on): Likewise.
21868
21869 2011-03-25  Eric Blake  <eblake@redhat.com>
21870
21871         xmalloc: revert yesterday's regression
21872         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
21873         realloc's underlying behavior (allowing allocation of zero-size
21874         objects, especially if malloc-gnu is also in use).
21875
21876 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
21877
21878         maint.mk: add missing version to VC-tag
21879         * top/maint.mk: git tag was missing actual tag name; add it.
21880
21881         valgrind: do leak checking, and exit with code 1 on error (not 0)
21882         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
21883         to VALGRIND.
21884
21885 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
21886
21887         posix-modules: say what it does.
21888         * posix-modules: Add a line to the --help output saying what it does.
21889
21890 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
21891
21892         xmalloc: Do not leak if underlying realloc is C99 compatible.
21893         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
21894         This avoids a leak on C99-based systems.  See
21895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
21896
21897 2011-03-24  Eric Blake  <eblake@redhat.com>
21898
21899         realloc: document portability problem
21900         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
21901         passing 0 size to realloc.
21902
21903 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
21904
21905         doc: update users.txt
21906         * users.txt: Add cvsps, tmpwatch
21907
21908 2011-03-23  Matt Rice  <ratmice@gmail.com>
21909
21910         doc: update users.txt
21911         * users.txt: Add gdb.
21912
21913 2011-03-23  Jim Meyering  <meyering@redhat.com>
21914
21915         doc: update users.txt
21916         Looking through matches up to the following URL (there are still
21917         several more pages), I found several projects that use gnulib:
21918         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
21919         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
21920         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
21921
21922 2011-03-22  Bruno Haible  <bruno@clisp.org>
21923
21924         unictype/bidi*: Rename functions.
21925         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
21926         uc_bidi_class, uc_is_bidi_class): New declarations.
21927         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
21928         uc_bidi_category_byname.
21929         (uc_bidi_category_byname): New function.
21930         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
21931         u_bidi_category_name.
21932         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
21933         (uc_bidi_category_name): New function.
21934         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
21935         uc_bidi_category.
21936         (uc_bidi_category): New function.
21937         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
21938         uc_is_bidi_category. Invoke uc_bidi_class.
21939         (uc_is_bidi_category): New function.
21940         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
21941         instead of uc_bidi_category_byname.
21942         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
21943         instead of uc_bidi_category_name.
21944         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
21945         uc_bidi_category.
21946         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
21947         instead of uc_is_bidi_category.
21948
21949 2011-03-21  Bruno Haible  <bruno@clisp.org>
21950
21951         New module 'unictype/joininggroup-all'.
21952         * modules/unictype/joininggroup-all: New file.
21953
21954         Tests for module 'unictype/joininggroup-of'.
21955         * modules/unictype/joininggroup-of-tests: New file.
21956         * tests/unictype/test-joininggroup_of.c: New file.
21957         * tests/unictype/test-joininggroup_of.h: New file, automatically
21958         generated by gen-uni-tables.
21959
21960         New module 'unictype/joininggroup-of'.
21961         * modules/unictype/joininggroup-of: New file.
21962         * lib/unictype/joininggroup_of.c: New file.
21963         * lib/unictype/joininggroup_of.h: New file, automatically generated by
21964         gen-uni-tables.
21965
21966         Tests for module 'unictype/joininggroup-byname'.
21967         * modules/unictype/joininggroup-byname-tests: New file.
21968         * tests/unictype/test-joininggroup_byname.c: New file.
21969
21970         New module 'unictype/joininggroup-byname'.
21971         * modules/unictype/joininggroup-byname: New file.
21972         * lib/unictype/joininggroup_byname.c: New file.
21973         * lib/unictype/joininggroup_byname.gperf: New file.
21974
21975         Tests for module 'unictype/joininggroup-name'.
21976         * modules/unictype/joininggroup-name-tests: New file.
21977         * tests/unictype/test-joininggroup_name.c: New file.
21978
21979         New module 'unictype/joininggroup-name'.
21980         * modules/unictype/joininggroup-name: New file.
21981         * lib/unictype/joininggroup_name.c: New file.
21982         * lib/unictype/joininggroup_name.h: New file.
21983
21984         New module 'unictype/joiningtype-all'.
21985         * modules/unictype/joiningtype-all: New file.
21986
21987         Tests for module 'unictype/joiningtype-of'.
21988         * modules/unictype/joiningtype-of-tests: New file.
21989         * tests/unictype/test-joiningtype_of.c: New file.
21990         * tests/unictype/test-joiningtype_of.h: New file, automatically
21991         generated by gen-uni-tables.
21992
21993         New module 'unictype/joiningtype-of'.
21994         * modules/unictype/joiningtype-of: New file.
21995         * lib/unictype/joiningtype_of.c: New file.
21996         * lib/unictype/joiningtype_of.h: New file, automatically generated by
21997         gen-uni-tables.
21998
21999         Tests for module 'unictype/joiningtype-byname'.
22000         * modules/unictype/joiningtype-byname-tests: New file.
22001         * tests/unictype/test-joiningtype_byname.c: New file.
22002
22003         New module 'unictype/joiningtype-byname'.
22004         * modules/unictype/joiningtype-byname: New file.
22005         * lib/unictype/joiningtype_byname.c: New file.
22006
22007         Tests for module 'unictype/joiningtype-name'.
22008         * modules/unictype/joiningtype-name-tests: New file.
22009         * tests/unictype/test-joiningtype_name.c: New file.
22010
22011         New module 'unictype/joiningtype-name'.
22012         * modules/unictype/joiningtype-name: New file.
22013         * lib/unictype/joiningtype_name.c: New file.
22014
22015         unictype: Add support for Arabic shaping properties.
22016         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
22017         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
22018         declarations.
22019         (UC_JOINING_GROUP_*): New enumeration values.
22020         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
22021         declarations.
22022         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
22023         (unicode_joining_type): New variable.
22024         (UC_JOINING_GROUP_*): New enumeration values.
22025         (unicode_joining_group): New variable.
22026         (fill_arabicshaping, joining_type_as_c_identifier,
22027         output_joining_type_test, output_joining_type,
22028         joining_group_as_c_identifier, output_joining_group_test,
22029         output_joining_group): New functions.
22030         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
22031         fill_arabicshaping and output_joining_type_test, output_joining_type,
22032         output_joining_group_test, output_joining_group.
22033         Reported by Simon Josefsson.
22034
22035 2011-03-21  Jim Meyering  <meyering@redhat.com>
22036
22037         strftime: fix a bug in yesterday's change
22038         * lib/strftime.c (add): Accommodate width's initial value of -1.
22039         Otherwise, nstrftime would copy uninitialized data into
22040         the result buffer.
22041
22042 2011-03-21  Jim Meyering  <meyering@redhat.com>
22043
22044         tests: add strftime-tests module
22045         * tests/test-strftime.c: New file.
22046         * modules/strftime-tests: New module.
22047
22048 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22049
22050         strftime: don't assume a byte count fits in 'int'
22051         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
22052         found this problem by static analysis, using gcc -Wstrict-overflow
22053         (GCC 4.5.2, x86-64).  This reported an optimization that depended
22054         on an integer overflow having undefined behavior, but it turns out
22055         that the argument is a size, which might not fit in 'int' anyway,
22056
22057 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22058
22059         stdio: don't require ignore_value around fwrite
22060
22061         This patch works around libc bug 11959
22062         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
22063         Without this patch, applications must often write
22064         ignore_value (fwrite (...)) even though the ignore_value is
22065         not helpful here.  It's common to write many objects, using
22066         fwrite/printf/etc., and then use ferror to detect output error.
22067
22068         I considered making this patch optional, but decided against it,
22069         because libc is obviously being inconsistent here: there is no
22070         reason libc should insist that user code must inspect fwrite
22071         return's value without also insisting that it inspect printf's,
22072         putchar's, etc.  If user code wants to have a strict style where
22073         all these functions' values are checked (so that ferror need not
22074         be checked), we could add support for that style in a new gnulib
22075         module, but in the meantime it's better to be consistent and to
22076         support common usage.
22077
22078         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
22079         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
22080         that we are compiling in checking mode, and if not C++, and
22081         if not already wrapping fwrite for some other reason.
22082         (fwrite): #define to rpl_fwrite if the latter is defined.
22083
22084 2011-03-20  Bruno Haible  <bruno@clisp.org>
22085
22086         verror: Fix compilation error introduced on 2011-02-13.
22087         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
22088         instead of __attribute__.
22089         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22090
22091 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22092             Bruno Haible  <bruno@clisp.org>
22093
22094         socklen: do not depend on sys_socket
22095         While trying to modify Emacs to use gnulib's socklen module,
22096         I discovered a circular dependency: socklen depends on sys_socket
22097         and vice versa.  Emacs can use socklen, but it does not need
22098         sys_socket because it has its own substitute for sys/socket.h.
22099         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
22100         gl_TYPE_SOCKLEN_T.
22101         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
22102         gl_PREREQ_SYS_H_SOCKET.
22103         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
22104         gl_PREREQ_SYS_H_SOCKET.
22105         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
22106         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
22107         * modules/socklen (Depends-on): Do not depend on sys_socket.
22108         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
22109
22110 2011-03-20  Jim Meyering  <meyering@redhat.com>
22111
22112         maint.mk: sort file names *after* new transformation
22113         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
22114         prefix would have led to an unwarranted failure in GNU parted.
22115         Sort after that transformation.
22116
22117 2011-03-19  Jim Meyering  <meyering@redhat.com>
22118
22119         maint.mk: fix po-file syntax-check rule
22120         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
22121         Patch by Bruno Haible.
22122
22123 2011-03-19  Bruno Haible  <bruno@clisp.org>
22124
22125         socklen: Update comment.
22126         * m4/socklen.m4: Update comment about platforms.
22127
22128 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22129             Bruno Haible  <bruno@clisp.org>
22130
22131         inet_ntop, inet_pton: Simplify.
22132         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
22133         documented to provide socklen_t and we already depend on sys_socket.
22134         * modules/inet_pton (Depends-on): Likewise.
22135         * lib/arpa_inet.in.h: Adjust comment.
22136
22137 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22138             Bruno Haible  <bruno@clisp.org>
22139
22140         netdb: Simplify.
22141         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
22142         documented to provide socklen_t and we already depend on sys_socket.
22143         * lib/netdb.in.h: Adjust comment.
22144
22145 2011-03-19  Bruno Haible  <bruno@clisp.org>
22146
22147         sys_socket, netdb: Document problem with socklen_t.
22148         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
22149         platforms.
22150         * doc/posix-headers/netdb.texi: Likewise.
22151
22152 2011-03-18  Eric Blake  <eblake@redhat.com>
22153
22154         maint.mk: let po check work in VPATH build
22155         * top/maint.mk (po_file): Allow cfg.mk override.
22156         (sc_po_check): Allow VPATH use.
22157         Reported by Jiri Denemark.
22158
22159 2011-03-16  Jim Meyering  <meyering@redhat.com>
22160
22161         maint.mk: allow fine-grained syntax-check exclusion via Make variables
22162         Before, you would have had to create one .x-sc_ file per rule in order
22163         to exempt offending files.  Now, you may instead use a Make variable --
22164         usually defined in cfg.mk -- whose name identifies the affected rule.
22165         * top/maint.mk (_sc_excl): Define.
22166         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
22167         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
22168
22169 2011-03-13  Bruno Haible  <bruno@clisp.org>
22170
22171         ignore-value tests: Avoid warnings.
22172         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
22173         empty for gcc < 3.4.
22174
22175 2011-03-13  Bruno Haible  <bruno@clisp.org>
22176
22177         passfd: Fix link error on Solaris.
22178         * modules/passfd (Description): Correct.
22179         (Depends-on): Add socketlib.
22180         (Link): New section.
22181         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
22182
22183 2011-03-13  Bruno Haible  <bruno@clisp.org>
22184
22185         passfd: Fix link error on AIX 5.2.
22186         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
22187
22188 2011-03-13  Bruno Haible  <bruno@clisp.org>
22189
22190         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
22191         * lib/sys_socket.in.h: Include <stddef.h>.
22192         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
22193         CMSG_FIRSTHDR. Remove unused variable.
22194
22195 2011-03-13  Bruno Haible  <bruno@clisp.org>
22196
22197         passfd: Fix compilation error on OpenBSD.
22198         * lib/passfd.c: Include <sys/uio.h>.
22199
22200 2011-03-13  Bruno Haible  <bruno@clisp.org>
22201
22202         passfd test: Fix warnings.
22203         * tests/test-passfd.c: Include <sys/wait.h>.
22204         (main): Fix typo.
22205
22206 2011-03-13  Bruno Haible  <bruno@clisp.org>
22207
22208         passfd module, part 4, tweaks.
22209         * tests/test-passfd.c: Reorder includes.
22210         (main): Fix perror and printf calls.
22211
22212 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22213
22214         passfd module, part 4.
22215         * modules/passfd-tests: New file.
22216         * tests/test-passfd.c: New file.
22217
22218 2011-03-13  Jim Meyering  <meyering@redhat.com>
22219
22220         Makefile: rely on GNU make; derive syntax-check rule names
22221         Rather than requiring that each sc_ rule be listed as a dependent
22222         of "check", use features of GNU make to derive the list.
22223         * Makefile (syntax-check-rules): Define.
22224         (check): Depend on the new variable, not the hard-coded list.
22225
22226 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
22227             Bruno Haible  <bruno@clisp.org>
22228
22229         passfd module, part 3.
22230         * lib/passfd.h (recvfd): Add a flags argument.
22231         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
22232         (recvfd): Add a flags argument.
22233         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
22234         exists.
22235         * modules/passfd (Depends-on): Add cloexec.
22236         Suggested by Eric Blake.
22237
22238 2011-03-13  Bruno Haible  <bruno@clisp.org>
22239
22240         passfd module, part 2, tweaks.
22241         * modules/passfd (Files): Reorder.
22242         (Depends-on): Remove errno.
22243         (Include): Remove <sys/socket.h>, <sys/un.h>.
22244         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
22245         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
22246         specification header. Include <sys/socket.h> always. Don't include
22247         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
22248         (sendfd): Clarify that it sets errno when it fails.
22249         (recvfd): Fix specification.
22250
22251 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22252
22253         passfd module, part 2.
22254         * modules/passfd: New file.
22255         * lib/passfd.h: New file.
22256         * lib/passfd.c: New file.
22257
22258 2011-03-12  Bruno Haible  <bruno@clisp.org>
22259
22260         wcswidth, mbswidth: Avoid integer overflow.
22261         * lib/wcswidth.c: Include <limits.h>.
22262         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
22263         * lib/mbswidth.c: Include <limits.h>.
22264         (mbsnwidth): Avoid 'int' overflow.
22265         Reported by Jim Meyering.
22266
22267 2011-03-12  Bruno Haible  <bruno@clisp.org>
22268
22269         futimens, utimensat: Avoid endless recursion on Solaris 10.
22270         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
22271         Solaris.
22272         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
22273         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
22274
22275 2011-03-11  Jim Meyering  <meyering@redhat.com>
22276
22277         maint.mk: relax a regexp to accommodate other formatting styles
22278         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
22279         between "ngettext" and the following "(".
22280
22281 2011-03-11  Pádraig Brady <P@draigBrady.com>
22282
22283         maint.mk: suppress a false positive warning
22284         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
22285         diagnostics are marked with ngettext.
22286
22287 2011-03-10  Eric Blake  <eblake@redhat.com>
22288
22289         wchar: add explicit dependencies, for Tru64
22290         * modules/mbmemcasecoll (Depends-on): Add wchar.
22291         * modules/mbtowc (Depends-on): Likewise.
22292         * modules/vasnprintf (Depends-on): Likewise.
22293         * modules/unistdio/u-printf-args (Depends-on): Likewise.
22294         * modules/wctomb (Depends-on): Likewise.
22295         Reported by Peter O'Gorman.
22296
22297 2011-03-08  Bruno Haible  <bruno@clisp.org>
22298
22299         passfd module, part 1, tweaks.
22300         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
22301         Improve indentation. Improve AC_MSG_CHECKING messages.
22302         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
22303         gl_SOCKET_FAMILIES.
22304
22305 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22306
22307         passfd module, part 1.
22308         * m4/afunix.m4: New file.
22309         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
22310         sockets.
22311
22312 2011-03-08  Bruno Haible  <bruno@clisp.org>
22313
22314         regex-quote: New API.
22315         * lib/regex-quote.h: Include <stdbool.h>.
22316         (struct regex_quote_spec): New type.
22317         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22318         New declarations.
22319         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22320         'const struct regex_quote_spec *' argument.
22321         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
22322         (pcre_special): New constant.
22323         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22324         New functions.
22325         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22326         'const struct regex_quote_spec *' argument.
22327         * modules/regex-quote (Depends-on): Add stdbool.
22328         * tests/test-regex-quote.c (check): Update for new API. Add test for
22329         anchored results.
22330         * NEWS: Mention the API change.
22331         Reported by Reuben Thomas and Eric Blake.
22332
22333 2011-03-06  Bruno Haible  <bruno@clisp.org>
22334
22335         regex-quote: Fix creation of POSIX extended regular expressions.
22336         * lib/regex-quote.c (ere_special): Add grouping and alternation
22337         operators.
22338
22339 2011-03-05  Bruno Haible  <bruno@clisp.org>
22340
22341         doc: Improve doc regarding autopoint vs. gnulib.
22342         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
22343         disable autopoint while running autoreconf.
22344         Suggested by Ralf Wildenhues.
22345
22346 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22347
22348         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
22349         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
22350
22351 2011-03-03  Bruce Korb  <bkorb@gnu.org>
22352
22353         parse-duration: remove xalloc.h dependency
22354         * lib/parse-duration.c (parse_period): handle NULL return from
22355         strdup instead of calling xstrdup().
22356         * modules/parse-duration: remove "xalloc" dependency
22357
22358 2011-03-03  Matthew Booth  <mbooth@redhat.com>
22359
22360         bootstrap: honor m4_base when running aclocal
22361         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
22362
22363 2011-03-02  Jim Meyering  <meyering@redhat.com>
22364
22365         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
22366         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
22367         on request from Matt Booth.
22368
22369 2011-03-01  Eric Blake  <eblake@redhat.com>
22370
22371         test-link: work on Hurd
22372         * tests/test-link.h (test_link): Hurd rejects linking directories
22373         with EISDIR instead of the POSIX-mandated EPERM.
22374
22375 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
22376
22377         stdio: simplify by moving files to printf-posix, sigpipe
22378         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
22379         since this symbol is needed only if printf is replaced.
22380         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
22381         Require gl_ASM_SYMBOL_PREFIX.
22382         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
22383         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
22384         (Depends-on): Add 'raise'.
22385         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
22386         * modules/stdio (Files): Remove lib/stdio-write.c,
22387         m4/asm-underscore.m4.
22388         (Depends-on): Remove 'raise'.
22389
22390         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
22391         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
22392         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
22393         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
22394
22395 2011-02-28  Bruno Haible  <bruno@clisp.org>
22396
22397         localcharset: Assume ANSI C behaviour of free().
22398         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
22399         calling free().
22400         Suggested by Simon Josefsson <simon@josefsson.org>.
22401
22402 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
22403             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
22404             Bruno Haible  <bruno@clisp.org>  (tiny change)
22405
22406         On Cygwin, use /proc file system instead of win32 API.
22407         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
22408         Win32 file names.
22409         (DllMain): Simplify by removing Cygwin specific code.
22410         (find_shared_library_fullname): Use Linux specific implementation also
22411         for Cygwin.
22412         (get_shared_library_fullname): Update accordingly.
22413         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
22414         Win32 file names.
22415         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
22416         Cygwin specific code.
22417
22418 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
22419             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
22420
22421         Fix OpenMP flag detection for various Fortran compilers.
22422         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
22423         OpenMP-conditional compilation construct, to force compile
22424         failure with missing OpenMP flag.
22425         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
22426
22427 2011-02-25  Eric Blake  <eblake@redhat.com>
22428
22429         strstr: expand test coverage
22430         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
22431         compilation.
22432         * tests/test-memmem.c (main): Duplicate tests.
22433         * tests/test-strcasestr.c (main): Likewise.
22434         * tests/test-c-strcasestr.c (main): Likewise.
22435
22436 2011-02-25  Jim Meyering  <meyering@redhat.com>
22437
22438         maint.mk: detect missing-NL-at-EOF, too
22439         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
22440         it also detects when a file lacks a newline at EOF.
22441         (require_exactly_one_NL_at_EOF_): Renamed from
22442         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
22443         since people may well have .x-sc_... file names tied to the
22444         existing name.  Suggested by Eric Blake.
22445
22446 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
22447
22448         dirname: move m4/dos.m4 functionality into lib/dosname.h
22449
22450         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
22451         extracts symbols from it, puts them into config.h; but it's much
22452         easier to use the symbols directly.  filename.h already does this,
22453         but it disagrees with dos.m4 in some respects.  This patch
22454         introduces a different include file dosname.h that packages up
22455         dos.m4, and then later we can work on merging filename.h and
22456         dosname.h.  Applications that need only the easy-to-configure
22457         symbols should consider including dosname.h rather than dirname.h.
22458         * NEWS: Mention incompatible changes.
22459         * m4/dos.m4: Remove.
22460         * lib/dosname.h, modules/dosname: New files.
22461         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
22462         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
22463         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
22464         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
22465         Include dosname.h, not dirname.h.
22466         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
22467         Include dosname.h, for definitions of symbols like ISSLASH
22468         that used to be in config.h.
22469         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
22470         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22471         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22472         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22473         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
22474         * modules/rmdir (Files): Likewise.
22475         * modules/stat (Files): Likewise.
22476         * modules/unlink (Files): Likewise.
22477         * modules/dirname-lgpl (Depends-on): Add dosname.
22478         * modules/lstat (Depends-on): Likewise.
22479         * modules/openat (Depends-on): Likewise.
22480         * modules/rmdir (Depends-on): Likewise.
22481         * modules/savewd (Depends-on): Likewise.
22482         * modules/stat (Depends-on): Likewise.
22483         * modules/unlink (Depends-on): Likewise.
22484         * modules/openat (Depends-on): Remove dirname-lgpl.
22485         * modules/savewd (Depends-on): Likewise.
22486         * tests/test-dirname.c: Do not use removed symbols like
22487         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
22488         the remaining symbols, e.g., ISSLASH ('\\').
22489
22490 2011-02-25  Eric Blake  <eblake@redhat.com>
22491
22492         strstr: revert patches that introduced bug and pessimization
22493         * lib/str-two-way.h: Add another reference.
22494         (two_way_short_needle, two_way_long_needle): Revert changes from
22495         2011-02-24; they pessimize search speed.
22496         (critical_factorization): Partially revert changes from
22497         2010-06-22; they violate the requirement that the left half of the
22498         needle be smaller than the period of the needle.
22499
22500 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22501
22502         filenamecat: remove unnecessary dependency on dirname-lgpl
22503         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
22504         is no direct dependency, just an indirect one via filenamecat-lgpl.
22505
22506         remove: remove unnecessary use of m4/dos.m4
22507         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
22508         * modules/remove (FILES): Remove m4/dos.m4.
22509
22510         * lib/openat-proc.c: Don't include dirname.h; not needed.
22511
22512         backupfile: remove unnecessary use of m4/dos.m4
22513         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
22514         of its symbols are used by the backupfile code.  backupfile.c does
22515         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
22516         for the rare case of programs that want all their backup file
22517         names to live within 8+3 limits, and dos.m4 doesn't address that.
22518         * modules/backupfile (Files): Remove m4/dos.m4.
22519
22520 2011-02-24  Jim Meyering  <meyering@redhat.com>
22521
22522         strstr: fix a bug whereby strstr would mistakenly return NULL
22523         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
22524         in period calculation.
22525         (two_way_long_needle): Likewise.
22526         The original problem was reported by Mike Stump in
22527         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
22528         Ralf Wildenhues provided the short needle and haystack.
22529         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
22530         Add a more involved test to trigger the bug in two_way_long_needle.
22531
22532 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22533
22534         gnulib-tool: remove use of bold display in help screen
22535         * gnulib-tool (func_usage): Do not use bold display anymore in the
22536         help screen.  That was just meant to be a temporary emphasis for a
22537         backward-incompatible change.
22538
22539 2011-02-23  Bruno Haible  <bruno@clisp.org>
22540
22541         Fix misindentation of preprocessor directives.
22542         * lib/argp-namefrob.h: Reindent preprocessor directives.
22543         * lib/getopt_int.h (struct _getopt_data): Likewise.
22544         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
22545         * lib/vasnprintf.c (decode_long_double): Likewise.
22546         * tests/test-argmatch.c: Insert blank lines, for clarity.
22547         * tests/test-exclude.c: Likewise.
22548
22549 2011-02-22  Bruno Haible  <bruno@clisp.org>
22550
22551         ioctl: Fix for MacOS X in 64-bit mode.
22552         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
22553         value.
22554         Suggested by Eric Blake.
22555         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
22556
22557 2011-02-22  Jim Meyering  <meyering@redhat.com>
22558
22559         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
22560         * Makefile (sc_cpp_indent_check): Don't limit the check to files
22561         in lib/.
22562
22563 2011-02-22  Eric Blake  <eblake@redhat.com>
22564
22565         maint: avoid any CDPATH issue
22566         * Makefile (sc_cpp_indent_check): Anchor cd argument.
22567
22568         maint: adjust cpp indentation for my modules, as well
22569         * Makefile (sc_cpp_indent_check): Add my name.
22570         * lib/fbufmode.c: Filter through cppi.
22571         * lib/fpurge.c: Likewise.
22572         * lib/freadable.c: Likewise.
22573         * lib/freading.c: Likewise.
22574         * lib/fwritable.c: Likewise.
22575         * lib/fwriting.c: Likewise.
22576         * lib/sigaction.c: Likewise.
22577
22578 2011-02-22  Jim Meyering  <meyering@redhat.com>
22579
22580         maint: adjust cpp indentation to reflect nesting depth
22581         I.e., in a block of code that begins with an unnested "#if",
22582         put one space between the "#" in column 1 and following token.
22583         For example,
22584         -#include <sys/vfs.h>
22585         +# include <sys/vfs.h>
22586         Do this only in .c files that are part of a module I maintain.
22587         * lib/linkat.c: Filter through cppi.
22588         * lib/nanosleep.c: Likewise.
22589         * lib/openat.c: Likewise.
22590         * lib/openat-die.c: Likewise.
22591         * lib/dup3.c: Likewise.
22592         * lib/fchownat.c: Likewise.
22593         * lib/flock.c: Likewise.
22594         * lib/fsync.c: Likewise.
22595         * lib/fts.c: Likewise.
22596         * lib/getpass.c: Likewise.
22597         * lib/gettimeofday.c: Likewise.
22598         * lib/userspec.c: Likewise.
22599         * Makefile (sc_cpp_indent_check): New rule, to check this.
22600
22601 2011-02-22  Bruno Haible  <bruno@clisp.org>
22602
22603         New module 'wctomb'.
22604         * lib/stdlib.in.h (wctomb): New declaration.
22605         * lib/wctomb.c: New file.
22606         * lib/wctomb-impl.h: New file.
22607         * m4/wctomb.m4: New file.
22608         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
22609         REPLACE_WCTOMB.
22610         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
22611         REPLACE_WCTOMB.
22612         * modules/wctomb: New file.
22613         * tests/test-stdlib-c++.cc: Test signature of wctomb.
22614         * doc/posix-functions/wctomb.texi: Mention the new module.
22615         * modules/wctob (Depends-on): Add wctomb.
22616
22617 2011-02-22  Bruno Haible  <bruno@clisp.org>
22618
22619         New module 'mbtowc'.
22620         * lib/stdlib.in.h (mbtowc): New declaration.
22621         * lib/mbtowc.c: New file.
22622         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
22623         * m4/mbtowc.m4: New file.
22624         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
22625         REPLACE_MBTOWC.
22626         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
22627         REPLACE_MBTOWC.
22628         * modules/mbtowc: New file.
22629         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
22630         * doc/posix-functions/mbtowc.texi: Mention the new module.
22631         * modules/btowc (Depends-on): Add mbtowc.
22632
22633 2011-02-22  Bruno Haible  <bruno@clisp.org>
22634
22635         wcrtomb: Add more tests for native Windows platforms.
22636         * tests/test-wcrtomb-w32-1.sh: New file.
22637         * tests/test-wcrtomb-w32-2.sh: New file.
22638         * tests/test-wcrtomb-w32-3.sh: New file.
22639         * tests/test-wcrtomb-w32-4.sh: New file.
22640         * tests/test-wcrtomb-w32-5.sh: New file.
22641         * tests/test-wcrtomb-w32.c: New file.
22642         * modules/wcrtomb-tests (Files): Add them.
22643         (Makefile.am): Arrange to run these tests.
22644         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
22645         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
22646
22647 2011-02-20  Bruno Haible  <bruno@clisp.org>
22648
22649         wcrtomb: Enhance test.
22650         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
22651
22652 2011-02-20  Bruno Haible  <bruno@clisp.org>
22653
22654         mbrtowc: Tiny optimization.
22655         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
22656
22657 2011-02-20  Jim Meyering  <meyering@redhat.com>
22658
22659         test-exclude.c: remove unmatched #endif
22660         * tests/test-exclude.c: Remove stray #endif, left over from
22661         the change of a week ago.
22662
22663 2011-02-19  Jim Meyering  <meyering@redhat.com>
22664
22665         git-version-gen: skip "-dirty" check when appropriate
22666         * build-aux/git-version-gen: Don't run any git commands when the
22667         version string comes from .tarball-version.  Prior to this, we
22668         would run git update-index --refresh even from a just-unpacked
22669         tarball directory, and that could affect a .git/ directory in a
22670         parent of the build directory.  Reported by Mike Frysinger.
22671
22672 2011-02-19  Bruno Haible  <bruno@clisp.org>
22673
22674         unictype/property-byname: Reduce the size of the 'data' segment.
22675         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
22676
22677 2011-02-19  Bruno Haible  <bruno@clisp.org>
22678
22679         unictype/scripts: Reduce the size of the 'data' segment.
22680         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
22681         '%pic'.
22682         * lib/unictype/scripts_byname.gperf: Regenerated.
22683
22684 2011-02-19  Bruno Haible  <bruno@clisp.org>
22685
22686         stdint: Update documentation.
22687         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
22688
22689 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
22690
22691         stdint: omit redundant check for wchar.h
22692         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
22693         always tests whether wchar.h exists, so remove the now-redundant test.
22694
22695 2011-02-18  Bruno Haible  <bruno@clisp.org>
22696
22697         stdint: Cut dependency to module 'wchar'.
22698         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
22699         include the necessary prerequisites.
22700         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
22701         * modules/stdint (Depends-on): Remove wchar.
22702         (Makefile.am): Substitute HAVE_WCHAR_H.
22703         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
22704
22705 2011-02-18  Eric Blake  <eblake@redhat.com>
22706
22707         longlong: skip, rather than fail, on cross-compilation
22708         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
22709         when cross-compiling; regression from 2011-02-16.
22710
22711 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22712
22713         * NEWS: Mention 2011-02-08 change to stdlib.
22714
22715 2011-02-17  Bruno Haible  <bruno@clisp.org>
22716
22717         getloadavg: Add comments about platforms.
22718         * m4/getloadavg.m4: Add comment.
22719         * lib/getloadavg.c: Likewise.
22720
22721 2011-02-17  Bruno Haible  <bruno@clisp.org>
22722
22723         getloadavg: Fix link error on Solaris 2.6.
22724         * modules/getloadavg (Link): New section.
22725         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
22726         linking test-getloadavg.
22727         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
22728         getloadavg.
22729
22730 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22731
22732         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
22733         It was 'int', but this doesn't match the IRIX 6.5 manual.
22734         Suggested by Bruno Haible in
22735         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
22736
22737 2011-02-17  Bruno Haible  <bruno@clisp.org>
22738
22739         havelib: Fix comments.
22740         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
22741         change.
22742
22743 2011-02-17  Bruno Haible  <bruno@clisp.org>
22744
22745         havelib: Update config.rpath.
22746         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
22747
22748 2011-02-17  Bruno Haible  <bruno@clisp.org>
22749
22750         getloadavg test: Add some plausibility checks.
22751         * tests/test-getloadavg.c (check_avg): Print a warning when the value
22752         is improbable.
22753
22754 2011-02-16  Eric Blake  <eblake@redhat.com>
22755
22756         maintainer-makefile: make syntax-check a no-op from tarballs
22757         * top/maint.mk (no-vc-detected): New rule.
22758         (local-checks-available): Use it to avoid hanging if someone tries
22759         'make syntax-check' from a tarball.  Also append to any non-syntax
22760         checks already defined in cfg.mk.
22761
22762 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22763
22764         longlong: tune, particularly for common case of c99
22765
22766         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
22767         or running anything if c99, or if unsigned long long int does not
22768         work.  In either case, we know the answer without further tests.
22769         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
22770         it at most once, and use its results for both long long int and
22771         unsigned long long int.  This is more likely to be efficient in
22772         the common case where the program wants to check for both long
22773         long int and unsigned long long int.
22774         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
22775         since the answer is already known.
22776
22777 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
22778
22779         getloadavg: set errno
22780         * lib/getloadavg.c: Set errno when returning -1.  If no other
22781         error number looks appropriate, set it to ENOSYS if the getloadavg
22782         looks like it can't possibly ever work, ENOTSUP otherwise.
22783         Suggested by Bruno Haible in
22784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
22785
22786         getloadavg: trim unused parts and speed up 'configure'
22787         * NEWS: Document this.
22788         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
22789         always compiled if getloadavg is absent.
22790         Move test code to ...
22791         * tests/test-getloadavg.c: New file, containing previous
22792         contents of test from lib/getloadavg.c.  It also contains
22793         suggestions by Bruno Haible in
22794         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
22795         * modules/getloadavg-tests: New file.
22796         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
22797         Do tests in the same order as they're needed for getloadavg.c.
22798         Omit setgid-related tests that generate symbols KMEM_GROUP,
22799         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
22800         Do only the tests that are needed to see whether the system has
22801         getloadavg, moving the other tests into ...
22802         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
22803         NLIST_NAME_UNION; nobody should be using it.  Do not define
22804         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
22805         relevant, as the user of this module shouldn't care how getloadavg
22806         is implemented.
22807
22808         getloadavg: omit unused var
22809         * lib/getloadavg.c (getloadavg): Omit unused local variable.
22810
22811 2011-02-15  Jim Meyering  <meyering@redhat.com>
22812
22813         doc: update users.txt
22814         * users.txt: Update iwhd's URL.
22815
22816 2011-02-13  Bruno Haible  <bruno@clisp.org>
22817
22818         Consistent macro naming for macros that use GCC __attribute__.
22819         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
22820         _ATTRIBUTE_NONNULL_.
22821         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
22822         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
22823         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
22824         ATTRIBUTE_DEPRECATED.
22825         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
22826         ATTRIBUTE_NORETURN.
22827         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22828         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22829         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22830         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22831         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
22832         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
22833         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
22834         ATTRIBUTE_SENTINEL.
22835         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
22836         ATTRIBUTE_RETURN_CHECK.
22837         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
22838         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
22839         ATTRIBUTE_NORETURN.
22840         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
22841         Reported by Paul Eggert.
22842
22843 2011-02-13  Bruno Haible  <bruno@clisp.org>
22844
22845         Don't interfere with a program's definition of __attribute__.
22846         * lib/argp.h (__attribute__): Remove definition.
22847         (_GL_ATTRIBUTE_FORMAT): New macro.
22848         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
22849         * lib/argp-fmtstream.h (__attribute__): Remove definition.
22850         (_GL_ATTRIBUTE_FORMAT): New macro.
22851         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
22852         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
22853         GCC 3 or newer.
22854         * lib/error.h (__attribute__): Remove definition.
22855         (_GL_ATTRIBUTE_FORMAT): New macro.
22856         (error, error_at_line): Use it.
22857         * lib/hash.h (__attribute__): Remove definition.
22858         (ATTRIBUTE_WUR): Update definition. Define always.
22859         * lib/openat.h (__attribute__): Remove definition.
22860         (ATTRIBUTE_NORETURN): Update definition. Define always.
22861         * lib/sigpipe-die.h (__attribute__): Remove definition.
22862         (ATTRIBUTE_NORETURN): Update definition. Define always.
22863         * lib/vasnprintf.h (__attribute__): Remove definition.
22864         (_GL_ATTRIBUTE_FORMAT): New macro.
22865         (asnprintf, vasnprintf): Use it.
22866         * lib/xalloc.h (__attribute__): Remove definition.
22867         (ATTRIBUTE_NORETURN): Update definition. Define always.
22868         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
22869         * lib/xmemdup0.h (__attribute__): Remove definition.
22870         (ATTRIBUTE_NORETURN): Update definition. Define always.
22871         * lib/xprintf.h (__attribute__): Remove definition.
22872         (_GL_ATTRIBUTE_FORMAT): New macro.
22873         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
22874         * lib/xstrtol.h (__attribute__): Remove definition.
22875         (ATTRIBUTE_NORETURN): Update definition. Define always.
22876         * lib/xvasprintf.h (__attribute__): Remove definition.
22877         (_GL_ATTRIBUTE_FORMAT): New macro.
22878         (xasprintf, xvasprintf): Use it.
22879         * tests/test-argmatch.c (__attribute__): Remove definition.
22880         (ATTRIBUTE_NORETURN): Update definition. Define always.
22881         * tests/test-exclude.c (__attribute__): Remove definition.
22882         (ATTRIBUTE_NORETURN): Update definition. Define always.
22883         Reported by Paul Eggert.
22884
22885 2011-02-13  Bruno Haible  <bruno@clisp.org>
22886
22887         mbrtowc: Add more tests for native Windows platforms.
22888         * tests/test-mbrtowc-w32-1.sh: New file.
22889         * tests/test-mbrtowc-w32-2.sh: New file.
22890         * tests/test-mbrtowc-w32-3.sh: New file.
22891         * tests/test-mbrtowc-w32-4.sh: New file.
22892         * tests/test-mbrtowc-w32-5.sh: New file.
22893         * tests/test-mbrtowc-w32.c: New file.
22894         * modules/mbrtowc-tests (Files): Add them.
22895         (Makefile.am): Arrange to run these tests.
22896         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
22897         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
22898
22899 2011-02-13  Bruno Haible  <bruno@clisp.org>
22900
22901         mbrtowc: Work around native Windows bug.
22902         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
22903         guess when no suitable locale for testing was found.
22904         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
22905
22906 2011-02-13  Bruno Haible  <bruno@clisp.org>
22907
22908         mbsinit: Work around mingw bug.
22909         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
22910         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
22911         Windows.
22912         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
22913
22914 2011-02-13  Bruno Haible  <bruno@clisp.org>
22915
22916         mbsinit: Don't crash for a NULL argument.
22917         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
22918         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
22919
22920 2011-02-13  Bruno Haible  <bruno@clisp.org>
22921
22922         Don't interfere with a program's definition of __attribute__.
22923         * lib/stdio.in.h (__attribute__): Remove definition.
22924         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
22925         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
22926         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
22927         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
22928         * lib/string.in.h (__attribute__): Remove definition.
22929         Reported by Paul Eggert.
22930
22931 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22932
22933         stdlib: don't get in the way of non-GCC __attribute__
22934         See thread starting at
22935         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
22936         Revert previous stdlib change, installing the following instead:
22937         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
22938         to get in the way of a non-GCC compiler that supports __attribute__.
22939         (_GL_ATTRIBUTE_RETURN): New macro.
22940         (_Exit): Use it instead of __attribute__.
22941
22942 2011-02-12  Bruno Haible  <bruno@clisp.org>
22943
22944         quotearg test: Avoid test failure on mingw.
22945         * tests/test-quotearg.sh: Convert the locale identifier from native
22946         Windows syntax to Unix syntax.
22947
22948 2011-02-12  Bruno Haible  <bruno@clisp.org>
22949
22950         setlocale: Prefer gnulib's override over libintl's override.
22951         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
22952         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
22953         GNULIB_defined_setlocale is set.
22954
22955 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22956
22957         stdlib: support non-GCC __attribute__
22958
22959         Fix a serious and tricky problem encountered when attempting to
22960         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
22961         5.5, but it crashed due to memory corruption on Solaris 10 with
22962         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
22963         bits that are otherwise zero.  This tagging is optional inside
22964         Emacs but is preferred and is used when __attribute__ ((__aligned
22965         (8))) works, as it does with both recent-enough GCC and with Sun C
22966         5.11.  However, Sun C 5.11 is not GCC and does not #define
22967         __GNUC__ and __GNUC_MINOR__.
22968
22969         When I added the getloadavg module to Emacs, it brought in
22970         stdlib.in.h, which contained this fragment:
22971
22972            #ifndef __attribute__
22973            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
22974            #  define __attribute__(Spec)   /* empty */
22975            # endif
22976            #endif
22977
22978         When files that include <stdlib.h> were compiled with Sun C 5.11,
22979         the above code disabled __attribute__ ((__aligned (8))), which
22980         caused variables to not be properly aligned, which eventually led
22981         to the pointer corruption mentioned above.  (This was a bit hard
22982         to diagnose, unfortunately.)
22983
22984         Several "#define __attribute__(X) /* empty */" code snippets need
22985         to be eradicated from Gnulib to work with non-GCC compilers that
22986         support __attribute__.  The Autoconf way to do this is to test for
22987         each kind of attribute that we want support for, and selectively
22988         enable that in source code.
22989
22990         Fix this problem just for stdlib.h, by adding a test for the
22991         __noreturn__ attribute, and change stdlib.in.h to use that test
22992         when needed.  This technique can be easily generalized to the
22993         other *.in.h files and attributes, and a similar technique can be
22994         used for *.h and *.c files.  This patch is enough to solve the
22995         problem for Emacs + getloadavg, and I thought I'd publish it for
22996         feedback before undertaking further, similar fixes in other
22997         modules.
22998
22999         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
23000         because it's not needed for stdlib.h.  It merely substitutes the
23001         value directly into stdlib.h.  We may well need to #define it, or
23002         similar symbols, for other modules, but it's nice to also have an
23003         option to not #define it for applications like Emacs that do not
23004         need it.
23005
23006         * lib/stdlib.in.h (__attribute__): Do not #define.
23007         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
23008         be defined only if the _Exit module is also used.
23009         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
23010         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
23011         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
23012         platforms.
23013         * modules/_Exit (Files): Add m4/attribute.m4.
23014         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
23015         * m4/attribute.m4: New file.
23016
23017 2011-02-12  Bruno Haible  <bruno@clisp.org>
23018
23019         wcsrtombs: Work around bug on native Windows.
23020         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
23021         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
23022         instead of len.
23023         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
23024
23025 2011-02-12  Bruno Haible  <bruno@clisp.org>
23026
23027         mbsrtowcs: Work around bug on native Windows.
23028         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
23029         against mingw bug.
23030         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
23031
23032 2011-02-12  Bruno Haible  <bruno@clisp.org>
23033
23034         Avoid setlocale bugs in tests.
23035         * modules/btowc (Dependencies): Add setlocale.
23036         * modules/c-strcase (Dependencies): Likewise.
23037         * modules/mbmemcasecmp (Dependencies): Likewise.
23038         * modules/mbmemcasecoll (Dependencies): Likewise.
23039         * modules/mbrtowc (Dependencies): Likewise.
23040         * modules/mbscasecmp (Dependencies): Likewise.
23041         * modules/mbscasestr (Dependencies): Likewise.
23042         * modules/mbschr (Dependencies): Likewise.
23043         * modules/mbscspn (Dependencies): Likewise.
23044         * modules/mbsinit (Dependencies): Likewise.
23045         * modules/mbsncasecmp (Dependencies): Likewise.
23046         * modules/mbsnrtowcs (Dependencies): Likewise.
23047         * modules/mbspbrk (Dependencies): Likewise.
23048         * modules/mbspcasecmp (Dependencies): Likewise.
23049         * modules/mbsrchr (Dependencies): Likewise.
23050         * modules/mbsrtowcs (Dependencies): Likewise.
23051         * modules/mbsspn (Dependencies): Likewise.
23052         * modules/mbsstr (Dependencies): Likewise.
23053         * modules/nl_langinfo (Dependencies): Likewise.
23054         * modules/quotearg (Dependencies): Likewise.
23055         * modules/unicase/locale-language (Dependencies): Likewise.
23056         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
23057         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
23058         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
23059         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
23060         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
23061         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
23062         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
23063         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
23064         * modules/vasnprintf-posix (Dependencies): Likewise.
23065         * modules/wcrtomb (Dependencies): Likewise.
23066         * modules/wcsnrtombs (Dependencies): Likewise.
23067         * modules/wcsrtombs (Dependencies): Likewise.
23068
23069 2011-02-12  Bruno Haible  <bruno@clisp.org>
23070
23071         setlocale: Workaround native Windows bug.
23072         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
23073         succeeds but sets LC_CTYPE to "C", report a failure.
23074         * tests/test-setlocale2.sh: New file.
23075         * tests/test-setlocale2.c: New file.
23076         * modules/setlocale-tests (Files): Add the new files.
23077         (Makefile.am): Enable test-setlocale2.sh test.
23078         * doc/posix-functions/setlocale.texi: Mention workaround.
23079
23080 2011-02-11  Bruno Haible  <bruno@clisp.org>
23081
23082         Tests for module 'setlocale'.
23083         * modules/setlocale-tests: New file.
23084         * tests/test-setlocale1.sh: New file.
23085         * tests/test-setlocale1.c: New file.
23086
23087         New module 'setlocale'.
23088         * lib/locale.in.h (setlocale): New declaration.
23089         * lib/setlocale.c: New file, based on
23090         gettext/gettext-runtime/intl/setlocale.c.
23091         * m4/setlocale.m4: New file.
23092         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
23093         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
23094         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
23095         REPLACE_SETLOCALE.
23096         * modules/setlocale: New file.
23097         * tests/test-locale-c++.cc: Test the declaration of setlocale.
23098         * doc/posix-functions/setlocale.texi: Mention the new module.
23099
23100 2011-02-11  Bruno Haible  <bruno@clisp.org>
23101
23102         Prepare for locale dependent tests on mingw.
23103         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
23104         because it has the wrong locale encoding.
23105         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
23106         French_France.1252 instead of "fr".
23107         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
23108         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
23109         because it has the wrong locale encoding.
23110         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
23111         native Windows, try Turkish_Turkey.65001.
23112         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
23113         Chinese_China.54936.
23114
23115         Prepare for locale dependent tests on mingw.
23116         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
23117         differently.
23118         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
23119         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
23120         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23121         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23122
23123 2011-02-11  Eric Blake  <eblake@redhat.com>
23124
23125         strptime: avoid compiler warnings
23126         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
23127         compiler warnings about dead code.
23128         Reported by Daniel P. Berrange.
23129
23130 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
23131
23132         doc: update users.txt
23133         * users.txt: Add rcs.
23134
23135 2011-02-10  John W. Eaton  <jwe@gnu.org>
23136
23137         doc: update users.txt
23138         * users.txt: Add octave.
23139
23140 2011-02-10  Jim Meyering  <meyering@redhat.com>
23141
23142         doc: update users.txt
23143         * users.txt: Add iwhd.
23144
23145 2011-02-09  Bruno Haible  <bruno@clisp.org>
23146
23147         gnulib-tool: Make copyright notice adjustment more robust.
23148         * gnulib-tool (func_import): In sed_transform_main_lib_file,
23149         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
23150         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
23151         License".
23152         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
23153
23154 2011-02-06  Bruno Haible  <bruno@clisp.org>
23155
23156         New module 'towctrans'.
23157         * modules/towctrans: New file.
23158         * lib/wctype.in.h (towctrans): New declaration.
23159         * lib/towctrans.c: New file.
23160         * lib/towctrans-impl.h: New file.
23161         * m4/towctrans.m4: New file.
23162         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
23163         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
23164         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
23165         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
23166         * doc/posix-functions/towctrans.texi: Mention the new module.
23167
23168 2011-02-06  Bruno Haible  <bruno@clisp.org>
23169
23170         New module 'wctrans'.
23171         * modules/wctrans: New file.
23172         * lib/wctype.in.h (wctrans): New declaration.
23173         * lib/wctrans.c: New file.
23174         * lib/wctrans-impl.h: New file.
23175         * m4/wctrans.m4: New file.
23176         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
23177         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
23178         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
23179         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
23180         * doc/posix-functions/wctrans.texi: Mention the new module.
23181
23182 2011-02-06  Bruno Haible  <bruno@clisp.org>
23183
23184         New module 'iswctype'.
23185         * modules/iswctype: New file.
23186         * lib/wctype.in.h (iswctype): New declaration.
23187         * lib/iswctype.c: New file.
23188         * lib/iswctype-impl.h: New file.
23189         * m4/iswctype.m4: New file.
23190         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
23191         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
23192         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
23193         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
23194         * doc/posix-functions/iswctype.texi: Mention the new module and the
23195         HP-UX 11.00 problem.
23196
23197 2011-02-06  Bruno Haible  <bruno@clisp.org>
23198
23199         New module 'wctype'.
23200         * modules/wctype: Change to represent the wctype() substitute.
23201         * lib/wctype.in.h (wctype): New declaration.
23202         * lib/wctype.c: New file.
23203         * lib/wctype-impl.h: New file.
23204         * m4/wctype.m4: New file.
23205         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
23206         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
23207         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
23208         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
23209         * doc/posix-functions/wctype.texi: Mention the new module and the
23210         HP-UX 11.00 problem.
23211
23212 2011-02-06  Bruno Haible  <bruno@clisp.org>
23213
23214         wctype-h: Ensure wctype_t and wctrans_t are defined.
23215         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
23216         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23217         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23218         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
23219         HAVE_WCTRANS_T.
23220         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
23221
23222 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
23223
23224         flock: fix license typo
23225
23226         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
23227         omitted.
23228
23229 2011-02-08  Bruno Haible  <bruno@clisp.org>
23230
23231         Split large sed scripts, for HP-UX sed.
23232         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
23233         to avoid HP-UX limit of 99 commands, in the near future.
23234         * modules/stdlib (Makefile.am): Likewise.
23235         * modules/unistd (Makefile.am): Likewise.
23236         * modules/wchar (Makefile.am): Likewise.
23237         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23238         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
23239         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
23240
23241 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23242             Bruno Haible  <bruno@clisp.org>
23243
23244         stdlib: improve random_r modularization
23245         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
23246         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
23247         you also need the random_r module to get this material right.
23248         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
23249         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
23250         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
23251
23252 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23253
23254         stdlib: don't depend on stdint
23255         * lib/stdlib.in.h: Don't include <stdint.h> merely because
23256         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
23257         be independent of whether stdint.h is needed.
23258         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
23259         here, instead of ...
23260         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
23261         struct random_data should be using the random_r module, not just
23262         the stdlib module (which wouldn't make sense: what package needs
23263         just struct random_data without also needing random_r?).
23264         * modules/stdlib (Depends-on): Remove stdint.
23265
23266         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
23267         See the thread rooted at
23268         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
23269         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
23270         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
23271         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
23272         __VMS)); previously it was always included (via fcntl--.h).
23273         (getloadavg): Do not use c_strtod.  Instead, approximate it by
23274         hand; this is good enough for load averages.  Also, do not use
23275         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
23276         flags directly if available and don't bother otherwise.  (Packages
23277         that need the extra reliability should use the modules that define
23278         these flags on older platforms that lack them.)
23279         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
23280         fcntl-safer.
23281
23282 2011-02-08  Jim Meyering  <meyering@redhat.com>
23283
23284         di-set.h, ino-map.h: add multiple-inclusion guard
23285         Technically, the guard is required only for ino-map.h, due to its
23286         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
23287         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
23288         * lib/ino-map.h: Likewise.
23289
23290 2011-02-06  Bruno Haible  <bruno@clisp.org>
23291
23292         iswblank: Ensure declaration on glibc systems.
23293         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
23294         * modules/iswblank (Dependencies): Add 'extensions'.
23295         * doc/posix-functions/iswblank.texi: Document the glibc problem.
23296
23297 2011-02-06  Bruno Haible  <bruno@clisp.org>
23298
23299         New module 'iswblank'.
23300         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
23301         * modules/iswblank: New file.
23302         * modules/wctype-h (Files): Remove lib/iswblank.c.
23303         (Makefile.am): Substitute GNULIB_ISWBLANK.
23304         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
23305         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
23306         (gl_WCTYPE_H_DEFAULTS): New macro.
23307         (gl_WCTYPE_H): Require it. Remove iswblank related code.
23308         * modules/iswblank-tests: New file.
23309         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
23310         * tests/test-wctype-h.c (main): Remove iswblank tests.
23311         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
23312         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
23313         of 'wctype-h'.
23314         * NEWS: Mention the change.
23315         * modules/mbchar (Depends-on): Add iswblank.
23316
23317 2011-02-08  Bruno Haible  <bruno@clisp.org>
23318
23319         di-set tests: Refactor.
23320         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
23321         unnecessary includes.
23322         (ASSERT): Remove macro.
23323         (main): Make C90 compliant by avoiding variable declaration after
23324         statement.
23325         * modules/di-set-tests (Files): Add tests/macros.h.
23326
23327 2011-02-08  Bruno Haible  <bruno@clisp.org>
23328
23329         ino-map tests: Refactor.
23330         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
23331         unnecessary includes.
23332         (ASSERT): Remove macro.
23333         (main): Make C90 compliant by avoiding variable declaration after
23334         statement.
23335         * modules/ino-map-tests (Files): Add tests/macros.h.
23336
23337 2011-02-08  Jim Meyering  <meyering@redhat.com>
23338
23339         di-set: add "const" to a cast
23340         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
23341         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
23342
23343 2011-02-06  Bruno Haible  <bruno@clisp.org>
23344
23345         Rename module 'wctype' to 'wctype-h'.
23346         * modules/wctype-h: Renamed from modules/wctype.
23347         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
23348         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
23349         (Files, Depends-on, Makefile.am): Update.
23350         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
23351         (Files, Makefile.am): Update.
23352         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
23353         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
23354         * doc/posix-headers/wctype.texi: Update.
23355         * doc/posix-functions/iswalnum.texi: Update.
23356         * doc/posix-functions/iswalpha.texi: Update.
23357         * doc/posix-functions/iswblank.texi: Update.
23358         * doc/posix-functions/iswcntrl.texi: Update.
23359         * doc/posix-functions/iswdigit.texi: Update.
23360         * doc/posix-functions/iswgraph.texi: Update.
23361         * doc/posix-functions/iswlower.texi: Update.
23362         * doc/posix-functions/iswprint.texi: Update.
23363         * doc/posix-functions/iswpunct.texi: Update.
23364         * doc/posix-functions/iswspace.texi: Update.
23365         * doc/posix-functions/iswupper.texi: Update.
23366         * doc/posix-functions/iswxdigit.texi: Update.
23367         * doc/posix-functions/towlower.texi: Update.
23368         * doc/posix-functions/towupper.texi: Update.
23369         * NEWS: Mention the change.
23370         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
23371         * modules/mbchar (Dependencies): Likewise.
23372         * modules/mbswidth (Dependencies): Likewise.
23373         * modules/quotearg (Dependencies): Likewise.
23374         * modules/regex (Dependencies): Likewise.
23375         * modules/wcscasecmp (Dependencies): Likewise.
23376         * modules/wcsncasecmp (Dependencies): Likewise.
23377         * modules/wcwidth (Dependencies): Likewise.
23378
23379 2011-02-06  Bruno Haible  <bruno@clisp.org>
23380
23381         New module 'wcswidth'.
23382         * modules/wcswidth: New file.
23383         * lib/wchar.in.h (wcswidth): New declaration.
23384         * lib/wcswidth.c: New file.
23385         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
23386         * m4/wcswidth.m4: New file.
23387         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
23388         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
23389         REPLACE_WCSWIDTH.
23390         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
23391         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
23392         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
23393         * doc/posix-functions/wcswidth.texi: Mention the new module.
23394
23395 2011-02-06  Bruno Haible  <bruno@clisp.org>
23396
23397         New module 'wcstok'.
23398         * modules/wcstok: New file.
23399         * lib/wchar.in.h (wcstok): New declaration.
23400         * lib/wcstok.c: New file.
23401         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
23402         * m4/wcstok.m4: New file.
23403         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
23404         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
23405         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
23406         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
23407         * doc/posix-functions/wcstok.texi: Mention the new module.
23408
23409 2011-02-06  Bruno Haible  <bruno@clisp.org>
23410
23411         New module 'wcsstr'.
23412         * modules/wcsstr: New file.
23413         * lib/wchar.in.h (wcsstr): New declaration.
23414         * lib/wcsstr.c: New file.
23415         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
23416         * m4/wcsstr.m4: New file.
23417         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
23418         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
23419         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
23420         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
23421         * doc/posix-functions/wcsstr.texi: Mention the new module.
23422
23423 2011-02-06  Bruno Haible  <bruno@clisp.org>
23424
23425         New module 'wcspbrk'.
23426         * modules/wcspbrk: New file.
23427         * lib/wchar.in.h (wcspbrk): New declaration.
23428         * lib/wcspbrk.c: New file.
23429         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
23430         * m4/wcspbrk.m4: New file.
23431         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
23432         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
23433         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
23434         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
23435         * doc/posix-functions/wcspbrk.texi: Mention the new module.
23436
23437 2011-02-06  Bruno Haible  <bruno@clisp.org>
23438
23439         New module 'wcsspn'.
23440         * modules/wcsspn: New file.
23441         * lib/wchar.in.h (wcsspn): New declaration.
23442         * lib/wcsspn.c: New file.
23443         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
23444         * m4/wcsspn.m4: New file.
23445         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
23446         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
23447         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
23448         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
23449         * doc/posix-functions/wcsspn.texi: Mention the new module.
23450
23451 2011-02-06  Bruno Haible  <bruno@clisp.org>
23452
23453         New module 'wcscspn'.
23454         * modules/wcscspn: New file.
23455         * lib/wchar.in.h (wcscspn): New declaration.
23456         * lib/wcscspn.c: New file.
23457         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
23458         * m4/wcscspn.m4: New file.
23459         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
23460         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
23461         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
23462         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
23463         * doc/posix-functions/wcscspn.texi: Mention the new module.
23464
23465 2011-02-06  Bruno Haible  <bruno@clisp.org>
23466
23467         New module 'wcsrchr'.
23468         * modules/wcsrchr: New file.
23469         * lib/wchar.in.h (wcsrchr): New declaration.
23470         * lib/wcsrchr.c: New file.
23471         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
23472         * m4/wcsrchr.m4: New file.
23473         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
23474         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
23475         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
23476         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
23477         * doc/posix-functions/wcsrchr.texi: Mention the new module.
23478
23479 2011-02-06  Bruno Haible  <bruno@clisp.org>
23480
23481         New module 'wcschr'.
23482         * modules/wcschr: New file.
23483         * lib/wchar.in.h (wcschr): New declaration.
23484         * lib/wcschr.c: New file.
23485         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
23486         * m4/wcschr.m4: New file.
23487         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
23488         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
23489         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
23490         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
23491         * doc/posix-functions/wcschr.texi: Mention the new module.
23492
23493 2011-02-06  Bruno Haible  <bruno@clisp.org>
23494
23495         New module 'wcsdup'.
23496         * modules/wcsdup: New file.
23497         * lib/wchar.in.h (wcsdup): New declaration.
23498         * lib/wcsdup.c: New file.
23499         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
23500         * m4/wcsdup.m4: New file.
23501         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
23502         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
23503         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
23504         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
23505         * doc/posix-functions/wcsdup.texi: Mention the new module.
23506
23507 2011-02-06  Bruno Haible  <bruno@clisp.org>
23508
23509         New module 'wcsxfrm'.
23510         * modules/wcsxfrm: New file.
23511         * lib/wchar.in.h (wcsxfrm): New declaration.
23512         * lib/wcsxfrm.c: New file.
23513         * lib/wcsxfrm-impl.h: New file.
23514         * m4/wcsxfrm.m4: New file.
23515         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
23516         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
23517         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
23518         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
23519         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
23520
23521 2011-02-06  Bruno Haible  <bruno@clisp.org>
23522
23523         New module 'wcscoll'.
23524         * modules/wcscoll: New file.
23525         * lib/wchar.in.h (wcscoll): New declaration.
23526         * lib/wcscoll.c: New file.
23527         * lib/wcscoll-impl.h: New file.
23528         * m4/wcscoll.m4: New file.
23529         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
23530         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
23531         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
23532         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
23533         * doc/posix-functions/wcscoll.texi: Mention the new module.
23534
23535 2011-02-06  Bruno Haible  <bruno@clisp.org>
23536
23537         New module 'wcsncasecmp'.
23538         * modules/wcsncasecmp: New file.
23539         * lib/wchar.in.h (wcsncasecmp): New declaration.
23540         * lib/wcsncasecmp.c: New file.
23541         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
23542         * m4/wcsncasecmp.m4: New file.
23543         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
23544         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
23545         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
23546         HAVE_WCSNCASECMP.
23547         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
23548         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
23549
23550 2011-02-06  Bruno Haible  <bruno@clisp.org>
23551
23552         New module 'wcscasecmp'.
23553         * modules/wcscasecmp: New file.
23554         * lib/wchar.in.h (wcscasecmp): New declaration.
23555         * lib/wcscasecmp.c: New file.
23556         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
23557         * m4/wcscasecmp.m4: New file.
23558         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
23559         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
23560         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
23561         HAVE_WCSCASECMP.
23562         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
23563         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
23564
23565 2011-02-05  Bruno Haible  <bruno@clisp.org>
23566
23567         New module 'wcsncmp'.
23568         * modules/wcsncmp: New file.
23569         * lib/wchar.in.h (wcsncmp): New declaration.
23570         * lib/wcsncmp.c: New file.
23571         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
23572         * m4/wcsncmp.m4: New file.
23573         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
23574         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
23575         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
23576         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
23577         * doc/posix-functions/wcsncmp.texi: Mention the new module.
23578
23579 2011-02-05  Bruno Haible  <bruno@clisp.org>
23580
23581         New module 'wcscmp'.
23582         * modules/wcscmp: New file.
23583         * lib/wchar.in.h (wcscmp): New declaration.
23584         * lib/wcscmp.c: New file.
23585         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
23586         * m4/wcscmp.m4: New file.
23587         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
23588         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
23589         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
23590         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
23591         * doc/posix-functions/wcscmp.texi: Mention the new module.
23592
23593 2011-02-05  Bruno Haible  <bruno@clisp.org>
23594
23595         New module 'wcsncat'.
23596         * modules/wcsncat: New file.
23597         * lib/wchar.in.h (wcsncat): New declaration.
23598         * lib/wcsncat.c: New file.
23599         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
23600         * m4/wcsncat.m4: New file.
23601         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
23602         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
23603         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
23604         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
23605         * doc/posix-functions/wcsncat.texi: Mention the new module.
23606
23607 2011-02-05  Bruno Haible  <bruno@clisp.org>
23608
23609         New module 'wcscat'.
23610         * modules/wcscat: New file.
23611         * lib/wchar.in.h (wcscat): New declaration.
23612         * lib/wcscat.c: New file.
23613         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
23614         * m4/wcscat.m4: New file.
23615         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
23616         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
23617         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
23618         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
23619         * doc/posix-functions/wcscat.texi: Mention the new module.
23620
23621 2011-02-05  Bruno Haible  <bruno@clisp.org>
23622
23623         New module 'wcpncpy'.
23624         * modules/wcpncpy: New file.
23625         * lib/wchar.in.h (wcpncpy): New declaration.
23626         * lib/wcpncpy.c: New file.
23627         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
23628         * m4/wcpncpy.m4: New file.
23629         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
23630         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
23631         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
23632         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
23633         * doc/posix-functions/wcpncpy.texi: Mention the new module.
23634
23635 2011-02-05  Bruno Haible  <bruno@clisp.org>
23636
23637         New module 'wcsncpy'.
23638         * modules/wcsncpy: New file.
23639         * lib/wchar.in.h (wcsncpy): New declaration.
23640         * lib/wcsncpy.c: New file.
23641         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
23642         * m4/wcsncpy.m4: New file.
23643         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
23644         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
23645         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
23646         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
23647         * doc/posix-functions/wcsncpy.texi: Mention the new module.
23648
23649 2011-02-05  Bruno Haible  <bruno@clisp.org>
23650
23651         New module 'wcpcpy'.
23652         * modules/wcpcpy: New file.
23653         * lib/wchar.in.h (wcpcpy): New declaration.
23654         * lib/wcpcpy.c: New file.
23655         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
23656         * m4/wcpcpy.m4: New file.
23657         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
23658         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
23659         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
23660         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
23661         * doc/posix-functions/wcpcpy.texi: Mention the new module.
23662
23663 2011-02-05  Bruno Haible  <bruno@clisp.org>
23664
23665         New module 'wcscpy'.
23666         * modules/wcscpy: New file.
23667         * lib/wchar.in.h (wcscpy): New declaration.
23668         * lib/wcscpy.c: New file.
23669         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
23670         * m4/wcscpy.m4: New file.
23671         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
23672         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
23673         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
23674         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
23675         * doc/posix-functions/wcscpy.texi: Mention the new module.
23676
23677 2011-02-05  Bruno Haible  <bruno@clisp.org>
23678
23679         New module 'wcsnlen'.
23680         * modules/wcsnlen: New file.
23681         * lib/wchar.in.h (wcsnlen): New declaration.
23682         * lib/wcsnlen.c: New file.
23683         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
23684         * m4/wcsnlen.m4: New file.
23685         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
23686         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
23687         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
23688         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
23689         * doc/posix-functions/wcsnlen.texi: Mention the new module.
23690
23691 2011-02-05  Bruno Haible  <bruno@clisp.org>
23692
23693         New module 'wcslen'.
23694         * modules/wcslen: New file.
23695         * lib/wchar.in.h (wcslen): New declaration.
23696         * lib/wcslen.c: New file.
23697         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
23698         * m4/wcslen.m4: New file.
23699         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
23700         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
23701         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
23702         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
23703         * doc/posix-functions/wcslen.texi: Mention the new module.
23704
23705 2011-02-05  Bruno Haible  <bruno@clisp.org>
23706
23707         New module 'wmemset'.
23708         * modules/wmemset: New file.
23709         * lib/wchar.in.h (wmemset): New declaration.
23710         * lib/wmemset.c: New file.
23711         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
23712         * m4/wmemset.m4: New file.
23713         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
23714         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
23715         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
23716         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
23717         * doc/posix-functions/wmemset.texi: Mention the new module.
23718
23719 2011-02-05  Bruno Haible  <bruno@clisp.org>
23720
23721         New module 'wmemmove'.
23722         * modules/wmemmove: New file.
23723         * lib/wchar.in.h (wmemmove): New declaration.
23724         * lib/wmemmove.c: New file.
23725         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
23726         * m4/wmemmove.m4: New file.
23727         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
23728         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
23729         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
23730         HAVE_WMEMMOVE.
23731         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
23732         * doc/posix-functions/wmemmove.texi: Mention the new module.
23733
23734 2011-02-05  Bruno Haible  <bruno@clisp.org>
23735
23736         New module 'wmemcpy'.
23737         * modules/wmemcpy: New file.
23738         * lib/wchar.in.h (wmemcpy): New declaration.
23739         * lib/wmemcpy.c: New file.
23740         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
23741         * m4/wmemcpy.m4: New file.
23742         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
23743         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
23744         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
23745         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
23746         * doc/posix-functions/wmemcpy.texi: Mention the new module.
23747
23748 2011-02-05  Bruno Haible  <bruno@clisp.org>
23749
23750         New module 'wmemcmp'.
23751         * modules/wmemcmp: New file.
23752         * lib/wchar.in.h (wmemcmp): New declaration.
23753         * lib/wmemcmp.c: New file.
23754         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
23755         * m4/wmemcmp.m4: New file.
23756         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
23757         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
23758         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
23759         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
23760         * doc/posix-functions/wmemcmp.texi: Mention the new module.
23761
23762 2011-02-07  Jim Meyering  <meyering@redhat.com>
23763
23764         di-set, ino-map: new modules, from coreutils
23765         * lib/di-set.c: New file.
23766         * lib/di-set.h: Likewise.
23767         * lib/ino-map.c: Likewise.
23768         * lib/ino-map.h: Likewise.
23769         * modules/di-set: Likewise.
23770         * modules/di-set-tests: Likewise.
23771         * modules/ino-map: Likewise.
23772         * modules/ino-map-tests: Likewise.
23773         * tests/test-di-set.c: Likewise.
23774         * tests/test-ino-map.c: Likewise.
23775
23776 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
23777
23778         getloadavg: merge minor changes from Emacs
23779
23780         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
23781         (getloadavg): Use memset, not bzero.
23782
23783         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
23784         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
23785         clash (bug#86).
23786
23787 2010-11-14  Bruno Haible  <bruno@clisp.org>
23788
23789         Allow multiple gnulib generated replacements to coexist.
23790         * lib/getopt.in.h (struct option): Avoid identical redefinition.
23791         * lib/inttypes.in.h (imaxdiv_t): Likewise.
23792         * lib/langinfo.in.h (nl_item): Likewise.
23793         * lib/math.in.h (_NaN, NAN): Likewise.
23794         * lib/netdb.in.h (struct addrinfo): Likewise.
23795         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
23796         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
23797         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
23798         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
23799         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
23800         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
23801         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
23802         pthread_mutexattr_init, pthread_mutexattr_settype,
23803         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
23804         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
23805         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
23806         pthread_spin_trylock, pthread_spin_unlock): Likewise.
23807         * lib/sched.in.h (struct sched_param): Likewise.
23808         * lib/se-selinux.in.h (security_class_t, security_context_t,
23809         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
23810         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
23811         lsetfilecon, fsetfilecon, security_check_context,
23812         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
23813         Likewise.
23814         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
23815         Likewise.
23816         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
23817         _gl_function_taking_int_returning_void_t, union sigval,
23818         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
23819         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
23820         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23821         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
23822         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
23823         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
23824         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
23825         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
23826         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
23827         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
23828         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
23829         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
23830         socklen_t, rpl_fd_isset): Likewise.
23831         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
23832         * lib/sys_time.in.h (struct timeval): Likewise.
23833         * lib/sys_times.in.h (struct tms): Likewise.
23834         * lib/sys_utsname.in.h (struct utsname):
23835         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
23836         * lib/unistd.in.h (getpagesize): Likewise.
23837         * lib/wchar.in.h (mbstate_t): Likewise.
23838         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23839         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
23840         towlower, towupper): Likewise.
23841         Reported by Sam Steingold <sds@gnu.org>.
23842
23843 2011-02-05  Eric Blake  <eblake@redhat.com>
23844
23845         unsetenv: work around Haiku issues
23846         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
23847         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
23848
23849 2010-12-30  Bruce Korb  <bkorb@gnu.org>
23850
23851         libposix: avoid calling error() within libposix
23852         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
23853         is defined.
23854
23855 2011-02-05  Eric Blake  <eblake@redhat.com>
23856
23857         strerror_r-posix: port to cygwin
23858         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
23859         implementation.
23860         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
23861         * tests/test-strerror_r.c (main): Fix test.
23862         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
23863         issue.
23864
23865 2011-02-05  Bruno Haible  <bruno@clisp.org>
23866
23867         New module 'wmemchr'.
23868         * modules/wmemchr: New file.
23869         * lib/wchar.in.h (wmemchr): New declaration.
23870         * lib/wmemchr.c: New file.
23871         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
23872         * m4/wmemchr.m4: New file.
23873         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
23874         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
23875         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
23876         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
23877         * doc/posix-functions/wmemchr.texi: Mention the new module.
23878
23879 2011-02-04  Eric Blake  <eblake@redhat.com>
23880
23881         fdopendir: detect FreeBSD bug
23882         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
23883         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
23884
23885 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
23886
23887         stdbool: do not define HAVE_STDBOOL_H
23888         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
23889         AC_HEADER_STDBOOL.  All uses changed.  Do not define
23890         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
23891         imported from the latest Autoconf git.  It was motivated by Emacs,
23892         which uses gnulib but does not need HAVE_STDBOOL_H.
23893
23894 2011-02-04  Bruno Haible  <bruno@clisp.org>
23895
23896         wcsnrtombs: Prepare for new module wwcsnrtombs.
23897         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
23898         * lib/wcsnrtombs.c: Include it.
23899         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
23900
23901         wcsrtombs: Prepare for new module wwcsrtombs.
23902         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
23903         * lib/wcsrtombs.c: Include it.
23904         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
23905
23906         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
23907         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
23908         * lib/mbsnrtowcs.c: Include it.
23909         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
23910
23911         mbsrtowcs: Prepare for new module mbsrtowwcs.
23912         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
23913         * lib/mbsrtowcs.c: Include it.
23914         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
23915
23916 2011-02-04  Bruno Haible  <bruno@clisp.org>
23917
23918         vasnprintf: Reduce use of malloc for small format strings.
23919         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
23920         (arguments): Add room for the first 7 arguments.
23921         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
23922         (char_directives, u8_directives, u16_directives, u32_directives): Add
23923         room for the first 7 directives.
23924         * lib/printf-parse.c: Include <string.h>.
23925         (PRINTF_PARSE): Change memory handling code so that it uses the first
23926         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
23927         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
23928         Reported by Pádraig Brady <P@draigbrady.com>.
23929
23930 2011-01-31  Eric Blake  <eblake@redhat.com>
23931
23932         dup2: work around Haiku bug
23933         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
23934         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
23935         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23936         * tests/test-dup2.c (main): Enhance test.
23937
23938 2011-01-31  Simon Josefsson  <simon@josefsson.org>
23939
23940         doc: off_t is not available in eglibc 2.11.2 stdio.h.
23941         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
23942         declared by eglibc 2.11.2.
23943         * lib/stdio.in.h: Likewise.
23944
23945 2011-01-31  Eric Blake  <eblake@redhat.com>
23946
23947         ignore-value: add missing test dependency
23948         * tests/test-ignore-value.c: Revert previous change; stdio.h
23949         provides off_t.
23950         * modules/ignore-value-tests (Depends-on): Add missing dependency.
23951
23952 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
23953
23954         mktime: clarify long_int width checking
23955         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
23956         the top level, to make it clearer that the assumption about
23957         long_int width is being checked.  See
23958         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
23959
23960 2011-01-30  Simon Josefsson  <simon@josefsson.org>
23961
23962         ignore-value: Fix self-test.
23963         * tests/test-ignore-value.c: Include sys/types.h for off_t.
23964
23965 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
23966
23967         TYPE_MAXIMUM: avoid theoretically undefined behavior
23968         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
23969         negative number, which the C Standard says has undefined behavior.
23970         In practice this is not a problem, but might as well do it by the book.
23971         Reported by Rich Felker and Eric Blake; see
23972         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
23973         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
23974         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23975         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23976         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
23977         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23978         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
23979
23980         mktime: #undef mktime before #defining it
23981         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
23982
23983         mktime: systematically normalize tm_isdst comparisons
23984         * lib/mktime.c (isdst_differ): New function.
23985         (__mktime_internal): Use it systematically for all isdst comparisons.
23986         This completes the fix for libc BZ #6723, and removes the need for
23987         normalizing tm_isdst.  See
23988         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
23989         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
23990
23991         mktime: fix some integer overflow issues and sidestep the rest
23992
23993         This was prompted by a bug report by Benjamin Lindner for MinGW
23994         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
23995         His bug is due to signed integer overflow (0 - INT_MIN), and I
23996         I scanned through mktime.c looking for other integer overflow
23997         problems, fixing all the bugs I found.
23998
23999         Although the C Standard says the resulting code is still not safe
24000         in the presence of integer overflow, in practice it should be good
24001         enough for all real-world two's-complement implementations, except
24002         for debugging environments that deliberately trap on integer
24003         overflow (e.g., gcc -ftrapv).
24004
24005         * lib/mktime.c (WRAPV): New macro.
24006         (SHR): Also check that long_int and time_t shift right in the
24007         usual way, before using the fast-but-unportable method.
24008         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
24009         used.  The code already assumed two's complement, so there's
24010         no need to test for alternatives.  All uses removed.
24011         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
24012         the C standard.  Problem reported by Rich Felker in
24013         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
24014         (twos_complement_arithmetic): Also check long_int and time_t.
24015         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
24016         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
24017         (__mktime_internal): Avoid integer overflow with unary subtraction
24018         in two instances where -1 - X is an adequate replacement for -X,
24019         since the calculations are approximate.
24020
24021 2011-01-29  Eric Blake  <eblake@redhat.com>
24022
24023         mktime: avoid infinite loop
24024         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
24025         type; behavior is still undefined but portable to all known targets.
24026         Reported by Rich Felker.
24027
24028 2011-01-29  Simon Josefsson  <simon@josefsson.org>
24029
24030         rename, unlink, same-inode: Relicense.
24031         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
24032         * modules/unlink (License): Likewise.
24033         * modules/same-inode (License): Likewise.
24034
24035 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24036
24037         mktime: avoid problems on NetBSD 5 / i386
24038         * lib/mktime.c (long_int): New type.  This works around a problem
24039         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
24040         but time_t is 64 bits, and where I expect the existing code is
24041         wrong in some cases.
24042         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
24043         (ydhms_diff): Bring back the compile-time check for wide-enough
24044         year and yday.
24045
24046         mktime: fix misspelling in comment
24047         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
24048         This merges all recent glibc changes of importance.
24049
24050 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24051
24052         move-if-change: cope with concurrent mv of identical file.
24053         * build-aux/move-if-change (CMPPROG): Accept environment
24054         variable as an override for `cmp'.
24055         (usage): Document CMPPROG.
24056         Adjust comparison to drop stdout.  Cope with failure of mv if
24057         the target file exists and is identical to the source, for
24058         parallel builds.
24059         Report from H.J. Lu against binutils in PR binutils/12283.
24060
24061 2011-01-28  Bruce Korb  <bkorb@gnu.org>
24062
24063         * users.txt: Mention sharutils.
24064
24065 2011-01-28  Simon Josefsson  <simon@josefsson.org>
24066
24067         * users.txt: Mention OATH Toolkit.
24068
24069 2011-01-27  Bruno Haible  <bruno@clisp.org>
24070
24071         Prepare for supporting FreeBSD 10.
24072         * build-aux/config.libpath: Remove handling of freebsd1*.
24073
24074 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
24075
24076         Prepare for supporting FreeBSD 10.
24077         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
24078         match FreeBSD 10.0.
24079
24080 2011-01-27  Bruno Haible  <bruno@clisp.org>
24081
24082         vma-iter, get-rusage-as: Add OpenBSD support.
24083         * modules/vma-iter (configure.ac): Test for mquery.
24084         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
24085         * lib/vma-iter.c: Include <sys/mman.h>.
24086         (vma_iterate): Add an implementation based on mquery().
24087         * lib/resource-ext.h (get_rusage_as): Update comments.
24088         * lib/get-rusage-as.c: Likewise.
24089         * lib/get-rusage-data.c: Likewise.
24090
24091 2011-01-26  Karl Berry  <karl@gnu.org>
24092
24093         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
24094         variables to make it easier to override the makeinfo program used.
24095
24096 2011-01-26  Eric Blake  <eblake@redhat.com>
24097
24098         fcntl: work around Haiku F_DUPFD bugs
24099         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
24100         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
24101         cloexec bit on duplication.
24102         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
24103
24104 2011-01-26  Bruno Haible  <bruno@clisp.org>
24105
24106         Enable memory leak tests on AIX.
24107         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
24108         * tests/test-fprintf-posix3.c (main): Likewise.
24109
24110 2011-01-26  Bruno Haible  <bruno@clisp.org>
24111
24112         Tests for module 'get-rusage-data'.
24113         * modules/get-rusage-data-tests: New file.
24114         * tests/test-get-rusage-data.c: New file.
24115
24116         New module 'get-rusage-data'.
24117         * lib/resource-ext.h (get_rusage_data): New declaration.
24118         * lib/get-rusage-data.c: New file.
24119         * modules/get-rusage-data: New file.
24120
24121 2011-01-25  Bruno Haible  <bruno@clisp.org>
24122
24123         get-rusage-as: Allow for easier testing.
24124         * lib/resource-ext.h (get_rusage_as): Add comment.
24125         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
24126         (main): New function for interactive testing.
24127
24128 2011-01-25  Bruno Haible  <bruno@clisp.org>
24129
24130         vma-iter: Treat Haiku like BeOS.
24131         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
24132         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
24133
24134 2011-01-25  Eric Blake  <eblake@redhat.com>
24135
24136         c-stack: fix regression on cygwin when libsigsegv is present
24137         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
24138
24139 2011-01-24  Bruno Haible  <bruno@clisp.org>
24140
24141         vma-iter: Avoid empty intervals.
24142         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
24143         on an empty interval.
24144
24145 2011-01-24  Jim Meyering  <meyering@redhat.com>
24146
24147         u64: remove unnecessary #include
24148         * lib/u64.h: Don't include <stddef.h>.  It was not used.
24149
24150 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24151
24152         Allow the user to avoid the HAVE_RAW_DECL_* macros.
24153         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
24154
24155 2011-01-23  Bruno Haible  <bruno@clisp.org>
24156
24157         New module 'vma-iter'.
24158         * lib/vma-iter.h: New file.
24159         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
24160         * modules/vma-iter: New file.
24161         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
24162         for get_rusage_as_via_iterator.
24163         (vma_iterate_callback): New function.
24164         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
24165         * modules/get-rusage-as (Depends-on): Add vma-iter.
24166
24167 2011-01-23  Bruno Haible  <bruno@clisp.org>
24168
24169         uninorm: Tweak includes.
24170         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
24171         Reported by Jim Meyering.
24172
24173 2011-01-23  Bruno Haible  <bruno@clisp.org>
24174
24175         get-rusage-as: Improve on NetBSD.
24176         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
24177         /proc, like on FreeBSD.
24178
24179 2011-01-23  Jim Meyering  <meyering@redhat.com>
24180
24181         xreadlink.h: remove unnecessary #include
24182         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
24183
24184         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
24185         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
24186
24187 2011-01-23  Bruno Haible  <bruno@clisp.org>
24188
24189         get-rusage-as: Fix bug.
24190         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
24191         original limit when aborting the first loop.
24192
24193 2011-01-23  Bruno Haible  <bruno@clisp.org>
24194
24195         wctype: Ensure valid C syntax.
24196         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
24197         unconditionally, instead of gl_NEXT_HEADERS conditionally.
24198
24199 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
24200
24201         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
24202         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
24203         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
24204         as they are needed only for configure's test case.
24205         This removes two unnecessary symbols from config.h.
24206
24207         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
24208         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
24209         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
24210         AC_CHECK_HEADERS_ONCE on a header that we also invoke
24211         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
24212         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
24213         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
24214         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
24215         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24216         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24217         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24218         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24219         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24220         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24221         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
24222         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24223         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24224         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24225
24226 2011-01-21  Eric Blake  <eblake@redhat.com>
24227
24228         maintainer-makefile: work with older git for submodule check
24229         * top/maint.mk (public-submodule-commit): Rewrite to avoid
24230         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
24231         Reported by Matthias Bolte.
24232
24233         bootstrap: minor portability fixes
24234         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
24235         (usage): Omit leading capital and trailing . on help phrases, per
24236         GNU Coding Standards.
24237         (check_versions, top level): Prefix messages with script name.
24238
24239 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
24240
24241         bootstrap: support --no-git option
24242         * build-aux/bootstrap: Add --no-git option, to be used when
24243         --gnulib-srcdir points to the exact desired checkout.
24244
24245 2011-01-21  Eric Blake  <eblake@redhat.com>
24246
24247         strerror_r-posix: work with glibc 2.13
24248         * lib/strerror_r.c (strerror_r): Fix return type.
24249
24250 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24251             Bruno Haible  <bruno@clisp.org>
24252
24253         uN_strstr: New unit tests.
24254         * modules/unistr/u8-strstr-tests: New file.
24255         * modules/unistr/u16-strstr-tests: New file.
24256         * modules/unistr/u32-strstr-tests: New file.
24257         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
24258         * tests/unistr/test-u8-strstr.c: New file.
24259         * tests/unistr/test-u16-strstr.c: New file.
24260         * tests/unistr/test-u32-strstr.c: New file.
24261
24262 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24263             Bruno Haible  <bruno@clisp.org>
24264
24265         Make uN_strstr functions O(n) worst-case.
24266         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
24267         16-bit and 32-bit unit cases, use the unibyte algorithm from
24268         lib/mbsstr.c.
24269         * lib/unistr/u8-strstr.c: Include <string.h>.
24270         (UNIT_IS_UINT8_T): New macro.
24271         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
24272         (U_STRLEN, U_STRNLEN): New macros.
24273         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
24274         (U_STRLEN, U_STRNLEN): New macros.
24275         * modules/unistr/u8-strstr (Depends-on): Add strstr.
24276         (configure.ac): Update required libunistring version.
24277         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
24278         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
24279         malloca.
24280         (configure.ac): Update required libunistring version.
24281         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
24282         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
24283         malloca.
24284         (configure.ac): Update required libunistring version.
24285
24286 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24287             Bruno Haible  <bruno@clisp.org>
24288
24289         Prepare for faster uN_strstr functions.
24290         * lib/str-kmp.h: Support definable UNITs.
24291         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
24292         needle_len argument.
24293         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
24294         * lib/mbscasestr.c (mbscasestr): Likewise.
24295
24296 2011-01-21  Pádraig Brady <P@draigBrady.com>
24297
24298         malloca-tests: make faster by unsetting MALLOC_PERTURB_
24299         * tests/test-malloca.c (main): Unset the environment variable
24300         to greatly speed up the test.
24301         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
24302         * modules/malloca-tests: Depend on unsetenv.
24303
24304 2011-01-21  Pádraig Brady <P@draigBrady.com>
24305
24306         ignore-value: remove stdint dependency
24307         * lib/ignore-value.h: Remove <stdint.h>
24308         * modules/ignore-value: Remove stdint dependency.
24309
24310 2011-01-21  Jim Meyering  <meyering@redhat.com>
24311
24312         maint.mk: adjust variable name to be consistent with other gl_ vars
24313         * top/maint.mk (gl_public_submodule_commit): Rename the variable
24314         to be lower case.
24315
24316 2011-01-20  Jim Meyering  <meyering@redhat.com>
24317
24318         maint.mk: make "check" depend on public-submodule-commit by default
24319         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
24320
24321 2011-01-20  Bruno Haible  <bruno@clisp.org>
24322
24323         mbfile, mbiter: Complete change from 2008-12-21.
24324         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
24325         * m4/mbiter.m4 (gl_MBITER): Likewise.
24326
24327 2011-01-20  Jim Meyering  <meyering@redhat.com>
24328
24329         init.sh: insert space between each function name and "()"
24330         * tests/init.sh: Make it a little easier to see that a function's
24331         name is "warn_", and not "warn" when looking at the first part of
24332         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
24333
24334 2011-01-20  Jim Meyering  <meyering@redhat.com>
24335
24336         mountlist: clean up code formatting
24337         * lib/mountlist.c (read_file_system_list): Split a long line,
24338         correct bracing style, use NULL in place of "(struct statfs *)0",
24339         don't parenthesize return value, add spaces around "=" and after
24340         ";-in-for-stmt".
24341
24342 2011-01-14  Markus Duft <mduft@gentoo.org>
24343
24344         mountlist: add support for Interix
24345         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
24346         Apply statvfs to all entries of /dev/fs.
24347         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
24348         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
24349
24350 2011-01-20  Jim Meyering  <meyering@redhat.com>
24351
24352         maint.mk: improve the public-submodule-commit rule
24353         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
24354         to suppress printing of its commands... unless V=1.
24355         Add git submodule's --quiet option to suppress printing of e.g.,
24356         "Entering gnulib" output.
24357         "cd" into $(srcdir) before running git submodule.
24358
24359 2011-01-20  Bruno Haible  <bruno@clisp.org>
24360
24361         include_next: Fix bug introduced on 2011-01-18.
24362         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
24363         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
24364         ac_cv_header_... variable if the second argument is not 'check'.
24365         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
24366         gl_NEXT_HEADERS_INTERNAL.
24367
24368 2011-01-20  Bruno Haible  <bruno@clisp.org>
24369
24370         Allow the user to avoid the GNULIB_TEST_* macros.
24371         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
24372         Suggested by Paul Eggert.
24373
24374 2011-01-14  Jim Meyering  <meyering@redhat.com>
24375
24376         bootstrap: avoid failure when there is no .gitmodules file
24377         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
24378         has been assigned to, even when its value is the empty string.
24379         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
24380         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
24381         Reported by John W. Eaton <jwe@gnu.org>.
24382
24383 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
24384
24385         assume <ctype.h>, ..., <time.h> exist
24386         For years gnulib has been assuming the existence of the headers
24387         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
24388         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
24389         them, since they don't appear to be needed.
24390         * README (Portability guidelines): Document this.
24391         * lib/flock.c: Assume <fcntl.h> exists.
24392         * lib/regex_internal.h: Assume <locale.h> exists.
24393         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
24394         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
24395         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
24396         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
24397         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
24398         * m4/regex.m4 (gl_REGEX): Likewise.
24399         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
24400         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
24401         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
24402         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
24403         * tests/test-argp.c: Likewise.
24404         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
24405
24406         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
24407         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
24408         AA_APPLE_UNIVERSAL_BUILD.  See
24409         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
24410         * NEWS: Document this.
24411
24412 2011-01-19  Eric Blake  <eblake@redhat.com>
24413
24414         c-stack: assume stack overflow if SA_SIGINFO unsupported
24415         * lib/c-stack.c (SIGACTION_WORKS): Rename...
24416         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
24417         sigaction will work.
24418         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
24419         behavior match Linux.
24420         * tests/test-c-stack.c (main): Prefer NULL for pointers.
24421
24422         stdbool-tests: accommodate Haiku
24423         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
24424
24425         binary-io: fix O_TEXT on Haiku
24426         * modules/binary-io (Depends-on): Add fcntl-h.
24427         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
24428         than blindly undefining O_TEXT.
24429         Reported by Scott McCreary.
24430
24431 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24432
24433         include_next: do not check for standard headers like stddef.h
24434
24435         I found this problem when modifying Emacs to use gnulib.
24436         I noticed that it added HAVE_STDDEF_H to config.h, even though
24437         gnulib always assumes <stddef.h> exists as per README and this
24438         symbol is unnecessary.
24439         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
24440         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
24441         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
24442         faster for headers like stddef.h that are known to exist.
24443         (gl_CHECK_NEXT_HEADERS): Use it.
24444         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
24445         rather than gl_CHECK_NEXT_HEADERS.
24446         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
24447         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
24448
24449 2011-01-18  Eric Blake  <eblake@redhat.com>
24450
24451         ansi-c++-opt: skip C++ dependency style if C++ is unused
24452         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
24453         tests when we know C++ compilation is not desired.
24454         Reported by Scott McCreary.
24455
24456 2011-01-18  Bruno Haible  <bruno@clisp.org>
24457
24458         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
24459         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
24460         (main): Perform test also when getrlimit and setrlimit don't exist or
24461         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
24462         limiting the address space size using setrlimit, compare the address
24463         space size before and after the the test.
24464         * tests/test-dprintf-posix2.c: Likewise.
24465         * tests/test-fprintf-posix3.sh: Update skip messages.
24466         * tests/test-dprintf-posix2.sh: Likewise.
24467         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
24468         * modules/dprintf-posix-tests (Depends-on): Likewise.
24469         Reported by Bruce Korb <bkorb@gnu.org> and
24470         Gary V. Vaughan <gary@gnu.org>.
24471
24472 2011-01-18  Bruno Haible  <bruno@clisp.org>
24473
24474         get-rusage-as: Improvement for Cygwin.
24475         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
24476         areas that are merely reserved.
24477
24478 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24479
24480         strftime: remove dependencies on multibyte modules
24481
24482         strftime depended on mbrlen, mbsinit, and wchar, but these modules
24483         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
24484         only if __osf__ is defined, and I suspect OSF doesn't need these
24485         other modules.  If my guess is wrong, we'll need to come up with a
24486         variant of strftime that doesn't need the multibyte modules.
24487
24488         I discovered this problem when attempting modify Emacs to use the
24489         strftime module.  With the previous gnulib, this caused Emacs to
24490         need 31 new files, ranging from lib/config.charset to
24491         m4/wint_t.m4.  This was overkill and I expect would be offputting
24492         to the Emacs maintainers.  After this change, only 6 new files are
24493         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
24494         stdbool.m4, and tm_gmtoff.m4.
24495
24496         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
24497         Suggested by Bruno Haible in
24498         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
24499         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
24500         and do not check for wchar.h.
24501         * modules/strftime (Files): Remove m4/mbstate_t.m4.
24502         (Depends-on): Remove mbrlen, mbsinit, wchar.
24503
24504 2011-01-18  Bruno Haible  <bruno@clisp.org>
24505
24506         Tests for module 'get-rusage-as'.
24507         * modules/get-rusage-as-tests: New file.
24508         * tests/test-get-rusage-as.c: New file.
24509
24510         New module 'get-rusage-as'.
24511         * modules/get-rusage-as: New file.
24512         * lib/resource-ext.h: New file.
24513         * lib/get-rusage-as.c: New file.
24514
24515 2011-01-17  Eric Blake  <eblake@redhat.com>
24516
24517         sigaction: relax license from LGPLv3+ to LGPLv2+
24518         * modules/sigaction (License): Relax to LGPLv2+.
24519
24520 2011-01-14  Bruno Haible  <bruno@clisp.org>
24521
24522         filemode: Make function declarations usable in C++ mode.
24523         * lib/filemode.h: Enclose function declarations in extern "C" block.
24524         Reported by John W. Eaton <jwe@gnu.org>.
24525
24526 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
24527
24528         save-cwd: no longer include "xgetcwd.h"
24529         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
24530         This avoids a compilation failure in projects that use save-cwd
24531         without also using the xgetcwd module.
24532
24533 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24534
24535         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
24536         This is so that a program like Emacs, which needs only dtoastr,
24537         does not have to bother with distributing and compiling ftoastr
24538         and ldtoastr.
24539         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
24540         * modules/dtoastr, modules/ldtoastr: New files.
24541         * modules/ftoastr: Now works just for 'float'.
24542         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
24543         (Makefile.am): Remove ftoastr.h (not needed and no effect),
24544         dtoastr.c, ldtoastr.c.
24545
24546 2011-01-11  Jim Meyering  <meyering@redhat.com>
24547
24548         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
24549         There is no need to work around the lack of the fchdir function,
24550         since gnulib can now provide a replacement when required.
24551         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
24552         * modules/save-cwd (Depends-on): Add fchdir.
24553
24554 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24555
24556         openat, save-cwd: avoid xmalloc
24557
24558         This removes a direct (but undocumented) dependency of openat on
24559         xalloc, along with an indirect dependency via save-cwd.  It also
24560         removes a dependency of save-cwd on xgetcwd, and thereby
24561         indirectly on xalloc.  This change causes the openat substitute
24562         to fall back on save_cwd when memory is tight, and for save_cwd to
24563         fail instead of dying when memory is tight, but that's good enough.
24564         Problem and initial idea for fix reported by Bastien Roucaries in
24565         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
24566
24567         * lib/openat-proc.c: Include stdlib.h (for malloc), not
24568         xalloc.h (for xmalloc).
24569         (openat_proc_name): Use malloc, not xmalloc.
24570         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
24571         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
24572
24573         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
24574         This avoids heap allocation for file names whose lengths are in
24575         the range 512..1023, with the upper bound increasing to at most
24576         4031 depending on the platform's PATH_MAX.  (We do not want
24577         pathmax.h here as it might supply a non-constant PATH_MAX.)
24578         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
24579         Perhaps they should be moved to malloca.h?
24580         (OPENAT_BUFFER_SIZE): Use them.
24581
24582 2011-01-10  Bruno Haible  <bruno@clisp.org>
24583
24584         doc: Update users.txt.
24585         * users.txt: Add recutils.
24586
24587 2011-01-09  Karl Berry  <karl@gnu.org>
24588
24589         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
24590
24591         * doc/configmake.texi: New file.
24592         * doc/gnulib.texi: Include it.
24593         * modules/configmake: Move documentation from here.
24594
24595 2011-01-09  Bruno Haible  <bruno@clisp.org>
24596
24597         Update to Unicode 6.0.0.
24598         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
24599         (get_lbp): Update for Unicode 6.0.0.
24600         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
24601         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
24602         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
24603         U+11001, U+11038..U+11046. Remove U+06DE.
24604         (uc_width): Fix bounds of planes.
24605         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24606         lib/uniwidth/width.c.
24607         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
24608         trailing whitespace removed.
24609         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
24610         without comments, but with the original copyright notice.
24611         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
24612         * lib/unicase/ignorable.h: Likewise.
24613         * lib/unicase/tocasefold.h: Likewise.
24614         * lib/unicase/tolower.h: Likewise.
24615         * lib/unicase/totitle.h: Likewise.
24616         * lib/unicase/toupper.h: Likewise.
24617         * lib/unictype/bidi_of.h: Likewise.
24618         * lib/unictype/blocks.h: Likewise.
24619         * lib/unictype/categ_C.h: Likewise.
24620         * lib/unictype/categ_Cn.h: Likewise.
24621         * lib/unictype/categ_L.h: Likewise.
24622         * lib/unictype/categ_Ll.h: Likewise.
24623         * lib/unictype/categ_Lm.h: Likewise.
24624         * lib/unictype/categ_Lo.h: Likewise.
24625         * lib/unictype/categ_Lu.h: Likewise.
24626         * lib/unictype/categ_M.h: Likewise.
24627         * lib/unictype/categ_Mc.h: Likewise.
24628         * lib/unictype/categ_Me.h: Likewise.
24629         * lib/unictype/categ_Mn.h: Likewise.
24630         * lib/unictype/categ_N.h: Likewise.
24631         * lib/unictype/categ_Nd.h: Likewise.
24632         * lib/unictype/categ_No.h: Likewise.
24633         * lib/unictype/categ_P.h: Likewise.
24634         * lib/unictype/categ_Po.h: Likewise.
24635         * lib/unictype/categ_S.h: Likewise.
24636         * lib/unictype/categ_Sc.h: Likewise.
24637         * lib/unictype/categ_Sk.h: Likewise.
24638         * lib/unictype/categ_Sm.h: Likewise.
24639         * lib/unictype/categ_So.h: Likewise.
24640         * lib/unictype/categ_of.h: Likewise.
24641         * lib/unictype/combining.h: Likewise.
24642         * lib/unictype/ctype_alnum.h: Likewise.
24643         * lib/unictype/ctype_alpha.h: Likewise.
24644         * lib/unictype/ctype_graph.h: Likewise.
24645         * lib/unictype/ctype_lower.h: Likewise.
24646         * lib/unictype/ctype_print.h: Likewise.
24647         * lib/unictype/ctype_punct.h: Likewise.
24648         * lib/unictype/ctype_upper.h: Likewise.
24649         * lib/unictype/decdigit.h: Likewise.
24650         * lib/unictype/digit.h: Likewise.
24651         * lib/unictype/numeric.h: Likewise.
24652         * lib/unictype/pr_alphabetic.h: Likewise.
24653         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24654         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24655         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24656         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24657         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24658         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24659         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24660         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24661         * lib/unictype/pr_case_ignorable.h: Likewise.
24662         * lib/unictype/pr_cased.h: Likewise.
24663         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
24664         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
24665         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
24666         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
24667         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
24668         * lib/unictype/pr_combining.h: Likewise.
24669         * lib/unictype/pr_composite.h: Likewise.
24670         * lib/unictype/pr_currency_symbol.h: Likewise.
24671         * lib/unictype/pr_decimal_digit.h: Likewise.
24672         * lib/unictype/pr_deprecated.h: Likewise.
24673         * lib/unictype/pr_format_control.h: Likewise.
24674         * lib/unictype/pr_grapheme_base.h: Likewise.
24675         * lib/unictype/pr_grapheme_extend.h: Likewise.
24676         * lib/unictype/pr_grapheme_link.h: Likewise.
24677         * lib/unictype/pr_id_continue.h: Likewise.
24678         * lib/unictype/pr_id_start.h: Likewise.
24679         * lib/unictype/pr_ideographic.h: Likewise.
24680         * lib/unictype/pr_lowercase.h: Likewise.
24681         * lib/unictype/pr_math.h: Likewise.
24682         * lib/unictype/pr_numeric.h: Likewise.
24683         * lib/unictype/pr_other_alphabetic.h: Likewise.
24684         * lib/unictype/pr_other_id_continue.h: Likewise.
24685         * lib/unictype/pr_other_math.h: Likewise.
24686         * lib/unictype/pr_punctuation.h: Likewise.
24687         * lib/unictype/pr_sentence_terminal.h: Likewise.
24688         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24689         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24690         * lib/unictype/pr_unified_ideograph.h: Likewise.
24691         * lib/unictype/pr_uppercase.h: Likewise.
24692         * lib/unictype/pr_xid_continue.h: Likewise.
24693         * lib/unictype/pr_xid_start.h: Likewise.
24694         * lib/unictype/scripts.h: Likewise.
24695         * lib/unictype/scripts_byname.gperf: Likewise.
24696         * lib/unictype/sy_java_ident.h: Likewise.
24697         * lib/unigbrk/gbrkprop.h: Likewise.
24698         * lib/unilbrk/lbrkprop1.h: Likewise.
24699         * lib/unilbrk/lbrkprop2.h: Likewise.
24700         * lib/uninorm/decomposition-table2.h: Likewise.
24701         * lib/uniwbrk/wbrkprop.h: Likewise.
24702         * tests/unicase/test-cased.c: Likewise.
24703         * tests/unicase/test-ignorable.c: Likewise.
24704         * tests/unicase/test-uc_tolower.c: Likewise.
24705         * tests/unicase/test-uc_totitle.c: Likewise.
24706         * tests/unicase/test-uc_toupper.c: Likewise.
24707         * tests/unictype/test-categ_C.c: Likewise.
24708         * tests/unictype/test-categ_Cn.c: Likewise.
24709         * tests/unictype/test-categ_L.c: Likewise.
24710         * tests/unictype/test-categ_Ll.c: Likewise.
24711         * tests/unictype/test-categ_Lm.c: Likewise.
24712         * tests/unictype/test-categ_Lo.c: Likewise.
24713         * tests/unictype/test-categ_Lu.c: Likewise.
24714         * tests/unictype/test-categ_M.c: Likewise.
24715         * tests/unictype/test-categ_Mc.c: Likewise.
24716         * tests/unictype/test-categ_Me.c: Likewise.
24717         * tests/unictype/test-categ_Mn.c: Likewise.
24718         * tests/unictype/test-categ_N.c: Likewise.
24719         * tests/unictype/test-categ_Nd.c: Likewise.
24720         * tests/unictype/test-categ_No.c: Likewise.
24721         * tests/unictype/test-categ_P.c: Likewise.
24722         * tests/unictype/test-categ_Po.c: Likewise.
24723         * tests/unictype/test-categ_S.c: Likewise.
24724         * tests/unictype/test-categ_Sc.c: Likewise.
24725         * tests/unictype/test-categ_Sk.c: Likewise.
24726         * tests/unictype/test-categ_Sm.c: Likewise.
24727         * tests/unictype/test-categ_So.c: Likewise.
24728         * tests/unictype/test-ctype_alnum.c: Likewise.
24729         * tests/unictype/test-ctype_alpha.c: Likewise.
24730         * tests/unictype/test-ctype_graph.c: Likewise.
24731         * tests/unictype/test-ctype_lower.c: Likewise.
24732         * tests/unictype/test-ctype_print.c: Likewise.
24733         * tests/unictype/test-ctype_punct.c: Likewise.
24734         * tests/unictype/test-ctype_upper.c: Likewise.
24735         * tests/unictype/test-decdigit.h: Likewise.
24736         * tests/unictype/test-digit.h: Likewise.
24737         * tests/unictype/test-numeric.h: Likewise.
24738         * tests/unictype/test-pr_alphabetic.c: Likewise.
24739         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24740         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
24741         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
24742         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24743         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24744         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24745         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24746         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24747         * tests/unictype/test-pr_case_ignorable.c: Likewise.
24748         * tests/unictype/test-pr_cased.c: Likewise.
24749         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
24750         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
24751         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
24752         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
24753         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
24754         * tests/unictype/test-pr_combining.c: Likewise.
24755         * tests/unictype/test-pr_composite.c: Likewise.
24756         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24757         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24758         * tests/unictype/test-pr_deprecated.c: Likewise.
24759         * tests/unictype/test-pr_format_control.c: Likewise.
24760         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24761         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24762         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24763         * tests/unictype/test-pr_id_continue.c: Likewise.
24764         * tests/unictype/test-pr_id_start.c: Likewise.
24765         * tests/unictype/test-pr_ideographic.c: Likewise.
24766         * tests/unictype/test-pr_lowercase.c: Likewise.
24767         * tests/unictype/test-pr_math.c: Likewise.
24768         * tests/unictype/test-pr_numeric.c: Likewise.
24769         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24770         * tests/unictype/test-pr_other_id_continue.c: Likewise.
24771         * tests/unictype/test-pr_other_math.c: Likewise.
24772         * tests/unictype/test-pr_punctuation.c: Likewise.
24773         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24774         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24775         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24776         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24777         * tests/unictype/test-pr_uppercase.c: Likewise.
24778         * tests/unictype/test-pr_xid_continue.c: Likewise.
24779         * tests/unictype/test-pr_xid_start.c: Likewise.
24780         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24781         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24782         changes.
24783         * lib/unictype/categ_Cc.h: Likewise.
24784         * lib/unictype/categ_Cf.h: Likewise.
24785         * lib/unictype/categ_Co.h: Likewise.
24786         * lib/unictype/categ_Cs.h: Likewise.
24787         * lib/unictype/categ_Lt.h: Likewise.
24788         * lib/unictype/categ_Nl.h: Likewise.
24789         * lib/unictype/categ_Pc.h: Likewise.
24790         * lib/unictype/categ_Pd.h: Likewise.
24791         * lib/unictype/categ_Pe.h: Likewise.
24792         * lib/unictype/categ_Pf.h: Likewise.
24793         * lib/unictype/categ_Pi.h: Likewise.
24794         * lib/unictype/categ_Ps.h: Likewise.
24795         * lib/unictype/categ_Z.h: Likewise.
24796         * lib/unictype/categ_Zl.h: Likewise.
24797         * lib/unictype/categ_Zp.h: Likewise.
24798         * lib/unictype/categ_Zs.h: Likewise.
24799         * lib/unictype/ctype_blank.h: Likewise.
24800         * lib/unictype/ctype_cntrl.h: Likewise.
24801         * lib/unictype/ctype_digit.h: Likewise.
24802         * lib/unictype/ctype_space.h: Likewise.
24803         * lib/unictype/ctype_xdigit.h: Likewise.
24804         * lib/unictype/mirror.h: Likewise.
24805         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24806         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24807         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24808         * lib/unictype/pr_bidi_control.h: Likewise.
24809         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24810         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24811         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24812         * lib/unictype/pr_bidi_pdf.h: Likewise.
24813         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24814         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24815         * lib/unictype/pr_dash.h: Likewise.
24816         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24817         * lib/unictype/pr_diacritic.h: Likewise.
24818         * lib/unictype/pr_extender.h: Likewise.
24819         * lib/unictype/pr_hex_digit.h: Likewise.
24820         * lib/unictype/pr_hyphen.h: Likewise.
24821         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24822         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24823         * lib/unictype/pr_ignorable_control.h: Likewise.
24824         * lib/unictype/pr_iso_control.h: Likewise.
24825         * lib/unictype/pr_join_control.h: Likewise.
24826         * lib/unictype/pr_left_of_pair.h: Likewise.
24827         * lib/unictype/pr_line_separator.h: Likewise.
24828         * lib/unictype/pr_logical_order_exception.h: Likewise.
24829         * lib/unictype/pr_non_break.h: Likewise.
24830         * lib/unictype/pr_not_a_character.h: Likewise.
24831         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24832         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24833         * lib/unictype/pr_other_id_start.h: Likewise.
24834         * lib/unictype/pr_other_lowercase.h: Likewise.
24835         * lib/unictype/pr_other_uppercase.h: Likewise.
24836         * lib/unictype/pr_paired_punctuation.h: Likewise.
24837         * lib/unictype/pr_paragraph_separator.h: Likewise.
24838         * lib/unictype/pr_pattern_syntax.h: Likewise.
24839         * lib/unictype/pr_pattern_white_space.h: Likewise.
24840         * lib/unictype/pr_private_use.h: Likewise.
24841         * lib/unictype/pr_quotation_mark.h: Likewise.
24842         * lib/unictype/pr_radical.h: Likewise.
24843         * lib/unictype/pr_soft_dotted.h: Likewise.
24844         * lib/unictype/pr_space.h: Likewise.
24845         * lib/unictype/pr_titlecase.h: Likewise.
24846         * lib/unictype/pr_variation_selector.h: Likewise.
24847         * lib/unictype/pr_white_space.h: Likewise.
24848         * lib/unictype/pr_zero_width.h: Likewise.
24849         * lib/unictype/sy_c_ident.h: Likewise.
24850         * lib/unictype/sy_c_whitespace.h: Likewise.
24851         * lib/unictype/sy_java_whitespace.h: Likewise.
24852         * lib/uninorm/composition-table.gperf: Likewise.
24853         * lib/uninorm/decomposition-table1.h: Likewise.
24854         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
24855         LB8.
24856         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24857         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24858         * modules/unictype/*: Bump version number of expected libunistring
24859         version.
24860
24861 2011-01-09  Bruno Haible  <bruno@clisp.org>
24862
24863         Update to Unicode 5.2.0.
24864         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
24865         trailing whitespace removed.
24866
24867 2011-01-09  Bruno Haible  <bruno@clisp.org>
24868
24869         New Unicode character properties, from Unicode 5.2.0.
24870         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
24871         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
24872         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
24873         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
24874         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
24875         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
24876         uc_is_property_cased, uc_is_property_case_ignorable,
24877         uc_is_property_changes_when_lowercased,
24878         uc_is_property_changes_when_uppercased,
24879         uc_is_property_changes_when_titlecased,
24880         uc_is_property_changes_when_casefolded,
24881         uc_is_property_changes_when_casemapped): New declarations.
24882         * lib/unictype/pr_byname.gperf: Add the new properties.
24883         * modules/unictype/property-byname (Depends-on): Depend on the new
24884         properties modules.
24885         * modules/unictype/property-all (Depends-on): Likewise.
24886         * MODULES.html.sh (Unicode string functions): Add
24887         unictype/property-case-ignorable, unictype/property-cased,
24888         unictype/property-changes-when-casefolded,
24889         unictype/property-changes-when-casemapped,
24890         unictype/property-changes-when-lowercased,
24891         unictype/property-changes-when-titlecased,
24892         unictype/property-changes-when-uppercased.
24893
24894         New module 'unictype/property-changes-when-casemapped'.
24895         * modules/unictype/property-changes-when-casemapped: New file.
24896         * lib/unictype/pr_changes_when_casemapped.c: New file.
24897         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
24898         generated by gen-uni-tables.
24899         * modules/unictype/property-changes-when-casemapped-tests: New file.
24900         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
24901         automatically generated by gen-uni-tables.
24902
24903         New module 'unictype/property-changes-when-casefolded'.
24904         * modules/unictype/property-changes-when-casefolded: New file.
24905         * lib/unictype/pr_changes_when_casefolded.c: New file.
24906         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
24907         generated by gen-uni-tables.
24908         * modules/unictype/property-changes-when-casefolded-tests: New file.
24909         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
24910         automatically generated by gen-uni-tables.
24911
24912         New module 'unictype/property-changes-when-titlecased'.
24913         * modules/unictype/property-changes-when-titlecased: New file.
24914         * lib/unictype/pr_changes_when_titlecased.c: New file.
24915         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
24916         generated by gen-uni-tables.
24917         * modules/unictype/property-changes-when-titlecased-tests: New file.
24918         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
24919         automatically generated by gen-uni-tables.
24920
24921         New module 'unictype/property-changes-when-uppercased'.
24922         * modules/unictype/property-changes-when-uppercased: New file.
24923         * lib/unictype/pr_changes_when_uppercased.c: New file.
24924         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
24925         generated by gen-uni-tables.
24926         * modules/unictype/property-changes-when-uppercased-tests: New file.
24927         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
24928         automatically generated by gen-uni-tables.
24929
24930         New module 'unictype/property-changes-when-lowercased'.
24931         * modules/unictype/property-changes-when-lowercased: New file.
24932         * lib/unictype/pr_changes_when_lowercased.c: New file.
24933         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
24934         generated by gen-uni-tables.
24935         * modules/unictype/property-changes-when-lowercased-tests: New file.
24936         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
24937         automatically generated by gen-uni-tables.
24938
24939         New module 'unictype/property-case-ignorable'.
24940         * modules/unictype/property-case-ignorable: New file.
24941         * lib/unictype/pr_case_ignorable.c: New file.
24942         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
24943         by gen-uni-tables.
24944         * modules/unictype/property-case-ignorable-tests: New file.
24945         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
24946         generated by gen-uni-tables.
24947
24948         New module 'unictype/property-cased'.
24949         * modules/unictype/property-cased: New file.
24950         * lib/unictype/pr_cased.c: New file.
24951         * lib/unictype/pr_cased.h: New file, automatically generated by
24952         gen-uni-tables.
24953         * modules/unictype/property-cased-tests: New file.
24954         * tests/unictype/test-pr_cased.c: New file, automatically generated by
24955         gen-uni-tables.
24956
24957 2011-01-09  Bruno Haible  <bruno@clisp.org>
24958
24959         Update to Unicode 5.2.0.
24960         * lib/gen-uni-tables.c (output_predicate, output_category,
24961         output_combclass, output_bidi_category, output_decimal_digit_test,
24962         output_decimal_digit, output_digit_test, output_digit,
24963         output_numeric_test, output_numeric, output_mirror, output_scripts,
24964         output_scripts_byname, output_blocks, output_ident_category): Fix
24965         comment header.
24966         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
24967         get_wbp.
24968         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
24969         items.
24970         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
24971         Changes_When_Lowercased, Changes_When_Uppercased,
24972         Changes_When_Titlecased, Changes_When_Casefolded,
24973         Changes_When_Casemapped.
24974         (is_property_alphabetic, is_property_default_ignorable_code_point):
24975         Update for Unicode 5.2.0.
24976         (is_property_cased, is_property_case_ignorable,
24977         is_property_changes_when_lowercased,
24978         is_property_changes_when_uppercased,
24979         is_property_changes_when_titlecased,
24980         is_property_changes_when_casefolded,
24981         is_property_changes_when_casemapped): New functions.
24982         (output_properties): Output also the properties cased, case_ignorable,
24983         changes_when_lowercased, changes_when_uppercased,
24984         changes_when_titlecased, changes_when_casefolded,
24985         changes_when_casemapped.
24986         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
24987         Unicode TR#11 revision 17 -> 19.
24988         (LBP_CP): New enumeration value.
24989         (LBP_*): Adjust values accordingly.
24990         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24991         TR#14 revision 22 -> 24.
24992         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
24993         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
24994         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24995         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
24996         is_WBP_MIDLETTER.
24997         (output_composition_tables): Allow for 24 bits instead of 16 bits in
24998         the code1 and code2 of each composition rule.
24999         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
25000         * lib/unicase/ignorable.h: Likewise.
25001         * lib/unicase/tocasefold.h: Likewise.
25002         * lib/unicase/tolower.h: Likewise.
25003         * lib/unicase/totitle.h: Likewise.
25004         * lib/unicase/toupper.h: Likewise.
25005         * lib/unictype/bidi_of.h: Likewise.
25006         * lib/unictype/blocks.h: Likewise.
25007         * lib/unictype/categ_C.h: Likewise.
25008         * lib/unictype/categ_Cf.h: Likewise.
25009         * lib/unictype/categ_Cn.h: Likewise.
25010         * lib/unictype/categ_L.h: Likewise.
25011         * lib/unictype/categ_Ll.h: Likewise.
25012         * lib/unictype/categ_Lm.h: Likewise.
25013         * lib/unictype/categ_Lo.h: Likewise.
25014         * lib/unictype/categ_Lu.h: Likewise.
25015         * lib/unictype/categ_M.h: Likewise.
25016         * lib/unictype/categ_Mc.h: Likewise.
25017         * lib/unictype/categ_Mn.h: Likewise.
25018         * lib/unictype/categ_N.h: Likewise.
25019         * lib/unictype/categ_Nd.h: Likewise.
25020         * lib/unictype/categ_Nl.h: Likewise.
25021         * lib/unictype/categ_No.h: Likewise.
25022         * lib/unictype/categ_P.h: Likewise.
25023         * lib/unictype/categ_Pd.h: Likewise.
25024         * lib/unictype/categ_Po.h: Likewise.
25025         * lib/unictype/categ_S.h: Likewise.
25026         * lib/unictype/categ_Sc.h: Likewise.
25027         * lib/unictype/categ_So.h: Likewise.
25028         * lib/unictype/categ_of.h: Likewise.
25029         * lib/unictype/combining.h: Likewise.
25030         * lib/unictype/ctype_alnum.h: Likewise.
25031         * lib/unictype/ctype_alpha.h: Likewise.
25032         * lib/unictype/ctype_graph.h: Likewise.
25033         * lib/unictype/ctype_lower.h: Likewise.
25034         * lib/unictype/ctype_print.h: Likewise.
25035         * lib/unictype/ctype_punct.h: Likewise.
25036         * lib/unictype/ctype_upper.h: Likewise.
25037         * lib/unictype/decdigit.h: Likewise.
25038         * lib/unictype/digit.h: Likewise.
25039         * lib/unictype/numeric.h: Likewise.
25040         * lib/unictype/pr_alphabetic.h: Likewise.
25041         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25042         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25043         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25044         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25045         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25046         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25047         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25048         * lib/unictype/pr_combining.h: Likewise.
25049         * lib/unictype/pr_composite.h: Likewise.
25050         * lib/unictype/pr_currency_symbol.h: Likewise.
25051         * lib/unictype/pr_dash.h: Likewise.
25052         * lib/unictype/pr_decimal_digit.h: Likewise.
25053         * lib/unictype/pr_deprecated.h: Likewise.
25054         * lib/unictype/pr_diacritic.h: Likewise.
25055         * lib/unictype/pr_extender.h: Likewise.
25056         * lib/unictype/pr_grapheme_base.h: Likewise.
25057         * lib/unictype/pr_grapheme_extend.h: Likewise.
25058         * lib/unictype/pr_grapheme_link.h: Likewise.
25059         * lib/unictype/pr_id_continue.h: Likewise.
25060         * lib/unictype/pr_id_start.h: Likewise.
25061         * lib/unictype/pr_ideographic.h: Likewise.
25062         * lib/unictype/pr_ignorable_control.h: Likewise.
25063         * lib/unictype/pr_logical_order_exception.h: Likewise.
25064         * lib/unictype/pr_lowercase.h: Likewise.
25065         * lib/unictype/pr_numeric.h: Likewise.
25066         * lib/unictype/pr_other_alphabetic.h: Likewise.
25067         * lib/unictype/pr_punctuation.h: Likewise.
25068         * lib/unictype/pr_sentence_terminal.h: Likewise.
25069         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25070         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25071         * lib/unictype/pr_unified_ideograph.h: Likewise.
25072         * lib/unictype/pr_uppercase.h: Likewise.
25073         * lib/unictype/pr_xid_continue.h: Likewise.
25074         * lib/unictype/pr_xid_start.h: Likewise.
25075         * lib/unictype/pr_zero_width.h: Likewise.
25076         * lib/unictype/scripts.h: Likewise.
25077         * lib/unictype/scripts_byname.gperf: Likewise.
25078         * lib/unictype/sy_java_ident.h: Likewise.
25079         * lib/unigbrk/gbrkprop.h: Likewise.
25080         * lib/unilbrk/lbrkprop1.h: Likewise.
25081         * lib/unilbrk/lbrkprop2.h: Likewise.
25082         * lib/unilbrk/lbrktables.h: Likewise.
25083         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
25084         LBP_CP. Implement rule LB30.
25085         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
25086         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
25087         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
25088         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
25089         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
25090         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
25091         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
25092         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
25093         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
25094         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
25095         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
25096         bits instead of 16 bits in the code1 and code2 of each composition
25097         rule.
25098         (uc_composition): Update for Unicode 5.2.0.
25099         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
25100         * lib/uninorm/decomposition-table2.h: Likewise.
25101         * lib/uniwbrk/wbrkprop.h: Likewise.
25102         * tests/unicase/test-cased.c: Likewise.
25103         * tests/unicase/test-ignorable.c: Likewise.
25104         * tests/unicase/test-uc_tolower.c: Likewise.
25105         * tests/unicase/test-uc_totitle.c: Likewise.
25106         * tests/unicase/test-uc_toupper.c: Likewise.
25107         * tests/unictype/test-categ_C.c: Likewise.
25108         * tests/unictype/test-categ_Cf.c: Likewise.
25109         * tests/unictype/test-categ_Cn.c: Likewise.
25110         * tests/unictype/test-categ_L.c: Likewise.
25111         * tests/unictype/test-categ_Ll.c: Likewise.
25112         * tests/unictype/test-categ_Lm.c: Likewise.
25113         * tests/unictype/test-categ_Lo.c: Likewise.
25114         * tests/unictype/test-categ_Lu.c: Likewise.
25115         * tests/unictype/test-categ_M.c: Likewise.
25116         * tests/unictype/test-categ_Mc.c: Likewise.
25117         * tests/unictype/test-categ_Mn.c: Likewise.
25118         * tests/unictype/test-categ_N.c: Likewise.
25119         * tests/unictype/test-categ_Nd.c: Likewise.
25120         * tests/unictype/test-categ_Nl.c: Likewise.
25121         * tests/unictype/test-categ_No.c: Likewise.
25122         * tests/unictype/test-categ_P.c: Likewise.
25123         * tests/unictype/test-categ_Pd.c: Likewise.
25124         * tests/unictype/test-categ_Po.c: Likewise.
25125         * tests/unictype/test-categ_S.c: Likewise.
25126         * tests/unictype/test-categ_Sc.c: Likewise.
25127         * tests/unictype/test-categ_So.c: Likewise.
25128         * tests/unictype/test-ctype_alnum.c: Likewise.
25129         * tests/unictype/test-ctype_alpha.c: Likewise.
25130         * tests/unictype/test-ctype_graph.c: Likewise.
25131         * tests/unictype/test-ctype_lower.c: Likewise.
25132         * tests/unictype/test-ctype_print.c: Likewise.
25133         * tests/unictype/test-ctype_punct.c: Likewise.
25134         * tests/unictype/test-ctype_upper.c: Likewise.
25135         * tests/unictype/test-decdigit.h: Likewise.
25136         * tests/unictype/test-digit.h: Likewise.
25137         * tests/unictype/test-numeric.h: Likewise.
25138         * tests/unictype/test-pr_alphabetic.c: Likewise.
25139         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25140         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25141         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25142         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25143         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25144         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25145         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25146         * tests/unictype/test-pr_combining.c: Likewise.
25147         * tests/unictype/test-pr_composite.c: Likewise.
25148         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25149         * tests/unictype/test-pr_dash.c: Likewise.
25150         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25151         * tests/unictype/test-pr_deprecated.c: Likewise.
25152         * tests/unictype/test-pr_diacritic.c: Likewise.
25153         * tests/unictype/test-pr_extender.c: Likewise.
25154         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25155         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25156         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25157         * tests/unictype/test-pr_id_continue.c: Likewise.
25158         * tests/unictype/test-pr_id_start.c: Likewise.
25159         * tests/unictype/test-pr_ideographic.c: Likewise.
25160         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25161         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25162         * tests/unictype/test-pr_lowercase.c: Likewise.
25163         * tests/unictype/test-pr_numeric.c: Likewise.
25164         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25165         * tests/unictype/test-pr_punctuation.c: Likewise.
25166         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25167         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25168         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25169         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25170         * tests/unictype/test-pr_uppercase.c: Likewise.
25171         * tests/unictype/test-pr_xid_continue.c: Likewise.
25172         * tests/unictype/test-pr_xid_start.c: Likewise.
25173         * tests/unictype/test-pr_zero_width.c: Likewise.
25174         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25175         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
25176         changed behaviour: line breaking is now disallowed between a letter
25177         or '=' and '('.
25178         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25179         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25180         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25181         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
25182         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25183         lib/uniwidth/width.c.
25184         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
25185         without comments, but with the original copyright notice.
25186         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25187         changes.
25188         * lib/unictype/categ_Cc.h: Likewise.
25189         * lib/unictype/categ_Co.h: Likewise.
25190         * lib/unictype/categ_Cs.h: Likewise.
25191         * lib/unictype/categ_Lt.h: Likewise.
25192         * lib/unictype/categ_Me.h: Likewise.
25193         * lib/unictype/categ_Pc.h: Likewise.
25194         * lib/unictype/categ_Pe.h: Likewise.
25195         * lib/unictype/categ_Pf.h: Likewise.
25196         * lib/unictype/categ_Pi.h: Likewise.
25197         * lib/unictype/categ_Ps.h: Likewise.
25198         * lib/unictype/categ_Sk.h: Likewise.
25199         * lib/unictype/categ_Sm.h: Likewise.
25200         * lib/unictype/categ_Z.h: Likewise.
25201         * lib/unictype/categ_Zl.h: Likewise.
25202         * lib/unictype/categ_Zp.h: Likewise.
25203         * lib/unictype/categ_Zs.h: Likewise.
25204         * lib/unictype/ctype_blank.h: Likewise.
25205         * lib/unictype/ctype_cntrl.h: Likewise.
25206         * lib/unictype/ctype_digit.h: Likewise.
25207         * lib/unictype/ctype_space.h: Likewise.
25208         * lib/unictype/ctype_xdigit.h: Likewise.
25209         * lib/unictype/mirror.h: Likewise.
25210         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25211         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25212         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25213         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25214         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25215         * lib/unictype/pr_bidi_control.h: Likewise.
25216         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25217         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25218         * lib/unictype/pr_bidi_pdf.h: Likewise.
25219         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25220         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25221         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25222         * lib/unictype/pr_format_control.h: Likewise.
25223         * lib/unictype/pr_hex_digit.h: Likewise.
25224         * lib/unictype/pr_hyphen.h: Likewise.
25225         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25226         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25227         * lib/unictype/pr_iso_control.h: Likewise.
25228         * lib/unictype/pr_join_control.h: Likewise.
25229         * lib/unictype/pr_left_of_pair.h: Likewise.
25230         * lib/unictype/pr_line_separator.h: Likewise.
25231         * lib/unictype/pr_math.h: Likewise.
25232         * lib/unictype/pr_non_break.h: Likewise.
25233         * lib/unictype/pr_not_a_character.h: Likewise.
25234         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25235         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25236         * lib/unictype/pr_other_id_continue.h: Likewise.
25237         * lib/unictype/pr_other_id_start.h: Likewise.
25238         * lib/unictype/pr_other_lowercase.h: Likewise.
25239         * lib/unictype/pr_other_math.h: Likewise.
25240         * lib/unictype/pr_other_uppercase.h: Likewise.
25241         * lib/unictype/pr_paired_punctuation.h: Likewise.
25242         * lib/unictype/pr_paragraph_separator.h: Likewise.
25243         * lib/unictype/pr_pattern_syntax.h: Likewise.
25244         * lib/unictype/pr_pattern_white_space.h: Likewise.
25245         * lib/unictype/pr_private_use.h: Likewise.
25246         * lib/unictype/pr_quotation_mark.h: Likewise.
25247         * lib/unictype/pr_radical.h: Likewise.
25248         * lib/unictype/pr_soft_dotted.h: Likewise.
25249         * lib/unictype/pr_space.h: Likewise.
25250         * lib/unictype/pr_titlecase.h: Likewise.
25251         * lib/unictype/pr_variation_selector.h: Likewise.
25252         * lib/unictype/pr_white_space.h: Likewise.
25253         * lib/unictype/sy_c_ident.h: Likewise.
25254         * lib/unictype/sy_c_whitespace.h: Likewise.
25255         * lib/unictype/sy_java_whitespace.h: Likewise.
25256         * modules/uni*/*: Bump version number of expected libunistring version.
25257         Reported by Simon Josefsson.
25258
25259 2011-01-09  Karl Heuer  <kwzh@gnu.org>
25260
25261         useless-if-before-free: fix typo in --help and make the internal,
25262         automatic version date update process work once again.
25263         --help output contained a NUL character instead of the
25264         backslash-zero that was intended.  Also, the "must lie within
25265         the first 8 lines" line is on line 9, and hence not getting
25266         automatically updated.
25267         * build-aux/useless-if-before-free: Fix the former by adding a
25268         backslash, and the latter by condensing the three lines of what-it-does
25269         to a single line, leaving one line of slack for the future.
25270
25271 2011-01-09  Bruno Haible  <bruno@clisp.org>
25272
25273         uniwidth/width: Fix width of U+1D173..U+1D17A.
25274         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
25275         symbolic_width, output_width_property_test): New functions.
25276         (main): Invoke output_nonspacing_property, output_width_property_test.
25277         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
25278         U+1D173..U+1D17A.
25279         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
25280         1.
25281         * modules/uniwidth/*: Bump version number of expected libunistring
25282         version.
25283         * modules/unilbrk/*: Likewise.
25284
25285 2011-01-08  Bruno Haible  <bruno@clisp.org>
25286
25287         uninorm tests: Preserve copyright of Unicode data file.
25288         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
25289         Mention modifications.
25290
25291 2011-01-08  Bruno Haible  <bruno@clisp.org>
25292
25293         gen-uni-tables: Prepare for Unicode 5.2.0.
25294         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
25295         (debug_output_lbp, output_lbp): Update.
25296
25297 2011-01-08  Bruno Haible  <bruno@clisp.org>
25298
25299         unilbrk: Clarify gen-uni-tables.c code.
25300         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
25301         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
25302         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
25303
25304 2011-01-07  Bruno Haible  <bruno@clisp.org>
25305
25306         strtod: Restore errno when successfully parsing Infinity or NaN.
25307         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
25308         restore the original errno.
25309
25310 2011-01-07  Bruno Haible  <bruno@clisp.org>
25311
25312         remove test: Avoid failure on HP-UX 11.
25313         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
25314
25315 2011-01-07  Bruno Haible  <bruno@clisp.org>
25316
25317         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
25318         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
25319         error code.
25320
25321 2011-01-07  Pádraig Brady <P@draigBrady.com>
25322
25323         ignore-value: fixup comments, and add Eric Blake
25324         as an author since he rewrote the macros.
25325         * lib/ignore-value.h (ignore_value):  State that
25326         we now support aggregates.  Also specify exactly
25327         when the GCC warn_unused_result feature was added.
25328
25329 2011-01-06  Eric Blake  <eblake@redhat.com>
25330
25331         ignore-value: support aggregate types
25332         * lib/ignore-value.h (ignore_value): Provide separate gcc
25333         definition.
25334         * modules/ignore-value-tests: New test module.
25335         * tests/test-ignore-value.c: New test.
25336
25337         maint.mk: improve sc_prohibit_strcmp regex
25338         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
25339         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
25340         definition of STRNEQ.
25341
25342         signal: work around Haiku issue with SIGBUS
25343         * lib/siglist.h: Add comment.
25344         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
25345         strsignal's favoring of SIGSEGV.
25346         * tests/test-signal.c (main): Avoid test failure.
25347         * doc/posix-headers/signal.texi (signal.h): Document the issue.
25348         Reported by Scott McCreary.
25349
25350         maint.mk: add pre-release check to ensure submodule commits are public
25351         * top/maint.mk (public-submodule-commit): New rule.
25352         (submodule-checks): New variable.
25353         (alpha beta stable): Depend on the variable.
25354
25355 2011-01-05  Pádraig Brady <P@draigBrady.com>
25356         and Jim Meyering  <meyering@redhat.com>
25357
25358         ignore-value: make ignore_value more generic; deprecate ignore_ptr
25359         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
25360         (ATTRIBUTE_DEPRECATED): Define.
25361         (_ignore_case): New function.
25362         (ignore_value): New macro, to replace the old function.
25363         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
25364         * modules/ignore-value (Depends-on): Add stdint.
25365
25366 2011-01-04  Eric Blake  <eblake@redhat.com>
25367
25368         doc: regenerate INSTALL
25369         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
25370         @firstparagraphindent support, now that autoconf dropped it.
25371         (INSTALL_PRELUDE): Reinstate old macro.
25372         * doc/install.texi: Resync from autoconf.
25373         * doc/INSTALL: Reflect recent autoconf update.
25374         * doc/INSTALL.ISO: Likewise.
25375         * doc/INSTALL.UTF-8: Likewise.
25376         Reported by Karl Berry.
25377
25378 2011-01-04  Bruce Korb  <address@hidden>
25379
25380         git-version-gen: avoid a sub-shell
25381         * build-aux/git-version-gen: Redirect stderr in `...` via
25382         "exec 2>...", rather than via an added sub-shell.
25383
25384 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
25385
25386         git-version-gen: use (...) rather than sh -c '...'
25387         * build-aux/git-version-gen: Rather than hard-coding a shell's name
25388         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
25389
25390 2011-01-03  Jim Meyering  <meyering@redhat.com>
25391
25392         git-version-gen: convert leading TABs to spaces
25393         * build-aux/git-version-gen: Expand leading TABs.
25394
25395         git-version-gen: handle failed "git rev-list"
25396         * build-aux/git-version-gen: Rather than leaking a "fatal" error
25397         from git and proceeding as if it had succeeded but printed no SHA1
25398         checksums, suppress the diagnostic and handle the failure.
25399         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
25400
25401         git-version-gen: include command name in one more diagnostic
25402         * build-aux/git-version-gen: When the required .tarball-version file
25403         was missing or unreadable, you might see the diagnostic from "cat",
25404         but no trace of the name of the invoking script.  Now, you still see
25405         the diagnostic from cat, but also get one from "git-version-gen: ".
25406         Inspired by a patch from Bruce Korb.
25407
25408         update-copyright: adjust test to match changed code
25409         * tests/test-update-copyright.sh: Change test's expected output
25410         to match new actual output.
25411
25412 2011-01-02  Bruno Haible  <bruno@clisp.org>
25413
25414         getlogin_r: Avoid test failure on HP-UX 11.
25415         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
25416         ERANGE when the second argument is zero.
25417         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
25418         portability problem.
25419
25420 2011-01-02  Bruce Korb  <bkorb@gnu.org>
25421
25422         * build-aux/update-copyright: doc Simon's changes
25423
25424 2011-01-02  Simon Josefsson  <simon@josefsson.org>
25425
25426         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
25427         environment variable.
25428
25429 2011-01-02  Bruno Haible  <bruno@clisp.org>
25430
25431         unigbrk: Avoid gcc warnings.
25432         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
25433         unused variable.
25434         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
25435         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
25436         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
25437         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
25438         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
25439         Change type of first argument to 'const char *'.
25440         (main): Remove unused variable.
25441         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
25442         type of first argument to 'const char *'.
25443         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
25444         Likewise.
25445         (main): Change type of variable 's'.
25446         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
25447         to 'int'.
25448
25449 2011-01-02  Bruno Haible  <bruno@clisp.org>
25450
25451         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
25452         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
25453         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
25454         bug.
25455         * lib/pwrite.c: Undo 2010-12-31 patch.
25456         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
25457
25458 2011-01-02  Bruno Haible  <bruno@clisp.org>
25459
25460         pread: Fix test whether it works.
25461         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
25462
25463 2011-01-02  Bruno Haible  <bruno@clisp.org>
25464
25465         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
25466         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
25467         ends in "6". Don't require a specific month name. Try also the locale
25468         names found on HP-UX 11 and Solaris 7.
25469
25470 2011-01-02  Bruno Haible  <bruno@clisp.org>
25471
25472         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
25473         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
25474         C linkage.
25475         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
25476
25477 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25478
25479         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
25480         for consistency, since the "cluster" term is not used elsewhere.
25481         * lib/unigbrk.in.h: Update name.
25482         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
25483         * lib/unigbrk/u16-grapheme-next.c: Update name.
25484         * lib/unigbrk/u16-grapheme-prev.c: Update name.
25485         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
25486         * lib/unigbrk/u32-grapheme-next.c: Update name.
25487         * lib/unigbrk/u32-grapheme-prev.c: Update name.
25488         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
25489         * lib/unigbrk/u8-grapheme-next.c: Update name.
25490         * lib/unigbrk/u8-grapheme-prev.c: Update name.
25491         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
25492         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
25493         Suggested by Bruno Haible.
25494
25495 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25496
25497         Remove module 'u8-grapheme-len' as too redundant with
25498         'u8-grapheme-next'.
25499         * modules/unigbrk/u8-grapheme-len: Delete file.
25500         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
25501         * lib/unigbrk.in.h: Remove prototype for deleted function.
25502         * lib/unigbrk/u8-grapheme-len.c: Delete file.
25503         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
25504
25505         Remove module 'u16-grapheme-len' as too redundant with
25506         'u16-grapheme-next'.
25507         * modules/unigbrk/u16-grapheme-len: Delete file.
25508         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
25509         * lib/unigbrk.in.h: Remove prototype for deleted function.
25510         * lib/unigbrk/u16-grapheme-len.c: Delete file.
25511         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
25512
25513         Remove module 'u32-grapheme-len' as too redundant with
25514         'u32-grapheme-next'.
25515         * modules/unigbrk/u32-grapheme-len: Delete file.
25516         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
25517         * lib/unigbrk.in.h: Remove prototype for deleted function.
25518         * lib/unigbrk/u32-grapheme-len.c: Delete file.
25519         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
25520
25521         Suggested by Bruno Haible.
25522
25523 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25524
25525         * unigbrk.in.h: Fix typo: "ben" => "been".
25526         Reported by Bruno Haible.
25527
25528 2011-01-01  Jim Meyering  <meyering@redhat.com>
25529
25530         maint: update almost all copyright ranges to include 2011
25531         Run the new "make update-copyright" rule.
25532
25533 2011-01-01  Jim Meyering  <meyering@redhat.com>
25534
25535         maint: update-copyright: exempt doc/INSTALL*
25536         * Makefile (update-copyright): Also exclude doc/INSTALL*,
25537         since they are generated.  Suggested by Bruno Haible.
25538
25539 2011-01-01  Jim Meyering  <meyering@redhat.com>
25540
25541         maint: refine the update-copyright rule
25542         * Makefile (update-copyright): Also exclude any file that includes
25543         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
25544         code that merely generates the comment.
25545
25546 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25547
25548         New module 'u8-grapheme-len'.
25549         * modules/unigbrk/u8-grapheme-len: New file.
25550         * modules/unigbrk/u8-grapheme-len-tests: New file.
25551         * lib/unigbrk.in.h: Add prototype for new function.
25552         * lib/unigbrk/u8-grapheme-len.c: New file.
25553         * tests/unigbrk/test-u8-grapheme-len.c: New file.
25554
25555         New module 'u16-grapheme-len'.
25556         * modules/unigbrk/u16-grapheme-len: New file.
25557         * modules/unigbrk/u16-grapheme-len-tests: New file.
25558         * lib/unigbrk.in.h: Add prototype for new function.
25559         * lib/unigbrk/u16-grapheme-len.c: New file.
25560         * tests/unigbrk/test-u16-grapheme-len.c: New file.
25561
25562         New module 'u32-grapheme-len'.
25563         * modules/unigbrk/u32-grapheme-len: New file.
25564         * modules/unigbrk/u32-grapheme-len-tests: New file.
25565         * lib/unigbrk.in.h: Add prototype for new function.
25566         * lib/unigbrk/u32-grapheme-len.c: New file.
25567         * tests/unigbrk/test-u32-grapheme-len.c: New file.
25568
25569         New module 'u8-grapheme-next'.
25570         * modules/unigbrk/u8-grapheme-next: New file.
25571         * modules/unigbrk/u8-grapheme-next-tests: New file.
25572         * lib/unigbrk.in.h: Add prototype for new function.
25573         * lib/unigbrk/u8-grapheme-next.c: New file.
25574         * tests/unigbrk/test-u8-grapheme-next.c: New file.
25575
25576         New module 'u16-grapheme-next'.
25577         * modules/unigbrk/u16-grapheme-next: New file.
25578         * modules/unigbrk/u16-grapheme-next-tests: New file.
25579         * lib/unigbrk.in.h: Add prototype for new function.
25580         * lib/unigbrk/u16-grapheme-next.c: New file.
25581         * tests/unigbrk/test-u16-grapheme-next.c: New file.
25582
25583         New module 'u32-grapheme-next'.
25584         * modules/unigbrk/u32-grapheme-next: New file.
25585         * modules/unigbrk/u32-grapheme-next-tests: New file.
25586         * lib/unigbrk.in.h: Add prototype for new function.
25587         * lib/unigbrk/u32-grapheme-next.c: New file.
25588         * tests/unigbrk/test-u32-grapheme-next.c: New file.
25589
25590         New module 'u8-grapheme-prev'.
25591         * modules/unigbrk/u8-grapheme-prev: New file.
25592         * modules/unigbrk/u8-grapheme-prev-tests: New file.
25593         * lib/unigbrk.in.h: Add prototype for new function.
25594         * lib/unigbrk/u8-grapheme-prev.c: New file.
25595         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
25596
25597         New module 'u16-grapheme-prev'.
25598         * modules/unigbrk/u16-grapheme-prev: New file.
25599         * modules/unigbrk/u16-grapheme-prev-tests: New file.
25600         * lib/unigbrk.in.h: Add prototype for new function.
25601         * lib/unigbrk/u16-grapheme-prev.c: New file.
25602         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
25603
25604         New module 'u32-grapheme-prev'.
25605         * modules/unigbrk/u32-grapheme-prev: New file.
25606         * modules/unigbrk/u32-grapheme-prev-tests: New file.
25607         * lib/unigbrk.in.h: Add prototype for new function.
25608         * lib/unigbrk/u32-grapheme-prev.c: New file.
25609         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
25610
25611         New module 'u8-grapheme-breaks'.
25612         * modules/unigbrk/u8-grapheme-breaks: New file.
25613         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
25614         * lib/unigbrk.in.h: Add prototype for new function.
25615         * lib/unigbrk/u8-grapheme-breaks.c: New file.
25616         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
25617
25618         New module 'u16-grapheme-breaks'.
25619         * modules/unigbrk/u16-grapheme-breaks: New file.
25620         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
25621         * lib/unigbrk.in.h: Add prototype for new function.
25622         * lib/unigbrk/u16-grapheme-breaks.c: New file.
25623         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
25624
25625         New module 'u32-grapheme-breaks'.
25626         * modules/unigbrk/u32-grapheme-breaks: New file.
25627         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
25628         * lib/unigbrk.in.h: Add prototype for new function.
25629         * lib/unigbrk/u32-grapheme-breaks.c: New file.
25630         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
25631
25632         New module 'ulc-grapheme-breaks'.
25633         * modules/unigbrk/ulc-grapheme-breaks: New file.
25634         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
25635         * m4/locale-ar.m4: New file.
25636         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
25637         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
25638         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
25639
25640 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25641
25642         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
25643         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
25644         modified how this file was generated before I initially submitted
25645         the module, but failed to regenerate it.  This meant that several
25646         of the level2 entries were wrong.
25647         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
25648         Remove the division-by-2 that is folded into the table now that
25649         gbrkprop.h has been regenerated properly.  Now -1 entries are
25650         handled correctly.
25651
25652         New module 'unigbrk/uc-gbrk-prop-tests'.
25653         * modules/unigbrk/uc-gbrk-prop-tests: New file.
25654         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
25655         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
25656         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
25657
25658 2011-01-01  Bruno Haible  <bruno@clisp.org>
25659
25660         Avoid use of hexadecimal escapes.
25661         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
25662         instead of hexadecimal escapes.
25663
25664 2011-01-01  Jim Meyering  <meyering@redhat.com>
25665
25666         maint: new rule to update copyright year ranges
25667         * Makefile (update-copyright): New rule.
25668
25669         maint: indent with TABs in Makefile
25670         * Makefile: Expand leading sequences of spaces to TABs
25671
25672         version-etc: update the copyright year it reports
25673         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
25674
25675 2010-12-31  Bruno Haible  <bruno@clisp.org>
25676
25677         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
25678         * lib/isfinite.c (zerof, zerod, zerol): New variables.
25679         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
25680         zero.
25681
25682 2010-12-31  Bruno Haible  <bruno@clisp.org>
25683
25684         pwrite: Work around HP-UX 11.11 bug.
25685         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
25686         works and set REPLACE_PWRITE if not.
25687         * lib/pwrite.c (pwrite): Add an implementation that uses the system
25688         function.
25689         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
25690
25691 2010-12-31  Bruno Haible  <bruno@clisp.org>
25692
25693         pread: Work around HP-UX 11 bugs.
25694         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
25695         and set REPLACE_PREAD if not.
25696         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
25697
25698 2010-12-31  Eric Blake  <eblake@redhat.com>
25699
25700         nl_langinfo: fix YESEXPR on Irix 6.5
25701         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
25702         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
25703         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
25704         it.
25705
25706 2010-12-31  Bruno Haible  <bruno@clisp.org>
25707
25708         iconv: Document HP-UX 11 bug.
25709         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
25710
25711 2010-12-31  Bruno Haible  <bruno@clisp.org>
25712
25713         ldexpl: Fix link error on HP-UX 11.
25714         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
25715         LDEXPL_LIBM, using $ISNANL_LIBM.
25716
25717 2010-12-31  Eric Blake  <eblake@redhat.com>
25718
25719         ftello: avoid compilation failure with SunStudio c89
25720         * lib/ftello.c (ftello): Use lseek, not llseek.
25721
25722         tests: avoid failing coreutils tests on cygwin
25723         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
25724         (create_exe_shims_): Return 0 when skipping.
25725
25726 2010-12-31  Bruno Haible  <bruno@clisp.org>
25727
25728         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
25729         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
25730
25731 2010-12-31  Bruno Haible  <bruno@clisp.org>
25732
25733         waitpid: Fix link error in C++ mode.
25734         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
25735
25736 2010-12-31  Bruno Haible  <bruno@clisp.org>
25737
25738         isnan: Use GCC built-ins when possible.
25739         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
25740         __builtin_isnan.
25741         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
25742         (isnan): Define using GCC built-ins for GCC >= 4.0.
25743
25744 2010-12-31  Bruno Haible  <bruno@clisp.org>
25745
25746         isnand: Fix mistake.
25747         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
25748         __builtin_isnand.
25749
25750 2010-12-31  Bruno Haible  <bruno@clisp.org>
25751
25752         open: Avoid C++ error on HP-UX 11.
25753         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
25754
25755 2010-12-31  Bruno Haible  <bruno@clisp.org>
25756
25757         time_r: Add missing declarations on HP-UX 11.
25758         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
25759         instead of HAVE_LOCALTIME_R.
25760         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
25761         HAVE_LOCALTIME_R always.
25762         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
25763         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
25764         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
25765         HAVE_LOCALTIME_R.
25766         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
25767         * doc/posix-functions/localtime_r.texi: Likewise.
25768
25769 2010-12-29  Eric Blake  <eblake@redhat.com>
25770
25771         mountlist: tweak previous commit
25772         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
25773         Reported by Paul Eggert.
25774
25775         mountlist: fix local drive detection on cygwin
25776         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
25777         that works for cygwin.
25778
25779 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25780
25781         ftoastr, snprintf: ftoastr + snprintf module
25782         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
25783         since the snprintf module now should be good enough here.
25784         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
25785         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
25786         and gl_MODULE_INDICATOR([snprintf]), but the former enables
25787         GNULIB_SNPRINTF only for the test directory, and the latter
25788         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
25789         seems to suffice by itself.
25790
25791 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25792
25793         alloca: one step towards thread-safety
25794         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
25795         need for a static variable.  All callers changed.  This does not
25796         make the alloca replacement thread-safe, but it's one step.
25797
25798         tests: minor indenting change
25799         * tests/init.sh: Sync from coreutils housekeeping patch
25800         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
25801         to keep lines within 80 columns.
25802
25803 2010-12-28  Jim Meyering  <meyering@redhat.com>
25804
25805         regex: don't infloop on persistent failing calloc
25806         * lib/regexec.c (build_trtable): Return failure indication upon
25807         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
25808         In glibc, this was fixed for version 2.13:
25809         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
25810
25811 2010-12-28  Bruno Haible  <bruno@clisp.org>
25812             Paul Eggert <eggert@cs.ucla.edu>
25813
25814         linkat: Make implementation robust against system behaviour variations.
25815         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
25816         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
25817         way, and to -2 if it needs a generic runtime test.
25818         * lib/linkat.c (solaris_optimized_link_immediate,
25819         solaris_optimized_link_follow): New functions.
25820         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
25821         (check_same_link): Use it.
25822
25823 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
25824
25825         New module 'unigbrk/base'.
25826         * modules/unigbrk/base: New file.
25827         * lib/unigbrk.in.h: New file.
25828
25829         New module 'unigbrk/uc-gbrk-prop'.
25830         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
25831         * modules/unigbrk/uc-gbrk-prop: New file.
25832         * lib/unigbrk/gbrkprop.h: New file.
25833         * lib/unigbrk/uc-gbrk-prop.c: New file.
25834
25835         New module 'unigbrk/uc-is-grapheme-break'.
25836         * modules/unigbrk/uc-is-grapheme-break: New file.
25837         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
25838         * lib/unigbrk/uc-is-grapheme-break.c: New file.
25839         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
25840         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
25841         * tests/unigbrk/GraphemeBreakTest.txt: New file.
25842
25843         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
25844
25845 2010-12-27  Bruno Haible  <bruno@clisp.org>
25846
25847         linkat test: Avoid failure on Solaris 11 2010-11.
25848         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
25849
25850 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25851
25852         utimens: work around glibc rounding bug on more platforms
25853         * lib/utimens.c (fdutimens): Work around rounding bug even if
25854         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
25855         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
25856
25857 2010-12-27  Bruno Haible  <bruno@clisp.org>
25858
25859         select tests: Improve comments.
25860         * tests/test-select.c (do_select): Add comments.
25861
25862 2010-12-27  Bruno Haible  <bruno@clisp.org>
25863
25864         select tests: Safer way of handling timeout.
25865         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
25866         at every invocation.
25867
25868 2010-12-27  Bruno Haible  <bruno@clisp.org>
25869
25870         select tests: Use 'bool' where appropriate.
25871         * tests/test-select.c (connect_to_socket): Change argument type to
25872         'bool'.
25873
25874 2010-12-27  Bruno Haible  <bruno@clisp.org>
25875
25876         select tests: Use existing modules.
25877         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
25878         (configure.ac): Don't test for unistd.h.
25879         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
25880         declared in <unistd.h>.
25881
25882 2010-12-27  Bruno Haible  <bruno@clisp.org>
25883
25884         mbrtowc: Work around a Solaris 7 bug.
25885         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
25886         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
25887         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
25888         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
25889         MBRTOWC_NULL_ARG1_BUG.
25890         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
25891         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
25892         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
25893         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
25894
25895 2010-12-27  Jim Meyering  <meyering@redhat.com>
25896
25897         read-file.c: tweak syntax
25898         * lib/read-file.c (fread_file): Remove space after "*" in function
25899         definitions.
25900
25901 2010-12-27  Bruno Haible  <bruno@clisp.org>
25902
25903         times test: Avoid gcc warnings on OSF/1.
25904         * tests/test-times.c (main): Cast printf arguments from clock_t to
25905         'long int'.
25906
25907 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25908
25909         utimens: work around glibc rounding bug on older Linux kernels
25910         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
25911         on Linux with a glibc whose utimes might not work, then work
25912         around a longstanding glibc bug involving rounding rather than
25913         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
25914         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25915
25916 2010-12-26  Bruno Haible  <bruno@clisp.org>
25917
25918         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
25919         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
25920         _GL_CXXALIAS_SYS.
25921         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25922
25923 2010-12-26  Bruno Haible  <bruno@clisp.org>
25924
25925         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
25926         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
25927         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25928         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
25929         looking for the declaration.
25930         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25931         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
25932         problem.
25933         * doc/posix-functions/inet_pton.texi: Likewise.
25934
25935 2010-12-26  Bruno Haible  <bruno@clisp.org>
25936
25937         arpa_inet: Use the common idioms with C++ support.
25938         * lib/arpa_inet.in.h: Include c++defs.h.
25939         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
25940         support.
25941         * modules/arpa_inet (Depends-on): Add c++defs.
25942         (Makefile.am): Substitute the contents of c++defs.h.
25943         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
25944         * modules/arpa_inet-c++-tests: New file.
25945         * tests/test-arpa_inet-c++.cc: New file.
25946
25947 2010-12-25  Bruno Haible  <bruno@clisp.org>
25948
25949         Fix more C++ link errors on Solaris 8.
25950         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
25951         $(LIB_EACCESS).
25952         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
25953         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
25954         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
25955         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
25956         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
25957
25958 2010-12-25  Bruno Haible  <bruno@clisp.org>
25959
25960         printf-posix: Fix link error when a non-GCC compiler is used.
25961         * lib/stdio.in.h (printf): When not using GCC, override printf
25962         correctly.
25963         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25964
25965 2010-12-25  Bruno Haible  <bruno@clisp.org>
25966
25967         strerror_r-posix: Update doc.
25968         * doc/posix-functions/strerror_r.texi: Update doc about the return
25969         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
25970
25971 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25972
25973         utimens: simplify the logic of the previous change
25974         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
25975         This should not affect whether the test succeeds or fails.
25976
25977         utimens: configure better on hosts with NFS clock skew
25978         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
25979         uses the clock of the local host.  It might use the clock of the
25980         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
25981         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25982
25983 2010-12-25  Bruno Haible  <bruno@clisp.org>
25984
25985         ptsname test: Avoid failure on Solaris.
25986         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
25987         open a pseudo-terminal; don't use BSD-style ptys.
25988         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
25989
25990 2010-12-25  Bruno Haible  <bruno@clisp.org>
25991
25992         ptsname: Avoid ERANGE failure on some systems.
25993         * lib/ptsname.c (buffer): Increase size.
25994
25995 2010-12-25  Bruno Haible  <bruno@clisp.org>
25996
25997         rename, renameat: Avoid test failures at NFS mounted locations.
25998         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
25999         so that subsequent mkdir calls succeed.
26000
26001 2010-12-25  Bruno Haible  <bruno@clisp.org>
26002
26003         iswblank: Fix C++ link error on Solaris 8.
26004         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
26005         _GL_FUNCDECL_SYS.
26006
26007 2010-12-25  Bruno Haible  <bruno@clisp.org>
26008
26009         unistd: Fix C++ link error on Solaris 8.
26010         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
26011
26012 2010-12-25  Bruno Haible  <bruno@clisp.org>
26013
26014         readlink doc: Mention an old glibc bug.
26015         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
26016
26017 2010-12-25  Bruno Haible  <bruno@clisp.org>
26018
26019         fcntl-h: Fix for use of C++ on glibc systems.
26020         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26021         also on glibc systems in C++ mode.
26022         Reported by Gary V. Vaughan <gary@gnu.org>.
26023
26024 2010-12-25  Bruno Haible  <bruno@clisp.org>
26025
26026         roundl-ieee: Make it work on OSF/1 5.1 with cc.
26027         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
26028
26029 2010-12-25  Bruno Haible  <bruno@clisp.org>
26030
26031         truncl-ieee: Make it work on OSF/1 5.1 with cc.
26032         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
26033         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
26034         test whether truncl works according to ISO C 99 with IEC 60559.
26035         * m4/truncl-ieee.m4: New file.
26036         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
26037         m4/signbit.m4.
26038         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
26039
26040 2010-12-25  Bruno Haible  <bruno@clisp.org>
26041
26042         ceill-ieee: Make it work on OSF/1 5.1 with cc.
26043         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
26044         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
26045         test whether ceill works according to ISO C 99 with IEC 60559.
26046         * m4/ceill-ieee.m4: New file.
26047         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
26048         m4/signbit.m4.
26049         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
26050
26051 2010-12-25  Bruno Haible  <bruno@clisp.org>
26052
26053         Ensure all prerequisites of <wchar.h> are included.
26054         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
26055         before <wchar.h>.
26056         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26057         gl_MBRLEN_NUL_RETVAL): Likewise.
26058         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26059         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
26060         AC_FUNC_MBRTOWC): Likewise.
26061         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26062         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26063         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26064         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26065         Likewise.
26066         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26067         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
26068         (gl_WCHAR_H): Improve comments.
26069         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26070
26071 2010-12-25  Bruno Haible  <bruno@clisp.org>
26072
26073         strtok_r: Fix C syntax error in autoconf macro.
26074         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
26075         characters in test program.
26076
26077 2010-12-24  Bruno Haible  <bruno@clisp.org>
26078
26079         ceil, trunc, round: Fix gcc warnings.
26080         * lib/ceil.c (MIN): Undefine before redefining.
26081         * lib/trunc.c (MIN): Likewise.
26082         * lib/round.c (MIN): Likewise.
26083         Include <math.h> first.
26084
26085 2010-12-24  Bruno Haible  <bruno@clisp.org>
26086
26087         select tests: Avoid failures on OSF/1 5.1.
26088         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
26089         failure of closing the last socket; it may fail with ECONNRESET.
26090
26091 2010-12-24  Eric Blake  <eblake@redhat.com>
26092
26093         stdint: avoid HP-UX 10.20 preprocessor bug
26094         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
26095         than #if.
26096         * tests/test-floor2.c (main): Likewise.
26097         Reported by Peter O'Gorman.
26098
26099         pipe: make obsoletion transition easier
26100         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
26101         * modules/pipe (Files): Include revived file.
26102         (Include): Drop reference, to mirror getdate's behavior.
26103
26104 2010-12-24  Bruno Haible  <bruno@clisp.org>
26105
26106         sys_socket: Hide mismatch of declarations on NonStop Kernel.
26107         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
26108         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
26109         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26110
26111 2010-12-24  Bruno Haible  <bruno@clisp.org>
26112
26113         gethostname: Ensure declaration on NonStop Kernel.
26114         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
26115         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26116
26117 2010-12-24  Bruno Haible  <bruno@clisp.org>
26118
26119         sys_select: Ensure all necessary types on NonStop Kernel.
26120         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
26121         include <sys/time.h>.
26122         * doc/posix-headers/sys_select.texi: Mention that it's missing on
26123         NonStop Kernel.
26124         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26125
26126 2010-12-24  Bruno Haible  <bruno@clisp.org>
26127
26128         sys_select: Remove unneeded include.
26129         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
26130         have <sys/select.h>.
26131
26132 2010-12-24  Bruno Haible  <bruno@clisp.org>
26133
26134         gethostname: Provide a fallback for HOST_NAME_MAX.
26135         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
26136         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
26137         instead.
26138         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26139
26140 2010-12-24  Bruno Haible  <bruno@clisp.org>
26141
26142         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
26143         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
26144         (SA_RESTART): Likewise.
26145         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26146
26147 2010-12-24  Bruno Haible  <bruno@clisp.org>
26148
26149         signal: Define NSIG.
26150         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
26151         * tests/test-signal.c (nsig): New variable.
26152         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26153
26154 2010-12-24  Bruno Haible  <bruno@clisp.org>
26155
26156         rename, renameat: Avoid test failures on OSF/1 5.1.
26157         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
26158         alternative error codes.
26159         * tests/test-renameat.c (main): Likewise.
26160
26161 2010-12-24  Bruno Haible  <bruno@clisp.org>
26162
26163         *printf: Detect large precisions bug on Solaris 10/SPARC.
26164         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
26165         by Paul Eggert.
26166         * tests/test-snprintf-posix.h (test_function): Add this test code here
26167         too.
26168         * tests/test-sprintf-posix.h (test_function): Likewise.
26169         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26170         * tests/test-vasprintf-posix.c (test_function): Likewise.
26171         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
26172         around by gnulib.
26173         * doc/posix-functions/printf.texi: Likewise.
26174         * doc/posix-functions/snprintf.texi: Likewise.
26175         * doc/posix-functions/sprintf.texi: Likewise.
26176         * doc/posix-functions/vfprintf.texi: Likewise.
26177         * doc/posix-functions/vprintf.texi: Likewise.
26178         * doc/posix-functions/vsnprintf.texi: Likewise.
26179         * doc/posix-functions/vsprintf.texi: Likewise.
26180         * doc/posix-functions/dprintf.texi: Undo last commit.
26181         * doc/posix-functions/vdprintf.texi: Likewise.
26182
26183 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26184
26185         tests: port test-fdutimensat.c to Solaris 8
26186         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
26187         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
26188         On Solaris 8, it fails with errno == ENOSYS, because there is no
26189         futimens (so it can't use the fd), and there is no lutimens (so it
26190         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
26191
26192         vsnprintf: make more consistent with snprintf; doc fixes
26193
26194         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
26195         the byte count return problem was promoted from the snprintf-posix
26196         to the snprintf module.
26197         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26198         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
26199         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
26200         * tests/test-snprintf.c (main): Check the byte count returned.
26201         * tests/test-vsnprintf.c (main): Likewise.
26202
26203 2010-12-23  Eric Blake  <eblake@redhat.com>
26204
26205         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
26206         * modules/sigpipe (License): Relax license.
26207
26208 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26209
26210         doc: document Solaris printf bug with large float precisions
26211         * doc/posix-functions/dprintf.texi (dprintf):
26212         * doc/posix-functions/fprintf.texi (fprintf):
26213         * doc/posix-functions/printf.texi (printf):
26214         * doc/posix-functions/snprintf.texi (snprintf):
26215         * doc/posix-functions/sprintf.texi (sprintf):
26216         * doc/posix-functions/vdprintf.texi (vdprintf):
26217         * doc/posix-functions/vfprintf.texi (vfprintf):
26218         * doc/posix-functions/vprintf.texi (vprintf):
26219         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26220         * doc/posix-functions/vsprintf.texi (vsprintf):
26221         Mention that these functions mishandle large floating point
26222         precisions on Solaris 10.  The same bug is also present in Solaris
26223         8, and I assume earlier.  This causes "cd gnulib-tests; make
26224         check" to fail on Solaris 8 (and I assume, later) when building
26225         the latest coreutils, in test-vasprintf-posix's call to
26226         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
26227         the wide flavors (e.g., wprintf) so this patch just updates the
26228         documentation for the narrow ones.
26229
26230         test-posixtm.c: add two tests
26231         * tests/test-posixtm.c: Add two tests, to highlight the
26232         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
26233         around this bug; this is merely to document it.
26234
26235 2010-12-22  Bruno Haible  <bruno@clisp.org>
26236
26237         getlogin_r: Work around portability problem on OSF/1.
26238         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
26239         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
26240         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
26241         test for a truncated result.
26242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
26243         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
26244         * modules/getlogin_r (Depends-on): Add memchr.
26245         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
26246
26247 2010-12-22  Bruno Haible  <bruno@clisp.org>
26248
26249         ptsname: Avoid test failure on OSF/1 5.1.
26250         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
26251         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
26252         (same_slave): New function.
26253         (main): Use it to compare ptsname's result with the expected file name.
26254
26255 2010-12-22  Bruno Haible  <bruno@clisp.org>
26256
26257         Port extended stdio modules to HP NonStop Kernel.
26258         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
26259         macros.
26260         * lib/fbufmode.c: Update comments.
26261         * lib/fflush.c: Likewise.
26262         * lib/fpurge.c: Likewise.
26263         * lib/freadable.c: Likewise.
26264         * lib/freadahead.c: Likewise.
26265         * lib/freading.c: Likewise.
26266         * lib/freadptr.c: Likewise.
26267         * lib/freadseek.c: Likewise.
26268         * lib/fseeko.c: Likewise.
26269         * lib/fseterr.c: Likewise.
26270         * lib/fwritable.c: Likewise.
26271         * lib/fwriting.c: Likewise.
26272         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26273
26274 2010-12-22  Bruno Haible  <bruno@clisp.org>
26275
26276         ttyname_r: Work around bug on OSF/1 5.1.
26277         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
26278         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
26279         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
26280         present.
26281         * lib/ttyname_r.c (ttyname_r): Update comments.
26282
26283 2010-12-22  Bruno Haible  <bruno@clisp.org>
26284
26285         round: Implement result sign according to IEEE 754.
26286         * lib/round.c (MIN, MINUS_ZERO): New macros.
26287         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
26288         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
26289         * tests/test-round-ieee.c (main): Likewise.
26290         * tests/test-roundl-ieee.c (main): Likewise.
26291
26292         trunc: Implement result sign according to IEEE 754.
26293         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
26294         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
26295         * tests/test-trunc2.c: Include minus-zero.h.
26296         (MINUS_ZERO): New macro.
26297         (trunc_reference): Keep in sync with lib/trunc.c.
26298         * tests/test-truncf2.c: Include minus-zero.h.
26299         (MINUS_ZERO): New macro.
26300         (truncf_reference): Keep in sync with lib/trunc.c.
26301         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
26302         * tests/test-trunc-ieee.c (main): Likewise.
26303         * tests/test-truncl-ieee.c (main): Likewise.
26304
26305         ceil: Implement result sign according to IEEE 754.
26306         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
26307         (FUNC): Return -0.0 for -1 < x < 0.
26308         * tests/test-ceil2.c: Include minus-zero.h.
26309         (MINUS_ZERO): New macro.
26310         (ceil_reference): Keep in sync with lib/ceil.c.
26311         * tests/test-ceilf2.c: Include minus-zero.h.
26312         (MINUS_ZERO): New macro.
26313         (ceilf_reference): Keep in sync with lib/ceil.c.
26314         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
26315         * tests/test-ceil-ieee.c (main): Likewise.
26316         * tests/test-ceill-ieee.c (main): Likewise.
26317
26318         floor: Implement result sign according to IEEE 754.
26319         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
26320         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
26321         * tests/test-floorf2.c (floorf_reference): Likewise.
26322         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
26323         * tests/test-floor-ieee.c (main): Likewise.
26324         * tests/test-floorl-ieee.c (main): Likewise.
26325
26326 2010-12-22  Bruno Haible  <bruno@clisp.org>
26327
26328         getaddrinfo: Update doc.
26329         * doc/posix-functions/gai_strerror.texi: Return type is also different
26330         on AIX and HP-UX.
26331
26332 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26333
26334         getaddrinfo, inet_ntop: Update doc for Solaris.
26335         * doc/posix-functions/gai_strerror.texi: Return type is also an
26336         issue on Solaris 9 and earlier.
26337         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
26338         on Solaris 10 and earlier.
26339
26340 2010-12-21  Bruno Haible  <bruno@clisp.org>
26341
26342         New module 'roundl-ieee'.
26343         * modules/roundl-ieee: New file.
26344         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
26345         test whether roundl works according to ISO C 99 with IEC 60559.
26346         * m4/roundl-ieee.m4: New file.
26347         * modules/roundl-ieee-tests: New file.
26348         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
26349         * tests/test-roundl.c (main): Remove signbit tests.
26350         * modules/roundl-tests (Depends-on): Remove signbit.
26351         * doc/posix-functions/roundl.texi: Mention the new module.
26352
26353 2010-12-21  Bruno Haible  <bruno@clisp.org>
26354
26355         New module 'truncl-ieee'.
26356         * modules/truncl-ieee: New file.
26357         * modules/truncl-ieee-tests: New file.
26358         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
26359         * tests/test-truncl.c (main): Remove signbit tests.
26360         * modules/truncl-tests (Depends-on): Remove signbit.
26361         * doc/posix-functions/truncl.texi: Mention the new module.
26362
26363 2010-12-21  Bruno Haible  <bruno@clisp.org>
26364
26365         New module 'ceill-ieee'.
26366         * modules/ceill-ieee: New file.
26367         * modules/ceill-ieee-tests: New file.
26368         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
26369         * tests/test-ceill.c (main): Remove signbit tests.
26370         * modules/ceill-tests (Depends-on): Remove signbit.
26371         * doc/posix-functions/ceill.texi: Mention the new module.
26372
26373 2010-12-21  Bruno Haible  <bruno@clisp.org>
26374
26375         New module 'floorl-ieee'.
26376         * modules/floorl-ieee: New file.
26377         * modules/floorl-ieee-tests: New file.
26378         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
26379         * tests/test-floorl.c (main): Remove signbit tests.
26380         * modules/floorl-tests (Depends-on): Remove signbit.
26381         * doc/posix-functions/floorl.texi: Mention the new module.
26382
26383 2010-12-21  Bruno Haible  <bruno@clisp.org>
26384
26385         New module 'round-ieee'.
26386         * modules/round-ieee: New file.
26387         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
26388         whether round works according to ISO C 99 with IEC 60559.
26389         * m4/round-ieee.m4: New file.
26390         * modules/round-ieee-tests: New file.
26391         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
26392         * tests/test-round1.c (main): Remove signbit tests.
26393         * modules/round-tests (Depends-on): Remove 'signbit'.
26394         * doc/posix-functions/round.texi: Mention the new module.
26395
26396 2010-12-21  Bruno Haible  <bruno@clisp.org>
26397
26398         New module 'trunc-ieee'.
26399         * modules/trunc-ieee: New file.
26400         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
26401         whether trunc works according to ISO C 99 with IEC 60559.
26402         * m4/trunc-ieee.m4: New file.
26403         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
26404         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
26405         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
26406         * modules/trunc-ieee-tests: New file.
26407         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
26408         * tests/test-trunc1.c (main): Remove signbit tests.
26409         * modules/trunc-tests (Depends-on): Remove 'signbit'.
26410         * doc/posix-functions/trunc.texi: Mention the new module.
26411
26412 2010-12-21  Bruno Haible  <bruno@clisp.org>
26413
26414         New module 'ceil-ieee'.
26415         * modules/ceil-ieee: New file.
26416         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
26417         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
26418         ISO C 99 with IEC 60559.
26419         * m4/ceil-ieee.m4: New file.
26420         * modules/ceil (Files): Add lib/ceil.c.
26421         (Depends-on): Add 'float'.
26422         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26423         * lib/math.in.h (ceil): New declaration.
26424         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
26425         REPLACE_CEIL.
26426         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
26427         * modules/ceil-ieee-tests: New file.
26428         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
26429         * tests/test-math-c++.cc: Check the signature of 'ceil'.
26430         * doc/posix-functions/ceil.texi: Mention the new module.
26431
26432 2010-12-21  Bruno Haible  <bruno@clisp.org>
26433
26434         New module 'floor-ieee'.
26435         * modules/floor-ieee: New file.
26436         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
26437         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
26438         ISO C 99 with IEC 60559.
26439         * m4/floor-ieee.m4: New file.
26440         * modules/floor (Files): Add lib/floor.c.
26441         (Depends-on): Add 'float'.
26442         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26443         * lib/math.in.h (floor): New declaration.
26444         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
26445         REPLACE_FLOOR.
26446         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
26447         * modules/floor-ieee-tests: New file.
26448         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
26449         * tests/test-math-c++.cc: Check the signature of 'floor'.
26450         * doc/posix-functions/floor.texi: Mention the new module.
26451
26452 2010-12-21  Bruno Haible  <bruno@clisp.org>
26453
26454         New module 'roundf-ieee'.
26455         * modules/roundf-ieee: New file.
26456         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
26457         test whether roundf works according to ISO C 99 with IEC 60559.
26458         * m4/roundf-ieee.m4: New file.
26459         * modules/roundf-ieee-tests: New file.
26460         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
26461         * tests/test-roundf1.c (main): Remove signbit tests.
26462         * modules/roundf-tests (Depends-on): Remove 'signbit'.
26463         * doc/posix-functions/roundf.texi: Mention the new module.
26464
26465 2010-12-21  Bruno Haible  <bruno@clisp.org>
26466
26467         New module 'truncf-ieee'.
26468         * modules/truncf-ieee: New file.
26469         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
26470         test whether truncf works according to ISO C 99 with IEC 60559.
26471         * m4/truncf-ieee.m4: New file.
26472         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
26473         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
26474         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
26475         * modules/truncf-ieee-tests: New file.
26476         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
26477         * tests/test-truncf1.c (main): Remove signbit tests.
26478         * modules/truncf-tests (Depends-on): Remove 'signbit'.
26479         * doc/posix-functions/truncf.texi: Mention the new module.
26480
26481 2010-12-21  Bruno Haible  <bruno@clisp.org>
26482
26483         New module 'ceilf-ieee'.
26484         * modules/ceilf-ieee: New file.
26485         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
26486         test whether ceilf works according to ISO C 99 with IEC 60559.
26487         * m4/ceilf-ieee.m4: New file.
26488         * modules/ceilf-ieee-tests: New file.
26489         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
26490         * tests/test-ceilf1.c (main): Remove signbit tests.
26491         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
26492         * doc/posix-functions/ceilf.texi: Mention the new module.
26493
26494 2010-12-21  Bruno Haible  <bruno@clisp.org>
26495
26496         New module 'floorf-ieee'.
26497         * modules/floorf-ieee: New file.
26498         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
26499         test whether floorf works according to ISO C 99 with IEC 60559.
26500         * m4/floorf-ieee.m4: New file.
26501         * modules/floorf-ieee-tests: New file.
26502         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
26503         * tests/test-floorf1.c (main): Remove signbit tests.
26504         * modules/floorf-tests (Depends-on): Remove 'signbit'.
26505         * doc/posix-functions/floorf.texi: Mention the new module.
26506
26507 2010-12-21  Bruno Haible  <bruno@clisp.org>
26508
26509         Support for minus zero in autoconf macros.
26510         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
26511         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
26512         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
26513         * tests/minus-zero.h: Update comments.
26514
26515 2010-12-21  Bruno Haible  <bruno@clisp.org>
26516
26517         Tests for module 'ceil'.
26518         * modules/ceil-tests: New file.
26519         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
26520         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
26521
26522 2010-12-21  Bruno Haible  <bruno@clisp.org>
26523
26524         Tests for module 'floor'.
26525         * modules/floor-tests: New file.
26526         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
26527         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
26528
26529 2010-12-21  Bruno Haible  <bruno@clisp.org>
26530
26531         math: Fix indentation.
26532         * lib/math.in.h (floorf): Fix indentation.
26533
26534 2010-12-21  Bruno Haible  <bruno@clisp.org>
26535
26536         Fix cross-compilation guesses on Solaris.
26537         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
26538         not match "solaris2.10".
26539         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26540         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
26541         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
26542
26543 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26544
26545         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
26546         This fixes a problem observed with the latest coreutils snapshot
26547         that caused a test to fail on Solaris 8.  src/csplit.c's call
26548         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
26549         earlier, instead of returning the number of bytes that would have
26550         been generated; this causes csplit to incorrectly report memory
26551         exhaustion.
26552         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
26553         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
26554         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
26555         comments to match.
26556         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
26557         Fix typo in matching older versions of Solaris: "solaris2.10"
26558         is matched by the shell pattern "solaris2.[0-9]*".  This matters
26559         only for guessing while cross-compiling.
26560         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
26561
26562 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
26563
26564         ftoastr: fix comment again
26565         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26566         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
26567         Also, simplify example a bit by using flags = 0.
26568
26569 2010-12-20  Bruno Haible  <bruno@clisp.org>
26570
26571         round*, trunc*: Update documentation regarding glibc.
26572         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
26573         * doc/posix-functions/round.texi: Likewise.
26574         * doc/posix-functions/roundl.texi: Likewise.
26575         * doc/posix-functions/truncf.texi: Likewise.
26576         * doc/posix-functions/trunc.texi: Likewise.
26577         * doc/posix-functions/truncl.texi: Likewise.
26578
26579 2010-12-20  Bruno Haible  <bruno@clisp.org>
26580
26581         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
26582         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
26583         * doc/posix-functions/round.texi: Likewise.
26584         * doc/posix-functions/roundl.texi: Likewise.
26585
26586 2010-12-20  Bruno Haible  <bruno@clisp.org>
26587
26588         ttyname_r: Add missing declaration on HP-UX 11.
26589         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
26590         HAVE_TTYNAME_R.
26591         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
26592         declared. Set HAVE_TTYNAME_R always.
26593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26594         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
26595         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
26596         HAVE_TTYNAME_R.
26597         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
26598
26599 2010-12-20  Bruno Haible  <bruno@clisp.org>
26600
26601         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
26602         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
26603         * doc/posix-functions/getlogin_r.texi: Likewise.
26604         * tests/test-getlogin.c: Include <errno.h>.
26605         (main): Avoid test failure on HP-UX 11.11.
26606         * tests/test-getlogin_r.c (main): Likewise.
26607
26608 2010-12-20  Bruno Haible  <bruno@clisp.org>
26609
26610         getlogin_r: Add missing declaration on HP-UX 11.
26611         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
26612         declared also when it exists as a function.
26613         * doc/posix-functions/getlogin_r.texi: Document this workaround.
26614
26615 2010-12-20  Bruno Haible  <bruno@clisp.org>
26616
26617         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
26618         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
26619         through wcrtomb.
26620
26621 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26622
26623         ftoastr: fix comment
26624         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26625         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
26626
26627 2010-12-19  Bruno Haible  <bruno@clisp.org>
26628
26629         isnan: Ensure it is a macro.
26630         * lib/math.in.h (isnan): Define as a macro if not already a macro.
26631         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
26632         Solaris.
26633
26634 2010-12-19  Bruno Haible  <bruno@clisp.org>
26635
26636         ldexpl test: Fix link error on OSF/1 5.1.
26637         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
26638
26639 2010-12-19  Bruno Haible  <bruno@clisp.org>
26640
26641         wctype: Make it work in C++ mode on OSF/1 5.1.
26642         * lib/wctype.in.h (iswblank): Declare but not define here.
26643         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
26644         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
26645         * modules/wctype (Files): Add lib/iswblank.c.
26646
26647 2010-12-19  Bruno Haible  <bruno@clisp.org>
26648
26649         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
26650         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
26651         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
26652
26653 2010-12-19  Bruno Haible  <bruno@clisp.org>
26654
26655         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
26656         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
26657         _POSIX_PII_SOCKET.
26658         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
26659         * doc/posix-functions/recvfrom.texi: Likewise.
26660         * doc/posix-functions/send.texi: Likewise.
26661         * doc/posix-functions/sendto.texi: Likewise.
26662
26663 2010-12-19  Bruno Haible  <bruno@clisp.org>
26664
26665         tcgetsid: Add missing declaration on OSF/1 5.1.
26666         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
26667         HAVE_TCGETSID.
26668         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
26669         Don't set HAVE_TCGETSID.
26670         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
26671         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
26672         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
26673         HAVE_TCGETSID.
26674         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
26675
26676 2010-12-19  Bruno Haible  <bruno@clisp.org>
26677
26678         stdio: Fix problem with popen() declaration on OSF/1 5.1.
26679         * lib/stdio.in.h: During the include_next statement, let recursive
26680         includes of this file include only the system header file.
26681
26682 2010-12-19  Bruno Haible  <bruno@clisp.org>
26683
26684         iconv_open: Fix regression from 2010-12-04.
26685         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
26686         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
26687
26688 2010-12-19  Bruno Haible  <bruno@clisp.org>
26689
26690         stdbool test: Avoid a gcc warning.
26691         * tests/test-stdbool.c (main): Fail if e1 is false.
26692         Reported by Jim Meyering.
26693
26694 2010-12-19  Jim Meyering  <meyering@redhat.com>
26695
26696         setenv: restore to working order
26697         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
26698         mistakenly removed.
26699         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
26700         HAVE_SETENV.
26701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
26702         HAVE_SETENV.
26703
26704 2010-12-19  Bruno Haible  <bruno@clisp.org>
26705
26706         Document some different function declarations on OSF/1 5.1.
26707         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
26708         * doc/posix-functions/inet_ntop.texi: Likewise.
26709         * doc/posix-functions/gethostname.texi: Likewise.
26710         * lib/unistd.in.h (gethostname): Update comment.
26711
26712 2010-12-19  Bruno Haible  <bruno@clisp.org>
26713
26714         doc: Mention vasprintf-posix module.
26715         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
26716         the 'vasprintf-posix' module.
26717         * doc/glibc-functions/vasprintf.texi: Likewise.
26718
26719 2010-12-19  Bruno Haible  <bruno@clisp.org>
26720
26721         unsetenv: Add missing declaration on OSF/1 5.1.
26722         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
26723         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
26724         Don't set HAVE_UNSETENV. In the test program, set _BSD.
26725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
26726         not HAVE_UNSETENV.
26727         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
26728         HAVE_UNSETENV.
26729         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
26730
26731 2010-12-19  Bruno Haible  <bruno@clisp.org>
26732
26733         setenv: Add missing declaration on OSF/1 5.1.
26734         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
26735         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
26736         declared. Don't set HAVE_SETENV.
26737         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
26738         not HAVE_SETENV.
26739         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
26740         HAVE_SETENV.
26741         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
26742
26743 2010-12-19  Bruno Haible  <bruno@clisp.org>
26744
26745         nl_langinfo tests: Avoid gcc warning.
26746         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
26747
26748 2010-12-19  Bruno Haible  <bruno@clisp.org>
26749
26750         mknod: Avoid error in C++ mode on OSF/1 with GCC.
26751         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
26752         _GL_CXXALIAS_SYS.
26753
26754 2010-12-19  Bruno Haible  <bruno@clisp.org>
26755
26756         stdbool: Relax test.
26757         * tests/test-stdbool.c (e): Don't require that casts from a variable's
26758         address to 'bool' work in static initializer, for compilers other than
26759         GCC.
26760
26761 2010-12-19  Bruno Haible  <bruno@clisp.org>
26762
26763         ftello: Add missing declaration on OSF/1 5.1.
26764         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
26765         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
26766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
26767         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
26768         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
26769
26770 2010-12-19  Bruno Haible  <bruno@clisp.org>
26771
26772         fseeko: Add missing declaration on OSF/1 5.1.
26773         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
26774         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
26775         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
26776         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
26777         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
26778
26779 2010-12-19  Bruno Haible  <bruno@clisp.org>
26780
26781         fchdir: Add missing declaration on OSF/1 5.1.
26782         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
26783         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
26784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
26785         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
26786         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
26787
26788 2010-12-19  Bruno Haible  <bruno@clisp.org>
26789
26790         relocatable-prog-wrapper: Separate from relocatable-prog.
26791         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
26792         uninstall-relocwrapper rule here.
26793         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
26794         Reported by Ian Beckwith <ianb@erislabs.net>.
26795
26796 2010-12-19  Bruno Haible  <bruno@clisp.org>
26797
26798         unistr/u8-mbsnlen: Add missing dependency.
26799         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
26800         Reported by Ian Beckwith <ianb@erislabs.net>.
26801
26802 2010-12-19  Bruno Haible  <bruno@clisp.org>
26803
26804         iconv: Make it possible again to use this module without 'iconv-h'.
26805         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
26806         if it is not defined.
26807         Reported by Ian Beckwith <ianb@erislabs.net>.
26808
26809 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26810
26811         acl: port to Solaris 8 when copying from tmpfs to ufs
26812         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
26813         error number.  Problem observed on Solaris 8 with latest
26814         coreutils, with "mv A B", where A is on a tmpfs file system and B
26815         is on a ufs file system.  This caused coreutils' mv/part-symlink
26816         test to fail.
26817
26818         tests: set fail=0 at start
26819         * tests/init.sh (setup_): Move fail=0 initialization here ...
26820         (mktempd_): ... from here, so that tests can rely on fail being
26821         set to 0 initially.  This fixes a problem in coreutils; see:
26822         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
26823
26824 2010-12-18  Bruno Haible  <bruno@clisp.org>
26825
26826         memmem-simple: Stylistic changes.
26827         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
26828         Fix preprocessor directive indentation.
26829
26830 2010-12-15  Pádraig Brady <P@draigBrady.com>
26831
26832         memmem, memmem-simple: reorganize and expand empty needle check
26833         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
26834         functional checks to memmem-simple so that one has a fully functional
26835         memmem by using just this module.
26836         Restrict the performance only check to the memmem module.
26837         Also expand the empty needle check to ensure the correct
26838         pointer is returned, not just a non NULL pointer.
26839         * doc/glibc-functions/memmem.texi: Rearrange the portability
26840         documentation to correlate with the rearranged checks.
26841         Clarify exactly how the memmem and memmem-simple modules
26842         relate to each other.
26843
26844 2010-12-15  Pádraig Brady <P@draigBrady.com>
26845             Bruno Haible  <bruno@clisp.org>
26846
26847         Improve cross-compilation guesses for uClibc.
26848         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
26849         that uClibc does not have the glibc bug.
26850         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
26851         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
26852
26853 2010-12-14  Eric Blake  <eblake@redhat.com>
26854
26855         configmake: provide fallbacks for oldest supported autotools
26856         * m4/configmake.m4: New file.
26857         * modules/configmake (Files): Ship it.
26858         (configure.ac): Use it to guarantee fallbacks.
26859
26860 2010-12-13  Pádraig Brady <P@draigBrady.com>
26861
26862         read-file: Improve handling of large files
26863         * lib/read-file.c (fread_file): Minimize realloc()s
26864         for regular files, and better manage sizes around SIZE_MAX.
26865
26866 2010-12-13  Eric Blake  <eblake@redhat.com>
26867
26868         cloexec, fcntl: relax license
26869         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
26870         consent from all contributors.
26871         * modules/fcntl (License): Likewise.
26872
26873 2010-12-10  Bruno Haible  <bruno@clisp.org>
26874
26875         Tests for module 'pipe-posix'.
26876         * modules/pipe-posix-tests: New file.
26877         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
26878
26879 2010-12-10  Bruno Haible  <bruno@clisp.org>
26880
26881         pipe-posix: Make it work in C++ mode.
26882         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
26883         (pipe): Use common idiom, not a macro definition.
26884         * lib/pipe.c: New file.
26885         * m4/pipe.m4: New file.
26886         * modules/pipe-posix (Description): Enhance.
26887         (Files): Add lib/pipe.c, m4/pipe.m4.
26888         (configure.ac): Invoke gl_FUNC_PIPE.
26889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
26890         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
26891         * tests/test-unistd-c++.cc: Check the signature of pipe.
26892
26893 2010-12-10  Bruno Haible  <bruno@clisp.org>
26894
26895         Rename module 'pipe' to 'spawn-pipe'.
26896         * modules/spawn-pipe: New file, renamed from modules/pipe.
26897         (Files, configure.ac, Makefile.am): Update.
26898         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
26899         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
26900         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
26901         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
26902         "spawn-pipe.h" instead of "pipe.h".
26903         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
26904         to gl_SPAWN_PIPE.
26905         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
26906         (Files, Makefile.am): Update.
26907         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
26908         Update.
26909         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
26910         Include "spawn-pipe.h" instead of "pipe.h".
26911         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
26912         * lib/javacomp.c: Likewise.
26913         * lib/javaversion.c: Likewise.
26914         * lib/pipe-filter-gi.c: Likewise.
26915         * lib/pipe-filter-ii.c: Likewise.
26916         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
26917         * modules/javacomp (Depends-on): Likewise.
26918         * modules/javaversion (Depends-on): Likewise.
26919         * modules/pipe-filter-gi (Depends-on): Likewise.
26920         * modules/pipe-filter-ii (Depends-on): Likewise.
26921         * MODULES.html.sh (Executing programs): Update.
26922         * NEWS: Mention the change.
26923
26924 2010-12-10  Eric Blake  <eblake@redhat.com>
26925
26926         pipe-posix: new module
26927         * modules/pipe-posix: New file.
26928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
26929         (gl_UNISTD_H): Check for declaration.
26930         * modules/unistd (Makefile.am): Substitute it.
26931         * lib/unistd.in.h (pipe): Provide it for mingw.
26932         * doc/posix-functions/pipe.texi (pipe): Update documentation.
26933         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
26934
26935 2010-12-07  Bruno Haible  <bruno@clisp.org>
26936
26937         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
26938         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
26939         u8_strcmp_gnu.
26940         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
26941
26942 2010-12-06  Bruno Haible  <bruno@clisp.org>
26943
26944         Update internal documentation.
26945         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
26946
26947 2010-12-04  Bruno Haible  <bruno@clisp.org>
26948
26949         Put more information about failed tests into the test return codes.
26950         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
26951         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
26952         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26953         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26954         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
26955         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26956         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26957         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26958         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
26959         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26960         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
26961         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26962         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
26963         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26964         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
26965         returns a bit mask.
26966         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
26967         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
26968         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
26969         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
26970         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26971         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26972         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26973         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26974         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26975         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26976         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26977         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26978         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26979         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26980         * m4/link.m4 (gl_FUNC_LINK): Likewise.
26981         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26982         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
26983         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
26984         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26985         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
26986         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26987         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26988         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
26989         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26990         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26991         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26992         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
26993         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26994         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26995         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
26996         gl_PRINTF_PRECISION): Likewise.
26997         * m4/regex.m4 (gl_REGEX): Likewise.
26998         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26999         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
27000         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
27001         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27002         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27003         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27004         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
27005         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
27006         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27007         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27008         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27009         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27010         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27011         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
27012         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27013         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27014         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27015         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27016         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27017         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
27018         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
27019         enumerated value.
27020         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
27021
27022 2010-12-04  Bruno Haible  <bruno@clisp.org>
27023
27024         Update for Solaris 11 2010-11.
27025         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
27026         Express, released in November 2010.
27027
27028 2010-12-04  Bruno Haible  <bruno@clisp.org>
27029
27030         nproc: Relax license.
27031         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
27032         and Paul Eggert.
27033         Requested by Ludovic Courtès <ludo@gnu.org>.
27034
27035 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
27036
27037         utimecmp: fine-grained src to nearby coarse-grained dest
27038
27039         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
27040         and the source is on a file system with higher-resolution time
27041         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
27042         not work, and the time stamps are close together, the algorithm to
27043         determine the exact resolution from the read-back mtime was buggy:
27044         it had a "!=" where it should have had an "==".  This bug has been
27045         in the code ever since it was introduced to gnulib.
27046         Problem reported by Dan Jacobson in
27047         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
27048
27049 2010-11-30  Bruno Haible  <bruno@clisp.org>
27050
27051         strerror_r-posix: Fix autoconf test.
27052         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
27053
27054 2010-11-28  Bruno Haible  <bruno@clisp.org>
27055             Paul Eggert  <eggert@cs.ucla.edu>
27056
27057         Tests for module 'getdomainname'.
27058         * modules/getdomainname-tests: New file.
27059         * tests/test-getdomainname.c: New file, based on
27060         tests/test-gethostname.c.
27061
27062 2010-11-28  Bruno Haible  <bruno@clisp.org>
27063             Paul Eggert  <eggert@cs.ucla.edu>
27064
27065         getdomainname: Use the system function when possible.
27066         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
27067         (getdomainname): Replace if needed. Provide the declaration if it is
27068         missing. Don't use _GL_CXXALIAS_SYS_CAST.
27069         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
27070         (getdomainname): When the system has getdomainname, call the system
27071         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
27072         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27073         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
27074         found in libnsl. Look for the declaration also in <netdb.h>. Replace
27075         the function if its second argument is of type 'int' or if it is found
27076         in libnsl.
27077         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
27078         <sys/systeminfo.h> and sysinfo().
27079         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
27080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27081         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
27082         HAVE_GETDOMAINNAME.
27083         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
27084         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
27085         * doc/glibc-functions/getdomainname.texi: Document the problems with
27086         the getdomainname declaration.
27087
27088 2010-11-28  Bruno Haible  <bruno@clisp.org>
27089
27090         sys_socket: Ensure ss_family field on AIX.
27091         * lib/sys_socket.in.h (ss_family): New macro definition.
27092         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
27093         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
27094         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27095         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27096         * modules/sys_socket (Makefile.am): Substitute
27097         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27098         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
27099
27100 2010-11-27  Bruno Haible  <bruno@clisp.org>
27101
27102         readline: Improve configure output.
27103         * m4/readline.m4 (gl_FUNC_READLINE): Make the
27104         "checking for readline..." result understandable.
27105
27106 2010-11-27  Bruno Haible  <bruno@clisp.org>
27107
27108         *printf-posix: Detect a bug on Solaris 10/x86.
27109         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
27110         for floating-point output.
27111         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
27112         directive.
27113         * tests/test-snprintf-posix.h (test_function): Likewise.
27114         * tests/test-sprintf-posix.h (test_function): Likewise.
27115         * tests/test-vasprintf-posix.c (test_function): Likewise.
27116         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
27117         * doc/posix-functions/printf.texi: Likewise.
27118         * doc/posix-functions/snprintf.texi: Likewise.
27119         * doc/posix-functions/sprintf.texi: Likewise.
27120         * doc/posix-functions/vfprintf.texi: Likewise.
27121         * doc/posix-functions/vprintf.texi: Likewise.
27122         * doc/posix-functions/vsnprintf.texi: Likewise.
27123         * doc/posix-functions/vsprintf.texi: Likewise.
27124         * doc/glibc-functions/obstack_printf.texi: Likewise.
27125         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27126
27127 2010-11-27  Bruno Haible  <bruno@clisp.org>
27128
27129         Fix link error when module libunistring-optional is in use.
27130         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
27131         * modules/striconveha-tests (Makefile.am): Likewise.
27132
27133 2010-11-27  Bruno Haible  <bruno@clisp.org>
27134
27135         regex: Mention link dependencies.
27136         * modules/regex (Link): New section.
27137         * modules/rpmatch (Link): Likewise.
27138         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
27139
27140 2010-11-27  Bruno Haible  <bruno@clisp.org>
27141
27142         ftoastr: Fix compilation error on Solaris.
27143         * lib/ftoastr.c: Include <config.h>.
27144
27145 2010-11-27  Bruno Haible  <bruno@clisp.org>
27146
27147         getloadavg: Update documentation.
27148         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
27149
27150 2010-11-27  Bruno Haible  <bruno@clisp.org>
27151
27152         sys_socket: Fix test whether the functions are declared.
27153         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
27154         not <sys/select.h>.
27155
27156 2010-11-27  Bruno Haible  <bruno@clisp.org>
27157
27158         getpass: Make sure to get system declaration on some platforms.
27159         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
27160         gl_USE_SYSTEM_EXTENSIONS.
27161         * modules/getpass (Depends-on): Add extensions.
27162
27163 2010-11-26  Bruno Haible  <bruno@clisp.org>
27164
27165         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
27166         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
27167         'iconv' module is present.
27168         (ICONV_CONST): New macro.
27169         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
27170         ICONV_CONST.
27171         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
27172         set ICONV_CONST.
27173         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
27174         here.
27175         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
27176         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
27177         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
27178         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
27179         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
27180         present.
27181
27182 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27183
27184         ftoastr: comment fix
27185         * lib/ftoastr.c: "little" -> "little or no" in comment
27186
27187 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
27188
27189         stdint: port to GCC 4.3 + OSX + Octave
27190         On this platform, stdint.h is buggy and defines int64_t to long
27191         long int.  The replacement defined it to long int, causing
27192         problems with C++ style name mangling.  Instead, trust the system
27193         definition if INT64_MAX is defined, and likewise for the unsigned
27194         variant.   Problem reported by Jarno Rajahalme in
27195         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
27196         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
27197         and don't mess with int64_t and INT64_MAX in this case.
27198         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
27199
27200 2010-11-24  Bruno Haible  <bruno@clisp.org>
27201
27202         doc: Corrections regarding MacOS X 10.4 and 10.5.
27203         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
27204         MacOS X.
27205         Reported by Simon Josefsson.
27206
27207 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
27208
27209         Uninstall ".bin" files installed by relocwrapper.
27210         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
27211         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
27212         unless it is already there.
27213
27214 2010-11-21  Bruno Haible  <bruno@clisp.org>
27215
27216         Update for NetBSD 5.0.
27217         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27218         NetBSD; the test fails on NetBSD 5.0.
27219         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27220         about NetBSD.
27221
27222 2010-11-21  Bruno Haible  <bruno@clisp.org>
27223
27224         Update for HP-UX 11.23 and HP-UX 11.31.
27225         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
27226         HP-UX.
27227
27228 2010-11-21  Bruno Haible  <bruno@clisp.org>
27229
27230         Update for MacOS X 10.5.
27231         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27232         MacOS X; the test fails on MacOS X 10.5.8.
27233         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27234         about MacOS X.
27235
27236 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
27237
27238         bootstrap: add bootstrap_sync option.
27239         See discussion at
27240         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
27241         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
27242         * build-aux/bootstrap: Accept --bootstrap-sync to update
27243         bootstrap if it is not identical to the local gnulib's
27244         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
27245         enable this by default.  Accept --no-bootstrap-sync to disable
27246         it.
27247
27248 2010-11-20  Bruno Haible  <bruno@clisp.org>
27249
27250         Ensure that <features.h> is included before __GLIBC__ is tested.
27251         * lib/printf-parse.h: Include <features.h>.
27252         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
27253         Reported by Mike Frysinger <vapier@gentoo.org>.
27254
27255         Ensure that <features.h> is included before __GLIBC__ is tested.
27256         * lib/wchar.in.h: Include <features.h>.
27257         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
27258         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
27259         Reported by Mike Frysinger <vapier@gentoo.org>.
27260
27261         Ensure that <features.h> is included before __GLIBC__ is tested.
27262         * lib/arpa_inet.in.h: Include <features.h>.
27263         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
27264         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
27265         Reported by Mike Frysinger <vapier@gentoo.org>.
27266
27267         Ensure that <features.h> is included before __GLIBC__ is tested.
27268         * build-aux/link-warning.h: Include <features.h>.
27269         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
27270         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
27271         Reported by Mike Frysinger <vapier@gentoo.org>.
27272
27273         Ensure that <features.h> is included before __GLIBC__ is tested.
27274         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
27275         Reported by Mike Frysinger <vapier@gentoo.org>.
27276
27277 2010-11-20  Bruno Haible  <bruno@clisp.org>
27278
27279         memmem: Fix autoconf test.
27280         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
27281
27282 2010-11-20  Bruno Haible  <bruno@clisp.org>
27283
27284         Port to uClibc.
27285         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
27286         * lib/fcntl.in.h: Likewise.
27287         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
27288         * lib/mbrtowc.c (mbrtowc): Likewise.
27289         * lib/relocatable.c (find_shared_library_fullname): Likewise.
27290         * lib/strerror_r.c: Likewise.
27291         * lib/unistr/u8-strnlen.c: Likewise.
27292         * lib/vasnprintf.c (decimal_point_char): Likewise.
27293         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27294         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27295         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27296         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27297         * tests/test-sigaction.c (handler, main): Likewise.
27298         * lib/freading.h: Treat uClibc like a non-glibc platform.
27299         * lib/freading.c: Likewise.
27300         * lib/gettext.h: Likewise.
27301         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
27302         Likewise.
27303         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
27304         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
27305         * lib/propername.c (proper_name_utf8): Likewise.
27306         * lib/spawn.in.h: Likewise.
27307         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
27308         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
27309         mem_cd_iconveh_internal): Likewise.
27310         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
27311         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27312         strstr, strcasestr): Likewise.
27313         * lib/unicodeio.c (unicode_to_mb): Likewise.
27314         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
27315         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
27316         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
27317         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
27318         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
27319         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
27320         * lib/unistr/u8-stpncpy.c: Likewise.
27321         * lib/vasnprintf.c (VASNPRINTF): Likewise.
27322         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
27323         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27324         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27325         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27326         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
27327         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
27328         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
27329         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
27330         Likewise.
27331         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27332         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27333         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27334         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27335         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27336         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27337         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27338         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
27339         * tests/test-getopt.h (OPTIND_MIN): Likewise.
27340         * tests/test-striconveha.c (main): Likewise.
27341         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27342         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
27343         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
27344         * doc/posix-functions/getline.texi: Likewise.
27345         Reported by Mike Frysinger <vapier@gentoo.org>.
27346
27347 2010-11-20  Bruno Haible  <bruno@clisp.org>
27348
27349         nproc: Fix condition.
27350         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
27351         HAVE_PTHREAD_AFFINITY_NP.
27352
27353 2010-11-20  Bruno Haible  <bruno@clisp.org>
27354
27355         Fix a comment.
27356         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
27357
27358 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
27359
27360         ftoastr: don't assume snprintf
27361         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
27362         Implement a subset of snprintf here, by using sprintf safely.
27363         * modules/ftoastr (Depends-on): Remove snprintf.
27364
27365 2010-11-19  Jim Meyering  <meyering@redhat.com>
27366
27367         test-rename.h: fix compilation failure
27368         * tests/test-rename.h (test_rename): Add omitted "}".
27369
27370 2010-11-17  Jim Meyering  <meyering@redhat.com>
27371
27372         maint.mk: add a URL discussing the no-@acronym policy
27373         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
27374
27375 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
27376
27377         ftoastr: depend on snprintf, improve comments
27378         * lib/ftoastr.c: Also mention Loitsch's draft.
27379         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
27380         needed in the current implementation, but it might simplify
27381         speeding up the code later.
27382         * modules/ftoastr: Depend on snprintf; this improves portability.
27383         Suggested by Bruno Haible in the same email.
27384
27385         ftoastr: port to hosts lacking strtof and strtold
27386         Problem reported by Bruno Haible in
27387         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
27388         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
27389         environment and strtold (and presumably strtof) are not available.
27390         * modules/ftoastr (Files): Add m4/c-strtod.m4.
27391         (configure.ac): Require gl_C99_STRTOLD.
27392
27393 2010-11-18  Bruno Haible  <bruno@clisp.org>
27394
27395         c-strtold: Avoid link error on AIX 7.
27396         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
27397         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
27398         (gl_C_STRTOLD): Test whether strtold_l exists.
27399         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27400
27401 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27402
27403         intprops: new macro INT_BITS_STRLEN_BOUND
27404         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
27405         ftoastr.h.  This exposes an internal of intprops.h that was formerly
27406         not exposed.  Also, it uses a slightly tighter bound than before;
27407         though this makes no practical difference, we might as well be as
27408         tight as we easily can.
27409
27410         ftoastr: new module, for lossless conversion of floats to short strings
27411         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
27412         * modules/ftoastr: New files.
27413
27414 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27415
27416         bootstrap: port to Solaris sed
27417         * build-aux/bootstrap (get_version): Port to Solaris sed.
27418         See Ralf Wildenhues's note in
27419         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
27420
27421 2010-11-14  Jim Meyering  <meyering@redhat.com>
27422
27423         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
27424         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
27425         and move definition closer to sole use.
27426
27427 2010-11-13  Jim Meyering  <meyering@redhat.com>
27428
27429         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
27430         Now we require at least autoconf-2.59, which means the work-around
27431         is no longer needed.
27432         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
27433         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27434         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
27435         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
27436         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
27437
27438 2010-11-13  Bruno Haible  <bruno@clisp.org>
27439
27440         rename, renameat: Avoid test failures at NFS mounted locations.
27441         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
27442         functions.
27443         (test_rename): Use assert_nonexistent.
27444         * tests/test-rename.c: Include <dirent.h>.
27445         * tests/test-renameat.c: Likewise.
27446         Reported by Gary V. Vaughan <gary@gnu.org>.
27447
27448         rename, renameat: Document Linux bug with NFS
27449         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
27450         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
27451         * doc/posix-functions/renameat.texi: Likewise.
27452         Suggested by Eric Blake.
27453
27454 2010-11-13  Bruno Haible  <bruno@clisp.org>
27455
27456         rename test: Add comments.
27457         * tests/test-rename.h (test_rename): Add structure and comments.
27458
27459 2010-11-13  Eric Blake  <eblake@redhat.com>
27460
27461         maintainer-makefile: cover a few more files
27462         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
27463         scripts generated within C files, for libvirt.
27464
27465 2010-11-13  Bruno Haible  <bruno@clisp.org>
27466
27467         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
27468         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
27469         character, return the number of bytes that belong together, not always
27470         1.
27471         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
27472         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
27473         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
27474         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
27475         number of bytes of an invalid character.
27476         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
27477         (main): Invoke it.
27478         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
27479         results.
27480         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
27481         malformed byte sequences.
27482         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
27483         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
27484         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
27485         Reported by Ben Pfaff and Paolo Bonzini.
27486
27487 2010-11-13  Bruno Haible  <bruno@clisp.org>
27488
27489         openat: Work around glibc bug with fchownat() and empty file names.
27490         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
27491         (gl_FUNC_FCHOWNAT): Invoke it.
27492         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
27493         * doc/posix-functions/fchownat.texi: Document the glibc bug.
27494         Reported by Gary V. Vaughan <gary@gnu.org>.
27495
27496 2010-11-13  Bruno Haible  <bruno@clisp.org>
27497
27498         openat: Ensure autoconf macro ordering.
27499         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
27500         gl_USE_SYSTEM_EXTENSIONS.
27501         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
27502
27503 2010-11-13  Bruno Haible  <bruno@clisp.org>
27504
27505         Update comments.
27506         * lib/unistr/u8-check.c: Update file name in comments.
27507         * lib/unistr/u8-mblen.c: Likewise.
27508         * lib/unistr/u8-prev.c: Likewise.
27509         * lib/unistr/u8-strmblen.c: Likewise.
27510         * lib/unistr/u8-strmbtouc.c: Likewise.
27511
27512 2010-11-13  Jim Meyering  <meyering@redhat.com>
27513
27514         tests: avoid test failure on Solaris 10 due to lack of PATH export
27515         * tests/test-update-copyright.sh: Don't forget to export PATH.
27516
27517         init.sh: ensure that IFS is defined, just in case...
27518         * tests/init.sh (setup_): Ensure that IFS is defined,
27519         so that saving and restoring it works as expected.  This
27520         appears to be useful at least for an old version of dash
27521         from a long time ago (RH 6).  See here for details:
27522         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
27523
27524         maint.mk: tighten "test a == b" check
27525         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
27526         test to files that contain something like #!/bin/sh.
27527         Without this, coreutils would get two false positives in
27528         the comments of C source files.
27529
27530 2010-11-12  Eric Blake  <eblake@redhat.com>
27531
27532         bootstrap: fix typo in previous attempt
27533         * build-aux/bootstrap (buildreq): Correct the grouping.
27534         Reported by Paul Eggert.
27535
27536         maintainer-makefile: prohibit test x == x
27537         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
27538         Based on a report by Matthias Bolte.
27539
27540         bootstrap: allow FreeBSD gzip
27541         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
27542         which has no '.' and goes to stderr.
27543         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
27544         Reported by Matthias Bolte.
27545
27546         maintainer-makefile: check for i18n setup
27547         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
27548         will likely work.
27549
27550 2010-11-12  Bruno Haible  <bruno@clisp.org>
27551
27552         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
27553         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
27554         * lib/nanosleep.c (nanosleep): Likewise.
27555
27556 2010-11-11  Bruno Haible  <bruno@clisp.org>
27557
27558         fcntl-h: Fix for use of C++ on glibc systems.
27559         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27560         also on glibc systems in C++ mode.
27561         Reported by Gary V. Vaughan <gary@gnu.org>.
27562
27563 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27564
27565         mknod: avoid false failure with dash
27566         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
27567
27568 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
27569
27570         unlink: Fix "is it should" typo in diagnostic.
27571         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
27572         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
27573
27574 2010-11-11  Bruno Haible  <bruno@clisp.org>
27575
27576         Tests for module 'strerror_r-posix'.
27577         * modules/strerror_r-posix-tests: New file.
27578         * tests/test-strerror_r.c: New file.
27579         * tests/test-string-c++.cc: Check the signature of strerror_r.
27580
27581         New module 'strerror_r-posix'.
27582         * lib/string.in.h (strerror_r): New declaration.
27583         * lib/strerror_r.c: New file.
27584         * m4/strerror_r.m4: New file.
27585         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
27586         of strerror_r.
27587         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
27588         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27589         * modules/strerror_r-posix: New file.
27590         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
27591         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27592         * doc/posix-functions/strerror_r.texi: Mention the new module and the
27593         portability problems.
27594
27595 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
27596
27597         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
27598         line is also considered for output. Quoted function name in shell
27599         command, so temporary files for functions like MyClass::operator()
27600         are removed correctly without errors.
27601
27602 2010-11-09  Bruno Haible  <bruno@clisp.org>
27603
27604         * doc/posix-functions/strerror.texi: List more failing platforms.
27605
27606         * doc/posix-functions/strerror.texi: Add a comment.
27607
27608 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
27609
27610         fdopendir: fix bug on MacOS X when low on file descriptors
27611
27612         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
27613         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
27614         All callers changed.
27615         (fdopendir): Invoke save_cwd at the top level, not after using
27616         multiple dup() calls to use up file descriptors.  Then retry
27617         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
27618         less than the maximum number of open file descriptors, because
27619         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
27620         on Mac OS X 10.6.4 for tar 1.24
27621         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
27622         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
27623         and for tar 1.25
27624         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
27625
27626 2010-11-07  Bruno Haible  <bruno@clisp.org>
27627
27628         vasnprintf: Support I flag on glibc systems.
27629         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
27630         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
27631         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
27632         snprintf function.
27633         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
27634         glibc systems.
27635         * tests/test-vasnprintf-posix3.c: New file.
27636         * modules/vasnprintf-posix-tests (Files): Add it.
27637         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
27638
27639 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27640
27641         [html] Fix copy/paste bug: Use unique name for compiler warnings.
27642         * MODULES.html.sh: For compiler warnings, use name
27643         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
27644
27645 2010-11-05  Eric Blake  <eblake@redhat.com>
27646
27647         ceil, floor: avoid spurious failure with icc
27648         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
27649         [denormals-as-zero] when optimizing without -mieee-fp option.
27650         * tests/test-floorf2.c (floorf_reference): Likewise.
27651         * tests/test-ceilf1.c (dummy): New function.
27652         (main): Use it to outsmart icc's optimization.
27653         * tests/test-floorf1.c (dummy, main): Likewise.
27654
27655         tests: require working signbit
27656         * modules/ceilf-tests (Depends-on): Add signbit.
27657         * modules/ceill-tests (Depends-on): Likewise.
27658         * modules/floorf-tests (Depends-on): Likewise.
27659         * modules/floorl-tests (Depends-on): Likewise.
27660         * modules/round-tests (Depends-on): Likewise.
27661         * modules/roundf-tests (Depends-on): Likewise.
27662         * modules/roundl-tests (Depends-on): Likewise.
27663         * modules/trunc-tests (Depends-on): Likewise.
27664         * modules/truncf-tests (Depends-on): Likewise.
27665         * modules/truncl-tests (Depends-on): Likewise.
27666
27667         strtod: work around icc bug
27668         * lib/strtod.c (minus_zero): Define to working value.
27669         (strtod): Use it to avoid icc bug.
27670
27671         copysign: enhance tests
27672         * modules/copysign-tests (Files): Add minus-zero.h.
27673         * tests/test-copysign.c (main): Also test zeros.
27674
27675 2010-11-04  Eric Blake  <eblake@redhat.com>
27676
27677         ceil, floor, round, trunc: enhance tests of -0
27678         * tests/test-ceilf1.c (main): Ensure correct sign of result.
27679         * tests/test-ceill.c (main): Likewise.
27680         * tests/test-floorf1.c (main): Likewise.
27681         * tests/test-floorl.c (main): Likewise.
27682         * tests/test-round1.c (main): Likewise.
27683         * tests/test-roundf1.c (main): Likewise.
27684         * tests/test-roundl.c (main): Likewise.
27685         * tests/test-trunc1.c (main): Likewise.
27686         * tests/test-truncf1.c (main): Likewise.
27687         * tests/test-truncl.c (main): Likewise.
27688
27689 2010-11-04  Eric Blake  <eblake@redhat.com>
27690
27691         frexp, tests: work around ICC bug with -zero
27692         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
27693         works with more compilers.
27694         * tests/minus-zero.h: New file.
27695         * modules/ceilf-tests (Files): Include it.
27696         * modules/ceill-tests (Files): Likewise.
27697         * modules/floorf-tests (Files): Likewise.
27698         * modules/floorl-tests (Files): Likewise.
27699         * modules/frexp-nolibm-tests (Files): Likewise.
27700         * modules/frexp-tests (Files): Likewise.
27701         * modules/frexpl-nolibm-tests (Files): Likewise.
27702         * modules/frexpl-tests (Files): Likewise.
27703         * modules/isnan-tests (Files): Likewise.
27704         * modules/isnand-nolibm-tests (Files): Likewise.
27705         * modules/isnand-tests (Files): Likewise.
27706         * modules/isnanf-nolibm-tests (Files): Likewise.
27707         * modules/isnanf-tests (Files): Likewise.
27708         * modules/isnanl-nolibm-tests (Files): Likewise.
27709         * modules/isnanl-tests (Files): Likewise.
27710         * modules/round-tests (Files): Likewise.
27711         * modules/roundf-tests (Files): Likewise.
27712         * modules/roundl-tests (Files): Likewise.
27713         * modules/ldexpl-tests (Files): Likewise.
27714         * modules/signbit-tests (Files): Likewise.
27715         * modules/snprintf-posix-tests (Files): Likewise.
27716         * modules/sprintf-posix-tests (Files): Likewise.
27717         * modules/strtod-tests (Files): Likewise.
27718         * modules/trunc-tests (Files): Likewise.
27719         * modules/truncf-tests (Files): Likewise.
27720         * modules/truncl-tests (Files): Likewise.
27721         * modules/vsnprintf-posix-tests (Files): Likewise.
27722         * modules/vsprintf-posix-tests (Files): Likewise.
27723         * modules/vasnprintf-posix-tests (Files): Likewise.
27724         * modules/vasprintf-posix-tests (Files): Likewise.
27725         * tests/test-ceilf1.c (main): Use it.
27726         * tests/test-ceill.c (main): Likewise.
27727         * tests/test-floorf1.c (main): Likewise.
27728         * tests/test-floorl.c (main): Likewise.
27729         * tests/test-frexp.c (main): Likewise.
27730         * tests/test-frexpl.c (main): Likewise.
27731         * tests/test-isnan.c (main): Likewise.
27732         * tests/test-isnand.h (main): Likewise.
27733         * tests/test-isnanf.h (main): Likewise.
27734         * tests/test-isnanl.h (main): Likewise.
27735         * tests/test-ldexpl.c (main): Likewise.
27736         * tests/test-round.c (main): Likewise.
27737         * tests/test-roundf.c (main): Likewise.
27738         * tests/test-roundl.c (main): Likewise.
27739         * tests/test-signbit.c (test_signbitf, test_signbitd)
27740         (test_signbitl): Likewise.
27741         * tests/test-snprintf-posix.h (test_function): Likewise.
27742         * tests/test-sprintf-posix.h (test_function): Likewise.
27743         * tests/test-strtod.c (main): Likewise.
27744         * tests/test-trunc1.c (main): Likewise.
27745         * tests/test-truncf1.c (main): Likewise.
27746         * tests/test-truncl.c (main): Likewise.
27747
27748         isnanl: work around icc bug
27749         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
27750
27751 2010-11-03  Eric Blake  <eblake@redhat.com>
27752
27753         tests: fix compiler warnings
27754         * tests/test-getopt.h (test_getopt): Fix condition.
27755         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27756         * tests/test-pipe2.c (main): Likewise.
27757         * tests/test-quotearg-simple.c (main): Avoid icc warning.
27758
27759         utimens: fix broken m4 test
27760         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
27761
27762 2010-10-28  Bruno Haible  <bruno@clisp.org>
27763
27764         posix_spawn*, getdtablesize: Relax license.
27765         * modules/posix_spawn (License): Change to LGPLv2+.
27766         * modules/posix_spawnp (License): Likewise.
27767         * modules/posix_spawn-internal (License): Likewise.
27768         * modules/posix_spawnattr_init (License): Likewise.
27769         * modules/posix_spawnattr_getflags (License): Likewise.
27770         * modules/posix_spawnattr_setflags (License): Likewise.
27771         * modules/posix_spawnattr_getpgroup (License): Likewise.
27772         * modules/posix_spawnattr_setpgroup (License): Likewise.
27773         * modules/posix_spawnattr_getschedparam (License): Likewise.
27774         * modules/posix_spawnattr_setschedparam (License): Likewise.
27775         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
27776         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
27777         * modules/posix_spawnattr_getsigdefault (License): Likewise.
27778         * modules/posix_spawnattr_setsigdefault (License): Likewise.
27779         * modules/posix_spawnattr_getsigmask (License): Likewise.
27780         * modules/posix_spawnattr_setsigmask (License): Likewise.
27781         * modules/posix_spawnattr_destroy (License): Likewise.
27782         * modules/posix_spawn_file_actions_init (License): Likewise.
27783         * modules/posix_spawn_file_actions_addclose (License): Likewise.
27784         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
27785         * modules/posix_spawn_file_actions_addopen (License): Likewise.
27786         * modules/posix_spawn_file_actions_destroy (License): Likewise.
27787         * modules/getdtablesize (License): Likewise.
27788         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
27789
27790 2010-10-26  Bruno Haible  <bruno@clisp.org>
27791
27792         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
27793         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
27794         Cygwin and mingw.
27795         Suggested by Eric Blake.
27796
27797 2010-10-26  Bruno Haible  <bruno@clisp.org>
27798
27799         stdio: Work around compilation error due to renameat() on Solaris 10.
27800         * lib/stdio.in.h: Include <unistd.h> on Solaris.
27801         * lib/renameat.c: Don't include <unistd.h> here.
27802         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
27803         Reported by Paul Eggert and Eric Blake.
27804
27805 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27806
27807         renameat: port to Solaris 10, which declares renameat in unistd.h
27808
27809         * lib/renameat.c: Include unistd.h before stdio.h, because
27810         Solaris 10 declares renameat in unistd.h.  Problem encountered
27811         when building GNU tar 1.24 on Solaris 10.
27812
27813 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27814
27815         fdopendir: fix C89 compilation
27816         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
27817         compilers.
27818
27819 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
27820
27821         inttostr: simplify by removing unnecessary redundancy
27822         * lib/anytostr.c: Don't include verify.h.
27823         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
27824         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
27825         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
27826         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
27827         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
27828         Likewise.
27829         * modules/inttostr (Depends-on): Remove 'verify'.
27830
27831 2010-10-23  Bruno Haible  <bruno@clisp.org>
27832
27833         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
27834         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
27835         Reported by Eric Blake.
27836
27837 2010-10-23  Bruno Haible  <bruno@clisp.org>
27838
27839         Tests: Fix LOCALE_JA on MirBSD 10.
27840         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
27841         to an UTF-8 locale.
27842         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
27843         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27844         Reported by Eric Blake.
27845
27846 2010-10-21  Bruno Haible  <bruno@clisp.org>
27847
27848         nl_langinfo test: Avoid test failure on NetBSD 5.
27849         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
27850         Reported by Eric Blake.
27851
27852 2010-10-21  Eric Blake  <eblake@redhat.com>
27853
27854         c-stack: work around libsigsegv 2.8 bug
27855         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
27856         overflow on at least PowerPC64.
27857
27858 2010-10-17  Bruno Haible  <bruno@clisp.org>
27859
27860         userspec: Drop redundant file.
27861         * modules/userspec (Files): Remove lib/inttostr.h.
27862
27863 2010-10-17  Bruno Haible  <bruno@clisp.org>
27864
27865         nl_langinfo tests: Silence some warnings.
27866         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
27867         Reported by Jim Meyering.
27868
27869 2010-10-17  Bruno Haible  <bruno@clisp.org>
27870
27871         Make use of GCC's attribute __alloc_size__.
27872         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
27873         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
27874         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
27875         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
27876         __alloc_size__.
27877         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
27878         Suggested by Jim Meyering.
27879
27880 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
27881
27882         bootstrap: anchor .gitignore entries.
27883         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
27884         with...
27885         (insert_vc_ignore): ... this new function, which prepends `/' to
27886         all .gitignore entries before passing them to
27887         insert_sorted_if_absent.
27888
27889 2010-10-16  Bruno Haible  <bruno@clisp.org>
27890
27891         nextafter: Fix configure check.
27892         * modules/nextafter (configure.ac): Correct expected prototype.
27893
27894 2010-10-16  Bruno Haible  <bruno@clisp.org>
27895
27896         termios: Update documentation.
27897         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
27898
27899 2010-10-16  Bruno Haible  <bruno@clisp.org>
27900
27901         tests: Make them compile with TinyCC.
27902         * tests/test-strstr.c (main): Remove parentheses around array
27903         initializer.
27904
27905 2010-10-15  Eric Blake  <eblake@redhat.com>
27906
27907         ignore-value: make header idempotent
27908         * lib/ignore-value.h: Add double-inclusion guards.
27909         Reported by Stefan Berger.
27910
27911 2010-10-15  Jim Meyering  <meyering@redhat.com>
27912
27913         GNUmakefile: handle "stable" target, not "major"
27914         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
27915         lists in maint.mk and announce-gen.  Without this, "make stable"
27916         would fail to ensure that $(VERSION) is up to date.
27917
27918 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
27919
27920         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
27921         & co.
27922
27923 2010-10-14  Bruno Haible  <bruno@clisp.org>
27924
27925         vasnprintf: Don't set errno to 0.
27926         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
27927         block that sets it to 0.
27928         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
27929
27930 2010-10-14  Bruno Haible  <bruno@clisp.org>
27931
27932         socketlib: Fix.
27933         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
27934         gl_PREREQ_SYS_H_WINSOCK2.
27935         Reported by Ian Beckwith <ianb@erislabs.net>.
27936
27937 2010-10-13  Jim Meyering  <meyering@redhat.com>
27938
27939         test-select-stdin.c: avoid warn_unused_result warnings
27940         * tests/test-select-stdin.c: Include "macros.h".
27941         ASSERT that read and fflush succeed.
27942
27943 2010-10-13  Jim Meyering  <meyering@redhat.com>
27944
27945         git-version-gen: do require git-VC'd files in cwd
27946         * build-aux/git-version-gen: Reject a git version string
27947         if there are no commits associated with the current directory.
27948         This avoids an unlikely false-positive (unrelated dir whose parent
27949         repository also contains a tag matching v*), as pointed out
27950         by Giuseppe Scrivano in
27951         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
27952
27953 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27954
27955         argv-iter: omit nonconforming declaration
27956         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
27957         enum arg_iter_err declaration, which doesn't conform to C99.
27958         Solaris 10 cc warns about this.
27959
27960 2010-10-13  Eric Blake  <eblake@redhat.com>
27961
27962         termios: fix compilation on mingw
27963         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
27964         (gl_TERMIOS_H): Adjust it on mingw.
27965         * modules/termios (Makefile.am): Substitute new key.
27966         * lib/termios.in.h (includes): Make include_next conditional.
27967         * doc/posix-headers/termios.texi (termios.h): Update
27968         documentation.
27969         Reported by Daniel P. Berrange.
27970
27971 2010-10-13  Jim Meyering  <meyering@redhat.com>
27972
27973         git-version-gen: don't require that .git/ be in the current dir
27974         * build-aux/git-version-gen: Adjust this script so that it works
27975         when run from any working directory beneath the top-level .git/-
27976         containing directory.  Inspired by a patch from Giuseppe Scrivano,
27977         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
27978
27979         test-select: avoid warn_unused_result warnings
27980         * tests/test-select.c: Include "macros.h".
27981         ASSERT that each call to read, write, and pipe succeeds.
27982         While not technically required, also check each "close".
27983         * modules/select-tests (Files): Add tests/macros.h.
27984
27985         test-symlinkat: remove declaration of unused local
27986         * tests/test-symlinkat.c (main): Remove unused local, "buf".
27987
27988         test-inttostr: avoid shadowing warnings
27989         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
27990         and use malloc rather than the stack for the same reason as
27991         mentioned in the comment justifying the other allocation.
27992
27993 2010-10-11  Bruno Haible  <bruno@clisp.org>
27994
27995         stdlib: Allow multiple gnulib generated replacements to coexist.
27996         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
27997         Reported by Sam Steingold <sds@gnu.org>.
27998
27999 2010-10-11  Jim Meyering  <meyering@redhat.com>
28000
28001         fix a documentation typo
28002         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
28003
28004 2010-10-11  Eric Blake  <eblake@redhat.com>
28005
28006         futimens: work around Solaris 11 bug
28007         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
28008         * tests/test-futimens.h (test_futimens): Enhance, rather than
28009         weaken test.
28010         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28011
28012 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28013
28014         Indentation.
28015         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
28016         higher-level operators more to the left.
28017
28018 2010-10-11  Jim Meyering  <meyering@redhat.com>
28019
28020         test-futimens: avoid unwarranted test failure on Solaris 5.11
28021         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
28022         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
28023         because it tries to dereference the NULL name argument.
28024
28025 2010-10-11  Bruno Haible  <bruno@clisp.org>
28026
28027         Indentation.
28028         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
28029         indentation.
28030
28031 2010-10-11  Jim Meyering  <meyering@redhat.com>
28032
28033         spawn.in.h: make indentation consistent with parentheses
28034         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
28035         Make indentation consistent with parentheses.
28036
28037 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
28038
28039         Fix mismatched parens in previous commit
28040         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
28041         parens.
28042
28043 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28044
28045         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
28046
28047         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
28048         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
28049         * lib/malloca.c: Include "verify.h".
28050         (verify1): Remove, replacing with a verify call.
28051         * lib/relocwrapper.c (verify1): Likewise.
28052         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
28053         Likewise.
28054         * modules/malloca (Depends-on): Add 'verify'.
28055         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
28056         * modules/vasnprintf (Depends-on): Add 'verify'.
28057         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28058         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28059         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28060         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28061         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28062         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28063         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28064
28065         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
28066
28067         Formerly the style was sometimes 2*X - 1, because the C standard
28068         was wrongly thought to disallow ?: in integral constant expressions.
28069         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
28070         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
28071         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
28072         * lib/stdint.in.h (_verify_intmax_size): Likewise.
28073         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
28074         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
28075         verify that time_t cannot be floating.
28076
28077 2010-10-08  Eric Blake  <eblake@redhat.com>
28078
28079         time: enforce recent POSIX ruling that time_t is integral
28080         * lib/time.in.h (__time_t_must_be_integral): Detect any
28081         problematic systems, allowing the rest of gnulib to assume POSIX.
28082
28083 2010-10-08  Jim Meyering  <meyering@redhat.com>
28084
28085         fdopendir: fix a bug on systems lacking openat and /proc support
28086         OpenBSD 4.7 is one such system.  The most noticeable effect was
28087         failure of any application making nontrivial use of fts: rm, du,
28088         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
28089           ./rm: traversal failed: `a': Bad file descriptor
28090         Debugging that, you see that even though FD 6 was closed just
28091         prior to the opendir call in fd_clone_opendir, its resulting
28092         dir->dd_fd was 8, rather than the expected value of 6:
28093
28094         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
28095         93                close (fd);
28096         (gdb) n
28097         94                dir = fd_clone_opendir (dupfd);
28098         (gdb) n
28099         95                saved_errno = errno;
28100         (gdb) p dir->dd_fd
28101         $11 = 8
28102
28103         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
28104         The problem is that on OpenBSD, fd_clone_opendir has to resort
28105         to using the old-style save/restore CWD mechanism, due to its
28106         lack of openat/proc support, and *that* would steal the FD (6)
28107         that opendir was supposed to use.
28108
28109         The fix is to squirrel away the desired FD so that save_cwd uses a
28110         different one, and then free the dest FD right before calling opendir.
28111         That guarantees opendir will use the required file descriptor.
28112
28113         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
28114
28115 2010-10-08  Bruno Haible  <bruno@clisp.org>
28116
28117         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
28118         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
28119
28120 2010-10-08  Bruno Haible  <bruno@clisp.org>
28121
28122         nanosleep: Make replacement POSIX compliant.
28123         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
28124         is out of range.
28125         Reported by Jim Meyering.
28126
28127 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28128
28129         bootstrap: add hook for altering gnulib.mk, for Bison
28130         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
28131         the Bison bootstrapping process can rewrite file names and variables
28132         in this file before later parts of 'bootstrap' use the file.
28133         Bison wants to include lib/gnulib.mk from the top-level makefile,
28134         so it needs the file names in this file to be relative to the top
28135         level, not relative to lib; plus it needs variable names to be
28136         rewritten.
28137         (slurp): Use the new function.
28138
28139         bootstrap: reformat for readability
28140         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
28141
28142 2010-10-08  Eric Blake  <eblake@redhat.com>
28143
28144         docs: update cygwin progress
28145         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
28146         1.7.7.
28147         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
28148         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
28149         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
28150         * doc/posix-functions/carg.texi (carg): Likewise.
28151         * doc/posix-functions/cargf.texi (cargf): Likewise.
28152         * doc/posix-functions/casin.texi (casin): Likewise.
28153         * doc/posix-functions/casinf.texi (casinf): Likewise.
28154         * doc/posix-functions/casinh.texi (casinh): Likewise.
28155         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
28156         * doc/posix-functions/catan.texi (catan): Likewise.
28157         * doc/posix-functions/catanf.texi (catanf): Likewise.
28158         * doc/posix-functions/catanh.texi (catanh): Likewise.
28159         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
28160         * doc/posix-functions/ccos.texi (ccos): Likewise.
28161         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
28162         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
28163         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
28164         * doc/posix-functions/cexp.texi (cexp): Likewise.
28165         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
28166         * doc/posix-functions/cimag.texi (cimag): Likewise.
28167         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
28168         * doc/posix-functions/clog.texi (clog): Likewise.
28169         * doc/posix-functions/clogf.texi (clogf): Likewise.
28170         * doc/posix-functions/conj.texi (conj): Likewise.
28171         * doc/posix-functions/conjf.texi (conjf): Likewise.
28172         * doc/posix-functions/cpow.texi (cpow): Likewise.
28173         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
28174         * doc/posix-functions/cproj.texi (cproj): Likewise.
28175         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
28176         * doc/posix-functions/creal.texi (creal): Likewise.
28177         * doc/posix-functions/crealf.texi (crealf): Likewise.
28178         * doc/posix-functions/csin.texi (csin): Likewise.
28179         * doc/posix-functions/csinf.texi (csinf): Likewise.
28180         * doc/posix-functions/csinh.texi (csinh): Likewise.
28181         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
28182         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
28183         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
28184         * doc/posix-functions/ctan.texi (ctan): Likewise.
28185         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
28186         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
28187         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
28188         * doc/posix-headers/complex.texi (complex.h): Likewise.
28189
28190 2010-10-07  Jim Meyering  <meyering@redhat.com>
28191
28192         parse-datetime: avoid compilation failure on OpenBSD 4.7
28193         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
28194         This works around a compilation failure on OpenBSD 4.7:
28195         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
28196
28197 2010-10-07  Eric Blake  <eblake@redhat.com>
28198
28199         docs: update cygwin progress
28200         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
28201         1.7.6.
28202         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28203         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
28204         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
28205         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
28206         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
28207         Likewise.
28208         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
28209         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
28210         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
28211         Likewise.
28212         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
28213         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
28214         Likewise.
28215         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
28216         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
28217         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
28218         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
28219         Likewise.
28220         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
28221         Likewise.
28222         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
28223
28224         docs: update parse-datetime history
28225         * doc/parse-datetime.texi (Authors of parse_datetime): Better
28226         documentation of this function's history and alternatives.
28227
28228         cygwin: use more robust version check
28229         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
28230         exclude an eventual cygwin 1.9.1.
28231         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28232         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28233         (gl_FUNC_STRCASESTR): Likewise.
28234         Reported by Bruno Haible.
28235
28236 2010-10-06  Bruno Haible  <bruno@clisp.org>
28237
28238         string, sys_select: Avoid #including large headers unless necessary.
28239         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
28240         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
28241         OSF/1, BeOS, Haiku.
28242         Reported by Jim Meyering.
28243
28244 2010-10-05  Eric Blake  <eblake@redhat.com>
28245
28246         memmem, strstr, strcasestr: fix bug with long periodic needle
28247         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
28248         periodic needle having false positive.
28249         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
28250         and cygwin 1.7.7.
28251         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
28252         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28253         (gl_FUNC_STRCASESTR): Likewise.
28254         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28255         * tests/test-memmem.c (main): Expose the bug.
28256         * tests/test-strcasestr.c (main): Likewise.
28257         * tests/test-strstr.c (main): Likewise.
28258         * tests/test-c-strcasestr.c (main): Likewise.
28259         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
28260         * doc/posix-functions/strstr.texi (strstr): Likewise.
28261         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28262         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
28263
28264 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28265
28266         parse-datetime: do some more renaming
28267         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
28268         parse_datetime, not get_date.  Mention the renaming.
28269         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
28270         in comments.
28271         * m4/bison.m4: Likewise.
28272
28273 2010-10-05  Eric Blake  <eblake@redhat.com>
28274
28275         parse-datetime: better name than get_date
28276         * NEWS: Reword the deprecation notice.
28277         * modules/get_date: Rename to modules/parse-datetime.
28278         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
28279         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
28280         * lib/get_date.y: Rename to lib/parse-datetime.y.
28281         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
28282         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
28283         * doc/getdate.texi: Provide fallback wrapper.
28284         * lib/getdate.h: Move guts, and wrap...
28285         * lib/parse-datetime.h: ...new file.
28286         * lib/parse-datetime.y (get_date): Rename...
28287         (parse_datetime): ...to this.
28288         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
28289         (gl_PARSE_DATETIME): ...to this.
28290         * doc/posix-functions/getdate.texi (get_date): Provide fallback
28291         documentation.
28292         * modules/getdate (Files): Provide fallback docs and header.
28293         (Notice, Depends-on): Update references.
28294         * tests/test-parse-datetime.c: Likewise.
28295         * DEPENDENCIES: Likewise.
28296         * MODULES.html.sh (Date and time <time.h>): Likewise.
28297         * doc/parse-datetime.texi (Date input formats)
28298         (Authors of parse_datetime): Likewise.
28299         * modules/parse-datetime (Files, configure.ac, Makefile.am)
28300         (Include): Likewise.
28301         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
28302         * gnulib-tool: Likewise.
28303         * m4/bison.m4 (gl_BISON): Likewise.
28304         Suggested by Bruno Haible.
28305
28306 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28307
28308         more ports to Solaris tr, which needs [] around ranges
28309         * gnulib-tool: Solaris tr needs [] around ranges.
28310         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28311         * tests/test-pipe-filter-gi1.c (main): Likewise.
28312         * tests/test-pipe-filter-ii1.c (main): Likewise.
28313
28314 2010-10-05  Eric Blake  <eblake@redhat.com>
28315
28316         bootstrap: fix Solaris regression
28317         * build-aux/bootstrap (check_versions): Solaris tr still needs []
28318         around ranges.
28319         Reported by Pádraig Brady.
28320
28321         bootstrap: work with pkg-config
28322         * build-aux/bootstrap (check_versions): Also transliterate - in
28323         prerequisite name.
28324         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
28325         prerequisites that were already found, to avoid confusion.
28326         Reported by Justin Clift.
28327
28328         faccessat: remove unused wrappers
28329         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
28330         presence of these wrappers dragged in -lgen on Solaris.
28331         Reported by Clemens Brogi; fix suggested by Paul Eggert.
28332
28333 2010-10-05  Jim Meyering  <meyering@redhat.com>
28334
28335         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
28336         * Makefile (sc_pragma_columns): New syntax-check rule.
28337
28338 2010-10-04  Bruno Haible  <bruno@clisp.org>
28339
28340         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
28341         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
28342         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
28343         Reported by Bruce Korb and Eric Blake.
28344
28345 2010-10-04  Bruno Haible  <bruno@clisp.org>
28346
28347         threadlib: Make option --with-libpth-prefix work.
28348         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
28349         use $LIBPTH, not just -lpth.
28350
28351 2010-10-04  Bruno Haible  <bruno@clisp.org>
28352
28353         Avoid line length limitation from HP NonStop system header files.
28354         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
28355         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
28356         * lib/ctype.in.h: Likewise.
28357         * lib/dirent.in.h: Likewise.
28358         * lib/errno.in.h: Likewise.
28359         * lib/fcntl.in.h: Likewise.
28360         * lib/float.in.h: Likewise.
28361         * lib/getopt.in.h: Likewise.
28362         * lib/iconv.in.h: Likewise.
28363         * lib/inttypes.in.h: Likewise.
28364         * lib/langinfo.in.h: Likewise.
28365         * lib/locale.in.h: Likewise.
28366         * lib/math.in.h: Likewise.
28367         * lib/netdb.in.h: Likewise.
28368         * lib/netinet_in.in.h: Likewise.
28369         * lib/poll.in.h: Likewise.
28370         * lib/pthread.in.h: Likewise.
28371         * lib/pty.in.h: Likewise.
28372         * lib/sched.in.h: Likewise.
28373         * lib/se-selinux.in.h: Likewise.
28374         * lib/search.in.h: Likewise.
28375         * lib/signal.in.h: Likewise.
28376         * lib/spawn.in.h: Likewise.
28377         * lib/stdarg.in.h: Likewise.
28378         * lib/stddef.in.h: Likewise.
28379         * lib/stdint.in.h: Likewise.
28380         * lib/stdio.in.h: Likewise.
28381         * lib/stdlib.in.h: Likewise.
28382         * lib/string.in.h: Likewise.
28383         * lib/strings.in.h: Likewise.
28384         * lib/sys_file.in.h: Likewise.
28385         * lib/sys_ioctl.in.h: Likewise.
28386         * lib/sys_select.in.h: Likewise.
28387         * lib/sys_socket.in.h: Likewise.
28388         * lib/sys_stat.in.h: Likewise.
28389         * lib/sys_time.in.h: Likewise.
28390         * lib/sys_times.in.h: Likewise.
28391         * lib/sys_utsname.in.h: Likewise.
28392         * lib/sys_wait.in.h: Likewise.
28393         * lib/sysexits.in.h: Likewise.
28394         * lib/termios.in.h: Likewise.
28395         * lib/time.in.h: Likewise.
28396         * lib/unistd.in.h: Likewise.
28397         * lib/wchar.in.h: Likewise.
28398         * lib/wctype.in.h: Likewise.
28399         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
28400         * modules/ctype (Makefile.am): Likewise.
28401         * modules/dirent (Makefile.am): Likewise.
28402         * modules/errno (Makefile.am): Likewise.
28403         * modules/fcntl-h (Makefile.am): Likewise.
28404         * modules/float (Makefile.am): Likewise.
28405         * modules/getopt-posix (Makefile.am): Likewise.
28406         * modules/iconv-h (Makefile.am): Likewise.
28407         * modules/inttypes (Makefile.am): Likewise.
28408         * modules/langinfo (Makefile.am): Likewise.
28409         * modules/locale (Makefile.am): Likewise.
28410         * modules/math (Makefile.am): Likewise.
28411         * modules/netdb (Makefile.am): Likewise.
28412         * modules/netinet_in (Makefile.am): Likewise.
28413         * modules/poll-h (Makefile.am): Likewise.
28414         * modules/pthread (Makefile.am): Likewise.
28415         * modules/pty (Makefile.am): Likewise.
28416         * modules/sched (Makefile.am): Likewise.
28417         * modules/search (Makefile.am): Likewise.
28418         * modules/selinux-h (Makefile.am): Likewise.
28419         * modules/signal (Makefile.am): Likewise.
28420         * modules/spawn (Makefile.am): Likewise.
28421         * modules/stdarg (Makefile.am): Likewise.
28422         * modules/stddef (Makefile.am): Likewise.
28423         * modules/stdint (Makefile.am): Likewise.
28424         * modules/stdio (Makefile.am): Likewise.
28425         * modules/stdlib (Makefile.am): Likewise.
28426         * modules/string (Makefile.am): Likewise.
28427         * modules/strings (Makefile.am): Likewise.
28428         * modules/sys_file (Makefile.am): Likewise.
28429         * modules/sys_ioctl (Makefile.am): Likewise.
28430         * modules/sys_select (Makefile.am): Likewise.
28431         * modules/sys_socket (Makefile.am): Likewise.
28432         * modules/sys_stat (Makefile.am): Likewise.
28433         * modules/sys_time (Makefile.am): Likewise.
28434         * modules/sys_times (Makefile.am): Likewise.
28435         * modules/sys_utsname (Makefile.am): Likewise.
28436         * modules/sys_wait (Makefile.am): Likewise.
28437         * modules/sysexits (Makefile.am): Likewise.
28438         * modules/termios (Makefile.am): Likewise.
28439         * modules/time (Makefile.am): Likewise.
28440         * modules/unistd (Makefile.am): Likewise.
28441         * modules/wchar (Makefile.am): Likewise.
28442         * modules/wctype (Makefile.am): Likewise.
28443
28444 2010-10-04  Bruno Haible  <bruno@clisp.org>
28445
28446         read-file tests: Avoid a test failure on NonStop Kernel.
28447         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
28448         a regular file.
28449         Reported by Joachim Schmitz <schmitz@hp.com>.
28450
28451 2010-10-03  Bruno Haible  <bruno@clisp.org>
28452
28453         gnulib-tool: Fixes for --create-testdir with --libtool.
28454         * gnulib-tool (func_get_automake_snippet): Don't augment
28455         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
28456         an executable.
28457         (func_create_testdir): Handle module 'alloca' like func_import.
28458         Reported by Bruce Korb <bruce.korb@gmail.com>.
28459
28460 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
28461
28462         Avoid some lines longer than 80 characters.
28463         * lib/stdint.in.h: Break long comment lines.
28464         * lib/math.in.h: Likewise.
28465         (_GL_NUM_UINT_WORDS): New macro, for readability.
28466         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
28467         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
28468         * lib/stdlib.in.h: Likewise.
28469         * lib/spawn.in.h: Likewise.
28470         * lib/sys_socket.in.h: Update an URL.
28471         * lib/sys_stat.in.h: Break long line.
28472
28473 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
28474
28475         Improve pmccabe2html.
28476         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
28477         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
28478         when the sources change. Remove the line in the HTML about "Used
28479         ranges" (which implied that there might be other unused ranges),
28480         rename "Resume" to "Summary" (easier to understand for more users).
28481         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
28482         styles, and some unnecessary blank lines.
28483
28484 2010-10-03  Bruno Haible  <bruno@clisp.org>
28485             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
28486
28487         acl: Add support for ACLs on NonStop Kernel.
28488         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
28489         Check whether the function aclsort() exists.
28490         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
28491         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
28492         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28493         (acl_nontrivial [HAVE_ACLSORT]: New function.
28494         (file_has_acl): Implement for NonStop Kernel.
28495         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28496         (qset_acl): Implement for NonStop Kernel.
28497         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
28498         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28499         (main): Implement for NonStop Kernel.
28500         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
28501         Kernel. Handle this flavor.
28502         * tests/test-set-mode-acl.sh: Likewise.
28503         * tests/test-copy-acl.sh: Likewise.
28504         * tests/test-copy-file.sh: Likewise.
28505
28506 2010-10-03  Bruno Haible  <bruno@clisp.org>
28507
28508         Info about ACLs on NonStop Kernel.
28509         * doc/acl-resources.txt: Add info about NonStop Kernel.
28510         References by Joachim Schmitz <schmitz@hp.com>.
28511
28512 2010-10-02  Bruno Haible  <bruno@clisp.org>
28513
28514         Define missing EDQUOT on NonStop Kernel.
28515         * lib/errno.in.h (EDQUOT): Assign a value if missing.
28516         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
28517         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
28518         missing.
28519         * doc/posix-headers/errno.texi: Mention the NSK bug.
28520         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
28521         Reported by Joachim Schmitz <schmitz@hp.com>.
28522
28523 2010-10-02  Bruno Haible  <bruno@clisp.org>
28524
28525         Update doc for POSIX:2008.
28526         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
28527         Update URL of POSIX specification.
28528
28529 2010-10-02  Bruno Haible  <bruno@clisp.org>
28530
28531         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
28532         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
28533         from gnulib, not from Automake.
28534
28535 2010-10-02  Bruno Haible  <bruno@clisp.org>
28536
28537         New module 'system-posix'.
28538         * modules/system-posix: New file.
28539         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
28540         module is present.
28541         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28542         GNULIB_SYSTEM_POSIX.
28543         * modules/stdlib (Depends-on): Remove sys_wait.
28544         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
28545         * doc/posix-functions/system.texi: Mention the new module.
28546         * doc/posix-headers/stdlib.texi: Likewise.
28547         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
28548         define test_sys_wait_macros to a no-op.
28549         Reported by Sam Steingold <sds@gnu.org>.
28550
28551 2010-09-30  Bruno Haible  <bruno@clisp.org>
28552
28553         More renaming from 'getdate' to 'get_date'.
28554         * doc/get_date.texi: Renamed from doc/getdate.texi.
28555         * modules/get_date (Files): Update.
28556         * MODULES.html.sh (Date and time <time.h>): Update.
28557         * DEPENDENCIES: Update.
28558         * gnulib-tool: Update comment.
28559         * m4/bison.m4 (gl_BISON): Likewise.
28560         * m4/get_date.m4 (gl_GET_DATE): Likewise.
28561
28562 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
28563
28564         bootstrap: support ACLOCAL_FLAGS during aclocal
28565         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
28566         can add additional -I dir for third-party .m4 files.
28567
28568 2010-09-30  Eric Blake  <eblake@redhat.com>
28569
28570         bootstrap: use glibtoolize on MacOS
28571         * build-aux/bootstrap (check_versions): Convert libtool into
28572         libtoolize.
28573         (tool search): Move libtool check earlier, and look for
28574         glibtoolize for MacOS.
28575         (gnulib_tool_options): Auto-add --libtool when appropriate.
28576         Reported by Justin Clift.
28577
28578         poll: fix typo that broke test on MacOS
28579         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
28580         Reported by Justin Clift.
28581
28582         getdate: rename to get_date
28583         Note: getdate.h is not renamed, to minimize client impact.
28584         * modules/getdate: Mark obsolete.  Move old contents...
28585         * modules/get_date: ...to new module name.
28586         * modules/getdate-tests: Move...
28587         * modules/get_date-tests: ...here.
28588         * m4/getdate.m4: Move...
28589         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
28590         * lib/getdate.y: Move...
28591         * lib/get_date.y: ...here.
28592         * tests/test-getdate.c: Move...
28593         * tests/test-get_date.c: ...here.
28594         * doc/posix-functions/getdate.texi (getdate): Update name.
28595         * NEWS: Mention the change.
28596
28597 2010-09-29  Bruno Haible  <bruno@clisp.org>
28598
28599         Separate the module 'waitpid' from the module 'sys_wait'.
28600         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
28601         present.
28602         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
28603         gl_MODULE_INDICATOR_FOR_TESTS.
28604         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
28605         * modules/sys_wait (Depends-on): Remove waitpid.
28606         (Makefile.am): Substitute GNULIB_WAITPID.
28607         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
28608         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
28609         signature only if the 'waitpid' module is present.
28610         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
28611         * NEWS: Mention the change.
28612         * modules/grantpt (Depends-on): Add waitpid.
28613         * modules/wait-process (Depends-on): Likewise.
28614
28615 2010-09-29  Bruno Haible  <bruno@clisp.org>
28616
28617         More tests for module 'sys_wait'.
28618         * modules/sys_wait-c++-tests: New file.
28619         * tests/test-sys_wait-c++.cc: New file.
28620         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
28621         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28622
28623 2010-09-29  Bruno Haible  <bruno@clisp.org>
28624
28625         New module 'waitpid'.
28626         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
28627         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
28628         Don't include <process.h>.
28629         (waitpid): Declare only, using modern idiom.
28630         * m4/waitpid.m4: New file.
28631         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
28632         * modules/waitpid: New file.
28633         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
28634         (Makefile.am): Update.
28635         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28636
28637 2010-09-28  Bruno Haible  <bruno@clisp.org>
28638
28639         poll: Assume ANSI C.
28640         * lib/poll.c (poll): Use an ANSI C declaration.
28641
28642 2010-09-28  Bruno Haible  <bruno@clisp.org>
28643
28644         poll-h: Create poll.h on all platforms.
28645         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
28646         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
28647         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
28648         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
28649         (gl_REPLACE_POLL_H): Don't set POLL_H.
28650         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
28651         * modules/poll-h (Depends-on): Add include_next.
28652         (Makefile.am): Create poll.h unconditionally. Substitute also
28653         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
28654
28655 2010-09-28  Bruno Haible  <bruno@clisp.org>
28656
28657         Tests for module 'poll-h'.
28658         * modules/poll-h-c++-tests: New file.
28659         * tests/test-poll-h-c++.cc: New file.
28660
28661         Tests for module 'poll-h'.
28662         * modules/poll-h-tests: New file.
28663         * tests/test-poll-h.c: New file.
28664
28665 2010-09-28  Bruno Haible  <bruno@clisp.org>
28666
28667         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
28668         * modules/poll-h (Depends-on): Add 'extensions'.
28669
28670 2010-09-28  Bruno Haible  <bruno@clisp.org>
28671
28672         New module 'poll-h'.
28673         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
28674         (poll): Use modern idiom.
28675         * modules/poll-h: New file.
28676         * modules/poll (Files): Remove lib/poll.in.h.
28677         (Depends-on): Add poll-h.
28678         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
28679         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
28680         * m4/poll_h.m4: New file.
28681         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
28682         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
28683         and invoke gl_REPLACE_POLL_H.
28684         * lib/poll.c: Use common idiom.
28685         * tests/test-poll.c: Likewise.
28686         * doc/posix-headers/poll.texi: Mention the poll-h module.
28687         Suggested by Eric Blake.
28688
28689 2010-09-26  Bruno Haible  <bruno@clisp.org>
28690
28691         sys_wait: Implement WSTOPSIG.
28692         * lib/sys_wait.in.h (WSTOPSIG): New macro.
28693         Reported by Simon Josefsson.
28694
28695 2010-09-26  Simon Josefsson  <simon@josefsson.org>
28696
28697         stdlib, sys_wait: Avoid compilation error on mingw.
28698         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
28699
28700 2010-09-26  Bruno Haible  <bruno@clisp.org>
28701
28702         stdlib tests: Avoid code duplication.
28703         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
28704         * modules/sys_wait-tests (Files): Likewise.
28705         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
28706         * tests/test-stdlib.c: Include test-sys_wait.h.
28707         (main): Invoke test_sys_wait_macros.
28708         * tests/test-sys_wait.c: Include test-sys_wait.h.
28709         (main): Invoke test_sys_wait_macros.
28710
28711 2010-09-25  Simon Josefsson  <simon@josefsson.org>
28712
28713         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
28714         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
28715         sure Windows sockets are working before calling getaddrinfo.
28716         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
28717         * doc/gnulib.texi (Windows sockets): Fix typo.
28718
28719 2010-09-25  Bruno Haible  <bruno@clisp.org>
28720
28721         Tests for module 'regex-quote'.
28722         * modules/regex-quote-tests: New file.
28723         * tests/test-regex-quote.c: New file.
28724
28725         New module 'regex-quote'.
28726         * lib/regex-quote.h: New file.
28727         * lib/regex-quote.c: New file.
28728         * modules/regex-quote: New file.
28729         Suggested by Reuben Thomas <rrt@sc3d.org>.
28730
28731 2010-09-24  Bruno Haible  <bruno@clisp.org>
28732
28733         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
28734         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
28735
28736 2010-09-23  Bruno Haible  <bruno@clisp.org>
28737
28738         setenv: Relax license.
28739         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
28740         Blake.
28741         Requested by Eric Blake.
28742
28743 2010-09-22  Bruno Haible  <bruno@clisp.org>
28744
28745         termios: Relax license.
28746         * modules/termios (License): Change to LGPLv2+.
28747         Requested by Eric Blake.
28748
28749 2010-09-22  Bruno Haible  <bruno@clisp.org>
28750
28751         threadlib: Allow the package to change the default to 'no'.
28752         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
28753         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
28754         Reported by Paul Eggert.
28755
28756 2010-09-22  Pádraig Brady  <P@draigbrady.com>
28757             Bruno Haible  <bruno@clisp.org>
28758
28759         Fix endless loop in mbmemcasecoll.
28760         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
28761         byte.
28762         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
28763
28764 2010-09-22  Bruno Haible  <bruno@clisp.org>
28765
28766         Tests for module 'memcoll'.
28767         * modules/memcoll-tests: New file.
28768         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
28769
28770         memcoll, xmemcoll: Clarify size vs. length.
28771         * modules/memcoll.c (memcoll0): Clarify specification.
28772         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
28773         passed to collate_error.
28774
28775 2010-09-22  Bruno Haible  <bruno@clisp.org>
28776
28777         Tests for module 'memcasecmp'.
28778         * modules/memcasecmp-tests: New file.
28779         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
28780
28781 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28782
28783         * lib/pthread.in.h: Add split double-inclusion guard, and include
28784         system <pthread.h> if there is one.  Use @@-style as in other
28785         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
28786         pthread.h doesn't.
28787         (pthread_mutexattr_destroy, pthread_mutexattr_init):
28788         (pthread_mutexattr_settype, pthread_mutex_trylock):
28789         New static inline functions, if there's no system <pthread.h>.
28790         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
28791         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
28792         Approximate with mutexes if the system lacks spinlocks, as in
28793         MacOS.
28794         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
28795         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
28796         @@-style.  Check for spinlocks separately.
28797         (gl_PTHREAD_DEFAULTS): New macro.
28798         * modules/pthread: Redo to use a more typical style for in.h files.
28799
28800 2010-09-21  Eric Blake  <eblake@redhat.com>
28801
28802         net_if: enhance tests
28803         * tests/test-net_if.c (main): Move signature checks earlier.
28804         Print failures to stderr.
28805         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
28806         Document the bug that we do not yet fix.
28807
28808 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28809
28810         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
28811         about gnulib, not GSS.
28812
28813 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28814
28815         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
28816         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
28817         for Emacs.
28818         * build-aux/pmccabe2html: Make Makefile.am example code more
28819         cut-and-paste friendly.
28820
28821 2010-09-21  Simon Josefsson  <simon@josefsson.org>
28822
28823         * tests/test-net_if.c: New file.
28824         * modules/net_if-tests: New file.
28825
28826 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28827
28828         pthread: add pthread_spin_destroy
28829         * lib/pthread.in.h (pthread_spin_destroy): New function.
28830
28831 2010-09-19  Bruno Haible  <bruno@clisp.org>
28832
28833         gnulib-tool: Fix --help output.
28834         * gnulib-tool (func_usage): Fix help message.
28835         Reported by Reuben Thomas <rrt@sc3d.org>.
28836
28837 2010-09-18  Jim Meyering  <meyering@redhat.com>
28838
28839         maint.mk: avoid unexpanded \n in two diagnostics
28840         * top/maint.mk (sc_prohibit_always_true_header_tests):
28841         Don't use a literal \n in a halt=... assignment.  It would not be
28842         expanded, and the two \n bytes would appear in the diagnostic output
28843         rather than the desired newline.  Use halt=$$(printf ... instead.
28844         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
28845
28846 2010-09-18  Bruno Haible  <bruno@clisp.org>
28847
28848         netinet_in: Doc tweak.
28849         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
28850         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28851
28852 2010-09-18  Jim Meyering  <meyering@redhat.com>
28853
28854         init.sh: correct an outdated comment
28855         * tests/init.sh (create_exe_shims_):  s/function/alias/
28856
28857         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
28858         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
28859         a file named "*.exe" is removed between the glob expansion and the
28860         processing of that oddly named file.
28861
28862 2010-09-17  Eric Blake  <eblake@redhat.com>
28863
28864         mirbsd: add some more support
28865         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
28866         in BSD family.
28867         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
28868         devices as OpenBSD.
28869         * m4/host-os.m4 (mirbsd): Add MirBSD.
28870
28871         tests: fix unportable assumption on sys/wait.h
28872         * tests/test-sys_wait.c (main): Relax test.
28873         * tests/test-stdlib.c (main): Likewise.
28874
28875         init.sh: accommodate directory with no .exes
28876         * tests/init.sh: Accomodate directory containing only scripts.
28877
28878         tests: avoid compiler warning
28879         * tests/test-stdlib.c (main): Use the variable.
28880
28881         fdutimens, fdutimensat: update signature, again
28882         * lib/utimens.h (gl_futimens): Delete, and move signature...
28883         (fdutimens): ...here.
28884         (fdutimensat): Rearrange signature.
28885         (lutimensat): Rename variable for clarity.
28886         * lib/fdutimensat.c (fdutimensat): Update signature.
28887         * lib/utimens.c (fdutimens): Likewise.
28888         (gl_futimens): Delete.
28889         (utimens, lutimens): Update callers.
28890         * lib/futimens.c (futimens): Likewise.
28891         * tests/test-fdutimensat.c: Likewise.
28892         * tests/test-utimens.c: Likewise.
28893         * tests/test-futimens.h: Update comment.
28894         * NEWS: Mention this.
28895         Suggested by Paul Eggert.
28896
28897 2010-09-17  Bruno Haible  <bruno@clisp.org>
28898
28899         Take over the maintenance of some older macros from Autoconf.
28900         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
28901         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
28902         GNU Autoconf.
28903         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
28904         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
28905
28906 2010-09-17  Eric Blake  <eblake@redhat.com>
28907
28908         fdutimensat: drop atflag validation
28909         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
28910         with valid fd, to close a race scenario where futimens is
28911         unsupported and FILE was replaced by a symlink.
28912         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
28913         accordingly.
28914         Suggested by Paul Eggert.
28915
28916 2010-09-16  Bruno Haible  <bruno@clisp.org>
28917
28918         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
28919         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
28920
28921 2010-09-16  Bruno Haible  <bruno@clisp.org>
28922
28923         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
28924         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
28925         login_tty exists.
28926         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28927
28928 2010-09-16  Bruno Haible  <bruno@clisp.org>
28929
28930         login_tty: Make the replacement code work on BSD systems.
28931         * lib/login_tty.c: Include <sys/ioctl.h>.
28932         (login_tty): Use ioctl TIOCSCTTY when available.
28933         * modules/login_tty (Depends-on): Add sys_ioctl.
28934         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28935
28936 2010-09-16  Bruno Haible  <bruno@clisp.org>
28937
28938         login_tty: Stricter unit test.
28939         * modules/login_tty-tests (Depends-on): Add tcgetsid.
28940         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
28941         and tcgetsid() after login_tty.
28942         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28943
28944 2010-09-16  Bruno Haible  <bruno@clisp.org>
28945
28946         New module 'tcgetsid'.
28947         * lib/tcgetsid.c: New file.
28948         * m4/tcgetsid.m4: New file.
28949         * modules/tcgetsid: New file.
28950         * modules/termios (Depends-on): Add c++defs, warn-on-use.
28951         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
28952         GNULIB_TCGETSID, HAVE_TCGETSID.
28953         * lib/termios.in.h: Include <sys/types.h>.
28954         (tcgetsid): New declaration.
28955         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
28956         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
28957         * doc/posix-functions/tcgetsid.texi: Mention the new module.
28958         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
28959
28960 2010-09-16  Bruno Haible  <bruno@clisp.org>
28961
28962         Tests for module 'termios'.
28963         * modules/termios-c++-tests: New file.
28964         * modules/termios-tests: New file.
28965         * tests/test-termios-c++.cc: New file.
28966         * tests/test-termios.c: New file.
28967
28968         New module 'termios'.
28969         * modules/termios: New file.
28970         * lib/termios.in.h: New file.
28971         * m4/termios_h.m4: New file.
28972         * doc/posix-headers/termios.texi: Mention the new module.
28973
28974 2010-09-16  Eric Blake  <eblake@redhat.com>
28975
28976         fdutimensat: add an atflag parameter
28977         * lib/fdutimensat.c (fdutimensat): Add new parameter.
28978         * lib/utimens.h (fdutimensat): Update prototype.
28979         * tests/test-fdutimensat.c: Adjust test to match.
28980         * NEWS: Document the change.
28981         Suggested by Paul Eggert.
28982
28983 2010-09-16  Bruno Haible  <bruno@clisp.org>
28984
28985         Fix typos in comments.
28986         * lib/striconveh.h: Fix typo in comment.
28987         * lib/login_tty.c (login_tty): Likewise.
28988
28989 2010-09-15  Bruno Haible  <bruno@clisp.org>
28990
28991         stdlib: clarify MirBSD WEXITSTATUS bug
28992         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
28993         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28994
28995 2010-09-15  Eric Blake  <eblake@redhat.com>
28996
28997         stdlib: work around MirBSD WEXITSTATUS bug
28998         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
28999         * modules/stdlib (Depends-on): Add sys_wait.
29000         * tests/test-sys_wait.c (main): Enhance test.
29001         * tests/test-stdlib.c (main): Likewise.
29002         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
29003
29004         docs: mention MacOS issue with WEXITSTATUS(constant)
29005         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
29006         issue.
29007         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29008
29009         strnlen: add tests
29010         * modules/strnlen-tests: New file.
29011         * tests/test-strnlen.c: Likewise.
29012
29013 2010-09-14  Bruno Haible  <bruno@clisp.org>
29014
29015         unistr/base: Avoid link errors when module 'libunistring' is also used.
29016         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
29017         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
29018         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
29019         Declare also when HAVE_LIBUNISTRING is set.
29020         Reported by Pádraig Brady <P@draigbrady.com>.
29021
29022 2010-09-14  Eric Blake  <eblake@redhat.com>
29023
29024         test-rawmemchr: make more robust
29025         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
29026         (Depends-on, configure.ac): Add needed prerequisites to use it.
29027         * modules/memchr-tests (Files, Depends-on, configure.ac):
29028         Likewise, to avoid implicit reliance on memchr module prereqs.
29029         * tests/test-memchr.c (main): Ensure proper masking.
29030         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
29031         reads.
29032
29033         memchr: detect glibc Alpha bug
29034         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
29035         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
29036         Alpha.
29037         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
29038         * tests/test-memchr.c (main): Enhance test.
29039         Reported by Nelson H. F. Beebe.
29040
29041 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29042
29043         fts, getcwd, glob: audit for dirfd returning -1
29044         * lib/fts.c (opendir): Remove #define; no longer used.
29045         (opendirat): New arg PDIR_FD.  All callers changed.
29046         (fts_build, _opendir2): Use new opendirat to avoid the need for
29047         dirfd, or for checking whether dirfd returns a negative value.
29048         Don't use opendir; always use openat followed by fdopendir.
29049         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
29050         it.
29051         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
29052         returns -1 here.
29053         * modules/fts (Depends-on): Remove dirfd.
29054         * modules/getcwd (Depends-on): Likewise.
29055
29056 2010-09-13  Eric Blake  <eblake@redhat.com>
29057
29058         float: fix broken MirBSD header
29059         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
29060         * doc/posix-headers/float.texi (float.h): Document it.
29061
29062 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29063
29064         fts: use O_NOFOLLOW to avoid race condition when opening a directory
29065         * lib/fts.c (opendirat): New arg extra_flags.
29066         (__opendir2): Use it to avoid following symlinks when opening
29067         a directory, if symlinks are not supposed to be followed.  See
29068         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
29069
29070         fdopendir: preserve argument fd before returning
29071         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
29072         (fdopendir_with_dup, fd_clone_opendir): New static functions.
29073         (fdopendir): Use them, arranging for FD to be open to the same
29074         directory that it was when it started.  (It might be temporarily
29075         closed while fdopendir is running, so this not thread- or
29076         signal-safe.)  Be careful to do the right thing even when file
29077         descriptors are scarce and dup fails with errno == EMFILE.  See
29078         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
29079
29080 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
29081
29082         regex: Pass the system regex if its only problem is 32-bit regoff_t.
29083         * NEWS: Document change.
29084         * m4/regex.m4: Disable test for regoff_t size.
29085
29086 2010-09-13  Jim Meyering  <meyering@redhat.com>
29087
29088         fts: don't operate on an invalid file descriptor after failed dup
29089         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
29090         negative file descriptor.
29091
29092 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
29093
29094         savedir: add streamsavedir, deprecate fdsavedir
29095         * NEWS: Mention deprecation of fdsavedir.
29096         * lib/savedir.c (streamsavedir): New extern function, whose name
29097         ends in "savedir" to be consistent with the others.  This differs
29098         from savedirstream in that it doesn't close its argument.  The
29099         next version of GNU tar will use this instead of fdsavedir, to
29100         avoid some race conditions and conserve file descriptors.
29101         (savedirstream): Reimplement as a wrapper around streamsavedir.
29102         (fdsavedir): Add a comment deprecating this function.  As far as
29103         I know, only GNU tar used it, and GNU tar doesn't need it any more.
29104         * lib/savedir.h (streamsavedir): New decl.
29105         (fdsavedir): Add a comment deprecating this.
29106
29107 2010-09-10  Bruno Haible  <bruno@clisp.org>
29108
29109         langinfo: Fix last commit.
29110         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
29111         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
29112         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29113
29114 2010-09-10  Bruno Haible  <bruno@clisp.org>
29115
29116         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
29117         * lib/progreloc.c (O_EXEC): Define fallback.
29118
29119 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
29120
29121         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
29122         * NEWS: Document recent changes to fcntl-h.
29123         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
29124         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
29125         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
29126         Similarly for O_SEARCH; this last was already true, but not documented.
29127         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
29128         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
29129         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
29130         Likewise.
29131         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
29132         is zero, not whether it is defined.
29133         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
29134         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
29135         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
29136
29137 2010-09-10  Bruno Haible  <bruno@clisp.org>
29138
29139         langinfo, nl_langinfo: Fix for IRIX 5.3.
29140         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
29141         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
29142         HAVE_LANGINFO_YESEXPR.
29143         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
29144         HAVE_LANGINFO_YESEXPR.
29145         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
29146         HAVE_LANGINFO_T_FMT_AMPM is 0.
29147         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
29148         HAVE_LANGINFO_YESEXPR is 0.
29149         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
29150         NOEXPR.
29151         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
29152         * doc/posix-functions/nl_langinfo.texi: Likewise.
29153         Reported by Eric Blake.
29154
29155 2010-09-10  Bruno Haible  <bruno@clisp.org>
29156
29157         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
29158         * doc/glibc-functions/login_tty.texi: Mention the include file problem
29159         on FreeBSD 8.0 and OpenBSD 4.6.
29160         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
29161         * m4/pty_h.m4 (gl_PTY_H): Likewise.
29162         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
29163         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
29164         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
29165         ac_includes_default.
29166         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29167
29168 2010-09-09  Eric Blake  <eblake@redhat.com>
29169
29170         strsignal: work around NetBSD bug
29171         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
29172         * lib/string.in.h (includes): Likewise.
29173         * doc/posix-functions/strsignal.texi (strsignal): Document the
29174         bug.
29175         Reported by Nelson H. F. Beebe.
29176
29177         gnulib-tool: work with NetBSD /bin/sh
29178         * gnulib-tool (func_cache_var, func_cache_lookup_module)
29179         (func_get_description, func_get_comment, func_get_status)
29180         (func_get_notice, func_get_applicability, func_get_filelist)
29181         (func_get_dependencies, func_get_autoconf_early_snippet)
29182         (func_get_autoconf_snippet, func_get_automake_snippet)
29183         (func_get_include_directive, func_get_link_directive)
29184         (func_get_license, func_get_maintainer, func_import): Avoid
29185         shell syntax errors from parsing syntax extensions.
29186
29187 2010-09-09  Bruno Haible  <bruno@clisp.org>
29188
29189         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29190         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
29191         a reliable way to determine whether the 'alias' command works.
29192
29193 2010-09-08  Jim Meyering  <meyering@redhat.com>
29194
29195         init.sh: penalize a set-x-impaired shell; don't disqualify it
29196         * tests/init.sh: Too many shells corrupt application stderr when
29197         you set -x, so we can't afford to disqualify them, since at least
29198         on Irix-6.5, that would disqualify all bourne shells.
29199         Instead, use a two-pass approach.
29200         On the first pass, try to find a shell that meets the stricter
29201         condition that set -x does not corrupt stderr.
29202         If no shell meets the stricter condition, retest each candidate
29203         shell, but without that extra condition.  Finally, when
29204         VERBOSE=yes is requested and set -x might cause trouble, simply
29205         issue a warning and refrain from enabling debug output.
29206
29207 2010-09-08  Eric Blake  <eblake@redhat.com>
29208
29209         unsetenv: fix OpenBSD bug
29210         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
29211         * doc/posix-functions/unsetenv.texi (unsetenv): Update
29212         documentation.
29213         Reported by Jim Meyering.
29214
29215         strtod: work around IRIX 6.5 bug
29216         * lib/strtod.c (strtod): Reparse number on shorter string if
29217         exponent parse was invalid.
29218         * tests/test-strtod.c (main): Add check for "0x1p 2".
29219         Reported by Tom G. Christensen.
29220
29221         getopt: optimize previous patch
29222         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
29223         empty variable.  Speed up awk script.
29224         Reported by Paolo Bonzini.
29225
29226 2010-09-08  Jim Meyering  <meyering@redhat.com>
29227
29228         test.sh: disqualify shells for which set -x corrupts stderr
29229         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
29230         and OpenBSD 4.7.  They make it so with "set -x", environment settings
29231         appear in stderr output.  For example, this command:
29232             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
29233         prints "P=1" on those two systems:
29234
29235 2010-09-08  Bruno Haible  <bruno@clisp.org>
29236
29237         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29238         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
29239         commands, because some shells ignore redirections when there is an
29240         error in the command lookup.
29241         Reported by Eric Blake.
29242
29243 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
29244
29245         * lib/regex.h: Fix a mention of `regex_compile' (should be
29246         `re_compile_pattern').
29247         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
29248         (re_set_registers): Correct name of parameter in comment.
29249
29250         * doc/regex.texi: Add documentation for missing syntax flags.
29251         Remove commented-out documentation of defunct syntax option
29252         RE_NO_EMPTY_ALTS.
29253         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
29254         Add documentation of re_set_registers.
29255         Document trick to re-use a pattern buffer by setting fastmap manually.
29256         Update documentation of struct re_pattern_buffer per public members.
29257         Uncomment documentation of equivalence class operators and
29258         collating symbol operators, since they are now implemented,
29259         Explain leftmost-longest matching in relation to alternatives.
29260         Tidy documentation of substring matching.
29261         Remove POSIX documentation, which is done better in
29262         glibc, and refer the reader there. Keep BSD API documentation, as
29263         that is not readily available elsewhere.
29264
29265 2010-09-07  Eric Blake  <eblake@redhat.com>
29266
29267         getopt: handle POSIXLY_CORRECT set but not exported
29268         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
29269         export state of POSIXLY_CORRECT, due to bash set -o posix.
29270         Reported by Dustin J. Mitchell.
29271
29272 2010-09-05  Bruno Haible  <bruno@clisp.org>
29273
29274         gnulib-tool: Highlight the changed options.
29275         * gnulib-tool (func_usage): Display the --import, --add-import,
29276         --remove-import explanations in bold font.
29277
29278 2010-09-06  Karl Berry  <karl@gnu.org>
29279
29280         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
29281
29282 2010-09-05  Bruno Haible  <bruno@clisp.org>
29283
29284         uniwidth/width: Update comment.
29285         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
29286         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
29287
29288 2010-09-05  Bruno Haible  <bruno@clisp.org>
29289
29290         isinf, isnan: Relax license.
29291         * modules/isinf (License): Change from GPL to LGPL, with consent from
29292         Ben Pfaff.
29293         * modules/isnan (License): Likewise.
29294         Requested by Ludovic Courtès.
29295
29296 2010-09-04  Bruno Haible  <bruno@clisp.org>
29297
29298         gnulib-tool: Help migration from --import to --add-import or --update.
29299         * gnulib-tool: Emit a verbose error message when --import is used
29300         without any module name.
29301
29302 2010-09-04  Bruno Haible  <bruno@clisp.org>
29303
29304         Update doc about gnulib-tool.
29305         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
29306         'gnulib-tool --update' in more detail.
29307         Reported by Eric Blake.
29308
29309 2010-09-04  Bruno Haible  <bruno@clisp.org>
29310
29311         gnulib-tool: Change --import. New options --add/remove-import.
29312         * gnulib-tool: New options --add-import, --remove-import.
29313         (func_usage): Document them.
29314         (have_associative): Define always.
29315         (func_import): In import mode, don't merge the specified settings with
29316         the cached settings. Implement remove-import mode.
29317         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
29318         Explain when to use them versus --import.
29319         (Simple update): Use --add-import instead of --import.
29320         * NEWS: Mention the change.
29321
29322 2010-09-04  Bruno Haible  <bruno@clisp.org>
29323
29324         * doc/gnulib-tool.texi (Initial import): Update paragraph about
29325         separate gnulib.mk.
29326
29327 2010-09-04  Bruno Haible  <bruno@clisp.org>
29328
29329         gnulib-tool: Don't talk about CVS any more.
29330         * gnulib-tool (func_usage, func_import): Write "version control"
29331         instead of CVS.
29332
29333 2010-09-04  Jim Meyering  <meyering@redhat.com>
29334
29335         maint.mk: avoid obscure sc_copyright_check failure in coreutils
29336         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
29337         false positives (whose names may be ill-chosen) when searching
29338         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
29339         would cause a false-positive.
29340
29341         avoid coreutils "make distcheck" failure
29342         Coreutils tests with an absolute build directory name that contains
29343         a space.  Not quoting this directory name caused a failure.
29344         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
29345         * tests/test-vc-list-files-cvs.sh: Likewise.
29346
29347 2010-09-04  Bruno Haible  <bruno@clisp.org>
29348
29349         gnulib-tool: Avoid error when run in a package without Makefile.am.
29350         * gnulib-tool: When collecting the m4dirs in a package that does not
29351         have a Makefile.am, eliminate those directories that contain no
29352         gnulib-cache.m4. Fix expression that counts these directories.
29353
29354 2010-09-04  Bruno Haible  <bruno@clisp.org>
29355
29356         update-copyright test: Improve output when perl is missing or too old.
29357         * tests/test-update-copyright.sh: Move test of Perl version down after
29358         the test whether Perl exists. Provide an explanation relating Perl's
29359         error message to Automake's SKIP: message.
29360
29361 2010-09-04  Bruno Haible  <bruno@clisp.org>
29362
29363         Don't augment PATH in TESTS_ENVIRONMENT.
29364         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
29365         set abs_aux_dir instead of augmenting PATH.
29366         * modules/vc-list-files-tests (Makefile.am): Likewise.
29367         * tests/test-update-copyright.sh: Augment PATH here.
29368         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
29369         path_prepend_.
29370         * tests/test-vc-list-files-git.sh: Likewise.
29371
29372 2010-09-04  Jim Meyering  <meyering@redhat.com>
29373
29374         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
29375         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
29376
29377 2010-09-04  Bruno Haible  <bruno@clisp.org>
29378
29379         strdup: Fix compilation error in C++ mode.
29380         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
29381         the macro.
29382
29383 2010-09-04  Bruno Haible  <bruno@clisp.org>
29384
29385         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
29386         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
29387         macro into a function.
29388         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29389
29390 2010-09-04  Bruno Haible  <bruno@clisp.org>
29391
29392         Set PATH_SEPARATOR the same way autoconf does.
29393         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
29394         the value of PATH_SEPARATOR the same way autoconf-generated configure
29395         scripts do.
29396         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
29397         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29398
29399 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29400
29401         Set PATH_SEPARATOR the same way autoconf does.
29402         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
29403         the same way autoconf-generated configure scripts do.
29404         * posix-modules: Likewise.
29405
29406 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29407
29408         hash: fix safe_hasher const typo
29409         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
29410         const; otherwise, there is a type error later.
29411
29412 2010-09-02  Jim Meyering  <meyering@redhat.com>
29413
29414         test-update-copyright.sh: require perl 5.8.0
29415         * tests/test-update-copyright.sh: Require 5.8.0,
29416         which Tom G. Christensen has confirmed is adequate,
29417         while 5.6.1 is not.
29418
29419 2010-09-02  Eric Blake  <eblake@redhat.com>
29420
29421         tests: init.sh improvements for re-exec'ing with zsh
29422         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
29423         -vx through shell re-exec.
29424         Reported by Tom G. Christensen.
29425
29426         wctype: fix typo in previous commit
29427         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
29428         Reported by Ludovic Courtès.
29429
29430 2010-09-02  Jim Meyering  <meyering@redhat.com>
29431
29432         test-update-copyright.sh: skip test if Perl is too old
29433         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
29434         Reported by Tom G. Christensen.
29435
29436 2010-09-02  Bruno Haible  <bruno@clisp.org>
29437
29438         wctype: Avoid compilation error on IRIX 6.5.30.
29439         * lib/wctype.in.h (iswblank): Declare with a replacement if
29440         REPLACE_ISWBLANK is set.
29441         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
29442         declared. Set REPLACE_ISWBLANK.
29443         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
29444         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
29445         * doc/posix-headers/wctype.texi: Likewise.
29446         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29447
29448 2010-09-01  Bruno Haible  <bruno@clisp.org>
29449
29450         New module 'socketlib'.
29451         * modules/socketlib: New file.
29452         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
29453         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
29454         * modules/sockets (Depends-on): Add socketlib.
29455         Suggested by Sam Steingold <sds@gnu.org>.
29456
29457 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29458
29459         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
29460
29461         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
29462         when one needs search access to a directory but not read access.
29463         On systems where it is available, it works in some cases where
29464         O_RDONLY does not, namely on directories that are searchable but
29465         not readable, and which need only to be searchable.  If O_SEARCH
29466         is not available, fall back to the traditional method of using
29467         O_RDONLY.
29468
29469         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
29470         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
29471         when opening a directory that needs only to be searchable.
29472         * lib/chdir-safer.c (chdir_no_follow): Likewise.
29473         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
29474         * lib/openat-proc.c (openat_proc_name): Likewise.
29475         * lib/openat.c (openat_needs_fchdir): Likewise.
29476         * lib/save-cwd.c (save_cwd): Likewise.
29477         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
29478
29479 2010-08-28  Bruno Haible  <bruno@clisp.org>
29480
29481         New module 'host-cpu-c-abi'.
29482         * modules/host-cpu-c-abi: New file.
29483         * m4/host-cpu-c-abi.m4: New file, based on part of
29484         clisp/src/m4/general.m4.
29485         Requested by Sam Steingold <sds@gnu.org>.
29486
29487 2010-08-31  Eric Blake  <eblake@redhat.com>
29488         and Jim Meyering  <meyering@redhat.com>
29489
29490         hash: factor, and guard against misbehaving hasher function
29491         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
29492         of table->hasher's return value.  Also protect against a hash value
29493         so large that adding it to table->bucket results in a NULL pointer.
29494         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
29495         Use it in place of open-coded check-and-abort.
29496
29497 2010-08-30  Bruno Haible  <bruno@clisp.org>
29498
29499         hash: silence spurious clang warning
29500         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
29501         Reported by Eric Blake.
29502
29503 2010-08-30  Eric Blake  <eblake@redhat.com>
29504
29505         strstr, memmem, strcasestr: avoid leaked shell message
29506         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
29507         FreeBSD.
29508         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29509         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29510
29511         tests: silence clang warning
29512         * tests/test-malloca.c (do_allocation): Avoid dead store.
29513
29514 2010-08-29  Bruno Haible  <bruno@clisp.org>
29515
29516         gettext: Fix recent mistake.
29517         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
29518
29519 2010-08-29  Bruno Haible  <bruno@clisp.org>
29520
29521         selinux-h: Offer a --without-selinux option.
29522         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
29523         --without-selinux was specified, skip all tests and define
29524         HAVE_SELINUX_SELINUX_H to 0.
29525         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
29526         set LIB_SELINUX to empty.
29527         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
29528         gl_LIBSELINUX. If --without-selinux was specified, replace
29529         selinux/context.h.
29530         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
29531
29532 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29533             Bruno Haible  <bruno@clisp.org>
29534
29535         Make the module 'realloc-gnu' work again on AIX and OSF/1.
29536         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
29537         of HAVE_REALLOC.
29538         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
29539         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
29540         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
29541         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29542
29543 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29544             Bruno Haible  <bruno@clisp.org>
29545
29546         Make the module 'calloc-gnu' work again on AIX and OSF/1.
29547         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
29548         HAVE_CALLOC.
29549         * lib/xmalloc.c: Update accordingly.
29550         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
29551         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
29552         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
29553
29554 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29555             Bruno Haible  <bruno@clisp.org>
29556
29557         Make the module 'malloc-gnu' work again on AIX and OSF/1.
29558         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
29559         HAVE_MALLOC.
29560         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
29561         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
29562         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29563
29564 2010-08-29  Bruno Haible  <bruno@clisp.org>
29565
29566         Update modules list.
29567         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29568         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
29569         (String handling <string.h>): Add astrxfrm.
29570         (File system functions): Add readlinkat.
29571
29572 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29573
29574         Tests for module 'realloc-gnu'.
29575         * modules/realloc-gnu-tests: New file.
29576         * tests/test-realloc-gnu.c: New file.
29577
29578         Tests for module 'calloc-gnu'.
29579         * modules/calloc-gnu-tests: New file.
29580         * tests/test-calloc-gnu.c: New file.
29581
29582         Tests for module 'malloc-gnu'.
29583         * modules/malloc-gnu-tests: New file.
29584         * tests/test-malloc-gnu.c: New file.
29585
29586 2010-08-28  Bruno Haible  <bruno@clisp.org>
29587
29588         Rename module 'realloc' -> 'realloc-gnu'.
29589         * modules/realloc-gnu: New file, copied from modules/realloc.
29590         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
29591         obsolete.
29592         * modules/mgetgroups (Depends-on): Update.
29593         * doc/posix-functions/realloc.texi: Update.
29594         * NEWS: Mention the change.
29595
29596         Rename module 'calloc' -> 'calloc-gnu'.
29597         * modules/calloc-gnu: New file, copied from modules/calloc.
29598         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
29599         obsolete.
29600         * doc/posix-functions/calloc.texi: Update.
29601         * NEWS: Mention the change.
29602
29603         Rename module 'malloc' -> 'malloc-gnu'.
29604         * modules/malloc-gnu: New file, copied from modules/malloc.
29605         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
29606         obsolete.
29607         * modules/argp (Depends-on): Update.
29608         * modules/regex (Depends-on): Update.
29609         * doc/posix-functions/malloc.texi: Update.
29610         * NEWS: Mention the change.
29611
29612 2010-08-28  Eric Blake  <eblake@redhat.com>
29613
29614         pread, pwrite: add missing dependency
29615         * modules/pread (Depends-on): Add extensions.
29616         * modules/pwrite (Depends-on): Likewise.
29617
29618 2010-08-28  Bruno Haible  <bruno@clisp.org>
29619
29620         unistr/u*-strchr: Fix tests dependencies.
29621         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
29622         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
29623         Reported by Ian Beckwith <ianb@erislabs.net>.
29624
29625 2010-08-28  Bruno Haible  <bruno@clisp.org>
29626
29627         read-file: Don't occupy too much unused memory.
29628         * lib/read-file.c (fread_file): Shrink the buffer at the end.
29629
29630 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
29631             Eric Blake  <eblake@redhat.com>
29632             Bruno Haible  <bruno@clisp.org>
29633
29634         read-file: Avoid memory reallocations with regular files.
29635         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
29636         (fread_file): With regular files, use the remaining length as the
29637         initial buffer size.  Check against overflow.
29638         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
29639         sys_stat.
29640
29641 2010-08-28  Bruno Haible  <bruno@clisp.org>
29642
29643         ftello: Relax license.
29644         * modules/ftello (License): Relax to LGPLv2+.
29645         Reported by Eric Blake.
29646
29647 2010-08-28  Bruno Haible  <bruno@clisp.org>
29648
29649         Avoid relocwrapper link errors due to gnulib replacement functions.
29650         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
29651         function.
29652         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29653
29654 2010-08-28  Bruno Haible  <bruno@clisp.org>
29655
29656         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
29657         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
29658         defined.
29659         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
29660         Suggested by Eric Blake.
29661
29662 2010-08-28  Bruno Haible  <bruno@clisp.org>
29663
29664         sys_socket, netdb: Ensure socklen_t gets defined.
29665         * modules/sys_socket (Depends-on): Add socklen.
29666         * modules/netdb (Depends-on): Likewise.
29667         * modules/getaddrinfo (Depends-on): Remove socklen.
29668         * modules/getsockopt (Depends-on): Likewise.
29669         * modules/setsockopt (Depends-on): Likewise.
29670         * tests/test-sys_socket.c: Check that socklen_t is defined.
29671         * tests/test-netdb.c: Likewise.
29672         * m4/socklen.m4: Update comments.
29673         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29674
29675 2010-08-27  Eric Blake  <eblake@redhat.com>
29676
29677         login_tty: add missing dependency
29678         * modules/login_tty (Depends-on): Add pty.
29679
29680 2010-08-26  Eric Blake  <eblake@redhat.com>
29681
29682         lib-symbol-versions: fix m4 quoting
29683         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
29684         format for AC_LINK_IFELSE.
29685
29686         glob: fix compile test
29687         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
29688
29689         btowc: fix missing file
29690         * modules/btowc (Files): Also ship locale-fr.m4.
29691
29692         lseek: fix link test
29693         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
29694         AC_LINK_IFELSE.
29695
29696         include_next: silence autoconf 2.68 warning
29697         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
29698         AC_COMPILE_IFELSE as special.
29699         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
29700         autoconf < 2.68.
29701
29702         acl: fix compilation test
29703         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
29704         AC_COMPILE_IFELSE.
29705
29706 2010-08-26  Bruno Haible  <bruno@clisp.org>
29707
29708         Modernize AC_TRY_RUN invocations.
29709         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
29710         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29711         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
29712         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
29713         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
29714         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29715         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29716         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29717         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29718         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29719         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29720         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29721         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29722         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29723         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29724         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
29725         gl_MBRLEN_NUL_RETVAL): Likewise.
29726         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29727         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29728         Likewise.
29729         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29730         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29731         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29732         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29733         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
29734         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
29735         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
29736         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
29737         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
29738         Likewise.
29739         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
29740         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
29741         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29742         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29743         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29744         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29745         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29746         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
29747         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29748         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29749
29750 2010-08-26  Bruno Haible  <bruno@clisp.org>
29751
29752         Modernize AC_TRY_LINK invocations.
29753         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
29754         AC_TRY_LINK.
29755         * m4/argp.m4 (gl_ARGP): Likewise.
29756         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
29757         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29758         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29759         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29760         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29761         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
29762         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
29763         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
29764         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29765         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29766         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29767         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
29768         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
29769         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29770         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29771         * m4/hostent.m4 (gl_HOSTENT): Likewise.
29772         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29773         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
29774         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
29775         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
29776         Likewise.
29777         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
29778         Likewise.
29779         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
29780         Likewise.
29781         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
29782         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
29783         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
29784         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
29785         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
29786         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29787         * m4/servent.m4 (gl_SERVENT): Likewise.
29788         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
29789         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
29790         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
29791         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
29792         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29793         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29794         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29795         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29796         * modules/tsearch-tests (configure.ac): Likewise.
29797
29798 2010-08-26  Bruno Haible  <bruno@clisp.org>
29799
29800         Modernize AC_TRY_COMPILE invocations.
29801         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
29802         AC_TRY_COMPILE.
29803         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
29804         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
29805         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
29806         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29807         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
29808         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29809         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29810         * m4/lock.m4 (gl_LOCK): Likewise.
29811         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
29812         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29813         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
29814         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29815         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
29816         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
29817         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29818         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
29819         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
29820         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
29821         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
29822         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29823         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
29824         extraneous semicolon.
29825
29826 2010-08-26  Jim Meyering  <meyering@redhat.com>
29827
29828         stat-time: relax license LGPL
29829         * modules/stat-time (License): Change from GPL to LGPL,
29830         with consent from all contributors, for use in libguile.
29831         Requested by Ludovic Courtès.
29832
29833 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
29834
29835         poll: return immediately on POLLHUP.
29836         * lib/poll.c (poll): Always set timeout before wait_timeout is
29837         computed.
29838
29839 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29840
29841         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
29842         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
29843         rmdir ("dir/.//"), unlinkat.
29844
29845 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29846
29847         stdbool: avoid spurious failure with modern xlc
29848         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29849
29850 2010-08-24  Bruno Haible  <bruno@clisp.org>
29851
29852         getloadavg: simplify code
29853         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
29854         gl_have_func. Update comments.
29855
29856 2010-08-24  Eric Blake  <eblake@redhat.com>
29857
29858         getloadavg: don't define SVR4 on cygwin
29859         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
29860         only define SVR4 when -lkvm is required.
29861         Reported by Yaakov Selkowitz.
29862
29863 2010-08-24  Bruno Haible  <bruno@clisp.org>
29864
29865         priv-set: fix comment
29866         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
29867
29868 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29869
29870         priv-set: fix comments
29871         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
29872         to match code, as suggested by David Bartley in:
29873         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
29874
29875 2010-08-23  Eric Blake  <eblake@redhat.com>
29876
29877         stdbool: avoid rejecting clang
29878         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29879         * tests/test-stdbool.c: Enable more tests if using the system
29880         <stdbool.h> instead of the gnulib replacement.
29881         (main): Move xlc bug test to a runtime test for all compilers.
29882         Reported by Anders Kaseorg.
29883
29884         argz: fix shell quoting issue
29885         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
29886         Reported by Charles Wilson.
29887
29888 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
29889             Erik Faye-Lund <kusmabite@gmail.com>
29890
29891         poll, select: handle ERROR_BROKEN_PIPE.
29892         * lib/poll.c (win32_compute_revents): Return POLLHUP when
29893         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29894         * lib/select.c (win32_compute_revents): Do not mark a pipe
29895         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29896
29897 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
29898
29899         fts: allow compilation with C++
29900         * lib/fts_.h: Specify extern "C" linkage with C++.
29901
29902 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29903
29904         Fix gnulib-tool sed script de-commentation for AIX sed.
29905         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
29906         sed.
29907
29908 2010-08-17  Eric Blake  <eblake@redhat.com>
29909
29910         test-stddef: test for (some) offsetof bugs
29911         * tests/test-stddef.c: Enhance test to ensure correct type of
29912         offsetof.
29913         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
29914         that we are not fixing at this time.
29915
29916 2010-08-15  Bruno Haible  <bruno@clisp.org>
29917
29918         stpncpy: Allow stpncpy to be defined as a macro.
29919         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
29920         if it's already correctly declared.
29921         * lib/string.in.h (stpncpy): Undefine before redefining.
29922         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
29923
29924 2010-08-14  Bruno Haible  <bruno@clisp.org>
29925
29926         Rename module 'memxfrm' to 'amemxfrm'.
29927         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
29928         (amemxfrm): Renamed from memxfrm.
29929         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
29930         (amemxfrm): Renamed from memxfrm.
29931         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
29932         * NEWS: Mention the change.
29933         * MODULES.html.sh (String handling <string.h>): Update.
29934         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
29935         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
29936         * lib/unicase/u16-casexfrm.c: Likewise.
29937         * lib/unicase/u32-casexfrm.c: Likewise.
29938         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
29939         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
29940         * lib/uninorm/u16-normxfrm.c: Likewise.
29941         * lib/uninorm/u32-normxfrm.c: Likewise.
29942         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
29943         memxfrm.
29944         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
29945         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
29946         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
29947         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
29948         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
29949         Suggested by Paul Eggert.
29950
29951 2010-08-14  Bruno Haible  <bruno@clisp.org>
29952
29953         Tests for module 'astrxfrm'.
29954         * modules/astrxfrm-tests: New file.
29955         * tests/test-astrxfrm.c: New file.
29956
29957         New module 'astrxfrm'.
29958         * lib/astrxfrm.h: New file.
29959         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
29960         * modules/astrxfrm: New file.
29961
29962 2010-08-14  Reuben Thomas <rrt@sc3d.org>
29963
29964         regex: Tweak doc.
29965         * doc/regex.texi (Overview): Don't mention regex.c.
29966         (GNU Regular Expression Compiling): Likewise.
29967         (Match-end-of-line Operator): Mention 'not_eol'.
29968
29969 2010-08-14  Brian Gough  <bjg@gnu.org>
29970             Bruno Haible  <bruno@clisp.org>
29971
29972         git-merge-changelog: add doc relating to use with bzr and hg.
29973         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
29974
29975 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
29976
29977         pthread: fix pthread.h creation for srcdir != builddir
29978         * modules/pthread (Makefile.am): Fix the rule to work also in a
29979         non-srcdir build.
29980
29981 2010-08-13  Karl Berry  <karl@gnu.org>
29982
29983         * doc/regex.texi (Predefined Syntaxes): @smallexample.
29984         * doc/posix-*/*: force line break before @url of POSIX
29985         specifications.
29986         Suggested by Werner Lemberg.
29987
29988 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29989
29990         strtod: fix const diagnostic
29991         * lib/strtod.c (strtod): Don't assign const char * to char *,
29992         as this elicits a warning from GCC when warnings are enabled.
29993
29994 2010-08-10  Pádraig Brady <P@draigbrady.com>
29995         and Eric Blake  <eblake@redhat.com>
29996
29997         copy-acl: ignore ENOTSUP on HP-UX
29998         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
29999         so that it is available for HP-UX.
30000         * lib/copy-acl.c (qcopy_acl): Use it.
30001         Reported by Patrick M. Callahan.
30002
30003 2010-08-10  Eric Blake  <eblake@redhat.com>
30004
30005         open, chown: relax license
30006         * modules/open (License): Change to LGPLv2+, with consent by all
30007         authors, for use in augeas.
30008         * modules/chown (License): Likewise.
30009         * modules/lchown (Likewise): Likewise.
30010         Requested by Adam Stokes.
30011
30012 2010-08-09  Karl Berry  <karl@gnu.org>
30013
30014         * build-aux/ar-lib: new file, import from Automake.
30015         * config/srclist.txt: autocheck for updates.
30016
30017 2010-08-09  Eric Blake  <eblake@redhat.com>
30018
30019         readlinkat: adjust client modules
30020         * modules/areadlinkat (Depends-on): Use readlinkat, not
30021         symlinkat.
30022         * modules/areadlinkat-with-size (Depends-on): Likewise.
30023
30024         mknod: be more vocal about danger of running tests as root
30025         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
30026         root, since that is just asking for problems.
30027         Suggested by Bruno Haible, based on a report by Rainer Tammer.
30028
30029         readlinkat: split into its own module
30030         * modules/symlinkat: Split readlinkat...
30031         * modules/readlinkat: ...into separate module.
30032         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
30033         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
30034         * lib/symlinkat.c (readlinkat): Move...
30035         * lib/readlinkat.c: ...into new file.
30036         * modules/symlinkat-tests: Split readlinkat test...
30037         * modules/readlinkat-tests: ...into separate module.
30038         * tests/test-symlinkat.c: Split...
30039         * tests/test-readlinkat.c: ...into new file.
30040         * NEWS: Document the split.
30041         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30042         * lib/unistd.in.h (readlinkat): Likewise.
30043         Suggested by Bruno Haible.
30044
30045 2010-08-08  Bruno Haible  <bruno@clisp.org>
30046
30047         memxfrm: Speed up.
30048         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
30049         that usually only one call to strxfrm is necessary for each string
30050         part.
30051         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30052
30053 2010-08-07  Karl Berry  <karl@gnu.org>
30054
30055         * doc/posix-headers/limits.texi,
30056         * doc/posix-functions/malloc.texi,
30057         * doc/posix-functions/strsignal.texi: missing @item.
30058         * doc/ld-version-script.texi: spurious leading i.
30059         * doc/regex.texi (Interval Operators): no commas inside @var.
30060
30061 2010-08-01  Bruno Haible  <bruno@clisp.org>
30062
30063         Integrate the regex documentation.
30064         * doc/gnulib.texi: Define 'cn' index.
30065         (Regular expressions): New a chapter that includes regex.texi and
30066         regexprops-generic.texi.
30067         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
30068         syntax.
30069
30070         Whitespace cleanup.
30071         * doc/regex.texi: Remove trailing spaces.
30072
30073         Add regex documentation.
30074         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
30075         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
30076         Written by Kathy A. Hargreaves and Karl Berry.
30077
30078 2010-08-01  Bruno Haible  <bruno@clisp.org>
30079
30080         link: Update documentation.
30081         * doc/posix-functions/link.texi: Update regarding Solaris.
30082
30083 2010-07-31  Bruno Haible  <bruno@clisp.org>
30084
30085         Update modules list.
30086         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
30087         (String handling <string.h>): Add memcmp2, memxfrm.
30088         (Container data structures): Add xlist, xsublist, xoset.
30089         (Core language properties): Add alignof, unused-parameter.
30090         (Process control, Numeric conversion functions <stdlib.h>): Renamed
30091         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
30092         (Unibyte characters <ctype.h>): New section.
30093         (String handling <string.h>): New section.
30094         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
30095         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
30096         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
30097         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
30098         tan, tanh, tanl, y0, y1, yn.
30099         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
30100         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
30101         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
30102         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
30103         unlockpt, vdprintf, vdprintf-posix.
30104         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
30105         (File system functions): Add concat-filename, sys_file, sys_ioctl,
30106         xconcat-filename.
30107         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
30108         getdtablesize, pipe2, pipe2-safer.
30109         (Security): New section.
30110         (Networking functions): Add accept4.
30111         (Signal handling): Add sigpipe.
30112         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
30113         mbmemcasecoll.
30114         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
30115         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
30116         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
30117         pipe-filter-ii.
30118         (Misc): Add argp-version-etc, login_tty, parse-duration.
30119
30120 2010-07-31  Bruno Haible  <bruno@clisp.org>
30121
30122         Improve doc in MODULES.html.
30123         * modules/linkat (Description): Add the word "function".
30124         * modules/mkfifo (Description): Likewise.
30125         * modules/mknod (Description): Likewise.
30126         * modules/remove (Description): Likewise.
30127         * modules/renameat (Description): Likewise.
30128         * modules/stat (Description): Likewise.
30129         * modules/symlink (Description): Likewise.
30130         * modules/unlink (Description): Likewise.
30131
30132 2010-07-31  Bruno Haible  <bruno@clisp.org>
30133
30134         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
30135         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
30136         option --enable/disable-c++ instead of --enable/disable-cxx.
30137         * NEWS: Mention the change.
30138
30139 2010-07-31  Bruno Haible  <bruno@clisp.org>
30140
30141         readlink, areadlink: Relax test a bit.
30142         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
30143         alternative to ENOTDIR.
30144         * tests/test-areadlink.h (test_areadlink): Likewise.
30145         Reported by Rainer Tammer.
30146
30147 2010-07-31  Bruno Haible  <bruno@clisp.org>
30148
30149         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
30150         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
30151         character, perform the search using U_STRCHR.
30152         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
30153         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
30154         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
30155         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
30156         Suggested by Paolo Bonzini.
30157
30158 2010-07-31  Bruno Haible  <bruno@clisp.org>
30159
30160         unistr/u*-strstr: Fix dependencies.
30161         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
30162         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
30163         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
30164
30165 2010-07-31  Bruno Haible  <bruno@clisp.org>
30166
30167         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
30168         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
30169         the beginning of the loop.
30170         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
30171         cases in 'switch' statement.
30172
30173         unistr/u8-strchr: Fix several bugs.
30174         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
30175         the string. When not found, return NULL, not a pointer near the end.
30176
30177         More tests for unistr/u8-strchr.
30178         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
30179         that the function does not read past the first occurrence of the byte
30180         being searched.
30181         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
30182         * tests/unistr/test-u16-strchr.c (main): New function.
30183         * tests/unistr/test-u32-strchr.c (main): New function.
30184
30185 2010-07-31  Bruno Haible  <bruno@clisp.org>
30186
30187         posix-modules: Ignore backup files of documentation files.
30188         * posix-modules: grep only through files named *.texi.
30189
30190 2010-07-31  Bruno Haible  <bruno@clisp.org>
30191
30192         symlinkat: Fix documentation.
30193         * doc/posix-functions/readlinkat.texi: Fix module name.
30194
30195 2010-07-31  Bruno Haible  <bruno@clisp.org>
30196
30197         fchownat: Replace also when chown has the trailing slash bug.
30198         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
30199         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
30200         introduced on 2010-04-10.
30201         Reported by Rainer Tammer.
30202
30203 2010-07-31  Bruno Haible  <bruno@clisp.org>
30204
30205         linkat: Work around AIX 7.1 bug.
30206         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
30207         whether linkat handles trailing slash correctly. If not, replace linkat
30208         and define LINKAT_TRAILING_SLASH_BUG.
30209         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
30210         check whether (fd1,file1) points to a directory if file1 or file2 ends
30211         in a slash. Code taken from lib/link.c.
30212         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
30213         Reported by Rainer Tammer.
30214
30215 2010-07-31  Bruno Haible  <bruno@clisp.org>
30216
30217         Correctly determine whether pow is available in libc on AIX 7 with xlc.
30218         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
30219         This disables an xlc optimization that was causing wrong test results.
30220         Reported by Rainer Tammer.
30221
30222 2010-07-31  Bruno Haible  <bruno@clisp.org>
30223
30224         iconv: Work around AIX 6.1..7.1 bug.
30225         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
30226         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
30227         cross-compiling, guess no on all versions of AIX.
30228         Reported by Rainer Tammer.
30229
30230 2010-07-31  Bruno Haible  <bruno@clisp.org>
30231
30232         readlink: Relax test a bit.
30233         * tests/test-readlink.h (test_readlink): Allow different errno value
30234         when readlink is called with a file name that ends in / and refers to
30235         a file.
30236         Suggested by Eric Blake.
30237         Reported by Rainer Tammer.
30238
30239 2010-07-31  Bruno Haible  <bruno@clisp.org>
30240
30241         copysign: Does not require -lm on glibc systems.
30242         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
30243         gl_COMMON_DOUBLE_MATHFUNC.
30244         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
30245
30246 2010-07-31  Bruno Haible  <bruno@clisp.org>
30247
30248         duplocale: Work around AIX 7.1 bug.
30249         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
30250         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
30251         * lib/duplocale.c (rpl_duplocale): Update comment.
30252         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
30253         Reported by Rainer Tammer.
30254
30255 2010-07-30  Bruno Haible  <bruno@clisp.org>
30256
30257         dirfd: Avoid link error on AIX 7.1.
30258         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
30259         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
30260         exist, set REPLACE_DIRFD.
30261         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
30262         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
30263         * doc/posix-functions/dirfd.texi: Update.
30264         Reported by Rainer Tammer.
30265
30266 2010-07-30  Eric Blake  <eblake@redhat.com>
30267
30268         strtod: next round of AIX fixes
30269         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
30270         exponent.
30271         * tests/test-strtod.c (main): Enhance tests.
30272         * doc/posix-functions/strtod.texi (strtod): Document next bug.
30273         Reported by Rainer Tammer.
30274
30275         futimens: fix configure check
30276         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
30277         Reported by Bruno Haible.
30278
30279 2010-07-30  Bruno Haible  <bruno@clisp.org>
30280
30281         getline: Update regarding AIX.
30282         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
30283         Reported by Rainer Tammer.
30284
30285 2010-07-30  Bruno Haible  <bruno@clisp.org>
30286
30287         wcwidth: Drop replacement on AIX 7.
30288         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
30289         AIX 7.
30290         Reported by Rainer Tammer.
30291
30292 2010-07-30  Bruno Haible  <bruno@clisp.org>
30293
30294         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
30295         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
30296         a 'char *'.
30297         Reported by Rainer Tammer.
30298
30299 2010-07-30  Bruno Haible  <bruno@clisp.org>
30300
30301         unlink: Update regarding AIX.
30302         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
30303         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
30304         Reported by Rainer Tammer.
30305
30306 2010-07-30  Bruno Haible  <bruno@clisp.org>
30307
30308         symlink: Update regarding AIX.
30309         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
30310         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
30311         Reported by Rainer Tammer.
30312
30313 2010-07-30  Bruno Haible  <bruno@clisp.org>
30314
30315         strndup: Update regarding AIX.
30316         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
30317         AIX 7.
30318         Reported by Rainer Tammer.
30319
30320 2010-07-30  Bruno Haible  <bruno@clisp.org>
30321
30322         stat: Update regarding AIX.
30323         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
30324         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
30325         Reported by Rainer Tammer.
30326
30327 2010-07-30  Bruno Haible  <bruno@clisp.org>
30328
30329         truncl: Fix autoconf test.
30330         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
30331         whether truncl works.
30332         Reported by Rainer Tammer.
30333
30334 2010-07-30  Bruno Haible  <bruno@clisp.org>
30335
30336         round: Update regarding AIX.
30337         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
30338         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
30339         Reported by Rainer Tammer.
30340
30341 2010-07-30  Bruno Haible  <bruno@clisp.org>
30342
30343         rename: Update regarding AIX.
30344         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
30345         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
30346         Reported by Rainer Tammer.
30347
30348 2010-07-30  Bruno Haible  <bruno@clisp.org>
30349
30350         printf.m4: Update regarding AIX.
30351         * m4/printf.m4: Update comments regarding AIX.
30352         Reported by Rainer Tammer.
30353
30354 2010-07-30  Bruno Haible  <bruno@clisp.org>
30355
30356         iconv: Update regarding AIX.
30357         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
30358         AIX 7.
30359         Reported by Rainer Tammer.
30360
30361 2010-07-30  Bruno Haible  <bruno@clisp.org>
30362
30363         getopt: Update regarding AIX.
30364         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
30365         no on AIX.
30366         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
30367         Reported by Rainer Tammer.
30368
30369 2010-07-30  Bruno Haible  <bruno@clisp.org>
30370
30371         ldexpl; Update regarding AIX.
30372         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
30373         on AIX 7.
30374         Reported by Rainer Tammer.
30375
30376 2010-07-30  Bruno Haible  <bruno@clisp.org>
30377
30378         frexpl: Update regarding AIX.
30379         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
30380         on AIX 7.
30381         Reported by Rainer Tammer.
30382
30383 2010-07-30  Bruno Haible  <bruno@clisp.org>
30384
30385         open, fopen: Update regarding AIX.
30386         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
30387         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30388         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
30389         * doc/posix-functions/fopen.texi: Likewise.
30390         Reported by Rainer Tammer.
30391
30392 2010-07-30  Bruno Haible  <bruno@clisp.org>
30393
30394         chown: Update doc regarding AIX.
30395         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
30396         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
30397         Reported by Rainer Tammer.
30398
30399 2010-07-30  Eric Blake  <eblake@redhat.com>
30400
30401         strtod: fix bug in replacement function on AIX
30402         * lib/strtod.c (strtod): Special case broken "0x" parse in
30403         underlying strtod.
30404         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
30405         * doc/posix-functions/strtod.texi (strtod): Likewise.
30406         Reported by Rainer Tammer.
30407
30408 2010-07-30  Bruno Haible  <bruno@clisp.org>
30409
30410         mbrlen: Fix cross-compilation guess for AIX.
30411         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
30412         guess. Leftover from 2008-12-22.
30413
30414 2010-07-30  Bruno Haible  <bruno@clisp.org>
30415
30416         mbrtowc: Fix cross-compilation guess for AIX.
30417         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
30418         guess. Leftover from 2008-12-21.
30419
30420 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
30421
30422         init.sh: work around trap limitation of some shells
30423         * tests/init.sh (setup_): Move exit trap outside of shell function.
30424
30425 2010-07-29  Eric Blake  <eblake@redhat.com>
30426
30427         strtod: aid debugging
30428         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
30429         understanding why strtod is rejected.
30430
30431 2010-07-28  Bruno Haible  <bruno@clisp.org>
30432
30433         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
30434         * lib/unistr/u8-chr.c: Include <string.h>.
30435         * tests/unistr/test-u8-chr.c: Likewise.
30436         * tests/unistr/test-u16-chr.c: Likewise.
30437         * tests/unistr/test-u32-chr.c: Likewise.
30438         * tests/unistr/test-u8-strchr.c: Likewise.
30439         * tests/unistr/test-u16-strchr.c: Likewise.
30440         * tests/unistr/test-u32-strchr.c: Likewise.
30441         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
30442         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
30443         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
30444         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
30445
30446 2010-07-28  Bruno Haible  <bruno@clisp.org>
30447
30448         Use spaces for indentation, not tabs.
30449         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30450
30451 2010-07-27  Bruno Haible  <bruno@clisp.org>
30452
30453         mbspcasecmp: Fix function specification.
30454         * lib/string.in.h (mbspcasecmp): Fix specification comment.
30455         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
30456         Reported by Eric Blake <eblake@redhat.com>.
30457
30458 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
30459
30460         timespec: use cast and not conditional, as truncation isn't possible
30461         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
30462         instead of a conditional.  Comment about the situation in more detail.
30463         This undoes most of the 2009-10-29 patch.
30464
30465 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
30466
30467         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
30468         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
30469         * lib/unistr/u8-strchr.c: Likewise.
30470         * modules/unistr/u8-chr: Depend on memchr.
30471
30472         unistr/u*-strchr: add tests
30473         * modules/unistr/u8-strchr-tests: New file.
30474         * modules/unistr/u16-strchr-tests: New file.
30475         * modules/unistr/u32-strchr-tests: New file.
30476         * tests/unistr/test-strchr.h: New file.
30477         * tests/unistr/test-u8-strchr.c: New file.
30478         * tests/unistr/test-u16-strchr.c: New file.
30479         * tests/unistr/test-u32-strchr.c: New file.
30480
30481         unistr/u*-chr: test multibyte sequences more
30482         * tests/unistr/test-chr.h: Do complete testing of the characters in the
30483         test vector.
30484         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
30485         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
30486         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
30487
30488         unistr/u*-chr: test multibyte sequences
30489         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
30490
30491         unistr/u*-chr: prepare for multibyte tests
30492         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
30493         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
30494         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
30495         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
30496         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
30497         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
30498
30499 2010-07-18  Bruno Haible  <bruno@clisp.org>
30500
30501         unistr/u8-strchr: Optimize non-ASCII argument case.
30502         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
30503         because the first byte often matches anyway.
30504         Reported by Pádraig Brady <P@draigbrady.com>.
30505
30506 2010-07-15  Karl Berry  <karl@gnu.org>
30507
30508         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
30509
30510 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
30511
30512         getcwd: on Solaris, work better if ancestors are inaccessible
30513         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
30514         buffer and size, try again with a large buffer.  This works better
30515         on Solaris, since its getcwd succeeds even if the path to the root
30516         is inaccessible, and this is helpful in common cases such as .zfs
30517         hidden directories.  Problem reported by J Chapman Flack in
30518         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
30519         Use system getcwd if it's declared, not merely if it's partly
30520         working; use the partly-working test only to avoid needless effort
30521         if the system getcwd fails.
30522         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
30523         comment that was already obsolete and is now even more obsolete.
30524         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
30525         now might call strdup.
30526
30527 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
30528
30529         pthread: Add enough so that coreutils/src/sort.c compiles.
30530         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
30531         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
30532         gnulib. Include <sched.h> and <time.h>, as per POSIX.
30533         Include <sys/types.h>, in case it defines pthread_t.
30534         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
30535         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
30536         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
30537         (pthread_rwlockattr_t, pthread_spinlock_t):
30538         New typedefs, if HAVE_PTHREAD_T is not defined.
30539         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
30540         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
30541         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
30542         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
30543         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
30544         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
30545         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
30546         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
30547         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
30548         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
30549         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
30550         New macros.
30551         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
30552         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
30553         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
30554         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
30555         (pthread_spin_unlock): New dummy functions.
30556         (pthread_create): Return EAGAIN; don't set errno.
30557         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
30558         require AC_C_INLINE.
30559         * modules/pthread (Depends-on): Add sched, time.
30560         (pthread.h): Use AM_V_GEN.
30561
30562 2010-07-13  Bruno Haible  <bruno@clisp.org>
30563
30564         striconveh: Don't malloc memory if the result buffer is sufficient.
30565         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
30566         buffer if its size is sufficient.
30567         Reported by Ludovic Courtès <ludo@gnu.org>.
30568
30569 2010-07-13  Bruno Haible  <bruno@clisp.org>
30570
30571         strtod: Add safety check.
30572         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
30573
30574 2010-07-12  Bruno Haible  <bruno@clisp.org>
30575
30576         Unify tests that set gl_cv_func_ldexpl_no_libm.
30577         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
30578         gl_FUNC_LDEXPL.
30579         (gl_FUNC_LDEXPL): Invoke it.
30580         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30581
30582 2010-07-12  Bruno Haible  <bruno@clisp.org>
30583
30584         Unify tests that set gl_cv_func_ldexp_no_libm.
30585         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
30586         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
30587         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
30588         (configure.ac): Simply invoke gl_FUNC_LDEXP.
30589         * modules/strtod (Files): Add m4/ldexp.m4.
30590
30591 2010-07-12  Bruno Haible  <bruno@clisp.org>
30592
30593         Unify tests that set gl_cv_func_frexpl_no_libm.
30594         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
30595         gl_FUNC_FREXPL_NO_LIBM.
30596         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
30597         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30598
30599 2010-07-12  Bruno Haible  <bruno@clisp.org>
30600
30601         Unify tests that set gl_cv_func_frexp_no_libm.
30602         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
30603         gl_FUNC_FREXP_NO_LIBM.
30604         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
30605         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30606
30607 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30608
30609         memcoll: clarify sizes versus lengths, document better, and tweak perf
30610         * lib/memcoll.c (strcoll_loop, memcoll0):
30611         Improve quality of descriptive comments.  Name variables
30612         consistently as to whether they are lengths (which do not include
30613         terminating null) versus sizes (which do).
30614         * lib/xmemcoll.c (xmemcoll0): Likewise.
30615         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
30616         returned when s1size == 0; this is easier to compile and saves
30617         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
30618
30619 2010-07-12  Bruno Haible  <bruno@clisp.org>
30620
30621         Tests for module '_Exit'.
30622         * modules/_Exit-tests: New file.
30623         * tests/test-_Exit.sh: New file.
30624         * tests/test-_Exit.c: New file.
30625
30626         New module '_Exit'.
30627         * lib/stdlib.in.h (__attribute__): New macro.
30628         (_Exit): New declaration.
30629         * lib/_Exit.c: New file.
30630         * m4/_Exit.m4: New file.
30631         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
30632         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
30633         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
30634         * modules/_Exit: New file.
30635         * tests/test-stdlib-c++.cc (_Exit): Check signature.
30636         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
30637
30638 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30639
30640         strtod: make it more-accurate typically, and don't require libm
30641         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
30642         Include limits.h.  Don't include string.h.
30643         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
30644         (locale_isspace): New function, so that no casts are needed to
30645         check whether *s is a space.
30646         (ldexp): Provide an unused dummy if not available.
30647         (scale_radix_exp, parse_number, underlying_strtod): New functions.
30648         (strtod): Use them.  This implementation prefers to use the
30649         underlying strtod if available, falling back on our own code
30650         only to fix known bugs.  This is more likely to produce an
30651         accurate result.  Also, it avoids the use of libm functions.
30652         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
30653         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
30654         was absent, but it caused a test failure with coreutils.
30655         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
30656         with libm.
30657         * modules/strtod (Makefile.am, Link): libm is no longer needed.
30658         * modules/strtod-tests (Makefile.am): Likewise.
30659
30660 2010-07-11  Pádraig Brady  <P@draigBrady.com>
30661             Bruno Haible  <bruno@clisp.org>
30662
30663         unistr/u8-strchr: Optimize ASCII argument case.
30664         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
30665
30666 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
30667
30668         (x)memcoll: minor tweaks
30669         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
30670         is after the type that it qualifies.
30671         (memcoll0): Likewise.
30672         * lib/memcoll.h (memcoll0): Likewise.
30673         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
30674         * lib/xmemcoll.h (xmemcoll0): Likewise.
30675         * lib/memcoll.c (memcoll0): Correct the comment.  This function
30676         differs from memcoll in that the NUL byte is part of the argument.
30677         Omit the abort-checks, as performance is a real issue here.  Plus,
30678         the checks were wrong anyway (an off-by-one error).  Omit local
30679         variable 'diff', as it's a bit clearer that way.
30680         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
30681         no longer needed.
30682
30683 2010-07-08  Chen Guo <chenguo4@yahoo.com>
30684
30685         (x)memcoll: speedup when input is known to be NUL delimited
30686         * lib/memcoll.c: Include stdlib.
30687         (memcoll0): New function.
30688         (strcoll_loop): New function, refactored for use in both memcoll
30689         and memcoll0.
30690         * lib/memcoll.h (memcoll0): Add prototype.
30691         * lib/xmemcoll.c (xmemcoll0): New function.
30692         (collate_error): New function, refactored for use in both xmemcoll
30693         and xmemcoll0.
30694         * lib/xmemcoll.h (xmemcoll0): Add prototype.
30695         * m4/memcoll.m4: add inline invocation.
30696
30697 2010-07-06  Pádraig Brady  <P@draigBrady.com>
30698
30699         * build-aux/bootstrap: Remove any local translations
30700         from the translation project synchronization directory,
30701         so that local only translations are not distributed.
30702
30703 2010-07-04  Bruno Haible  <bruno@clisp.org>
30704
30705         fsusage: Clarify which code applies to which platforms.
30706         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
30707         platform.
30708         * lib/fsusage.c (get_fs_usage): Likewise.
30709
30710 2010-07-04  Bruno Haible  <bruno@clisp.org>
30711
30712         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
30713         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
30714         Reported by Martin Lambers <marlam@marlam.de>.
30715
30716 2010-07-04  Jim Meyering  <meyering@redhat.com>
30717
30718         hash: once again explicitly disallow insertion of NULL
30719         * lib/hash.c (hash_insert0): Reinstate just-removed test:
30720         inserting a NULL pointer cannot work with these functions.
30721         Add a comment with details.
30722         This reverts part of the 2010-07-01 commit, 5bef1a35
30723         "hash: extend module to deal with non-pointer keys".
30724
30725 2010-07-01  Bruno Haible  <bruno@clisp.org>
30726
30727         stdbool: Update doc.
30728         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
30729         Info from Christian Weisgerber <naddy@mips.inka.de>.
30730
30731 2010-07-01  Jim Meyering  <meyering@redhat.com>
30732
30733         hash: extend module to deal with non-pointer keys
30734         * lib/hash.c (hash_insert0): New interface, much like hash_insert
30735         but that allows insertion of non-pointer entries.
30736         Do not disallow an ENTRY value of NULL.
30737         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
30738         * lib/hash.h (hash_insert0): Declare.
30739
30740 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
30741
30742         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
30743         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
30744         not present (i.e. with autoconf 2.59 and when using gettextize, not
30745         gnulib), require AC_GNU_SOURCE instead.
30746
30747 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
30748
30749         idpriv-drop: Fix tests.
30750         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
30751         not to the test-idpriv-droptemp program.
30752
30753 2010-06-29  Bruno Haible  <bruno@clisp.org>
30754
30755         string: Fix syntax error with g++ 2.96.
30756         * lib/string.in.h (__pure__): Remove definition.
30757         (_GL_ATTRIBUTE_PURE): New macro.
30758         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
30759         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
30760         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30761
30762 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
30763
30764         unitypes: Fix bug introduced on 2010-05-18.
30765         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
30766
30767 2010-06-22  Eric Blake  <eblake@redhat.com>
30768
30769         memmem: slight optimization
30770         * lib/str-two-way.h (critical_factorization): Update comments.
30771         Reduce work during factorization phase.
30772         Reported by Carlos Bueno <carlos@bueno.org>.
30773
30774 2010-06-21  Bruno Haible  <bruno@clisp.org>
30775
30776         Fix HAVE_CALLOC_POSIX misnomer.
30777         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
30778         !HAVE_CALLOC_POSIX.
30779         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
30780         HAVE_CALLOC_POSIX.
30781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
30782         instead of HAVE_CALLOC_POSIX.
30783         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
30784         HAVE_CALLOC_POSIX.
30785
30786         Use modern idiom for calloc() replacement.
30787         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
30788         AC_FUNC_CALLOC.
30789         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
30790         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
30791         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30792         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
30793         (gl_REPLACE_CALLOC): New macro.
30794
30795 2010-06-21  Bruno Haible  <bruno@clisp.org>
30796
30797         Fix HAVE_REALLOC_POSIX misnomer.
30798         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
30799         !HAVE_REALLOC_POSIX.
30800         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
30801         HAVE_REALLOC_POSIX.
30802         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
30803         instead of HAVE_REALLOC_POSIX.
30804         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
30805         HAVE_REALLOC_POSIX.
30806
30807         Use modern idiom for realloc() replacement.
30808         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
30809         AC_FUNC_REALLOC.
30810         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
30811         Autoconf's AC_FUNC_REALLOC.
30812         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30813         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
30814         (gl_REPLACE_REALLOC): New macro.
30815         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30816
30817 2010-06-21  Bruno Haible  <bruno@clisp.org>
30818
30819         Fix HAVE_MALLOC_POSIX misnomer.
30820         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
30821         !HAVE_MALLOC_POSIX.
30822         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
30823         HAVE_MALLOC_POSIX.
30824         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
30825         instead of HAVE_MALLOC_POSIX.
30826         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
30827         HAVE_MALLOC_POSIX.
30828
30829         Use modern idiom for malloc() replacement.
30830         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
30831         AC_FUNC_MALLOC.
30832         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
30833         Autoconf's AC_FUNC_MALLOC.
30834         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30835         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
30836         (gl_REPLACE_MALLOC): New macro.
30837         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30838
30839 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
30840
30841         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
30842         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
30843         This macro takes 3 arguments, not 4.
30844
30845 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
30846
30847         ipv6: fix detection under mingw
30848         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
30849         in6_addr.
30850
30851 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
30852
30853         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
30854         that strtod() works when cross-compiling to a glibc version known
30855         to work.
30856
30857 2010-06-15  Bruno Haible  <bruno@clisp.org>
30858
30859         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
30860
30861 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
30862
30863         select: Correct timeout.
30864         * lib/select.c (rpl_select): Compute wait_timeout correctly.
30865
30866 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30867
30868         git-version-gen: init shell var to avoid env var influence
30869         * build-aux/git-version-gen (v): Init shell var to empty.
30870
30871 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
30872
30873         priv-set: Don't assume that priv.h exists merely because getppriv does.
30874         See Jan Andersen's bug report about AIX 5L in
30875         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
30876         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
30877         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
30878         * lib/priv-set.h: Likewise.
30879         * tests/test-priv-set.c: Likewise.
30880
30881 2010-06-13  Bruno Haible  <bruno@clisp.org>
30882
30883         relocatable: Make it easier to test whether to install wrappers.
30884         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
30885         RELOCATABLE_VIA_WRAPPER.
30886
30887 2010-06-13  Bruno Haible  <bruno@clisp.org>
30888
30889         gnulib-tool: Display specified modules and dependencies differently.
30890         * gnulib-tool (func_show_module_list): New function.
30891         (func_import, func_create_testdir): Invoke it.
30892         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30893
30894 2010-06-13  Bruno Haible  <bruno@clisp.org>
30895
30896         gnulib-tool: Align code of func_import and func_create_testdir.
30897         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
30898         specified_modules.
30899
30900 2010-06-12  Jim Meyering  <meyering@redhat.com>
30901
30902         test-inttostr: avoid spurious failure on Solaris 9
30903         * tests/test-inttostr.c (main): Skip the test when snprintf fails
30904         to accept "%ju".  Reported by Bruno Haible.
30905
30906 2010-06-11  Jim Meyering  <meyering@redhat.com>
30907
30908         test-sys_socket: mark variables as used more readably
30909         * tests/test-sys_socket.c (main): Mark otherwise unused variables
30910         as "used" explicitly via (void) statement casts.  This is more
30911         readable than using them in an artificial return expression.
30912         Suggestion from Bruno Haible.
30913
30914 2010-06-11  Bruno Haible  <bruno@clisp.org>
30915
30916         Avoid some more warnings from "gcc -Wwrite-strings".
30917         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
30918         to 'const char *'.
30919         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
30920         * tests/test-c-strcasestr.c (main): Likewise.
30921         * tests/test-mbscasestr1.c (main): Likewise.
30922         * tests/test-mbscasestr2.c (main): Likewise.
30923         * tests/test-memmem.c (main): Likewise.
30924         * tests/test-strstr.c (main): Likewise.
30925         * tests/test-strcasestr.c (main): Likewise.
30926
30927 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30928
30929         init.sh: change framework_failure_ to fail with status 99, not 1
30930         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
30931         automake's parallel-tests rule that this is an unexpected failure,
30932         even if the test is listed in XFAIL_TESTS.
30933
30934 2010-06-11  Jim Meyering  <meyering@redhat.com>
30935
30936         test-inttostr: avoid warnings about 4-6KB literal strings
30937         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
30938         Include "macros.h", for its definition of ASSERT.
30939         (CK): s/assert/ASSERT/
30940         * modules/inttostr-tests (Files): Add macros.h.
30941
30942         init.sh: don't use $ME_ or skip_ before they are defined
30943         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
30944         their first uses.  Also hoist their companions: warn_, fail_,
30945         framework_failure_, $stderr_fileno.  Prompted by a patch from
30946         Stefano Lattarini.
30947
30948         test-sys_socket: avoid set-but-not-used warnings from gcc
30949         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
30950         avoid warning about set-but-not-used variables.
30951
30952         test-xvasprintf: avoid 'const' discard warnings
30953         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
30954         "const" when assigning from literal strings.
30955         (test_xasprintf): Add "void" in function argument list to placate
30956         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
30957
30958         tests: avoid compilation warnings in argmatch and exclude tests...
30959         in packages that define ARGMATCH_DIE_DECL, like coreutils.
30960         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
30961         Since it always exits, declare with the "noreturn" attribute.
30962         * tests/test-argmatch.c: Likewise.
30963
30964         tests: avoid 'const' discard warnings in mbsstr tests
30965         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
30966         * tests/test-mbsstr2.c (main): Likewise.
30967
30968         test-verify: avoid warning from gcc's -Wmissing-declarations
30969         * tests/test-verify.c (function): Declare to be static.
30970
30971         test-inttostr.c: include <string.h> for use of strcmp
30972         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
30973
30974         test-linkat: avoid failed assertion on "other" architectures
30975         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
30976         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
30977         sparc: https://bugs.launchpad.net/bugs/591968
30978
30979 2010-06-11  Jim Meyering  <meyering@redhat.com>
30980
30981         printf.m4: avoid autoconf's "Expanded Before Required" warning
30982         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
30983         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
30984         autoconf warning.
30985
30986 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
30987
30988         Replacement header templates are now named with ".in", not "_".
30989         * doc/gnulib-intro.texi: Correct.
30990
30991 2010-06-10  Jim Meyering  <meyering@redhat.com>
30992
30993         inttostr-tests: depend on snprintf, not snprintf-posix
30994         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
30995         snprintf-posix, to avoid this aclocal failure:
30996           missing file gnulib-tests/vasnprintf.c
30997           configure.ac:45: error: expected source file, required through \
30998           AC_LIBSOURCES, not found
30999
31000 2010-06-10  Jim Meyering  <meyering@redhat.com>
31001
31002         inttostr: add a new function, inttostr, and tests
31003         The namesake function was not available.  The existence of the
31004         template file, inttostr.c makes its addition nontrivial.
31005         * lib/anytostr.c: Rename from inttostr.c.
31006         (anytostr): Rename from inttostr.
31007         * lib/inttostr.c: New file.
31008         * modules/inttostr (Files): Add anytostr.c.
31009         (Makefile.am): Set lib_SOURCES instead of ...
31010         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
31011         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
31012         * lib/offtostr.c: Likewise.
31013         * lib/uinttostr.c: Likewise.
31014         * lib/umaxtostr.c: Likewise.
31015         * modules/inttostr-tests: New file.
31016         * tests/test-inttostr.c: New file.  Test these functions.
31017
31018 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
31019             Bruno Haible  <bruno@clisp.org>
31020
31021         Add "Extending Gnulib" chapter to manual.
31022         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
31023         chapter.
31024         (Extending Gnulib): New chapter.
31025         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
31026         chapter.
31027
31028 2010-06-09  Bruno Haible  <bruno@clisp.org>
31029
31030         Avoid relocwrapper link errors due to gnulib replacement functions.
31031         * lib/areadlink.c: Use the system's malloc, realloc functions.
31032         (areadlink): Set errno to ENOMEM explicitly.
31033         * modules/areadlink (Depends-on): Remove malloc-posix.
31034         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31035
31036 2010-06-09  Bruno Haible  <bruno@clisp.org>
31037
31038         Avoid relocwrapper link errors due to gnulib replacement functions.
31039         * lib/canonicalize-lgpl.c: Use the system's malloc function.
31040         * lib/malloca.c: Likewise.
31041         * lib/relocatable.c: Likewise.
31042         * lib/progreloc.c: Use the system's malloc, sprintf functions.
31043         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
31044         * lib/setenv.c: Use the system's malloc, realloc functions.
31045         * lib/strerror.c: Use the system's sprintf function.
31046         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31047
31048 2010-06-04  Bruno Haible  <bruno@clisp.org>
31049
31050         Prefer documented low-level autoconf macro names.
31051         * m4/lib-link.m4: Use m4_translit instead of translit.
31052         * m4/environ.m4: Likewise.
31053         * m4/mathfunc.m4: Likewise.
31054         * m4/onceonly.m4: Likewise.
31055         * m4/stdint.m4: Likewise.
31056         Suggested by Eric Blake.
31057
31058 2010-06-04  Martin Lambers  <marlam@marlam.de>
31059             Bruno Haible  <bruno@clisp.org>
31060
31061         havelib: Allow library names with '+' characters.
31062         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31063         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
31064
31065 2010-06-09  Bruno Haible  <bruno@clisp.org>
31066
31067         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
31068         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
31069         realloc failed.
31070
31071 2010-06-08  Peter Simons  <simons@cryp.to>
31072
31073         maint.mk: make the news-check rule more configurable
31074         * top/maint.mk (news-check-lines-spec): New variable.
31075         (news-check): Use "sed -n 1,10p" in place of "head".
31076
31077 2010-06-07  Jim Meyering  <meyering@redhat.com>
31078
31079         do-release-commit-and-tag: fix typo in --help
31080         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
31081
31082         regex: avoid new dead-code warning with gcc-4.6.0
31083         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
31084         if-block containing a while-loop.  It's been unused for at least
31085         5 years.
31086
31087 2010-06-05  Bruno Haible  <bruno@clisp.org>
31088
31089         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
31090         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
31091
31092 2010-06-04  Bruno Haible  <bruno@clisp.org>
31093
31094         Update to GNU gettext 0.18.1.
31095         * modules/gettext (configure.ac): Require gettext infrastructure from
31096         version 0.18.1.
31097
31098 2010-06-03  Bruno Haible  <bruno@clisp.org>
31099
31100         Don't use AC_LIBOBJ with file names in subdirectories.
31101         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
31102         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
31103         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
31104         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
31105         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
31106         gl_LIBUNISTRING_LIBSOURCE.
31107         (Makefile.am): Augment lib_SOURCES here, conditionally.
31108         * NEWS: Drop requirement for Automake option 'subdir-objects'.
31109
31110 2010-06-03  Bruno Haible  <bruno@clisp.org>
31111
31112         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
31113         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
31114         expansion does not end with a newline.
31115         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
31116         unnecessary newline.
31117
31118 2010-06-03  Bruno Haible  <bruno@clisp.org>
31119
31120         Reduce dependencies.
31121         * tests/test-quotearg.h: New file, extracted from
31122         tests/test-quotearg.c.
31123         * tests/test-quotearg-simple.c: New file, extracted from
31124         tests/test-quotearg.c.
31125         * tests/test-quotearg.c: Don't include <ctype.h>.
31126         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
31127         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
31128         use_quote_double_quotes, use_quotearg_colon): Moved to
31129         tests/test-quotearg.h.
31130         (results_g, flag_results, custom_quotes, custom_results): Moved
31131         to tests/test-quotearg-simple.c.
31132         (main): Moved the part that does not depend on gettext to
31133         tests/test-quotearg-simple.c. Return 77 if the test cannot be
31134         performed.
31135         * modules/quotearg-simple: New file.
31136         * modules/quotearg-simple-tests: New file.
31137         * modules/quotearg (Depends-on): Add quotearg-simple.
31138         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
31139         (Files): Add tests/test-quotearg.h.
31140         Reported by Paolo Bonzini.
31141
31142 2010-06-03  Bruno Haible  <bruno@clisp.org>
31143
31144         Reduce dependencies.
31145         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
31146
31147 2010-06-03  Bruno Haible  <bruno@clisp.org>
31148
31149         time: Undefine more broken macros.
31150         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
31151         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
31152         Reported by Eric Blake.
31153
31154 2010-06-03  Bruno Haible  <bruno@clisp.org>
31155
31156         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
31157         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
31158         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
31159         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
31160         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
31161         Reported by Ludovic Courtès <ludo@gnu.org>.
31162
31163 2010-06-02  Eric Blake  <eblake@redhat.com>
31164
31165         time: work with mingw + pthreads-win32 library
31166         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
31167         if timespec is defined only in pthread.h.
31168         * modules/time (Makefile.am): Substitute it.
31169         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
31170         <pthread.h>, when needed.
31171         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
31172         from the library.
31173
31174 2010-05-31  Bruno Haible  <bruno@clisp.org>
31175
31176         Avoid expanding two macros in the wrong order.
31177         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
31178         gl_LIBUNISTRING if it is defined.
31179         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
31180         autoconf >= 2.64.
31181         Reported by Ludovic Courtès <ludo@gnu.org>.
31182
31183 2010-05-27  Jim Meyering  <meyering@redhat.com>
31184
31185         maint.mk: also prohibit "#undef" of always-defined symbols
31186         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
31187         Allow more than one space before the symbol name.
31188         (sc_prohibit_always-defined_macros): Use grep's -E, now that
31189         the regexp uses alternation.
31190
31191 2010-05-26  Eric Blake  <eblake@redhat.com>
31192
31193         maint.mk: avoid echo -e
31194         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
31195         Convert all uses of echo -* to printf.
31196         Reported by Matthias Bolte.
31197
31198 2010-05-25  Bruno Haible  <bruno@clisp.org>
31199
31200         Update to GNU gettext 0.18, part 2.
31201         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
31202         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
31203
31204 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31205
31206         Add missing include in test-pwrite.c.
31207         * tests/test-pwrite.c: Include string.h, for strcmp.
31208
31209 2010-05-24  Bruno Haible  <bruno@clisp.org>
31210
31211         * NEWS: Mention requirement for Automake option 'subdir-objects'.
31212
31213 2010-05-24  Bruno Haible  <bruno@clisp.org>
31214
31215         Don't use conversion with transliteration in u{8,16,32}_strcoll.
31216         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
31217         iconveh_error argument.
31218         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
31219         U_STRCONV_TO_LOCALE.
31220         * lib/unistr/u16-strcoll.c: Likewise.
31221         * lib/unistr/u32-strcoll.c: Likewise.
31222         * modules/unistr/u8-strcoll (Depends-on): Add
31223         uniconv/u8-strconv-to-enc, localcharset. Remove
31224         uniconv/u8-strconv-to-locale.
31225         (configure.ac): Bump version number.
31226         * modules/unistr/u16-strcoll (Depends-on): Add
31227         uniconv/u16-strconv-to-enc, localcharset. Remove
31228         uniconv/u16-strconv-to-locale.
31229         (configure.ac): Bump version number.
31230         * modules/unistr/u32-strcoll (Depends-on): Add
31231         uniconv/u32-strconv-to-enc, localcharset. Remove
31232         uniconv/u32-strconv-to-locale.
31233         (configure.ac): Bump version number.
31234
31235 2010-05-24  Bruno Haible  <bruno@clisp.org>
31236
31237         Avoid a test failure on NetBSD 5.0.
31238         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
31239         an iconv() bug.
31240
31241 2010-05-24  Bruno Haible  <bruno@clisp.org>
31242
31243         Adjust #include directive style.
31244         * modules/regex (Includes): Recommend to write <regex.h>.
31245
31246 2010-05-24  Bruno Haible  <bruno@clisp.org>
31247
31248         regex: Don't require alloca.
31249         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
31250         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
31251         only inside if (0).
31252
31253 2010-05-23  Jim Meyering  <meyering@redhat.com>
31254
31255         test-renameat.c: include <sys/stat.h>
31256         * tests/test-renameat.c: Include <sys/stat.h>; required for
31257         definition of S_IS* macros.
31258
31259 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
31260
31261         Update maintainer documentation for 'relocatable-prog' module.
31262         * doc/relocatable-maint.texi: Update.
31263         Comments by Bruno Haible.
31264
31265 2010-05-23  Bruno Haible  <bruno@clisp.org>
31266
31267         git-merge-changelog: Enable --split-merged-entry by default.
31268         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
31269         (usage): Don't mention this option any more.
31270         Reported by Ralf Wildenhues.
31271
31272 2010-05-23  Jim Meyering  <meyering@redhat.com>
31273
31274         test-pwrite: do not leave behind a test file named "out"
31275         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
31276         The trivial-looking use of init.sh is really necessary.
31277         It ensures that the temporary file, "out", is created in
31278         a temporary directory, and removed upon termination.
31279         * tests/test-pwrite.sh: Re-add file.
31280         * modules/pwrite-tests: Reference it.
31281
31282 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31283
31284         Fix output redirection buglet in init.sh.
31285         * tests/init.sh: Fix redirection of stderr.
31286
31287 2010-05-20  Simon Josefsson  <simon@josefsson.org>
31288
31289         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
31290
31291 2010-05-17  Simon Josefsson  <simon@josefsson.org>
31292
31293         * modules/valgrind-tests: New file.
31294         * m4/valgrind-tests.m4: New file.
31295         * doc/valgrind-tests.texi: New file.
31296         * doc/gnulib.texi (Running self-tests under valgrind): New
31297         section.
31298
31299 2010-05-19  Bruno Haible  <bruno@clisp.org>
31300
31301         Clean up dead code in recent commit.
31302         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
31303         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
31304         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
31305         Suggested by Paolo Bonzini.
31306
31307 2010-05-19  Bruno Haible  <bruno@clisp.org>
31308
31309         Avoid valgrind error reports from libunistring.
31310         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
31311         * modules/libunistring (Files): Add it.
31312         * modules/libunistring-optional (Files): Likewise.
31313
31314 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
31315             Bruno Haible  <bruno@clisp.org>
31316
31317         New module 'libunistring-optional'.
31318         * modules/libunistring-optional: New file.
31319         * m4/libunistring-base.m4: New file.
31320         * m4/libunistring-optional.m4: New file.
31321         * lib/unicase.in.h: Renamed from lib/unicase.h.
31322         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
31323         * lib/unictype.in.h: Renamed from lib/unictype.h.
31324         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
31325         * lib/uniname.in.h: Renamed from lib/uniname.h.
31326         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
31327         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
31328         * lib/unistr.in.h: Renamed from lib/unistr.h.
31329         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
31330         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
31331         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
31332         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
31333         gl_LIBUNISTRING. If the library was found, determine the installed
31334         version and set LIBUNISTRING_VERSION.
31335         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
31336         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
31337         handle a configuration option --with-included-libunistring.
31338         * modules/libunistring (Files): Add m4/absolute-header.m4.
31339         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
31340         Add m4/libunistring-base.m4.
31341         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31342         (Makefile.am): Build unicase.h from unicase.in.h.
31343         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
31344         Add m4/libunistring-base.m4.
31345         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31346         (Makefile.am): Build uniconv.h from uniconv.in.h.
31347         * modules/unictype/base (Files): Use unictype.in.h instead of
31348         unictype.h. Add m4/libunistring-base.m4.
31349         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31350         (Makefile.am): Build unictype.h from unictype.in.h.
31351         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
31352         Add m4/libunistring-base.m4.
31353         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31354         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
31355         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
31356         Add m4/libunistring-base.m4.
31357         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31358         (Makefile.am): Build uniname.h from uniname.in.h.
31359         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
31360         Add m4/libunistring-base.m4.
31361         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31362         (Makefile.am): Build uninorm.h from uninorm.in.h.
31363         * modules/unistdio/base (Files): Use unistdio.in.h instead of
31364         unistdio.h. Add m4/libunistring-base.m4.
31365         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31366         (Makefile.am): Build unistdio.h from unistdio.in.h.
31367         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
31368         Add m4/libunistring-base.m4.
31369         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31370         (Makefile.am): Build unistr.h from unistr.in.h.
31371         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
31372         Add m4/libunistring-base.m4.
31373         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31374         (Makefile.am): Build unitypes.h from unitypes.in.h.
31375         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
31376         Add m4/libunistring-base.m4.
31377         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31378         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
31379         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
31380         uniwidth.h. Add m4/libunistring-base.m4.
31381         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31382         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
31383         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
31384         instead of augmenting lib_SOURCES.
31385         * modules/unicase/empty-suffix-context: Likewise.
31386         * modules/unicase/locale-language: Likewise.
31387         * modules/unicase/tolower: Likewise.
31388         * modules/unicase/totitle: Likewise.
31389         * modules/unicase/toupper: Likewise.
31390         * modules/unicase/u8-casecmp: Likewise.
31391         * modules/unicase/u8-casecoll: Likewise.
31392         * modules/unicase/u8-casefold: Likewise.
31393         * modules/unicase/u8-casexfrm: Likewise.
31394         * modules/unicase/u8-ct-casefold: Likewise.
31395         * modules/unicase/u8-ct-tolower: Likewise.
31396         * modules/unicase/u8-ct-totitle: Likewise.
31397         * modules/unicase/u8-ct-toupper: Likewise.
31398         * modules/unicase/u8-is-cased: Likewise.
31399         * modules/unicase/u8-is-casefolded: Likewise.
31400         * modules/unicase/u8-is-lowercase: Likewise.
31401         * modules/unicase/u8-is-titlecase: Likewise.
31402         * modules/unicase/u8-is-uppercase: Likewise.
31403         * modules/unicase/u8-prefix-context: Likewise.
31404         * modules/unicase/u8-suffix-context: Likewise.
31405         * modules/unicase/u8-tolower: Likewise.
31406         * modules/unicase/u8-totitle: Likewise.
31407         * modules/unicase/u8-toupper: Likewise.
31408         * modules/unicase/u16-casecmp: Likewise.
31409         * modules/unicase/u16-casecoll: Likewise.
31410         * modules/unicase/u16-casefold: Likewise.
31411         * modules/unicase/u16-casexfrm: Likewise.
31412         * modules/unicase/u16-ct-casefold: Likewise.
31413         * modules/unicase/u16-ct-tolower: Likewise.
31414         * modules/unicase/u16-ct-totitle: Likewise.
31415         * modules/unicase/u16-ct-toupper: Likewise.
31416         * modules/unicase/u16-is-cased: Likewise.
31417         * modules/unicase/u16-is-casefolded: Likewise.
31418         * modules/unicase/u16-is-lowercase: Likewise.
31419         * modules/unicase/u16-is-titlecase: Likewise.
31420         * modules/unicase/u16-is-uppercase: Likewise.
31421         * modules/unicase/u16-prefix-context: Likewise.
31422         * modules/unicase/u16-suffix-context: Likewise.
31423         * modules/unicase/u16-tolower: Likewise.
31424         * modules/unicase/u16-totitle: Likewise.
31425         * modules/unicase/u16-toupper: Likewise.
31426         * modules/unicase/u32-casecmp: Likewise.
31427         * modules/unicase/u32-casecoll: Likewise.
31428         * modules/unicase/u32-casefold: Likewise.
31429         * modules/unicase/u32-casexfrm: Likewise.
31430         * modules/unicase/u32-ct-casefold: Likewise.
31431         * modules/unicase/u32-ct-tolower: Likewise.
31432         * modules/unicase/u32-ct-totitle: Likewise.
31433         * modules/unicase/u32-ct-toupper: Likewise.
31434         * modules/unicase/u32-is-cased: Likewise.
31435         * modules/unicase/u32-is-casefolded: Likewise.
31436         * modules/unicase/u32-is-lowercase: Likewise.
31437         * modules/unicase/u32-is-titlecase: Likewise.
31438         * modules/unicase/u32-is-uppercase: Likewise.
31439         * modules/unicase/u32-prefix-context: Likewise.
31440         * modules/unicase/u32-suffix-context: Likewise.
31441         * modules/unicase/u32-tolower: Likewise.
31442         * modules/unicase/u32-totitle: Likewise.
31443         * modules/unicase/u32-toupper: Likewise.
31444         * modules/unicase/ulc-casecmp: Likewise.
31445         * modules/unicase/ulc-casecoll: Likewise.
31446         * modules/unicase/ulc-casexfrm: Likewise.
31447         * modules/uniconv/u8-conv-from-enc: Likewise.
31448         * modules/uniconv/u8-conv-to-enc: Likewise.
31449         * modules/uniconv/u8-strconv-from-enc: Likewise.
31450         * modules/uniconv/u8-strconv-from-locale: Likewise.
31451         * modules/uniconv/u8-strconv-to-enc: Likewise.
31452         * modules/uniconv/u8-strconv-to-locale: Likewise.
31453         * modules/uniconv/u16-conv-from-enc: Likewise.
31454         * modules/uniconv/u16-conv-to-enc: Likewise.
31455         * modules/uniconv/u16-strconv-from-enc: Likewise.
31456         * modules/uniconv/u16-strconv-from-locale: Likewise.
31457         * modules/uniconv/u16-strconv-to-enc: Likewise.
31458         * modules/uniconv/u16-strconv-to-locale: Likewise.
31459         * modules/uniconv/u32-conv-from-enc: Likewise.
31460         * modules/uniconv/u32-conv-to-enc: Likewise.
31461         * modules/uniconv/u32-strconv-from-enc: Likewise.
31462         * modules/uniconv/u32-strconv-from-locale: Likewise.
31463         * modules/uniconv/u32-strconv-to-enc: Likewise.
31464         * modules/uniconv/u32-strconv-to-locale: Likewise.
31465         * modules/unictype/bidicategory-byname: Likewise.
31466         * modules/unictype/bidicategory-name: Likewise.
31467         * modules/unictype/bidicategory-of: Likewise.
31468         * modules/unictype/bidicategory-test: Likewise.
31469         * modules/unictype/block-list: Likewise.
31470         * modules/unictype/block-test: Likewise.
31471         * modules/unictype/category-C: Likewise.
31472         * modules/unictype/category-Cc: Likewise.
31473         * modules/unictype/category-Cf: Likewise.
31474         * modules/unictype/category-Cn: Likewise.
31475         * modules/unictype/category-Co: Likewise.
31476         * modules/unictype/category-Cs: Likewise.
31477         * modules/unictype/category-L: Likewise.
31478         * modules/unictype/category-Ll: Likewise.
31479         * modules/unictype/category-Lm: Likewise.
31480         * modules/unictype/category-Lo: Likewise.
31481         * modules/unictype/category-Lt: Likewise.
31482         * modules/unictype/category-Lu: Likewise.
31483         * modules/unictype/category-M: Likewise.
31484         * modules/unictype/category-Mc: Likewise.
31485         * modules/unictype/category-Me: Likewise.
31486         * modules/unictype/category-Mn: Likewise.
31487         * modules/unictype/category-N: Likewise.
31488         * modules/unictype/category-Nd: Likewise.
31489         * modules/unictype/category-Nl: Likewise.
31490         * modules/unictype/category-No: Likewise.
31491         * modules/unictype/category-P: Likewise.
31492         * modules/unictype/category-Pc: Likewise.
31493         * modules/unictype/category-Pd: Likewise.
31494         * modules/unictype/category-Pe: Likewise.
31495         * modules/unictype/category-Pf: Likewise.
31496         * modules/unictype/category-Pi: Likewise.
31497         * modules/unictype/category-Po: Likewise.
31498         * modules/unictype/category-Ps: Likewise.
31499         * modules/unictype/category-S: Likewise.
31500         * modules/unictype/category-Sc: Likewise.
31501         * modules/unictype/category-Sk: Likewise.
31502         * modules/unictype/category-Sm: Likewise.
31503         * modules/unictype/category-So: Likewise.
31504         * modules/unictype/category-Z: Likewise.
31505         * modules/unictype/category-Zl: Likewise.
31506         * modules/unictype/category-Zp: Likewise.
31507         * modules/unictype/category-Zs: Likewise.
31508         * modules/unictype/category-and: Likewise.
31509         * modules/unictype/category-and-not: Likewise.
31510         * modules/unictype/category-byname: Likewise.
31511         * modules/unictype/category-name: Likewise.
31512         * modules/unictype/category-none: Likewise.
31513         * modules/unictype/category-of: Likewise.
31514         * modules/unictype/category-or: Likewise.
31515         * modules/unictype/category-test: Likewise.
31516         * modules/unictype/combining-class: Likewise.
31517         * modules/unictype/ctype-alnum: Likewise.
31518         * modules/unictype/ctype-alpha: Likewise.
31519         * modules/unictype/ctype-blank: Likewise.
31520         * modules/unictype/ctype-cntrl: Likewise.
31521         * modules/unictype/ctype-digit: Likewise.
31522         * modules/unictype/ctype-graph: Likewise.
31523         * modules/unictype/ctype-lower: Likewise.
31524         * modules/unictype/ctype-print: Likewise.
31525         * modules/unictype/ctype-punct: Likewise.
31526         * modules/unictype/ctype-space: Likewise.
31527         * modules/unictype/ctype-upper: Likewise.
31528         * modules/unictype/ctype-xdigit: Likewise.
31529         * modules/unictype/decimal-digit: Likewise.
31530         * modules/unictype/digit: Likewise.
31531         * modules/unictype/mirror: Likewise.
31532         * modules/unictype/numeric: Likewise.
31533         * modules/unictype/property-alphabetic: Likewise.
31534         * modules/unictype/property-ascii-hex-digit: Likewise.
31535         * modules/unictype/property-bidi-arabic-digit: Likewise.
31536         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
31537         * modules/unictype/property-bidi-block-separator: Likewise.
31538         * modules/unictype/property-bidi-boundary-neutral: Likewise.
31539         * modules/unictype/property-bidi-common-separator: Likewise.
31540         * modules/unictype/property-bidi-control: Likewise.
31541         * modules/unictype/property-bidi-embedding-or-override: Likewise.
31542         * modules/unictype/property-bidi-eur-num-separator: Likewise.
31543         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
31544         * modules/unictype/property-bidi-european-digit: Likewise.
31545         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
31546         * modules/unictype/property-bidi-left-to-right: Likewise.
31547         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
31548         * modules/unictype/property-bidi-other-neutral: Likewise.
31549         * modules/unictype/property-bidi-pdf: Likewise.
31550         * modules/unictype/property-bidi-segment-separator: Likewise.
31551         * modules/unictype/property-bidi-whitespace: Likewise.
31552         * modules/unictype/property-byname: Likewise.
31553         * modules/unictype/property-combining: Likewise.
31554         * modules/unictype/property-composite: Likewise.
31555         * modules/unictype/property-currency-symbol: Likewise.
31556         * modules/unictype/property-dash: Likewise.
31557         * modules/unictype/property-decimal-digit: Likewise.
31558         * modules/unictype/property-default-ignorable-code-point: Likewise.
31559         * modules/unictype/property-deprecated: Likewise.
31560         * modules/unictype/property-diacritic: Likewise.
31561         * modules/unictype/property-extender: Likewise.
31562         * modules/unictype/property-format-control: Likewise.
31563         * modules/unictype/property-grapheme-base: Likewise.
31564         * modules/unictype/property-grapheme-extend: Likewise.
31565         * modules/unictype/property-grapheme-link: Likewise.
31566         * modules/unictype/property-hex-digit: Likewise.
31567         * modules/unictype/property-hyphen: Likewise.
31568         * modules/unictype/property-id-continue: Likewise.
31569         * modules/unictype/property-id-start: Likewise.
31570         * modules/unictype/property-ideographic: Likewise.
31571         * modules/unictype/property-ids-binary-operator: Likewise.
31572         * modules/unictype/property-ids-trinary-operator: Likewise.
31573         * modules/unictype/property-ignorable-control: Likewise.
31574         * modules/unictype/property-iso-control: Likewise.
31575         * modules/unictype/property-join-control: Likewise.
31576         * modules/unictype/property-left-of-pair: Likewise.
31577         * modules/unictype/property-line-separator: Likewise.
31578         * modules/unictype/property-logical-order-exception: Likewise.
31579         * modules/unictype/property-lowercase: Likewise.
31580         * modules/unictype/property-math: Likewise.
31581         * modules/unictype/property-non-break: Likewise.
31582         * modules/unictype/property-not-a-character: Likewise.
31583         * modules/unictype/property-numeric: Likewise.
31584         * modules/unictype/property-other-alphabetic: Likewise.
31585         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
31586         * modules/unictype/property-other-grapheme-extend: Likewise.
31587         * modules/unictype/property-other-id-continue: Likewise.
31588         * modules/unictype/property-other-id-start: Likewise.
31589         * modules/unictype/property-other-lowercase: Likewise.
31590         * modules/unictype/property-other-math: Likewise.
31591         * modules/unictype/property-other-uppercase: Likewise.
31592         * modules/unictype/property-paired-punctuation: Likewise.
31593         * modules/unictype/property-paragraph-separator: Likewise.
31594         * modules/unictype/property-pattern-syntax: Likewise.
31595         * modules/unictype/property-pattern-white-space: Likewise.
31596         * modules/unictype/property-private-use: Likewise.
31597         * modules/unictype/property-punctuation: Likewise.
31598         * modules/unictype/property-quotation-mark: Likewise.
31599         * modules/unictype/property-radical: Likewise.
31600         * modules/unictype/property-sentence-terminal: Likewise.
31601         * modules/unictype/property-soft-dotted: Likewise.
31602         * modules/unictype/property-space: Likewise.
31603         * modules/unictype/property-terminal-punctuation: Likewise.
31604         * modules/unictype/property-test: Likewise.
31605         * modules/unictype/property-titlecase: Likewise.
31606         * modules/unictype/property-unassigned-code-value: Likewise.
31607         * modules/unictype/property-unified-ideograph: Likewise.
31608         * modules/unictype/property-uppercase: Likewise.
31609         * modules/unictype/property-variation-selector: Likewise.
31610         * modules/unictype/property-white-space: Likewise.
31611         * modules/unictype/property-xid-continue: Likewise.
31612         * modules/unictype/property-xid-start: Likewise.
31613         * modules/unictype/property-zero-width: Likewise.
31614         * modules/unictype/scripts: Likewise.
31615         * modules/unictype/syntax-c-ident: Likewise.
31616         * modules/unictype/syntax-c-whitespace: Likewise.
31617         * modules/unictype/syntax-java-ident: Likewise.
31618         * modules/unictype/syntax-java-whitespace: Likewise.
31619         * modules/unilbrk/u8-possible-linebreaks: Likewise.
31620         * modules/unilbrk/u8-width-linebreaks: Likewise.
31621         * modules/unilbrk/u16-possible-linebreaks: Likewise.
31622         * modules/unilbrk/u16-width-linebreaks: Likewise.
31623         * modules/unilbrk/u32-possible-linebreaks: Likewise.
31624         * modules/unilbrk/u32-width-linebreaks: Likewise.
31625         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
31626         * modules/unilbrk/ulc-width-linebreaks: Likewise.
31627         * modules/uniname/uniname: Likewise.
31628         * modules/uninorm/canonical-decomposition: Likewise.
31629         * modules/uninorm/composition: Likewise.
31630         * modules/uninorm/decomposing-form: Likewise.
31631         * modules/uninorm/decomposition: Likewise.
31632         * modules/uninorm/filter: Likewise.
31633         * modules/uninorm/nfc: Likewise.
31634         * modules/uninorm/nfd: Likewise.
31635         * modules/uninorm/nfkc: Likewise.
31636         * modules/uninorm/nfkd: Likewise.
31637         * modules/uninorm/u8-normalize: Likewise.
31638         * modules/uninorm/u8-normcmp: Likewise.
31639         * modules/uninorm/u8-normcoll: Likewise.
31640         * modules/uninorm/u8-normxfrm: Likewise.
31641         * modules/uninorm/u16-normalize: Likewise.
31642         * modules/uninorm/u16-normcmp: Likewise.
31643         * modules/uninorm/u16-normcoll: Likewise.
31644         * modules/uninorm/u16-normxfrm: Likewise.
31645         * modules/uninorm/u32-normalize: Likewise.
31646         * modules/uninorm/u32-normcmp: Likewise.
31647         * modules/uninorm/u32-normcoll: Likewise.
31648         * modules/uninorm/u32-normxfrm: Likewise.
31649         * modules/unistdio/u8-asnprintf: Likewise.
31650         * modules/unistdio/u8-asprintf: Likewise.
31651         * modules/unistdio/u8-snprintf: Likewise.
31652         * modules/unistdio/u8-sprintf: Likewise.
31653         * modules/unistdio/u8-u8-asnprintf: Likewise.
31654         * modules/unistdio/u8-u8-asprintf: Likewise.
31655         * modules/unistdio/u8-u8-snprintf: Likewise.
31656         * modules/unistdio/u8-u8-sprintf: Likewise.
31657         * modules/unistdio/u8-u8-vasnprintf: Likewise.
31658         * modules/unistdio/u8-u8-vasprintf: Likewise.
31659         * modules/unistdio/u8-u8-vsnprintf: Likewise.
31660         * modules/unistdio/u8-u8-vsprintf: Likewise.
31661         * modules/unistdio/u8-vasnprintf: Likewise.
31662         * modules/unistdio/u8-vasprintf: Likewise.
31663         * modules/unistdio/u8-vsnprintf: Likewise.
31664         * modules/unistdio/u8-vsprintf: Likewise.
31665         * modules/unistdio/u16-asnprintf: Likewise.
31666         * modules/unistdio/u16-asprintf: Likewise.
31667         * modules/unistdio/u16-snprintf: Likewise.
31668         * modules/unistdio/u16-sprintf: Likewise.
31669         * modules/unistdio/u16-u16-asnprintf: Likewise.
31670         * modules/unistdio/u16-u16-asprintf: Likewise.
31671         * modules/unistdio/u16-u16-snprintf: Likewise.
31672         * modules/unistdio/u16-u16-sprintf: Likewise.
31673         * modules/unistdio/u16-u16-vasnprintf: Likewise.
31674         * modules/unistdio/u16-u16-vasprintf: Likewise.
31675         * modules/unistdio/u16-u16-vsnprintf: Likewise.
31676         * modules/unistdio/u16-u16-vsprintf: Likewise.
31677         * modules/unistdio/u16-vasnprintf: Likewise.
31678         * modules/unistdio/u16-vasprintf: Likewise.
31679         * modules/unistdio/u16-vsnprintf: Likewise.
31680         * modules/unistdio/u16-vsprintf: Likewise.
31681         * modules/unistdio/u32-asnprintf: Likewise.
31682         * modules/unistdio/u32-asprintf: Likewise.
31683         * modules/unistdio/u32-snprintf: Likewise.
31684         * modules/unistdio/u32-sprintf: Likewise.
31685         * modules/unistdio/u32-u32-asnprintf: Likewise.
31686         * modules/unistdio/u32-u32-asprintf: Likewise.
31687         * modules/unistdio/u32-u32-snprintf: Likewise.
31688         * modules/unistdio/u32-u32-sprintf: Likewise.
31689         * modules/unistdio/u32-u32-vasnprintf: Likewise.
31690         * modules/unistdio/u32-u32-vasprintf: Likewise.
31691         * modules/unistdio/u32-u32-vsnprintf: Likewise.
31692         * modules/unistdio/u32-u32-vsprintf: Likewise.
31693         * modules/unistdio/u32-vasnprintf: Likewise.
31694         * modules/unistdio/u32-vasprintf: Likewise.
31695         * modules/unistdio/u32-vsnprintf: Likewise.
31696         * modules/unistdio/u32-vsprintf: Likewise.
31697         * modules/unistdio/ulc-asnprintf: Likewise.
31698         * modules/unistdio/ulc-asprintf: Likewise.
31699         * modules/unistdio/ulc-fprintf: Likewise.
31700         * modules/unistdio/ulc-snprintf: Likewise.
31701         * modules/unistdio/ulc-sprintf: Likewise.
31702         * modules/unistdio/ulc-vasnprintf: Likewise.
31703         * modules/unistdio/ulc-vasprintf: Likewise.
31704         * modules/unistdio/ulc-vfprintf: Likewise.
31705         * modules/unistdio/ulc-vsnprintf: Likewise.
31706         * modules/unistdio/ulc-vsprintf: Likewise.
31707         * modules/unistr/u8-check: Likewise.
31708         * modules/unistr/u8-chr: Likewise.
31709         * modules/unistr/u8-cmp: Likewise.
31710         * modules/unistr/u8-cmp2: Likewise.
31711         * modules/unistr/u8-cpy: Likewise.
31712         * modules/unistr/u8-cpy-alloc: Likewise.
31713         * modules/unistr/u8-endswith: Likewise.
31714         * modules/unistr/u8-mblen: Likewise.
31715         * modules/unistr/u8-mbsnlen: Likewise.
31716         * modules/unistr/u8-mbtouc: Likewise.
31717         * modules/unistr/u8-mbtouc-unsafe: Likewise.
31718         * modules/unistr/u8-mbtoucr: Likewise.
31719         * modules/unistr/u8-move: Likewise.
31720         * modules/unistr/u8-next: Likewise.
31721         * modules/unistr/u8-prev: Likewise.
31722         * modules/unistr/u8-set: Likewise.
31723         * modules/unistr/u8-startswith: Likewise.
31724         * modules/unistr/u8-stpcpy: Likewise.
31725         * modules/unistr/u8-stpncpy: Likewise.
31726         * modules/unistr/u8-strcat: Likewise.
31727         * modules/unistr/u8-strchr: Likewise.
31728         * modules/unistr/u8-strcmp: Likewise.
31729         * modules/unistr/u8-strcoll: Likewise.
31730         * modules/unistr/u8-strcpy: Likewise.
31731         * modules/unistr/u8-strcspn: Likewise.
31732         * modules/unistr/u8-strdup: Likewise.
31733         * modules/unistr/u8-strlen: Likewise.
31734         * modules/unistr/u8-strmblen: Likewise.
31735         * modules/unistr/u8-strmbtouc: Likewise.
31736         * modules/unistr/u8-strncat: Likewise.
31737         * modules/unistr/u8-strncmp: Likewise.
31738         * modules/unistr/u8-strncpy: Likewise.
31739         * modules/unistr/u8-strnlen: Likewise.
31740         * modules/unistr/u8-strpbrk: Likewise.
31741         * modules/unistr/u8-strrchr: Likewise.
31742         * modules/unistr/u8-strspn: Likewise.
31743         * modules/unistr/u8-strstr: Likewise.
31744         * modules/unistr/u8-strtok: Likewise.
31745         * modules/unistr/u8-to-u16: Likewise.
31746         * modules/unistr/u8-to-u32: Likewise.
31747         * modules/unistr/u8-uctomb: Likewise.
31748         * modules/unistr/u16-check: Likewise.
31749         * modules/unistr/u16-chr: Likewise.
31750         * modules/unistr/u16-cmp: Likewise.
31751         * modules/unistr/u16-cmp2: Likewise.
31752         * modules/unistr/u16-cpy: Likewise.
31753         * modules/unistr/u16-cpy-alloc: Likewise.
31754         * modules/unistr/u16-endswith: Likewise.
31755         * modules/unistr/u16-mblen: Likewise.
31756         * modules/unistr/u16-mbsnlen: Likewise.
31757         * modules/unistr/u16-mbtouc: Likewise.
31758         * modules/unistr/u16-mbtouc-unsafe: Likewise.
31759         * modules/unistr/u16-mbtoucr: Likewise.
31760         * modules/unistr/u16-move: Likewise.
31761         * modules/unistr/u16-next: Likewise.
31762         * modules/unistr/u16-prev: Likewise.
31763         * modules/unistr/u16-set: Likewise.
31764         * modules/unistr/u16-startswith: Likewise.
31765         * modules/unistr/u16-stpcpy: Likewise.
31766         * modules/unistr/u16-stpncpy: Likewise.
31767         * modules/unistr/u16-strcat: Likewise.
31768         * modules/unistr/u16-strchr: Likewise.
31769         * modules/unistr/u16-strcmp: Likewise.
31770         * modules/unistr/u16-strcoll: Likewise.
31771         * modules/unistr/u16-strcpy: Likewise.
31772         * modules/unistr/u16-strcspn: Likewise.
31773         * modules/unistr/u16-strdup: Likewise.
31774         * modules/unistr/u16-strlen: Likewise.
31775         * modules/unistr/u16-strmblen: Likewise.
31776         * modules/unistr/u16-strmbtouc: Likewise.
31777         * modules/unistr/u16-strncat: Likewise.
31778         * modules/unistr/u16-strncmp: Likewise.
31779         * modules/unistr/u16-strncpy: Likewise.
31780         * modules/unistr/u16-strnlen: Likewise.
31781         * modules/unistr/u16-strpbrk: Likewise.
31782         * modules/unistr/u16-strrchr: Likewise.
31783         * modules/unistr/u16-strspn: Likewise.
31784         * modules/unistr/u16-strstr: Likewise.
31785         * modules/unistr/u16-strtok: Likewise.
31786         * modules/unistr/u16-to-u32: Likewise.
31787         * modules/unistr/u16-to-u8: Likewise.
31788         * modules/unistr/u16-uctomb: Likewise.
31789         * modules/unistr/u32-check: Likewise.
31790         * modules/unistr/u32-chr: Likewise.
31791         * modules/unistr/u32-cmp: Likewise.
31792         * modules/unistr/u32-cmp2: Likewise.
31793         * modules/unistr/u32-cpy: Likewise.
31794         * modules/unistr/u32-cpy-alloc: Likewise.
31795         * modules/unistr/u32-endswith: Likewise.
31796         * modules/unistr/u32-mblen: Likewise.
31797         * modules/unistr/u32-mbsnlen: Likewise.
31798         * modules/unistr/u32-mbtouc: Likewise.
31799         * modules/unistr/u32-mbtouc-unsafe: Likewise.
31800         * modules/unistr/u32-mbtoucr: Likewise.
31801         * modules/unistr/u32-move: Likewise.
31802         * modules/unistr/u32-next: Likewise.
31803         * modules/unistr/u32-prev: Likewise.
31804         * modules/unistr/u32-set: Likewise.
31805         * modules/unistr/u32-startswith: Likewise.
31806         * modules/unistr/u32-stpcpy: Likewise.
31807         * modules/unistr/u32-stpncpy: Likewise.
31808         * modules/unistr/u32-strcat: Likewise.
31809         * modules/unistr/u32-strchr: Likewise.
31810         * modules/unistr/u32-strcmp: Likewise.
31811         * modules/unistr/u32-strcoll: Likewise.
31812         * modules/unistr/u32-strcpy: Likewise.
31813         * modules/unistr/u32-strcspn: Likewise.
31814         * modules/unistr/u32-strdup: Likewise.
31815         * modules/unistr/u32-strlen: Likewise.
31816         * modules/unistr/u32-strmblen: Likewise.
31817         * modules/unistr/u32-strmbtouc: Likewise.
31818         * modules/unistr/u32-strncat: Likewise.
31819         * modules/unistr/u32-strncmp: Likewise.
31820         * modules/unistr/u32-strncpy: Likewise.
31821         * modules/unistr/u32-strnlen: Likewise.
31822         * modules/unistr/u32-strpbrk: Likewise.
31823         * modules/unistr/u32-strrchr: Likewise.
31824         * modules/unistr/u32-strspn: Likewise.
31825         * modules/unistr/u32-strstr: Likewise.
31826         * modules/unistr/u32-strtok: Likewise.
31827         * modules/unistr/u32-to-u16: Likewise.
31828         * modules/unistr/u32-to-u8: Likewise.
31829         * modules/unistr/u32-uctomb: Likewise.
31830         * modules/uniwbrk/u8-wordbreaks: Likewise.
31831         * modules/uniwbrk/u16-wordbreaks: Likewise.
31832         * modules/uniwbrk/u32-wordbreaks: Likewise.
31833         * modules/uniwbrk/ulc-wordbreaks: Likewise.
31834         * modules/uniwbrk/wordbreak-property: Likewise.
31835         * modules/uniwidth/u8-strwidth: Likewise.
31836         * modules/uniwidth/u8-width: Likewise.
31837         * modules/uniwidth/u16-strwidth: Likewise.
31838         * modules/uniwidth/u16-width: Likewise.
31839         * modules/uniwidth/u32-strwidth: Likewise.
31840         * modules/uniwidth/u32-width: Likewise.
31841         * modules/uniwidth/width: Likewise.
31842         * modules/unicase/cased-tests (Makefile.am): Link all test programs
31843         with $(LIBUNISTRING).
31844         * modules/unicase/ignorable-tests: Likewise.
31845         * modules/unicase/locale-language-tests: Likewise.
31846         * modules/unicase/tolower-tests: Likewise.
31847         * modules/unicase/totitle-tests: Likewise.
31848         * modules/unicase/toupper-tests: Likewise.
31849         * modules/unicase/u8-casecmp-tests: Likewise.
31850         * modules/unicase/u8-casecoll-tests: Likewise.
31851         * modules/unicase/u8-casefold-tests: Likewise.
31852         * modules/unicase/u8-is-cased-tests: Likewise.
31853         * modules/unicase/u8-is-casefolded-tests: Likewise.
31854         * modules/unicase/u8-is-lowercase-tests: Likewise.
31855         * modules/unicase/u8-is-titlecase-tests: Likewise.
31856         * modules/unicase/u8-is-uppercase-tests: Likewise.
31857         * modules/unicase/u8-tolower-tests: Likewise.
31858         * modules/unicase/u8-totitle-tests: Likewise.
31859         * modules/unicase/u8-toupper-tests: Likewise.
31860         * modules/unicase/u16-casecmp-tests: Likewise.
31861         * modules/unicase/u16-casecoll-tests: Likewise.
31862         * modules/unicase/u16-casefold-tests: Likewise.
31863         * modules/unicase/u16-is-cased-tests: Likewise.
31864         * modules/unicase/u16-is-casefolded-tests: Likewise.
31865         * modules/unicase/u16-is-lowercase-tests: Likewise.
31866         * modules/unicase/u16-is-titlecase-tests: Likewise.
31867         * modules/unicase/u16-is-uppercase-tests: Likewise.
31868         * modules/unicase/u16-tolower-tests: Likewise.
31869         * modules/unicase/u16-totitle-tests: Likewise.
31870         * modules/unicase/u16-toupper-tests: Likewise.
31871         * modules/unicase/u32-casecmp-tests: Likewise.
31872         * modules/unicase/u32-casecoll-tests: Likewise.
31873         * modules/unicase/u32-casefold-tests: Likewise.
31874         * modules/unicase/u32-is-cased-tests: Likewise.
31875         * modules/unicase/u32-is-casefolded-tests: Likewise.
31876         * modules/unicase/u32-is-lowercase-tests: Likewise.
31877         * modules/unicase/u32-is-titlecase-tests: Likewise.
31878         * modules/unicase/u32-is-uppercase-tests: Likewise.
31879         * modules/unicase/u32-tolower-tests: Likewise.
31880         * modules/unicase/u32-totitle-tests: Likewise.
31881         * modules/unicase/u32-toupper-tests: Likewise.
31882         * modules/unicase/ulc-casecmp-tests: Likewise.
31883         * modules/unicase/ulc-casecoll-tests: Likewise.
31884         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
31885         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
31886         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
31887         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
31888         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
31889         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
31890         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
31891         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
31892         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
31893         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
31894         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
31895         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
31896         * modules/unictype/bidicategory-byname-tests: Likewise.
31897         * modules/unictype/bidicategory-name-tests: Likewise.
31898         * modules/unictype/bidicategory-of-tests: Likewise.
31899         * modules/unictype/bidicategory-test-tests: Likewise.
31900         * modules/unictype/block-list-tests: Likewise.
31901         * modules/unictype/block-of-tests: Likewise.
31902         * modules/unictype/block-test-tests: Likewise.
31903         * modules/unictype/category-C-tests: Likewise.
31904         * modules/unictype/category-Cc-tests: Likewise.
31905         * modules/unictype/category-Cf-tests: Likewise.
31906         * modules/unictype/category-Cn-tests: Likewise.
31907         * modules/unictype/category-Co-tests: Likewise.
31908         * modules/unictype/category-Cs-tests: Likewise.
31909         * modules/unictype/category-L-tests: Likewise.
31910         * modules/unictype/category-Ll-tests: Likewise.
31911         * modules/unictype/category-Lm-tests: Likewise.
31912         * modules/unictype/category-Lo-tests: Likewise.
31913         * modules/unictype/category-Lt-tests: Likewise.
31914         * modules/unictype/category-Lu-tests: Likewise.
31915         * modules/unictype/category-M-tests: Likewise.
31916         * modules/unictype/category-Mc-tests: Likewise.
31917         * modules/unictype/category-Me-tests: Likewise.
31918         * modules/unictype/category-Mn-tests: Likewise.
31919         * modules/unictype/category-N-tests: Likewise.
31920         * modules/unictype/category-Nd-tests: Likewise.
31921         * modules/unictype/category-Nl-tests: Likewise.
31922         * modules/unictype/category-No-tests: Likewise.
31923         * modules/unictype/category-P-tests: Likewise.
31924         * modules/unictype/category-Pc-tests: Likewise.
31925         * modules/unictype/category-Pd-tests: Likewise.
31926         * modules/unictype/category-Pe-tests: Likewise.
31927         * modules/unictype/category-Pf-tests: Likewise.
31928         * modules/unictype/category-Pi-tests: Likewise.
31929         * modules/unictype/category-Po-tests: Likewise.
31930         * modules/unictype/category-Ps-tests: Likewise.
31931         * modules/unictype/category-S-tests: Likewise.
31932         * modules/unictype/category-Sc-tests: Likewise.
31933         * modules/unictype/category-Sk-tests: Likewise.
31934         * modules/unictype/category-Sm-tests: Likewise.
31935         * modules/unictype/category-So-tests: Likewise.
31936         * modules/unictype/category-Z-tests: Likewise.
31937         * modules/unictype/category-Zl-tests: Likewise.
31938         * modules/unictype/category-Zp-tests: Likewise.
31939         * modules/unictype/category-Zs-tests: Likewise.
31940         * modules/unictype/category-and-not-tests: Likewise.
31941         * modules/unictype/category-and-tests: Likewise.
31942         * modules/unictype/category-byname-tests: Likewise.
31943         * modules/unictype/category-name-tests: Likewise.
31944         * modules/unictype/category-none-tests: Likewise.
31945         * modules/unictype/category-of-tests: Likewise.
31946         * modules/unictype/category-or-tests: Likewise.
31947         * modules/unictype/category-test-withtable-tests: Likewise.
31948         * modules/unictype/combining-class-tests: Likewise.
31949         * modules/unictype/ctype-alnum-tests: Likewise.
31950         * modules/unictype/ctype-alpha-tests: Likewise.
31951         * modules/unictype/ctype-blank-tests: Likewise.
31952         * modules/unictype/ctype-cntrl-tests: Likewise.
31953         * modules/unictype/ctype-digit-tests: Likewise.
31954         * modules/unictype/ctype-graph-tests: Likewise.
31955         * modules/unictype/ctype-lower-tests: Likewise.
31956         * modules/unictype/ctype-print-tests: Likewise.
31957         * modules/unictype/ctype-punct-tests: Likewise.
31958         * modules/unictype/ctype-space-tests: Likewise.
31959         * modules/unictype/ctype-upper-tests: Likewise.
31960         * modules/unictype/ctype-xdigit-tests: Likewise.
31961         * modules/unictype/decimal-digit-tests: Likewise.
31962         * modules/unictype/digit-tests: Likewise.
31963         * modules/unictype/mirror-tests: Likewise.
31964         * modules/unictype/numeric-tests: Likewise.
31965         * modules/unictype/property-alphabetic-tests: Likewise.
31966         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
31967         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
31968         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
31969         * modules/unictype/property-bidi-block-separator-tests: Likewise.
31970         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
31971         * modules/unictype/property-bidi-common-separator-tests: Likewise.
31972         * modules/unictype/property-bidi-control-tests: Likewise.
31973         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
31974         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
31975         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
31976         * modules/unictype/property-bidi-european-digit-tests: Likewise.
31977         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
31978         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
31979         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
31980         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
31981         * modules/unictype/property-bidi-pdf-tests: Likewise.
31982         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
31983         * modules/unictype/property-bidi-whitespace-tests: Likewise.
31984         * modules/unictype/property-byname-tests: Likewise.
31985         * modules/unictype/property-combining-tests: Likewise.
31986         * modules/unictype/property-composite-tests: Likewise.
31987         * modules/unictype/property-currency-symbol-tests: Likewise.
31988         * modules/unictype/property-dash-tests: Likewise.
31989         * modules/unictype/property-decimal-digit-tests: Likewise.
31990         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
31991         * modules/unictype/property-deprecated-tests: Likewise.
31992         * modules/unictype/property-diacritic-tests: Likewise.
31993         * modules/unictype/property-extender-tests: Likewise.
31994         * modules/unictype/property-format-control-tests: Likewise.
31995         * modules/unictype/property-grapheme-base-tests: Likewise.
31996         * modules/unictype/property-grapheme-extend-tests: Likewise.
31997         * modules/unictype/property-grapheme-link-tests: Likewise.
31998         * modules/unictype/property-hex-digit-tests: Likewise.
31999         * modules/unictype/property-hyphen-tests: Likewise.
32000         * modules/unictype/property-id-continue-tests: Likewise.
32001         * modules/unictype/property-id-start-tests: Likewise.
32002         * modules/unictype/property-ideographic-tests: Likewise.
32003         * modules/unictype/property-ids-binary-operator-tests: Likewise.
32004         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
32005         * modules/unictype/property-ignorable-control-tests: Likewise.
32006         * modules/unictype/property-iso-control-tests: Likewise.
32007         * modules/unictype/property-join-control-tests: Likewise.
32008         * modules/unictype/property-left-of-pair-tests: Likewise.
32009         * modules/unictype/property-line-separator-tests: Likewise.
32010         * modules/unictype/property-logical-order-exception-tests: Likewise.
32011         * modules/unictype/property-lowercase-tests: Likewise.
32012         * modules/unictype/property-math-tests: Likewise.
32013         * modules/unictype/property-non-break-tests: Likewise.
32014         * modules/unictype/property-not-a-character-tests: Likewise.
32015         * modules/unictype/property-numeric-tests: Likewise.
32016         * modules/unictype/property-other-alphabetic-tests: Likewise.
32017         * modules/unictype/property-other-default-ignorable-code-point-tests:
32018         Likewise.
32019         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
32020         * modules/unictype/property-other-id-continue-tests: Likewise.
32021         * modules/unictype/property-other-id-start-tests: Likewise.
32022         * modules/unictype/property-other-lowercase-tests: Likewise.
32023         * modules/unictype/property-other-math-tests: Likewise.
32024         * modules/unictype/property-other-uppercase-tests: Likewise.
32025         * modules/unictype/property-paired-punctuation-tests: Likewise.
32026         * modules/unictype/property-paragraph-separator-tests: Likewise.
32027         * modules/unictype/property-pattern-syntax-tests: Likewise.
32028         * modules/unictype/property-pattern-white-space-tests: Likewise.
32029         * modules/unictype/property-private-use-tests: Likewise.
32030         * modules/unictype/property-punctuation-tests: Likewise.
32031         * modules/unictype/property-quotation-mark-tests: Likewise.
32032         * modules/unictype/property-radical-tests: Likewise.
32033         * modules/unictype/property-sentence-terminal-tests: Likewise.
32034         * modules/unictype/property-soft-dotted-tests: Likewise.
32035         * modules/unictype/property-space-tests: Likewise.
32036         * modules/unictype/property-terminal-punctuation-tests: Likewise.
32037         * modules/unictype/property-test-tests: Likewise.
32038         * modules/unictype/property-titlecase-tests: Likewise.
32039         * modules/unictype/property-unassigned-code-value-tests: Likewise.
32040         * modules/unictype/property-unified-ideograph-tests: Likewise.
32041         * modules/unictype/property-uppercase-tests: Likewise.
32042         * modules/unictype/property-variation-selector-tests: Likewise.
32043         * modules/unictype/property-white-space-tests: Likewise.
32044         * modules/unictype/property-xid-continue-tests: Likewise.
32045         * modules/unictype/property-xid-start-tests: Likewise.
32046         * modules/unictype/property-zero-width-tests: Likewise.
32047         * modules/unictype/scripts-tests: Likewise.
32048         * modules/unictype/syntax-c-ident-tests: Likewise.
32049         * modules/unictype/syntax-c-whitespace-tests: Likewise.
32050         * modules/unictype/syntax-java-ident-tests: Likewise.
32051         * modules/unictype/syntax-java-whitespace-tests: Likewise.
32052         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
32053         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
32054         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
32055         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
32056         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
32057         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
32058         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
32059         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
32060         * modules/uniname/uniname-tests: Likewise.
32061         * modules/uninorm/canonical-decomposition-tests: Likewise.
32062         * modules/uninorm/compat-decomposition-tests: Likewise.
32063         * modules/uninorm/composition-tests: Likewise.
32064         * modules/uninorm/decomposing-form-tests: Likewise.
32065         * modules/uninorm/decomposition-tests: Likewise.
32066         * modules/uninorm/filter-tests: Likewise.
32067         * modules/uninorm/nfc-tests: Likewise.
32068         * modules/uninorm/nfd-tests: Likewise.
32069         * modules/uninorm/nfkc-tests: Likewise.
32070         * modules/uninorm/nfkd-tests: Likewise.
32071         * modules/uninorm/u8-normcmp-tests: Likewise.
32072         * modules/uninorm/u8-normcoll-tests: Likewise.
32073         * modules/uninorm/u16-normcmp-tests: Likewise.
32074         * modules/uninorm/u16-normcoll-tests: Likewise.
32075         * modules/uninorm/u32-normcmp-tests: Likewise.
32076         * modules/uninorm/u32-normcoll-tests: Likewise.
32077         * modules/unistdio/u8-asnprintf-tests: Likewise.
32078         * modules/unistdio/u8-vasnprintf-tests: Likewise.
32079         * modules/unistdio/u8-vasprintf-tests: Likewise.
32080         * modules/unistdio/u8-vsnprintf-tests: Likewise.
32081         * modules/unistdio/u8-vsprintf-tests: Likewise.
32082         * modules/unistdio/u16-asnprintf-tests: Likewise.
32083         * modules/unistdio/u16-vasnprintf-tests: Likewise.
32084         * modules/unistdio/u16-vasprintf-tests: Likewise.
32085         * modules/unistdio/u16-vsnprintf-tests: Likewise.
32086         * modules/unistdio/u16-vsprintf-tests: Likewise.
32087         * modules/unistdio/u32-asnprintf-tests: Likewise.
32088         * modules/unistdio/u32-vasnprintf-tests: Likewise.
32089         * modules/unistdio/u32-vasprintf-tests: Likewise.
32090         * modules/unistdio/u32-vsnprintf-tests: Likewise.
32091         * modules/unistdio/u32-vsprintf-tests: Likewise.
32092         * modules/unistdio/ulc-asnprintf-tests: Likewise.
32093         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
32094         * modules/unistdio/ulc-vasprintf-tests: Likewise.
32095         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
32096         * modules/unistdio/ulc-vsprintf-tests: Likewise.
32097         * modules/unistr/u8-check-tests: Likewise.
32098         * modules/unistr/u8-chr-tests: Likewise.
32099         * modules/unistr/u8-cmp-tests: Likewise.
32100         * modules/unistr/u8-cmp2-tests: Likewise.
32101         * modules/unistr/u8-cpy-alloc-tests: Likewise.
32102         * modules/unistr/u8-cpy-tests: Likewise.
32103         * modules/unistr/u8-mblen-tests: Likewise.
32104         * modules/unistr/u8-mbsnlen-tests: Likewise.
32105         * modules/unistr/u8-mbtouc-tests: Likewise.
32106         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
32107         * modules/unistr/u8-mbtoucr-tests: Likewise.
32108         * modules/unistr/u8-move-tests: Likewise.
32109         * modules/unistr/u8-next-tests: Likewise.
32110         * modules/unistr/u8-prev-tests: Likewise.
32111         * modules/unistr/u8-set-tests: Likewise.
32112         * modules/unistr/u8-stpcpy-tests: Likewise.
32113         * modules/unistr/u8-stpncpy-tests: Likewise.
32114         * modules/unistr/u8-strcat-tests: Likewise.
32115         * modules/unistr/u8-strcmp-tests: Likewise.
32116         * modules/unistr/u8-strcoll-tests: Likewise.
32117         * modules/unistr/u8-strcpy-tests: Likewise.
32118         * modules/unistr/u8-strdup-tests: Likewise.
32119         * modules/unistr/u8-strlen-tests: Likewise.
32120         * modules/unistr/u8-strmblen-tests: Likewise.
32121         * modules/unistr/u8-strmbtouc-tests: Likewise.
32122         * modules/unistr/u8-strncat-tests: Likewise.
32123         * modules/unistr/u8-strncmp-tests: Likewise.
32124         * modules/unistr/u8-strncpy-tests: Likewise.
32125         * modules/unistr/u8-strnlen-tests: Likewise.
32126         * modules/unistr/u8-to-u16-tests: Likewise.
32127         * modules/unistr/u8-to-u32-tests: Likewise.
32128         * modules/unistr/u8-uctomb-tests: Likewise.
32129         * modules/unistr/u16-check-tests: Likewise.
32130         * modules/unistr/u16-chr-tests: Likewise.
32131         * modules/unistr/u16-cmp-tests: Likewise.
32132         * modules/unistr/u16-cmp2-tests: Likewise.
32133         * modules/unistr/u16-cpy-alloc-tests: Likewise.
32134         * modules/unistr/u16-cpy-tests: Likewise.
32135         * modules/unistr/u16-mblen-tests: Likewise.
32136         * modules/unistr/u16-mbsnlen-tests: Likewise.
32137         * modules/unistr/u16-mbtouc-tests: Likewise.
32138         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
32139         * modules/unistr/u16-mbtoucr-tests: Likewise.
32140         * modules/unistr/u16-move-tests: Likewise.
32141         * modules/unistr/u16-next-tests: Likewise.
32142         * modules/unistr/u16-prev-tests: Likewise.
32143         * modules/unistr/u16-set-tests: Likewise.
32144         * modules/unistr/u16-stpcpy-tests: Likewise.
32145         * modules/unistr/u16-stpncpy-tests: Likewise.
32146         * modules/unistr/u16-strcat-tests: Likewise.
32147         * modules/unistr/u16-strcmp-tests: Likewise.
32148         * modules/unistr/u16-strcoll-tests: Likewise.
32149         * modules/unistr/u16-strcpy-tests: Likewise.
32150         * modules/unistr/u16-strdup-tests: Likewise.
32151         * modules/unistr/u16-strlen-tests: Likewise.
32152         * modules/unistr/u16-strmblen-tests: Likewise.
32153         * modules/unistr/u16-strmbtouc-tests: Likewise.
32154         * modules/unistr/u16-strncat-tests: Likewise.
32155         * modules/unistr/u16-strncmp-tests: Likewise.
32156         * modules/unistr/u16-strncpy-tests: Likewise.
32157         * modules/unistr/u16-strnlen-tests: Likewise.
32158         * modules/unistr/u16-to-u32-tests: Likewise.
32159         * modules/unistr/u16-to-u8-tests: Likewise.
32160         * modules/unistr/u16-uctomb-tests: Likewise.
32161         * modules/unistr/u32-check-tests: Likewise.
32162         * modules/unistr/u32-chr-tests: Likewise.
32163         * modules/unistr/u32-cmp-tests: Likewise.
32164         * modules/unistr/u32-cmp2-tests: Likewise.
32165         * modules/unistr/u32-cpy-alloc-tests: Likewise.
32166         * modules/unistr/u32-cpy-tests: Likewise.
32167         * modules/unistr/u32-mblen-tests: Likewise.
32168         * modules/unistr/u32-mbsnlen-tests: Likewise.
32169         * modules/unistr/u32-mbtouc-tests: Likewise.
32170         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
32171         * modules/unistr/u32-mbtoucr-tests: Likewise.
32172         * modules/unistr/u32-move-tests: Likewise.
32173         * modules/unistr/u32-next-tests: Likewise.
32174         * modules/unistr/u32-prev-tests: Likewise.
32175         * modules/unistr/u32-set-tests: Likewise.
32176         * modules/unistr/u32-stpcpy-tests: Likewise.
32177         * modules/unistr/u32-stpncpy-tests: Likewise.
32178         * modules/unistr/u32-strcat-tests: Likewise.
32179         * modules/unistr/u32-strcmp-tests: Likewise.
32180         * modules/unistr/u32-strcoll-tests: Likewise.
32181         * modules/unistr/u32-strcpy-tests: Likewise.
32182         * modules/unistr/u32-strdup-tests: Likewise.
32183         * modules/unistr/u32-strlen-tests: Likewise.
32184         * modules/unistr/u32-strmblen-tests: Likewise.
32185         * modules/unistr/u32-strmbtouc-tests: Likewise.
32186         * modules/unistr/u32-strncat-tests: Likewise.
32187         * modules/unistr/u32-strncmp-tests: Likewise.
32188         * modules/unistr/u32-strncpy-tests: Likewise.
32189         * modules/unistr/u32-strnlen-tests: Likewise.
32190         * modules/unistr/u32-to-u16-tests: Likewise.
32191         * modules/unistr/u32-to-u8-tests: Likewise.
32192         * modules/unistr/u32-uctomb-tests: Likewise.
32193         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
32194         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
32195         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
32196         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
32197         * modules/uniwidth/u8-strwidth-tests: Likewise.
32198         * modules/uniwidth/u8-width-tests: Likewise.
32199         * modules/uniwidth/u16-strwidth-tests: Likewise.
32200         * modules/uniwidth/u16-width-tests: Likewise.
32201         * modules/uniwidth/u32-strwidth-tests: Likewise.
32202         * modules/uniwidth/u32-width-tests: Likewise.
32203         * modules/uniwidth/width-tests: Likewise.
32204
32205 2010-05-18  Richard Jones  <rjones@redhat.com>
32206
32207         doc: users.txt: list hivex
32208         * users.txt: Add hivex.
32209
32210 2010-05-18  Richard Jones  <rjones@redhat.com>
32211
32212         doc: users.txt: list febootstrap
32213         * users.txt: Add febootstrap.
32214
32215 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
32216
32217         bootstrap: fix an error when gnulib is not used as a git submodule
32218         * build-aux/bootstrap (gnulib_path): If its length is zero then
32219         assign "gnulib" to it.
32220         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
32221
32222 2010-05-16  Bruno Haible  <bruno@clisp.org>
32223
32224         Avoid autoconf warnings about AM_ICONV.
32225         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
32226         2.64.
32227
32228 2010-05-16  Bruno Haible  <bruno@clisp.org>
32229
32230         absolute-header: Make the macro usable in more situations.
32231         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
32232         from gl_ABSOLUTE_HEADER.
32233         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
32234
32235 2010-05-16  James Youngman  <jay@gnu.org>
32236
32237         doc: update users.txt
32238         * users.txt: Add CSSC.
32239
32240 2010-05-16  Jim Meyering  <meyering@redhat.com>
32241
32242         init.sh: fix an error in the previous change; add more comments
32243         * tests/init.sh: Compare exit code in loop against 9, not 2.
32244         Patch by Bruno Haible.
32245         Make the two tests more similar by adding an empty "then" clause.
32246         Add comments.
32247
32248         init.sh: avoid unnecessary shell re-exec
32249         * tests/init.sh: Improve the re-exec-required check to first test the
32250         current shell.  If it passes the test, do not search for a shell that
32251         does pass, and do not re-exec.  This test is particularly contorted to
32252         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
32253         of $(...) evokes a syntax error and causes immediate shell exit with
32254         status 2.  Bruno Haible reported that the re-exec made it impossible
32255         to single-step through any init.sh-using script.
32256
32257 2010-05-16  Bruno Haible  <bruno@clisp.org>
32258
32259         Fix collision between gnulib's and libintl's printf replacements.
32260         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
32261         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
32262         (printf): When using GNU C, map the __printf__ function to rpl_printf
32263         via __asm__. When not using GNU C, define rpl_printf instead of
32264         __printf__.
32265         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
32266         commit.
32267         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
32268         commit.
32269         * m4/asm-underscore.m4: New file.
32270         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
32271         * modules/stdio (Files): Add m4/asm-underscore.m4.
32272         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
32273         Reported by Ben Pfaff.
32274
32275 2010-05-16  Bruno Haible  <bruno@clisp.org>
32276
32277         verify: Avoid skipping the test on openSUSE 11.0.
32278         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
32279
32280 2010-05-13  Bruno Haible  <bruno@clisp.org>
32281
32282         Avoid useless warnings from G++.
32283         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
32284         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
32285         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32286
32287 2010-05-11  Jim Meyering  <meyering@redhat.com>
32288
32289         maint.mk: tweak preceding change
32290         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
32291         regexps tighter by anchoring at EOL, and make the new group "shy"
32292         for slightly decreased overhead.
32293
32294 2010-05-11  Eric Blake  <eblake@redhat.com>
32295
32296         maint.mk: gnulib doesn't guarantee NSIG
32297         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
32298
32299 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32300
32301         test-pwrite.c: Remove unused variable declaration.
32302         * tests/test-pwrite.c (main): Remove read_buf declaration.
32303
32304         Remove useless test-pwrite.sh file.
32305         * tests/test-pwrite.sh: Delete file.
32306         * modules/pwrite-tests: Remove references.
32307         Reported by Bruno Haible.
32308
32309 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32310
32311         init.sh: fix a typo
32312         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
32313
32314 2010-05-10  Jim Meyering  <meyering@redhat.com>
32315
32316         maint.mk: avoid using a temporary file in the always-defined-macros check
32317         * top/maint.mk (.re-defmac): Remove rule.
32318         (gl_trap_): Remove definition.
32319         (sc_prohibit_always-defined_macros): Rewrite not to create and
32320         depend on a temporary file.  Instead, depend on GNU grep's ability
32321         to read a list of regular expressions from stdin when given "-f -".
32322
32323 2010-05-09  Bruno Haible  <bruno@clisp.org>
32324
32325         Update to GNU gettext 0.18, part 1.
32326         * m4/gettext.m4: Update to GNU gettext 0.18.
32327         * m4/intl.m4: Likewise.
32328         * m4/po.m4: Likewise.
32329         * modules/gettext (Files): Add m4/fcntl-o.m4.
32330         (configure.ac): Require gettext infrastructure from version 0.18.
32331
32332 2010-05-09  Jim Meyering  <meyering@redhat.com>
32333
32334         init.sh: enable MALLOC_PERTURB_
32335         * tests/init.sh: Enable glibc's malloc-perturbing option.
32336
32337         maint.mk: improve sc_cross_check_PATH_usage_in_tests
32338         With my recent change in init.sh from the two-line form:
32339             -#   : ${srcdir=.}
32340             -#   . "$srcdir/init.sh"; path_prepend_ .
32341             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
32342         I noticed that using the one-line form would cause this test
32343         to fail with a false-positive, or to stop working altogether,
32344         depending on whether help-version changed or all the tests did.
32345         * top/maint.mk (_hv_regex): Remove this definition.
32346         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
32347         (_hv_regex_strong): Use a stronger regex to check for conformance.
32348         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
32349         Give a separate diagnostic for lack of conforming use.
32350
32351         maint.mk: prohibit definition of symbols defined by gnulib
32352         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
32353         definition of symbols defined by gnulib.
32354
32355 2010-05-09  Bruno Haible  <bruno@clisp.org>
32356
32357         acl: Avoid test failure on Cygwin-hosted mingw.
32358         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
32359
32360 2010-05-09  Bruno Haible  <bruno@clisp.org>
32361
32362         error: Use system's fcntl function.
32363         * lib/error.c (fcntl): Undefine.
32364
32365 2010-05-09  Jim Meyering  <meyering@redhat.com>
32366
32367         verify: adjust formatting to be more consistent
32368         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
32369         argument-list '('s, and after one comma.
32370
32371 2010-05-09  Bruno Haible  <bruno@clisp.org>
32372
32373         error: More reliable output on mingw.
32374         * lib/error.c: Include <windows.h>.
32375         (is_open): New function.
32376         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
32377         defined.
32378
32379 2010-05-09  Bruno Haible  <bruno@clisp.org>
32380
32381         vasnprintf: Fix syntax errors in libintl build on mingw.
32382         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
32383         pad_ourselves and prec_ourselves after use.
32384
32385 2010-05-08  Bruno Haible  <bruno@clisp.org>
32386
32387         * lib/config.charset: Update comments for Cygwin 1.7.
32388         * lib/localcharset.c: Likewise.
32389
32390 2010-05-07  Jim Meyering  <meyering@redhat.com>
32391
32392         init.sh: improve comments
32393         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
32394         . "${srcdir=.}/init.sh"; path_prepend_ .
32395         Add a note about path_prepend_ and the alternative of using
32396         TESTS_ENVIRONMENT.
32397
32398 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32399
32400         exclude: Unescape hashed patterns in wildcard mode.
32401         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
32402         to the hash list.
32403         * tests/test-exclude8.sh: New test case.
32404         * modules/exclude-tests: Add new test.
32405
32406 2010-05-05  Eric Blake  <eblake@redhat.com>
32407
32408         verify: automate tests
32409         * modules/verify-tests: New module.
32410         * tests/test-verify.sh: New file.
32411         * tests/test-verify.c: Guard each negative test with a unique id.
32412         Also avoid warning about unused left hand of comma expressions.
32413
32414 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
32415
32416         Further improvements to verify.h, suggested by Eric Blake.
32417         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
32418         the GL_* versions, to avoid collision with OpenGL.
32419         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
32420         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
32421         than testing merely whether it's defined.
32422
32423         Modify verify.h to pacify gcc -Wredundant_decls.
32424         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
32425         These use the prefix "GL_" since they're likely to be useful elsewhere.
32426         We may need to break them out into a different .h file.
32427         (__COUNTER__): Define to 0 if the compiler doesn't support it.
32428         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
32429         of verify_function__.
32430
32431 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32432
32433         Tests for module pwrite.
32434         * modules/pwrite-tests: New file.
32435         * tests/test-pwrite.sh: New file.
32436         * tests/test-pwrite.c: New file.
32437
32438         New module pwrite.
32439         * lib/unistd.in.h (pwrite): New declaration.
32440         * lib/pwrite.c: New file, from glibc with modifications.
32441         * m4/pwrite.m4: New file.
32442         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
32443         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
32444         REPLACE_PWRITE.
32445         * modules/pwrite: New file.
32446         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
32447         REPLACE_PWRITE.
32448         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
32449         * doc/posix-functions/pwrite.texi: Mention the new module.
32450
32451 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32452
32453         pread: Update documentation.
32454         * doc/posix-functions/pread.texi: Mention the 'pread' module.
32455
32456 2010-05-04  Eric Blake  <eblake@redhat.com>
32457
32458         docs: update cygwin progress
32459         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
32460         this bug.
32461         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
32462         Added in cygwin 1.7.2.
32463         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
32464         Likewise.
32465         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
32466         Likewise.
32467         * doc/glibc-functions/dup3.texi (dup3): Likewise.
32468         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
32469         * doc/glibc-functions/accept4.texi (accept4): Likewise.
32470         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
32471         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
32472         Mention nproc module.
32473         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
32474         bug in cygwin 1.7.5 addition.
32475         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
32476         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
32477         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
32478         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
32479         1.7.5.
32480         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
32481         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
32482         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
32483         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
32484         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
32485         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
32486         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
32487         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
32488         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
32489         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
32490         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
32491         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
32492         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
32493         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
32494         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
32495         Likewise.
32496         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
32497         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
32498         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
32499         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
32500         Likewise.
32501         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
32502         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
32503         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
32504         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
32505         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
32506         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
32507         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
32508         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
32509         Likewise.
32510         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
32511         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
32512         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
32513         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
32514         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
32515         Likewise.
32516         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
32517         Likewise.
32518         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
32519         Likewise.
32520         * doc/glibc-functions/xdrrec_endofrecord.texi
32521         (xdrrec_endofrecord): Likewise.
32522         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
32523         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
32524         Likewise.
32525         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
32526         Likewise.
32527
32528 2010-05-04  Jim Meyering  <meyering@redhat.com>
32529
32530         gendocs.sh: make its "-s FILE" option more useful
32531         * build-aux/gendocs.sh: When honoring the -s FILE option, update
32532         $PACKAGE to reflect the probably-different basename of "FILE".
32533
32534 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32535
32536         bootstrap: don't ignore download_po_files failure
32537         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
32538         failure.
32539
32540 2010-05-03  Jim Meyering  <meyering@redhat.com>
32541
32542         maint.mk: allow to pass options to gendocs.sh
32543         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
32544         (gendocs_options_): New overridable variable.
32545
32546         gnu-web-doc-update: don't ignore configure or build failure
32547         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
32548
32549         announce-gen: backslash-escape '@'s in --help output
32550         * build-aux/announce-gen: Fix syntax errors.
32551
32552         maint.mk, announce-gen: allow project-specific announcement mail headers
32553         * top/maint.mk (translation_project_): Define default.
32554         (announcement_Cc_, announcement_mail_headers_): Likewise.
32555         (announcement): Invoke announce-gen with new --mail-headers option.
32556         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
32557
32558         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
32559         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
32560         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
32561         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
32562         line in the "err2" output file when running "make check" in verbose
32563         mode (i.e., with set -x enabled).
32564
32565 2010-05-03  Bruno Haible  <bruno@clisp.org>
32566
32567         wctob: Fix for weird platforms.
32568         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
32569         argument value.
32570
32571 2010-05-03  Jim Meyering  <meyering@redhat.com>
32572
32573         maint.mk: prohibit unwarranted use of <strings.h>
32574         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
32575         strings.h in a file that does not also use strcasecmp, strncasecmp,
32576         ffs or ffsll.
32577
32578         maint.mk: remove obsolete comments
32579         * top/maint.mk: Remove stale, commented-out rules.
32580
32581 2010-05-02  Bruno Haible  <bruno@clisp.org>
32582
32583         wcwidth: Declare also when it's aliased.
32584         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
32585         macro.
32586
32587 2010-05-02  Bruno Haible  <bruno@clisp.org>
32588
32589         Fix regression from 2010-04-25.
32590         * gnulib-tool (func_modules_transitive_closure): Check the status of
32591         all modules, not only of the tests that are of the form foo-tests where
32592         foo is a module.
32593
32594 2010-05-02  Bruno Haible  <bruno@clisp.org>
32595
32596         wctob: Work around nasty Cygwin 1.7.2 bug.
32597         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
32598         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
32599
32600 2010-05-01  Bruno Haible  <bruno@clisp.org>
32601
32602         fpurge: Sharper test.
32603         * tests/test-fpurge.c (main): Add one more ftell check.
32604         * modules/fpurge-tests (Depends-on): Add ftell.
32605         Suggested by Eric Blake.
32606
32607 2010-05-01  Bruno Haible  <bruno@clisp.org>
32608
32609         ftello: Another test.
32610         * tests/test-ftello3.c: New file.
32611         * modules/ftello-tests (Files): Add it.
32612         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32613         MOSTLYCLEANFILES.
32614
32615         ftell: Another test.
32616         * tests/test-ftell3.c: New file.
32617         * modules/ftell-tests (Files): Add it.
32618         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32619         MOSTLYCLEANFILES.
32620
32621 2010-05-01  Bruno Haible  <bruno@clisp.org>
32622
32623         ftell, ftello: Work around Solaris bug.
32624         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
32625         * lib/ftello.c: Include stdio-impl.h.
32626         (ftello): On Solaris, when _IOWRT is set, compute the result without
32627         looking at _IOREAD.
32628         * modules/ftello (Files): Add lib/stdio-impl.h.
32629         * doc/posix-functions/ftell.texi: Mention Solaris bug.
32630         * doc/posix-functions/ftello.texi: Likewise.
32631         Reported by Eric Blake.
32632
32633 2010-05-01  Bruno Haible  <bruno@clisp.org>
32634
32635         freading: Adapt to special meaning of _IOREAD flag on Solaris.
32636         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
32637         the _IOWRT flag is also set.
32638
32639 2010-05-01  Bruno Haible  <bruno@clisp.org>
32640
32641         Fix doc about a HP-UX stdio bug.
32642         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
32643         * doc/posix-functions/ftello.texi: Likewise.
32644
32645 2010-05-01  Bruno Haible  <bruno@clisp.org>
32646
32647         lseek test: Fix failure on Solaris.
32648         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
32649         output.
32650
32651 2010-04-30  Jim Meyering  <meyering@redhat.com>
32652
32653         bootstrap: don't ignore failure to generate po*/Makevars
32654         * build-aux/bootstrap (with_gettext): Don't ignore failure
32655         to create po/Makevars or runtime-po/Makevars.
32656
32657 2010-04-29  Eric Blake  <eblake@redhat.com>
32658
32659         headers: relax license to LGPLv2+
32660         * modules/fcntl-h (License): Relax license.
32661         * modules/getopt-posix (License): Likewise.
32662         * modules/locale (License): Likewise.
32663         * modules/math (License): Likewise.
32664         * modules/pty (License): Likewise.
32665         * modules/sched (License): Likewise.
32666         * modules/search (License): Likewise.
32667         * modules/spawn (License): Likewise.
32668         * modules/stdarg (License): Likewise.
32669         * modules/sysexits (License): Likewise.
32670
32671 2010-04-29  Jim Meyering  <meyering@redhat.com>
32672
32673         inttypes: relax license to LGPLv2+
32674         * modules/inttypes (License): Relax license.
32675
32676 2010-04-29  Simon Josefsson  <simon@josefsson.org>
32677
32678         * top/maint.mk (indent): Run twice to produce idempotent results.
32679
32680 2010-04-28  Bruno Haible  <bruno@clisp.org>
32681
32682         getdate: Generate getdate.c in the source directory.
32683         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
32684         MOSTLYCLEANFILES.
32685         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
32686
32687 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
32688
32689         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
32690         is not declared as a const *; avoid warnings in that case.
32691
32692 2010-04-28  Eric Blake  <eblake@redhat.com>
32693
32694         canonicalize-lgpl: avoid compiler warning
32695         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
32696         declaration' / 'extraneous semicolon' warning with some compilers.
32697         Reported by Andreas Gruenbacher.
32698
32699 2010-04-28  Jim Meyering  <meyering@redhat.com>
32700
32701         init.sh: ensure a more reliable exit status when exiting via trap
32702         * tests/init.sh (setup_): Don't rely on $? in signal handler.
32703         Inspired by patches from Dmitry V. Levin.
32704         Also trap on signal 3 (SIGQUIT).
32705
32706 2010-04-27  Bruno Haible  <bruno@clisp.org>
32707
32708         Update doc about utimes().
32709         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
32710         'utimens' module.
32711         Reported by Andreas Gruenbacher <agruen@suse.de>.
32712
32713 2010-04-27  Eric Blake  <eblake@redhat.com>
32714
32715         full-read, full-write: relax license
32716         * modules/full-read (License): Drop to LGPLv2+.
32717         * modules/full-write (License): Likewise.
32718         * modules/safe-read (License): Likewise.
32719         * modules/safe-write (License): Likewise.
32720
32721         pthread: mention library for linking
32722         * modules/pthread (Link): Mention $(LIB_PTHREAD).
32723
32724 2010-04-27  Jim Meyering  <meyering@redhat.com>
32725
32726         maint.mk: fix a bug introduced in last change
32727         * top/maint.mk (gl_assured_headers_): Now that all names are on
32728         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
32729         is not anchored to end of word, it should be adequate.
32730
32731         maint.mk: avoid side-effect in latest syntax-check
32732         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
32733         to run commands via $(shell...), and hence to incur cost only when
32734         the new rule is actually run.
32735
32736         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
32737         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
32738         and use that to create a regexp used to detect all #if HAVE_..._H uses.
32739         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
32740         (gl_assured_headers_, az_, AZ_): Define.
32741         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
32742
32743 2010-04-26  Jim Meyering  <jim@meyering.net>
32744             Bruno Haible  <bruno@clisp.org>
32745
32746         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
32747         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
32748         Prompted by an exchange with Gilles Espinasse.
32749
32750 2010-04-26  Jim Meyering  <meyering@redhat.com>
32751
32752         git-version-gen: aesthetic tweak
32753         * build-aux/git-version-gen: Use "$nl" rather than a literal,
32754         so that the command remains on a single line.
32755
32756 2010-04-26  Eric Blake  <eblake@redhat.com>
32757
32758         git-version-gen: allow use on EBCDIC hosts
32759         * build-aux/git-version-gen (dirty): Use literal rather than tying
32760         ourselves to ascii.
32761         Reported by Steve Goetze.
32762
32763 2010-04-25  Bruno Haible  <bruno@clisp.org>
32764
32765         netdb: Add support for GNULIB_POSIXCHECK.
32766         * lib/netdb.in.h: Include warn-on-use.h.
32767         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
32768         functions are used when GNULIB_POSIXCHECK is defined and the
32769         getaddrinfo module is not in use.
32770         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
32771         freeaddrinfo, gai_strerror, getnameinfo are declared.
32772         * modules/netdb (Depends-on): Add warn-on-use.
32773         (Makefile.am): Include warn-on-use.h in netdb.h.
32774
32775 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
32776
32777         build: avoid "make check" failure without .git/ directory
32778         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
32779         there is no .git/ directory.
32780
32781 2010-04-25  Bruno Haible  <bruno@clisp.org>
32782
32783         ptsname: Fix misuse of ttyname_r.
32784         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
32785         of errno.
32786
32787 2010-04-25  Bruno Haible  <bruno@clisp.org>
32788
32789         ttyname_r: Make it work on Solaris 10.
32790         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
32791         if the system function has the POSIX declaration. Test whether the
32792         function fails if the buffer is less than 128 bytes large.
32793         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
32794         system's ttyname_r function. Provide a reasonably large buffer.
32795         * modules/ttyname_r (Depends-on): Add extensions.
32796         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
32797
32798 2010-04-25  Bruno Haible  <bruno@clisp.org>
32799
32800         Use the 'extensions' module for some more functions on Solaris.
32801         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
32802         module.
32803         * doc/posix-functions/ctime_r.texi: Likewise.
32804         * doc/posix-functions/getgrgid_r.texi: Likewise.
32805         * doc/posix-functions/getgrnam_r.texi: Likewise.
32806         * doc/posix-functions/getpwnam_r.texi: Likewise.
32807         * doc/posix-functions/getpwuid_r.texi: Likewise.
32808         * doc/posix-functions/readdir_r.texi: Likewise.
32809         * doc/posix-functions/sigwait.texi: Likewise.
32810         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
32811         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
32812
32813 2010-04-25  Bruno Haible  <bruno@clisp.org>
32814
32815         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
32816         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
32817         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
32818         * lib/ttyname_r.c: Include <limits.h>.
32819         (ttyname_r): Define using the system's ttyname_r function, if it exists
32820         and not on Solaris.
32821         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
32822         set.
32823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
32824         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
32825         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
32826         Reported by Simon Josefsson.
32827
32828 2010-04-25  Bruno Haible  <bruno@clisp.org>
32829
32830         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
32831         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
32832         * doc/posix-functions/ctime_r.texi: Likewise.
32833         * doc/posix-functions/getgrgid_r.texi: Likewise.
32834         * doc/posix-functions/getgrnam_r.texi: Likewise.
32835         * doc/posix-functions/getlogin_r.texi: Likewise.
32836         * doc/posix-functions/getpwnam_r.texi: Likewise.
32837         * doc/posix-functions/getpwuid_r.texi: Likewise.
32838         * doc/posix-functions/readdir_r.texi: Likewise.
32839         * doc/posix-functions/sigwait.texi: Likewise.
32840         * doc/posix-functions/ttyname_r.texi: Likewise.
32841         Reported by Simon Josefsson.
32842
32843 2010-04-25  Bruno Haible  <bruno@clisp.org>
32844
32845         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
32846         * gnulib-tool (func_usage): Document that --with-*-tests options apply
32847         also to --create-testdir.
32848         (func_acceptable): Don't consider the status of *-tests modules here.
32849         (func_modules_transitive_closure): Consider it here, before including a
32850         test module.
32851         (func_import, func_create_testdir): Set inc_all_direct_tests,
32852         inc_all_indirect_tests.
32853         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
32854         --create-testdir and --create-megatestdir.
32855
32856 2010-04-25  Bruno Haible  <bruno@clisp.org>
32857
32858         gnulib-tool: Add --without-*-tests options.
32859         * gnulib-tool (func_usage): Document the --without-*-tests options.
32860         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
32861         excl_unportable_tests): New variables.
32862         Fail if they are specified with --import or --update.
32863         (func_acceptable): Respect the excl_*_tests variables.
32864         (func_import): Set the excl_*_tests variables to empty.
32865
32866 2010-04-25  Simon Josefsson  <simon@josefsson.org>
32867             Bruno Haible  <bruno@clisp.org>
32868
32869         Work around a MacOS X 10.4 bug with openpty.
32870         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
32871         * tests/test-openpty.c (main): Close the master side explicitly.
32872
32873 2010-04-25  Bruno Haible  <bruno@clisp.org>
32874
32875         strnlen: Fix a C++ test error on MacOS X and Solaris.
32876         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
32877         the function is not declared.
32878         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
32879         Simon Josefsson.
32880
32881 2010-04-24  Bruno Haible  <bruno@clisp.org>
32882
32883         Avoid a gcc warning.
32884         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
32885         of correct type for %08lx directive.
32886         Reported by Eric Blake.
32887
32888 2010-04-24  Bruno Haible  <bruno@clisp.org>
32889
32890         vasnprintf: Correct errno value in case of out-of-memory.
32891         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
32892         or sprintf. Use the errno value from SNPRINTF or sprintf.
32893         Reported by Ian Beckwith <ianb@erislabs.net>.
32894
32895 2010-04-24  Bruno Haible  <bruno@clisp.org>
32896
32897         ansi-c++-opt: Find correct compiler when cross-compiling.
32898         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
32899         AC_CHECK_PROGS.
32900         Reported by Simon Josefsson.
32901
32902 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
32903
32904         vc-list-files: Add support for subversion
32905         * build-aux/vc-list-files: Use "svn list" to generate the list of
32906         files controlled by subversion.
32907
32908 2010-04-23  Jim Meyering  <meyering@redhat.com>
32909
32910         vc-list-files tests: convert to use init.sh
32911         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
32912         path_prepend_.
32913         Use Exit, not exit.
32914         Use skip_ rather than open coding it.
32915         Remove trap set-up and compare definitions.
32916         * tests/test-vc-list-files-git.sh: Likewise.
32917         * modules/vc-list-files-tests (Files): Add tests/init.sh.
32918
32919 2010-04-22  Simon Josefsson  <simon@josefsson.org>
32920
32921         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
32922         backup files.
32923
32924 2010-04-21  Simon Josefsson  <simon@josefsson.org>
32925
32926         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
32927
32928 2010-04-20  Eric Blake  <eblake@redhat.com>
32929
32930         tests: be robust to ignored SIGPIPE
32931         * tests/test-select-in.sh: Consume all output.
32932         * tests/test-lseek.sh: Check correct exit status, while avoiding
32933         EPIPE.
32934
32935 2010-04-20  Simon Josefsson  <simon@josefsson.org>
32936             Bruno Haible  <bruno@clisp.org>
32937
32938         visibility: Don't use -fvisibility if it leads to a warning.
32939         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
32940         yes, don't pretend that visibility works if it leads to a warning.
32941         Reported by Mike Gran <spk121@yahoo.com>.
32942
32943 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
32944
32945         * build-aux/bootstrap: Use "git -h" for testing for supported options
32946         instead of "git --help".  The short-form option only shows a summary,
32947         and doesn't layout the full man page.  Grep for the full option name
32948         in the summary, too.
32949
32950 2010-04-19  Bruno Haible  <bruno@clisp.org>
32951
32952         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
32953         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
32954         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
32955         mention of RELOCATABLE_STRIP.
32956         Reported by Sylvain Beucler <beuc@beuc.net>.
32957
32958 2010-04-19  Bruno Haible  <bruno@clisp.org>
32959
32960         * lib/diffseq.h: Fix typo in comment.
32961         Reported by Eric Blake.
32962
32963 2010-04-19  Bruno Haible  <bruno@clisp.org>
32964
32965         ioctl: Move autoconf macro to a .m4 file.
32966         * m4/ioctl.m4: New file, extracted from modules/ioctl.
32967         * modules/ioctl (Files): Add it.
32968         (configure.ac): Simply invoke gl_FUNC_IOCTL.
32969         Reported by Ian Beckwith <ianb@erislabs.net>.
32970
32971 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
32972             Bruno Haible  <bruno@clisp.org>
32973
32974         diffseq: Accommodate use-case with abstract arrays.
32975         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
32976         is not defined.
32977         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
32978         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
32979
32980 2010-04-18  Bruno Haible  <bruno@clisp.org>
32981
32982         * doc/posix-headers/stdbool.texi: More precise wording.
32983
32984 2010-04-17  Jim Meyering  <meyering@redhat.com>
32985
32986         maint.mk: use gnu-style indentation in an embedded perl script
32987         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
32988         Rename variable: s/two/last_two_bytes/
32989
32990 2010-04-16  Eric Blake  <eblake@redhat.com>
32991
32992         test-stdbool: skip test that fails with Solaris CC
32993         * tests/test-stdbool.c (f): Skip test that causes compilation
32994         error under buggy C++ compiler.
32995         * lib/stdbool.in.h: Document the limitation.
32996         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
32997
32998         setenv: allow compilation with C++
32999         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
33000         register keyword.
33001
33002         stdint: allow test to pass with C++
33003         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
33004
33005         getopt: allow compilation with C++
33006         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
33007         struct.
33008         * lib/getopt.c (_getopt_internal_r): Use correct type.
33009         Reported by Dagobert Michelson, via Joel E. Denny.
33010
33011 2010-04-16  Bruno Haible  <bruno@clisp.org>
33012
33013         Override netdb.h always.
33014         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
33015         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
33016         Reported by Ludovic Courtès <ludo@gnu.org>.
33017
33018 2010-04-15  Bruno Haible  <bruno@clisp.org>
33019
33020         openpty: Fix mistake from 2010-03-21.
33021         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
33022         Reported by Simon Josefsson.
33023
33024 2010-04-15  Eric Blake  <eblake@redhat.com>
33025
33026         test-forkpty: fix expected signature
33027         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
33028         Reported by Simon Josefsson.
33029
33030 2010-04-15  Jim Meyering  <meyering@redhat.com>
33031
33032         maint.mk: texinfo_suffix_re_: correct the default regexp
33033         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
33034
33035         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
33036         make it configurable via texinfo_suffix_re_.
33037
33038 2010-04-14  Eric Blake  <eblake@redhat.com>
33039
33040         strtok_r: relax license to LGPLv2+
33041         * modules/strtok_r (License): Relax license.
33042         Reported by Matthias Bolte.
33043
33044 2010-04-14  Simon Josefsson  <simon@josefsson.org>
33045
33046         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
33047         version 1.4.4 by default instead of requiring the libgcrypt
33048         version used during build.  This makes it possible to use the
33049         application with older but still binary compatible libgcrypt
33050         versions.
33051
33052 2010-04-13  Eric Blake  <eblake@redhat.com>
33053
33054         getopt-gnu: match recent glibc fixes and posix ruling
33055         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
33056         '+' handling, when requesting extensions.
33057         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
33058         'W;' handling.
33059         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
33060         * doc/posix-functions/getopt.texi (getopt): Document this.
33061         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33062         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33063         Likewise.
33064
33065         getopt: merge bug fixes from glibc
33066         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
33067         diagnostics.  Honor '+:' correctly.  Reject ';'.
33068
33069         getopt-posix: detect MacOS bug
33070         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
33071         optind when missing a required argument.
33072         * doc/posix-functions/getopt.texi (getopt): Document the bug.
33073         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33074         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33075         Likewise.
33076
33077         getopt-posix: avoid spurious failure on Solaris
33078         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
33079         an indicator that setting optind=1 is sufficient for reset.
33080
33081         getopt-posix: avoid spurious failure on FreeBSD
33082         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
33083         in POSIX mode, since the m4 test uses it.
33084
33085         gnulib-tool: silence warning on BSD sh
33086         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
33087
33088 2010-04-13  Jim Meyering  <meyering@redhat.com>
33089
33090         doc: users.txt: GNU patch now uses gnulib
33091         * users.txt: Add patch.
33092
33093 2010-04-12  Jim Meyering  <meyering@redhat.com>
33094
33095         maint.mk: generate more concise timing data for syntax-check rules
33096         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
33097         " done" from each line that reports a syntax-check test duration.
33098
33099 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
33100
33101         git-version-gen: use "git update-index..." rather than "git status"
33102         * build-aux/git-version-gen: Use git update-index --refresh, not
33103         "git status".  With some versions of git, "git status" would fail
33104         to update the index and result in an unwarranted "-dirty" suffix.
33105
33106 2010-04-11  Jim Meyering  <meyering@redhat.com>
33107
33108         openat: correct formatting (no semantic change)
33109         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
33110         Suggested by Bruno Haible.
33111
33112 2010-04-11  Bruno Haible  <bruno@clisp.org>
33113
33114         Stricter declaration checking in testdirs.
33115         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33116         If for_tests is true, augment AM_CPPFLAGS to define
33117         GNULIB_STRICT_CHECKING.
33118         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
33119         GNULIB_STRICT_CHECKING is defined, verify that the function is
33120         declared.
33121
33122 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
33123             Bruno Haible  <bruno@clisp.org>
33124
33125         libunistring: Improve configure output.
33126         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
33127         Don't say "consider installing GNU libunistring" when checking again
33128         with libiconv.
33129
33130 2010-04-11  Bruno Haible  <bruno@clisp.org>
33131
33132         libunistring: Correct value of $LTLIBUNISTRING.
33133         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
33134         correct the value of $LTLIBUNISTRING.
33135
33136 2010-04-11  Bruno Haible  <bruno@clisp.org>
33137
33138         havelib: Add static libraries to LIBS in the right order.
33139         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
33140         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
33141
33142 2010-04-11  Bruno Haible  <bruno@clisp.org>
33143
33144         libunistring: Detect libunistring also when it depends on libiconv.
33145         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
33146         the second AC_LIB_HAVE_LINKFLAGS invocation.
33147
33148 2010-04-11  James Youngman  <jay@gnu.org>
33149
33150         close-stream: declare local scalars to be "const"
33151         * lib/close-stream.c (close_stream): Make boolean variables const
33152         to document the fact that we set but do not change them.
33153
33154 2010-04-11  Bruno Haible  <bruno@clisp.org>
33155
33156         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
33157
33158 2010-04-11  Jim Meyering  <meyering@redhat.com>
33159
33160         maint.mk: don't include dist-check.mk
33161         * top/maint.mk: Remove bogus include directive.
33162
33163         maint.mk: improve empty-line-at-EOF check
33164         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
33165         solution, rather than tail+Perl-based one.  The latter would read
33166         a few kilobytes from the end of each file, and did not handle empty
33167         files properly.
33168
33169         maint.mk: print the elapsed time for each syntax-check rule
33170         * top/maint.mk (sc_m_rules_): Save start time in a file.
33171         (sc_z_rules_): New rules: remove temp file and print elapsed time.
33172         (local-check): Interpose the .z rules
33173
33174 2010-04-11  Jim Meyering  <meyering@redhat.com>
33175
33176         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
33177         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
33178         empty file with one that ends in an empty line.
33179
33180 2010-04-10  Bruno Haible  <bruno@clisp.org>
33181
33182         mkdir: Make it work on mingw64.
33183         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
33184         * lib/mkdir.c: Update comment.
33185         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
33186
33187 2010-04-10  Bruno Haible  <bruno@clisp.org>
33188
33189         Don't override improved macro from newer autoconf.
33190         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
33191         autoconf >= 2.62.
33192         Reported by Joel E. Denny <jdenny@clemson.edu>.
33193
33194 2010-04-10  Jim Meyering  <meyering@redhat.com>
33195
33196         maint.mk: new syntax-check rule: prohibit empty lines at end of file
33197         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
33198
33199         maint.mk: correct a diagnostic
33200         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
33201         in diagnostic; now use $prohibit.
33202
33203 2010-04-10  Bruno Haible  <address@hidden>
33204
33205         fchownat: Fix a C++ test error on Solaris 8.
33206         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
33207         the function does not exist.
33208
33209 2010-04-10  Bruno Haible  <bruno@clisp.org>
33210
33211         vasnprintf: Add more tests.
33212         * tests/test-vasnprintf-posix.c: Include <errno.h>.
33213         (test_function): Test converting an invalid wide string.
33214
33215         vasnprintf: Correct handling of unconvertible wide string arguments.
33216         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
33217         VASNPRINTF.
33218         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
33219         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
33220         smaller than the expected maximum need for the directive. Set errno to
33221         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
33222         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
33223         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
33224         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
33225         * modules/vasnprintf (Files): Add m4/printf.m4.
33226         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33227
33228 2010-04-10  Bruno Haible  <bruno@clisp.org>
33229
33230         vasnprintf: Fix crash in %ls directive.
33231         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
33232         string is passed as argument to %ls, with no precision and no width.
33233         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33234
33235 2010-04-10  Bruno Haible  <bruno@clisp.org>
33236
33237         vasnprintf: Fix multiple test failures on mingw.
33238         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
33239         _snprintf, or snwprintf, not _snwprintf.
33240
33241 2010-04-10  Bruno Haible  <bruno@clisp.org>
33242
33243         write: Fix a C++ test error on mingw.
33244         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
33245
33246 2010-04-10  Bruno Haible  <bruno@clisp.org>
33247
33248         vasnprintf test: Reduce code duplication.
33249         * tests/test-vasnprintf.c (test_function): New function, extracted from
33250         test_vasnprintf.
33251         (test_vasnprintf, test_asnprintf): Invoke it.
33252
33253 2010-04-10  Bruno Haible  <bruno@clisp.org>
33254
33255         strnlen: Fix warning in C++ mode on MacOS X.
33256         * lib/string.in.h (strnlen): Use the modern idiom.
33257         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
33258         defining strnlen as a macro already in <config.h>.
33259         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33260         REPLACE_STRNLEN.
33261         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
33262         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33263
33264 2010-04-08  James Youngman  <jay@gnu.org>
33265
33266         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
33267         the example.
33268
33269 2010-04-09  Jim Meyering  <meyering@redhat.com>
33270
33271         maint.mk: print better diagnostic when there is no $(_hv_file)
33272         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
33273         announce that when $(_hv_file) (aka help-version) does not exist.
33274
33275         init.sh: run tr in the "C" locale to avoid multibyte interpretation
33276         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
33277         not try to interpret its random input bytes.  Jarno Rajahalme reported
33278         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
33279         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
33280         (mktempd_): Likewise, just in case.
33281
33282         ftruncate: add two years to projected module removal date: 2012
33283         * m4/ftruncate.m4: Adjust comments.
33284
33285         ftruncate: mark module as obsolete; even MinGW provides it, now
33286         * modules/ftruncate (Status): Obsolete.
33287         (Notice): Say that.
33288         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
33289         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
33290
33291 2010-04-08  Bruno Haible  <bruno@clisp.org>
33292
33293         Fix side effects from tests-related modules.
33294         * modules/dprintf-posix (Comment): New section.
33295         * modules/fprintf-posix (Comment): Likewise.
33296         * modules/obstack-printf-posix (Comment): Likewise.
33297         * modules/printf-posix (Comment): Likewise.
33298         * modules/snprintf-posix (Comment): Likewise.
33299         * modules/sprintf-posix (Comment): Likewise.
33300         * modules/vasnprintf-posix (Comment): Likewise.
33301         * modules/vasprintf-posix (Comment): Likewise.
33302         * modules/vdprintf-posix (Comment): Likewise.
33303         * modules/vfprintf-posix (Comment): Likewise.
33304         * modules/vprintf-posix (Comment): Likewise.
33305         * modules/vsnprintf-posix (Comment): Likewise.
33306         * modules/vsprintf-posix (Comment): Likewise.
33307         * modules/xprintf-posix (Comment): Likewise.
33308         * modules/xvasprintf-posix (Comment): Likewise.
33309         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
33310         * modules/floorf-tests (Depends-on): Likewise.
33311         * modules/round-tests (Depends-on): Likewise.
33312         * modules/roundf-tests (Depends-on): Likewise.
33313         * modules/trunc-tests (Depends-on): Likewise.
33314         * modules/truncf-tests (Depends-on): Likewise.
33315         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
33316         'fprintf-posix' module is not present.
33317         * tests/test-floorf2.c (check): Likewise.
33318         * tests/test-trunc2.c (check): Likewise.
33319         * tests/test-truncf2.c (check): Likewise.
33320         * tests/test-round2.c (equal): Likewise.
33321         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33322
33323 2010-04-07  Karl Berry  <karl@gnu.org>
33324
33325         * config/srclist.txt,
33326         * config/srclistvars.sh,
33327         * config/srclist-update: doc fixes.
33328
33329 2010-04-07  Jim Meyering  <meyering@redhat.com>
33330
33331         maint.mk: add a PATH crosschecking syntax-check rule
33332         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
33333         Useful if you use a test like the one in help-version (coreutils,
33334         diffutils, grep, gzip) that ensures $(VERSION) matches what is
33335         printed by prog --version.
33336
33337 2010-04-06  Bruno Haible  <bruno@clisp.org>
33338
33339         Fix link error on mingw.
33340         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
33341         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
33342
33343 2010-04-06  Bruno Haible  <bruno@clisp.org>
33344
33345         Assume rmdir exists.
33346         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
33347
33348 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
33349
33350         doc: update users.txt
33351         * users.txt: Add gcal.
33352
33353 2010-04-06  Jim Meyering  <meyering@redhat.com>
33354
33355         init.sh: simply unset TMPDIR rather than risking env -i
33356         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
33357         although it probably works fine on all Unix-based systems, some
33358         systems (Cygwin?) cannot tolerate a totally cleared environment.
33359         Suggestion from Eric Blake.
33360
33361 2010-04-06  Jim Meyering  <meyering@redhat.com>
33362
33363         init.sh: portability fix: use env's POSIX-specified -i option not -u
33364         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
33365         than unportable env -u.  Solaris 5.11's env lacks support for -u.
33366
33367 2010-04-05  Bruno Haible  <bruno@clisp.org>
33368
33369         btowc: Work around Cygwin 1.7.2 bug.
33370         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
33371         does not map NUL to 0.
33372         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
33373
33374 2010-04-05  Bruno Haible  <bruno@clisp.org>
33375
33376         Make the multithread modules work on Cygwin 1.7.2.
33377         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
33378         imported symbols can be declared weak, so that it returns "no" on
33379         Cygwin 1.7.2.
33380
33381 2010-04-05  Bruno Haible  <bruno@clisp.org>
33382
33383         Use the module 'strncat'.
33384         * modules/unistr/u8-strncat (Depends-on): Add strncat.
33385
33386         Tests for module 'strncat'.
33387         * modules/strncat-tests: New file.
33388         * tests/test-strncat.c: New file.
33389
33390         New module 'strncat'.
33391         * lib/string.in.h (strncat): New declaration.
33392         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
33393         * m4/strncat.m4: New file, based on m4/memchr.m4.
33394         * modules/strncat: New file.
33395         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
33396         is declared.
33397         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
33398         REPLACE_STRNCAT.
33399         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
33400         REPLACE_STRNCAT.
33401         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
33402         module.
33403         * tests/test-string-c++.cc: Check signature of strncat.
33404
33405 2010-04-05  Jim Meyering  <meyering@redhat.com>
33406
33407         xstrtoumax-tests: convert to use init.sh
33408         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
33409         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33410         Use Exit, not exit.
33411         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33412
33413         xstrtoimax-tests: convert to use init.sh
33414         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
33415         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33416         Use Exit, not exit.
33417         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33418
33419 2010-04-05  Bruno Haible  <bruno@clisp.org>
33420
33421         sys_socket: Avoid #define replacements in C++ mode.
33422         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
33423         warning to the function if possible, rather than #defining the symbol
33424         to a dysfunctional alias.
33425
33426 2010-04-05  Bruno Haible  <bruno@clisp.org>
33427
33428         fseeko: Fix C++ test error on mingw.
33429         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
33430         gl_FUNC_FSEEKO.
33431         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
33432         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
33433         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
33434         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
33435
33436 2010-04-05  Bruno Haible  <bruno@clisp.org>
33437
33438         duplocale: Improve test output.
33439         * tests/test-duplocale.c (main): Print reason for skipped test.
33440
33441 2010-04-05  Bruno Haible  <bruno@clisp.org>
33442
33443         Assume rmdir exists.
33444         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
33445         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
33446
33447 2010-04-05  Bruno Haible  <bruno@clisp.org>
33448
33449         Fix link error on Solaris 8 with cc.
33450         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
33451
33452 2010-04-05  Bruno Haible  <bruno@clisp.org>
33453
33454         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33455         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
33456
33457 2010-04-05  Bruno Haible  <bruno@clisp.org>
33458
33459         vasprintf: Update documentation.
33460         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
33461
33462 2010-04-05  Bruno Haible  <bruno@clisp.org>
33463
33464         ptsname: Improve test.
33465         * tests/test-ptsname.c (main): Also try the various master names of BSD
33466         systems.
33467
33468 2010-04-05  Bruno Haible  <bruno@clisp.org>
33469
33470         memchr: Avoid a possible C++ test error.
33471         * lib/string.in.h (memchr): Provide declaration if function is missing.
33472         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
33473         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
33474         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
33475         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
33476
33477 2010-04-05  Bruno Haible  <bruno@clisp.org>
33478
33479         strtok_r: Improve idiom.
33480         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
33481         AC_LIBOBJ is used.
33482
33483 2010-04-05  Bruno Haible  <bruno@clisp.org>
33484
33485         strdup: Improve idiom.
33486         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
33487         AC_LIBOBJ is used.
33488         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
33489         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
33490         when AC_LIBOBJ is used.
33491
33492 2010-04-05  Bruno Haible  <bruno@clisp.org>
33493
33494         mbsinit, mbrtowc, wcrtomb: Improve idioms.
33495         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
33496         don't set REPLACE_MBSINIT to 1.
33497         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
33498         don't set REPLACE_MBRTOWC to 1.
33499         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
33500         exist, don't set REPLACE_MBSRTOWCS to 1.
33501         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
33502         exist, don't set REPLACE_MBSNRTOWCS to 1.
33503         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
33504         don't set REPLACE_WCRTOMB to 1.
33505         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
33506         exist, don't set REPLACE_WCSRTOMBS to 1.
33507         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
33508         exist, don't set REPLACE_WCSNRTOMBS to 1.
33509
33510 2010-04-05  Bruno Haible  <bruno@clisp.org>
33511
33512         ldexpl: Improve idiom.
33513         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
33514         make sure to set HAVE_DECL_LDEXPL to 0.
33515
33516 2010-04-05  Jim Meyering  <meyering@redhat.com>
33517
33518         xstrtol-tests: convert to use init.sh
33519         * modules/xstrtol-tests (Files): Add tests/init.sh.
33520         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33521         Use Exit, not exit.
33522         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33523
33524         atexit-tests: convert to use init.sh
33525         * modules/atexit-tests (Files): Add tests/init.sh.
33526         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33527         Use Exit, not exit.
33528         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33529
33530         init.sh: fix typo
33531         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
33532
33533         init.sh: make it easier for a test script to write to the tty, ...
33534         when using automake's parallel-tests mode.
33535         * tests/init.sh (stderr_fileno_): Define overridable variable.
33536         (warn_): New function, to use it.
33537         (fail_, skip_, framework_failure_): Use warn_.
33538
33539 2010-04-04  Bruno Haible  <bruno@clisp.org>
33540
33541         btowc: Avoid warning.
33542         * lib/btowc.c: Include <stdlib.h>.
33543         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
33544
33545 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33546             Bruno Haible  <bruno@clisp.org>
33547
33548         wchar: Port to NetBSD 1.5.
33549         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
33550         * lib/wctype.in.h (WEOF): Likewise.
33551
33552 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33553             Bruno Haible  <bruno@clisp.org>
33554
33555         Port extended stdio to NetBSD 1.5.
33556         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
33557         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
33558         older.
33559
33560 2010-04-04  Bruno Haible  <bruno@clisp.org>
33561
33562         string: Remove unused substitution.
33563         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
33564         HAVE_DECL_STRERROR.
33565         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
33566
33567 2010-04-04  Bruno Haible  <bruno@clisp.org>
33568
33569         strtod: Avoid a possible C++ test error.
33570         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
33571         set REPLACE_STRTOD.
33572
33573 2010-04-04  Bruno Haible  <bruno@clisp.org>
33574
33575         strerror: Update documentation.
33576         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
33577
33578 2010-04-04  Bruno Haible  <bruno@clisp.org>
33579
33580         stdio: Fix some C++ test errors on Solaris 8 with GCC.
33581         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
33582         _GL_CXXALIAS_SYS_CAST.
33583
33584 2010-04-04  Bruno Haible  <bruno@clisp.org>
33585
33586         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33587         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
33588         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
33589         REPLACE_FREXPL to 1.
33590         * doc/posix-functions/frexpl.texi: Update documentation.
33591
33592 2010-04-04  Bruno Haible  <bruno@clisp.org>
33593
33594         math: Fix some C++ test errors on Solaris 8 and Cygwin.
33595         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
33596
33597 2010-04-04  Bruno Haible  <bruno@clisp.org>
33598
33599         Implement nanosleep for native Windows.
33600         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
33601
33602 2010-04-04  Bruno Haible  <bruno@clisp.org>
33603
33604         math: Fix some C++ test errors on Solaris 8.
33605         * lib/math.in.h (truncf, trunc): Use simpler idiom.
33606
33607 2010-04-04  Bruno Haible  <bruno@clisp.org>
33608
33609         math: Fix some C++ test errors on Cygwin.
33610         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
33611         truncl): Provide declaration if the system does not have it.
33612         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
33613         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
33614         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
33615         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
33616         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
33617         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
33618         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
33619         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
33620         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
33621         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
33622         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
33623         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
33624         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
33625         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
33626         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
33627         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
33628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
33629         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33630         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33631         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
33632         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33633         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33634
33635 2010-04-04  Bruno Haible  <bruno@clisp.org>
33636
33637         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
33638         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33639         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
33640         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33641         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33642         * m4/isinf.m4 (gl_ISINF): Likewise.
33643         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
33644
33645 2010-04-04  Bruno Haible  <bruno@clisp.org>
33646
33647         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
33648         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
33649
33650 2010-04-04  Bruno Haible  <bruno@clisp.org>
33651
33652         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
33653         * modules/tmpfile (configure.ac): Update.
33654
33655         tmpfile: Fix C++ test error on mingw.
33656         * lib/stdio.in.h (tmpfile): New declaration.
33657         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
33658         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
33659         * modules/tmpfile (Depends-on): Add stdio.
33660         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
33661         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
33662         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
33663         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
33664         REPLACE_TMPFILE.
33665         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
33666
33667 2010-04-04  Bruno Haible  <bruno@clisp.org>
33668
33669         ioctl: Fix C++ test error on mingw.
33670         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
33671         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
33672         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
33673
33674 2010-04-03  Bruno Haible  <bruno@clisp.org>
33675
33676         wcwidth: Fix C++ test error on mingw.
33677         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
33678         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
33679         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
33680
33681 2010-04-03  Bruno Haible  <bruno@clisp.org>
33682
33683         nanosleep: Fix C++ test error on mingw.
33684         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
33685         * lib/time.in.h (nanosleep): Use modern idiom.
33686         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
33687         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
33688         REPLACE_NANOSLEEP to 1.
33689         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
33690         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
33691
33692 2010-04-03  Bruno Haible  <bruno@clisp.org>
33693
33694         strptime: Fix C++ test error on mingw.
33695         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
33696         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
33697         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
33698         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
33699         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
33700         not REPLACE_STRPTIME.
33701         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
33702         REPLACE_STRPTIME.
33703
33704 2010-04-03  Bruno Haible  <bruno@clisp.org>
33705
33706         timegm: Fix C++ test error on mingw.
33707         * lib/time.in.h (timegm): Use modern idiom.
33708         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
33709         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
33710         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
33711         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
33712
33713 2010-04-03  Bruno Haible  <bruno@clisp.org>
33714
33715         timegm: Assume declaration if function exists.
33716         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
33717         if it exists. Don't clobber ac_cv_func_timegm.
33718
33719 2010-04-03  Bruno Haible  <bruno@clisp.org>
33720
33721         time_r: Fix C++ test error on mingw.
33722         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
33723         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
33724         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
33725         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
33726         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
33727
33728 2010-04-03  Bruno Haible  <bruno@clisp.org>
33729
33730         time_r: Minor updates.
33731         * modules/time_r (Description): Mention the provided functions.
33732         * lib/time_r.c: Don't include <string.h>.
33733         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
33734         * doc/posix-functions/localtime_r.texi: Likewise.
33735
33736 2010-04-03  Bruno Haible  <bruno@clisp.org>
33737
33738         time: Fix regression introduced on 2010-03-08.
33739         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
33740         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
33741
33742 2010-04-03  Jim Meyering  <meyering@redhat.com>
33743
33744         maint.mk: don't silently disable project-specific syntax-check rules
33745         * top/maint.mk (_prohibit_regexp): Define, to help people realize
33746         that they need to convert their project-specific syntax-check rules
33747         to use the new _sc_search_regexp.
33748
33749 2010-04-03  Bruno Haible  <bruno@clisp.org>
33750
33751         fchdir: Fix regression introduced on 2010-03-08.
33752         * lib/unistd.in.h (fchdir): Fix declaration.
33753         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
33754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
33755         REPLACE_FCHDIR.
33756         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
33757         REPLACE_FCHDIR.
33758
33759 2010-04-03  Bruno Haible  <bruno@clisp.org>
33760
33761         getpagesize: Fix C++ test error on mingw.
33762         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
33763         system does not declare the function.
33764         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
33765         declared.
33766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33767         HAVE_DECL_GETPAGESIZE.
33768         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
33769
33770 2010-04-03  Bruno Haible  <bruno@clisp.org>
33771
33772         stdio: Make C++ tests work on mingw.
33773         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
33774         does not declare the function.
33775
33776 2010-04-03  Bruno Haible  <bruno@clisp.org>
33777
33778         ftello: Fix C++ test error on mingw.
33779         * lib/stdio.in.h (ftello): Use modern idiom.
33780         * lib/ftello.c (ftello): Renamed from rpl_ftello.
33781         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
33782         is missing and that it needs to be replaced.
33783         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
33784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
33785         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
33786
33787 2010-04-03  Bruno Haible  <bruno@clisp.org>
33788
33789         fseeko: Fix C++ test error on mingw.
33790         * lib/stdio.in.h (fseeko): Use modern idiom.
33791         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
33792         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
33793         is missing and that it needs to be replaced.
33794         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
33795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
33796         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
33797
33798 2010-04-03  Bruno Haible  <bruno@clisp.org>
33799
33800         mkstemp: Fix C++ test error on mingw.
33801         * lib/stdlib.in.h (mkstemp): Use modern idiom.
33802         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
33803         function is missing and that it needs to be replaced.
33804         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
33805         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
33806
33807 2010-04-03  Bruno Haible  <bruno@clisp.org>
33808
33809         stpncpy: Fix C++ test error on mingw.
33810         * lib/string.in.h (stpncpy): Use modern idiom.
33811         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
33812         function is missing and that it needs to be replaced.
33813         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33814         REPLACE_STPNCPY.
33815         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
33816
33817 2010-04-03  Bruno Haible  <bruno@clisp.org>
33818
33819         sys_stat: Fix C++ test error on mingw.
33820         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
33821         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
33822
33823 2010-04-03  Bruno Haible  <bruno@clisp.org>
33824
33825         pty: Update doc.
33826         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
33827
33828 2010-04-03  Bruno Haible  <bruno@clisp.org>
33829
33830         unistd: Fix C++ test error on mingw.
33831         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
33832
33833 2010-04-03  Bruno Haible  <bruno@clisp.org>
33834
33835         Update doc regarding mingw.
33836         * doc/glibc-functions/openpty.texi: Update regarding mingw.
33837         * doc/glibc-functions/login_tty.texi: Likewise.
33838         * doc/glibc-functions/forkpty.texi: Likewise.
33839
33840 2010-04-03  Bruno Haible  <bruno@clisp.org>
33841
33842         stdlib: Avoid compilation failure of c-strtold on mingw.
33843         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
33844
33845 2010-04-03  Bruno Haible  <bruno@clisp.org>
33846
33847         locale: Make C++ tests work on Cygwin and mingw.
33848         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
33849         cannot provide the function.
33850         Reported by Simon Josefsson.
33851
33852 2010-04-03  Bruno Haible  <bruno@clisp.org>
33853
33854         localename: Port to MacOS X 10.6.
33855         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
33856         memory layout of the locales in MacOS X 10.6 as well.
33857         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
33858
33859 2010-04-02  Bruno Haible  <bruno@clisp.org>
33860
33861         gnulib-tool: Ensure that long-running tests are executed last.
33862         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
33863         running tests after the one for the other tests.
33864
33865 2010-04-02  Bruno Haible  <bruno@clisp.org>
33866
33867         gnulib-tool: Ensure the tests in the main directory are executed first.
33868         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
33869         start with the current directory.
33870
33871 2010-04-02  Bruno Haible  <bruno@clisp.org>
33872
33873         Tests for module 'havelib', moved here from GNU gettext.
33874         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
33875         modifications.
33876         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
33877         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
33878         with modifications.
33879         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
33880         modifications.
33881         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
33882         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
33883         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
33884         with modifications.
33885         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
33886         with modifications.
33887         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
33888         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
33889         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
33890         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
33891         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
33892         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
33893         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
33894         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
33895         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
33896         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
33897         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
33898         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
33899         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
33900         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
33901         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
33902         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
33903         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
33904         with modifications.
33905         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
33906         with modifications.
33907         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
33908         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
33909         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
33910         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
33911         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
33912         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
33913         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
33914         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
33915         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
33916         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
33917         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
33918         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
33919         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
33920         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
33921         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
33922         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
33923         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
33924         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
33925         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
33926         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
33927         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
33928         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
33929         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
33930         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
33931         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
33932         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
33933         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
33934         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
33935         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
33936         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
33937         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
33938         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
33939         * tests/havelib/rpathx/rpathx.c: New file, from
33940         gettext/autoconf-lib-link.
33941         * tests/havelib/rpathx/Makefile.am: New file, from
33942         gettext/autoconf-lib-link.
33943         * tests/havelib/rpathx/configure.ac: New file, from
33944         gettext/autoconf-lib-link with modifications.
33945         * tests/havelib/rpathy/rpathy.c: New file, from
33946         gettext/autoconf-lib-link.
33947         * tests/havelib/rpathy/Makefile.am: New file, from
33948         gettext/autoconf-lib-link.
33949         * tests/havelib/rpathy/configure.ac: New file, from
33950         gettext/autoconf-lib-link with modifications.
33951         * tests/havelib/rpathz/rpathz.c: New file, from
33952         gettext/autoconf-lib-link.
33953         * tests/havelib/rpathz/Makefile.am: New file, from
33954         gettext/autoconf-lib-link.
33955         * tests/havelib/rpathz/configure.ac: New file, from
33956         gettext/autoconf-lib-link with modifications.
33957         * tests/havelib/rpathlx/usex.c: New file, from
33958         gettext/autoconf-lib-link.
33959         * tests/havelib/rpathlx/Makefile.am: New file, from
33960         gettext/autoconf-lib-link.
33961         * tests/havelib/rpathlx/configure.ac: New file, from
33962         gettext/autoconf-lib-link with modifications.
33963         * tests/havelib/rpathly/usey.c: New file, from
33964         gettext/autoconf-lib-link.
33965         * tests/havelib/rpathly/Makefile.am: New file, from
33966         gettext/autoconf-lib-link.
33967         * tests/havelib/rpathly/configure.ac: New file, from
33968         gettext/autoconf-lib-link with modifications.
33969         * tests/havelib/rpathlz/usez.c: New file, from
33970         gettext/autoconf-lib-link.
33971         * tests/havelib/rpathlz/Makefile.am: New file, from
33972         gettext/autoconf-lib-link.
33973         * tests/havelib/rpathlz/configure.ac: New file, from
33974         gettext/autoconf-lib-link with modifications.
33975         * tests/havelib/rpathlyx/usey.c: New file, from
33976         gettext/autoconf-lib-link.
33977         * tests/havelib/rpathlyx/Makefile.am: New file, from
33978         gettext/autoconf-lib-link.
33979         * tests/havelib/rpathlyx/configure.ac: New file, from
33980         gettext/autoconf-lib-link with modifications.
33981         * tests/havelib/rpathlzyx/usez.c: New file, from
33982         gettext/autoconf-lib-link.
33983         * tests/havelib/rpathlzyx/Makefile.am: New file, from
33984         gettext/autoconf-lib-link.
33985         * tests/havelib/rpathlzyx/configure.ac: New file, from
33986         gettext/autoconf-lib-link with modifications.
33987         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
33988         with modifications.
33989
33990 2010-04-02  Bruno Haible  <bruno@clisp.org>
33991
33992         gnulib-tool: Create distributed built sources also for the tests.
33993         * gnulib-tool (func_create_testdir): Also generate distributed built
33994         sources in the tests directory.
33995
33996 2010-04-02  Bruno Haible  <bruno@clisp.org>
33997
33998         gnulib-tool: Obey user's environment variables.
33999         * gnulib-tool (func_create_testdir): When creating built sources,
34000         respect the environment variables for autoconf, automake, etc. given by
34001         the user.
34002
34003 2010-04-02  Bruno Haible  <bruno@clisp.org>
34004
34005         gnulib-tool: Provide the value of --m4-base to modules.
34006         * gnulib-tool (func_import, func_create_testdir): Emit a definition
34007         of gl_m4_base.
34008
34009 2010-04-02  Eric Blake  <eblake@redhat.com>
34010
34011         maint.mk: fix some fallout
34012         * NEWS: Document the incompatible change, and its effect on cfg.mk.
34013         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
34014
34015 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34016
34017         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
34018         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
34019         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
34020         (sc_cast_of_x_alloc_return_value): Likewise.
34021         (sc_cast_of_alloca_return_value): Likewise.
34022         (sc_space_tab): Likewise.
34023         (sc_prohibit_atoi_atof): Likewise.
34024         (sc_prohibit_magic_number_exit): Likewise.
34025         (sc_error_exit_success): Likewise.
34026         (sc_file_system): Likewise.
34027         (sc_prohibit_have_config_h): Likewise.
34028         (sc_require_config_h): Likewise.
34029         (sc_prohibit_HAVE_MBRTOWC): Likewise.
34030         (sc_obsolete_symbols): Likewise.
34031         (sc_changelog): Likewise.
34032         (sc_program_name): Likewise.
34033         (sc_the_the): Likewise.
34034         (sc_trailing_blank): Likewise.
34035         (sc_two_space_separator_in_usage): Likewise.
34036         (sc_useless_cpp_parens): Likewise.
34037         (sc_GPL_version): Likewise.
34038         (sc_GFDL_version): Likewise.
34039         (sc_texinfo_acronym): Likewise.
34040         (sc_prohibit_cvs_keyword): Likewise.
34041         (sc_prohibit_stat_st_blocks): Likewise.
34042         (sc_prohibit_S_IS_definition): Likewise.
34043         (sc_redundant_const): Likewise.
34044         (sc_makefile_TAB_only_indentation): Likewise.
34045         (sc_m4_quote_check): Likewise.
34046         (sc_makefile_path_separator_check): Likewise.
34047         (sc_copyright_check): Likewise.
34048         (sc_Wundef_boolean): Likewise.
34049         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
34050
34051         maint.mk: match 0 or more whitespace-before-function-call '('
34052         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
34053         that have zero or two-and-more spaces between the function name
34054         and the open parenthesis.
34055         (sc_error_message_warn_fatal): Likewise.
34056         (sc_error_message_uppercase): Likewise.
34057         (sc_error_message_period): Likewise.
34058
34059 2010-03-31  Eric Blake  <eblake@redhat.com>
34060
34061         maint.mk: check for [ as well as test
34062         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
34063         Based on a libvirt report by Matthias Bolte.
34064
34065         gnumakefile: don't squelch _version output
34066         * top/GNUmakefile (_version): Create one-shot dependency rather
34067         than using $(shell) when version must be regenerated.
34068         (_autoreconf): Run verbosely, by default.
34069
34070         sys_time: avoid compiler warnings
34071         * lib/sys_time.in.h (includes): Ensure gcc pragma is
34072         unconditional, fixing regression from 2010-03-29.
34073         Reported by Simon Josefsson.
34074
34075 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34076
34077         maint.mk: s/_header_without_use/_sc_header_without_use/
34078         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
34079         (sc_prohibit_assert_without_use): Use the new name.
34080         (sc_prohibit_close_stream_without_use): Likewise.
34081         (sc_prohibit_getopt_without_use): Likewise.
34082         (sc_prohibit_quotearg_without_use): Likewise.
34083         (sc_prohibit_quote_without_use): Likewise.
34084         (sc_prohibit_long_options_without_use): Likewise.
34085         (sc_prohibit_inttostr_without_use): Likewise.
34086         (sc_prohibit_ignore_value_without_use): Likewise.
34087         (sc_prohibit_error_without_use): Likewise.
34088         (sc_prohibit_xalloc_without_use): Likewise.
34089         (sc_prohibit_hash_without_use): Likewise.
34090         (sc_prohibit_hash_pjw_without_use): Likewise.
34091         (sc_prohibit_safe_read_without_use): Likewise.
34092         (sc_prohibit_argmatch_without_use): Likewise.
34093         (sc_prohibit_canonicalize_without_use): Likewise.
34094         (sc_prohibit_root_dev_ino_without_use): Likewise.
34095         (sc_prohibit_openat_without_use): Likewise.
34096         (sc_prohibit_c_ctype_without_use): Likewise.
34097         (sc_prohibit_signal_without_use): Likewise.
34098         (sc_prohibit_intprops_without_use): Likewise.
34099
34100 2010-03-30  Eric Blake  <eblake@redhat.com>
34101
34102         maint: improve module indicators
34103         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
34104         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
34105         columns, and avoid extra macro expansion.
34106
34107         fdopendir: work around FreeBSD bug
34108         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34109         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
34110         * modules/dirent (Makefile.am): Substitute it.
34111         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
34112         declaration.
34113         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
34114         fix.
34115         Reported by Christian Weisgerber <naddy@mips.inka.de>.
34116
34117 2010-03-29  Bruno Haible  <bruno@clisp.org>
34118
34119         Emit #pragma system_header after the inclusion guard, not before.
34120         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
34121         guard that spans the entire file, not before. This enables an
34122         optimization in GCC's preprocessor.
34123         * lib/ctype.in.h: Likewise.
34124         * lib/dirent.in.h: Likewise.
34125         * lib/errno.in.h: Likewise.
34126         * lib/float.in.h: Likewise.
34127         * lib/getopt.in.h: Likewise.
34128         * lib/iconv.in.h: Likewise.
34129         * lib/langinfo.in.h: Likewise.
34130         * lib/locale.in.h: Likewise.
34131         * lib/math.in.h: Likewise.
34132         * lib/netdb.in.h: Likewise.
34133         * lib/netinet_in.in.h: Likewise.
34134         * lib/pty.in.h: Likewise.
34135         * lib/sched.in.h: Likewise.
34136         * lib/se-selinux.in.h: Likewise.
34137         * lib/search.in.h: Likewise.
34138         * lib/spawn.in.h: Likewise.
34139         * lib/stdarg.in.h: Likewise.
34140         * lib/stdint.in.h: Likewise.
34141         * lib/string.in.h: Likewise.
34142         * lib/strings.in.h: Likewise.
34143         * lib/sys_file.in.h: Likewise.
34144         * lib/sys_ioctl.in.h: Likewise.
34145         * lib/sys_time.in.h: Likewise.
34146         * lib/sys_times.in.h: Likewise.
34147         * lib/sys_utsname.in.h: Likewise.
34148         * lib/sys_wait.in.h: Likewise.
34149         * lib/sysexits.in.h: Likewise.
34150         * lib/wctype.in.h: Likewise.
34151
34152 2010-03-28  James Youngman  <jay@gnu.org>
34153
34154         save-cwd: don't leak a file descriptor when the caller execs.
34155         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
34156         saved file descriptor.
34157         * modules/save-cwd (Depends-on): Depend on cloexec.
34158
34159 2010-03-29  Bruno Haible  <bruno@clisp.org>
34160
34161         Remove vestiges of fts-lgpl module.
34162         * lib/fts_.h: Assume GNULIB_FTS is 1.
34163         * lib/fts.c: Likewise.
34164         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34165
34166 2010-03-28  Bruno Haible  <bruno@clisp.org>
34167
34168         Fix definition of tests witness macro.
34169         * gnulib-tool (func_import): Fix definition of witness macro.
34170
34171 2010-03-28  Bruno Haible  <bruno@clisp.org>
34172
34173         Fix ioctl's protoype on glibc systems.
34174         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
34175         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
34176         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
34177         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
34178         signature. If not, arrange to replace the ioctl function.
34179         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34180         REPLACE_IOCTL.
34181         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
34182         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
34183         Reported by Ludovic Courtès <ludo@gnu.org>.
34184
34185 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
34186
34187         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
34188         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
34189         made it so grep -r --include=GLOB* ... did not work.
34190
34191 2010-03-26  Jim Meyering  <meyering@redhat.com>
34192             Eric Blake  <eblake@redhat.com>
34193
34194         maint.mk: prohibit use of test's -o and -a operators
34195         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
34196
34197 2010-03-28  Bruno Haible  <bruno@clisp.org>
34198
34199         Remove unused GNULIB_XYZ macro definitions.
34200         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
34201         invocation.
34202
34203 2010-03-28  Bruno Haible  <bruno@clisp.org>
34204
34205         Mark privileged tests modules.
34206         * modules/idpriv-drop-tests (Status): New section.
34207         * modules/idpriv-droptemp-tests (Status): New section.
34208
34209 2010-03-28  Bruno Haible  <bruno@clisp.org>
34210
34211         Split C++ tests into separate tests modules.
34212         * modules/dirent-c++-tests: New file, extracted from
34213         modules/dirent-tests.
34214         * modules/dirent-tests: Depend on it.
34215         * modules/fcntl-h-c++-tests: New file, extracted from
34216         modules/fcntl-h-tests.
34217         * modules/fcntl-h-tests: Depend on it.
34218         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
34219         * modules/glob-tests: Depend on it.
34220         * modules/iconv-h-c++-tests: New file, extracted from
34221         modules/iconv-h-tests.
34222         * modules/iconv-h-tests: Depend on it.
34223         * modules/langinfo-c++-tests: New file, extracted from
34224         modules/langinfo-tests.
34225         * modules/langinfo-tests: Depend on it.
34226         * modules/locale-c++-tests: New file, extracted from
34227         modules/locale-tests.
34228         * modules/locale-tests: Depend on it.
34229         * modules/math-c++-tests: New file, extracted from modules/math-tests.
34230         * modules/math-tests: Depend on it.
34231         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
34232         * modules/pty-tests: Depend on it.
34233         * modules/search-c++-tests: New file, extracted from
34234         modules/search-tests.
34235         * modules/search-tests: Depend on it.
34236         * modules/signal-c++-tests: New file, extracted from
34237         modules/signal-tests.
34238         * modules/signal-tests: Depend on it.
34239         * modules/spawn-c++-tests: New file, extracted from
34240         modules/spawn-tests.
34241         * modules/spawn-tests: Depend on it.
34242         * modules/stdio-c++-tests: New file, extracted from
34243         modules/stdio-tests.
34244         * modules/stdio-tests: Depend on it.
34245         * modules/stdlib-c++-tests: New file, extracted from
34246         modules/stdlib-tests.
34247         * modules/stdlib-tests: Depend on it.
34248         * modules/string-c++-tests: New file, extracted from
34249         modules/string-tests.
34250         * modules/string-tests: Depend on it.
34251         * modules/sys_ioctl-c++-tests: New file, extracted from
34252         modules/sys_ioctl-tests.
34253         * modules/sys_ioctl-tests: Depend on it.
34254         * modules/sys_select-c++-tests: New file, extracted from
34255         modules/sys_select-tests.
34256         * modules/sys_select-tests: Depend on it.
34257         * modules/sys_socket-c++-tests: New file, extracted from
34258         modules/sys_socket-tests.
34259         * modules/sys_socket-tests: Depend on it.
34260         * modules/sys_stat-c++-tests: New file, extracted from
34261         modules/sys_stat-tests.
34262         * modules/sys_stat-tests: Depend on it.
34263         * modules/sys_time-c++-tests: New file, extracted from
34264         modules/sys_time-tests.
34265         * modules/sys_time-tests: Depend on it.
34266         * modules/time-c++-tests: New file, extracted from modules/time-tests.
34267         * modules/time-tests: Depend on it.
34268         * modules/unistd-c++-tests: New file, extracted from
34269         modules/unistd-tests.
34270         * modules/unistd-tests: Depend on it.
34271         * modules/wchar-c++-tests: New file, extracted from
34272         modules/wchar-tests.
34273         * modules/wchar-tests: Depend on it.
34274         * modules/wctype-c++-tests: New file, extracted from
34275         modules/wctype-tests.
34276         * modules/wctype-tests: Depend on it.
34277         Reported by Simon Josefsson.
34278
34279 2010-03-28  Bruno Haible  <bruno@clisp.org>
34280
34281         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
34282         * gnulib-tool (func_exists_module): New function, extracted from
34283         func_verify_module.
34284         (func_verify_module): Use it.
34285         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
34286         'foo' only if 'foo' exists.
34287         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
34288         module.
34289
34290 2010-03-28  Bruno Haible  <bruno@clisp.org>
34291
34292         gnulib-tool: Add support for special categories of tests.
34293         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
34294         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
34295         (func_usage): Document them.
34296         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
34297         inc_unportable_tests, inc_all_tests): New variables.
34298         (func_acceptable): Consider these variables.
34299         (func_modules_transitive_closure): Make it work when the 'Status' field
34300         consists of multiple words.
34301         (func_import): Store and restore the values of inc_cxx_tests,
34302         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
34303         inc_all_tests in gnulib-comp.m4.
34304         (func_create_testdir): Set inc_all_tests to true.
34305         * doc/gnulib.texi (Extra tests modules): New section.
34306         Suggested by Jim Meyering.
34307
34308 2010-03-28  Bruno Haible  <bruno@clisp.org>
34309
34310         ansi-c++-opt: Allow turning off the C++ build by default.
34311         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
34312         gl_CXX_CHOICE_DEFAULT_NO is defined.
34313         Requested by Eric Blake.
34314
34315 2010-03-28  Bruno Haible  <bruno@clisp.org>
34316
34317         unistd: Avoid #define replacements in C++ mode.
34318         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
34319         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
34320         setsockopt, shutdown, select): In C++, attach a warning to the function
34321         if possible, rather than #defining the symbol to a dysfunctional alias.
34322         Reported by John W. Eaton <jwe@gnu.org>.
34323
34324 2010-03-28  Bruno Haible  <bruno@clisp.org>
34325
34326         Fix link errors on mingw.
34327         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
34328         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
34329         $(LIBSOCKET).
34330         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
34331         $(LIBSOCKET).
34332
34333 2010-03-28  Bruno Haible  <bruno@clisp.org>
34334             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34335
34336         lib-ignore: Determine different options for different compilers.
34337         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
34338         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
34339         Add comments.
34340         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
34341         * NEWS: Mention the change.
34342
34343 2010-03-27  Bruno Haible  <bruno@clisp.org>
34344
34345         Remove unused GNULIB_XYZ macro definitions.
34346         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34347         * modules/fseek (configure.ac): Likewise.
34348         * modules/ioctl (configure.ac): Likewise.
34349         * modules/open (configure.ac): Likewise.
34350         * modules/stdlib-safer (configure.ac): Likewise.
34351
34352 2010-03-27  Bruno Haible  <bruno@clisp.org>
34353
34354         Add a remark about certain modules.
34355         * modules/malloc (Comment): New section.
34356         * modules/realloc (Comment): Likewise.
34357         * modules/sigpipe (Comment): Likewise.
34358
34359 2010-03-27  Bruno Haible  <bruno@clisp.org>
34360
34361         Resolve conflict between the two kinds of module indicators.
34362         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
34363         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
34364         * modules/canonicalize (configure.ac): Invoke
34365         gl_MODULE_INDICATOR_FOR_TESTS.
34366         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
34367         GNULIB_XYZ.
34368         * tests/test-dirent-c++.cc: Likewise.
34369         * tests/test-dirent-safer.c: Likewise.
34370         * tests/test-dup2.c: Likewise.
34371         * tests/test-fchdir.c: Likewise.
34372         * tests/test-fcntl-h-c++.cc: Likewise.
34373         * tests/test-getopt.c: Likewise.
34374         * tests/test-getopt.h: Likewise.
34375         * tests/test-langinfo-c++.cc: Likewise.
34376         * tests/test-locale-c++.cc: Likewise.
34377         * tests/test-math-c++.cc: Likewise.
34378         * tests/test-pty-c++.cc: Likewise.
34379         * tests/test-search-c++.cc: Likewise.
34380         * tests/test-signal-c++.cc: Likewise.
34381         * tests/test-spawn-c++.cc: Likewise.
34382         * tests/test-stdio-c++.cc: Likewise.
34383         * tests/test-stdlib-c++.cc: Likewise.
34384         * tests/test-string-c++.cc: Likewise.
34385         * tests/test-sys_ioctl-c++.cc: Likewise.
34386         * tests/test-sys_select-c++.cc: Likewise.
34387         * tests/test-sys_socket-c++.cc: Likewise.
34388         * tests/test-sys_stat-c++.cc: Likewise.
34389         * tests/test-sys_time-c++.cc: Likewise.
34390         * tests/test-time-c++.cc: Likewise.
34391         * tests/test-unistd-c++.cc: Likewise.
34392         * tests/test-wchar-c++.cc: Likewise.
34393         * tests/uninorm/test-u8-nfc.c: Likewise.
34394         * tests/uninorm/test-u8-nfd.c: Likewise.
34395         * tests/uninorm/test-u8-nfkc.c: Likewise.
34396         * tests/uninorm/test-u8-nfkd.c: Likewise.
34397         * tests/uninorm/test-u16-nfc.c: Likewise.
34398         * tests/uninorm/test-u16-nfd.c: Likewise.
34399         * tests/uninorm/test-u16-nfkc.c: Likewise.
34400         * tests/uninorm/test-u16-nfkd.c: Likewise.
34401         * tests/uninorm/test-u32-nfc.c: Likewise.
34402         * tests/uninorm/test-u32-nfc-big.c: Likewise.
34403         * tests/uninorm/test-u32-nfd.c: Likewise.
34404         * tests/uninorm/test-u32-nfd-big.c: Likewise.
34405         * tests/uninorm/test-u32-nfkc.c: Likewise.
34406         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
34407         * tests/uninorm/test-u32-nfkd.c: Likewise.
34408         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
34409         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34410
34411 2010-03-27  Bruno Haible  <bruno@clisp.org>
34412
34413         Distinguish two kinds of module indicators.
34414         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
34415         gl_MODULE_INDICATOR.
34416         (gl_MODULE_INDICATOR): New macro.
34417         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34418         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
34419         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34420         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34421         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34422         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34423         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34424         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34425         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34426         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34427         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34428         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34429         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34430         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34431         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34432         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34433         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34434         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34435         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34436         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34437         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34438         * modules/cloexec (configure.ac): Likewise.
34439         * modules/getopt-gnu (configure.ac): Likewise.
34440         * modules/uninorm/u8-normalize (configure.ac): Likewise.
34441         * modules/uninorm/u16-normalize (configure.ac): Likewise.
34442         * modules/uninorm/u32-normalize (configure.ac): Likewise.
34443         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
34444
34445 2010-03-27  Bruno Haible  <bruno@clisp.org>
34446
34447         New module description field 'Comment'.
34448         * gnulib-tool: New option --extract-comment.
34449         (func_usage): Document it.
34450         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
34451         (func_get_comment): New function.
34452         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
34453
34454 2010-03-27  Bruno Haible  <bruno@clisp.org>
34455
34456         Addendum to 2010-02-07 commit.
34457         * gnulib-tool (func_usage): Document --extract-applicability option.
34458
34459 2010-03-27  Bruno Haible  <bruno@clisp.org>
34460
34461         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
34462         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
34463         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
34464         rather than link errors.
34465
34466 2010-03-27  Bruno Haible  <bruno@clisp.org>
34467
34468         Avoid side effects from tests-related modules on the compilation of lib.
34469         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
34470         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
34471         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
34472         parameter. Emit into AM_CPPFLAGS a definition of the designated C
34473         macro.
34474         (func_import): Define a witness macro. Assign it a value that depends
34475         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
34476         tests-related modules.
34477         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
34478         Reported by Jim Meyering.
34479
34480 2010-03-27  Bruno Haible  <bruno@clisp.org>
34481
34482         Factorize common .m4 code.
34483         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
34484         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
34485         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
34486         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
34487         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34488         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
34489         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
34490         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34491         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34492         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34493         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
34494         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34495         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34496         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34497         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34498         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
34499         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34500         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34501         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34502         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
34503         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
34504         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34505         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34506         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34507         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34508         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34509         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
34510         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
34511         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
34512         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34513         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34514         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34515
34516 2010-03-27  Bruno Haible  <bruno@clisp.org>
34517
34518         Fix a compilation error on Cygwin with g++ >= 4.3.
34519         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
34520         if it is undefined or if we alias it to chmod.
34521         (lstat): Don't warn about the use of this function if it is undefined
34522         or if we alias it to stat.
34523         Reported by Simon Josefsson.
34524
34525 2010-03-27  Bruno Haible  <bruno@clisp.org>
34526
34527         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
34528         * modules/getlogin (configure.ac): Update.
34529
34530         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
34531         * modules/getlogin_r (configure.ac): Update.
34532
34533         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
34534         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
34535         * modules/inet_ntop (configure.ac): Update.
34536
34537         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
34538         * modules/inet_pton (configure.ac): Update.
34539
34540         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
34541         * modules/mbslen (configure.ac): Update.
34542
34543         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
34544         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
34545         * modules/forkpty (configure.ac): Update.
34546         * modules/openpty (configure.ac): Update.
34547
34548 2010-03-26  Simon Josefsson  <simon@josefsson.org>
34549
34550         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
34551         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
34552
34553 2010-03-25  Eric Blake  <eblake@redhat.com>
34554
34555         maint: use pragma consistently across replacement headers
34556         * lib/ctype.in.h (system_header): Hoist for consistent placement.
34557         * lib/dirent.in.h (system_header): Likewise.
34558         * lib/errno.in.h (system_header): Likewise.
34559         * lib/float.in.h (system_header): Likewise.
34560         * lib/getopt.in.h (system_header): Likewise.
34561         * lib/iconv.in.h (system_header): Likewise.
34562         * lib/inttypes.in.h (system_header): Likewise.
34563         * lib/langinfo.in.h (system_header): Likewise.
34564         * lib/locale.in.h (system_header): Likewise.
34565         * lib/math.in.h (system_header): Likewise.
34566         * lib/netdb.in.h (system_header): Likewise.
34567         * lib/netinet_in.in.h (system_header): Likewise.
34568         * lib/pty.in.h (system_header): Likewise.
34569         * lib/sched.in.h (system_header): Likewise.
34570         * lib/se-selinux.in.h (system_header): Likewise.
34571         * lib/search.in.h (system_header): Likewise.
34572         * lib/spawn.in.h (system_header): Likewise.
34573         * lib/stdarg.in.h (system_header): Likewise.
34574         * lib/stdint.in.h (system_header): Likewise.
34575         * lib/string.in.h (system_header): Likewise.
34576         * lib/strings.in.h (system_header): Likewise.
34577         * lib/sys_file.in.h (system_header): Likewise.
34578         * lib/sys_ioctl.in.h (system_header): Likewise.
34579         * lib/sys_socket.in.h (system_header): Likewise.
34580         * lib/sys_times.in.h (system_header): Likewise.
34581         * lib/sys_utsname.in.h (system_header): Likewise.
34582         * lib/sys_wait.in.h (system_header): Likewise.
34583         * lib/sysexits.in.h (system_header): Likewise.
34584         * lib/unistd.in.h (system_header): Likewise.
34585         * lib/wctype.in.h (system_header): Likewise.
34586
34587         arpa/inet: fix mingw compilation warning
34588         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
34589         Reported by Matthew Bolte.
34590
34591 2010-03-25  Bruno Haible  <bruno@clisp.org>
34592
34593         Avoid collision between gnulib wrapper and libintl wrapper.
34594         * lib/printf.c (printf): Don't define if a printf wrapper is already
34595         defined in intl/printf.c.
34596         Reported by Michel Boaventura <michel@michelboaventura.com>.
34597
34598 2010-03-25  Bruno Haible  <bruno@clisp.org>
34599
34600         Use ANSI C.
34601         * lib/readutmp.h (getutent): Provide ANSI C prototype.
34602
34603 2010-03-25  Bruno Haible  <bruno@clisp.org>
34604
34605         Minor formatting changes.
34606         * lib/acosl.c: Insert space before function argument list.
34607         * lib/argz.c: Likewise.
34608         * lib/asinl.c: Likewise.
34609         * lib/expl.c: Likewise.
34610         * lib/gen-uni-tables.c: Likewise.
34611         * lib/gettext.h: Likewise.
34612         * lib/glthread/lock.h: Likewise.
34613         * lib/tanl.c: Likewise.
34614         * lib/uniname/uniname.c: Likewise.
34615         * tests/test-idpriv-drop.c: Likewise.
34616         * tests/test-idpriv-droptemp.c: Likewise.
34617         * tests/test-lock.c: Likewise.
34618         * tests/test-tls.c: Likewise.
34619         * lib/argp-help.c: Insert space before function-like macro argument
34620         list.
34621         * lib/memcmp.c: Likewise.
34622         * tests/test-base64.c: Likewise.
34623         * lib/localename.c: Insert space before sizeof's argument list.
34624         * lib/safe-alloc.h: Likewise.
34625         * lib/file-set.h: Insert space before macro argument list.
34626         * tests/test-argp.c: Likewise.
34627         * lib/argp-namefrob.h: Insert space before function parameter list.
34628         * lib/getaddrinfo.c: Likewise.
34629         * lib/netdb.in.h: Likewise.
34630         * lib/parse-duration.h: Likewise.
34631         * lib/parse-duration.c: Likewise.
34632         * lib/poll.c: Likewise.
34633         * lib/select.c: Likewise.
34634         * lib/trim.h: Likewise.
34635         * tests/test-usleep.c: Likewise.
34636         * lib/ldexpl.c: Insert space before function parameter list and before
34637         function argument list.
34638         * lib/logl.c: Likewise.
34639         * lib/sqrtl.c: Likewise.
34640         * lib/trim.c: Likewise.
34641         * lib/cosl.c: Use GNU style indentation. Insert space before function
34642         argument list.
34643         * lib/sinl.c: Likewise.
34644         * lib/tsearch.c: Insert space after 'for'.
34645         Reported by Jim Meyering.
34646
34647 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
34648
34649         * maint.mk (sc_Wundef_boolean): Check for the presence of the
34650         config header before grepping, as it's not present before
34651         autoreconf/configure are run.  Reported by Simon Josefsson.
34652
34653 2010-03-23  Bruno Haible  <bruno@clisp.org>
34654
34655         pt_chown: Make it work with automake < 1.11.
34656         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
34657         Reported by Simon Josefsson.
34658
34659 2010-03-23  Bruno Haible  <bruno@clisp.org>
34660
34661         pt_chown: Don't depend on GPLed modules.
34662         * lib/pt_chown.c: Don't include idpriv.h.
34663         (main): Don't drop privileges.
34664         * modules/pt_chown (Depends-on): Remove idpriv-drop.
34665         Reported by Simon Josefsson.
34666
34667 2010-03-24  Simon Josefsson  <simon@josefsson.org>
34668
34669         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
34670         suggestions from karl@freefriends.org (Karl Berry).
34671
34672 2010-03-22  Eric Blake  <eblake@redhat.com>
34673
34674         gethostname: further tweaks
34675         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
34676         are overriding gethostname.
34677         Suggested by Bruno Haible.
34678
34679 2010-03-21  Bruno Haible  <bruno@clisp.org>
34680
34681         Fix comments.
34682         * lib/forkpty.c (rpl_forkpty): Fix comment.
34683         * lib/openpty.c (rpl_openpty): Likewise.
34684         Reported by Eric Blake.
34685
34686 2010-03-22  Eric Blake  <eblake@redhat.com>
34687
34688         gethostname: fix build on mingw
34689         * lib/unistd.in.h (includes): Work around fact that mingw
34690         <winsock2.h> re-includes <unistd.h>, by avoiding any
34691         redeclarations if we are being included by <winsock2.h>.
34692         Reported by Matthias Bolte.
34693
34694 2010-03-21  Bruno Haible  <bruno@clisp.org>
34695
34696         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34697         * lib/forkpty.c (forkpty): New replacement function, from glibc with
34698         modifications.
34699         * lib/pty.in.h (forkpty): Update declaration. Add comments.
34700         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
34701         provide the replacement.
34702         * modules/forkpty (Depends-on): Add openpty, login_tty.
34703         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
34704         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
34705         * doc/glibc-functions/forkpty.texi: More supported platforms.
34706         * config/srclist.txt: Add forkpty.c (commented).
34707
34708 2010-03-21  Bruno Haible  <bruno@clisp.org>
34709
34710         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
34711         (Makefile.am): Verify that PTY_LIB is defined.
34712
34713         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
34714
34715 2010-03-21  Bruno Haible  <bruno@clisp.org>
34716
34717         Tests for module 'login_tty'.
34718         * modules/login_tty-tests: New file.
34719         * tests/test-login_tty.c: New file.
34720
34721         New module 'login_tty'.
34722         * lib/login_tty.c: New file.
34723         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
34724         * modules/login_tty: New file.
34725         * doc/glibc-functions/login_tty.texi: Mention the new module.
34726
34727 2010-03-21  Bruno Haible  <bruno@clisp.org>
34728
34729         login_tty: Documentation.
34730         * doc/glibc-functions/login_tty.texi: New file.
34731         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
34732
34733 2010-03-21  Bruno Haible  <bruno@clisp.org>
34734
34735         pty: Consistent macro naming.
34736         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
34737         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
34738         * modules/pty (configure.ac): Update.
34739
34740 2010-03-21  Bruno Haible  <bruno@clisp.org>
34741
34742         Tests for openpty: Make stricter.
34743         * tests/test-openpty.c (main): Add test of canonical processing and
34744         erase.
34745         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
34746
34747         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34748         * lib/openpty.c (openpty): New replacement function.
34749         * lib/pty.in.h: Include <termios.h>.
34750         (openpty): Update declaration. Add comments.
34751         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
34752         is not declared, arrange to provide the replacement. Check for _getpty
34753         and posix_openpt.
34754         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
34755         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
34756         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
34757         * modules/pty-tests (test_pty_c___LDADD): New variable.
34758         * doc/glibc-functions/openpty.texi: More supported platforms.
34759
34760 2010-03-21  Bruno Haible  <bruno@clisp.org>
34761
34762         setenv: Tweaks.
34763         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
34764         the test program.
34765         * doc/posix-functions/setenv.texi: Update platforms list.
34766
34767 2010-03-21  Bruno Haible  <bruno@clisp.org>
34768
34769         New module 'unlockpt'.
34770         * lib/unlockpt.c: New file, from glibc with modifications.
34771         * m4/unlockpt.m4: New file.
34772         * modules/unlockpt: New file.
34773         * lib/stdlib.in.h (unlockpt): New declaration.
34774         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
34775         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
34776         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
34777         HAVE_UNLOCKPT.
34778         * doc/posix-functions/unlockpt.texi: Mention the new module.
34779         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
34780         * config/srclist.txt: Add unlockpt.c (commented).
34781
34782 2010-03-21  Jim Meyering  <meyering@redhat.com>
34783
34784         maint.mk: prohibit inclusion of "intprops.h" without use
34785         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
34786
34787 2010-03-21  Bruno Haible  <bruno@clisp.org>
34788
34789         New module 'grantpt'.
34790         * lib/grantpt.c: New file, from glibc with modifications.
34791         * m4/grantpt.m4: New file.
34792         * modules/grantpt: New file.
34793         * lib/stdlib.in.h (grantpt): New declaration.
34794         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
34795         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
34796         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
34797         HAVE_GRANTPT.
34798         * doc/posix-functions/grantpt.texi: Mention the new module.
34799         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
34800         * config/srclist.txt: Add grantpt.c (commented).
34801
34802 2010-03-21  Bruno Haible  <bruno@clisp.org>
34803
34804         New module 'pt_chown'.
34805         * lib/pt_chown.c: New file, from glibc with modifications.
34806         * lib/pty-private.h: New file, from glibc with modifications.
34807         * modules/pt_chown: New file.
34808         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
34809
34810 2010-03-21  Bruno Haible  <bruno@clisp.org>
34811
34812         Tests for module 'ptsname'.
34813         * modules/ptsname-tests: New file.
34814         * tests/test-ptsname.c: New file.
34815
34816         New module 'ptsname'.
34817         * lib/ptsname.c: New file, from glibc with modifications.
34818         * m4/ptsname.m4: New file.
34819         * modules/ptsname: New file.
34820         * lib/stdlib.in.h (ptsname): New declaration.
34821         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
34822         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
34823         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
34824         HAVE_PTSNAME.
34825         * doc/posix-functions/ptsname.texi: Mention the new module.
34826         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
34827         * config/srclist.txt: Add ptsname.c (commented).
34828
34829 2010-03-21  Bruno Haible  <bruno@clisp.org>
34830
34831         Tests for module 'ttyname_r'.
34832         * modules/ttyname_r-tests: New file.
34833         * tests/test-ttyname_r.c: New file.
34834
34835         New module 'ttyname_r'.
34836         * lib/ttyname_r.c: New file.
34837         * m4/ttyname_r.m4: New file.
34838         * modules/ttyname_r: New file.
34839         * lib/unistd.in.h (ttyname_r): New declaration.
34840         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
34841         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
34842         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
34843         HAVE_TTYNAME_R.
34844         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
34845         * doc/posix-functions/ttyname_r.texi: Mention the new module.
34846
34847 2010-03-20  Bruno Haible  <bruno@clisp.org>
34848
34849         signal: Undefine macro definitions in C++ mode.
34850         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
34851         sigfillset): Undefine macro definitions from the system header in C++
34852         mode.
34853         Reported by John W. Eaton <jwe@gnu.org>.
34854
34855 2010-03-20  Bruno Haible  <bruno@clisp.org>
34856
34857         Ensure no #include statements inside extern "C" { ... }.
34858         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
34859         contain #include statements.
34860         * lib/time.in.h: Likewise.
34861
34862 2010-03-20  Bruno Haible  <bruno@clisp.org>
34863
34864         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
34865         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
34866         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
34867         Reported by John W. Eaton <jwe@gnu.org>.
34868
34869 2010-03-20  Bruno Haible  <bruno@clisp.org>
34870
34871         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
34872         Reported by Jim Meyering.
34873
34874 2010-03-20  Bruno Haible  <bruno@clisp.org>
34875
34876         pipe: Set errno upon failure.
34877         * lib/pipe.h: Specify that when -1 is returned, errno is set.
34878         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
34879         errno value in error message.
34880
34881 2010-03-20  Bruno Haible  <bruno@clisp.org>
34882             Jim Meyering  <meyering@redhat.com>
34883
34884         lchown: Avoid "unused variable" warning.
34885         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
34886
34887 2010-03-20  Bruno Haible  <bruno@clisp.org>
34888
34889         Work around unlink() bug on MacOS X 10.5.6.
34890         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
34891         attempting to unlink a parent directory.
34892         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
34893         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
34894         activate for the replacement function.
34895         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
34896
34897 2010-03-20  Bruno Haible  <bruno@clisp.org>
34898
34899         Fix link errors on Solaris 8.
34900         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
34901         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
34902
34903 2010-03-19  Jim Meyering  <meyering@redhat.com>
34904
34905         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
34906         The _LIBC implementation of build_range_exp correctly honors the
34907         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
34908         However, the non-_LIBC implementation would ignore that syntax-bit
34909         flag and return REG_ERANGE unconditionally.
34910         This change makes it honor that flag.
34911         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
34912         Make two pointer parameters "const".
34913         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
34914         (parse_bracket_exp): Update caller.
34915
34916         regex.m4: correct the reversed range endpoint ([b-a]) test
34917         * m4/regex.m4: When requiring that [b-a] evoke failure,
34918         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
34919         test pass once again for x86-based systems.
34920
34921 2010-03-19  Bruno Haible  <bruno@clisp.org>
34922
34923         scandir: Fix link error on Solaris 8.
34924         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
34925         macros.
34926
34927 2010-03-19  Bruno Haible  <bruno@clisp.org>
34928
34929         getusershell: Fix documentation.
34930         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
34931         module.
34932         * doc/glibc-functions/setusershell.texi: Likewise.
34933
34934         getusershell: Provide declaration, missing on Solaris 9.
34935         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
34936         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
34937         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
34938         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
34939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34940         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
34941         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
34942         HAVE_GETUSERSHELL.
34943         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
34944
34945 2010-03-19  Bruno Haible  <bruno@clisp.org>
34946
34947         wctype: Provide iswblank function.
34948         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
34949         exists and is fine.
34950         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
34951         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
34952         * tests/test-wctype.c (main): Re-enable the iswblank tests.
34953         * doc/posix-functions/iswblank.texi: Update.
34954
34955 2010-03-19  Bruno Haible  <bruno@clisp.org>
34956
34957         Tests of module 'pty' in C++ mode.
34958         * modules/pty-tests: New file.
34959         * tests/test-pty-c++.cc: New file.
34960         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34961
34962 2010-03-19  Eric Blake  <eblake@redhat.com>
34963
34964         logb: fix documentation
34965         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
34966         1.5 declaration bug.
34967
34968         forkpty, openpty: prefer glibc's const-safe prototype
34969         * lib/forkpty.c (rpl_forkpty): New file.
34970         * lib/openpty.c (rpl_openpty): Likewise.
34971         * modules/forkpty (Files): Distribute it.
34972         * modules/openpty (Files): Likewise.
34973         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
34974         check...
34975         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
34976         replacement for for non-const BSD signature.
34977         * modules/pty (Makefile.am): Substitute witnesses.
34978         * lib/pty.in.h (forkpty, openpty): Declare replacements.
34979         * tests/test-forkpty.c: Update signature check.
34980         * tests/test-openpty.c: Likewise.
34981         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
34982         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34983
34984         forkpty, openpty: split functions into new modules
34985         * modules/pty (Makefile.am): Substitute new witnesses.
34986         (Libraries): Move library detection...
34987         * modules/forkpty: ...into new module.
34988         * modules/openpty: Another new module.
34989         * modules/pty-tests: Rename and split...
34990         * modules/forkpty-tests: ...to this...
34991         * modules/openpty-tests: ...and this.
34992         * tests/test-pty.c: Rename and split...
34993         * tests/test-forkpty.c: ...to this...
34994         * tests/test-openpty.c: ...and this.
34995         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
34996         (gl_PTY): Split library searching...
34997         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
34998         (gl_FORKPTY, gl_OPENPTY): New macros.
34999         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
35000         * NEWS: Mention the split.
35001         * MODULES.html.sh (Misc): Document the modules.
35002         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
35003         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35004
35005         pty: improve replacement header
35006         * lib/pty.in.h: New file.
35007         * modules/pty (Files): Ship it.
35008         (Makefile.am): Always build replacement.
35009         * m4/pty.m4: Rename...
35010         * m4/pty_h.m4: ...to this.
35011         (gl_PTY): Modernize setting of witness macros; update check of
35012         forkpty to take proper advantage of cache.
35013         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
35014
35015         getopt: avoid compiler warning
35016         * lib/getopt.c (attribute_hidden): Remove unused macro.
35017
35018 2010-03-18  Bruno Haible  <bruno@clisp.org>
35019
35020         Fix link errors on Solaris 8.
35021         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
35022         * modules/search-tests (test_search_c___LDADD): Likewise.
35023         * modules/signal-tests (test_signal_c___LDADD): Likewise.
35024         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
35025         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
35026         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
35027         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
35028         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
35029         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
35030
35031 2010-03-18  Bruno Haible  <bruno@clisp.org>
35032
35033         Fix bug introduced on 2010-03-14.
35034         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
35035         (gl_SPAWN_H): Require it.
35036         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
35037         Reported by Simon Josefsson.
35038
35039 2010-03-18  Bruno Haible  <bruno@clisp.org>
35040
35041         Fix typo introduced on 2009-12-31.
35042         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
35043         posix_spawn_file_actions_adddup2.
35044
35045 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
35046         and Eric Blake  <eblake@redhat.com>
35047
35048         test-vc-list-files-git: make more robust
35049         * tests/test-vc-list-files-git.sh: Unset problematic environment
35050         variables.  Chain commands together.
35051
35052 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
35053
35054         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
35055         `AC_CHECK_DECL' invocation.
35056
35057 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
35058
35059         * lib/inttostr.c (inttostr): Make sure the invocation of verify
35060         appears before executable statements. Suggested by Petr Sumbera
35061         <Petr.Sumbera@Sun.COM>.
35062
35063 2010-03-14  Bruno Haible  <bruno@clisp.org>
35064
35065         * tests/test-flock.c (test_exclusive): Comment out a test that causes
35066         portability problems. Instead use a simpler test.
35067         (main): Check that invalid arguments are rejected only on Linux.
35068
35069 2010-03-14  Bruno Haible  <bruno@clisp.org>
35070
35071         Fix bug introduced on 2009-12-31.
35072         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35073         gl_PREREQ_SYS_H_WINSOCK2 always.
35074         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
35075         SYS_SOCKET_H variable.
35076         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
35077         Update comments.
35078         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
35079         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35080         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35081         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35082         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
35083
35084 2010-03-14  Bruno Haible  <bruno@clisp.org>
35085
35086         Fix values returned by sinl, cosl.
35087         * lib/trigl.h: Add specification comments.
35088         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
35089         that combines the values from the precomputed table with the values of
35090         the Chebyshev polynomials.
35091
35092 2010-03-14  Bruno Haible  <bruno@clisp.org>
35093
35094         Fix compilation error when modules 'posix_spawn[p]' are not used.
35095         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
35096         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
35097
35098 2010-03-14  Bruno Haible  <bruno@clisp.org>
35099
35100         Fix compilation error on mingw when module 'time_r' is not used.
35101         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
35102         is 1.
35103         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
35104         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35105         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
35106         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
35107
35108 2010-03-14  Bruno Haible  <bruno@clisp.org>
35109
35110         Fix compilation error with Sun C.
35111         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
35112         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
35113         instead of GCC specific ULONG_LONG_MAX.
35114         * lib/xstrtoll.c: Likewise.
35115         * lib/xstrtoull.c: Likewise.
35116
35117 2010-03-13  Bruno Haible  <bruno@clisp.org>
35118
35119         Allow the user to disable C++ code and tests.
35120         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
35121         (gl_PROG_ANSI_CXX): Require it.
35122
35123 2010-03-13  Bruno Haible  <bruno@clisp.org>
35124
35125         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
35126         cases.
35127
35128 2010-03-13  Bruno Haible  <bruno@clisp.org>
35129
35130         Test that gnulib does not break the standard C++ headers.
35131         * tests/test-locale-c++2.cc: New file.
35132         * modules/locale-tests (Files): Add it.
35133         (Makefile.am): Compile it for test-locale-c++.
35134         * tests/test-math-c++2.cc: New file.
35135         * modules/math-tests (Files): Add it.
35136         (Makefile.am): Compile it for test-math-c++.
35137         * tests/test-signal-c++2.cc: New file.
35138         * modules/signal-tests (Files): Add it.
35139         (Makefile.am): Compile it for test-signal-c++.
35140         * tests/test-stdio-c++2.cc: New file.
35141         * modules/stdio-tests (Files): Add it.
35142         (Makefile.am): Compile it for test-stdio-c++.
35143         * tests/test-stdlib-c++2.cc: New file.
35144         * modules/stdlib-tests (Files): Add it.
35145         (Makefile.am): Compile it for test-stdlib-c++.
35146         * tests/test-string-c++2.cc: New file.
35147         * modules/string-tests (Files): Add it.
35148         (Makefile.am): Compile it for test-string-c++.
35149         * tests/test-time-c++2.cc: New file.
35150         * modules/time-tests (Files): Add it.
35151         (Makefile.am): Compile it for test-time-c++.
35152         Reported by John W. Eaton <jwe@gnu.org>.
35153
35154 2010-03-13  Bruno Haible  <bruno@clisp.org>
35155
35156         * gnulib-tool (func_usage): Clarify which options are available for
35157         --create-testdir and --create-megatestdir.
35158
35159 2010-03-13  Bruno Haible  <bruno@clisp.org>
35160
35161         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
35162         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
35163         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
35164         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
35165         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
35166         when appropriate.
35167         Reported by Jim Meyering.
35168
35169 2010-03-12  Simon Josefsson  <simon@josefsson.org>
35170
35171         * gnulib-tool (func_import): Explain origin of code.
35172
35173 2010-03-12  Bruno Haible  <bruno@clisp.org>
35174
35175         Fix problem with automake's definition of CXXLINK.
35176         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
35177         Reported by Simon Josefsson and Ludovic Courtès.
35178
35179 2010-03-12  Bruno Haible  <bruno@clisp.org>
35180
35181         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
35182         stable releases.
35183
35184 2010-03-11  Bruno Haible  <bruno@clisp.org>
35185
35186         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
35187         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
35188         whether the system provides one variant or multiple variants of the
35189         function.
35190         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
35191         C++ compilers.
35192         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
35193         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
35194         Reported by Jim Meyering.
35195
35196 2010-03-09  Simon Josefsson  <simon@josefsson.org>
35197
35198         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
35199
35200 2010-03-08  Bruno Haible  <bruno@clisp.org>
35201
35202         gnulib-tool: Add support for --libtool in --create-testdir.
35203         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
35204         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
35205
35206 2010-03-08  Eric Blake  <eblake@redhat.com>
35207
35208         gnulib-tool.texi: mention possibility of git submodule
35209         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
35210         submodules.
35211         * doc/.gitignore: Ignore another generated file.
35212
35213 2010-03-08  Karl Berry  <karl@gnu.org>
35214
35215         * doc/gnulib-tool.texi (VCS Issues): Mention third option
35216         of committing gnulib files while skipping others.
35217
35218 2010-03-07  Bruno Haible  <bruno@clisp.org>
35219
35220         Tests of module 'wctype' in C++ mode.
35221         * tests/test-wctype-c++.cc: New file.
35222         * modules/wctype-tests (Files): Add it and tests/signature.h.
35223         (Depends-on): Add ansi-c++-opt.
35224         (Makefile.am): Arrange to compile and run test-wctype-c++.
35225
35226         Tests of module 'wchar' in C++ mode.
35227         * tests/test-wchar-c++.cc: New file.
35228         * modules/wchar-tests (Files): Add it and tests/signature.h.
35229         (Depends-on): Add ansi-c++-opt.
35230         (Makefile.am): Arrange to compile and run test-wchar-c++.
35231         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
35232         gl_MODULE_INDICATOR.
35233
35234         Tests of module 'unistd' in C++ mode.
35235         * tests/test-unistd-c++.cc: New file.
35236         * modules/unistd-tests (Files): Add it and tests/signature.h.
35237         (Depends-on): Add ansi-c++-opt.
35238         (Makefile.am): Arrange to compile and run test-unistd-c++.
35239         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
35240         gl_MODULE_INDICATOR.
35241
35242         Tests of module 'time' in C++ mode.
35243         * tests/test-time-c++.cc: New file.
35244         * modules/time-tests (Files): Add it and tests/signature.h.
35245         (Depends-on): Add ansi-c++-opt.
35246         (Makefile.am): Arrange to compile and run test-time-c++.
35247         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35248
35249         Tests of module 'sys_time' in C++ mode.
35250         * tests/test-sys_time-c++.cc: New file.
35251         * modules/sys_time-tests (Files): Add it and tests/signature.h.
35252         (Depends-on): Add ansi-c++-opt.
35253         (Makefile.am): Arrange to compile and run test-sys_time-c++.
35254         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
35255         gl_MODULE_INDICATOR.
35256
35257         Tests of module 'sys_stat' in C++ mode.
35258         * tests/test-sys_stat-c++.cc: New file.
35259         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
35260         (Depends-on): Add ansi-c++-opt.
35261         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
35262         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
35263         gl_MODULE_INDICATOR.
35264
35265         Tests of module 'sys_socket' in C++ mode.
35266         * tests/test-sys_socket-c++.cc: New file.
35267         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
35268         (Depends-on): Add ansi-c++-opt.
35269         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
35270         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
35271         gl_MODULE_INDICATOR.
35272
35273         Tests of module 'sys_select' in C++ mode.
35274         * tests/test-sys_select-c++.cc: New file.
35275         * modules/sys_select-tests (Files): Add it and tests/signature.h.
35276         (Depends-on): Add ansi-c++-opt.
35277         (Makefile.am): Arrange to compile and run test-sys_select-c++.
35278         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
35279         gl_MODULE_INDICATOR.
35280
35281         Tests of module 'sys_ioctl' in C++ mode.
35282         * tests/test-sys_ioctl-c++.cc: New file.
35283         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
35284         (Depends-on): Add ansi-c++-opt.
35285         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
35286         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
35287         gl_MODULE_INDICATOR.
35288
35289         Tests of module 'string' in C++ mode.
35290         * tests/test-string-c++.cc: New file.
35291         * modules/string-tests (Files): Add it and tests/signature.h.
35292         (Depends-on): Add ansi-c++-opt.
35293         (Makefile.am): Arrange to compile and run test-string-c++.
35294         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
35295         gl_MODULE_INDICATOR.
35296
35297         Tests of module 'stdlib' in C++ mode.
35298         * tests/test-stdlib-c++.cc: New file.
35299         * modules/stdlib-tests (Files): Add it and tests/signature.h.
35300         (Depends-on): Add ansi-c++-opt.
35301         (Makefile.am): Arrange to compile and run test-stdlib-c++.
35302         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
35303         gl_MODULE_INDICATOR.
35304
35305         Tests of module 'stdio' in C++ mode.
35306         * tests/test-stdio-c++.cc: New file.
35307         * modules/stdio-tests (Files): Add it and tests/signature.h.
35308         (Depends-on): Add ansi-c++-opt.
35309         (Makefile.am): Arrange to compile and run test-stdio-c++.
35310         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
35311         gl_MODULE_INDICATOR.
35312
35313         Tests of module 'spawn' in C++ mode.
35314         * tests/test-spawn-c++.cc: New file.
35315         * modules/spawn-tests (Files): Add it and tests/signature.h.
35316         (Depends-on): Add ansi-c++-opt.
35317         (Makefile.am): Arrange to compile and run test-spawn-c++.
35318         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
35319         gl_MODULE_INDICATOR.
35320
35321         Tests of module 'signal' in C++ mode.
35322         * tests/test-signal-c++.cc: New file.
35323         * modules/signal-tests (Files): Add it and tests/signature.h.
35324         (Depends-on): Add ansi-c++-opt.
35325         (Makefile.am): Arrange to compile and run test-signal-c++.
35326         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
35327         gl_MODULE_INDICATOR.
35328
35329         Tests of module 'search' in C++ mode.
35330         * tests/test-search-c++.cc: New file.
35331         * modules/search-tests (Files): Add it and tests/signature.h.
35332         (Depends-on): Add ansi-c++-opt.
35333         (Makefile.am): Arrange to compile and run test-search-c++.
35334         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
35335         gl_MODULE_INDICATOR.
35336
35337         Tests of module 'math' in C++ mode.
35338         * tests/test-math-c++.cc: New file.
35339         * modules/math-tests (Files): Add it and tests/signature.h.
35340         (Depends-on): Add ansi-c++-opt.
35341         (Makefile.am): Arrange to compile and run test-math-c++.
35342         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35343
35344         Tests of module 'locale' in C++ mode.
35345         * tests/test-locale-c++.cc: New file.
35346         * modules/locale-tests (Files): Add it and tests/signature.h.
35347         (Depends-on): Add ansi-c++-opt.
35348         (Makefile.am): Arrange to compile and run test-locale-c++.
35349         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
35350         gl_MODULE_INDICATOR.
35351
35352         Tests of module 'langinfo' in C++ mode.
35353         * tests/test-langinfo-c++.cc: New file.
35354         * modules/langinfo-tests (Files): Add it and tests/signature.h.
35355         (Depends-on): Add ansi-c++-opt.
35356         (Makefile.am): Arrange to compile and run test-langinfo-c++.
35357         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
35358         gl_MODULE_INDICATOR.
35359
35360         Tests of module 'iconv-h' in C++ mode.
35361         * tests/test-iconv-h-c++.cc: New file.
35362         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
35363         (Depends-on): Add ansi-c++-opt.
35364         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
35365
35366         Tests of module 'glob' in C++ mode.
35367         * tests/test-glob-c++.cc: New file.
35368         * modules/glob-tests (Files): Add it.
35369         (Depends-on): Add ansi-c++-opt.
35370         (Makefile.am): Arrange to compile and run test-glob-c++.
35371
35372         Tests of module 'fcntl-h' in C++ mode.
35373         * tests/test-fcntl-h-c++.cc: New file.
35374         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
35375         (Depends-on): Add ansi-c++-opt.
35376         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
35377         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
35378         gl_MODULE_INDICATOR.
35379
35380         Tests of module 'dirent' in C++ mode.
35381         * tests/test-dirent-c++.cc: New file.
35382         * modules/dirent-tests (Files): Add it and tests/signature.h.
35383         (Depends-on): Add ansi-c++-opt.
35384         (Makefile.am): Arrange to compile and run test-dirent-c++.
35385         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35386         gl_MODULE_INDICATOR.
35387
35388         New module 'ansi-c++-opt'.
35389         * modules/ansi-c++-opt: New file.
35390         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
35391
35392         Document C++ namespace mode.
35393         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
35394
35395         wctype: Avoid #define replacements in C++ mode.
35396         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
35397         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
35398         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
35399         In C++, define a namespaced alias symbol.
35400         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
35401         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
35402         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
35403         rule.
35404
35405         wchar: Avoid #define replacements in C++ mode.
35406         * lib/wchar.in.h: Include c++defs.h.
35407         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
35408         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
35409         symbol.
35410         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
35411         * modules/wchar (Depends-on): Add c++defs.
35412         (Makefile.am): Update wchar.h rule.
35413
35414         unistd: Avoid #define replacements in C++ mode.
35415         * lib/unistd.in.h: Include c++defs.h.
35416         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
35417         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
35418         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
35419         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
35420         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
35421         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
35422         symbol.
35423         (environ): Update.
35424         * modules/unistd (Depends-on): Add c++defs.
35425         (Makefile.am): Update unistd.h rule.
35426
35427         time: Avoid #define replacements in C++ mode.
35428         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
35429         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
35430         define a namespaced alias symbol.
35431         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
35432         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
35433         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
35434         * modules/time (Depends-on): Add c++defs, warn-on-use.
35435         (Makefile.am): Update time.h rule.
35436         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35437         * modules/nanosleep (configure.ac): Likewise.
35438         * modules/strptime (configure.ac): Likewise.
35439         * modules/timegm (configure.ac): Likewise.
35440
35441         sys_time: Avoid #define replacements in C++ mode.
35442         * lib/sys_time.in.h: Include c++defs.h.
35443         (gettimeofday): In C++, define a namespaced alias symbol.
35444         * modules/sys_time (Depends-on): Add c++defs.
35445         (Makefile.am): Update sys/time.h rule.
35446
35447         sys_stat: Avoid #define replacements in C++ mode.
35448         * lib/sys_stat.in.h: Include c++defs.h.
35449         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
35450         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
35451         namespaced alias symbol.
35452         In C++, define a namespaced alias symbol.
35453         * modules/sys_stat (Depends-on): Add c++defs.
35454         (Makefile.am): Update sys/stat.h rule.
35455
35456         sys_socket: Avoid #define replacements in C++ mode.
35457         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
35458         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
35459         definitions also when the system has a <sys/socket.h>.
35460         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35461         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
35462         In C++, define a namespaced alias symbol.
35463         * modules/sys_socket (Depends-on): Add c++defs.
35464         (Makefile.am): Update sys/socket.h rule.
35465
35466         sys_select: Avoid #define replacements in C++ mode.
35467         * lib/sys_select.in.h: Include c++defs.h. Enable the function
35468         definitions also when the system has a <sys/select.h>.
35469         (select): In C++, define a namespaced alias symbol.
35470         * modules/sys_select (Depends-on): Add c++defs.
35471         (Makefile.am): Update sys/select.h rule.
35472
35473         sys_ioctl: Avoid #define replacements in C++ mode.
35474         * lib/sys_ioctl.in.h: Include c++defs.h.
35475         (ioctl): In C++, define a namespaced alias symbol.
35476         * modules/sys_ioctl (Depends-on): Add c++defs.
35477         (Makefile.am): Update sys/ioctl.h rule.
35478
35479         string: Avoid #define replacements in C++ mode.
35480         * lib/string.in.h: Include c++defs.h.
35481         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
35482         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
35483         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
35484         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
35485         strsignal, strverscmp): In C++, define a namespaced alias symbol.
35486         * modules/string (Depends-on): Add c++defs.
35487         (Makefile.am): Update string.h rule.
35488
35489         stdlib: Avoid #define replacements in C++ mode.
35490         * lib/stdlib.in.h: Include c++defs.h.
35491         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
35492         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
35493         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
35494         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
35495         symbol.
35496         * modules/stdlib (Depends-on): Add c++defs.
35497         (Makefile.am): Update stdlib.h rule.
35498
35499         stdio: Avoid #define replacements in C++ mode.
35500         * lib/stdio.in.h: Include c++defs.h.
35501         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
35502         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
35503         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
35504         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
35505         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
35506         namespaced alias symbol.
35507         * modules/stdio (Depends-on): Add c++defs.
35508         (Makefile.am): Update stdio.h rule.
35509
35510         spawn: Avoid #define replacements in C++ mode.
35511         * lib/spawn.in.h: Include c++defs.h.
35512         (posix_spawn, posix_spawnp, posix_spawnattr_init,
35513         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
35514         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
35515         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
35516         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
35517         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
35518         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
35519         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
35520         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
35521         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
35522         In C++, define a namespaced alias symbol.
35523         * modules/spawn (Depends-on): Add c++defs.
35524         (Makefile.am): Update spawn.h rule.
35525
35526         signal: Avoid #define replacements in C++ mode.
35527         * lib/signal.in.h: Include c++defs.h.
35528         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
35529         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
35530         namespaced alias symbol.
35531         * modules/signal (Depends-on): Add c++defs.
35532         (Makefile.am): Update signal.h rule.
35533
35534         search: Avoid #define replacements in C++ mode.
35535         * lib/search.in.h: Include c++defs.h.
35536         (_gl_search_compar_fn, _gl_search_action_fn): New types.
35537         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
35538         symbol.
35539         * modules/search (Depends-on): Add c++defs.
35540         (Makefile.am): Update search.h rule.
35541
35542         math: Avoid #define replacements in C++ mode.
35543         * lib/math.in.h: Include c++defs.h.
35544         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
35545         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
35546         trunc, truncl): In C++, define a namespaced alias symbol.
35547         * modules/math (Depends-on): Add c++defs.
35548         (Makefile.am): Update math.h rule.
35549
35550         locale: Avoid #define replacements in C++ mode.
35551         * lib/locale.in.h: Include c++defs.h.
35552         (duplocale): In C++, define a namespaced alias symbol.
35553         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
35554         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
35555         * modules/locale (Depends-on): Add c++defs.
35556         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
35557
35558         langinfo: Avoid #define replacements in C++ mode.
35559         * lib/langinfo.in.h: Include c++defs.h.
35560         (nl_langinfo): In C++, define a namespaced alias symbol.
35561         * modules/langinfo (Depends-on): Add c++defs.
35562         (Makefile.am): Update langinfo.h rule.
35563
35564         iconv-h: Avoid #define replacements in C++ mode.
35565         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
35566         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
35567         symbol.
35568         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35569         whenever iconv is present.
35570         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
35571         (Makefile.am): Update iconv.h rule.
35572
35573         glob: Avoid #define replacements in C++ mode.
35574         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
35575         (_gl_glob_errfunc_fn): New type.
35576         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
35577         symbol.
35578         * modules/glob (Depends-on): Add c++defs, warn-on-use.
35579         (Makefile.am): Update glob.h rule.
35580
35581         fcntl-h: Avoid #define replacements in C++ mode.
35582         * lib/fcntl.in.h: Include c++defs.h.
35583         (fcntl, open, openat): In C++, define a namespaced alias symbol.
35584         * modules/fcntl-h (Depends-on): Add c++defs.
35585         (Makefile.am): Update fcntl.h rule.
35586
35587         dirent: Avoid #define replacements in C++ mode.
35588         * lib/dirent.in.h: Include c++defs.h.
35589         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
35590         namespaced alias symbol.
35591         (dirfd): Update declaration.
35592         * modules/dirent (Depends-on): Add c++defs.
35593         (Makefile.am): Update dirent.h rule.
35594
35595         ctype: Make it usable in C++ code.
35596         * lib/ctype.in.h: Include c++defs.h.
35597         (isblank): Declare as extern "C".
35598         * modules/ctype (Depends-on): Add c++defs.
35599         (Makefile.am): Update ctype.h rule.
35600
35601         New module 'c++defs'.
35602         * modules/c++defs: New file.
35603         * build-aux/c++defs.h: New file.
35604         Reported by John W. Eaton <jwe@gnu.org>.
35605
35606 2010-03-07  Bruno Haible  <bruno@clisp.org>
35607
35608         logb: Provide missing declaration for Cygwin.
35609         * lib/math.in.h (logb): New declaration.
35610         * m4/logb.m4: New file.
35611         * modules/logb (Files): Add m4/logb.m4.
35612         (Depends-on): Add math.
35613         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
35614         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
35615         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
35616         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
35617         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
35618
35619 2010-03-07  Bruno Haible  <bruno@clisp.org>
35620
35621         Fix test-cond link error.
35622         * tests/test-cond.c: Include <stdio.h>.
35623
35624 2010-03-07  Bruno Haible  <bruno@clisp.org>
35625
35626         Fix test-dirent-safer link error.
35627         * modules/dirent-safer-tests (Makefile.am): Define
35628         test_dirent_safer_LDADD.
35629
35630 2010-03-07  Bruno Haible  <bruno@clisp.org>
35631
35632         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
35633         among default module list.
35634
35635 2010-03-07  Bruno Haible  <bruno@clisp.org>
35636
35637         Fix link error on platforms with GNU libiconv.
35638         * modules/unistr/u8-strcoll-tests (Makefile): Define
35639         test_u8_strcoll_LDADD.
35640         * modules/unistr/u16-strcoll-tests (Makefile): Define
35641         test_u16_strcoll_LDADD.
35642         * modules/unistr/u32-strcoll-tests (Makefile): Define
35643         test_u32_strcoll_LDADD.
35644
35645 2010-03-07  Bruno Haible  <bruno@clisp.org>
35646
35647         Use POSIX declarations for socket functions.
35648         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
35649         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
35650         rpl_sendto): Change declaration to match POSIX.
35651         * lib/connect.c (rpl_connect): Likewise.
35652         * lib/accept.c (rpl_accept): Likewise.
35653         * lib/bind.c (rpl_bind): Likewise.
35654         * lib/getpeername.c (rpl_getpeername): Likewise.
35655         * lib/getsockname.c (rpl_getsockname): Likewise.
35656         * lib/recv.c (rpl_recv): Likewise.
35657         * lib/send.c (rpl_send): Likewise.
35658         * lib/recvfrom.c (rpl_recvfrom): Likewise.
35659         * lib/sendto.c (rpl_sendto): Likewise.
35660
35661 2010-03-06  Bruno Haible  <bruno@clisp.org>
35662
35663         Clarify access, euidaccess, faccessat.
35664         * doc/posix-functions/faccessat.texi: Mention security problem under
35665         "Other problems", not "Portability problems".
35666         * doc/posix-functions/access.texi: Likewise. Mention a related security
35667         problem.
35668         * doc/glibc-functions/euidaccess.texi: Mention security problems.
35669         * lib/euidaccess.c: Add comments about platforms.
35670         * lib/unistd.in.h (access, euidaccess): Add warnings.
35671
35672 2010-03-07  Bruno Haible  <bruno@clisp.org>
35673
35674         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
35675         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
35676         (POSIX_SPAWN_SETSCHEDULER): Likewise.
35677         (POSIX_SPAWN_USEVFORK): Define in a way that works when
35678         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35679         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
35680         declare when POSIX_SPAWN_SETSCHEDULER is zero.
35681         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
35682         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
35683         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
35684         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
35685         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
35686         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
35687         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
35688         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
35689         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
35690         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
35691         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
35692         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
35693         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
35694         Likewise.
35695         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
35696         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
35697         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
35698         Likewise.
35699         * tests/test-spawn.c (main): Make it work when
35700         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35701
35702 2010-03-07  Bruno Haible  <bruno@clisp.org>
35703
35704         Fix incorrect Makefile.am generation in German locale.
35705         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35706         Execute sed command with character range in C locale.
35707
35708 2010-03-06  Bruno Haible  <bruno@clisp.org>
35709
35710         Tests for module 'iconv-h'.
35711         * modules/iconv-h-tests: New file.
35712         * tests/test-iconv-h.c: New file.
35713
35714         New module 'iconv-h'.
35715         * modules/iconv-h: New file.
35716         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
35717         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
35718         (configure.ac): Remove gl_ICONV_H.
35719         (Makefile.am): Remove rule for iconv.h.
35720
35721 2010-03-06  Bruno Haible  <bruno@clisp.org>
35722
35723         More consistent naming of *.m4 files.
35724         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
35725         * modules/wctype (Files): Update.
35726
35727         More consistent naming of *.m4 files.
35728         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
35729         * modules/wchar (Files): Update.
35730
35731 2010-03-06  Jim Meyering  <meyering@redhat.com>
35732
35733         euidaccess: relax license to LGPLv2+
35734         * modules/euidaccess (License): Relax to LGPLv2+.
35735
35736 2010-03-06  Bruno Haible  <bruno@clisp.org>
35737
35738         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
35739         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
35740         (Makefile.am): Augment lib_SOURCES instead.
35741
35742 2010-03-04  Jim Meyering  <meyering@redhat.com>
35743
35744         utime: remove obsolete module
35745         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
35746         unnecessary for years, and has been marked as obsolete for 10 months.
35747         * modules/utime: Remove file.
35748         * lib/utime.c: Remove file.
35749         * m4/utime.m4: Remove file.
35750         * m4/utimes-null.m4: Remove file.
35751         * doc/posix-functions/utime.texi (utime): Remove reference to
35752         the module.  Move the sole "fixed by gnulib" item into the
35753         "problems not fixed by Gnulib" list.
35754         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
35755
35756 2010-03-05  Simon Josefsson  <simon@josefsson.org>
35757
35758         * modules/exit (License): Relax license to LGPLv2+.
35759         (Status): Mark as obsolete.
35760         * NEWS: Mention deprecated 'exit' module.
35761         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
35762         of now obsolete 'exit'.
35763
35764 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35765
35766         fts-lgpl: remove unused module
35767         * modules/fts-lgpl: Remove.
35768         * MODULES.html.sh (func_all_modules): Adjust.
35769         * check-module (find_included_lib_files): Adjust.
35770         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
35771
35772 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
35773
35774         copy-acl: enhance Solaris ACL error handling
35775         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
35776         * lib/set-mode-acl.c (qset_acl): Likewise.
35777
35778 2010-03-02  Bruno Haible  <bruno@clisp.org>
35779
35780         spawn: Don't override the system defined values on FreeBSD 8.
35781         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
35782         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
35783         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
35784         if HAVE_POSIX_SPAWN is 1.
35785         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
35786
35787 2010-03-01  Bruno Haible  <bruno@clisp.org>
35788
35789         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
35790         regarding Automake.
35791
35792 2010-02-25  Bruno Haible  <bruno@clisp.org>
35793
35794         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
35795         * gnulib-tool: Define 'echo' as a function only before the ksh alias
35796         setting, not afterwards.
35797         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
35798
35799 2010-02-24  Eric Blake  <eblake@redhat.com>
35800
35801         bootstrap, git-version-gen: use timestamp
35802         * build-aux/git-version-gen (scriptversion): Force UTC.
35803         * build-aux/bootstrap (scriptversion): New variable.
35804
35805         bootstrap: allow older git
35806         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
35807         older than 1.6.4.  Requested by the libvirt project.
35808
35809 2010-02-23  Eric Blake  <eblake@redhat.com>
35810
35811         warn-on-use: work with old autoconf
35812         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
35813         AS_VAR semantics of autoconf 2.60.
35814         Reported by Bruno Haible.
35815
35816         bootstrap: improve some comments
35817         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
35818         clarification comments.
35819
35820         gettimeofday: provide correct function
35821         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
35822         when replacement is declared, otherwise provide gettimeofday.
35823         Reported by Michael Goffioul.
35824
35825 2010-02-23  Jim Meyering  <meyering@redhat.com>
35826
35827         lib-ignore: relax license to "unlimited", not LGPLv2+
35828         * modules/lib-ignore (License): Relax to "unlimited".
35829
35830 2010-02-23  Jim Meyering  <meyering@redhat.com>
35831
35832         lib-ignore: relax license to LGPLv2+
35833         * modules/lib-ignore (License): Relax to LGPLv2+.
35834
35835 2010-02-22  Eric Blake  <eblake@redhat.com>
35836
35837         lseek: avoid bash 3.2 broken pipe bug
35838         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
35839         warning from bash 3.2.
35840         Reported by Ben Pfaff, with analysis from Bruno Haible.
35841
35842         bootstrap: support non-FSF copyright holder
35843         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
35844         bootstrap.conf override of COPYRIGHT_HOLDER.
35845         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
35846
35847         bootstrap: interoperate with gettext 0.14.1
35848         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
35849
35850         bootstrap: allow for alternate submodule location
35851         * build-aux/bootstrap (gnulib_path): New variable; use instead of
35852         hardcoding submodule location.
35853         (gnulib_mk): Allow direct use of Makefile.am.
35854
35855         bootstrap: use GNULIB_SRCDIR to reduce disk usage
35856         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
35857         rather than reconfiguring where the submodule points.
35858
35859         gettimeofday: restore support for platforms that lack function
35860         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
35861         replacement if function is missing.
35862         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
35863         * modules/sys_time (Makefile.am): Substitute it.
35864         * lib/sys_time.in.h (gettimeofday): Check it.
35865         Reported by Michael Goffioul.
35866
35867 2010-02-21  Bruno Haible  <bruno@clisp.org>
35868
35869         * lib/stdio.in.h (obstack_printf): Fix typo.
35870
35871 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
35872
35873         vc-list-files: use bzr ls's -R option
35874         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
35875         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
35876
35877 2010-02-21  Jim Meyering  <meyering@redhat.com>
35878
35879         init.sh: fix EXEEXT shims to work also for names like test-prog
35880         * tests/init.sh: Re-exec a better shell, when needed.
35881         If the current shell lacks support for posix $(...), an init.sh-using
35882         test will now try to find a shell that supports that.  If EXEEXT is
35883         nonempty, we also require support for hyphen-in-alias-name and shell
35884         substitutions like ${var#glob}.  Failure to find such a shell results
35885         in a skipped test.
35886
35887 2010-02-21  Bruno Haible  <bruno@clisp.org>
35888
35889         Really work around around "broken pipe" error message from bash 3.2.
35890         * gnulib-tool (func_reset_sigpipe): Remove function.
35891         (echo): In bash 3.2, define to a function that uses printf.
35892         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
35893
35894 2010-02-20  Bruno Haible  <bruno@clisp.org>
35895
35896         Restore support for automake 1.9.6 with autoconf 2.61.
35897         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
35898         Reported by James Youngman <jay@gnu.org>.
35899
35900 2010-02-20  Bruno Haible  <bruno@clisp.org>
35901
35902         Improve *printf warning condition.
35903         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
35904         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
35905         and the function is overridden due to SIGPIPE emulation.
35906
35907 2010-02-20  Bruno Haible  <bruno@clisp.org>
35908
35909         * lib/stdio.in.h: Tweak comments.
35910
35911 2010-02-19  Bruno Haible  <bruno@clisp.org>
35912
35913         Make it easier to find modules. New gnulib-tool option '--find'.
35914         * gnulib-tool: New option --find.
35915         (func_usage): Document it.
35916         (func_sanitize_modulelist): New function, extracted from
35917         func_all_modules.
35918         (func_all_modules): Invoke it.
35919         * doc/gnulib-tool.texi (Which modules?): New node.
35920
35921 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
35922
35923         * lib/sys_select.in.h: Provide select replacement even if
35924         sys/select.h exists on a system, for Interix.
35925
35926 2010-02-18  Jim Meyering  <meyering@redhat.com>
35927
35928         init.sh: don't use $(...) just yet
35929         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
35930         to accommodate e.g., Solaris' /bin/sh.
35931
35932 2010-02-17  Bruno Haible  <bruno@clisp.org>
35933
35934         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
35935         Reported by Ludovic Courtès <ludo@gnu.org>.
35936
35937 2010-02-16  Simon Josefsson  <simon@josefsson.org>
35938
35939         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
35940         linking with -lintl.
35941
35942 2010-02-17  Simon Josefsson  <simon@josefsson.org>
35943
35944         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
35945         if not provided by the system's netdb.h.  Reported by
35946         ludo@gnu.org (Ludovic Courtès).
35947
35948 2010-02-15  Jim Meyering  <meyering@redhat.com>
35949
35950         init.sh: improve portability and efficiency
35951         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
35952         "dummy" in a for loop.
35953         Use '!', not '^' to select the complement of a character set used
35954         in a "case" statement.
35955         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
35956         Suggestions from Eric Blake.
35957
35958         init.sh: automatically accommodate programs with the .exe suffix
35959         Automatically arrange for an invocation of "prog" to execute the
35960         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
35961         may use the simpler "prog", yet still work when built on a system
35962         that requires specifying the added suffix.
35963         Do this by constructing a function named "prog" that invokes
35964         "prog.exe" for each .exe file in selected directories.
35965         * tests/init.sh (find_exe_basenames_): New function.
35966         (create_exe_shim_functions_): New function.
35967         (path_prepend_): Use it.
35968
35969         maint.mk: mark syntax-check sc_*.m rules as .PHONY
35970         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
35971         "make -t syntax-check" doesn't create a ton of sc_*.m files.
35972
35973 2010-02-14  Jim Meyering  <meyering@redhat.com>
35974
35975         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
35976         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
35977         (sc_prohibit_hash_pjw_without_use): New rule.
35978
35979         maint.mk: allow the default upload destination dir to be overridden
35980         * top/maint.mk (upload_dest_dir_): Define with a default that
35981         preserves the status quo.
35982         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
35983         Reported by Peter Simons.
35984
35985         maint.mk: prohibit inclusion of "hash.h" without_use
35986         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
35987
35988 2010-02-10  Jim Meyering  <meyering@redhat.com>
35989
35990         maint.mk: prohibit inclusion of "ignore-value.h" without_use
35991         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
35992
35993 2010-02-09  Eric Blake  <ebb9@byu.net>
35994         and Bruno Haible  <bruno@clisp.org>
35995
35996         obstack-printf-posix: ensure declaration
35997         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
35998         extracted from gl_FUNC_OBSTACK_PRINTF.
35999         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
36000         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36001         Likewise.
36002         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
36003         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
36004         0.
36005
36006 2010-02-08  Bruno Haible  <bruno@clisp.org>
36007
36008         gnulib-tool: Fix typo in 2010-02-07 commit.
36009         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
36010         Reported by Eric Blake.
36011
36012 2010-02-07  Bruno Haible  <bruno@clisp.org>
36013
36014         gnulib-tool: Fix up caching patches.
36015         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
36016         option --no-cache. Use associative arrays when supported by the shell.
36017         (sed_comments): New variable.
36018         (modcache): Renamed from do_cache.
36019         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
36020         abbreviate unnecessarily.
36021         (have_associative): New variable.
36022         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
36023         way also for ksh and zsh.
36024         (func_init_sed_convert_to_cache_statements): New function, extracted
36025         from func_cache_lookup_module. Add support for associative arrays.
36026         Don't set the c_MODULE_cached variable here. Ignore all lines before
36027         the first field header. Remove only the final newline, not all trailing
36028         newlines. Support empty fields correctly. Limit the use of 'eval' to
36029         assignments.
36030         (func_get_description, func_get_status, func_get_notice,
36031         func_get_applicability, func_get_filelist, func_get_dependencies,
36032         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
36033         func_get_automake_snippet, func_get_include_directive,
36034         func_get_link_directive, func_get_license, func_get_maintainer):
36035         Update documentation. List the unoptimized code first. Add support for
36036         associative arrays. Limit the use of 'eval' to assignments.
36037         (func_get_applicability): Undo stylistic pessimisations.
36038         (func_get_automake_snippet, func_get_include_directive): Reduce code
36039         duplication.
36040         (func_modules_transitive_closure, func_modules_add_dummy,
36041         func_modules_notice, func_modules_to_filelist, func_add_file,
36042         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
36043         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
36044         func_create_testdir, func_create_megatestdir): Update documentation.
36045
36046 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36047
36048         * gnulib-tool (func_cache_lookup_module): Store the module name
36049         belonging to the cache variable; error out if two different
36050         module names map to the same cache variable name.
36051
36052 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36053
36054         gnulib-tool: Make caching optional.
36055         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
36056         Update matching short versions of --no-changelog.
36057         (func_usage): Update.
36058         (sed_extract_cache_prog): Renamed from ...
36059         (sed_extract_prog): ... this; revert to old extraction script.
36060         (func_get_description, func_get_status)
36061         (func_get_notice, func_get_applicability, func_get_filelist)
36062         (func_get_dependencies, func_get_autoconf_early_snippet)
36063         (func_get_autoconf_snippet, func_get_automake_snippet)
36064         (func_get_include_directive, func_get_link_directive)
36065         (func_get_license, func_get_maintainer): If $do_cache is false,
36066         use old, non-caching extraction scripts.
36067         Suggestion by Bruno Haible.
36068
36069 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36070
36071         gnulib-tool: cache module metainformation.
36072         * gnulib-tool (sed_extract_prog): Match newline before each
36073         header, and rewrite header to a shell variable suffix.
36074         (func_cache_var, func_cache_lookup_module): New functions,
36075         to turn a module name into a cache variable prefix, and to
36076         look up and cache module metainformation.
36077         (func_get_description, func_get_status)
36078         (func_get_notice, func_get_applicability, func_get_filelist)
36079         (func_get_dependencies, func_get_autoconf_early_snippet)
36080         (func_get_autoconf_snippet, func_get_automake_snippet)
36081         (func_get_include_directive, func_get_link_directive)
36082         (func_get_license, func_get_maintainer): Use
36083         func_cache_lookup_module.
36084
36085 2010-02-07  Bruno Haible  <bruno@clisp.org>
36086
36087         fnctl: Fix missing dependency.
36088         * modules/fcntl (Depends-on): Add getdtablesize.
36089         Reported by John W. Eaton <jwe@gnu.org>.
36090
36091 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36092
36093         Argp: fix recognition of short alias options.
36094
36095         * lib/argp-parse.c (convert_options): Fix improper use of
36096         `|' between character values.
36097         * tests/test-argp.c (group1_option): New alias option
36098         --read (-r).
36099         (group1_parser): Special handling for 'r'.
36100         (test15): New test case.
36101         (test_fun): Add test15.
36102         * tests/test-argp-2.sh: Update expected --help and --usage
36103         outputs.
36104
36105 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36106
36107         * tests/test-argp.c: Fix indentation.
36108
36109 2010-02-04  Eric Blake  <ebb9@byu.net>
36110
36111         gettimeofday: expose type of second argument
36112         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
36113         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
36114         * tests/test-gettimeofday.c: Use it to silence warning.
36115         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
36116         the issue.
36117
36118 2010-02-03  Jim Meyering  <meyering@redhat.com>
36119
36120         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
36121         * lib/regcomp.c (TYPE_SIGNED): Define.
36122         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
36123
36124         regcomp.c: avoid a new -Wshadow warning
36125         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
36126
36127 2010-02-01  Jim Meyering  <meyering@redhat.com>
36128
36129         removing useless parentheses in cpp #define directives
36130         For motivation, see commit c0221df4, "define STREQ(a,b)
36131         consistently, removing useless parentheses"
36132         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
36133         * lib/mountlist.c (MNT_IGNORE): Likewise.
36134         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
36135
36136 2010-02-01  Eric Blake  <ebb9@byu.net>
36137
36138         sys_time: use link-warning
36139         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
36140         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
36141         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
36142         * modules/sys_time (Depends-on): Add warn-on-use.
36143         (Makefile.am): Always build replacement.
36144         (configure.ac): Update substitutions.
36145         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
36146         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
36147         bother with SYS_TIME_H.
36148         * modules/gettimeofday (configure.ac): Declare indicator.
36149         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
36150         in use.
36151
36152         closein-tests: silence compiler warning
36153         * tests/test-closein.c (main): Ignore fread result.
36154         * modules/closein-tests (Depends-on): Add ignore-value.
36155
36156         tests: silence warning about system return
36157         * tests/test-areadlink-with-size.c (main): Ignore system result.
36158         * tests/test-areadlink.c (main): Likewise.
36159         * tests/test-areadlinkat-with-size.c (main): Likewise.
36160         * tests/test-areadlinkat.c (main): Likewise.
36161         * tests/test-canonicalize-lgpl.c (main): Likewise.
36162         * tests/test-canonicalize.c (main): Likewise.
36163         * tests/test-chown.c (main): Likewise.
36164         * tests/test-fchownat.c (main): Likewise.
36165         * tests/test-fdutimensat.c (main): Likewise.
36166         * tests/test-fstatat.c (main): Likewise.
36167         * tests/test-futimens.c (main): Likewise.
36168         * tests/test-lchown.c (main): Likewise.
36169         * tests/test-link.c (main): Likewise.
36170         * tests/test-linkat.c (main): Likewise.
36171         * tests/test-lstat.c (main): Likewise.
36172         * tests/test-mkdir.c (main): Likewise.
36173         * tests/test-mkdirat.c (main): Likewise.
36174         * tests/test-mkfifo.c (main): Likewise.
36175         * tests/test-mkfifoat.c (main): Likewise.
36176         * tests/test-mknod.c (main): Likewise.
36177         * tests/test-readlink.c (main): Likewise.
36178         * tests/test-remove.c (main): Likewise.
36179         * tests/test-rename.c (main): Likewise.
36180         * tests/test-renameat.c (main): Likewise.
36181         * tests/test-rmdir.c (main): Likewise.
36182         * tests/test-symlink.c (main): Likewise.
36183         * tests/test-symlinkat.c (main): Likewise.
36184         * tests/test-unlink.c (main): Likewise.
36185         * tests/test-unlinkat.c (main): Likewise.
36186         * tests/test-utimens.c (main): Likewise.
36187         * tests/test-utimensat.c (main): Likewise.
36188         * modules/areadlink-tests (Depends-on): Add ignore-value.
36189         * modules/areadlink-with-size-tests (Depends-on): Likewise.
36190         * modules/areadlinkat-tests (Depends-on): Likewise.
36191         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
36192         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36193         * modules/canonicalize-tests (Depends-on): Likewise.
36194         * modules/chown-tests (Depends-on): Likewise.
36195         * modules/fdutimensat-tests (Depends-on): Likewise.
36196         * modules/futimens-tests (Depends-on): Likewise.
36197         * modules/lchown-tests (Depends-on): Likewise.
36198         * modules/link-tests (Depends-on): Likewise.
36199         * modules/linkat-tests (Depends-on): Likewise.
36200         * modules/lstat-tests (Depends-on): Likewise.
36201         * modules/mkdir-tests (Depends-on): Likewise.
36202         * modules/mkfifo-tests (Depends-on): Likewise.
36203         * modules/mkfifoat-tests (Depends-on): Likewise.
36204         * modules/mknod-tests (Depends-on): Likewise.
36205         * modules/openat-tests (Depends-on): Likewise.
36206         * modules/readlink-tests (Depends-on): Likewise.
36207         * modules/remove-tests (Depends-on): Likewise.
36208         * modules/rename-tests (Depends-on): Likewise.
36209         * modules/renameat-tests (Depends-on): Likewise.
36210         * modules/rmdir-tests (Depends-on): Likewise.
36211         * modules/symlink-tests (Depends-on): Likewise.
36212         * modules/symlinkat-tests (Depends-on): Likewise.
36213         * modules/unlink-tests (Depends-on): Likewise.
36214         * modules/utimens-tests (Depends-on): Likewise.
36215         * modules/utimensat-tests (Depends-on): Likewise.
36216
36217 2010-01-31  Bruno Haible  <bruno@clisp.org>
36218
36219         Perform the same test for many <math.h> functions.
36220         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
36221         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
36222         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
36223         of gl_MATHFUNC.
36224         * modules/acos (configure.ac): Likewise.
36225         * modules/asin (configure.ac): Likewise.
36226         * modules/atan (configure.ac): Likewise.
36227         * modules/atan2 (configure.ac): Likewise.
36228         * modules/cbrt (configure.ac): Likewise.
36229         * modules/copysign (configure.ac): Likewise.
36230         * modules/cos (configure.ac): Likewise.
36231         * modules/cosh (configure.ac): Likewise.
36232         * modules/erf (configure.ac): Likewise.
36233         * modules/erfc (configure.ac): Likewise.
36234         * modules/exp (configure.ac): Likewise.
36235         * modules/fmod (configure.ac): Likewise.
36236         * modules/hypot (configure.ac): Likewise.
36237         * modules/j0 (configure.ac): Likewise.
36238         * modules/j1 (configure.ac): Likewise.
36239         * modules/jn (configure.ac): Likewise.
36240         * modules/lgamma (configure.ac): Likewise.
36241         * modules/log (configure.ac): Likewise.
36242         * modules/log10 (configure.ac): Likewise.
36243         * modules/log1p (configure.ac): Likewise.
36244         * modules/pow (configure.ac): Likewise.
36245         * modules/remainder (configure.ac): Likewise.
36246         * modules/sin (configure.ac): Likewise.
36247         * modules/sinh (configure.ac): Likewise.
36248         * modules/tan (configure.ac): Likewise.
36249         * modules/tanh (configure.ac): Likewise.
36250         * modules/y0 (configure.ac): Likewise.
36251         * modules/y1 (configure.ac): Likewise.
36252         * modules/yn (configure.ac): Likewise.
36253         Suggested by Paolo Bonzini.
36254
36255 2010-01-31  Bruno Haible  <bruno@clisp.org>
36256
36257         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
36258
36259 2010-01-31  Bruno Haible  <bruno@clisp.org>
36260
36261         Work around getdelim() bug on FreeBSD 8.0.
36262         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
36263         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
36264         not work.
36265         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
36266         is 1.
36267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
36268         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
36269         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
36270         a non-zero size.
36271         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
36272
36273 2010-01-31  Bruno Haible  <bruno@clisp.org>
36274
36275         Work around getline() bug on FreeBSD 8.0.
36276         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
36277         and a non-zero size.
36278         * tests/test-getline.c (main): Likewise.
36279         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
36280         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
36281
36282 2010-01-28  Eric Blake  <ebb9@byu.net>
36283
36284         regex: fix build failure
36285         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
36286         platforms.
36287
36288 2010-01-28  Jim Meyering  <meyering@redhat.com>
36289
36290         regex: do not ignore memory allocation failure
36291         * lib/regex_internal.c (create_cd_newstate): Detect
36292         re_node_set_init_copy failure.   Extracted from glibc commit
36293         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36294
36295         regex: sync more white-space changes from libc
36296         * lib/regex_internal.c: White-space only changes.
36297         * lib/regexec.c: Likewise.
36298
36299         regex: add many uses of __attribute_warn_unused_result__
36300         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
36301         * lib/regexec.c: Likewise.
36302         Extracted from a messy glibc commit.
36303
36304         regcomp.c: spelling and merge-artifact from glibc
36305         * lib/regcomp.c: Merge remainder of glibc's
36306         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36307
36308         regcomp.c: sync white-space changes from glibc
36309         * lib/regcomp.c: Merge to accommodate white space
36310         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36311
36312         regcomp.c: do not ignore internal return values
36313         * lib/regcomp.c: Do not ignore internal return values.
36314         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
36315         but without its white-space changes and spelling fixes.
36316
36317         regex_internal.h: define __attribute_warn_unused_result__
36318         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
36319
36320         maint: add a syntax-check rule to check for vulnerable Makefile.in
36321         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
36322
36323 2010-01-27  Jim Meyering  <meyering@redhat.com>
36324
36325         ncftpput-ftp: clean up spaces
36326         * build-aux/ncftpput-ftp: Make Copyright line consistent.
36327         Remove trailing blanks.
36328
36329 2010-01-27  Simon Josefsson  <simon@josefsson.org>
36330
36331         * build-aux/git-version-gen: Fix copyright statement.
36332         * build-aux/gnupload: Likewise.
36333         * tests/test-arcfour.c: Likewise.
36334         * tests/test-arctwo.c: Likewise.
36335         * tests/test-count-one-bits.c: Likewise.
36336         * tests/test-crc.c: Likewise.
36337         * tests/test-des.c: Likewise.
36338         * tests/test-gc-arcfour.c: Likewise.
36339         * tests/test-gc-arctwo.c: Likewise.
36340         * tests/test-gc-des.c: Likewise.
36341         * tests/test-gc-hmac-md5.c: Likewise.
36342         * tests/test-gc-hmac-sha1.c: Likewise.
36343         * tests/test-gc-md2.c: Likewise.
36344         * tests/test-gc-md4.c: Likewise.
36345         * tests/test-gc-md5.c: Likewise.
36346         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36347         * tests/test-gc-rijndael.c: Likewise.
36348         * tests/test-gc-sha1.c: Likewise.
36349         * tests/test-gc.c: Likewise.
36350         * tests/test-gethostname.c: Likewise.
36351         * tests/test-gettimeofday.c: Likewise.
36352         * tests/test-hash.c: Likewise.
36353         * tests/test-hmac-md5.c: Likewise.
36354         * tests/test-hmac-sha1.c: Likewise.
36355         * tests/test-md2.c: Likewise.
36356         * tests/test-md4.c: Likewise.
36357         * tests/test-md5.c: Likewise.
36358         * tests/test-memchr.c: Likewise.
36359         * tests/test-memchr2.c: Likewise.
36360         * tests/test-memcmp.c: Likewise.
36361         * tests/test-memmem.c: Likewise.
36362         * tests/test-memrchr.c: Likewise.
36363         * tests/test-rawmemchr.c: Likewise.
36364         * tests/test-read-file.c: Likewise.
36365         * tests/test-rijndael.c: Likewise.
36366         * tests/test-sockets.c: Likewise.
36367         * tests/test-strchrnul.c: Likewise.
36368         * tests/test-strstr.c: Likewise.
36369         * tests/test-strtod.c: Likewise.
36370         * build-aux/ncftpput-ftp: Likewise.
36371
36372 2010-01-26  Eric Blake  <ebb9@byu.net>
36373
36374         ignore-value: update recommended header name
36375         * modules/ignore-value (Include): Only use <> for headers that
36376         exist in glibc.
36377
36378 2010-01-26  Jim Meyering  <meyering@redhat.com>
36379
36380         test-userspec.c: avoid compiler warnings
36381         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
36382         and "initialization discards qualifiers..." warnings.
36383         Put the first "uid" in its own scope, and make char* members "const".
36384
36385 2010-01-25  Bruno Haible  <bruno@clisp.org>
36386
36387         gnulib-tool: Make warning diagnostics consistent.
36388         * gnulib-tool (func_warning): New function.
36389         Use it everywhere where gnulib-tool produces output to stderr and it is
36390         not a fatal error.
36391
36392 2010-01-25  Bruno Haible  <bruno@clisp.org>
36393
36394         Fix test dependencies.
36395         * modules/xstrtol-tests (Depends-on): Add inttypes.
36396         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
36397
36398 2010-01-25 Pádraig Brady <P@draigBrady.com>
36399
36400         syntax-check: detect incorrect boolean macro values in config.h
36401         * modules/maintainer-makefile (configure.ac): Parameterize the location
36402         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
36403         The logic is from Eric Blake and the location indicated by Jim Meyering.
36404         Note the more natural CONFIG_HEADER name is prohibited by automake
36405         for backwards compatibility reasons.
36406         * top/maint.mk (sc_Wundef_boolean): New rule.
36407
36408 2010-01-25  Jim Meyering  <meyering@redhat.com>
36409
36410         bootstrap: detect MacOS 10.6's shasum, too
36411         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
36412         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
36413
36414 2010-01-23  Jim Meyering  <meyering@redhat.com>
36415
36416         xstrtoll: new module
36417         * modules/xstrtoll: New file.
36418         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
36419         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
36420         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
36421         ./configure fails if you use this module and lack "long long".
36422         * modules/xstrtoll-tests: New module.
36423         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
36424         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
36425         new init.sh-based test framework.
36426
36427 2010-01-24  Bruno Haible  <bruno@clisp.org>
36428
36429         Tests for module 'yn'.
36430         * modules/yn-tests: New file.
36431         * tests/test-yn.c: New file.
36432
36433         Tests for module 'y1'.
36434         * modules/y1-tests: New file.
36435         * tests/test-y1.c: New file.
36436
36437         Tests for module 'y0'.
36438         * modules/y0-tests: New file.
36439         * tests/test-y0.c: New file.
36440
36441         Tests for module 'tanh'.
36442         * modules/tanh-tests: New file.
36443         * tests/test-tanh.c: New file.
36444
36445         Tests for module 'tan'.
36446         * modules/tan-tests: New file.
36447         * tests/test-tan.c: New file.
36448
36449         Tests for module 'sqrt'.
36450         * modules/sqrt-tests: New file.
36451         * tests/test-sqrt.c: New file.
36452
36453         Tests for module 'sinh'.
36454         * modules/sinh-tests: New file.
36455         * tests/test-sinh.c: New file.
36456
36457         Tests for module 'sin'.
36458         * modules/sin-tests: New file.
36459         * tests/test-sin.c: New file.
36460
36461         Tests for module 'rint'.
36462         * modules/rint-tests: New file.
36463         * tests/test-rint.c: New file.
36464
36465         Tests for module 'remainder'.
36466         * modules/remainder-tests: New file.
36467         * tests/test-remainder.c: New file.
36468
36469         Tests for module 'pow'.
36470         * modules/pow-tests: New file.
36471         * tests/test-pow.c: New file.
36472
36473         Tests for module 'nextafter'.
36474         * modules/nextafter-tests: New file.
36475         * tests/test-nextafter.c: New file.
36476
36477         Tests for module 'modf'.
36478         * modules/modf-tests: New file.
36479         * tests/test-modf.c: New file.
36480
36481         Tests for module 'logb'.
36482         * modules/logb-tests: New file.
36483         * tests/test-logb.c: New file.
36484
36485         Tests for module 'log1p'.
36486         * modules/log1p-tests: New file.
36487         * tests/test-log1p.c: New file.
36488
36489         Tests for module 'log10'.
36490         * modules/log10-tests: New file.
36491         * tests/test-log10.c: New file.
36492
36493         Tests for module 'log'.
36494         * modules/log-tests: New file.
36495         * tests/test-log.c: New file.
36496
36497         Tests for module 'lgamma'.
36498         * modules/lgamma-tests: New file.
36499         * tests/test-lgamma.c: New file.
36500
36501         Tests for module 'ldexp'.
36502         * modules/ldexp-tests: New file.
36503         * tests/test-ldexp.c: New file.
36504
36505         Tests for module 'jn'.
36506         * modules/jn-tests: New file.
36507         * tests/test-jn.c: New file.
36508
36509         Tests for module 'j1'.
36510         * modules/j1-tests: New file.
36511         * tests/test-j1.c: New file.
36512
36513         Tests for module 'j0'.
36514         * modules/j0-tests: New file.
36515         * tests/test-j0.c: New file.
36516
36517         Tests for module 'hypot'.
36518         * modules/hypot-tests: New file.
36519         * tests/test-hypot.c: New file.
36520
36521         Tests for module 'fmod'.
36522         * modules/fmod-tests: New file.
36523         * tests/test-fmod.c: New file.
36524
36525         Tests for module 'fabs'.
36526         * modules/fabs-tests: New file.
36527         * tests/test-fabs.c: New file.
36528
36529         Tests for module 'exp'.
36530         * modules/exp-tests: New file.
36531         * tests/test-exp.c: New file.
36532
36533         Tests for module 'erfc'.
36534         * modules/erfc-tests: New file.
36535         * tests/test-erfc.c: New file.
36536
36537         Tests for module 'erf'.
36538         * modules/erf-tests: New file.
36539         * tests/test-erf.c: New file.
36540
36541         Tests for module 'cosh'.
36542         * modules/cosh-tests: New file.
36543         * tests/test-cosh.c: New file.
36544
36545         Tests for module 'cos'.
36546         * modules/cos-tests: New file.
36547         * tests/test-cos.c: New file.
36548
36549         Tests for module 'copysign'.
36550         * modules/copysign-tests: New file.
36551         * tests/test-copysign.c: New file.
36552
36553         Tests for module 'cbrt'.
36554         * modules/cbrt-tests: New file.
36555         * tests/test-cbrt.c: New file.
36556
36557         Tests for module 'atan2'.
36558         * modules/atan2-tests: New file.
36559         * tests/test-atan2.c: New file.
36560
36561         Tests for module 'atan'.
36562         * modules/atan-tests: New file.
36563         * tests/test-atan.c: New file.
36564
36565         Tests for module 'asin'.
36566         * modules/asin-tests: New file.
36567         * tests/test-asin.c: New file.
36568
36569         Tests for module 'acos'.
36570         * modules/acos-tests: New file.
36571         * tests/test-acos.c: New file.
36572
36573 2010-01-24  Bruno Haible  <bruno@clisp.org>
36574
36575         Fix tests for common <math.h> functions.
36576         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
36577         code snippet that references the function pointer, rather than merely
36578         calling the function. Substitute the FUNC_LIBM variable.
36579         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
36580         * modules/acos (configure.ac): Likewise.
36581         * modules/asin (configure.ac): Likewise.
36582         * modules/atan (configure.ac): Likewise.
36583         * modules/atan2 (configure.ac): Likewise.
36584         * modules/cbrt (configure.ac): Likewise.
36585         * modules/copysign (configure.ac): Likewise.
36586         * modules/cos (configure.ac): Likewise.
36587         * modules/cosh (configure.ac): Likewise.
36588         * modules/erf (configure.ac): Likewise.
36589         * modules/erfc (configure.ac): Likewise.
36590         * modules/exp (configure.ac): Likewise.
36591         * modules/fabs (configure.ac): Likewise.
36592         * modules/fmod (configure.ac): Likewise.
36593         * modules/hypot (configure.ac): Likewise.
36594         * modules/j0 (configure.ac): Likewise.
36595         * modules/j1 (configure.ac): Likewise.
36596         * modules/jn (configure.ac): Likewise.
36597         * modules/ldexp (configure.ac): Likewise.
36598         * modules/lgamma (configure.ac): Likewise.
36599         * modules/log (configure.ac): Likewise.
36600         * modules/log10 (configure.ac): Likewise.
36601         * modules/log1p (configure.ac): Likewise.
36602         * modules/logb (configure.ac): Likewise.
36603         * modules/modf (configure.ac): Likewise.
36604         * modules/nextafter (configure.ac): Likewise.
36605         * modules/pow (configure.ac): Likewise.
36606         * modules/remainder (configure.ac): Likewise.
36607         * modules/rint (configure.ac): Likewise.
36608         * modules/sin (configure.ac): Likewise.
36609         * modules/sinh (configure.ac): Likewise.
36610         * modules/tan (configure.ac): Likewise.
36611         * modules/tanh (configure.ac): Likewise.
36612         * modules/y0 (configure.ac): Likewise.
36613         * modules/y1 (configure.ac): Likewise.
36614         * modules/yn (configure.ac): Likewise.
36615
36616 2010-01-24  Bruno Haible  <bruno@clisp.org>
36617
36618         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
36619         * tests/test-acosl.c (x): New variable.
36620         (main): Store argument in x and fetch it from x.
36621         * tests/test-asinl.c (x): New variable.
36622         (main): Store argument in x and fetch it from x.
36623         * tests/test-atanl.c (x): New variable.
36624         (main): Store argument in x and fetch it from x.
36625         * tests/test-cosl.c (x): New variable.
36626         (main): Store argument in x and fetch it from x.
36627         * tests/test-expl.c (x): New variable.
36628         (main): Store argument in x and fetch it from x.
36629         * tests/test-logl.c (x): New variable.
36630         (main): Store argument in x and fetch it from x.
36631         * tests/test-sinl.c (x): New variable.
36632         (main): Store argument in x and fetch it from x.
36633         * tests/test-sqrtl.c (x): New variable.
36634         (main): Store argument in x and fetch it from x.
36635         * tests/test-tanl.c (x): New variable.
36636         (main): Store argument in x and fetch it from x.
36637
36638 2010-01-24  Bruno Haible  <bruno@clisp.org>
36639
36640         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
36641         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
36642         assignments to the initial TESTS_ENVIRONMENT.
36643         * doc/gnulib.texi (Unit test modules): Document it.
36644         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
36645         TESTS_ENVIRONMENT.
36646         * modules/btowc-tests (Makefile.am): Likewise.
36647         * modules/c-stack-tests (Makefile.am): Likewise.
36648         * modules/c-strcase-tests (Makefile.am): Likewise.
36649         * modules/copy-file-tests (Makefile.am): Likewise.
36650         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
36651         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
36652         * modules/mbrtowc-tests (Makefile.am): Likewise.
36653         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36654         * modules/mbscasestr-tests (Makefile.am): Likewise.
36655         * modules/mbschr-tests (Makefile.am): Likewise.
36656         * modules/mbscspn-tests (Makefile.am): Likewise.
36657         * modules/mbsinit-tests (Makefile.am): Likewise.
36658         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36659         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
36660         * modules/mbspbrk-tests (Makefile.am): Likewise.
36661         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36662         * modules/mbsrchr-tests (Makefile.am): Likewise.
36663         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
36664         * modules/mbsspn-tests (Makefile.am): Likewise.
36665         * modules/mbsstr-tests (Makefile.am): Likewise.
36666         * modules/nl_langinfo-tests (Makefile.am): Likewise.
36667         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
36668         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36669         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36670         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36671         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36672         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
36673         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36674         * modules/wcrtomb-tests (Makefile.am): Likewise.
36675         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
36676         * modules/wcsrtombs-tests (Makefile.am): Likewise.
36677         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
36678         assignments from TESTS_ENVIRONMENT.
36679         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
36680         augmentation.
36681         * modules/argp-version-etc-tests (Makefile.am): Likewise.
36682         * modules/atexit-tests (Makefile.am): Likewise.
36683         * modules/binary-io-tests (Makefile.am): Likewise.
36684         * modules/closein-tests (Makefile.am): Likewise.
36685         * modules/dprintf-posix-tests (Makefile.am): Likewise.
36686         * modules/exclude-tests (Makefile.am): Likewise.
36687         * modules/fflush-tests (Makefile.am): Likewise.
36688         * modules/fpending-tests (Makefile.am): Likewise.
36689         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36690         * modules/freadahead-tests (Makefile.am): Likewise.
36691         * modules/freadptr-tests (Makefile.am): Likewise.
36692         * modules/freadseek-tests (Makefile.am): Likewise.
36693         * modules/fseek-tests (Makefile.am): Likewise.
36694         * modules/fseeko-tests (Makefile.am): Likewise.
36695         * modules/ftell-tests (Makefile.am): Likewise.
36696         * modules/ftello-tests (Makefile.am): Likewise.
36697         * modules/idpriv-drop-tests (Makefile.am): Likewise.
36698         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
36699         * modules/lseek-tests (Makefile.am): Likewise.
36700         * modules/parse-duration-tests (Makefile.am): Likewise.
36701         * modules/perror-tests (Makefile.am): Likewise.
36702         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
36703         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
36704         * modules/pipe-tests (Makefile.am): Likewise.
36705         * modules/pread-tests (Makefile.am): Likewise.
36706         * modules/printf-posix-tests (Makefile.am): Likewise.
36707         * modules/select-tests (Makefile.am): Likewise.
36708         * modules/sigpipe-tests (Makefile.am): Likewise.
36709         * modules/tsearch-tests (Makefile.am): Likewise.
36710         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
36711         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
36712         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36713         * modules/uniwidth/width-tests (Makefile.am): Likewise.
36714         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
36715         * modules/version-etc-tests (Makefile.am): Likewise.
36716         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36717         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36718         * modules/xalloc-die-tests (Makefile.am): Likewise.
36719         * modules/xprintf-posix-tests (Makefile.am): Likewise.
36720         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36721         * modules/xstrtol-tests (Makefile.am): Likewise.
36722         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36723         * modules/yesno-tests (Makefile.am): Likewise.
36724         Suggested by Jim Meyering.
36725
36726 2010-01-24  Bruno Haible  <bruno@clisp.org>
36727
36728         More documentation.
36729         * doc/gnulib.texi (Writing modules): New chapter.
36730         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
36731         the new chapter.
36732
36733 2010-01-24  Jim Meyering  <meyering@redhat.com>
36734
36735         maint.mk: do not prepend "./" after filtering
36736         * top/maint.mk (_prepend_srcdir_prefix): New variable
36737         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
36738         "./" when $(srcdir) is ".".
36739
36740         define STREQ(a,b) consistently, removing useless parentheses
36741         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
36742         since the only risk is that "a" or "b" contains an unparenthesized
36743         comma, but if either did that, STREQ would have 3 or more arguments.
36744         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
36745         * lib/fts.c (STREQ): Remove unnecessary parentheses.
36746         * lib/hash-triple.c (STREQ): Likewise.
36747         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
36748         * lib/getugroups.c (STREQ): Likewise.
36749
36750 2010-01-23  Jim Meyering  <meyering@redhat.com>
36751
36752         maint.mk: fix syntax-check in a non-srcdir build directory
36753         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
36754         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
36755
36756 2010-01-22  Jim Meyering  <meyering@redhat.com>
36757
36758         userspec: add unit tests
36759         * tests/test-userspec.c: New file.
36760         * modules/userspec-tests: Likewise.
36761
36762 2010-01-21  Jim Meyering  <meyering@redhat.com>
36763
36764         maint.mk: handle source file names containing "." robustly
36765         * top/maint.mk (_dot_escaped_srcdir): Define.
36766         (VC_LIST): Use it in LHS of sed substitution.
36767
36768 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
36769
36770         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
36771         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
36772         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
36773         from a non-srcdir build.
36774
36775 2010-01-20  Eric Blake  <ebb9@byu.net>
36776
36777         warn-on-use: use instead of link-warning
36778         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
36779         * modules/unistd (Depends-on, Makefile.am): Likewise.
36780         * modules/arpa_inet (Depends-on): Replace link-warning with
36781         warn-on-use.
36782         (Makefile.am): Update rules accordingly.
36783         * modules/ctype (Depends-on, Makefile.am): Likewise.
36784         * modules/dirent (Depends-on, Makefile.am): Likewise.
36785         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
36786         * modules/inttypes (Depends-on, Makefile.am): Likewise.
36787         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36788         * modules/locale (Depends-on, Makefile.am): Likewise.
36789         * modules/math (Depends-on, Makefile.am): Likewise.
36790         * modules/search (Depends-on, Makefile.am): Likewise.
36791         * modules/signal (Depends-on, Makefile.am): Likewise.
36792         * modules/spawn (Depends-on, Makefile.am): Likewise.
36793         * modules/stdlib (Depends-on, Makefile.am): Likewise.
36794         * modules/string (Depends-on, Makefile.am): Likewise.
36795         * modules/strings (Depends-on, Makefile.am): Likewise.
36796         * modules/sys_file (Depends-on, Makefile.am): Likewise.
36797         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
36798         * modules/sys_select (Depends-on, Makefile.am): Likewise.
36799         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
36800         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
36801         * modules/sys_times (Depends-on, Makefile.am): Likewise.
36802         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36803         * modules/wchar (Depends-on, Makefile.am): Likewise.
36804         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
36805         should be poisoned.
36806         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
36807         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
36808         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
36809         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36810         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36811         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
36812         * m4/math_h.m4 (gl_MATH_H): Likewise.
36813         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36814         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
36815         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36816         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
36817         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
36818         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
36819         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
36820         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
36821         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
36822         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36823         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36824         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
36825         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36826         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36827         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36828         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36829         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
36830         GL_LINK_WARNING.
36831         * lib/ctype.in.h: Likewise.
36832         * lib/dirent.in.h: Likewise.
36833         * lib/fcntl.in.h: Likewise.
36834         * lib/inttypes.in.h: Likewise.
36835         * lib/langinfo.in.h: Likewise.
36836         * lib/locale.in.h: Likewise.
36837         * lib/math.in.h: Likewise.
36838         * lib/search.in.h: Likewise.
36839         * lib/signal.in.h: Likewise.
36840         * lib/spawn.in.h: Likewise.
36841         * lib/stdio.in.h: Likewise.
36842         * lib/stdlib.in.h: Likewise.
36843         * lib/string.in.h: Likewise.
36844         * lib/strings.in.h: Likewise.
36845         * lib/sys_file.in.h: Likewise.
36846         * lib/sys_ioctl.in.h: Likewise.
36847         * lib/sys_select.in.h: Likewise.
36848         * lib/sys_socket.in.h: Likewise.
36849         * lib/sys_stat.in.h: Likewise.
36850         * lib/sys_times.in.h: Likewise.
36851         * lib/sys_utsname.in.h: Likewise.
36852         * lib/unistd.in.h: Likewise.
36853         * lib/wchar.in.h: Likewise.
36854
36855 2010-01-20  Bruno Haible  <bruno@clisp.org>
36856
36857         Avoid duplicate -lm.
36858         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
36859         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
36860         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
36861         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
36862         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
36863         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
36864         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
36865         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
36866         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
36867         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
36868         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
36869         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
36870         Reported by Paolo Bonzini.
36871
36872 2010-01-19  Bruno Haible  <bruno@clisp.org>
36873
36874         langinfo, nl_langinfo: Relicense under LGPLv2+.
36875         * modules/langinfo (License): Change to LGPLv2+.
36876         * modules/nl_langinfo (License): Likewise.
36877         Patch by David Lutterkort <lutter@redhat.com>.
36878
36879 2010-01-19  Bruno Haible  <bruno@clisp.org>
36880
36881         Avoid compilation error with cc on OSF/1 5.1.
36882         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
36883         statement, not before.
36884         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36885
36886 2010-01-18  Bruno Haible  <bruno@clisp.org>
36887
36888         Avoid a link error due to the __printf__ symbol.
36889         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
36890         and 2.6.x.
36891         (__format__, __printf__): Remove definitions.
36892         * lib/argp-fmtstream.h: Likewise.
36893         * lib/argp.h: Likewise.
36894         * lib/error.h: Likewise.
36895         * lib/vasnprintf.h: Likewise.
36896         * lib/xprintf.h: Likewise.
36897         * lib/xvasprintf.h: Likewise.
36898         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36899
36900 2010-01-18  Bruno Haible  <bruno@clisp.org>
36901
36902         Tests for module 'tanl'.
36903         * modules/tanl-tests: New file.
36904         * tests/test-tanl.c: New file.
36905
36906         Tests for module 'sqrtl'.
36907         * modules/sqrtl-tests: New file.
36908         * tests/test-sqrtl.c: New file.
36909
36910         Tests for module 'sinl'.
36911         * modules/sinl-tests: New file.
36912         * tests/test-sinl.c: New file.
36913
36914         Tests for module 'logl'.
36915         * modules/logl-tests: New file.
36916         * tests/test-logl.c: New file.
36917
36918         Tests for module 'expl'.
36919         * modules/expl-tests: New file.
36920         * tests/test-expl.c: New file.
36921
36922         Tests for module 'cosl'.
36923         * modules/cosl-tests: New file.
36924         * tests/test-cosl.c: New file.
36925
36926         Tests for module 'atanl'.
36927         * modules/atanl-tests: New file.
36928         * tests/test-atanl.c: New file.
36929
36930         Tests for module 'asinl'.
36931         * modules/asinl-tests: New file.
36932         * tests/test-asinl.c: New file.
36933
36934         Tests for module 'acosl'.
36935         * modules/acosl-tests: New file.
36936         * tests/test-acosl.c: New file.
36937
36938         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36939         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
36940         tanl): Use the standard gnulib idiom.
36941         * lib/cosl.c: Don't include trigl.c and sincosl.c.
36942         * lib/sinl.c: Likewise.
36943         * lib/tanl.c: Don't include trigl.c.
36944         (kernel_tanl): Make static.
36945         * lib/sincosl.c: Include trigl.h first.
36946         * lib/trigl.c: Likewise.
36947         * m4/acosl.m4: New file.
36948         * m4/asinl.m4: New file.
36949         * m4/atanl.m4: New file.
36950         * m4/cosl.m4: New file.
36951         * m4/expl.m4: New file.
36952         * m4/logl.m4: New file.
36953         * m4/sinl.m4: New file.
36954         * m4/sqrtl.m4: New file.
36955         * m4/tanl.m4: New file.
36956         * m4/mathl.m4: Remove file.
36957         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
36958         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36959         Don't initialize GNULIB_MATHL.
36960         * modules/acosl: New file.
36961         * modules/asinl: New file.
36962         * modules/atanl: New file.
36963         * modules/cosl: New file.
36964         * modules/expl: New file.
36965         * modules/logl: New file.
36966         * modules/sinl: New file.
36967         * modules/sqrtl: New file.
36968         * modules/tanl: New file.
36969         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
36970         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
36971         substitute GNULIB_MATHL.
36972         * modules/mathl: Rewritten.
36973         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
36974         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
36975         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
36976         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
36977         * doc/posix-functions/expl.texi: Mention the 'expl' module.
36978         * doc/posix-functions/logl.texi: Mention the 'logl' module.
36979         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
36980         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
36981         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
36982
36983 2010-01-18  Bruno Haible  <bruno@clisp.org>
36984
36985         sqrt: Make gl_FUNC_SQRT requirable.
36986         * m4/sqrt.m4: New file.
36987         * modules/sqrt (Files): Add it.
36988         (configure.ac): Invoke gl_FUNC_SQRT.
36989
36990 2010-01-18  Bruno Haible  <bruno@clisp.org>
36991
36992         New modules for common <math.h> functions.
36993         * m4/mathfunc.m4: New file.
36994         * modules/acos: New file.
36995         * modules/asin: New file.
36996         * modules/atan: New file.
36997         * modules/atan2: New file.
36998         * modules/cbrt: New file.
36999         * modules/copysign: New file.
37000         * modules/cos: New file.
37001         * modules/cosh: New file.
37002         * modules/erf: New file.
37003         * modules/erfc: New file.
37004         * modules/exp: New file.
37005         * modules/fabs: New file.
37006         * modules/fmod: New file.
37007         * modules/hypot: New file.
37008         * modules/j0: New file.
37009         * modules/j1: New file.
37010         * modules/jn: New file.
37011         * modules/ldexp: New file.
37012         * modules/lgamma: New file.
37013         * modules/log: New file.
37014         * modules/log10: New file.
37015         * modules/log1p: New file.
37016         * modules/logb: New file.
37017         * modules/modf: New file.
37018         * modules/nextafter: New file.
37019         * modules/pow: New file.
37020         * modules/remainder: New file.
37021         * modules/rint: New file.
37022         * modules/sin: New file.
37023         * modules/sinh: New file.
37024         * modules/sqrt: New file.
37025         * modules/tan: New file.
37026         * modules/tanh: New file.
37027         * modules/y0: New file.
37028         * modules/y1: New file.
37029         * modules/yn: New file.
37030         * doc/posix-functions/acos.texi: Mention the 'acos' module.
37031         * doc/posix-functions/asin.texi: Mention the 'asin' module.
37032         * doc/posix-functions/atan.texi: Mention the 'atan' module.
37033         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
37034         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
37035         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
37036         * doc/posix-functions/cos.texi: Mention the 'cos' module.
37037         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
37038         * doc/posix-functions/erf.texi: Mention the 'erf' module.
37039         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
37040         * doc/posix-functions/exp.texi: Mention the 'exp' module.
37041         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
37042         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
37043         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
37044         * doc/posix-functions/j0.texi: Mention the 'j0' module.
37045         * doc/posix-functions/j1.texi: Mention the 'j1' module.
37046         * doc/posix-functions/jn.texi: Mention the 'jn' module.
37047         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
37048         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
37049         * doc/posix-functions/log.texi: Mention the 'log' module.
37050         * doc/posix-functions/log10.texi: Mention the 'log10' module.
37051         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
37052         * doc/posix-functions/logb.texi: Mention the 'logb' module.
37053         * doc/posix-functions/modf.texi: Mention the 'modf' module.
37054         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
37055         * doc/posix-functions/pow.texi: Mention the 'pow' module.
37056         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
37057         * doc/posix-functions/rint.texi: Mention the 'rint' module.
37058         * doc/posix-functions/sin.texi: Mention the 'sin' module.
37059         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
37060         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
37061         * doc/posix-functions/tan.texi: Mention the 'tan' module.
37062         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
37063         * doc/posix-functions/y0.texi: Mention the 'y0' module.
37064         * doc/posix-functions/y1.texi: Mention the 'y1' module.
37065         * doc/posix-functions/yn.texi: Mention the 'yn' module.
37066
37067 2010-01-18  Jim Meyering  <meyering@redhat.com>
37068
37069         ignore-value: relax license to LGPLv2+
37070         * modules/ignore-value (License): Relax to LGPLv2+.
37071
37072         getdate: don't leak when TZ contains two or more '"'s
37073         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
37074         double quote in TZ after the first one.
37075
37076         readtokens: do not leak internal token_lengths buffer
37077         * lib/readtokens.c (readtokens): Free the local, lengths,
37078         when the supplied "token_lengths" parameter is NULL.
37079
37080 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37081
37082         Fix a couple of missing LIBTHREAD link failures on AIX.
37083         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
37084         $(LIBTHREAD).
37085         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
37086
37087         Link test-poll against INET_PTON_LIB.
37088         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
37089         for inet_pton on Solaris 10.
37090
37091 2010-01-17  Bruno Haible  <bruno@clisp.org>
37092
37093         unistdio/*-sprintf: Fix typo in module description.
37094         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
37095         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
37096         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
37097         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
37098         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
37099         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
37100         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
37101         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37102
37103 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37104
37105         gnulib-tool: fix filelist for AIX, HP-UX ksh.
37106         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
37107         variables in shell case patterns, for AIX and HP-UX ksh.
37108
37109         Split large sed scripts, for HP-UX sed.
37110         * modules/stdio: Split sed scripts around 50 sed commands,
37111         to avoid HP-UX limit of 99 commands, in the near future.
37112         * modules/string: Likewise.
37113         * modules/unistd: Likewise.
37114
37115         gnulib-tool: avoid writing in the current directory.
37116         * gnulib-tool (func_emit_lib_Makefile_am)
37117         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
37118         not in the current directory, so concurrent gnulib-tool
37119         instances do not interfere.
37120
37121 2010-01-16  Jim Meyering  <meyering@redhat.com>
37122
37123         doc: update users.txt
37124         * users.txt: Add grep.
37125         (diffutils, gzip): Update URLs.
37126
37127 2010-01-12  Bruno Haible  <bruno@clisp.org>
37128
37129         posix_spawn: Avoid test failure on Cygwin.
37130         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
37131         characters.
37132         Reported by Simon Josefsson.
37133
37134 2010-01-12  Bruno Haible  <bruno@clisp.org>
37135
37136         * tests/test-cond.c (main): When skipping the test, show the reason.
37137
37138 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37139
37140         * lib/striconv.c (str_cd_iconv): Avoid if before free.
37141
37142 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37143
37144         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
37145         VC_LIST_ALWAYS_EXCLUDE_REGEX.
37146
37147 2010-01-12  Eric Blake  <ebb9@byu.net>
37148
37149         build: guarantee AS_VAR_IF
37150         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
37151         (gl_AS_VAR_IF): Move...
37152         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
37153         Reported by Simon Josefsson.
37154
37155 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37156
37157         * lib/stdio.in.h: Fix typo.
37158
37159 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37160
37161         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
37162         libgpg-error.
37163
37164 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37165
37166         * tests/test-xalloc-die.sh: Use $EXEEXT.
37167
37168 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37169             Bruno Haible  <bruno@clisp.org>
37170
37171         getlogin, getlogin_r: Avoid test failure.
37172         * tests/test-getlogin.c: Include <stdio.h>.
37173         (main): Skip the test when the function fails because stdin is not a
37174         tty.
37175         * tests/test-getlogin_r.c: Include <stdio.h>.
37176         (main): Skip the test when the function fails because stdin is not a
37177         tty.
37178
37179 2010-01-11  Eric Blake  <ebb9@byu.net>
37180
37181         tests: avoid more large file warnings
37182         * tests/test-fflush.c: Avoid warning about ftell use.
37183         * tests/test-fseek.c: Avoid warning about fseek use.
37184
37185 2010-01-10  Bruno Haible  <bruno@clisp.org>
37186
37187         nproc: Work better on Linux when /proc and /sys are not mounted.
37188         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
37189         as lower bound when, on glibc/Linux systems,
37190         sysconf (_SC_NPROCESSORS_CONF) returns 1.
37191         Suggested by Pádraig Brady <P@draigbrady.com>.
37192         Reported by Dmitry V. Levin <ldv@altlinux.org>.
37193
37194         nproc: Refactor.
37195         * lib/nproc.c (num_processors_via_affinity_mask): New function,
37196         extracted from num_processors.
37197         (num_processors): Call it.
37198
37199 2010-01-11  Jim Meyering  <meyering@redhat.com>
37200
37201         utimecmp: avoid new warning from upcoming gcc-4.5.0
37202         * lib/utimecmp.c (BILLION): Define using #define rather than an
37203         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
37204
37205 2010-01-11  Eric Blake  <ebb9@byu.net>
37206
37207         math: add portability warnings for classification macros
37208         * modules/math (Depends-on): Add warn-on-use.
37209         (Makefile.am): Provide new substitutions.
37210         * m4/math_h.m4 (gl_MATH_H): Require inline.
37211         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
37212         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
37213         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
37214         implement warnings.
37215
37216         unistd: warn on use of environ without module
37217         * modules/unistd (Depends-on): Add warn-on-use.
37218         (Makefile.am): Provide new substitutions.
37219         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
37220         * lib/unistd.in.h (environ): Wrap with a warning helper function.
37221
37222         stdio: warn on suspicious uses
37223         * modules/stdio (Depends-on): Add warn-on-use.
37224         (Makefile.am): Provide new substitutions.
37225         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
37226         fseeko.
37227         * lib/stdio.in.h (gets): Always warn on use.
37228         (fseek, ftell): Adjust when warnings are issued, and honor
37229         _GL_NO_LARGE_FILES as a way to silence the warning.
37230         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
37231         any warning about large file offsets.
37232         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
37233         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
37234         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
37235         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
37236         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
37237         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
37238         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
37239         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
37240
37241         warn-on-use: new module
37242         * modules/warn-on-use: New file.
37243         * build-aux/warn-on-use.h: Likewise.
37244         * m4/warn-on-use.m4: Likewise.
37245         * MODULES.html.sh (Support for building): Mention it.
37246
37247 2010-01-10  Bruno Haible  <bruno@clisp.org>
37248
37249         Tests for module 'unistr/u32-strdup'.
37250         * modules/unistr/u32-strdup-tests: New file.
37251         * tests/unistr/test-u32-strdup.c: New file.
37252
37253         Tests for module 'unistr/u16-strdup'.
37254         * modules/unistr/u16-strdup-tests: New file.
37255         * tests/unistr/test-u16-strdup.c: New file.
37256
37257         Tests for module 'unistr/u8-strdup'.
37258         * modules/unistr/u8-strdup-tests: New file.
37259         * tests/unistr/test-u8-strdup.c: New file.
37260         * tests/unistr/test-strdup.h: New file.
37261
37262         Tests for module 'unistr/u32-strncmp'.
37263         * modules/unistr/u32-strncmp-tests: New file.
37264         * tests/unistr/test-u32-strncmp.c: New file.
37265
37266         Tests for module 'unistr/u16-strncmp'.
37267         * modules/unistr/u16-strncmp-tests: New file.
37268         * tests/unistr/test-u16-strncmp.c: New file.
37269
37270         Tests for module 'unistr/u8-strncmp'.
37271         * modules/unistr/u8-strncmp-tests: New file.
37272         * tests/unistr/test-u8-strncmp.c: New file.
37273         * tests/unistr/test-strncmp.h: New file.
37274
37275         Tests for module 'unistr/u32-strcoll'.
37276         * modules/unistr/u32-strcoll-tests: New file.
37277         * tests/unistr/test-u32-strcoll.c: New file.
37278
37279         Tests for module 'unistr/u16-strcoll'.
37280         * modules/unistr/u16-strcoll-tests: New file.
37281         * tests/unistr/test-u16-strcoll.c: New file.
37282
37283         Tests for module 'unistr/u8-strcoll'.
37284         * modules/unistr/u8-strcoll-tests: New file.
37285         * tests/unistr/test-u8-strcoll.c: New file.
37286
37287         Tests for module 'unistr/u32-strcmp'.
37288         * modules/unistr/u32-strcmp-tests: New file.
37289         * tests/unistr/test-u32-strcmp.c: New file.
37290         * tests/unistr/test-u32-strcmp.h: New file.
37291
37292         Tests for module 'unistr/u16-strcmp'.
37293         * modules/unistr/u16-strcmp-tests: New file.
37294         * tests/unistr/test-u16-strcmp.c: New file.
37295         * tests/unistr/test-u16-strcmp.h: New file.
37296
37297         Tests for module 'unistr/u8-strcmp'.
37298         * modules/unistr/u8-strcmp-tests: New file.
37299         * tests/unistr/test-u8-strcmp.c: New file.
37300         * tests/unistr/test-u8-strcmp.h: New file.
37301         * tests/unistr/test-strcmp.h: New file.
37302
37303         Tests for module 'unistr/u32-strncat'.
37304         * modules/unistr/u32-strncat-tests: New file.
37305         * tests/unistr/test-u32-strncat.c: New file.
37306
37307         Tests for module 'unistr/u16-strncat'.
37308         * modules/unistr/u16-strncat-tests: New file.
37309         * tests/unistr/test-u16-strncat.c: New file.
37310
37311         Tests for module 'unistr/u8-strncat'.
37312         * modules/unistr/u8-strncat-tests: New file.
37313         * tests/unistr/test-u8-strncat.c: New file.
37314         * tests/unistr/test-strncat.h: New file.
37315
37316         Tests for module 'unistr/u32-strcat'.
37317         * modules/unistr/u32-strcat-tests: New file.
37318         * tests/unistr/test-u32-strcat.c: New file.
37319
37320         Tests for module 'unistr/u16-strcat'.
37321         * modules/unistr/u16-strcat-tests: New file.
37322         * tests/unistr/test-u16-strcat.c: New file.
37323
37324         Tests for module 'unistr/u8-strcat'.
37325         * modules/unistr/u8-strcat-tests: New file.
37326         * tests/unistr/test-u8-strcat.c: New file.
37327         * tests/unistr/test-strcat.h: New file.
37328
37329         Tests for module 'unistr/u32-stpncpy'.
37330         * modules/unistr/u32-stpncpy-tests: New file.
37331         * tests/unistr/test-u32-stpncpy.c: New file.
37332
37333         Tests for module 'unistr/u16-stpncpy'.
37334         * modules/unistr/u16-stpncpy-tests: New file.
37335         * tests/unistr/test-u16-stpncpy.c: New file.
37336
37337         Tests for module 'unistr/u8-stpncpy'.
37338         * modules/unistr/u8-stpncpy-tests: New file.
37339         * tests/unistr/test-u8-stpncpy.c: New file.
37340         * tests/unistr/test-stpncpy.h: New file.
37341
37342         Tests for module 'unistr/u32-strncpy'.
37343         * modules/unistr/u32-strncpy-tests: New file.
37344         * tests/unistr/test-u32-strncpy.c: New file.
37345
37346         Tests for module 'unistr/u16-strncpy'.
37347         * modules/unistr/u16-strncpy-tests: New file.
37348         * tests/unistr/test-u16-strncpy.c: New file.
37349
37350         Tests for module 'unistr/u8-strncpy'.
37351         * modules/unistr/u8-strncpy-tests: New file.
37352         * tests/unistr/test-u8-strncpy.c: New file.
37353         * tests/unistr/test-strncpy.h: New file.
37354
37355         Tests for module 'unistr/u32-stpcpy'.
37356         * modules/unistr/u32-stpcpy-tests: New file.
37357         * tests/unistr/test-u32-stpcpy.c: New file.
37358
37359         Tests for module 'unistr/u16-stpcpy'.
37360         * modules/unistr/u16-stpcpy-tests: New file.
37361         * tests/unistr/test-u16-stpcpy.c: New file.
37362
37363         Tests for module 'unistr/u8-stpcpy'.
37364         * modules/unistr/u8-stpcpy-tests: New file.
37365         * tests/unistr/test-u8-stpcpy.c: New file.
37366         * tests/unistr/test-stpcpy.h: New file.
37367
37368         Tests for module 'unistr/u32-strcpy'.
37369         * modules/unistr/u32-strcpy-tests: New file.
37370         * tests/unistr/test-u32-strcpy.c: New file.
37371
37372         Tests for module 'unistr/u16-strcpy'.
37373         * modules/unistr/u16-strcpy-tests: New file.
37374         * tests/unistr/test-u16-strcpy.c: New file.
37375
37376         Tests for module 'unistr/u8-strcpy'.
37377         * modules/unistr/u8-strcpy-tests: New file.
37378         * tests/unistr/test-u8-strcpy.c: New file.
37379         * tests/unistr/test-strcpy.h: New file.
37380
37381         Tests for module 'unistr/u32-strnlen'.
37382         * modules/unistr/u32-strnlen-tests: New file.
37383         * tests/unistr/test-u32-strnlen.c: New file.
37384
37385         Tests for module 'unistr/u16-strnlen'.
37386         * modules/unistr/u16-strnlen-tests: New file.
37387         * tests/unistr/test-u16-strnlen.c: New file.
37388
37389         Tests for module 'unistr/u8-strnlen'.
37390         * modules/unistr/u8-strnlen-tests: New file.
37391         * tests/unistr/test-u8-strnlen.c: New file.
37392         * tests/unistr/test-strnlen.h: New file.
37393
37394         Tests for module 'unistr/u32-strlen'.
37395         * modules/unistr/u32-strlen-tests: New file.
37396         * tests/unistr/test-u32-strlen.c: New file.
37397
37398         Tests for module 'unistr/u16-strlen'.
37399         * modules/unistr/u16-strlen-tests: New file.
37400         * tests/unistr/test-u16-strlen.c: New file.
37401
37402         Tests for module 'unistr/u8-strlen'.
37403         * modules/unistr/u8-strlen-tests: New file.
37404         * tests/unistr/test-u8-strlen.c: New file.
37405
37406         Tests for module 'unistr/u32-prev'.
37407         * modules/unistr/u32-prev-tests: New file.
37408         * tests/unistr/test-u32-prev.c: New file.
37409
37410         Tests for module 'unistr/u16-prev'.
37411         * modules/unistr/u16-prev-tests: New file.
37412         * tests/unistr/test-u16-prev.c: New file.
37413
37414         Tests for module 'unistr/u8-prev'.
37415         * modules/unistr/u8-prev-tests: New file.
37416         * tests/unistr/test-u8-prev.c: New file.
37417
37418         Tests for module 'unistr/u32-next'.
37419         * modules/unistr/u32-next-tests: New file.
37420         * tests/unistr/test-u32-next.c: New file.
37421
37422         Tests for module 'unistr/u16-next'.
37423         * modules/unistr/u16-next-tests: New file.
37424         * tests/unistr/test-u16-next.c: New file.
37425
37426         Tests for module 'unistr/u8-next'.
37427         * modules/unistr/u8-next-tests: New file.
37428         * tests/unistr/test-u8-next.c: New file.
37429
37430         Tests for module 'unistr/u32-strmbtouc'.
37431         * modules/unistr/u32-strmbtouc-tests: New file.
37432         * tests/unistr/test-u32-strmbtouc.c: New file.
37433
37434         Tests for module 'unistr/u16-strmbtouc'.
37435         * modules/unistr/u16-strmbtouc-tests: New file.
37436         * tests/unistr/test-u16-strmbtouc.c: New file.
37437
37438         Tests for module 'unistr/u8-strmbtouc'.
37439         * modules/unistr/u8-strmbtouc-tests: New file.
37440         * tests/unistr/test-u8-strmbtouc.c: New file.
37441
37442         Tests for module 'unistr/u32-strmblen'.
37443         * modules/unistr/u32-strmblen-tests: New file.
37444         * tests/unistr/test-u32-strmblen.c: New file.
37445
37446         Tests for module 'unistr/u16-strmblen'.
37447         * modules/unistr/u16-strmblen-tests: New file.
37448         * tests/unistr/test-u16-strmblen.c: New file.
37449
37450         Tests for module 'unistr/u8-strmblen'.
37451         * modules/unistr/u8-strmblen-tests: New file.
37452         * tests/unistr/test-u8-strmblen.c: New file.
37453
37454         Tests for module 'unistr/u32-cpy-alloc'.
37455         * modules/unistr/u32-cpy-alloc-tests: New file.
37456         * tests/unistr/test-u32-cpy-alloc.c: New file.
37457
37458         Tests for module 'unistr/u16-cpy-alloc'.
37459         * modules/unistr/u16-cpy-alloc-tests: New file.
37460         * tests/unistr/test-u16-cpy-alloc.c: New file.
37461
37462         Tests for module 'unistr/u8-cpy-alloc'.
37463         * modules/unistr/u8-cpy-alloc-tests: New file.
37464         * tests/unistr/test-u8-cpy-alloc.c: New file.
37465         * tests/unistr/test-cpy-alloc.h: New file.
37466
37467         Tests for module 'unistr/u32-mbsnlen'.
37468         * modules/unistr/u32-mbsnlen-tests: New file.
37469         * tests/unistr/test-u32-mbsnlen.c: New file.
37470
37471         Tests for module 'unistr/u16-mbsnlen'.
37472         * modules/unistr/u16-mbsnlen-tests: New file.
37473         * tests/unistr/test-u16-mbsnlen.c: New file.
37474
37475         Tests for module 'unistr/u8-mbsnlen'.
37476         * modules/unistr/u8-mbsnlen-tests: New file.
37477         * tests/unistr/test-u8-mbsnlen.c: New file.
37478
37479         Tests for module 'unistr/u32-chr'.
37480         * modules/unistr/u32-chr-tests: New file.
37481         * tests/unistr/test-u32-chr.c: New file.
37482
37483         Tests for module 'unistr/u16-chr'.
37484         * modules/unistr/u16-chr-tests: New file.
37485         * tests/unistr/test-u16-chr.c: New file.
37486
37487         Tests for module 'unistr/u8-chr'.
37488         * modules/unistr/u8-chr-tests: New file.
37489         * tests/unistr/test-u8-chr.c: New file.
37490         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
37491
37492         Tests for module 'unistr/u32-cmp2'.
37493         * modules/unistr/u32-cmp2-tests: New file.
37494         * tests/unistr/test-u32-cmp2.c: New file.
37495
37496         Tests for module 'unistr/u16-cmp2'.
37497         * modules/unistr/u16-cmp2-tests: New file.
37498         * tests/unistr/test-u16-cmp2.c: New file.
37499
37500         Tests for module 'unistr/u8-cmp2'.
37501         * modules/unistr/u8-cmp2-tests: New file.
37502         * tests/unistr/test-u8-cmp2.c: New file.
37503         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
37504
37505         Tests for module 'unistr/u32-cmp'.
37506         * modules/unistr/u32-cmp-tests: New file.
37507         * tests/unistr/test-u32-cmp.c: New file.
37508
37509         Tests for module 'unistr/u16-cmp'.
37510         * modules/unistr/u16-cmp-tests: New file.
37511         * tests/unistr/test-u16-cmp.c: New file.
37512
37513         Tests for module 'unistr/u8-cmp'.
37514         * modules/unistr/u8-cmp-tests: New file.
37515         * tests/unistr/test-u8-cmp.c: New file.
37516         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
37517
37518         Tests for module 'unistr/u32-set'.
37519         * modules/unistr/u32-set-tests: New file.
37520         * tests/unistr/test-u32-set.c: New file.
37521
37522         Tests for module 'unistr/u16-set'.
37523         * modules/unistr/u16-set-tests: New file.
37524         * tests/unistr/test-u16-set.c: New file.
37525
37526         Tests for module 'unistr/u8-set'.
37527         * modules/unistr/u8-set-tests: New file.
37528         * tests/unistr/test-u8-set.c: New file.
37529         * tests/unistr/test-set.h: New file.
37530
37531         Tests for module 'unistr/u32-move'.
37532         * modules/unistr/u32-move-tests: New file.
37533         * tests/unistr/test-u32-move.c: New file.
37534
37535         Tests for module 'unistr/u16-move'.
37536         * modules/unistr/u16-move-tests: New file.
37537         * tests/unistr/test-u16-move.c: New file.
37538
37539         Tests for module 'unistr/u8-move'.
37540         * modules/unistr/u8-move-tests: New file.
37541         * tests/unistr/test-u8-move.c: New file.
37542         * tests/unistr/test-move.h: New file.
37543
37544         Tests for module 'unistr/u32-cpy'.
37545         * modules/unistr/u32-cpy-tests: New file.
37546         * tests/unistr/test-u32-cpy.c: New file.
37547
37548         Tests for module 'unistr/u16-cpy'.
37549         * modules/unistr/u16-cpy-tests: New file.
37550         * tests/unistr/test-u16-cpy.c: New file.
37551
37552         Tests for module 'unistr/u8-cpy'.
37553         * modules/unistr/u8-cpy-tests: New file.
37554         * tests/unistr/test-u8-cpy.c: New file.
37555         * tests/unistr/test-cpy.h: New file.
37556
37557 2010-01-09  Bruno Haible  <bruno@clisp.org>
37558
37559         Tests for module 'unistr/u32-uctomb'.
37560         * modules/unistr/u32-uctomb-tests: New file.
37561         * tests/unistr/test-u32-uctomb.c: New file.
37562
37563         Tests for module 'unistr/u16-uctomb'.
37564         * modules/unistr/u16-uctomb-tests: New file.
37565         * tests/unistr/test-u16-uctomb.c: New file.
37566
37567         Tests for module 'unistr/u8-uctomb'.
37568         * modules/unistr/u8-uctomb-tests: New file.
37569         * tests/unistr/test-u8-uctomb.c: New file.
37570
37571         Tests for module 'unistr/u32-mbtoucr'.
37572         * modules/unistr/u32-mbtoucr-tests: New file.
37573         * tests/unistr/test-u32-mbtoucr.c: New file.
37574
37575         Tests for module 'unistr/u16-mbtoucr'.
37576         * modules/unistr/u16-mbtoucr-tests: New file.
37577         * tests/unistr/test-u16-mbtoucr.c: New file.
37578
37579         Tests for module 'unistr/u8-mbtoucr'.
37580         * modules/unistr/u8-mbtoucr-tests: New file.
37581         * tests/unistr/test-u8-mbtoucr.c: New file.
37582
37583         Tests for module 'unistr/u32-mbtouc'.
37584         * modules/unistr/u32-mbtouc-tests: New file.
37585         * tests/unistr/test-u32-mbtouc.c: New file.
37586
37587         Tests for module 'unistr/u16-mbtouc'.
37588         * modules/unistr/u16-mbtouc-tests: New file.
37589         * tests/unistr/test-u16-mbtouc.c: New file.
37590
37591         Tests for module 'unistr/u8-mbtouc'.
37592         * modules/unistr/u8-mbtouc-tests: New file.
37593         * tests/unistr/test-u8-mbtouc.c: New file.
37594
37595         Tests for module 'unistr/u32-mbtouc-unsafe'.
37596         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
37597         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
37598         * tests/unistr/test-u32-mbtouc.h: New file.
37599
37600         Tests for module 'unistr/u16-mbtouc-unsafe'.
37601         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
37602         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
37603         * tests/unistr/test-u16-mbtouc.h: New file.
37604
37605         Tests for module 'unistr/u8-mbtouc-unsafe'.
37606         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
37607         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
37608         * tests/unistr/test-u8-mbtouc.h: New file.
37609
37610         Tests for module 'unistr/u32-mblen'.
37611         * modules/unistr/u32-mblen-tests: New file.
37612         * tests/unistr/test-u32-mblen.c: New file.
37613
37614         Tests for module 'unistr/u16-mblen'.
37615         * modules/unistr/u16-mblen-tests: New file.
37616         * tests/unistr/test-u16-mblen.c: New file.
37617
37618         Tests for module 'unistr/u8-mblen'.
37619         * modules/unistr/u8-mblen-tests: New file.
37620         * tests/unistr/test-u8-mblen.c: New file.
37621
37622         Tests for module 'unistr/u32-to-u16'.
37623         * modules/unistr/u32-to-u16-tests: New file.
37624         * tests/unistr/test-u32-to-u16.c: New file.
37625
37626         Tests for module 'unistr/u32-to-u8'.
37627         * modules/unistr/u32-to-u8-tests: New file.
37628         * tests/unistr/test-u32-to-u8.c: New file.
37629
37630         Tests for module 'unistr/u16-to-u32'.
37631         * modules/unistr/u16-to-u32-tests: New file.
37632         * tests/unistr/test-u16-to-u32.c: New file.
37633
37634         Tests for module 'unistr/u16-to-u8'.
37635         * modules/unistr/u16-to-u8-tests: New file.
37636         * tests/unistr/test-u16-to-u8.c: New file.
37637
37638         Tests for module 'unistr/u8-to-u32'.
37639         * modules/unistr/u8-to-u32-tests: New file.
37640         * tests/unistr/test-u8-to-u32.c: New file.
37641
37642         Tests for module 'unistr/u8-to-u16'.
37643         * modules/unistr/u8-to-u16-tests: New file.
37644         * tests/unistr/test-u8-to-u16.c: New file.
37645
37646         Tests for module 'unistr/u32-check'.
37647         * modules/unistr/u32-check-tests: New file.
37648         * tests/unistr/test-u32-check.c: New file.
37649
37650         Tests for module 'unistr/u16-check'.
37651         * modules/unistr/u16-check-tests: New file.
37652         * tests/unistr/test-u16-check.c: New file.
37653
37654         Tests for module 'unistr/u8-check'.
37655         * modules/unistr/u8-check-tests: New file.
37656         * tests/unistr/test-u8-check.c: New file.
37657
37658         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
37659         (category_equals): New function.
37660         (main): Add more tests.
37661         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
37662
37663         * tests/unictype/test-bidi_byname.c (main): Add more tests.
37664
37665 2010-01-10  Bruno Haible  <bruno@clisp.org>
37666
37667         unistr/u*-strcoll: Try harder to distinguish different strings.
37668         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
37669         compare s1 and s2 to see if they are different.
37670
37671 2010-01-10  Bruno Haible  <bruno@clisp.org>
37672
37673         unistr/u*-stpncpy: Fix the return value.
37674         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
37675         description of the return value consistent with stpncpy in glibc.
37676         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
37677         written non-NUL unit.
37678
37679 2010-01-10  Bruno Haible  <bruno@clisp.org>
37680
37681         unistr/u*-next: Add missing dependencies.
37682         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
37683         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
37684         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
37685
37686 2010-01-10  Bruno Haible  <bruno@clisp.org>
37687
37688         unistr/u8-mbsnlen: Fix return value for incomplete character.
37689         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
37690         u8_mblen.
37691         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
37692         Remove unistr/u8-mblen.
37693         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
37694         u16_mblen.
37695         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
37696         Remove unistr/u16-mblen.
37697
37698 2010-01-10  Bruno Haible  <bruno@clisp.org>
37699
37700         wchar: Fix compilation error when <wchar.h> is used from coreutils.
37701         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
37702         Reported by Brian Gough <bjg@gnu.org> and
37703         Chris Clayton <chris2553@googlemail.com> via
37704         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
37705
37706 2010-01-09  Bruno Haible  <bruno@clisp.org>
37707
37708         unistr/u16-to-u32: Reject invalid input.
37709         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
37710         u16_mbtouc.
37711         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
37712         Remove unistr/u16-mbtouc.
37713
37714         unistr/u16-to-u8: Reject invalid input.
37715         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
37716         u16_mbtouc.
37717         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
37718         Remove unistr/u16-mbtouc.
37719
37720         unistr/u8-to-u32: Reject invalid input.
37721         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
37722         u8_mbtouc.
37723         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
37724         Remove unistr/u8-mbtouc.
37725
37726         unistr/u8-to-u16: Reject invalid input.
37727         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
37728         u8_mbtouc.
37729         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
37730         Remove unistr/u8-mbtouc.
37731
37732 2010-01-09  Bruno Haible  <bruno@clisp.org>
37733
37734         Tests for module 'getlogin'.
37735         * modules/getlogin-tests: New file.
37736         * tests/test-getlogin.c: New file.
37737
37738         New module 'getlogin'.
37739         * lib/unistd.in.h (getlogin): New declaration.
37740         * lib/getlogin.c: New file.
37741         * m4/getlogin.m4: New file.
37742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
37743         HAVE_GETLOGIN.
37744         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
37745         HAVE_GETLOGIN.
37746         * modules/getlogin: New file.
37747         * doc/posix-functions/getlogin.texi: Mention the new module.
37748         Reported by John W. Eaton <jwe@gnu.org>.
37749
37750 2010-01-09  Bruno Haible  <bruno@clisp.org>
37751
37752         getlogin_r: Support for native Windows.
37753         * lib/getlogin_r.c: Include <windows.h>
37754         (getlogin_r): Implement for native Windows.
37755         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
37756         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
37757         via John W. Eaton <jwe@gnu.org>.
37758
37759 2010-01-09  Bruno Haible  <bruno@clisp.org>
37760
37761         getlogin_r: Small fixes.
37762         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
37763         succeeds.
37764         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
37765         before testing whether getlogin_r is declared. No need to set
37766         HAVE_DECL_GETLOGIN_R to 1.
37767         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
37768
37769 2010-01-09  Bruno Haible  <bruno@clisp.org>
37770
37771         * lib/unistd.in.h (getlogin_r): Add comment.
37772
37773 2010-01-09  Bruno Haible  <bruno@clisp.org>
37774
37775         Tests for module 'getlogin_r'.
37776         * modules/getlogin_r-tests: New file.
37777         * tests/test-getlogin_r.c: New file.
37778
37779 2010-01-09  Jim Meyering  <meyering@redhat.com>
37780
37781         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
37782         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
37783         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
37784
37785 2010-01-08  Simon Josefsson  <simon@josefsson.org>
37786
37787         * lib/dup2.c (rpl_dup2): Improve comment.
37788
37789 2010-01-08  Eric Blake  <ebb9@byu.net>
37790
37791         maint.mk: allow packages to add makefile @@ exceptions
37792         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
37793         (sc_makefile_check): Rename...
37794         (sc_makefile_at_at_check): ...to this, and use hook.
37795
37796         dup2: work around mingw bug
37797         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
37798         Reported by Simon Josefsson.
37799
37800 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
37801
37802         glob: Fix C++ compilation.
37803         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
37804         C++.
37805
37806 2010-01-07  Bruno Haible  <bruno@clisp.org>
37807
37808         Fix indentation of wctype.in.h, broken since 2007-01-06.
37809         * lib/wctype.in.h: Fix indentation of preprocessor directives.
37810
37811 2010-01-07  Bruno Haible  <bruno@clisp.org>
37812
37813         mbslen: Avoid collision with system function.
37814         * lib/string.in.h [MirBSD]: Include <wchar.h>.
37815         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
37816         * m4/mbslen.m4: New file.
37817         * modules/mbslen (Files): Add it.
37818         (configure.ac): Invoke gl_MBSLEN.
37819         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
37820         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
37821         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
37822         via Ian Beckwith <ianb@erislabs.net>.
37823
37824 2010-01-07  Bruno Haible  <bruno@clisp.org>
37825
37826         dirent: Document the last fix.
37827         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
37828
37829 2010-01-07  Bruno Haible  <bruno@clisp.org>
37830
37831         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
37832         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
37833         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
37834         va_list are defined.
37835         * doc/posix-headers/stdio.texi: Document the bug of missing types.
37836         Reported by Eric Blake.
37837
37838 2010-01-07  Bruno Haible  <bruno@clisp.org>
37839
37840         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
37841         * modules/xlist (Depends-on): Add 'list',
37842         * modules/xoset (Depends-on): Add 'oset'.
37843         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37844
37845 2010-01-07  Bruno Haible  <bruno@clisp.org>
37846
37847         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
37848         * doc/posix-functions/strncasecmp.texi: Likewise.
37849
37850 2010-01-07  Bruno Haible  <bruno@clisp.org>
37851
37852         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
37853
37854 2010-01-07  John W. Eaton  <jwe@octave.org>
37855
37856         wctype: allow C++ use
37857         * lib/wctype.in.h: Add extern "C" block for C++.
37858
37859 2010-01-06  Eric Blake  <ebb9@byu.net>
37860
37861         maint.mk: detect incorrect GFDL usage
37862         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
37863
37864 2010-01-06  Jim Meyering  <meyering@redhat.com>
37865         and Eric Blake  <ebb9@byu.net>
37866
37867         maint.mk: ignore multi-line copyright in NEWS
37868         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
37869
37870 2010-01-06  Eric Blake  <ebb9@byu.net>
37871
37872         select: add missing dependency
37873         * modules/select-tests (Depends-on): Move sockets dependency...
37874         * modules/select (Depends-on): ...here.
37875         Reported by Ian Beckwith.
37876
37877         doc: regenerate INSTALL
37878         * doc/INSTALL: Reflect recent autoconf update.
37879         * doc/INSTALL.ISO: Likewise.
37880         * doc/INSTALL.UTF-8: Likewise.
37881
37882         pread: fix compilation on glibc
37883         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
37884         Reported by Ralf Wildenhues.
37885
37886         dirent: fix test failure
37887         * lib/dirent.in.h (includes): Guarantee ino_t.
37888         Reported by Ralf Wildenhues.
37889
37890 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
37891
37892         linkat, renameat: avoid bad free
37893         * lib/at-func2.c (at_func2): Fix typo.
37894         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
37895
37896 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37897
37898         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
37899         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
37900         to avoid failure of symlink test later.
37901
37902 2010-01-06  Eric Blake  <ebb9@byu.net>
37903
37904         stdio, unistd: guarantee ssize_t
37905         * lib/unistd.in.h (includes): Ensure that types required by POSIX
37906         2008 are exposed when needed.
37907         * lib/stdio.in.h (includes): Likewise.
37908         Reported by Ralf Wildenhues.
37909
37910 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
37911
37912         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
37913         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
37914         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
37915
37916 2010-01-06  Jim Meyering  <meyering@redhat.com>
37917
37918         readtokens: this module *does* require xalloc.h
37919         It uses only functions that were omitted by the old syntax-check rule.
37920         * lib/readtokens.c: Include "xalloc.h" once again.
37921         * modules/readtokens (Depends-on): Add xalloc.
37922         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
37923
37924 2010-01-05  Eric Blake  <ebb9@byu.net>
37925
37926         maint: support 'make announcement' from a VPATH build
37927         * top/maint.mk (announcement): Look for correct NEWS file.
37928
37929 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
37930
37931         utimens (fdutimens): ignore a negative FD, per contract
37932         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
37933         when we have a valid file descriptor.  Otherwise, using a brand
37934         new glibc (with just-patched futimens that now fails with EBADF)
37935         would cause this function to fail with ENOSYS.
37936         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
37937         See also http://bugzilla.redhat.com/552320.
37938
37939 2010-01-05  Eric Blake  <ebb9@byu.net>
37940
37941         strcase: document what it provides
37942         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
37943         gnulib module.
37944         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
37945         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
37946
37947 2010-01-05  Jim Meyering  <meyering@redhat.com>
37948
37949         maint: remove useless inclusions of "xalloc.h"
37950         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
37951         * lib/readtokens.c: Likewise.
37952         * lib/same.c: Likewise.
37953         * modules/getloadavg (Depends-on): Remove xalloc.
37954         * modules/readtokens: Likewise.
37955         * modules/same: Likewise.
37956
37957         maint.mk: include 4 more function names in alloca.h-checking regexp
37958         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
37959         regexp.  Before, we would give a false-positive (saying alloca.h
37960         is included unnecessarily) when the only uses involved omitted symbols.
37961
37962         xalloc.h: use consistent formatting
37963         * lib/xalloc.h: Move declarations to start in the first column.
37964
37965 2010-01-05  Eric Blake  <ebb9@byu.net>
37966
37967         mkdir: avoid xalloc
37968         * lib/mkdir.c (includes): Drop unused header.
37969         Reported by John W. Eaton.
37970
37971 2010-01-04  Jim Meyering  <meyering@redhat.com>
37972
37973         nl_langinfo: avoid configure-time syntax error
37974         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
37975         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
37976         the empty string.  Don't let that provoke a shell syntax error.
37977
37978         regcomp, regexec, fnmatch: avoid array bounds read error
37979         * lib/regcomp.c (build_equiv_class): From glibc:
37980         Use only the low 24 bits of a findidx return value as an index
37981         into the weights array.  Patch by Ulrich Drepper:
37982         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
37983         * lib/regexec.c (check_node_accept_bytes): Likewise.
37984         * lib/fnmatch_loop.c (FCT): Likewise.
37985
37986         regcomp: skip collseq lookup when there are no rules
37987         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
37988         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
37989
37990         regcomp: recognize ill-formed { } expressions
37991         * lib/regcomp.c (parse_dup_op): From glibc:
37992         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
37993
37994         regcomp: fix typo in comment
37995         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
37996         s/satisfy/satisfies/.
37997
37998         regcomp: sync from glibc: remove dead store
37999         * lib/regcomp.c (duplicate_node_closure): Remove useless
38000         search_duplicated_node call and dead store.
38001
38002         regcomp: sync from glibc; always use nl_langinfo
38003         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
38004         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
38005         * modules/regex (Depends-on): Add nl_langinfo.
38006
38007 2010-01-04  Eric Blake  <ebb9@byu.net>
38008
38009         fdopendir: fix configure test
38010         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
38011
38012 2010-01-01  Bruno Haible  <bruno@clisp.org>
38013
38014         wchar: Remove unused configure check.
38015         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
38016
38017 2010-01-01  Eric Blake  <ebb9@byu.net>
38018
38019         headers: make check of system header explicit
38020         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
38021         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
38022         ourselves.
38023         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38024         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38025         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38026         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
38027         internals.
38028         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
38029         missing.
38030         Suggested by Bruno Haible.
38031
38032 2010-01-01  Jim Meyering  <meyering@redhat.com>
38033
38034         ChangeLog: tweak to eliminate unnecessary copyright line
38035         * ChangeLog: Remove a copyright line that was mistakenly updated
38036         by today's update-copyright run.  Reported by Eric Blake.
38037
38038         test-update-copyright: don't let envvar setting cause test failure
38039         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38040
38041 2010-01-01  Bruno Haible  <bruno@clisp.org>
38042
38043         localename: Avoid gcc warning.
38044         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
38045         function if it is not used.
38046
38047 2010-01-01  Jim Meyering  <meyering@redhat.com>
38048
38049         update nearly all FSF copyright year lists to include 2010
38050         Use the same procedure as for 2009, outlined in
38051         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
38052
38053         version-etc: set COPYRIGHT_YEAR to 2010
38054         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
38055
38056 2009-12-31  Eric Blake  <ebb9@byu.net>
38057
38058         doc: correct availability of cygwin 1.5.x getopt
38059         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
38060         variables.
38061         * doc/posix-functions/opterr.texi (opterr): Likewise.
38062         * doc/posix-functions/optind.texi (optind): Likewise.
38063         * doc/posix-functions/optopt.texi (optopt): Likewise.
38064         * doc/posix-functions/tzname.texi (tzname): Likewise.
38065
38066         openat: update maintainer
38067         * modules/openat (Maintainer): Add myself.
38068
38069         utimens: avoid shadowing warning
38070         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
38071         buffers into one, to avoid shadowing, as well as avoiding a
38072         redundant stat.
38073         Reported by Jim Meyering.
38074
38075         test-dup2: avoid compiler warning
38076         * tests/test-dup2.c (is_inheritable): Only define if used.
38077
38078 2010-01-01  Bruno Haible  <bruno@clisp.org>
38079
38080         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
38081         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
38082         defined, use wctomb instead of wcrtomb.
38083
38084 2010-01-01  Bruno Haible  <bruno@clisp.org>
38085
38086         iconv: Reject native Solaris iconv.
38087         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
38088         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
38089
38090 2009-12-31  Bruno Haible  <bruno@clisp.org>
38091
38092         * tests/test-signal.c (main): Remove test of 'SIG'.
38093
38094 2009-12-31  Bruno Haible  <bruno@clisp.org>
38095
38096         spawn: Fix incomplete fix.
38097         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38098         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38099         warnings for GNULIB_POSIXCHECK again.
38100         Reported by Eric Blake.
38101
38102 2009-12-31  Bruno Haible  <bruno@clisp.org>
38103
38104         Avoid namespace pollution on glibc systems.
38105         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
38106         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
38107         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
38108         glibc systems.
38109
38110 2009-12-31  Bruno Haible  <bruno@clisp.org>
38111
38112         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
38113         (gl_REPLACE_WCHAR_H): Turn into a no-op.
38114         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
38115         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
38116         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
38117         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
38118         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
38119
38120 2009-12-31  Bruno Haible  <bruno@clisp.org>
38121
38122         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
38123         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
38124         afterwards.
38125
38126 2009-12-31  Bruno Haible  <bruno@clisp.org>
38127
38128         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
38129         SYS_UTSNAME_H.
38130
38131 2009-12-31  Bruno Haible  <bruno@clisp.org>
38132
38133         spawn: Fix misapplied patch.
38134         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38135         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38136         warnings for GNULIB_POSIXCHECK.
38137
38138 2009-12-31  Bruno Haible  <bruno@clisp.org>
38139
38140         times: Update after sys_times changed.
38141         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
38142         * modules/times (Files): Add it.
38143         (configure.ac): Invoke gl_FUNC_TIMES.
38144
38145 2009-12-31  Bruno Haible  <bruno@clisp.org>
38146
38147         Use AC_C_INLINE where necessary.
38148         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
38149         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38150         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
38151         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38152         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38153         * m4/mbiter.m4 (gl_MBITER): Likewise.
38154         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38155         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38156         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
38157         * modules/u64 (configure.ac): Likewise.
38158
38159 2009-12-31  Bruno Haible  <bruno@clisp.org>
38160
38161         Use AC_C_INLINE instead of module 'inline' where possible.
38162         * modules/inline (Description): Clarify purpose.
38163         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
38164         * modules/count-one-bits (Depends-on): Remove inline.
38165         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
38166         * modules/openat (Depends-on): Remove inline.
38167         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
38168         instead of depending on module 'inline'.
38169         * modules/filevercmp (Depends-on, configure.ac): Likewise.
38170         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
38171         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
38172         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
38173         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
38174         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
38175         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
38176         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
38177         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
38178         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
38179         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
38180         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
38181         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
38182         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
38183         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
38184         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
38185         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
38186         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
38187         Likewise.
38188         * modules/unictype/property-ascii-hex-digit (Depends-on,
38189         configure.ac): Likewise.
38190         * modules/unictype/property-bidi-arabic-digit (Depends-on,
38191         configure.ac): Likewise.
38192         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
38193         configure.ac): Likewise.
38194         * modules/unictype/property-bidi-block-separator (Depends-on,
38195         configure.ac): Likewise.
38196         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
38197         configure.ac): Likewise.
38198         * modules/unictype/property-bidi-common-separator (Depends-on,
38199         configure.ac): Likewise.
38200         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
38201         Likewise.
38202         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
38203         configure.ac): Likewise.
38204         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
38205         configure.ac): Likewise.
38206         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
38207         configure.ac): Likewise.
38208         * modules/unictype/property-bidi-european-digit (Depends-on,
38209         configure.ac): Likewise.
38210         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
38211         configure.ac): Likewise.
38212         * modules/unictype/property-bidi-left-to-right (Depends-on,
38213         configure.ac): Likewise.
38214         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
38215         configure.ac): Likewise.
38216         * modules/unictype/property-bidi-other-neutral (Depends-on,
38217         configure.ac): Likewise.
38218         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
38219         Likewise.
38220         * modules/unictype/property-bidi-segment-separator (Depends-on,
38221         configure.ac): Likewise.
38222         * modules/unictype/property-bidi-whitespace (Depends-on,
38223         configure.ac): Likewise.
38224         * modules/unictype/property-combining (Depends-on, configure.ac):
38225         Likewise.
38226         * modules/unictype/property-composite (Depends-on, configure.ac):
38227         Likewise.
38228         * modules/unictype/property-currency-symbol (Depends-on,
38229         configure.ac): Likewise.
38230         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
38231         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
38232         Likewise.
38233         * modules/unictype/property-default-ignorable-code-point (Depends-on,
38234         configure.ac): Likewise.
38235         * modules/unictype/property-deprecated (Depends-on, configure.ac):
38236         Likewise.
38237         * modules/unictype/property-diacritic (Depends-on, configure.ac):
38238         Likewise.
38239         * modules/unictype/property-extender (Depends-on, configure.ac):
38240         Likewise.
38241         * modules/unictype/property-format-control (Depends-on, configure.ac):
38242         Likewise.
38243         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
38244         Likewise.
38245         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
38246         Likewise.
38247         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
38248         Likewise.
38249         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
38250         Likewise.
38251         * modules/unictype/property-hyphen (Depends-on, configure.ac):
38252         Likewise.
38253         * modules/unictype/property-id-continue (Depends-on, configure.ac):
38254         Likewise.
38255         * modules/unictype/property-id-start (Depends-on, configure.ac):
38256         Likewise.
38257         * modules/unictype/property-ideographic (Depends-on, configure.ac):
38258         Likewise.
38259         * modules/unictype/property-ids-binary-operator (Depends-on,
38260         configure.ac): Likewise.
38261         * modules/unictype/property-ids-trinary-operator (Depends-on,
38262         configure.ac): Likewise.
38263         * modules/unictype/property-ignorable-control (Depends-on,
38264         configure.ac): Likewise.
38265         * modules/unictype/property-iso-control (Depends-on, configure.ac):
38266         Likewise.
38267         * modules/unictype/property-join-control (Depends-on, configure.ac):
38268         Likewise.
38269         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
38270         Likewise.
38271         * modules/unictype/property-line-separator (Depends-on, configure.ac):
38272         Likewise.
38273         * modules/unictype/property-logical-order-exception (Depends-on,
38274         configure.ac): Likewise.
38275         * modules/unictype/property-lowercase (Depends-on, configure.ac):
38276         Likewise.
38277         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
38278         * modules/unictype/property-non-break (Depends-on, configure.ac):
38279         Likewise.
38280         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
38281         Likewise.
38282         * modules/unictype/property-numeric (Depends-on, configure.ac):
38283         Likewise.
38284         * modules/unictype/property-other-alphabetic (Depends-on,
38285         configure.ac): Likewise.
38286         * modules/unictype/property-other-default-ignorable-code-point
38287         (Depends-on, configure.ac): Likewise.
38288         * modules/unictype/property-other-grapheme-extend (Depends-on,
38289         configure.ac): Likewise.
38290         * modules/unictype/property-other-id-continue (Depends-on,
38291         configure.ac): Likewise.
38292         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
38293         Likewise.
38294         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
38295         Likewise.
38296         * modules/unictype/property-other-math (Depends-on, configure.ac):
38297         Likewise.
38298         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
38299         Likewise.
38300         * modules/unictype/property-paired-punctuation (Depends-on,
38301         configure.ac): Likewise.
38302         * modules/unictype/property-paragraph-separator (Depends-on,
38303         configure.ac): Likewise.
38304         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
38305         Likewise.
38306         * modules/unictype/property-pattern-white-space (Depends-on,
38307         configure.ac): Likewise.
38308         * modules/unictype/property-private-use (Depends-on, configure.ac):
38309         Likewise.
38310         * modules/unictype/property-punctuation (Depends-on, configure.ac):
38311         Likewise.
38312         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
38313         Likewise.
38314         * modules/unictype/property-radical (Depends-on, configure.ac):
38315         Likewise.
38316         * modules/unictype/property-sentence-terminal (Depends-on,
38317         configure.ac): Likewise.
38318         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
38319         Likewise.
38320         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
38321         * modules/unictype/property-terminal-punctuation (Depends-on,
38322         configure.ac): Likewise.
38323         * modules/unictype/property-titlecase (Depends-on, configure.ac):
38324         Likewise.
38325         * modules/unictype/property-unassigned-code-value (Depends-on,
38326         configure.ac): Likewise.
38327         * modules/unictype/property-unified-ideograph (Depends-on,
38328         configure.ac): Likewise.
38329         * modules/unictype/property-uppercase (Depends-on, configure.ac):
38330         Likewise.
38331         * modules/unictype/property-variation-selector (Depends-on,
38332         configure.ac): Likewise.
38333         * modules/unictype/property-white-space (Depends-on, configure.ac):
38334         Likewise.
38335         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
38336         Likewise.
38337         * modules/unictype/property-xid-start (Depends-on, configure.ac):
38338         Likewise.
38339         * modules/unictype/property-zero-width (Depends-on, configure.ac):
38340         Likewise.
38341         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
38342         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
38343         Likewise.
38344
38345 2009-12-31  Bruno Haible  <bruno@clisp.org>
38346
38347         Remove unnecessary AC_C_INLINE invocation.
38348         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
38349         since 2009-08-21.
38350
38351 2009-12-31  Jim Meyering  <meyering@redhat.com>
38352
38353         maint.mk: don't require explicit gpg_key_ID in cfg.mk
38354         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
38355         With this change, we can all remove the gpg_key_ID = ... definition
38356         from our respective cfg.mk files.
38357
38358         maint.mk: create announcement template in ~/, not in /tmp
38359         * top/maint.mk (emit_upload_commands): Adjust.
38360         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
38361         Remove temporary file, .ci-msg.
38362
38363 2009-12-31  Eric Blake  <ebb9@byu.net>
38364
38365         link-warning: always build headers with link warnings
38366         * modules/arpa_inet (Makefile.am): Always build replacement
38367         header.
38368         * modules/ctype (Makefile.am): Likewise.
38369         * modules/dirent (Makefile.am): Likewise.
38370         * modules/inttypes (Makefile.am): Likewise.
38371         * modules/langinfo (Makefile.am): Likewise.
38372         * modules/locale (Makefile.am): Likewise.
38373         * modules/spawn (Makefile.am): Likewise.
38374         * modules/sys_file (Makefile.am): Likewise.
38375         * modules/sys_ioctl (Makefile.am): Likewise.
38376         * modules/sys_select (Makefile.am): Likewise.
38377         * modules/sys_socket (Makefile.am): Likewise.
38378         * modules/sys_times (Makefile.am): Likewise.
38379         * modules/sys_utsname (Makefile.am): Likewise.
38380         * modules/sys_wait (Makefile.am): Likewise.
38381         * modules/wchar (Makefile.am): Likewise.
38382         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
38383         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
38384         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
38385         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
38386         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
38387         Likewise.
38388         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38389         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38390         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
38391         Likewise.
38392         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
38393         Likewise.
38394         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
38395         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
38396         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
38397         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38398         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38399         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38400         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38401         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
38402         (gl_WCHAR_H_DEFAULTS): Likewise.
38403
38404 2009-12-31  Eric Blake  <ebb9@byu.net>
38405
38406         signal, spawn: use link warnings
38407         * lib/signal.in.h (sigset_t): Make unconditional.
38408         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
38409         (sigpending, sigprocmask, sigaction): Add link warnings.
38410         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
38411         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
38412         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
38413         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
38414         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
38415         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
38416         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
38417         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
38418         (posix_spawn_file_actions_destroy)
38419         (posix_spawn_file_actions_addopen)
38420         (posix_spawn_file_actions_addclose)
38421         (posix_spawn_file_actions_adddup2): Likewise.
38422         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
38423         * tests/test-signal.c (main): Enhance test.
38424
38425         spawn: improve wrapper support
38426         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
38427         (gl_SPAWN_H_DEFAULTS): New defaults.
38428         * modules/spawn (Makefile.am): Substitute them.
38429         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
38430         Only declare if missing or broken.
38431
38432         sys_times, sys_utsname: use include_next
38433         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
38434         header.
38435         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
38436         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38437         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38438         * modules/sys_times (Depends-on): Add include_next.
38439         (Makefile.am): Substitute additional values.
38440         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38441         * lib/sys_times.in.h (includes): Include native header, if
38442         available.
38443         * lib/sys_utsname.in.h (includes): Likewise.
38444         * tests/test-sys_times.c (main): Enhance test.
38445
38446         fdutimensat: revert prior patch
38447         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
38448         utimens.h.
38449         Reported by Bruno Haible.
38450
38451 2009-12-30  Eric Blake  <ebb9@byu.net>
38452
38453         sys_wait: drop link-warning dependency
38454         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
38455         link-warning efforts.
38456         * lib/sys_wait.in.h: Likewise.
38457
38458         fdutimensat: remove bogus dependency
38459         * modules/fdutimensat (Depends-on): Drop inline.
38460
38461         unistd: fix typo
38462         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
38463
38464 2009-12-30  Bruno Haible  <bruno@clisp.org>
38465
38466         Fix compilation error with Solaris cc.
38467         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
38468         * lib/unicase/u16-is-invariant.c: Likewise.
38469         * lib/unicase/u32-is-invariant.c: Likewise.
38470         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38471
38472 2009-12-30  Bruno Haible  <bruno@clisp.org>
38473
38474         Fix test crash.
38475         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
38476         locales.
38477         Reported by Simon Josefsson <simon@josefsson.org>.
38478
38479 2009-12-30  Bruno Haible  <bruno@clisp.org>
38480
38481         Fix compilation error on most platforms.
38482         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
38483         Reported by Simon Josefsson <simon@josefsson.org>
38484         and Nelson H. F. Beebe <beebe@math.utah.edu>.
38485
38486 2009-12-30  Eric Blake  <ebb9@byu.net>
38487
38488         futimens, utimensat: work around ntfs-3g bug
38489         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
38490         a ctime bug is present, and expand workaround to cover ntfs-3g.
38491         * lib/utimens.c (fdutimens, lutimens): Likewise.
38492         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
38493         (validate_timespec): Adjust return value.
38494         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
38495         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38496         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
38497
38498 2009-12-29  Eric Blake  <ebb9@byu.net>
38499
38500         link-warning: make usage consistent
38501         * modules/ctype (Depends-on): Add link-warning.
38502         (Makefile.am): Update rules accordingly.
38503         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38504         * modules/locale (Depends-on, Makefile.am): Likewise.
38505         * modules/sys_file (Makefile.am): Likewise.
38506         * modules/getopt-posix (Makefile.am): Delete unused link warning
38507         efforts.
38508         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
38509         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
38510         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
38511         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
38512
38513         stdio: remove unused variables
38514         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
38515         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
38516         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
38517
38518         tests: test more substitute headers
38519         * modules/ctype-tests: New file.
38520         * modules/dirent-tests: Likewise.
38521         * modules/spawn-tests: Likewise.
38522         * modules/sys_file-tests: Likewise.
38523         * modules/sys_ioctl-tests: Likewise.
38524         * modules/sys_wait-tests: Likewise.
38525         * tests/test-ctype.c: Likewise.
38526         * tests/test-dirent.c: Likewise.
38527         * tests/test-spawn.c: Likewise.
38528         * tests/test-sys_file.c: Likewise.
38529         * tests/test-sys_ioctl.c: Likewise.
38530         * tests/test-sys_wait.c: Likewise.
38531         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
38532         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
38533         whether or not flock is in use.
38534
38535         tests: remove License section from module
38536         * modules/arpa_inet-tests: Remove unneeded section.
38537         * modules/byteswap-tests: Likewise.
38538         * modules/ceilf-tests: Likewise.
38539         * modules/ceill-tests: Likewise.
38540         * modules/crypto/des-tests: Likewise.
38541         * modules/crypto/gc-arcfour-tests: Likewise.
38542         * modules/crypto/gc-arctwo-tests: Likewise.
38543         * modules/crypto/gc-des-tests: Likewise.
38544         * modules/crypto/gc-hmac-md5-tests: Likewise.
38545         * modules/crypto/gc-hmac-sha1-tests: Likewise.
38546         * modules/crypto/gc-md2-tests: Likewise.
38547         * modules/crypto/gc-md4-tests: Likewise.
38548         * modules/crypto/gc-md5-tests: Likewise.
38549         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
38550         * modules/crypto/gc-rijndael-tests: Likewise.
38551         * modules/crypto/gc-sha1-tests: Likewise.
38552         * modules/crypto/gc-tests: Likewise.
38553         * modules/crypto/md2-tests: Likewise.
38554         * modules/crypto/md4-tests: Likewise.
38555         * modules/fcntl-h-tests: Likewise.
38556         * modules/floorf-tests: Likewise.
38557         * modules/floorl-tests: Likewise.
38558         * modules/frexp-nolibm-tests: Likewise.
38559         * modules/frexp-tests: Likewise.
38560         * modules/frexpl-nolibm-tests: Likewise.
38561         * modules/frexpl-tests: Likewise.
38562         * modules/getaddrinfo-tests: Likewise.
38563         * modules/inttypes-tests: Likewise.
38564         * modules/isfinite-tests: Likewise.
38565         * modules/isinf-tests: Likewise.
38566         * modules/ldexpl-tests: Likewise.
38567         * modules/locale-tests: Likewise.
38568         * modules/math-tests: Likewise.
38569         * modules/netdb-tests: Likewise.
38570         * modules/netinet_in-tests: Likewise.
38571         * modules/printf-frexp-tests: Likewise.
38572         * modules/printf-frexpl-tests: Likewise.
38573         * modules/priv-set-tests: Likewise.
38574         * modules/random_r-tests: Likewise.
38575         * modules/round-tests: Likewise.
38576         * modules/roundf-tests: Likewise.
38577         * modules/roundl-tests: Likewise.
38578         * modules/search-tests: Likewise.
38579         * modules/select-tests: Likewise.
38580         * modules/signal-tests: Likewise.
38581         * modules/stdbool-tests: Likewise.
38582         * modules/stddef-tests: Likewise.
38583         * modules/stdint-tests: Likewise.
38584         * modules/stdio-tests: Likewise.
38585         * modules/stdlib-tests: Likewise.
38586         * modules/string-tests: Likewise.
38587         * modules/strings-tests: Likewise.
38588         * modules/sys_select-tests: Likewise.
38589         * modules/sys_socket-tests: Likewise.
38590         * modules/sys_stat-tests: Likewise.
38591         * modules/sys_time-tests: Likewise.
38592         * modules/sys_utsname-tests: Likewise.
38593         * modules/sysexits-tests: Likewise.
38594         * modules/time-tests: Likewise.
38595         * modules/trunc-tests: Likewise.
38596         * modules/truncf-tests: Likewise.
38597         * modules/truncl-tests: Likewise.
38598         * modules/tsearch-tests: Likewise.
38599         * modules/unistd-tests: Likewise.
38600         * modules/wchar-tests: Likewise.
38601         * modules/wctype-tests: Likewise.
38602
38603         tests: fix license on several tests
38604         * tests/test-des.c: Update to GPLv3+.
38605         * tests/test-flock.c: Likewise.
38606         * tests/test-fsync.c: Likewise.
38607         * tests/test-futimens.h: Likewise.
38608         * tests/test-gc-arcfour.c: Likewise.
38609         * tests/test-gc-arctwo.c: Likewise.
38610         * tests/test-gc-des.c: Likewise.
38611         * tests/test-gc-hmac-md5.c: Likewise.
38612         * tests/test-gc-hmac-sha1.c: Likewise.
38613         * tests/test-gc-md2.c: Likewise.
38614         * tests/test-gc-md4.c: Likewise.
38615         * tests/test-gc-md5.c: Likewise.
38616         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38617         * tests/test-gc-rijndael.c: Likewise.
38618         * tests/test-gc-sha1.c: Likewise.
38619         * tests/test-gc.c: Likewise.
38620         * tests/test-getcwd.c: Likewise.
38621         * tests/test-link.c: Likewise.
38622         * tests/test-link.h: Likewise.
38623         * tests/test-lutimens.h: Likewise.
38624         * tests/test-md2.c: Likewise.
38625         * tests/test-md4.c: Likewise.
38626         * tests/test-mkdir.h: Likewise.
38627         * tests/test-rename.c: Likewise.
38628         * tests/test-rename.h: Likewise.
38629         * tests/test-safe-alloc.c: Likewise.
38630         * tests/test-utimens-common.h: Likewise.
38631         * tests/test-utimens.h: Likewise.
38632
38633         maint: sync license texts
38634         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
38635         * doc/gpl-3.0.texi: Revert copyright year update.
38636         * doc/lgpl-3.0.texi: Likewise.
38637
38638 2009-12-29  Jim Meyering  <meyering@redhat.com>
38639
38640         update nearly all FSF copyright year lists to include 2009
38641         The files named by the following are exempted:
38642             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
38643               test -f "$dst" && { echo "$dst"; continue; }
38644               test -d "$dst" || continue
38645               echo "$dst"/$(basename "$src")
38646             done > exempt
38647             git ls-files tests/unictype >> exempt
38648         In the remaining files, convert to all-interval notation if
38649         - there is already at least one year interval like 2000-2003
38650         - the file is maintained by me
38651         - the file is in lib/uni*/, where that style already prevails
38652         Otherwise, use update-copyright's default.
38653
38654 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38655         and Eric Blake  <ebb9@byu.net>
38656
38657         tests: don't require debug system() to pass
38658         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
38659         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38660         * tests/test-unlink.h (test_unlink_func): Likewise.
38661         * tests/test-fstatat.c (main): ...into callers.
38662         * tests/test-lstat.c (main): Likewise.
38663         * tests/test-rmdir.c (main): Likewise.
38664         * tests/test-unlink.c (main): Likewise.
38665         * tests/test-unlinkat.c (main): Likewise.
38666         * tests/test-areadlink-with-size.c (main): Don't require a
38667         debug-only system call to pass, aiding cross-testing to mingw.
38668         * tests/test-areadlink.c (main): Likewise.
38669         * tests/test-areadlinkat-with-size.c (main): Likewise.
38670         * tests/test-areadlinkat.c (main): Likewise.
38671         * tests/test-canonicalize-lgpl.c (main): Likewise.
38672         * tests/test-canonicalize.c (main): Likewise.
38673         * tests/test-chown.c (main): Likewise.
38674         * tests/test-fchownat.c (main): Likewise.
38675         * tests/test-lchown.c (main): Likewise.
38676         * tests/test-fdutimensat.c (main): Likewise.
38677         * tests/test-futimens.c (main): Likewise.
38678         * tests/test-link.c (main): Likewise.
38679         * tests/test-linkat.c (main): Likewise.
38680         * tests/test-mkdir.c (main): Likewise.
38681         * tests/test-mkdirat.c (main): Likewise.
38682         * tests/test-mkfifo.c (main): Likewise.
38683         * tests/test-mkfifoat.c (main): Likewise.
38684         * tests/test-mknod.c (main): Likewise.
38685         * tests/test-readlink.c (main): Likewise.
38686         * tests/test-remove.c (main): Likewise.
38687         * tests/test-rename.c (main): Likewise.
38688         * tests/test-renameat.c (main): Likewise.
38689         * tests/test-symlink.c (main): Likewise.
38690         * tests/test-symlinkat.c (main): Likewise.
38691         * tests/test-utimens.c (main): Likewise.
38692         * tests/test-utimensat.c (main): Likewise.
38693
38694 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38695
38696         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
38697         on $(UNUSED_PARAMETER_H) to avoid build failure.
38698
38699 2009-12-28  Jim Meyering  <meyering@redhat.com>
38700
38701         update-copyright: you may specify a max. line length other than 72
38702         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38703
38704         maint: use consistent FSF copyright line syntax
38705         * lib/posixtm.c: Add missing comma in FSF copyright line.
38706         * lib/posixtm.h: Likewise.
38707         * lib/getugroups.c: Add missing ", Inc.".
38708
38709         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
38710         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
38711         FSF copyright line.  Remove trailing blanks.
38712
38713 2009-12-28  Eric Blake  <ebb9@byu.net>
38714
38715         test-dup2: reduce dependencies
38716         * modules/cloexec (Configure.ac): Set witness.
38717         * modules/dup2-tests (Depends-on): Drop cloexec.
38718         * tests/test-dup2.c (main): Skip portion of test if cloexec module
38719         not present.
38720         Suggested by Bruno Haible.
38721
38722 2009-12-26  Bruno Haible  <bruno@clisp.org>
38723
38724         Remove an unneeded dependency.
38725         * modules/fseterr (Depends-on): Remove dup2.
38726
38727 2009-12-26  Eric Blake  <ebb9@byu.net>
38728
38729         tests: use macros.h in more places
38730         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
38731         (ASSERT_STREAM): Provide default of stderr.
38732         * tests/test-dirent-safer.c: Include macros.h, using alternate
38733         stream for assertions.
38734         * tests/test-dup-safer.c: Likewise.
38735         * tests/test-freopen-safer.c: Likewise.
38736         * tests/test-getopt.c: Likewise.
38737         * tests/test-openat-safer.c: Likewise.
38738         * tests/test-pipe.c: Likewise.
38739         * tests/test-popen-safer.c: Likewise.
38740         * modules/dirent-safer-tests (Files): Include macros.h.
38741         * modules/unistd-safer-tests (Files): Likewise.
38742         * modules/freopen-safer-tests (Files): Likewise.
38743         * modules/getopt-posix-tests (Files): Likewise.
38744         * modules/openat-safer-tests (Files): Likewise.
38745         * modules/pipe-tests (Files): Likewise.
38746
38747 2009-12-26  Bruno Haible  <bruno@clisp.org>
38748
38749         javacomp: Portability fix.
38750         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
38751         that it also works on Solaris.
38752
38753 2009-12-26  Bruno Haible  <bruno@clisp.org>
38754
38755         localename: Fix storage allocation of gl_locale_name_thread's result.
38756         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
38757         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
38758         all platforms that have 'uselocale'.
38759         (gl_locale_name_thread_unsafe): New function, extracted from
38760         gl_locale_name_thread.
38761         (gl_locale_name_thread): Call struniq on all platforms that have
38762         'uselocale'.
38763         * tests/test-localename.c (test_locale_name_thread): Check that the
38764         resulting strings are permanently allocated.
38765         * modules/localename-tests (Depends-on): Add strdup.
38766
38767 2009-12-26  Bruno Haible  <bruno@clisp.org>
38768
38769         * tests/test-localename.c (categories): Fill in the strings.
38770
38771 2009-12-26  Jim Meyering  <meyering@redhat.com>
38772
38773         isdir: complete the removal of m4/isdir.m4
38774         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
38775
38776         isdir: clean up, since at least grep still uses it
38777         * lib/isdir.c: Include "isdir.h".
38778         (S_ISDIR): Remove now-unneeded definition.
38779         * modules/isdir (Files): Add lib/isdir.h.
38780         * lib/isdir.h: New file, with declaration.
38781         * m4/isdir.m4: Remove file -- unneeded.
38782
38783 2009-12-25  Bruno Haible  <bruno@clisp.org>
38784
38785         selinux-h: Make generated .h files standalone.
38786         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
38787         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
38788         * lib/se-selinux.in.h: Likewise.
38789         * modules/selinux-h (Depends-on): Add unused-parameter.
38790         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
38791         selinux/selinux.h and selinux/context.h.
38792         Suggested by Eric Blake.
38793
38794 2009-12-25  Bruno Haible  <bruno@clisp.org>
38795
38796         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
38797         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
38798         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
38799         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
38800         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
38801
38802 2009-12-24  Bruno Haible  <bruno@clisp.org>
38803
38804         openat: Fix warning.
38805         * lib/openat-proc.c: Include <unistd.h>.
38806
38807 2009-12-24  Bruno Haible  <bruno@clisp.org>
38808
38809         New module 'unused-parameter'.
38810         * build-aux/unused-parameter.h: New file, extracted from earlier
38811         gnulib-common.m4.
38812         * modules/unused-parameter: New file.
38813         * lib/unistr.h: Include unused-parameter.h.
38814         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
38815         _GL_UNUSED.
38816         * modules/unistr/base (Depends-on): Add unused-parameter.
38817
38818 2009-12-24  Bruno Haible  <bruno@clisp.org>
38819
38820         Add missing dependencies to 'extensions' module.
38821         * m4/extensions.m4: Add comment.
38822         * modules/accept4 (Depends-on): Add extensions.
38823         * modules/dup3 (Depends-on): Likewise.
38824         * modules/fcntl (Depends-on): Likewise.
38825         * modules/futimens (Depends-on): Likewise.
38826         * modules/mknod (Depends-on): Likewise.
38827         * modules/pipe2 (Depends-on): Likewise.
38828         * modules/stat-time (Depends-on): Likewise.
38829         * modules/strcasestr-simple (Depends-on): Likewise.
38830         * modules/strsignal (Depends-on): Likewise.
38831         * modules/utimensat (Depends-on): Likewise.
38832         * modules/localcharset (Depends-on): Likewise. Needed because of
38833         gl_FCNTL_O_FLAGS.
38834         * modules/wcrtomb (Depends-on): Likewise. Needed because of
38835         AC_TYPE_MBSTATE_T.
38836         * modules/wcsnrtombs (Depends-on): Likewise.
38837         * modules/wcsrtombs (Depends-on): Likewise.
38838
38839 2009-12-24  Bruno Haible  <bruno@clisp.org>
38840
38841         binary-io: Avoid gcc warning due to SET_BINARY.
38842         * lib/binary-io.h (SET_BINARY): Cast the result to void.
38843         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
38844
38845 2009-12-24  Bruno Haible  <bruno@clisp.org>
38846
38847         Avoid future namespace pollution on glibc systems.
38848         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
38849         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
38850         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
38851         glibc systems.
38852
38853 2009-12-24  Bruno Haible  <bruno@clisp.org>
38854
38855         Refactor common macros used in tests.
38856         * tests/macros.h: New file.
38857         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
38858         and/or <stdlib.h>, if appropriate.
38859         (ASSERT, SIZEOF): Remove macros.
38860         * tests/test-areadlink-with-size.c: Likewise.
38861         * tests/test-areadlinkat.c: Likewise.
38862         * tests/test-areadlinkat-with-size.c: Likewise.
38863         * tests/test-argmatch.c: Likewise.
38864         * tests/test-argv-iter.c: Likewise.
38865         * tests/test-array-mergesort.c: Likewise.
38866         * tests/test-array_list.c: Likewise.
38867         * tests/test-array_oset.c: Likewise.
38868         * tests/test-avltree_list.c: Likewise.
38869         * tests/test-avltree_oset.c: Likewise.
38870         * tests/test-avltreehash_list.c: Likewise.
38871         * tests/test-base64.c: Likewise.
38872         * tests/test-binary-io.c: Likewise.
38873         * tests/test-bitrotate.c: Likewise.
38874         * tests/test-btowc.c: Likewise.
38875         * tests/test-byteswap.c: Likewise.
38876         * tests/test-c-ctype.c: Likewise.
38877         * tests/test-c-stack.c: Likewise.
38878         * tests/test-c-strcasecmp.c: Likewise.
38879         * tests/test-c-strcasestr.c: Likewise.
38880         * tests/test-c-strncasecmp.c: Likewise.
38881         * tests/test-c-strstr.c: Likewise.
38882         * tests/test-canonicalize-lgpl.c: Likewise.
38883         * tests/test-canonicalize.c: Likewise.
38884         * tests/test-carray_list.c: Likewise.
38885         * tests/test-ceilf1.c: Likewise.
38886         * tests/test-ceilf2.c: Likewise.
38887         * tests/test-ceill.c: Likewise.
38888         * tests/test-chown.c: Likewise.
38889         * tests/test-cloexec.c: Likewise.
38890         * tests/test-copy-acl.c: Likewise.
38891         * tests/test-copy-file.c: Likewise.
38892         * tests/test-count-one-bits.c: Likewise.
38893         * tests/test-dprintf-posix.c: Likewise.
38894         * tests/test-dup2.c: Likewise.
38895         * tests/test-dup3.c: Likewise.
38896         * tests/test-duplocale.c: Likewise.
38897         * tests/test-fbufmode.c: Likewise.
38898         * tests/test-fchdir.c: Likewise.
38899         * tests/test-fchownat.c: Likewise.
38900         * tests/test-fcntl-safer.c: Likewise.
38901         * tests/test-fcntl.c: Likewise.
38902         * tests/test-fdopendir.c: Likewise.
38903         * tests/test-fdutimensat.c: Likewise.
38904         * tests/test-fflush2.c: Likewise.
38905         * tests/test-file-has-acl.c: Likewise.
38906         * tests/test-filevercmp.c: Likewise.
38907         * tests/test-flock.c: Likewise.
38908         * tests/test-floorf1.c: Likewise.
38909         * tests/test-floorf2.c: Likewise.
38910         * tests/test-floorl.c: Likewise.
38911         * tests/test-fnmatch.c: Likewise.
38912         * tests/test-fopen.h: Likewise.
38913         * tests/test-fpending.c: Likewise.
38914         * tests/test-fprintf-posix.c: Likewise.
38915         * tests/test-fpurge.c: Likewise.
38916         * tests/test-freadable.c: Likewise.
38917         * tests/test-freadahead.c: Likewise.
38918         * tests/test-freading.c: Likewise.
38919         * tests/test-freadptr.c: Likewise.
38920         * tests/test-freadptr2.c: Likewise.
38921         * tests/test-freadseek.c: Likewise.
38922         * tests/test-freopen.c: Likewise.
38923         * tests/test-frexp.c: Likewise.
38924         * tests/test-frexpl.c: Likewise.
38925         * tests/test-fseek.c: Likewise.
38926         * tests/test-fseeko.c: Likewise.
38927         * tests/test-fstatat.c: Likewise.
38928         * tests/test-fstrcmp.c: Likewise.
38929         * tests/test-fsync.c: Likewise.
38930         * tests/test-ftell.c: Likewise.
38931         * tests/test-ftello.c: Likewise.
38932         * tests/test-func.c: Likewise.
38933         * tests/test-futimens.c: Likewise.
38934         * tests/test-fwritable.c: Likewise.
38935         * tests/test-fwriting.c: Likewise.
38936         * tests/test-getcwd.c: Likewise.
38937         * tests/test-getdate.c: Likewise.
38938         * tests/test-getdelim.c: Likewise.
38939         * tests/test-getdtablesize.c: Likewise.
38940         * tests/test-getgroups.c: Likewise.
38941         * tests/test-getline.c: Likewise.
38942         * tests/test-getndelim2.c: Likewise.
38943         * tests/test-glob.c: Likewise.
38944         * tests/test-hash.c: Likewise.
38945         * tests/test-i-ring.c: Likewise.
38946         * tests/test-iconv-utf.c: Likewise.
38947         * tests/test-iconv.c: Likewise.
38948         * tests/test-idpriv-drop.c: Likewise.
38949         * tests/test-idpriv-droptemp.c: Likewise.
38950         * tests/test-inet_ntop.c: Likewise.
38951         * tests/test-inet_pton.c: Likewise.
38952         * tests/test-isblank.c: Likewise.
38953         * tests/test-isfinite.c: Likewise.
38954         * tests/test-isinf.c: Likewise.
38955         * tests/test-isnan.c: Likewise.
38956         * tests/test-isnand.h: Likewise.
38957         * tests/test-isnanf.h: Likewise.
38958         * tests/test-isnanl.h: Likewise.
38959         * tests/test-lchown.c: Likewise.
38960         * tests/test-ldexpl.c: Likewise.
38961         * tests/test-link.c: Likewise.
38962         * tests/test-linkat.c: Likewise.
38963         * tests/test-linked_list.c: Likewise.
38964         * tests/test-linkedhash_list.c: Likewise.
38965         * tests/test-localename.c: Likewise.
38966         * tests/test-lseek.c: Likewise.
38967         * tests/test-lstat.c: Likewise.
38968         * tests/test-mbmemcasecmp.c: Likewise.
38969         * tests/test-mbmemcasecoll.c: Likewise.
38970         * tests/test-mbrtowc.c: Likewise.
38971         * tests/test-mbscasecmp.c: Likewise.
38972         * tests/test-mbscasestr1.c: Likewise.
38973         * tests/test-mbscasestr2.c: Likewise.
38974         * tests/test-mbscasestr3.c: Likewise.
38975         * tests/test-mbscasestr4.c: Likewise.
38976         * tests/test-mbschr.c: Likewise.
38977         * tests/test-mbscspn.c: Likewise.
38978         * tests/test-mbsinit.c: Likewise.
38979         * tests/test-mbsncasecmp.c: Likewise.
38980         * tests/test-mbsnrtowcs.c: Likewise.
38981         * tests/test-mbspbrk.c: Likewise.
38982         * tests/test-mbspcasecmp.c: Likewise.
38983         * tests/test-mbsrchr.c: Likewise.
38984         * tests/test-mbsrtowcs.c: Likewise.
38985         * tests/test-mbsspn.c: Likewise.
38986         * tests/test-mbsstr1.c: Likewise.
38987         * tests/test-mbsstr2.c: Likewise.
38988         * tests/test-mbsstr3.c: Likewise.
38989         * tests/test-memchr.c: Likewise.
38990         * tests/test-memchr2.c: Likewise.
38991         * tests/test-memcmp.c: Likewise.
38992         * tests/test-memmem.c: Likewise.
38993         * tests/test-memrchr.c: Likewise.
38994         * tests/test-mkdir.c: Likewise.
38995         * tests/test-mkdirat.c: Likewise.
38996         * tests/test-mkfifo.c: Likewise.
38997         * tests/test-mkfifoat.c: Likewise.
38998         * tests/test-mknod.c: Likewise.
38999         * tests/test-nanosleep.c: Likewise.
39000         * tests/test-nl_langinfo.c: Likewise.
39001         * tests/test-obstack-printf.c: Likewise.
39002         * tests/test-open.c: Likewise.
39003         * tests/test-openat.c: Likewise.
39004         * tests/test-pipe-filter-gi1.c: Likewise.
39005         * tests/test-pipe-filter-gi2-main.c: Likewise.
39006         * tests/test-pipe-filter-ii1.c: Likewise.
39007         * tests/test-pipe-filter-ii2-main.c: Likewise.
39008         * tests/test-pipe2.c: Likewise.
39009         * tests/test-popen.h: Likewise.
39010         * tests/test-posixtm.c: Likewise.
39011         * tests/test-pread.c: Likewise.
39012         * tests/test-printf-frexp.c: Likewise.
39013         * tests/test-printf-frexpl.c: Likewise.
39014         * tests/test-printf-posix.c: Likewise.
39015         * tests/test-priv-set.c: Likewise.
39016         * tests/test-quotearg.c: Likewise.
39017         * tests/test-random_r.c: Likewise.
39018         * tests/test-rawmemchr.c: Likewise.
39019         * tests/test-rbtree_list.c: Likewise.
39020         * tests/test-rbtree_oset.c: Likewise.
39021         * tests/test-rbtreehash_list.c: Likewise.
39022         * tests/test-readlink.c: Likewise.
39023         * tests/test-remove.c: Likewise.
39024         * tests/test-rename.c: Likewise.
39025         * tests/test-renameat.c: Likewise.
39026         * tests/test-rmdir.c: Likewise.
39027         * tests/test-round1.c: Likewise.
39028         * tests/test-roundf1.c: Likewise.
39029         * tests/test-roundl.c: Likewise.
39030         * tests/test-safe-alloc.c: Likewise.
39031         * tests/test-sameacls.c: Likewise.
39032         * tests/test-set-mode-acl.c: Likewise.
39033         * tests/test-setenv.c: Likewise.
39034         * tests/test-sigaction.c: Likewise.
39035         * tests/test-signbit.c: Likewise.
39036         * tests/test-sleep.c: Likewise.
39037         * tests/test-snprintf-posix.c: Likewise.
39038         * tests/test-snprintf.c: Likewise.
39039         * tests/test-sprintf-posix.c: Likewise.
39040         * tests/test-stat-time.c: Likewise.
39041         * tests/test-stat.c: Likewise.
39042         * tests/test-strcasestr.c: Likewise.
39043         * tests/test-strchrnul.c: Likewise.
39044         * tests/test-strerror.c: Likewise.
39045         * tests/test-striconv.c: Likewise.
39046         * tests/test-striconveh.c: Likewise.
39047         * tests/test-striconveha.c: Likewise.
39048         * tests/test-strsignal.c: Likewise.
39049         * tests/test-strstr.c: Likewise.
39050         * tests/test-strtod.c: Likewise.
39051         * tests/test-strverscmp.c: Likewise.
39052         * tests/test-symlink.c: Likewise.
39053         * tests/test-symlinkat.c: Likewise.
39054         * tests/test-trunc1.c: Likewise.
39055         * tests/test-trunc2.c: Likewise.
39056         * tests/test-truncf1.c: Likewise.
39057         * tests/test-truncf2.c: Likewise.
39058         * tests/test-truncl.c: Likewise.
39059         * tests/test-uname.c: Likewise.
39060         * tests/test-unlink.c: Likewise.
39061         * tests/test-unlinkat.c: Likewise.
39062         * tests/test-unsetenv.c: Likewise.
39063         * tests/test-usleep.c: Likewise.
39064         * tests/test-utimens.c: Likewise.
39065         * tests/test-utimensat.c: Likewise.
39066         * tests/test-vasnprintf-posix.c: Likewise.
39067         * tests/test-vasnprintf-posix2.c: Likewise.
39068         * tests/test-vasnprintf.c: Likewise.
39069         * tests/test-vasprintf-posix.c: Likewise.
39070         * tests/test-vasprintf.c: Likewise.
39071         * tests/test-vdprintf-posix.c: Likewise.
39072         * tests/test-vfprintf-posix.c: Likewise.
39073         * tests/test-vprintf-posix.c: Likewise.
39074         * tests/test-vsnprintf-posix.c: Likewise.
39075         * tests/test-vsnprintf.c: Likewise.
39076         * tests/test-vsprintf-posix.c: Likewise.
39077         * tests/test-wcrtomb.c: Likewise.
39078         * tests/test-wcsnrtombs.c: Likewise.
39079         * tests/test-wcsrtombs.c: Likewise.
39080         * tests/test-wctype.c: Likewise.
39081         * tests/test-wcwidth.c: Likewise.
39082         * tests/test-xfprintf-posix.c: Likewise.
39083         * tests/test-xmemdup0.c: Likewise.
39084         * tests/test-xprintf-posix.c: Likewise.
39085         * tests/test-xvasprintf.c: Likewise.
39086         * tests/unicase/test-locale-language.c: Likewise.
39087         * tests/unicase/test-mapping-part1.h: Likewise.
39088         * tests/unicase/test-predicate-part1.h: Likewise.
39089         * tests/unicase/test-u8-casecmp.c: Likewise.
39090         * tests/unicase/test-u8-casecoll.c: Likewise.
39091         * tests/unicase/test-u8-casefold.c: Likewise.
39092         * tests/unicase/test-u8-is-cased.c: Likewise.
39093         * tests/unicase/test-u8-is-casefolded.c: Likewise.
39094         * tests/unicase/test-u8-is-lowercase.c: Likewise.
39095         * tests/unicase/test-u8-is-titlecase.c: Likewise.
39096         * tests/unicase/test-u8-is-uppercase.c: Likewise.
39097         * tests/unicase/test-u8-tolower.c: Likewise.
39098         * tests/unicase/test-u8-totitle.c: Likewise.
39099         * tests/unicase/test-u8-toupper.c: Likewise.
39100         * tests/unicase/test-u16-casecmp.c: Likewise.
39101         * tests/unicase/test-u16-casecoll.c: Likewise.
39102         * tests/unicase/test-u16-casefold.c: Likewise.
39103         * tests/unicase/test-u16-is-cased.c: Likewise.
39104         * tests/unicase/test-u16-is-casefolded.c: Likewise.
39105         * tests/unicase/test-u16-is-lowercase.c: Likewise.
39106         * tests/unicase/test-u16-is-titlecase.c: Likewise.
39107         * tests/unicase/test-u16-is-uppercase.c: Likewise.
39108         * tests/unicase/test-u16-tolower.c: Likewise.
39109         * tests/unicase/test-u16-totitle.c: Likewise.
39110         * tests/unicase/test-u16-toupper.c: Likewise.
39111         * tests/unicase/test-u32-casecmp.c: Likewise.
39112         * tests/unicase/test-u32-casecoll.c: Likewise.
39113         * tests/unicase/test-u32-casefold.c: Likewise.
39114         * tests/unicase/test-u32-is-cased.c: Likewise.
39115         * tests/unicase/test-u32-is-casefolded.c: Likewise.
39116         * tests/unicase/test-u32-is-lowercase.c: Likewise.
39117         * tests/unicase/test-u32-is-titlecase.c: Likewise.
39118         * tests/unicase/test-u32-is-uppercase.c: Likewise.
39119         * tests/unicase/test-u32-tolower.c: Likewise.
39120         * tests/unicase/test-u32-totitle.c: Likewise.
39121         * tests/unicase/test-u32-toupper.c: Likewise.
39122         * tests/unicase/test-ulc-casecmp.c: Likewise.
39123         * tests/unicase/test-ulc-casecoll.c: Likewise.
39124         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39125         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39126         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39127         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39128         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39129         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39130         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39131         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39132         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39133         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39134         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39135         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39136         * tests/unictype/test-bidi_byname.c: Likewise.
39137         * tests/unictype/test-bidi_name.c: Likewise.
39138         * tests/unictype/test-bidi_of.c: Likewise.
39139         * tests/unictype/test-bidi_test.c: Likewise.
39140         * tests/unictype/test-block_list.c: Likewise.
39141         * tests/unictype/test-block_of.c: Likewise.
39142         * tests/unictype/test-block_test.c: Likewise.
39143         * tests/unictype/test-categ_and.c: Likewise.
39144         * tests/unictype/test-categ_and_not.c: Likewise.
39145         * tests/unictype/test-categ_byname.c: Likewise.
39146         * tests/unictype/test-categ_name.c: Likewise.
39147         * tests/unictype/test-categ_none.c: Likewise.
39148         * tests/unictype/test-categ_of.c: Likewise.
39149         * tests/unictype/test-categ_or.c: Likewise.
39150         * tests/unictype/test-categ_test_withtable.c: Likewise.
39151         * tests/unictype/test-combining.c: Likewise.
39152         * tests/unictype/test-decdigit.c: Likewise.
39153         * tests/unictype/test-digit.c: Likewise.
39154         * tests/unictype/test-mirror.c: Likewise.
39155         * tests/unictype/test-numeric.c: Likewise.
39156         * tests/unictype/test-pr_byname.c: Likewise.
39157         * tests/unictype/test-pr_test.c: Likewise.
39158         * tests/unictype/test-predicate-part1.h: Likewise.
39159         * tests/unictype/test-scripts.c: Likewise.
39160         * tests/unictype/test-sy_c_ident.c: Likewise.
39161         * tests/unictype/test-sy_java_ident.c: Likewise.
39162         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
39163         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
39164         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
39165         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
39166         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
39167         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
39168         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
39169         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
39170         * tests/uninorm/test-canonical-decomposition.c: Likewise.
39171         * tests/uninorm/test-compat-decomposition.c: Likewise.
39172         * tests/uninorm/test-composition.c: Likewise.
39173         * tests/uninorm/test-decomposing-form.c: Likewise.
39174         * tests/uninorm/test-decomposition.c: Likewise.
39175         * tests/uninorm/test-u8-nfc.c: Likewise.
39176         * tests/uninorm/test-u8-nfd.c: Likewise.
39177         * tests/uninorm/test-u8-nfkc.c: Likewise.
39178         * tests/uninorm/test-u8-nfkd.c: Likewise.
39179         * tests/uninorm/test-u8-normcmp.c: Likewise.
39180         * tests/uninorm/test-u8-normcoll.c: Likewise.
39181         * tests/uninorm/test-u16-nfc.c: Likewise.
39182         * tests/uninorm/test-u16-nfd.c: Likewise.
39183         * tests/uninorm/test-u16-nfkc.c: Likewise.
39184         * tests/uninorm/test-u16-nfkd.c: Likewise.
39185         * tests/uninorm/test-u16-normcmp.c: Likewise.
39186         * tests/uninorm/test-u16-normcoll.c: Likewise.
39187         * tests/uninorm/test-u32-nfc.c: Likewise.
39188         * tests/uninorm/test-u32-nfd.c: Likewise.
39189         * tests/uninorm/test-u32-nfkc.c: Likewise.
39190         * tests/uninorm/test-u32-nfkd.c: Likewise.
39191         * tests/uninorm/test-u32-normalize-big.c: Likewise.
39192         * tests/uninorm/test-u32-normcmp.c: Likewise.
39193         * tests/uninorm/test-u32-normcoll.c: Likewise.
39194         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
39195         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39196         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39197         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39198         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39199         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39200         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39201         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39202         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39203         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39204         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39205         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39206         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39207         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39208         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39209         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39210         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39211         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39212         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39213         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39214         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39215         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39216         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39217         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39218         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39219         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39220         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39221         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39222         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39223         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
39224         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
39225         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
39226         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
39227         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39228         * tests/uniwidth/test-u8-width.c: Likewise.
39229         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39230         * tests/uniwidth/test-u16-width.c: Likewise.
39231         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39232         * tests/uniwidth/test-u32-width.c: Likewise.
39233         * tests/uniwidth/test-uc_width.c: Likewise.
39234         * tests/uniwidth/test-uc_width2.c: Likewise.
39235         * modules/acl-tests (Files): Add tests/macros.h.
39236         * modules/areadlink-tests (Files): Likewise.
39237         * modules/areadlink-with-size-tests (Files): Likewise.
39238         * modules/areadlinkat-tests (Files): Likewise.
39239         * modules/areadlinkat-with-size-tests (Files): Likewise.
39240         * modules/argmatch-tests (Files): Likewise.
39241         * modules/argv-iter-tests (Files): Likewise.
39242         * modules/array-list-tests (Files): Likewise.
39243         * modules/array-mergesort-tests (Files): Likewise.
39244         * modules/array-oset-tests (Files): Likewise.
39245         * modules/avltree-list-tests (Files): Likewise.
39246         * modules/avltree-oset-tests (Files): Likewise.
39247         * modules/avltreehash-list-tests (Files): Likewise.
39248         * modules/base64-tests (Files): Likewise.
39249         * modules/binary-io-tests (Files): Likewise.
39250         * modules/bitrotate-tests (Files): Likewise.
39251         * modules/btowc-tests (Files): Likewise.
39252         * modules/byteswap-tests (Files): Likewise.
39253         * modules/c-ctype-tests (Files): Likewise.
39254         * modules/c-stack-tests (Files): Likewise.
39255         * modules/c-strcase-tests (Files): Likewise.
39256         * modules/c-strcasestr-tests (Files): Likewise.
39257         * modules/c-strstr-tests (Files): Likewise.
39258         * modules/canonicalize-lgpl-tests (Files): Likewise.
39259         * modules/canonicalize-tests (Files): Likewise.
39260         * modules/carray-list-tests (Files): Likewise.
39261         * modules/ceilf-tests (Files): Likewise.
39262         * modules/ceill-tests (Files): Likewise.
39263         * modules/chown-tests (Files): Likewise.
39264         * modules/cloexec-tests (Files): Likewise.
39265         * modules/copy-file-tests (Files): Likewise.
39266         * modules/count-one-bits-tests (Files): Likewise.
39267         * modules/dprintf-posix-tests (Files): Likewise.
39268         * modules/dup2-tests (Files): Likewise.
39269         * modules/dup3-tests (Files): Likewise.
39270         * modules/duplocale-tests (Files): Likewise.
39271         * modules/fbufmode-tests (Files): Likewise.
39272         * modules/fchdir-tests (Files): Likewise.
39273         * modules/fcntl-safer-tests (Files): Likewise.
39274         * modules/fcntl-tests (Files): Likewise.
39275         * modules/fdopendir-tests (Files): Likewise.
39276         * modules/fdutimensat-tests (Files): Likewise.
39277         * modules/fflush-tests (Files): Likewise.
39278         * modules/filevercmp-tests (Files): Likewise.
39279         * modules/flock-tests (Files): Likewise.
39280         * modules/floorf-tests (Files): Likewise.
39281         * modules/floorl-tests (Files): Likewise.
39282         * modules/fnmatch-tests (Files): Likewise.
39283         * modules/fopen-safer-tests (Files): Likewise.
39284         * modules/fopen-tests (Files): Likewise.
39285         * modules/fpending-tests (Files): Likewise.
39286         * modules/fprintf-posix-tests (Files): Likewise.
39287         * modules/fpurge-tests (Files): Likewise.
39288         * modules/freadable-tests (Files): Likewise.
39289         * modules/freadahead-tests (Files): Likewise.
39290         * modules/freading-tests (Files): Likewise.
39291         * modules/freadptr-tests (Files): Likewise.
39292         * modules/freadseek-tests (Files): Likewise.
39293         * modules/freopen-tests (Files): Likewise.
39294         * modules/frexp-nolibm-tests (Files): Likewise.
39295         * modules/frexp-tests (Files): Likewise.
39296         * modules/frexpl-nolibm-tests (Files): Likewise.
39297         * modules/frexpl-tests (Files): Likewise.
39298         * modules/fseek-tests (Files): Likewise.
39299         * modules/fseeko-tests (Files): Likewise.
39300         * modules/fstrcmp-tests (Files): Likewise.
39301         * modules/fsync-tests (Files): Likewise.
39302         * modules/ftell-tests (Files): Likewise.
39303         * modules/ftello-tests (Files): Likewise.
39304         * modules/func-tests (Files): Likewise.
39305         * modules/futimens-tests (Files): Likewise.
39306         * modules/fwritable-tests (Files): Likewise.
39307         * modules/fwriting-tests (Files): Likewise.
39308         * modules/getcwd-tests (Files): Likewise.
39309         * modules/getdate-tests (Files): Likewise.
39310         * modules/getdelim-tests (Files): Likewise.
39311         * modules/getdtablesize-tests (Files): Likewise.
39312         * modules/getgroups-tests (Files): Likewise.
39313         * modules/getline-tests (Files): Likewise.
39314         * modules/getndelim2-tests (Files): Likewise.
39315         * modules/glob-tests (Files): Likewise.
39316         * modules/hash-tests (Files): Likewise.
39317         * modules/i-ring-tests (Files): Likewise.
39318         * modules/iconv-tests (Files): Likewise.
39319         * modules/iconv_open-utf-tests (Files): Likewise.
39320         * modules/idpriv-drop-tests (Files): Likewise.
39321         * modules/idpriv-droptemp-tests (Files): Likewise.
39322         * modules/inet_ntop-tests (Files): Likewise.
39323         * modules/inet_pton-tests (Files): Likewise.
39324         * modules/isblank-tests (Files): Likewise.
39325         * modules/isfinite-tests (Files): Likewise.
39326         * modules/isinf-tests (Files): Likewise.
39327         * modules/isnan-tests (Files): Likewise.
39328         * modules/isnand-nolibm-tests (Files): Likewise.
39329         * modules/isnand-tests (Files): Likewise.
39330         * modules/isnanf-nolibm-tests (Files): Likewise.
39331         * modules/isnanf-tests (Files): Likewise.
39332         * modules/isnanl-nolibm-tests (Files): Likewise.
39333         * modules/isnanl-tests (Files): Likewise.
39334         * modules/lchown-tests (Files): Likewise.
39335         * modules/ldexpl-tests (Files): Likewise.
39336         * modules/link-tests (Files): Likewise.
39337         * modules/linkat-tests (Files): Likewise.
39338         * modules/linked-list-tests (Files): Likewise.
39339         * modules/linkedhash-list-tests (Files): Likewise.
39340         * modules/localename-tests (Files): Likewise.
39341         * modules/lseek-tests (Files): Likewise.
39342         * modules/lstat-tests (Files): Likewise.
39343         * modules/mbmemcasecmp-tests (Files): Likewise.
39344         * modules/mbmemcasecoll-tests (Files): Likewise.
39345         * modules/mbrtowc-tests (Files): Likewise.
39346         * modules/mbscasecmp-tests (Files): Likewise.
39347         * modules/mbscasestr-tests (Files): Likewise.
39348         * modules/mbschr-tests (Files): Likewise.
39349         * modules/mbscspn-tests (Files): Likewise.
39350         * modules/mbsinit-tests (Files): Likewise.
39351         * modules/mbsncasecmp-tests (Files): Likewise.
39352         * modules/mbsnrtowcs-tests (Files): Likewise.
39353         * modules/mbspbrk-tests (Files): Likewise.
39354         * modules/mbspcasecmp-tests (Files): Likewise.
39355         * modules/mbsrchr-tests (Files): Likewise.
39356         * modules/mbsrtowcs-tests (Files): Likewise.
39357         * modules/mbsspn-tests (Files): Likewise.
39358         * modules/mbsstr-tests (Files): Likewise.
39359         * modules/memchr-tests (Files): Likewise.
39360         * modules/memchr2-tests (Files): Likewise.
39361         * modules/memcmp-tests (Files): Likewise.
39362         * modules/memmem-tests (Files): Likewise.
39363         * modules/memrchr-tests (Files): Likewise.
39364         * modules/mkdir-tests (Files): Likewise.
39365         * modules/mkfifo-tests (Files): Likewise.
39366         * modules/mkfifoat-tests (Files): Likewise.
39367         * modules/mknod-tests (Files): Likewise.
39368         * modules/nanosleep-tests (Files): Likewise.
39369         * modules/nl_langinfo-tests (Files): Likewise.
39370         * modules/obstack-printf-tests (Files): Likewise.
39371         * modules/open-tests (Files): Likewise.
39372         * modules/openat-tests (Files): Likewise.
39373         * modules/pipe-filter-gi-tests (Files): Likewise.
39374         * modules/pipe-filter-ii-tests (Files): Likewise.
39375         * modules/pipe2-tests (Files): Likewise.
39376         * modules/popen-safer-tests (Files): Likewise.
39377         * modules/popen-tests (Files): Likewise.
39378         * modules/posixtm-tests (Files): Likewise.
39379         * modules/pread-tests (Files): Likewise.
39380         * modules/printf-frexp-tests (Files): Likewise.
39381         * modules/printf-frexpl-tests (Files): Likewise.
39382         * modules/printf-posix-tests (Files): Likewise.
39383         * modules/priv-set-tests (Files): Likewise.
39384         * modules/quotearg-tests (Files): Likewise.
39385         * modules/random_r-tests (Files): Likewise.
39386         * modules/rawmemchr-tests (Files): Likewise.
39387         * modules/rbtree-list-tests (Files): Likewise.
39388         * modules/rbtree-oset-tests (Files): Likewise.
39389         * modules/rbtreehash-list-tests (Files): Likewise.
39390         * modules/readlink-tests (Files): Likewise.
39391         * modules/remove-tests (Files): Likewise.
39392         * modules/rename-tests (Files): Likewise.
39393         * modules/renameat-tests (Files): Likewise.
39394         * modules/rmdir-tests (Files): Likewise.
39395         * modules/round-tests (Files): Likewise.
39396         * modules/roundf-tests (Files): Likewise.
39397         * modules/roundl-tests (Files): Likewise.
39398         * modules/safe-alloc-tests (Files): Likewise.
39399         * modules/setenv-tests (Files): Likewise.
39400         * modules/sigaction-tests (Files): Likewise.
39401         * modules/signbit-tests (Files): Likewise.
39402         * modules/sleep-tests (Files): Likewise.
39403         * modules/snprintf-posix-tests (Files): Likewise.
39404         * modules/snprintf-tests (Files): Likewise.
39405         * modules/sprintf-posix-tests (Files): Likewise.
39406         * modules/stat-tests (Files): Likewise.
39407         * modules/stat-time-tests (Files): Likewise.
39408         * modules/strcasestr-tests (Files): Likewise.
39409         * modules/strchrnul-tests (Files): Likewise.
39410         * modules/strerror-tests (Files): Likewise.
39411         * modules/striconv-tests (Files): Likewise.
39412         * modules/striconveh-tests (Files): Likewise.
39413         * modules/striconveha-tests (Files): Likewise.
39414         * modules/strsignal-tests (Files): Likewise.
39415         * modules/strstr-tests (Files): Likewise.
39416         * modules/strtod-tests (Files): Likewise.
39417         * modules/strverscmp-tests (Files): Likewise.
39418         * modules/symlink-tests (Files): Likewise.
39419         * modules/symlinkat-tests (Files): Likewise.
39420         * modules/trunc-tests (Files): Likewise.
39421         * modules/truncf-tests (Files): Likewise.
39422         * modules/truncl-tests (Files): Likewise.
39423         * modules/uname-tests (Files): Likewise.
39424         * modules/unicase/cased-tests (Files): Likewise.
39425         * modules/unicase/ignorable-tests (Files): Likewise.
39426         * modules/unicase/locale-language-tests (Files): Likewise.
39427         * modules/unicase/tolower-tests (Files): Likewise.
39428         * modules/unicase/totitle-tests (Files): Likewise.
39429         * modules/unicase/toupper-tests (Files): Likewise.
39430         * modules/unicase/u8-casecmp-tests (Files): Likewise.
39431         * modules/unicase/u8-casecoll-tests (Files): Likewise.
39432         * modules/unicase/u8-casefold-tests (Files): Likewise.
39433         * modules/unicase/u8-is-cased-tests (Files): Likewise.
39434         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
39435         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
39436         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
39437         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
39438         * modules/unicase/u8-tolower-tests (Files): Likewise.
39439         * modules/unicase/u8-totitle-tests (Files): Likewise.
39440         * modules/unicase/u8-toupper-tests (Files): Likewise.
39441         * modules/unicase/u16-casecmp-tests (Files): Likewise.
39442         * modules/unicase/u16-casecoll-tests (Files): Likewise.
39443         * modules/unicase/u16-casefold-tests (Files): Likewise.
39444         * modules/unicase/u16-is-cased-tests (Files): Likewise.
39445         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
39446         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
39447         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
39448         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
39449         * modules/unicase/u16-tolower-tests (Files): Likewise.
39450         * modules/unicase/u16-totitle-tests (Files): Likewise.
39451         * modules/unicase/u16-toupper-tests (Files): Likewise.
39452         * modules/unicase/u32-casecmp-tests (Files): Likewise.
39453         * modules/unicase/u32-casecoll-tests (Files): Likewise.
39454         * modules/unicase/u32-casefold-tests (Files): Likewise.
39455         * modules/unicase/u32-is-cased-tests (Files): Likewise.
39456         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
39457         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
39458         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
39459         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
39460         * modules/unicase/u32-tolower-tests (Files): Likewise.
39461         * modules/unicase/u32-totitle-tests (Files): Likewise.
39462         * modules/unicase/u32-toupper-tests (Files): Likewise.
39463         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
39464         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
39465         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
39466         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
39467         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
39468         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
39469         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
39470         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
39471         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
39472         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
39473         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
39474         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
39475         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
39476         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
39477         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
39478         * modules/unictype/bidicategory-name-tests (Files): Likewise.
39479         * modules/unictype/bidicategory-of-tests (Files): Likewise.
39480         * modules/unictype/bidicategory-test-tests (Files): Likewise.
39481         * modules/unictype/block-list-tests (Files): Likewise.
39482         * modules/unictype/block-of-tests (Files): Likewise.
39483         * modules/unictype/block-test-tests (Files): Likewise.
39484         * modules/unictype/category-C-tests (Files): Likewise.
39485         * modules/unictype/category-Cc-tests (Files): Likewise.
39486         * modules/unictype/category-Cf-tests (Files): Likewise.
39487         * modules/unictype/category-Cn-tests (Files): Likewise.
39488         * modules/unictype/category-Co-tests (Files): Likewise.
39489         * modules/unictype/category-Cs-tests (Files): Likewise.
39490         * modules/unictype/category-L-tests (Files): Likewise.
39491         * modules/unictype/category-Ll-tests (Files): Likewise.
39492         * modules/unictype/category-Lm-tests (Files): Likewise.
39493         * modules/unictype/category-Lo-tests (Files): Likewise.
39494         * modules/unictype/category-Lt-tests (Files): Likewise.
39495         * modules/unictype/category-Lu-tests (Files): Likewise.
39496         * modules/unictype/category-M-tests (Files): Likewise.
39497         * modules/unictype/category-Mc-tests (Files): Likewise.
39498         * modules/unictype/category-Me-tests (Files): Likewise.
39499         * modules/unictype/category-Mn-tests (Files): Likewise.
39500         * modules/unictype/category-N-tests (Files): Likewise.
39501         * modules/unictype/category-Nd-tests (Files): Likewise.
39502         * modules/unictype/category-Nl-tests (Files): Likewise.
39503         * modules/unictype/category-No-tests (Files): Likewise.
39504         * modules/unictype/category-P-tests (Files): Likewise.
39505         * modules/unictype/category-Pc-tests (Files): Likewise.
39506         * modules/unictype/category-Pd-tests (Files): Likewise.
39507         * modules/unictype/category-Pe-tests (Files): Likewise.
39508         * modules/unictype/category-Pf-tests (Files): Likewise.
39509         * modules/unictype/category-Pi-tests (Files): Likewise.
39510         * modules/unictype/category-Po-tests (Files): Likewise.
39511         * modules/unictype/category-Ps-tests (Files): Likewise.
39512         * modules/unictype/category-S-tests (Files): Likewise.
39513         * modules/unictype/category-Sc-tests (Files): Likewise.
39514         * modules/unictype/category-Sk-tests (Files): Likewise.
39515         * modules/unictype/category-Sm-tests (Files): Likewise.
39516         * modules/unictype/category-So-tests (Files): Likewise.
39517         * modules/unictype/category-Z-tests (Files): Likewise.
39518         * modules/unictype/category-Zl-tests (Files): Likewise.
39519         * modules/unictype/category-Zp-tests (Files): Likewise.
39520         * modules/unictype/category-Zs-tests (Files): Likewise.
39521         * modules/unictype/category-and-not-tests (Files): Likewise.
39522         * modules/unictype/category-and-tests (Files): Likewise.
39523         * modules/unictype/category-byname-tests (Files): Likewise.
39524         * modules/unictype/category-name-tests (Files): Likewise.
39525         * modules/unictype/category-none-tests (Files): Likewise.
39526         * modules/unictype/category-of-tests (Files): Likewise.
39527         * modules/unictype/category-or-tests (Files): Likewise.
39528         * modules/unictype/category-test-withtable-tests (Files): Likewise.
39529         * modules/unictype/combining-class-tests (Files): Likewise.
39530         * modules/unictype/ctype-alnum-tests (Files): Likewise.
39531         * modules/unictype/ctype-alpha-tests (Files): Likewise.
39532         * modules/unictype/ctype-blank-tests (Files): Likewise.
39533         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
39534         * modules/unictype/ctype-digit-tests (Files): Likewise.
39535         * modules/unictype/ctype-graph-tests (Files): Likewise.
39536         * modules/unictype/ctype-lower-tests (Files): Likewise.
39537         * modules/unictype/ctype-print-tests (Files): Likewise.
39538         * modules/unictype/ctype-punct-tests (Files): Likewise.
39539         * modules/unictype/ctype-space-tests (Files): Likewise.
39540         * modules/unictype/ctype-upper-tests (Files): Likewise.
39541         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
39542         * modules/unictype/decimal-digit-tests (Files): Likewise.
39543         * modules/unictype/digit-tests (Files): Likewise.
39544         * modules/unictype/mirror-tests (Files): Likewise.
39545         * modules/unictype/numeric-tests (Files): Likewise.
39546         * modules/unictype/property-alphabetic-tests (Files): Likewise.
39547         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
39548         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
39549         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
39550         Likewise.
39551         * modules/unictype/property-bidi-block-separator-tests (Files):
39552         Likewise.
39553         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
39554         Likewise.
39555         * modules/unictype/property-bidi-common-separator-tests (Files):
39556         Likewise.
39557         * modules/unictype/property-bidi-control-tests (Files): Likewise.
39558         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
39559         Likewise.
39560         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
39561         Likewise.
39562         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
39563         Likewise.
39564         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
39565         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
39566         Likewise.
39567         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
39568         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
39569         Likewise.
39570         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
39571         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
39572         * modules/unictype/property-bidi-segment-separator-tests (Files):
39573         Likewise.
39574         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
39575         * modules/unictype/property-byname-tests (Files): Likewise.
39576         * modules/unictype/property-combining-tests (Files): Likewise.
39577         * modules/unictype/property-composite-tests (Files): Likewise.
39578         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
39579         * modules/unictype/property-dash-tests (Files): Likewise.
39580         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
39581         * modules/unictype/property-default-ignorable-code-point-tests (Files):
39582         Likewise.
39583         * modules/unictype/property-deprecated-tests (Files): Likewise.
39584         * modules/unictype/property-diacritic-tests (Files): Likewise.
39585         * modules/unictype/property-extender-tests (Files): Likewise.
39586         * modules/unictype/property-format-control-tests (Files): Likewise.
39587         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
39588         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
39589         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
39590         * modules/unictype/property-hex-digit-tests (Files): Likewise.
39591         * modules/unictype/property-hyphen-tests (Files): Likewise.
39592         * modules/unictype/property-id-continue-tests (Files): Likewise.
39593         * modules/unictype/property-id-start-tests (Files): Likewise.
39594         * modules/unictype/property-ideographic-tests (Files): Likewise.
39595         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
39596         * modules/unictype/property-ids-trinary-operator-tests (Files):
39597         Likewise.
39598         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
39599         * modules/unictype/property-iso-control-tests (Files): Likewise.
39600         * modules/unictype/property-join-control-tests (Files): Likewise.
39601         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
39602         * modules/unictype/property-line-separator-tests (Files): Likewise.
39603         * modules/unictype/property-logical-order-exception-tests (Files):
39604         Likewise.
39605         * modules/unictype/property-lowercase-tests (Files): Likewise.
39606         * modules/unictype/property-math-tests (Files): Likewise.
39607         * modules/unictype/property-non-break-tests (Files): Likewise.
39608         * modules/unictype/property-not-a-character-tests (Files): Likewise.
39609         * modules/unictype/property-numeric-tests (Files): Likewise.
39610         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
39611         * modules/unictype/property-other-default-ignorable-code-point-tests
39612         (Files): Likewise.
39613         * modules/unictype/property-other-grapheme-extend-tests (Files):
39614         Likewise.
39615         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
39616         * modules/unictype/property-other-id-start-tests (Files): Likewise.
39617         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
39618         * modules/unictype/property-other-math-tests (Files): Likewise.
39619         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
39620         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
39621         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
39622         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
39623         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
39624         * modules/unictype/property-private-use-tests (Files): Likewise.
39625         * modules/unictype/property-punctuation-tests (Files): Likewise.
39626         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
39627         * modules/unictype/property-radical-tests (Files): Likewise.
39628         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
39629         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
39630         * modules/unictype/property-space-tests (Files): Likewise.
39631         * modules/unictype/property-terminal-punctuation-tests (Files):
39632         Likewise.
39633         * modules/unictype/property-test-tests (Files): Likewise.
39634         * modules/unictype/property-titlecase-tests (Files): Likewise.
39635         * modules/unictype/property-unassigned-code-value-tests (Files):
39636         Likewise.
39637         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
39638         * modules/unictype/property-uppercase-tests (Files): Likewise.
39639         * modules/unictype/property-variation-selector-tests (Files): Likewise.
39640         * modules/unictype/property-white-space-tests (Files): Likewise.
39641         * modules/unictype/property-xid-continue-tests (Files): Likewise.
39642         * modules/unictype/property-xid-start-tests (Files): Likewise.
39643         * modules/unictype/property-zero-width-tests (Files): Likewise.
39644         * modules/unictype/scripts-tests (Files): Likewise.
39645         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
39646         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
39647         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
39648         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
39649         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
39650         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
39651         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
39652         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
39653         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
39654         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
39655         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
39656         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
39657         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
39658         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
39659         * modules/uninorm/composition-tests (Files): Likewise.
39660         * modules/uninorm/decomposing-form-tests (Files): Likewise.
39661         * modules/uninorm/decomposition-tests (Files): Likewise.
39662         * modules/uninorm/filter-tests (Files): Likewise.
39663         * modules/uninorm/nfc-tests (Files): Likewise.
39664         * modules/uninorm/nfd-tests (Files): Likewise.
39665         * modules/uninorm/nfkc-tests (Files): Likewise.
39666         * modules/uninorm/nfkd-tests (Files): Likewise.
39667         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
39668         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
39669         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
39670         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
39671         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
39672         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
39673         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
39674         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39675         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
39676         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
39677         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
39678         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
39679         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39680         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
39681         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
39682         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
39683         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
39684         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39685         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
39686         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
39687         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
39688         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
39689         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39690         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
39691         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
39692         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
39693         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
39694         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
39695         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
39696         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
39697         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
39698         * modules/uniwidth/u8-width-tests (Files): Likewise.
39699         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
39700         * modules/uniwidth/u16-width-tests (Files): Likewise.
39701         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
39702         * modules/uniwidth/u32-width-tests (Files): Likewise.
39703         * modules/uniwidth/width-tests (Files): Likewise.
39704         * modules/unlink-tests (Files): Likewise.
39705         * modules/unsetenv-tests (Files): Likewise.
39706         * modules/usleep-tests (Files): Likewise.
39707         * modules/utimens-tests (Files): Likewise.
39708         * modules/utimensat-tests (Files): Likewise.
39709         * modules/vasnprintf-posix-tests (Files): Likewise.
39710         * modules/vasnprintf-tests (Files): Likewise.
39711         * modules/vasprintf-posix-tests (Files): Likewise.
39712         * modules/vasprintf-tests (Files): Likewise.
39713         * modules/vdprintf-posix-tests (Files): Likewise.
39714         * modules/vfprintf-posix-tests (Files): Likewise.
39715         * modules/vprintf-posix-tests (Files): Likewise.
39716         * modules/vsnprintf-posix-tests (Files): Likewise.
39717         * modules/vsnprintf-tests (Files): Likewise.
39718         * modules/vsprintf-posix-tests (Files): Likewise.
39719         * modules/wcrtomb-tests (Files): Likewise.
39720         * modules/wcsnrtombs-tests (Files): Likewise.
39721         * modules/wcsrtombs-tests (Files): Likewise.
39722         * modules/wctype-tests (Files): Likewise.
39723         * modules/wcwidth-tests (Files): Likewise.
39724         * modules/xmemdup0-tests (Files): Likewise.
39725         * modules/xprintf-posix-tests (Files): Likewise.
39726         * modules/xvasprintf-tests (Files): Likewise.
39727
39728 2009-12-24  Eric Blake  <ebb9@byu.net>
39729
39730         test-nanosleep: fix typo
39731         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
39732         patch.
39733         Reported by Bruno Haible.
39734
39735 2009-12-24  Bruno Haible  <bruno@clisp.org>
39736
39737         Reduce namespace pollution on glibc systems.
39738         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
39739         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
39740         systems.
39741         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
39742         <getopt.h> on glibc systems.
39743         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
39744         systems.
39745         * lib/fcntl.c: Include <unistd.h> here instead.
39746
39747 2009-12-24  Bruno Haible  <bruno@clisp.org>
39748
39749         * lib/stdlib.in.h (includes): Fix typo in today's commit.
39750
39751 2009-12-24  Eric Blake  <ebb9@byu.net>
39752
39753         tests: add signature checks
39754         * tests/signature.h (SIGNATURE_CHECK): New file.
39755         * modules/atexit-tests (Files): Use it.
39756         * modules/btowc-tests (Files): Likewise.
39757         * modules/canonicalize-lgpl-tests (Files): Likewise.
39758         * modules/ceilf-tests (Files): Likewise.
39759         * modules/ceill-tests (Files): Likewise.
39760         * modules/chown-tests (Files): Likewise.
39761         * modules/dprintf-posix-tests (Files): Likewise.
39762         * modules/dup2-tests (Files): Likewise.
39763         * modules/dup3-tests (Files): Likewise.
39764         * modules/duplocale-tests (Files): Likewise.
39765         * modules/fchdir-tests (Files): Likewise.
39766         * modules/fcntl-tests (Files): Likewise.
39767         * modules/fdopendir-tests (Files): Likewise.
39768         * modules/fflush-tests (Files): Likewise.
39769         * modules/flock-tests (Files): Likewise.
39770         * modules/floorf-tests (Files): Likewise.
39771         * modules/floorl-tests (Files): Likewise.
39772         * modules/fnmatch-tests (Files): Likewise.
39773         * modules/fopen-tests (Files): Likewise.
39774         * modules/fprintf-posix-tests (Files): Likewise.
39775         * modules/freopen-tests (Files): Likewise.
39776         * modules/frexp-nolibm-tests (Files): Likewise.
39777         * modules/frexp-tests (Files): Likewise.
39778         * modules/frexpl-nolibm-tests (Files): Likewise.
39779         * modules/frexpl-tests (Files): Likewise.
39780         * modules/fseek-tests (Files): Likewise.
39781         * modules/fseeko-tests (Files): Likewise.
39782         * modules/fsync-tests (Files): Likewise.
39783         * modules/ftell-tests (Files): Likewise.
39784         * modules/ftello-tests (Files): Likewise.
39785         * modules/futimens-tests (Files): Likewise.
39786         * modules/getaddrinfo-tests (Files): Likewise.
39787         * modules/getcwd-tests (Files): Likewise.
39788         * modules/getdelim-tests (Files): Likewise.
39789         * modules/getdtablesize-tests (Files): Likewise.
39790         * modules/getgroups-tests (Files): Likewise.
39791         * modules/gethostname-tests (Files): Likewise.
39792         * modules/getline-tests (Files): Likewise.
39793         * modules/getopt-posix-tests (Files): Likewise.
39794         * modules/gettimeofday-tests (Files): Likewise.
39795         * modules/glob-tests (Files): Likewise.
39796         * modules/iconv-tests (Files): Likewise.
39797         * modules/inet_ntop-tests (Files): Likewise.
39798         * modules/inet_pton-tests (Files): Likewise.
39799         * modules/isblank-tests (Files): Likewise.
39800         * modules/lchown-tests (Files): Likewise.
39801         * modules/ldexpl-tests (Files): Likewise.
39802         * modules/link-tests (Files): Likewise.
39803         * modules/linkat-tests (Files): Likewise.
39804         * modules/lseek-tests (Files): Likewise.
39805         * modules/lstat-tests (Files): Likewise.
39806         * modules/mbrtowc-tests (Files): Likewise.
39807         * modules/mbsinit-tests (Files): Likewise.
39808         * modules/mbsnrtowcs-tests (Files): Likewise.
39809         * modules/mbsrtowcs-tests (Files): Likewise.
39810         * modules/memchr-tests (Files): Likewise.
39811         * modules/memcmp-tests (Files): Likewise.
39812         * modules/memmem-tests (Files): Likewise.
39813         * modules/memrchr-tests (Files): Likewise.
39814         * modules/mkdir-tests (Files): Likewise.
39815         * modules/mkfifo-tests (Files): Likewise.
39816         * modules/mkfifoat-tests (Files): Likewise.
39817         * modules/mknod-tests (Files): Likewise.
39818         * modules/nanosleep-tests (Files): Likewise.
39819         * modules/nl_langinfo-tests (Files): Likewise.
39820         * modules/obstack-printf-tests (Files): Likewise.
39821         * modules/open-tests (Files): Likewise.
39822         * modules/openat-tests (Files): Likewise.
39823         * modules/perror-tests (Files): Likewise.
39824         * modules/pipe2-tests (Files): Likewise.
39825         * modules/poll-tests (Files): Likewise.
39826         * modules/popen-tests (Files): Likewise.
39827         * modules/posix_spawn-tests (Files): Likewise.
39828         * modules/posix_spawnp-tests (Files): Likewise.
39829         * modules/pread-tests (Files): Likewise.
39830         * modules/printf-posix-tests (Files): Likewise.
39831         * modules/pty-tests (Files): Likewise.
39832         * modules/random_r-tests (Files): Likewise.
39833         * modules/rawmemchr-tests (Files): Likewise.
39834         * modules/readlink-tests (Files): Likewise.
39835         * modules/remove-tests (Files): Likewise.
39836         * modules/rename-tests (Files): Likewise.
39837         * modules/renameat-tests (Files): Likewise.
39838         * modules/rmdir-tests (Files): Likewise.
39839         * modules/round-tests (Files): Likewise.
39840         * modules/roundf-tests (Files): Likewise.
39841         * modules/roundl-tests (Files): Likewise.
39842         * modules/select-tests (Files): Likewise.
39843         * modules/setenv-tests (Files): Likewise.
39844         * modules/sigaction-tests (Files): Likewise.
39845         * modules/sleep-tests (Files): Likewise.
39846         * modules/snprintf-posix-tests (Files): Likewise.
39847         * modules/snprintf-tests (Files): Likewise.
39848         * modules/sprintf-posix-tests (Files): Likewise.
39849         * modules/stat-tests (Files): Likewise.
39850         * modules/strcasestr-tests (Files): Likewise.
39851         * modules/strchrnul-tests (Files): Likewise.
39852         * modules/strerror-tests (Files): Likewise.
39853         * modules/strsignal-tests (Files): Likewise.
39854         * modules/strstr-tests (Files): Likewise.
39855         * modules/strtod-tests (Files): Likewise.
39856         * modules/strverscmp-tests (Files): Likewise.
39857         * modules/symlink-tests (Files): Likewise.
39858         * modules/symlinkat-tests (Files): Likewise.
39859         * modules/times-tests (Files): Likewise.
39860         * modules/trunc-tests (Files): Likewise.
39861         * modules/truncf-tests (Files): Likewise.
39862         * modules/truncl-tests (Files): Likewise.
39863         * modules/tsearch-tests (Files): Likewise.
39864         * modules/uname-tests (Files): Likewise.
39865         * modules/unlink-tests (Files): Likewise.
39866         * modules/unsetenv-tests (Files): Likewise.
39867         * modules/usleep-tests (Files): Likewise.
39868         * modules/utimensat-tests (Files): Likewise.
39869         * modules/vasprintf-tests (Files): Likewise.
39870         * modules/vdprintf-posix-tests (Files): Likewise.
39871         * modules/vfprintf-posix-tests (Files): Likewise.
39872         * modules/vprintf-posix-tests (Files): Likewise.
39873         * modules/vsnprintf-posix-tests (Files): Likewise.
39874         * modules/vsnprintf-tests (Files): Likewise.
39875         * modules/vsprintf-posix-tests (Files): Likewise.
39876         * modules/wcrtomb-tests (Files): Likewise.
39877         * modules/wcsnrtombs-tests (Files): Likewise.
39878         * modules/wcsrtombs-tests (Files): Likewise.
39879         * modules/wcwidth-tests (Files): Likewise.
39880         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
39881         * tests/test-isinf.c (isinf): Likewise.
39882         * tests/test-isnan.c (isnan): Likewise.
39883         * tests/test-signbit.c (signbit): Likewise.
39884         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
39885         declaration, either as macro or with correct signature.
39886         (select): Ensure function under test is declared with correct
39887         signature in correct header.
39888         * tests/test-atexit.c (atexit): Likewise.
39889         * tests/test-btowc.c (btowc): Likewise.
39890         * tests/test-canonicalize-lgpl.c (realpath)
39891         (canonicalize_file_name): Likewise.
39892         * tests/test-ceilf1.c (ceilf): Likewise.
39893         * tests/test-ceill.c (ceill): Likewise.
39894         * tests/test-chown.c (chown): Likewise.
39895         * tests/test-dprintf-posix.c (dprintf): Likewise.
39896         * tests/test-dup2.c (dup2): Likewise.
39897         * tests/test-dup3.c (dup3): Likewise.
39898         * tests/test-duplocale.c (duplocale): Likewise.
39899         * tests/test-fchdir.c (fchdir): Likewise.
39900         * tests/test-fchownat.c (fchownat): Likewise.
39901         * tests/test-fcntl.c (fcntl): Likewise.
39902         * tests/test-fdopendir.c (fdopendir): Likewise.
39903         * tests/test-fflush.c (fflush): Likewise.
39904         * tests/test-flock.c (flock): Likewise.
39905         * tests/test-floorf1.c (floorf): Likewise.
39906         * tests/test-floorl.c (floorl): Likewise.
39907         * tests/test-fnmatch.c (fnmatch): Likewise.
39908         * tests/test-fopen.c (fopen): Likewise.
39909         * tests/test-fprintf-posix.c (fprintf): Likewise.
39910         * tests/test-freopen.c (freopen): Likewise.
39911         * tests/test-frexp.c (frexp): Likewise.
39912         * tests/test-frexpl.c (frexpl): Likewise.
39913         * tests/test-fseek.c (fseek): Likewise.
39914         * tests/test-fseeko.c (fseeko): Likewise.
39915         * tests/test-fstatat.c (fstatat): Likewise.
39916         * tests/test-fsync.c (fsync): Likewise.
39917         * tests/test-ftell.c (ftell): Likewise.
39918         * tests/test-ftello.c (ftello): Likewise.
39919         * tests/test-futimens.c (futimens): Likewise.
39920         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
39921         (gai_strerror): Likewise.
39922         * tests/test-getcwd.c (getcwd): Likewise.
39923         * tests/test-getdelim.c (getdelim): Likewise.
39924         * tests/test-getdtablesize.c (getdtablesize): Likewise.
39925         * tests/test-getgroups.c (getgroups): Likewise.
39926         * tests/test-gethostname.c (gethostname): Likewise.
39927         * tests/test-getline.c (getline): Likewise.
39928         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
39929         Likewise.
39930         * tests/test-gettimeofday.c (gettimeofday): Likewise.
39931         * tests/test-glob.c (glob, globfree): Likewise.
39932         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
39933         * tests/test-inet_ntop.c (inet_ntop): Likewise.
39934         * tests/test-inet_pton.c (inet_pton): Likewise.
39935         * tests/test-isblank.c (isblank): Likewise.
39936         * tests/test-lchown.c (lchown): Likewise.
39937         * tests/test-ldexpl.c (ldexpl): Likewise.
39938         * tests/test-link.c (link): Likewise.
39939         * tests/test-linkat.c (linkat): Likewise.
39940         * tests/test-lseek.c (lseek): Likewise.
39941         * tests/test-lstat.c (lstat): Likewise.
39942         * tests/test-mbrtowc.c (mbrtowc): Likewise.
39943         * tests/test-mbsinit.c (mbsinit): Likewise.
39944         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
39945         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
39946         * tests/test-memchr.c (memchr): Likewise.
39947         * tests/test-memcmp.c (memcmp): Likewise.
39948         * tests/test-memmem.c (memmem): Likewise.
39949         * tests/test-memrchr.c (memrchr): Likewise.
39950         * tests/test-mkdir.c (mkdir): Likewise.
39951         * tests/test-mkdirat.c (mkdirat): Likewise.
39952         * tests/test-mkfifo.c (mkfifo): Likewise.
39953         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
39954         * tests/test-mknod.c (mknod): Likewise.
39955         * tests/test-nanosleep.c (nanosleep): Likewise.
39956         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
39957         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
39958         Likewise.
39959         * tests/test-open.c (open): Likewise.
39960         * tests/test-openat.c (openat): Likewise.
39961         * tests/test-perror.c (perror): Likewise.
39962         * tests/test-pipe2.c (pipe2): Likewise.
39963         * tests/test-poll.c (poll): Likewise.
39964         * tests/test-popen.c (popen, pclose): Likewise.
39965         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
39966         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
39967         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
39968         (posix_spawn_file_actions_destroy)
39969         (posix_spawn_file_actions_addclose)
39970         (posix_spawn_file_actions_addopen)
39971         (posix_spawn_file_actions_adddup2): Likewise.
39972         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
39973         * tests/test-pread.c (pread): Likewise.
39974         * tests/test-printf-posix.c (printf): Likewise.
39975         * tests/test-pty.c (openpty, forkpty): Likewise.
39976         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
39977         (random_r): Likewise.
39978         * tests/test-rawmemchr.c (rawmemchr): Likewise.
39979         * tests/test-readlink.c (readlink): Likewise.
39980         * tests/test-remove.c (remove): Likewise.
39981         * tests/test-rename.c (rename): Likewise.
39982         * tests/test-renameat.c (renameat): Likewise.
39983         * tests/test-rmdir.c (rmdir): Likewise.
39984         * tests/test-round1.c (round): Likewise.
39985         * tests/test-roundf1.c (roundf): Likewise.
39986         * tests/test-roundl.c (roundl): Likewise.
39987         * tests/test-setenv.c (setenv): Likewise.
39988         * tests/test-sigaction.c (sigaction): Likewise.
39989         * tests/test-sleep.c (sleep): Likewise.
39990         * tests/test-snprintf.c (snprintf): Likewise.
39991         * tests/test-sprintf-posix.c (sprintf): Likewise.
39992         * tests/test-stat.c (stat): Likewise.
39993         * tests/test-stpncpy.c (stpncpy): Likewise.
39994         * tests/test-strcasestr.c (strcasestr): Likewise.
39995         * tests/test-strchrnul.c (strchrnul): Likewise.
39996         * tests/test-strerror.c (strerror): Likewise.
39997         * tests/test-strsignal.c (strsignal): Likewise.
39998         * tests/test-strstr.c (strstr): Likewise.
39999         * tests/test-strtod.c (strtod): Likewise.
40000         * tests/test-strverscmp.c (strverscmp): Likewise.
40001         * tests/test-symlink.c (symlink): Likewise.
40002         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
40003         * tests/test-times.c (times): Likewise.
40004         * tests/test-trunc1.c (trunc): Likewise.
40005         * tests/test-truncf1.c (truncf): Likewise.
40006         * tests/test-truncl.c (truncl): Likewise.
40007         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
40008         Likewise.
40009         * tests/test-uname.c (uname): Likewise.
40010         * tests/test-unlink.c (unlink): Likewise.
40011         * tests/test-unlinkat.c (unlinkat): Likewise.
40012         * tests/test-unsetenv.c (unsetenv): Likewise.
40013         * tests/test-usleep.c (usleep): Likewise.
40014         * tests/test-utimensat.c (utimensat): Likewise.
40015         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
40016         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
40017         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
40018         * tests/test-vprintf-posix.c (vprintf): Likewise.
40019         * tests/test-vsnprintf.c (vsnprintf): Likewise.
40020         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
40021         * tests/test-wcrtomb.c (wcrtomb): Likewise.
40022         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
40023         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
40024         * tests/test-wcwidth.c (wcwidth): Likewise.
40025
40026         build: pull in conditional headers during GNULIB_POSIXCHECK
40027         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
40028         definitions from any conditionally-included headers.
40029         * lib/stdlib.in.h (includes): Likewise.
40030         * lib/unistd.in.h (includes): Likewise.
40031
40032 2009-12-24  Bruno Haible  <bruno@clisp.org>
40033
40034         * tests/test-argv-iter.c: Include header file being tested immediately
40035         after config.h.
40036         * tests/test-base64.c: Likewise.
40037         * tests/test-flock.c: Likewise.
40038         * tests/test-fsync.c: Likewise.
40039         * tests/test-getdate.c: Likewise.
40040         * tests/test-getndelim2.c: Likewise.
40041         * tests/test-isfinite.c: Likewise.
40042         * tests/test-isinf.c: Likewise.
40043         * tests/test-strerror.c: Likewise.
40044         * tests/test-strsignal.c: Likewise.
40045
40046 2009-12-23  Eric Blake  <ebb9@byu.net>
40047
40048         unistd: work around cygwin bug
40049         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
40050         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
40051         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40052
40053 2009-12-23  Bruno Haible  <bruno@clisp.org>
40054
40055         localename: More tests.
40056         * tests/test-localename.c (SIZEOF): New macro.
40057         (categories): New variable.
40058         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
40059         test_locale_name_default): Add test w.r.t. thread locale.
40060         (test_locale_name_thread): New function.
40061         (main): Invoke it.
40062
40063         localename: Make aware of thread locale.
40064         * lib/localename.h (gl_locale_name_thread): New declaration.
40065         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
40066         behaviour with respect to thread locale.
40067         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
40068         <langinfo.h>, glthread/lock.h.
40069         (SIZE_BITS): New macro.
40070         (string_hash): New function.
40071         (struct hash_node): New type.
40072         (HASH_TABLE_SIZE): New macro.
40073         (struniq_hash_table, struniq_lock): New variables.
40074         (struniq): New function.
40075         (gl_locale_name_thread): New function.
40076         (gl_locale_name): Invoke it.
40077         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
40078         * modules/localename (Depends-on): Add lock.
40079         Reported by Mike Gran <spk121@yahoo.com>.
40080
40081 2009-12-23  Eric Blake  <ebb9@byu.net>
40082
40083         va-args: new module
40084         * modules/va-args: New file.
40085         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
40086         * MODULES.html.sh (Core language properties): Mention it.
40087
40088         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
40089         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
40090         named alias for __attribute__((__unused__)).
40091         * lib/chown.c: Update client.
40092         * lib/fchmodat.c: Likewise.
40093         * lib/fts.c: Likewise.
40094         * lib/getdate.y: Likewise.
40095         * lib/getgroups.c: Likewise.
40096         * lib/getopt.c: Likewise.
40097         * lib/getugroups.c: Likewise.
40098         * lib/mkdir.c: Likewise.
40099         * lib/mkfifo.c: Likewise.
40100         * lib/mkfifoat.c: Likewise.
40101         * lib/mknod.c: Likewise.
40102         * lib/mknodat.c: Likewise.
40103         * lib/readlink.c: Likewise.
40104         * lib/se-context.in.h: Likewise.
40105         * lib/se-selinux.in.h: Likewise.
40106         * lib/sockets.c: Likewise.
40107         * lib/symlink.c: Likewise.
40108         * lib/symlinkat.c: Likewise.
40109         * lib/unicodeio.c: Likewise.
40110         * lib/unistr.h: Likewise.
40111         * tests/test-areadlink.c: Likewise.
40112         * tests/test-areadlinkat.c: Likewise.
40113         * tests/test-filenamecat.c: Likewise.
40114         * tests/test-fseeko.c: Likewise.
40115         * tests/test-ftello.c: Likewise.
40116         * tests/test-getdate.c: Likewise.
40117         * tests/test-getgroups.c: Likewise.
40118         * tests/test-gethostname.c: Likewise.
40119         * tests/test-quotearg.c: Likewise.
40120         * tests/test-version-etc.c: Likewise.
40121         * tests/test-xalloc-die.c: Likewise.
40122         * tests/test-xfprintf-posix.c: Likewise.
40123         * tests/test-xprintf-posix.c: Likewise.
40124         * tests/test-xvasprintf.c: Likewise.
40125
40126         tests: avoid compiler warnings
40127         * tests/test-fcntl.c (main): Delete unused parameters.
40128         * tests/test-freopen-safer.c (main): Likewise.
40129         * tests/test-xalloc-die.c (main): Mark unused parameters.
40130         * tests/test-fseeko.c (main): Likewise.
40131         * tests/test-ftello.c (main): Likewise.
40132         * tests/test-nanosleep.c (main): Avoid declaration warning.
40133         * tests/test-sleep.c (main): Likewise.
40134         * tests/test-unsetenv.c (main): Silence warning about string
40135         literal.
40136         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
40137
40138 2009-12-23  Bruno Haible  <bruno@clisp.org>
40139
40140         * tests/test-localename.c (test_locale_name): New function, extracted
40141         from main. Also test mixed situations.
40142         (test_locale_name_posix, test_locale_name_environ,
40143         test_locale_name_default): New functions.
40144         (main): Invoke them all.
40145         * modules/localename-tests (configure.ac): Test for newlocale.
40146
40147 2009-12-23  Bruno Haible  <bruno@clisp.org>
40148
40149         unistd: Ensure getcwd gets declared before being overridden.
40150         * lib/unistd.in.h: Conditionally include <io.h>.
40151
40152 2009-12-22  Bruno Haible  <bruno@clisp.org>
40153
40154         wchar: Diagnose broken combination of glibc and gcc versions and flags.
40155         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
40156         (gl_WCHAR_H): Invoke it.
40157         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
40158         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
40159         Reported by Karl Berry <karl@freefriends.org>.
40160
40161 2009-12-22  Eric Blake  <ebb9@byu.net>
40162
40163         math, unistd: avoid redundant includes
40164         * lib/math.in.h (isnan): No need to re-include <math.h>.
40165         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
40166
40167         getsubopt: work around cygwin bug
40168         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
40169         avoid conflicting with system getsubopt.
40170         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
40171         bug.
40172
40173         getopt: synchronize from glibc
40174         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
40175         parameter order.  Adjust all callers.
40176         (_getopt_internal_r, main): Adjust quoting in error messages.
40177         Drop considerations for outdated POSIX 1003.2 error message.
40178         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
40179         callers.
40180         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
40181
40182         test-getopt: test stderr behavior
40183         * modules/getopt-posix-tests (Depends-on): Add dup2.
40184         * tests/test-getopt.c (ASSERT): Avoid stderr.
40185         (main): Move stderr to a temporary file.
40186         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
40187         Instead, add parameter to inform caller if output occurred.
40188         (test_getopt): Adjust all existing tests to expect silence, and
40189         add new tests of leading ":".
40190         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40191         glibc shortcomings with leading "-:" or "+:" in optstring.
40192         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40193         Likewise.
40194         * doc/posix-functions/getopt.texi (getopt): Likewise.
40195
40196         test-getopt: enhance test
40197         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
40198         supports optind=0.
40199         * tests/test-getopt.c (OPTIND_MIN): Move...
40200         * tests/test-getopt.h (OPTIND_MIN): ...here.
40201         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
40202         Require that optind=0 works, since modern BSD supports it in
40203         addition to optreset, and since coreutils expects it.
40204         (test_getopt_long_only): New test.
40205         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40206         glibc shortcomings with 'W;', and enforcement of optind=0.
40207         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40208         Likewise.
40209
40210 2009-12-21  Bruno Haible  <bruno@clisp.org>
40211
40212         localename: Improvements for MacOS X and Cygwin.
40213         * lib/localename.h (gl_locale_name_environ): New declaration.
40214         * lib/localename.c (gl_locale_name_environ): New function, extracted from
40215         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
40216         (gl_locale_name_posix): Invoke it.
40217         (gl_locale_name_default): Add comments. Use Windows native API also on
40218         Cygwin.
40219
40220 2009-12-21  Bruno Haible  <bruno@clisp.org>
40221
40222         Update list of Win32 locale ids.
40223         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
40224         (LANG_SAMI): Renamed from LANG_SAAMI.
40225         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
40226         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
40227         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
40228         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
40229         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
40230         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
40231         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
40232         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
40233         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
40234         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
40235         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
40236         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
40237         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
40238         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
40239         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
40240         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
40241         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
40242         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
40243         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
40244         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
40245         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
40246         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
40247         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
40248         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
40249         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
40250         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
40251         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
40252         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
40253         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
40254         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
40255         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
40256         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
40257         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
40258         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
40259         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
40260         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
40261         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
40262         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
40263         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
40264         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
40265         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
40266         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
40267         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
40268         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
40269         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
40270         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
40271         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
40272         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
40273         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
40274         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
40275         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
40276         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
40277         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
40278         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
40279         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
40280         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
40281         Add more languages and countries for Sami, Sorbian. Add more countries
40282         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
40283         for Pashto. Change country for Syriac, Tswana.
40284
40285 2009-12-21  Eric Blake  <ebb9@byu.net>
40286
40287         test-utimens: avoid spurious failure
40288         * tests/test-chown.h (nap): Factor...
40289         * tests/nap.h: ...into new file.
40290         * tests/test-lchown.h (nap): Avoid duplication.
40291         * tests/test-utimens-common.h (nap): Use shared implementation,
40292         necessary on file systems with 1-second resolution.
40293         * modules/chown-tests (Files): Include new file.
40294         * modules/fdutimensat-tests (Files): Likewise.
40295         * modules/futimens-tests (Files): Likewise.
40296         * modules/lchown-tests (Files): Likewise.
40297         * modules/openat-tests (Files): Likewise.
40298         * modules/utimens-tests (Files): Likewise.
40299         * modules/utimensat-tests (Files): Likewise.
40300
40301 2009-12-19  Eric Blake  <ebb9@byu.net>
40302
40303         futimens, utimensat: work around Linux bug
40304         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
40305         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40306         * lib/utimensat.c (rpl_utimensat): Work around it.
40307         * lib/futimens.c (rpl_futimens): Adjust comment.
40308
40309         utimens: work around Linux ctime bug
40310         * lib/utimens.c (detect_ctime_bug): New helper function.
40311         (update_timespec): Differentiate between workaround needed for
40312         this bug vs. what is needed for systems that lack utimensat.
40313         (fdutimens, lutimens): Work around bug.
40314
40315         utimens: check for ctime update
40316         * tests/test-utimens-common.h (check_ctime): Define.
40317         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
40318         * tests/test-futimens.h (test_futimens): Likewise.
40319         * tests/test-lutimens.h (test_lutimens): Likewise.
40320         * doc/posix-functions/futimens.texi (futimens): Document the bug.
40321         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40322
40323 2009-12-19  Bruno Haible  <bruno@clisp.org>
40324
40325         dprintf-posix: Check against memory leak fixed on 2009-12-15.
40326         * tests/test-dprintf-posix2.sh: New file.
40327         * tests/test-dprintf-posix2.c: New file.
40328         * modules/dprintf-posix-tests (Files): Add them.
40329         (configure.ac): Check for getrlimit and setrlimit.
40330         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40331
40332 2009-12-19  Bruno Haible  <bruno@clisp.org>
40333
40334         fprintf-posix: Check against memory leak fixed on 2009-12-15.
40335         * tests/test-fprintf-posix3.sh: New file.
40336         * tests/test-fprintf-posix3.c: New file.
40337         * modules/fprintf-posix-tests (Files): Add them.
40338         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40339
40340 2009-12-19  Eric Blake  <ebb9@byu.net>
40341
40342         dirfd: fix prototype
40343         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
40344         * lib/dirfd.c (dirfd): Likewise.
40345
40346         canonicalize: reduce memory usage
40347         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
40348         allocation to size.
40349         Reported by Solar Designer <solar@openwall.com>.
40350
40351 2009-12-19  Bruno Haible  <bruno@clisp.org>
40352
40353         New module attribute 'Applicability'.
40354         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
40355         * gnulib-tool: New option --extract-applicability.
40356         (func_usage): Document it.
40357         (sed_extract_prog): Recognize it.
40358         (func_get_applicability): New function.
40359         (func_import): Generalize handling of 'link-warning' module.
40360         * modules/link-warning (Applicability): New section.
40361         * modules/arg-nonnull (Applicability): New section.
40362         Repoted by Simon Josefsson <simon@josefsson.org>.
40363
40364 2009-12-19  Bruno Haible  <bruno@clisp.org>
40365
40366         fflush: tweak
40367         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
40368         * lib/fseeko.c (rpl_fseeko): Likewise.
40369
40370 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
40371
40372         * lib/gl_list.h: Fix typo in comment.
40373
40374 2009-12-16  Eric Blake  <ebb9@byu.net>
40375
40376         fcntl: use to simplify other modules
40377         * modules/cloexec (Depends-on): Add fcntl.
40378         * modules/fchdir (Depends-on): Likewise.
40379         * modules/fd-safer-flag (Depends-on): Likewise.
40380         * modules/unistd-safer (Depends-on): Likewise.
40381         * modules/dup3 (configure.ac): Set module indicator.
40382         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
40383         missing.
40384         * lib/fchdir.c (_gl_register_dup): Fix comment.
40385         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
40386         * lib/dup-safer.c (dup_safer): Likewise.
40387         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
40388         * lib/dup3.c (dup3): Likewise.
40389         * tests/test-fchdir.c (main): Enhance test.
40390         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
40391
40392         fcntl: port portions of fcntl to mingw
40393         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
40394         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
40395         replacement for mingw.
40396         * modules/fcntl (Description): Update.
40397         (Depends-on): Add dup2.
40398         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
40399         * modules/fcntl-h (Makefile.am): Substitute it.
40400         * lib/fcntl.in.h (fcntl): Update declaration.
40401         (F_DUPFD, F_GETFD): New macros, when needed.
40402         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40403         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
40404         * tests/test-fcntl.c (check_flags, main): Enhance test for items
40405         we now guarantee.
40406
40407         fcntl: work around cygwin bug in F_DUPFD
40408         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
40409         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
40410         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
40411         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
40412         * doc/posix-functions/fcntl.texi (fcntl): Document it.
40413
40414         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
40415         * modules/fcntl (Files): List new files.
40416         (configure.ac): Run a test.
40417         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
40418         * lib/fcntl.c (rpl_fcntl): Likewise.
40419         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
40420         (gl_FCNTL_H): Always replace fcntl.h.
40421         * modules/fcntl-h (Makefile.am): Substitute witnesses.
40422         * lib/fcntl.in.h (fcntl): Declare replacement.
40423         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
40424         needed, plus a witness.
40425         * doc/posix-functions/fcntl.texi (fcntl): Document this.
40426         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40427         * tests/test-fcntl.c: New file.
40428         * modules/fcntl-tests: Likewise.
40429
40430         binary-io: avoid potential compilation warning
40431         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
40432         directives.
40433
40434         fflush: avoid compilation error on NetBSD
40435         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
40436         between off_t and fpos_t, since the latter is sometimes a struct.
40437         * lib/fseeko.c (rpl_fseeko): Likewise.
40438         Reported by Alexander Nasonov <alnsn@yandex.ru>.
40439
40440 2009-12-15  Eric Blake  <ebb9@byu.net>
40441
40442         fcntl-h, stdio, sys_ioctl: fix declarations
40443         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
40444         function must not take arguments.
40445         * lib/sys_ioctl.in.h (ioctl): Likewise.
40446         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
40447         (open): Add a link warning.
40448
40449 2009-12-15  Jim Meyering  <meyering@redhat.com>
40450
40451         areadlink, areadlink-with-size: relax license to LGPLv2+
40452         * modules/areadlink (License): Relax to LGPLv2+.
40453         * modules/areadlink-with-size (License): Likewise.
40454
40455 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
40456             Bruno Haible  <bruno@clisp.org>
40457
40458         *printf: Fix memory leak.
40459         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
40460         * lib/vfprintf.c (vfprintf): Likewise.
40461         * lib/dprintf.c (dprintf): Likewise.
40462         * lib/vdprintf.c (vdprintf): Likewise.
40463
40464 2009-12-14  Eric Blake  <ebb9@byu.net>
40465
40466         accept4: adjust module dependencies
40467         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
40468
40469         utimens: one more try at avoiding compiler warning
40470         * lib/utimens.c (lutimens): Lower scope of result.
40471
40472 2009-12-13  Bruno Haible  <bruno@clisp.org>
40473
40474         Move the malloc checking from module 'list' to new module 'xlist'.
40475         * modules/xlist: New file.
40476         * lib/gl_xlist.h: New file.
40477         * lib/gl_xlist.c: New file.
40478         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
40479         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
40480         gl_list_add_last, gl_list_add_before, gl_list_add_after,
40481         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
40482         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
40483         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
40484         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
40485         gl_sortedlist_nx_add): New declarations.
40486         (struct gl_list_implementation): Rename and change methods accordingly.
40487         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
40488         (gl_list_nx_create): Renamed from gl_list_create.
40489         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40490         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40491         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40492         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40493         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40494         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40495         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40496         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40497         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
40498         gl_list_create_empty.
40499         (gl_list_nx_create): Renamed from gl_list_create.
40500         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40501         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40502         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40503         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40504         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40505         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40506         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40507         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40508         * lib/gl_array_list.c: Don't include xalloc.h.
40509         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
40510         NULL upon out-of-memory.
40511         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
40512         out-of-memory.
40513         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
40514         Change return type to 'int'.
40515         (gl_array_nx_set_at): Renamed from gl_array_set_at.
40516         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40517         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
40518         upon out-of-memory.
40519         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
40520         upon out-of-memory.
40521         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
40522         upon out-of-memory.
40523         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
40524         upon out-of-memory.
40525         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
40526         out-of-memory.
40527         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
40528         Update.
40529         (gl_array_list_implementation): Update.
40530         * lib/gl_carray_list.c: Don't include xalloc.h.
40531         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
40532         Return NULL upon out-of-memory.
40533         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
40534         out-of-memory.
40535         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
40536         Change return type to 'int'.
40537         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
40538         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40539         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
40540         upon out-of-memory.
40541         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
40542         upon out-of-memory.
40543         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
40544         out-of-memory.
40545         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
40546         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
40547         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
40548         Update.
40549         (gl_carray_list_implementation): Update.
40550         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
40551         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
40552         gl_linked_create_empty. Return NULL upon out-of-memory.
40553         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
40554         out-of-memory.
40555         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
40556         Change return type to 'int'. Return -1 upon out-of-memory.
40557         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
40558         out-of-memory.
40559         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
40560         upon out-of-memory.
40561         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
40562         upon out-of-memory.
40563         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
40564         NULL upon out-of-memory.
40565         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
40566         upon out-of-memory.
40567         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
40568         out-of-memory.
40569         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
40570         Update.
40571         * lib/gl_linked_list.c: Don't include xalloc.h.
40572         (gl_linked_list_implementation): Update.
40573         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
40574         (add_to_bucket): Change return type to 'int'.
40575         (gl_linkedhash_list_implementation): Update.
40576         * lib/gl_anytree_list1.h (free_subtree): New function.
40577         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
40578         gl_tree_create_empty. Return NULL upon out-of-memory.
40579         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
40580         Change return type to 'int'. Return -1 upon out-of-memory.
40581         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
40582         out-of-memory.
40583         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
40584         (gl_tree_remove_node): New function, moved here from
40585         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
40586         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
40587         Update.
40588         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
40589         malloc, not xmalloc. Return NULL upon out-of-memory.
40590         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40591         out-of-memory.
40592         (gl_tree_remove_node_from_tree): New function, extracted from
40593         gl_tree_remove_node.
40594         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40595         upon out-of-memory.
40596         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40597         out-of-memory.
40598         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40599         upon out-of-memory.
40600         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40601         upon out-of-memory.
40602         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40603         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
40604         not xmalloc. Return NULL upon out-of-memory.
40605         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40606         out-of-memory.
40607         (gl_tree_remove_node_from_tree): New function, extracted from
40608         gl_tree_remove_node.
40609         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40610         upon out-of-memory.
40611         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40612         out-of-memory.
40613         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40614         upon out-of-memory.
40615         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40616         upon out-of-memory.
40617         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40618         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
40619         gl_anytree_list1.h before gl_anyavltree_list2.h.
40620         (gl_avltree_list_implementation): Update.
40621         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
40622         gl_anytree_list1.h before gl_anyavltree_list2.h.
40623         (gl_rbtree_list_implementation): Update.
40624         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
40625         Change return type to 'int'. Return -1 upon out-of-memory. Use
40626         __builtin_expect.
40627         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
40628         (gl_avltreehash_list_implementation): Update.
40629         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
40630         (gl_rbtreehash_list_implementation): Update.
40631         * modules/array-list (Depends-on): Remove xalloc.
40632         * modules/carray-list (Depends-on): Likewise.
40633         * modules/linked-list (Depends-on): Likewise.
40634         * modules/linkedhash-list (Depends-on): Likewise.
40635         * modules/avltree-list (Depends-on): Likewise.
40636         * modules/rbtree-list (Depends-on): Likewise.
40637         * modules/avltreehash-list (Depends-on): Likewise.
40638         * modules/rbtreehash-list (Depends-on): Likewise.
40639
40640         * modules/xsublist: New file.
40641         * lib/gl_xsublist.h: New file.
40642         * lib/gl_xsublist.c: New file.
40643         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
40644         (gl_sublist_nx_create): New declaration.
40645         * lib/gl_sublist.c: Don't include xalloc.h.
40646         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
40647         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
40648         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
40649         Change return type to 'int'. Return -1 upon out-of-memory.
40650         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
40651         upon out-of-memory.
40652         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
40653         NULL upon out-of-memory.
40654         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
40655         upon out-of-memory.
40656         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
40657         NULL upon out-of-memory.
40658         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
40659         NULL upon out-of-memory.
40660         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
40661         upon out-of-memory.
40662         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
40663         (gl_sublist_list_implementation): Update.
40664         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
40665         upon out-of-memory.
40666         * modules/sublist (Depends-on): Remove xalloc.
40667
40668         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
40669         * tests/test-carray_list.c: Likewise.
40670         * tests/test-linked_list.c: Likewise.
40671         * tests/test-linkedhash_list.c: Likewise.
40672         * tests/test-avltree_list.c: Likewise.
40673         * tests/test-rbtree_list.c: Likewise.
40674         * tests/test-avltreehash_list.c: Likewise.
40675         * tests/test-rbtreehash_list.c: Likewise.
40676         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
40677         * modules/carray-list-tests (Makefile.am): Likewise.
40678         * modules/linked-list-tests (Makefile.am): Likewise.
40679         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40680         * modules/avltree-list-tests (Makefile.am): Likewise.
40681         * modules/rbtree-list-tests (Makefile.am): Likewise.
40682         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40683         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40684
40685         * NEWS: Mention the changes.
40686
40687         * lib/clean-temp.c: Include gl_xlist.h.
40688         * modules/clean-temp (Depends-on): Add xlist.
40689
40690         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
40691         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
40692
40693         * tests/test-array_oset.c: Include gl_xlist.h.
40694         * modules/array-oset-tests (Depends-on): Add xlist.
40695
40696         Reported by José E. Marchesi <jemarch@gnu.org>.
40697
40698 2009-12-13  Bruno Haible  <bruno@clisp.org>
40699
40700         Move the malloc checking from module 'oset' to new module 'xoset'.
40701         * modules/xoset: New file.
40702         * lib/gl_xoset.h: New file.
40703         * lib/gl_xoset.c: New file.
40704         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
40705         declarations.
40706         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
40707         (struct gl_oset_implementation): Rename and change methods accordingly.
40708         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
40709         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40710         'int'. Mark as __warn_unused_result__.
40711         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
40712         gl_oset_create_empty.
40713         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40714         'int'.
40715         * lib/gl_array_oset.c: Don't include xalloc.h.
40716         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
40717         malloc, not xmalloc.
40718         (grow): Change return type to 'int'. Don't call xalloc_die.
40719         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
40720         to 'int'.
40721         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
40722         'int'.
40723         (gl_array_oset_implementation): Update.
40724         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
40725         gl_tree_create_empty.
40726         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
40727         'int'.
40728         * lib/gl_avltree_oset.c: Don't include xalloc.h.
40729         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40730         xmalloc.
40731         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40732         not xmalloc.
40733         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40734         xmalloc.
40735         (gl_avltree_oset_implementation): Update.
40736         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
40737         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40738         xmalloc.
40739         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40740         not xmalloc.
40741         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40742         xmalloc.
40743         (gl_rbtree_oset_implementation): Update.
40744         * modules/array-oset (Depends-on): Remove xalloc.
40745         * modules/avltree-oset (Depends-on): Likewise.
40746         * modules/rbtree-oset (Depends-on): Likewise.
40747         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
40748         * tests/test-avltree_oset.c: Likewise.
40749         * tests/test-rbtree_oset.c: Likewise.
40750         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40751         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
40752         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40753         * NEWS: Mention the change.
40754
40755 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
40756
40757         maint.mk: allow a project to override release-prep commands
40758         * top/maint.mk (alpha, beta, stable): Move release-preparatory
40759         commands into a new rule.
40760         (release-prep): New rule.
40761         (release-prep-hook): New overridable variable.
40762
40763 2009-12-13  Bruno Haible  <bruno@clisp.org>
40764
40765         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
40766
40767 2009-12-13  Jim Meyering  <meyering@redhat.com>
40768
40769         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
40770         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
40771
40772 2009-12-12  Bruno Haible  <bruno@clisp.org>
40773
40774         duplocale: Tweak.
40775         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
40776
40777 2009-12-12  Karl Berry  <karl@gnu.org>
40778
40779         * config/srclist.txt (strtoll.c): tab changes, no more sync.
40780
40781 2009-12-12  Bruno Haible  <bruno@clisp.org>
40782
40783         * m4/po.m4: Undo incorrect untabification.
40784
40785 2009-12-12  Bruno Haible  <bruno@clisp.org>
40786
40787         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
40788         * modules/c-strtod (Depends-on): Add locale.
40789         * modules/c-strtold (Depends-on): Likewise.
40790
40791 2009-12-12  Bruno Haible  <bruno@clisp.org>
40792
40793         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
40794
40795 2009-12-11  Eric Blake  <ebb9@byu.net>
40796
40797         setenv: relax requirement in light of POSIX ruling
40798         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
40799         not NULL.
40800         * tests/test-setenv.c (main): Relax test.
40801         * tests/test-unsetenv.c (main): Likewise.
40802         * doc/posix-functions/setenv.texi (setenv): Document this.
40803         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40804
40805 2009-12-11  Bruno Haible  <bruno@clisp.org>
40806
40807         New module 'fd-safer-flag'.
40808         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
40809         * lib/dup-safer.c (dup_safer_flag): Remove function.
40810         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
40811         * lib/fd-safer.c (fd_safer_flag): Remove function.
40812         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
40813         * modules/cloexec (configure.ac): Drop indicator macro.
40814         * modules/fd-safer-flag: New file.
40815         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
40816         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
40817         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
40818
40819 2009-12-11  Bruno Haible  <bruno@clisp.org>
40820
40821         Tests for module 'nl_langinfo'.
40822         * modules/nl_langinfo-tests: New file.
40823         * tests/test-nl_langinfo.sh: New file.
40824         * tests/test-nl_langinfo.c: New file.
40825
40826         New module 'nl_langinfo'.
40827         * lib/nl_langinfo.c: New file.
40828         * m4/nl_langinfo.m4: New file.
40829         * modules/nl_langinfo: New file.
40830         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
40831
40832 2009-12-11  Bruno Haible  <bruno@clisp.org>
40833
40834         Tests for module 'langinfo'.
40835         * modules/langinfo-tests: New file.
40836         * tests/test-langinfo.c: New file.
40837
40838         New module 'langinfo'.
40839         * lib/langinfo.in.h: New file.
40840         * m4/langinfo_h.m4: New file.
40841         * modules/langinfo: New file.
40842         * doc/posix-headers/langinfo.texi: Mention the new module.
40843
40844 2009-12-11  Bruno Haible  <bruno@clisp.org>
40845
40846         * lib/config.charset: Untabify.
40847
40848 2009-12-11  Bruno Haible  <bruno@clisp.org>
40849
40850         * modules/unistd-safer (configure.ac): Drop indicator macro.
40851
40852 2009-12-11  Bruno Haible  <bruno@clisp.org>
40853
40854         Move pipe2-safer code to its own file.
40855         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
40856         * lib/pipe-safer.c (pipe2_safer): Remove function.
40857         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
40858         (Makefile.am): Add it to lib_SOURCES.
40859
40860 2009-12-10  Bruno Haible  <bruno@clisp.org>
40861
40862         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
40863
40864 2009-12-10  Bruno Haible  <bruno@clisp.org>
40865
40866         Declare which arguments expect non-NULL values, for GCC and clang.
40867         * build-aux/arg-nonnull.h: New file.
40868         * modules/arg-nonnull: New file.
40869         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
40870         (inet_ntop, inet_pton): Use it.
40871         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
40872         (closedir, dirfd, opendir, scandir, alphasort): Use it.
40873         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
40874         (open, openat): Use it.
40875         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
40876         (fnmatch): Use it.
40877         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
40878         (getopt, getopt_long, getopt_long_only): Use it.
40879         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
40880         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
40881         Use it.
40882         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
40883         (iconv_open): Use it.
40884         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
40885         (strtoimax, strtoumax): Use it.
40886         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
40887         (duplocale): Use it.
40888         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
40889         (frexp, frexpl): Use it.
40890         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
40891         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
40892         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
40893         (tsearch, tfind, tdelete, twalk): Use it.
40894         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
40895         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
40896         sigpending): Use it.
40897         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
40898         (posix_spawn, posix_spawnp, posix_spawnattr_init,
40899         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
40900         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
40901         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
40902         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
40903         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
40904         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
40905         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
40906         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
40907         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
40908         Use it.
40909         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
40910         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
40911         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
40912         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
40913         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
40914         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
40915         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
40916         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
40917         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
40918         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
40919         strtoull, unsetenv): Use it.
40920         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
40921         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
40922         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
40923         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40924         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40925         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
40926         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
40927         (strcasecmp, strncasecmp): Use it.
40928         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
40929         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
40930         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
40931         rpl_setsockopt): Use it.
40932         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
40933         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
40934         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
40935         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
40936         (gettimeofday): Use it.
40937         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
40938         (times): Use it.
40939         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
40940         (uname): Use it.
40941         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
40942         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
40943         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
40944         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
40945         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
40946         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
40947         unlinkat, write): Use it.
40948         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
40949         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
40950         * lib/argv-iter.h: Include arg-nonnull.h.
40951         (_ATTRIBUTE_NONNULL_): Remove macro.
40952         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
40953         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
40954         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
40955         optimization.
40956         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
40957         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
40958         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
40959         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
40960         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
40961         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
40962         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
40963         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
40964         * modules/arpa_inet (Depends-on): Add arg-nonnull.
40965         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
40966         * modules/dirent (Depends-on): Add arg-nonnull.
40967         (Makefile.am): Insert arg-nonnull.h into dirent.h.
40968         * modules/fcntl-h (Depends-on): Add arg-nonnull.
40969         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
40970         * modules/fnmatch (Depends-on): Add arg-nonnull.
40971         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
40972         * modules/getopt-posix (Depends-on): Add arg-nonnull.
40973         (Makefile.am): Insert arg-nonnull.h into getopt.h.
40974         * modules/glob (Depends-on): Add arg-nonnull.
40975         (Makefile.am): Insert arg-nonnull.h into glob.h.
40976         * modules/iconv_open (Depends-on): Add arg-nonnull.
40977         (Makefile.am): Insert arg-nonnull.h into iconv.h.
40978         * modules/inttypes (Depends-on): Add arg-nonnull.
40979         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
40980         * modules/locale (Depends-on): Add arg-nonnull.
40981         (Makefile.am): Insert arg-nonnull.h into locale.h.
40982         * modules/math (Depends-on): Add arg-nonnull.
40983         (Makefile.am): Insert arg-nonnull.h into math.h.
40984         * modules/netdb (Depends-on): Add arg-nonnull.
40985         (Makefile.am): Insert arg-nonnull.h into netdb.h.
40986         * modules/search (Depends-on): Add arg-nonnull.
40987         (Makefile.am): Insert arg-nonnull.h into search.h.
40988         * modules/signal (Depends-on): Add arg-nonnull.
40989         (Makefile.am): Insert arg-nonnull.h into signal.h.
40990         * modules/spawn (Depends-on): Add arg-nonnull.
40991         (Makefile.am): Insert arg-nonnull.h into spawn.h.
40992         * modules/stdio (Depends-on): Add arg-nonnull.
40993         (Makefile.am): Insert arg-nonnull.h into stdio.h.
40994         * modules/stdlib (Depends-on): Add arg-nonnull.
40995         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
40996         * modules/string (Depends-on): Add arg-nonnull.
40997         (Makefile.am): Insert arg-nonnull.h into string.h.
40998         * modules/strings (Depends-on): Add arg-nonnull.
40999         (Makefile.am): Insert arg-nonnull.h into strings.h.
41000         * modules/sys_socket (Depends-on): Add arg-nonnull.
41001         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
41002         * modules/sys_stat (Depends-on): Add arg-nonnull.
41003         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
41004         * modules/sys_time (Depends-on): Add arg-nonnull.
41005         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
41006         * modules/sys_times (Depends-on): Add arg-nonnull.
41007         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
41008         * modules/sys_utsname (Depends-on): Add arg-nonnull.
41009         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
41010         * modules/time (Depends-on): Add arg-nonnull.
41011         (Makefile.am): Insert arg-nonnull.h into time.h.
41012         * modules/unistd (Depends-on): Add arg-nonnull.
41013         (Makefile.am): Insert arg-nonnull.h into unistd.h.
41014         * modules/wchar (Depends-on): Add arg-nonnull.
41015         (Makefile.am): Insert arg-nonnull.h into wchar.h.
41016         * modules/argv-iter (Depends-on): Add arg-nonnull.
41017         * tests/test-canonicalize.c (null_ptr): New function.
41018         (main): Use it.
41019         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
41020         (main): Use it.
41021         * tests/test-memmem.c (null_ptr): New function.
41022         (main): Use it.
41023         Reported by Jim Meyering.
41024
41025 2009-12-10  Bruno Haible  <bruno@clisp.org>
41026
41027         Use spaces for indentation, not tabs.
41028         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
41029         * m4/*.m4: Untabify.
41030         * build-aux/*.h: Untabify.
41031         * tests/**/*.[hc]: Untabify.
41032         * README: New section "Indent with spaces, not TABs", based on
41033         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
41034         * NEWS: Mention the change.
41035
41036 2009-12-10  Bruno Haible  <bruno@clisp.org>
41037
41038         pty test: Fix link error.
41039         * modules/pty-tests (Makefile.am): Add the default LDADD value to
41040         test_pty_LDADD.
41041
41042 2009-12-07  Simon Josefsson  <simon@josefsson.org>
41043
41044         * modules/pty: New file.
41045         * modules/pty-tests: New file.
41046         * m4/pty.m4: New file.
41047         * tests/test-pty.c: New file.
41048         * doc/glibc-headers/pty.texi: Modified.
41049         * doc/glibc-functions/forkpty.texi: Modified.
41050         * doc/glibc-functions/openpty.texi: Modified.
41051
41052 2009-12-10  Bruno Haible  <bruno@clisp.org>
41053
41054         Avoid syntax error in C++ mode.
41055         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
41056
41057 2009-12-10  Bruno Haible  <bruno@clisp.org>
41058
41059         Use sed with option -e.
41060         * gnulib-tool (func_version, func_emit_copyright_notice,
41061         func_emit_initmacro_end, func_import, func_create_testdir): Pass
41062         option -e to sed.
41063         * modules/link-warning (Makefile.am): Likewise.
41064
41065 2009-12-10  Jim Meyering  <meyering@redhat.com>
41066
41067         mgetgroups: do not write bytes beyond end of malloc'd buffer
41068         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
41069         username, we call getgroups with a one-element-shorter buffer,
41070         but still told it the length was original, max_n_groups.
41071
41072 2009-12-09  Eric Blake  <ebb9@byu.net>
41073
41074         cloexec: relax license
41075         * modules/cloexec (Maintainer): Add myself.
41076         (License): Use LGPL, not GPL.
41077
41078         link-warning: optimize generation
41079         * modules/link-warning (Makefile.am): Reduce process usage.
41080
41081 2009-12-09  Bruno Haible  <bruno@clisp.org>
41082
41083         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
41084         workaround was added on 2009-11-17.
41085
41086 2009-12-09  Jim Meyering  <meyering@redhat.com>
41087             Bruno Haible  <bruno@clisp.org>
41088
41089         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
41090         * modules/link-warning (Makefile.am): Make the comment-removing sed
41091         command more robust in the face of bootstrap-prepended comment lines.
41092
41093 2009-12-09  Bruno Haible  <bruno@clisp.org>
41094
41095         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
41096         most one group.
41097
41098 2009-12-09  Simon Josefsson <simon@josefsson.org>
41099             Bruno Haible  <bruno@clisp.org>
41100
41101         * build-aux/link-warning.h: Add copyright notice.
41102         * modules/link-warning (Makefile.am): Generate link-warning.h from
41103         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
41104         * NEWS: Mention change in link-warning module.
41105         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
41106         * modules/dirent (Makefile.am): Add dependency to dirent.h.
41107         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
41108         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
41109         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
41110         * modules/math (Makefile.am): Add dependency to math.h.
41111         * modules/search (Makefile.am): Add dependency to search.h.
41112         * modules/signal (Makefile.am): Add dependency to signal.h.
41113         * modules/spawn (Makefile.am): Add dependency to spawn.h.
41114         * modules/stdio (Makefile.am): Add dependency to stdio.h.
41115         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
41116         * modules/string (Makefile.am): Add dependency to string.h.
41117         * modules/strings (Makefile.am): Add dependency to strings.h.
41118         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
41119         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
41120         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
41121         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
41122         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
41123         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
41124         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
41125         * modules/unistd (Makefile.am): Add dependency to unistd.h.
41126         * modules/wchar (Makefile.am): Add dependency to wchar.h.
41127
41128 2009-12-09  Bruno Haible  <bruno@clisp.org>
41129
41130         fchdir: Optimize away rpl_fstat when possible.
41131         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
41132         REPLACE_OPEN_DIRECTORY.
41133         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
41134
41135 2009-12-09  Bruno Haible  <bruno@clisp.org>
41136
41137         * lib/fchdir.c: Update comment.
41138
41139 2009-12-09  Bruno Haible  <bruno@clisp.org>
41140
41141         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
41142
41143 2009-12-08  Eric Blake  <ebb9@byu.net>
41144
41145         fchdir: avoid memory leak on re-registration.
41146         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
41147
41148 2009-12-08  Jim Meyering  <meyering@redhat.com>
41149
41150         init.sh: avoid Solaris 10 /bin/sh portability problem
41151         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
41152         sourced script:
41153           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
41154           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
41155           bar
41156         tests/init.sh relied on that, accepting a --set-path=DIR argument,
41157         and two tests used that idiom.
41158         * tests/init.sh: Update suggested usage comments.
41159         (path_prepend_): New function, to be used in place
41160         of the --src-path=DIR option.
41161         (setup_): Move PATH-prepending code into path_prepend_.
41162         * tests/test-pread.sh: Adapt to new usage.
41163         * tests/test-xalloc-die.sh: Likewise.
41164
41165 2009-12-08  Simon Josefsson  <simon@josefsson.org>
41166
41167         * doc/gnulib.texi (Glibc pty.h): Add.
41168         * doc/glibc-functions/forkpty.texi: Add.
41169         * doc/glibc-functions/openpty.texi: Add.
41170         Suggested by Bruno Haible.
41171
41172 2009-12-08  Eric Blake  <ebb9@byu.net>
41173
41174         fchdir: fix logic bugs
41175         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
41176         * tests/test-fchdir.c (main): Enhance test.
41177         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
41178         is in use.
41179
41180         dup2: fix logic bugs
41181         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
41182         REPLACE_DUP2 to decide when rpl_dup2 is needed.
41183         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
41184         exists.
41185         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
41186
41187 2009-12-07  Eric Blake  <ebb9@byu.net>
41188
41189         unlink: fix m4 detection
41190         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
41191
41192         unistd-safer: add unit test
41193         * modules/unistd-safer-tests: New file.
41194         * tests/test-dup-safer.c: Likewise.
41195         * tests/test-cloexec.c (setmode): Avoid compiler warning.
41196         * tests/test-dup2.c (setmode): Likewise.
41197         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
41198
41199         cloexec: preserve text vs. binary across dup_cloexec
41200         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
41201         mode.
41202         * modules/dup2-tests (Depends-on): Add binary-io.
41203         * modules/cloexec-tests (Depends-on): Likewise.
41204         * tests/test-dup2.c (setmode, is_mode): New helpers.
41205         (main): Add tests that translation mode is preserved.
41206         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
41207         Reported by Bruno Haible.
41208
41209         mgetgroups: reduce duplicate listings
41210         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
41211         resulting array.
41212         * tests/test-chown.h (test_chown): Simplify client.
41213         * tests/test-lchown.h (test_lchown): Likewise.
41214
41215 2009-12-06  Bruno Haible  <bruno@clisp.org>
41216
41217         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
41218         value.
41219
41220 2009-12-06  Bruno Haible  <bruno@clisp.org>
41221
41222         * lib/progname.c: Include stdio.h, stdlib.h.
41223         (set_program_name): Reject a NULL argument.
41224
41225 2009-12-05  Eric Blake  <ebb9@byu.net>
41226
41227         pipe2-safer: new module
41228         * modules/pipe2-safer: New file.
41229         * lib/unistd-safer.h (pipe2_safer): New prototype.
41230         * lib/unistd--.h (pipe2): New wrapper.
41231         * lib/pipe-safer.c (pipe2_safer): New function.
41232         * modules/pipe (Depends-on): Add pipe2-safer.
41233         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
41234
41235         stdlib-safer: preserve cloexec flag for mkostemp[s]
41236         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
41237         fd_safer_flag.
41238
41239         unistd-safer: allow preservation of cloexec status via flag
41240         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
41241         prototypes.
41242         * lib/dup-safer.c (dup_safer_flag): New function.
41243         * lib/fd-safer.c (fd_safer_flag): Likewise.
41244         * modules/cloexec (configure.ac): Set witness.
41245
41246         test-dup2: enhance test
41247         * modules/dup2-tests (Depends-on): Add cloexec.
41248         * tests/test-dup2.c (main): Enhance test.
41249
41250         cloexec: add dup_cloexec
41251         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
41252         header and comments.
41253         * lib/cloexec.c (set_cloexec_flag): Add comments.
41254         (dup_cloexec): New function, with mingw implementation borrowed
41255         from...
41256         * lib/w32spawn.h (dup_noinherit): ...here.
41257         * modules/execute (Depends-on): Add cloexec.
41258         * modules/pipe (Depends-on): Likewise.
41259         * modules/cloexec (Depends-on): Add dup2.
41260         * modules/cloexec-tests (Files): New file.
41261         * tests/test-cloexec.c: Likewise.
41262
41263         test-xalloc-die: fix test for mingw
41264         * modules/xalloc-die-tests (Files): Add tests/init.sh.
41265         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
41266         directory and .exe suffix off argv[0] output.
41267
41268         test-fseeko: fix test for mingw
41269         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
41270         than undefining fseek, so test will pass on mingw.
41271
41272 2009-12-05  Bruno Haible  <bruno@clisp.org>
41273
41274         * lib/progname.h (set_program_name): Clarify specification.
41275         * lib/progname.c (set_program_name): Likewise.
41276         Reported by Jim Meyering.
41277
41278 2009-12-05  Jim Meyering  <meyering@redhat.com>
41279
41280         maint.mk: backslash-escape parens in default regexp
41281         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
41282         backslash-escape the literal parentheses.
41283
41284         maint.mk: news-date-check: use grep -E
41285         * top/maint.mk (today): Define a Make variable, not a...
41286         (news-date-check): ...shell variable.
41287         (news-date-regexp): Use the Make variable.
41288         Use grep's -E option.  Change the failing diagnostic to mention
41289         the variable, $(news-date-regexp).
41290
41291 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
41292
41293         maintainer-makefile: allow customization of NEWS entry format
41294         * top/maint.mk (news-date-regexp): New overridable variable.
41295         (news-date-check): Use it.
41296
41297 2009-12-04  Eric Blake  <ebb9@byu.net>
41298
41299         mgetgroups: add xgetgroups, and avoid ENOSYS failures
41300         * lib/mgetgroups.h (xgetgroups): New prototype.
41301         * lib/mgetgroups.c (xgetgroups): New wrapper.
41302         (mgetgroups): Handle ENOSYS.
41303         * modules/mgetgroups (Depends-on): Add realloc.
41304         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
41305
41306         mgetgroups: avoid argument promotion issues with -1
41307         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
41308         for invalid gid_t.
41309         * tests/test-chown.h (getegid, test_chown): Likewise.
41310         * tests/test-lchown.h (getegid, test_lchown): Likewise.
41311
41312 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
41313
41314         exclude: Fix header file problems.
41315         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
41316
41317 2009-12-01  Jim Meyering  <meyering@redhat.com>
41318
41319         fts: fts_open: do not let an empty string cause immediate failure
41320         This is required in support of GNU rm, for which the command
41321         "rm A '' B" must process and remove both A and B, in spite of
41322         the empty string argument.
41323         * lib/fts.c (fts_open): Do not let the presence of an empty string
41324         cause fts_open to fail immediately.  Most fts-using tools must be
41325         able to process all arguments, in order, and can be expected to
41326         diagnose such arguments themselves.
41327
41328 2009-11-30  Eric Blake  <ebb9@byu.net>
41329
41330         utimens: fix compilation error
41331         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
41332         Declare variable at right scope.
41333
41334 2009-11-29  Jim Meyering  <meyering@redhat.com>
41335
41336         bootstrap: handle perl-5.11's changed --version output
41337         * build-aux/bootstrap (get_version): Handle perl separately,
41338         since perl-5.11's --version output is different.
41339
41340 2009-11-28  Jim Meyering  <meyering@redhat.com>
41341
41342         userspec: depend on the inttostr module, too
41343         * modules/userspec (Depends-on): Add inttostr.
41344
41345         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
41346         * lib/userspec.c (parse_with_separator): Do not accept a user ID
41347         number of MAXUID when it evaluates to (uid_t) -1.
41348         Likewise for group ID.  Reported by Matt McCutchen in
41349         <http://savannah.gnu.org/bugs/?28113>
41350
41351         userspec: reformat to use spaces, not TABs
41352         * lib/userspec.c: Expand TABs to spaces.
41353         Add Emacs' "indent-tabs-mode: nil" hint.
41354
41355 2009-11-27  Eric Blake  <ebb9@byu.net>
41356
41357         getopt-gnu: flush out another BSD bug
41358         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
41359         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
41360         flush out BSD bug.
41361         * tests/test-getopt.h (test_getopt): End lists with NULL.
41362         * tests/test-getopt_long.h (test_getopt_long): Likewise.
41363         (test_getopt_long_posix): Enhance test.
41364         * modules/getopt-posix-tests (Depends-on): Add stdbool.
41365         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
41366         getopt-gnu.
41367         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41368         Likewise.
41369
41370 2009-11-27  Simon Josefsson  <simon@josefsson.org>
41371
41372         * modules/idpriv-droptemp-tests (Notice): Fix text.
41373
41374 2009-11-27  Jim Meyering  <meyering@redhat.com>
41375
41376         test-xalloc-die: avoid spurious failure due to libtool argv difference
41377         In a libtool-enabled project, this test would fail due to a difference
41378         in the emitted program name, e.g.,
41379         -test-xalloc-die: memory exhausted
41380         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
41381         Use program to avoid that.
41382         * modules/xalloc-die-tests (Depends-on): Add progname.
41383         * tests/test-xalloc-die.c: Include progname.h".
41384         (program_name): Remove decl.
41385         (main): Call set_program_name.
41386         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
41387
41388 2009-11-26  Richard Jones  <rjones@redhat.com>
41389
41390         w32sock: leave win32 error in place.
41391         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
41392
41393 2009-11-26  Eric Blake  <ebb9@byu.net>
41394
41395         init.sh: suggest to use skip_ and fail_ functions in comments
41396         * tests/init.sh: Add a sentence.
41397
41398 2009-11-25  Bruno Haible  <bruno@clisp.org>
41399
41400         init.sh: add documentation in comments
41401         * tests/init.sh: Add some developer and user documentation.
41402
41403 2009-11-26  Jim Meyering  <meyering@redhat.com>
41404
41405         init.sh: accommodate even those who specify bogus srcdir manually
41406         * tests/init.sh: Normally, srcdir is guaranteed by automake and
41407         configure-time tests to be sanitized, so that there is no need to
41408         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
41409         (with no double quotes) suffices.  However, since tests may be
41410         invoked manually, and since you may explicitly set srcdir to the
41411         name of a directory containing spaces, do quote its uses here.
41412         * tests/test-pread.sh: Likewise.
41413         Suggested by Bruno Haible.
41414
41415         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
41416         * tests/test-pread.sh: Write no data into the pipe, because
41417         test-pread actually reads none.  This avoids a diagnostic,
41418         "bash: echo: write error: Broken pipe", that arises in the unusual
41419         event something is ignoring SIGPIPE, and might be interpreted
41420         as some sort of failure.  Reported by Bruno Haible.
41421
41422 2009-11-25  Jim Meyering  <meyering@redhat.com>
41423
41424         test-pread: cover failure with ESPIPE and EINVAL
41425         * tests/test-pread.c (main): Test for failure, too.
41426         * tests/test-pread.sh: Invoke with stdin on a pipe.
41427         Suggested by Eric Blake.
41428
41429         pread: improvement and fix
41430         * modules/pread (Depends-on): Depend on lseek, for portability to
41431         e.g., mingw.  Suggested by Eric Blake.
41432         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
41433
41434         unistd.in.h: correct declaration of pread
41435         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
41436         Reported by Richard W.M. Jones.
41437
41438         test-pread.sh: distribute the test script
41439         * modules/pread-tests (Files): Include test-pread.sh.
41440
41441         test-pread.sh: clean up
41442         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
41443         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
41444         That is unnecessary, since it's always ".".
41445         Suggestion from Eric Blake.
41446
41447         test-pread.sh: make executable
41448         * tests/test-pread.sh: Set executable bit.
41449         Reported by Eric Blake.
41450
41451         correct typo in test-pread.sh
41452         * tests/test-pread.sh: Add #! line.
41453
41454         test pread
41455         * tests/test-pread.c: New file.
41456         * tests/test-pread.sh: Likewise.
41457         * modules/pread-tests: Likewise.
41458
41459         pread: new module
41460         * modules/pread: New file.
41461         * lib/unistd.in.h (pread): Define/declare.
41462         * lib/pread.c (pread): New file.
41463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
41464         * modules/unistd (Makefile.am): Substitute witnesses.
41465         * doc/posix-functions/pread.texi (pread): Update.
41466         * MODULES.html.sh: Add pread.
41467
41468 2009-11-25  Jim Meyering  <meyering@redhat.com>
41469
41470         tests/init.sh: new file to be used via most *.sh tests
41471         * tests/init.sh: New file.
41472
41473 2009-11-25  Eric Blake  <ebb9@byu.net>
41474
41475         utimens: work around older Linux failure with symlinks
41476         * lib/utimens.c (lutimensat_works_really): New variable.
41477         (fdutimens, lutimens): Use it to manage kernels that support
41478         nanosecond times on files, but not on symlinks.
41479         Reported by OndÅ™ej Vašík.
41480
41481         utimes: fix configure grammar
41482         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
41483
41484 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
41485
41486         regex: Fix fastmap for multibyte character ranges.
41487         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
41488         characters when a multibyte character range is included.
41489
41490 2009-11-22  Andy Wingo  <wingo@pobox.com>
41491
41492         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
41493         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
41494
41495 2009-11-24  Bruno Haible  <bruno@clisp.org>
41496
41497         doc: Most *_l functions exist in MacOS X 10.5.
41498         * doc/posix-functions/duplocale.texi: Update platforms list.
41499         * doc/posix-functions/freelocale.texi: Likewise.
41500         * doc/posix-functions/newlocale.texi: Likewise.
41501         * doc/posix-functions/uselocale.texi: Likewise.
41502         * doc/posix-functions/isalnum_l.texi: Likewise.
41503         * doc/posix-functions/isalpha_l.texi: Likewise.
41504         * doc/posix-functions/isblank_l.texi: Likewise.
41505         * doc/posix-functions/iscntrl_l.texi: Likewise.
41506         * doc/posix-functions/isdigit_l.texi: Likewise.
41507         * doc/posix-functions/isgraph_l.texi: Likewise.
41508         * doc/posix-functions/islower_l.texi: Likewise.
41509         * doc/posix-functions/isprint_l.texi: Likewise.
41510         * doc/posix-functions/ispunct_l.texi: Likewise.
41511         * doc/posix-functions/isspace_l.texi: Likewise.
41512         * doc/posix-functions/isupper_l.texi: Likewise.
41513         * doc/posix-functions/iswalnum_l.texi: Likewise.
41514         * doc/posix-functions/iswalpha_l.texi: Likewise.
41515         * doc/posix-functions/iswblank_l.texi: Likewise.
41516         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41517         * doc/posix-functions/iswctype_l.texi: Likewise.
41518         * doc/posix-functions/iswdigit_l.texi: Likewise.
41519         * doc/posix-functions/iswgraph_l.texi: Likewise.
41520         * doc/posix-functions/iswlower_l.texi: Likewise.
41521         * doc/posix-functions/iswprint_l.texi: Likewise.
41522         * doc/posix-functions/iswpunct_l.texi: Likewise.
41523         * doc/posix-functions/iswspace_l.texi: Likewise.
41524         * doc/posix-functions/iswupper_l.texi: Likewise.
41525         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41526         * doc/posix-functions/isxdigit_l.texi: Likewise.
41527         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
41528         * doc/posix-functions/strcasecmp_l.texi: Likewise.
41529         * doc/posix-functions/strcoll_l.texi: Likewise.
41530         * doc/posix-functions/strfmon_l.texi: Likewise.
41531         * doc/posix-functions/strftime_l.texi: Likewise.
41532         * doc/posix-functions/strncasecmp_l.texi: Likewise.
41533         * doc/posix-functions/strxfrm_l.texi: Likewise.
41534         * doc/posix-functions/tolower_l.texi: Likewise.
41535         * doc/posix-functions/toupper_l.texi: Likewise.
41536         * doc/posix-functions/towctrans_l.texi: Likewise.
41537         * doc/posix-functions/towlower_l.texi: Likewise.
41538         * doc/posix-functions/towupper_l.texi: Likewise.
41539         * doc/posix-functions/wcscoll_l.texi: Likewise.
41540         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41541         * doc/posix-functions/wctrans_l.texi: Likewise.
41542         * doc/posix-functions/wctype_l.texi: Likewise.
41543         * doc/glibc-functions/strptime_l.texi: Likewise.
41544         * doc/glibc-functions/strtod_l.texi: Likewise.
41545         * doc/glibc-functions/strtof_l.texi: Likewise.
41546         * doc/glibc-functions/strtol_l.texi: Likewise.
41547         * doc/glibc-functions/strtold_l.texi: Likewise.
41548         * doc/glibc-functions/strtoll_l.texi: Likewise.
41549         * doc/glibc-functions/strtoul_l.texi: Likewise.
41550         * doc/glibc-functions/strtoull_l.texi: Likewise.
41551         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41552         * doc/glibc-functions/wcstod_l.texi: Likewise.
41553         * doc/glibc-functions/wcstof_l.texi: Likewise.
41554         * doc/glibc-functions/wcstol_l.texi: Likewise.
41555         * doc/glibc-functions/wcstold_l.texi: Likewise.
41556         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41557         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41558         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41559
41560 2009-11-24  Bruno Haible  <bruno@clisp.org>
41561
41562         duplocale: Fix logic bug.
41563         * lib/duplocale.c: Don't include <langinfo.h>.
41564         (_NL_LOCALE_NAME): Remove macro.
41565         (rpl_duplocale): Use setlocale instead of nl_langinfo.
41566         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
41567
41568 2009-11-23  Jim Meyering  <meyering@redhat.com>
41569
41570         test-update-copyright: don't hard-code /usr/bin/perl
41571         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
41572         perl to print the current year.  Gilles Espinasse reported that
41573         the replaced use of perl was hard-coded as /usr/bin/perl.
41574
41575 2009-11-23  Bruno Haible  <bruno@clisp.org>
41576
41577         duplocale: Add support for glibc 2.3.x.
41578         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
41579
41580 2009-11-22  Bruno Haible  <bruno@clisp.org>
41581
41582         vasnprintf: Tiny optimization.
41583         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
41584         MacOS X.
41585
41586 2009-11-22  Bruno Haible  <bruno@clisp.org>
41587
41588         Tests for module 'duplocale'.
41589         * modules/duplocale-tests: New file.
41590         * tests/test-duplocale.c: New file.
41591
41592         New module 'duplocale'.
41593         * m4/duplocale.m4: New file.
41594         * lib/locale.in.h (duplocale): New declaration.
41595         * lib/duplocale.c: New file.
41596         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
41597         gl_LOCALE_H_DEFAULTS): New macros.
41598         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
41599         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
41600         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
41601         REPLACE_DUPLOCALE.
41602         * modules/duplocale: New file.
41603         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
41604
41605 2009-11-22  Bruno Haible  <bruno@clisp.org>
41606
41607         * modules/locale-tests (configure.ac): Test for newlocale function.
41608         * tests/test-locale.c: When the system has extended locale functions,
41609         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
41610
41611         locale: Make locale_t available when possible.
41612         * lib/locale.in.h: Include <xlocale.h> when it exists.
41613         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
41614         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
41615         * modules/locale (Depends-on): Add extensions.
41616         (Makefile.am): Also substitute HAVE_XLOCALE_H.
41617         * doc/posix-headers/locale.texi: Document the problem with locale_t.
41618
41619 2009-11-22  Bruno Haible  <bruno@clisp.org>
41620
41621         Add comments.
41622         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
41623         invocation.
41624         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41625         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
41626         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41627
41628 2009-11-22  Bruno Haible  <bruno@clisp.org>
41629
41630         error: account for the possibility of freopen (stdout).
41631         * lib/error.c: Include <unistd.h>.
41632         (flush_stdout): New function, extracted from error and error_at_line.
41633         Determine stdout's fd dynamically.
41634         (error, error_at_line): Invoke flush_stdout.
41635         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
41636         * modules/error (Depends-on): Add unistd.
41637
41638 2009-11-22  Bruno Haible  <bruno@clisp.org>
41639
41640         diffseq: Add comment.
41641         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
41642
41643 2009-11-22  Jim Meyering  <meyering@redhat.com>
41644
41645         c-stack: avoid defining an unused static function
41646         * lib/c-stack.c (find_stack_direction): Do not define this function
41647         when it will not be used.
41648
41649         diffseq: avoid spurious gcc warnings
41650         * lib/diffseq.h (IF_LINT2): Define.
41651         (compareseq): Use it to initialize two members of "part".
41652         This avoids two used-uninitialized warnings.
41653
41654 2009-11-21  Jim Meyering  <meyering@redhat.com>
41655
41656         c-stack: avoid "ignoring return value of `write'" warning
41657         * lib/c-stack.c: Include "ignore-value.h".
41658         (die): Explicitly ignore each write return value.
41659         * modules/c-stack (Depends-on): Add ignore-value.
41660
41661 2009-11-21  Bruno Haible  <bruno@clisp.org>
41662
41663         diffseq: reduce scope of variable 'best'.
41664         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
41665         variable, earlier used for two different purposes.
41666
41667 2009-11-21  Jim Meyering  <meyering@redhat.com>
41668
41669         diffseq: remove useless assignment to "best"
41670         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
41671         assignment.  At that point "best" is already guaranteed to be zero.
41672
41673 2009-11-20  Eric Blake  <ebb9@byu.net>
41674
41675         build: mention ftp redirector in release announcements
41676         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
41677         values that used to come from cfg.mk; mention FTP redirect URL.
41678         * build-aux/announce-gen: Mention the mirror list.
41679         Suggested by Karl Berry.
41680
41681         nanosleep: improve port to mingw
41682         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
41683         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
41684         LIB_NANOSLEEP, but only when needed.
41685         * modules/select (Link): Document LIBSOCKET.
41686         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
41687         enough.
41688
41689         nanosleep: work around cygwin bug
41690         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
41691         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
41692         bug.
41693         (getnow): Delete, not needed.
41694         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
41695         LIB_CLOCK_GETTIME.
41696         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
41697         clock-time, gettime.
41698         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
41699         bug.
41700         * modules/nanosleep-tests: New test.
41701         * tests/test-nanosleep.c: New file.
41702
41703         sleep: work around cygwin bug
41704         * lib/sleep.c (rpl_sleep): Work around the bug.
41705         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
41706         (gl_PREREQ_SLEEP): Delete unused macro.
41707         * modules/sleep (Depends-on): Add verify.
41708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41709         * modules/unistd (Makefile.am): Substitute witness.
41710         * lib/unistd.in.h (sleep): Update prototype.
41711         * doc/posix-functions/sleep.texi (sleep): Document the bug.
41712         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
41713         * modules/sleep-tests (Depends-on): Check for alarm.
41714
41715 2009-11-20  Jim Meyering  <meyering@redhat.com>
41716
41717         maint.mk: improve sc_prohibit_magic_number_exit
41718         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
41719         so it does not match uses like System.exit(1).
41720         Add comments showing how to correct all offenders.
41721
41722 2009-11-19  Eric Blake  <ebb9@byu.net>
41723
41724         xalloc-die-tests: add missing library
41725         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
41726
41727         test-xvasprintf: silence compiler warnings
41728         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
41729         empty string from gcc.
41730
41731 2009-11-19  Jim Meyering  <meyering@redhat.com>
41732
41733         xfreopen: new module, from coreutils
41734         * modules/xfreopen: New module.
41735         * lib/xfreopen.c: New file.
41736         * lib/xfreopen.h: New file.
41737         * MODULES.html.sh (File stream based Input/Output"): Add it.
41738
41739 2009-11-19  Eric Blake  <ebb9@byu.net>
41740
41741         manywarnings: depend on warnings
41742         * modules/manywarnings (Depends-on): Add warnings.
41743
41744         build: avoid compiler warnings
41745         * lib/select.c (rpl_select): Delete unused variable.
41746         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
41747
41748 2009-11-18  Eric Blake  <ebb9@byu.net>
41749
41750         tests: avoid false negative with --with-packager
41751         * tests/test-version-etc.sh: Discard packager information.
41752         * tests/test-argp-version-etc-1.sh: Likewise.
41753         Reported by Mike Frysinger.
41754
41755         utimens: fix regression on Solaris
41756         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
41757         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
41758         can only change fd timestamps via futimesat.  Instead, use an
41759         additional witness macro to avoid BSD bug.
41760         Reported by Jim Meyering.
41761
41762 2009-11-17  Eric Blake  <ebb9@byu.net>
41763
41764         usleep: use it to simplify tests
41765         * modules/stat-time-tests (Depends-on): Add usleep.
41766         (configure.ac): Drop usleep check.
41767         * modules/chown-tests (Depends-on, configure.ac): Likewise.
41768         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
41769         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
41770         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
41771         * modules/openat-tests (Depends-on, configure.ac): Likewise.
41772         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
41773         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
41774         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
41775         Likewise.
41776         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
41777         * tests/test-lchown.h (nap): Likewise.
41778         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
41779         * tests/test-stat-time.c (nap): Likewise.
41780         * tests/test-utimens-common.h (nap): Update comments.
41781
41782         usleep: new module
41783         * modules/usleep: New file.
41784         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
41785         * lib/usleep.c (usleep): Likewise.
41786         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41787         * modules/unistd (Makefile.am): Substitute witnesses.
41788         * lib/unistd.in.h (usleep): Add declaration.
41789         * doc/pastposix-functions/usleep.texi (usleep): Document this.
41790         * MODULES.html.sh (Date and time): Likewise.
41791         * modules/usleep-tests (Depends-on): New test.
41792         * tests/test-usleep.c: New file.
41793
41794         chown: work around OpenBSD bug
41795         * lib/chown.c (rpl_chown): Work around the bug.
41796         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
41797         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
41798         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
41799         * modules/chown (Depends-on): Add stdbool.
41800         * modules/lchown (Depends-on): Likewise.
41801         * doc/posix-functions/chown.texi (chown): Document the bug.
41802         * doc/posix-functions/lchown.texi (lchown): Likewise.
41803         * tests/test-lchown.h (test_chown): Relax test.
41804
41805         mkstemp: avoid conflict with C++ keyword template
41806         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
41807         * lib/mkostemp.c (mkostemp): Likewise.
41808         * lib/mkostemps.c (mkostemps): Likewise.
41809         * lib/mkstemp.c (mkstemp): Likewise.
41810         * lib/mkstemps.c (mkstemps): Likewise.
41811
41812         xalloc-die-tests: optimize
41813         * tests/test-xalloc-die.sh: Reduce number of processes.
41814
41815 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41816
41817         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
41818         patch from ludo@gnu.org (Ludovic Courtès).
41819
41820 2009-11-17  Jim Meyering  <meyering@redhat.com>
41821
41822         version-etc: use proper license string
41823         * modules/version-etc (License): Use LGPL, not LGPLv3+.
41824         * modules/version-etc-fsf: Likewise.
41825
41826 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41827
41828         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
41829         printed to stdout.  Deal with EOL differences.
41830
41831 2009-11-17  Eric Blake  <ebb9@byu.net>
41832
41833         unsetenv: work around Solaris bug
41834         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
41835         * lib/unsetenv.c (rpl_unsetenv): Work around it.
41836         Reported by Jim Meyering.
41837
41838         vasnprintf: avoid compiler warnings
41839         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
41840         variables.
41841         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
41842
41843 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41844
41845         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
41846         settings since xalloc-die is no longer the self test,
41847         xalloc-die.sh is.
41848
41849 2009-11-17  Jim Meyering  <meyering@redhat.com>
41850
41851         test-xalloc-die.sh: make the code agree with the commit log
41852         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
41853         at the end, just in case you happen to have a test-xalloc-die
41854         program in some other PATH directory.
41855
41856         test-xalloc-die.sh: fix a portability bug
41857         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
41858         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
41859         Otherwise, argv[0] (as often seen in diagnostics) would be too
41860         system-dependent, sometimes with, and sometimes without the leading "./".
41861
41862         version-etc-fsf: relax license to LGPLv3+
41863         * modules/version-etc-fsf (License): Relax license.
41864
41865 2009-11-16  Eric Blake  <ebb9@byu.net>
41866
41867         xalloc-die-tests: avoid printing null pointer
41868         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
41869         shell script.
41870         * tests/test-xalloc-die.c (program_name): Declare.
41871         * tests/test-xalloc-die.sh (tmpfiles): New file.
41872
41873         setenv, unsetenv: work around various bugs
41874         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
41875         (setenv) [HAVE_SETENV]: Work around bugs.
41876         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
41877         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
41878         for bugs.
41879         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
41880         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
41881         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
41882         * modules/stdlib (Makefile.am): Update substitutions.
41883         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
41884         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
41885         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41886         * modules/setenv-tests: New test.
41887         * modules/unsetenv-tests: Likewise.
41888         * tests/test-setenv.c: New file.
41889         * tests/test-unsetenv.c: Likewise.
41890
41891 2009-11-16  Jim Meyering  <meyering@redhat.com>
41892
41893         version-etc: relax license to LGPLv3+
41894         * modules/version-etc (License): Relax license.
41895
41896         better AC_REQUIRE expanded-before-required-warning avoidance
41897         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
41898         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
41899         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
41900         which is no longer needed.
41901
41902 2009-11-16  Eric Blake  <ebb9@byu.net>
41903
41904         test-freading: clean up temporary file
41905         * tests/test-freading.c (main): Remove file on success, and use
41906         ASSERT more liberally.
41907         Reported by Jim Meyering.
41908
41909 2009-11-16  Jim Meyering  <meyering@redhat.com>
41910
41911         avoid new AC_REQUIRE expanded-before-required warnings
41912         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
41913         merely using it.
41914         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
41915         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
41916
41917 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41918
41919         * tests/test-xalloc-die.c: New file.
41920         * modules/xalloc-die-tests: New file.
41921         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
41922         XFAIL_TESTS so it can be appended by modules.
41923
41924 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41925
41926         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
41927         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
41928
41929 2009-11-14  Eric Blake  <ebb9@byu.net>
41930
41931         fnmatch: avoid compiler warning
41932         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
41933         to silence compiler warning about mismatch signedness in ?:.
41934         Reported by Robert Millan.
41935
41936         intprops: add double-inclusion guard
41937         * lib/intprops.h: Allow idempotent includes.
41938         Suggested by Bruce Korb.
41939
41940         openat: detect Solaris fchownat bug
41941         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
41942         penalizing glibc chownat when only lchownat is broken.
41943         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
41944         trailing slash bugs.
41945         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
41946         * modules/openat-tests (Files): Include more files.
41947         (Depends-on): Add mgetgroups, sleep, stat-time.
41948         (configure.ac): Add additional checks.
41949         (Makefile.am): Build new test.
41950         * tests/test-fchownat.c: New file.
41951
41952         lchown: detect Solaris and FreeBSD bug
41953         * lib/lchown.c (rpl_lchown): Work around bug.
41954         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
41955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41956         * modules/unistd (Makefile.am): Populate it.
41957         * lib/unistd.in.h (lchown): Update declaration.
41958         * doc/posix-functions/lchown.texi (lchown): Document the bug.
41959         * modules/lchown-tests: New file.
41960         * tests/test-lchown.h (test_lchown): Likewise.
41961         * tests/test-lchown.c (main): Likewise.
41962
41963         chown: detect Solaris and FreeBSD bug
41964         * lib/chown.c (rpl_chown): Work around bug.
41965         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
41966         (gl_PREREQ_CHOWN): Delete.
41967         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41968         * modules/unistd (Makefile.am): Populate it.
41969         * lib/unistd.in.h (chown): Update declaration.
41970         * lib/lchown.c (chown): Update client.
41971         * modules/lchown (Depends-on): Add lstat.
41972         * doc/posix-functions/chown.texi (chown): Document the bug.
41973         * doc/posix-functions/getgroups.texi (getgroups): Document
41974         getgroups pitfall.
41975         * modules/chown-tests: New file.
41976         * tests/test-chown.h (test_chown): Likewise.
41977         * tests/test-chown.c (main): Likewise.
41978
41979 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
41980
41981         gnulib-tool: correctly detect absence of m4 directories
41982         * gnulib-tool: Avoid extra newline on data passed to wc -l.
41983
41984 2009-11-14  Jim Meyering  <meyering@redhat.com>
41985
41986         maint.mk: Prohibit inclusion of "xalloc.h" without use.
41987         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41988
41989 2009-11-14  John W. Eaton  <jwe@gnu.org>
41990
41991         strftime.h: wrap function declaration in extern "C" block
41992         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
41993
41994 2009-11-13  Eric Blake  <ebb9@byu.net>
41995
41996         getgroups: avoid compiler warning
41997         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
41998
41999         getgroups: work around FreeBSD bug
42000         * lib/getgroups.c (rpl_getgroups): Work around the bug.
42001         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
42002         * doc/posix-functions/getgroups.texi (getgroups): Document it.
42003         * tests/test-getgroups.c (main): Fix buffer overrun.
42004
42005         getgroups: avoid compilation failure
42006         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
42007         * modules/getgroups (Depends-on): Add stdint.
42008
42009 2009-11-13  Jim Meyering  <meyering@redhat.com>
42010
42011         test-getgroups: avoid compilation failure
42012         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
42013
42014 2009-11-13  Eric Blake  <ebb9@byu.net>
42015
42016         mgetgroups: new module, taken from coreutils
42017         * modules/mgetgroups: New file.
42018         * lib/mgetgroups.h: Likewise.
42019         * lib/mgetgroups.c (mgetgroups): Likewise.
42020         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
42021         * MODULES.html.sh (Users and groups): Mention it.
42022
42023         getgroups: don't expose GETGROUPS_T to user
42024         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
42025         an element at a time if GETGROUPS_T is wrong size.
42026         * lib/getugroups.h (getugroups): Change signature.
42027         * lib/unistd.in.h (getgroups): Likewise.
42028         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
42029         signature needs fixing.
42030         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
42031         AC_TYPE_GETGROUPS.
42032         * modules/group-member (Depends-on): Add getgroups.
42033         * lib/group-member.c (group_info, get_group_info): Use gid_t.
42034         (group_member): Rely on getgroups replacement.
42035         * lib/getugroups.c (getugroups): Use gid_t.
42036         * tests/test-getgroups.c (main): Likewise.
42037         * NEWS: Mention the signature change.
42038         * doc/posix-functions/getgroups.texi (getgroups): Mention the
42039         problem with signature.
42040         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
42041         GETGROUPS_T is still useful for setgroups.
42042
42043         getgroups, getugroups: provide stubs for mingw
42044         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
42045         * lib/getugroups.c (getugroups): Likewise.
42046         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
42047         function.  Modernize replacement scheme.
42048         (gl_PREREQ_GETGROUPS): Delete.
42049         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
42050         * modules/getgroups (configure.ac): Declare witness.
42051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42052         * modules/unistd (Depends-on): Substitute witness.
42053         * lib/unistd.in.h (getgroups): Declare replacement.
42054
42055         getgroups: avoid calling exit
42056         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
42057         drop xalloc.
42058         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
42059         dependencies.
42060         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
42061         exiting, in the rare case of malloc failure.
42062
42063         getgroups: fix logic error
42064         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
42065         has more than 20 groups.
42066         * modules/getgroups-tests: New test.
42067         * tests/test-getgroups.c: New file.
42068
42069 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42070
42071         * tests/test-base64.c: Improve.
42072
42073 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42074
42075         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
42076         Blake <ebb9@byu.net>.
42077
42078 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42079
42080         * tests/test-xvasprintf.c: Add %s%s related checks.
42081
42082 2009-11-12  Eric Blake  <ebb9@byu.net>
42083
42084         version-etc: match standards.texi style
42085         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
42086         and use <> only for URLs.
42087
42088 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
42089
42090         fts: do not fail on a submount during traversal
42091         * lib/fts.c (fts_build): Read the stat info again after opening
42092         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
42093         Original report at http://bugzilla.redhat.com/501848.
42094
42095 2009-11-12  Jim Meyering  <meyering@redhat.com>
42096
42097         bootstrap: sync from coreutils
42098         * build-aux/bootstrap (bootstrap_epilogue): New function.
42099         Use git_modules_config in one more place.  This make bootstrap's
42100         --gnulib-srcdir option more useful for testing.
42101
42102         bootstrap: generalize autoheader check
42103         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
42104         AC_CONFIG_HEADERS.
42105
42106 2009-11-11  Eric Blake  <ebb9@byu.net>
42107
42108         mkfifoat: use new modules for Solaris and BSD bugs
42109         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
42110         * lib/mkfifoat.c (mknodat): Split...
42111         * lib/mknodat.c (mknodat): ...into new file.
42112         * modules/mkfifoat (Files): Ship new file.
42113         (Depends-on): Add mkfifo, mknod.
42114         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
42115         (Depends-on): Add symlink.
42116         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
42117         redundant with test_mkfifo.h.
42118         (do_mkfifoat, do_mknodat): New helpers.
42119
42120         mknod: new module
42121         * modules/mknod: New file.
42122         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
42123         * lib/mknod.c (mknod): Likewise.
42124         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42125         defaults.
42126         * modules/sys_stat (Makefile.am): Substitute them.
42127         * lib/sys_stat.in.h (mknod): Declare replacement.
42128         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42129         Document it.
42130         * doc/posix-functions/mknod.texi (mknod): Likewise.
42131         * modules/mknod-tests: New test.
42132         * tests/test-mknod.c: Likewise.
42133
42134         mkfifo: new module
42135         * modules/mkfifo: New file.
42136         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
42137         * lib/mkfifo.c (mkfifo): Likewise.
42138         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42139         defaults.
42140         * modules/sys_stat (Makefile.am): Substitute them.
42141         * lib/sys_stat.in.h (mkfifo): Declare replacement.
42142         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42143         Document it.
42144         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
42145         * modules/mkfifo-tests: New test.
42146         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
42147         from test-mkfifoat.c.
42148         * tests/test-mkfifo.c: New file.
42149
42150         readlink: detect FreeBSD bug
42151         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
42152         slash on symlink.
42153         * doc/posix-functions/readlink.texi (readlink): Document the bug.
42154         * tests/test-readlink.h (test_readlink): Enhance test.
42155
42156         symlink: detect FreeBSD bug
42157         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
42158         slash on symlink.
42159         * doc/posix-functions/symlink.texi (symlink): Document the bug.
42160         * tests/test-symlink.h (test_symlink): Enhance test.
42161
42162 2009-11-10  Eric Blake  <ebb9@byu.net>
42163
42164         link: detect FreeBSD bug
42165         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
42166         symlink.
42167         * doc/posix-functions/link.texi (link): Document the bug.
42168         * tests/test-link.h (test_link): Enhance test.
42169         * tests/test-linkat.c (main): Update caller.
42170
42171         unlink, remove: detect FreeBSD bug
42172         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
42173         slash on symlink.
42174         * doc/posix-functions/unlink.texi (unlink): Document the bug.
42175         * doc/posix-functions/remove.texi (remove): Likewise.
42176         * tests/test-unlink.h (test_unlink): Enhance test.
42177         * tests/test-remove.c (main): Likewise.
42178
42179 2009-11-09  Eric Blake  <ebb9@byu.net>
42180
42181         rename: detect FreeBSD bug
42182         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
42183         slash on symlink.
42184         * modules/renameat-tests (Depends-on): Add filenamecat.
42185         * tests/test-rename.h (test_rename): Allow one more errno.
42186         * tests/test-renameat.c (main): Likewise.
42187         * doc/posix-functions/rename.texi (rename): Document the bug.
42188
42189         open: detect FreeBSD bug
42190         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
42191         symlink.
42192         * doc/posix-functions/open.texi (open): Document the bug.
42193         * doc/posix-functions/utimes.texi (utimes): Likewise.
42194         * tests/test-open.h (test_open): Add parameters, and test symlink
42195         handling.
42196         * tests/test-open.c (main): Adjust caller.
42197         * tests/test-fcntl-safer.c (main): Likewise.
42198         * modules/open-tests (Depends-on): Add stdbool, symlink.
42199         * modules/fcntl-safer-tests (Depends-on): Likewise.
42200         * tests/test-openat.c (main): Add test-open tests.
42201
42202         stat: detect FreeBSD bug
42203         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
42204         symlink.
42205         * doc/posix-functions/stat.texi (stat): Document the bug.
42206         * tests/test-stat.h (test_stat_func): Add argument.
42207         * tests/test-stat.c (main): Adjust caller.
42208         * tests/test-fstatat.c (main): Likewise.
42209         * modules/stat-tests (Depends-on): Add stdbool, symlink.
42210         Reported by Jim Meyering.
42211
42212 2009-11-09  James Youngman  <jay@gnu.org>
42213
42214         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
42215         * lib/strftime.c: Correct placement of #include "ignore-value.h".
42216
42217 2009-11-08  Jim Meyering  <meyering@redhat.com>
42218
42219         utimens: remove invalid futimesat call
42220         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
42221         It used the file descriptor of the target file as the DIR_FD
42222         parameter and NULL as the file name.  That caused failure with
42223         errno == EFAULT on FreeBSD-8.0-rc2
42224
42225 2009-11-07  Eric Blake  <ebb9@byu.net>
42226
42227         fflush, freadseek: use fseeko, not fseek
42228         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
42229         (clear_ungetc_buffer): Avoid potential problems on large files.
42230         * lib/freadseek.c (freadseek): Likewise.
42231         * modules/freadseek (Depends-on): Add fseeko.
42232         * modules/fseek (configure.ac): Set a witness.
42233         * tests/test-fflush.c (main): Use fseeko.
42234         * tests/test-fpurge.c (fseek): Disable link warning.
42235         * tests/test-freadable.c (fseek): Likewise.
42236         * tests/test-freading.c (fseek): Likewise.
42237         * tests/test-fseeko.c (fseek): Likewise.
42238         * tests/test-ftell.c (fseek): Likewise.
42239         * tests/test-ftello.c (fseek): Likewise.
42240         * tests/test-fwritable.c (fseek): Likewise.
42241         * tests/test-fwriting.c (fseek): Likewise.
42242
42243 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42244
42245         * modules/memchr (Depends-on): Drop getpagesize dependency.
42246
42247 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42248
42249         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
42250         Reported by Ludovic Courtès.
42251         * build-aux/pmccabe2html: Improve example usage.
42252         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
42253
42254 2009-11-06  Jim Meyering  <meyering@redhat.com>
42255
42256         do-release-commit-and-tag: New module.
42257         Automate the release-commit and tag process.
42258         * build-aux/do-release-commit-and-tag: New script, from coreutils.
42259         * modules/do-release-commit-and-tag: New file.
42260         * MODULES.html.sh (Support for maintaining and releasing): Add it.
42261
42262 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42263
42264         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
42265         because test-select.c uses inet_pton.
42266
42267 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42268
42269         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
42270         GETADDRINFO_LIB.  Bump serial number.
42271         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
42272         Suggested by Eric Blake <ebb9@byu.net>.
42273
42274 2009-11-05  Eric Blake  <ebb9@byu.net>
42275
42276         strtod: detect darwin bug
42277         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
42278         Reported by Leo Davis.
42279
42280         freopen-safer: new module
42281         * modules/freopen-safer: New module.
42282         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
42283         * lib/freopen-safer.c (freopen_safer): New file.
42284         * lib/stdio-safer.h (freopen_safer): New declaration.
42285         * lib/stdio--.h (freopen): New override.
42286         * MODULES.html.sh (File stream based Input/Output): Mention it.
42287         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
42288         freopen-safer module.
42289         * doc/posix-functions/stderr.texi (stderr): Likewise.
42290         * doc/posix-functions/stdin.texi (stdin): Likewise.
42291         * doc/posix-functions/stdout.texi (stdout): Likewise.
42292         * modules/freopen-safer-tests: New test.
42293         * tests/test-reopen-safer.c: New file.
42294
42295 2009-11-05  Jim Meyering  <meyering@redhat.com>
42296
42297         maint.mk: Prohibit inclusion of "close-stream.h" without use.
42298         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42299
42300 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42301
42302         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
42303
42304 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42305
42306         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
42307
42308 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42309
42310         Fix link error.
42311         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42312         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42313
42314 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42315
42316         * tests/test-func.c: Also test value of __func__.
42317
42318 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42319
42320         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
42321         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
42322
42323 2009-11-05  Bruno Haible  <bruno@clisp.org>
42324
42325         Fix link error.
42326         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42327         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42328         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
42329
42330 2009-11-05  Bruno Haible  <bruno@clisp.org>
42331
42332         Tests for module 'inet_pton'.
42333         * modules/inet_pton-tests: New file.
42334         * tests/test-inet_pton.c: New file.
42335
42336 2009-11-05  Bruno Haible  <bruno@clisp.org>
42337
42338         Tests for module 'inet_ntop'.
42339         * modules/inet_ntop-tests: New file.
42340         * tests/test-inet_ntop.c: New file.
42341
42342 2009-11-04  Eric Blake  <ebb9@byu.net>
42343
42344         stdlib-safer: wrap all mkstemp variants
42345         * modules/mkostemp (configure.ac): Set witness.
42346         * modules/mkostemps (configure.ac): Likewise.
42347         * modules/mkstemps (configure.ac): Likewise.
42348         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
42349         (mkstemps_safer): Wrap more functions.
42350         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
42351         wrapping.
42352         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
42353         (mkstemps_safer): Implement the wrappers.
42354
42355         mkstemps, mkostemps: new modules
42356         * modules/mkostemps: New module.
42357         * modules/mkstemps: Likewise.
42358         * lib/mkostemps.c (mkostemps): New file.
42359         * lib/mkstemps.c (mkstemps): Likewise.
42360         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
42361         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
42362         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
42363         * modules/stdlib (Makefile.am): Substitute them.
42364         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
42365         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
42366         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
42367         * doc/gnulib.texi (Glibc stdlib.h): Include them.
42368         * MODULES.html.sh (File system functions): Mention them.
42369
42370         tempname: resync from glibc
42371         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
42372         same values for __GT_FILE as glibc.  Abort even when assertions
42373         are disabled.
42374         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
42375         match its value otherwise.  Allow idempotent inclusion.
42376         * lib/mkdtemp.c (mkdtemp): Adjust caller.
42377         * lib/mkostemp.c (mkostemp): Likewise.
42378         * lib/mkstemp.c (mkstemp): Likewise.
42379         * lib/tmpfile.c (tmpfile): Likewise.
42380         * NEWS: Document this.
42381
42382         utimens: fix use of futimens on older Linux
42383         * lib/utimens.c (fdutimens): Use updated, rather than original,
42384         timespec to avoid bug in older Linux kernel.
42385         Reported by Simon Josefsson.
42386
42387 2009-11-04  Bruno Haible  <bruno@clisp.org>
42388
42389         Make num_processors more flexible and consistent.
42390         * lib/nproc.h (enum nproc_query): New type.
42391         (num_processors): Add a 'query' argument.
42392         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
42393         (num_processors): Add a 'query' argument. Test the value of the
42394         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
42395         mingw, count the number of CPUs available for the current process.
42396         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
42397         Check for sched_getaffinity and sched_getaffinity_np.
42398         * modules/nproc (Depends-on): Add c-ctype, extensions.
42399         * NEWS: Mention the change.
42400
42401 2009-11-03  Bruno Haible  <bruno@clisp.org>
42402
42403         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
42404
42405 2009-11-03  Jim Meyering  <meyering@redhat.com>
42406
42407         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
42408         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
42409         if it is defined.
42410
42411 2009-11-02  Eric Blake  <ebb9@byu.net>
42412
42413         mktime, timegm: share common declaration
42414         * lib/mktime-internal.h: New file.
42415         * lib/mktime.c: Use it rather than open-coding a declaration.
42416         * lib/timegm.c: Likewise.
42417         * modules/mktime (Files): Ship it.
42418         * modules/timegm (Files): Likewise.
42419         Suggested by Bruno Haible.
42420
42421         test-update-copyright: update test to match script changes
42422         * tests/test-update-copyright.sh: Avoid hard-coding perl
42423         location.  Don't update *.bak created by earlier runs.
42424
42425 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42426             Simon Josefsson  <simon@josefsson.org>
42427             Bruno Haible  <bruno@clisp.org>
42428
42429         Fix link error on Solaris 8.
42430         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
42431         also in libnsl. Define also INET_PTON_LIB.
42432         * modules/inet_pton (Link): New section.
42433
42434 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42435             Bruno Haible  <bruno@clisp.org>
42436
42437         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
42438         * modules/inet_ntop (Link): New section.
42439         Reported by Boyan Kasarov <bkasarov@gmail.com>.
42440
42441 2009-11-02  Eric Blake  <ebb9@byu.net>
42442
42443         maint: avoid compiler warnings in m4 macros
42444         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
42445         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
42446
42447 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42448
42449         * m4/pmccabe2html.m4: Remove file.
42450         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
42451         function.  Change maintainer.
42452         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
42453         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
42454         Courtès).
42455
42456 2009-10-31  Eric Blake  <ebb9@byu.net>
42457
42458         fseeko: fix m4 regression
42459         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
42460         regression from 2009-10-27.
42461         Reported by Ralf Wildenhues.
42462
42463 2009-10-31  Jim Meyering  <meyering@redhat.com>
42464
42465         inttostr: aesthetics and improved (compile-time) safety
42466         Define inttype_is_signed rather than inttype_is_unsigned,
42467         since the sole use is via "#if inttype_is_signed".
42468         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
42469         inttype_is_unsigned.
42470         * lib/offtostr.c (inttype_is_signed): Likewise.
42471         * lib/uinttostr.c (inttype_is_signed): Likewise.
42472         * lib/umaxtostr.c (inttype_is_signed): Likewise.
42473         * lib/inttostr.c (inttostr): Use verify to cross-check the
42474         inttype_is_signed value and the signedness of the actual type.
42475         * modules/inttostr (Depends-on): Add verify.
42476
42477 2009-10-30  Eric Blake  <ebb9@byu.net>
42478
42479         build: avoid compiler warnings
42480         * lib/fchmodat.c (lchmod): Mark unused variables.
42481         * lib/getopt.c (_getopt_initialize): Likewise.
42482         * lib/mktime.c (__mktime_internal): Provide prototype.
42483         * lib/inttostr.c (inttostr): Avoid compiler warning even with
42484         older gcc that do not understand #pragma GCC diagnostic.
42485         * lib/uinttostr.c (inttype_is_unsigned): Define.
42486         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
42487
42488 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
42489
42490         stat: fix compilation on AIX
42491         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
42492         only see struct stat64.
42493
42494 2009-10-30  Eric Blake  <ebb9@byu.net>
42495
42496         exclude: make more robust
42497         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
42498         rather than masking a coding bug.
42499         Suggested by Bruno Haible.
42500
42501 2009-10-30  Jim Meyering  <meyering@redhat.com>
42502
42503         perl scripts: remove #!/usr/bin/perl in favor of more portable...
42504         Rather than putting #!/usr/bin/perl on the first line,
42505         start with a variant of what's recommended by "man perlrun" that
42506         invokes the first "perl" program from your shell's search path.
42507         * build-aux/gitlog-to-changelog: Replace #!... as above.
42508         Add a "Local Variables" perl mode setting.
42509         Prompted by a patch from Ludovic Courtès.
42510         Improved by Eric Blake.
42511         * build-aux/useless-if-before-free: Likewise.
42512         * build-aux/announce-gen: Likewise.
42513         * build-aux/update-copyright: Likewise.
42514
42515 2009-10-29  Eric Blake  <ebb9@byu.net>
42516
42517         filenamecat-lgpl: adjust clients
42518         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
42519         filenamecat.
42520         * modules/renameat (Depends-on): Likewise.
42521
42522         filenamecat: split into filenamecat-lgpl
42523         * modules/filenamecat-lgpl: New module.
42524         * modules/filenamecat (Files): Move library-safe files into
42525         filenamecat-lgpl.
42526         (Depends-on): Add filenamecat-lgpl.
42527         (configure.ac): Declare witness.
42528         * lib/filenamecat.h (file_name_concat): Only declare when using
42529         GPL module.
42530         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
42531         Move...
42532         * lib/filenamecat-lgpl.c: ...into new file.
42533         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
42534         (gl_FILE_NAME_CONCAT): Use it.
42535         * MODULES.html.sh (File system functions): Mention new module.
42536
42537         argp: avoid memory leak
42538         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
42539         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
42540         base_name, since the latter malloc()s and can call exit().
42541         Leak introduced 2006-07-03.
42542
42543         dirname-lgpl: adjust clients that don't need full dirname
42544         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
42545         * modules/filenamecat (Depends-on): Likewise.
42546         * modules/linkat (Depends-on): Likewise.
42547         * modules/mkancesdirs (Depends-on): Likewise.
42548         * modules/mkdir (Depends-on): Likewise.
42549         * modules/openat (Depends-on): Likewise.
42550         * modules/savewd (Depends-on): Likewise.
42551         * modules/rename (Depends-on): Likewise.
42552         (License): Relax license.
42553         * modules/mkdir-tests (Depends-on): Drop progname.
42554         (Makefile.am): Delete unneeded LDADD.
42555         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
42556
42557         dirname: split into dirname-lgpl
42558         * modules/dirname-lgpl: New module.
42559         * modules/dirname (Files): Move library-safe files into
42560         dirname-lgpl.
42561         (Depends-on): Add dirname-lgpl.
42562         (configure.ac): Declare witness.
42563         * modules/double-slash-root (License): Relax license.
42564         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
42565         module.
42566         * lib/dirname.c (dir_len, mdir_name): Move...
42567         * lib/dirname-lgpl.c: ...into new file.
42568         * lib/basename.c (last_component, base_len): Move...
42569         * lib/basename-lgpl.c: ...into new file.
42570         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
42571         (gl_DIRNAME): Use it.
42572         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
42573         Mention new module.
42574         * modules/dirname-tests (Depends-on): Add progname.
42575         * tests/test-dirname.c (program_name): Delete.
42576
42577         mkdir: make safe for libraries
42578         * modules/mkdir (Depends-on): Drop xalloc.
42579         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
42580         exit.
42581
42582         tests: avoid some compiler warnings
42583         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
42584         literals.
42585         * tests/test-memchr.c (main): Avoid type mismatch.
42586         * tests/test-arpa_inet.c (main): Avoid unused parameters.
42587         * tests/test-base64.c (main): Likewise.
42588         * tests/test-getdelim.c (main): Likewise.
42589         * tests/test-gethostname.c (main): Likewise.
42590         * tests/test-getline.c (main): Likewise.
42591         * tests/test-netinet_in.c (main): Likewise.
42592         * tests/test-select.c (open_server_socket, main): Likewise.
42593         * tests/test-select-stdin.c (main): Likewise.
42594         * tests/test-sockets.c (main): Likewise.
42595         * tests/test-strsignal.c (main): Likewise.
42596         * tests/test-sys_select.c (main): Likewise.
42597         * tests/test-sys_socket.c (main): Likewise.
42598         * tests/test-u64.c (main): Likewise.
42599         * tests/test-xfprintf-posix.c (main): Likewise.
42600         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
42601
42602         sockets: avoid compiler warning
42603         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
42604
42605         maint: detect usage(1) and other suspicious exits
42606         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
42607
42608 2009-10-29  Jim Meyering  <meyering@redhat.com>
42609
42610         timespec: long-to-int truncation could make timespec_cmp malfunction
42611         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
42612         a multiple of 2^32 nanoseconds as no difference.
42613
42614 2009-10-28  Jim Meyering  <meyering@redhat.com>
42615
42616         fprintftime: wrap macro code argument in "do {...} while(0)"
42617         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
42618         cpy macro must be a statement that can be followed by a semicolon.
42619         Now that the else clause contains a comment and is hence longer
42620         than one line, I require curly braces.  That in turn requires
42621         that we wrap this code block in the standard do...while(0).
42622
42623         fprintftime: remove stray semicolon from previous change
42624         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
42625
42626         fprintftime: avoid a warning about ignored fwrite return value
42627         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
42628         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
42629         that is unsafe.
42630         * modules/fprintftime (Depends-on): Add ignore-value.
42631
42632         exclude: avoid an unwarranted warning
42633         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
42634
42635 2009-10-27  Eric Blake  <ebb9@byu.net>
42636
42637         fseek: avoid compilation failure when fflush is replaced
42638         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
42639         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
42640         module is in use.
42641         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
42642         module is not in use; since REPLACE_FSEEK worked otherwise.
42643         (GNULIB_FTELLO): Likewise for ftell.
42644         Reported by Ian Beckwith and others.
42645
42646 2009-10-27  Bruno Haible  <bruno@clisp.org>
42647
42648         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
42649         Reported by Jim Meyering.
42650
42651 2009-10-27  Jim Meyering  <jim@meyering.net>
42652             Bruno Haible  <bruno@clisp.org>
42653
42654         Avoid warning despite dropping the return value of fwrite.
42655         * lib/unicodeio.c: Include ignore-value.h.
42656         (fwrite_success_callback): Explicitly ignore fwrite's return value.
42657         * modules/unicodeio (Depends-on): Add ignore-value.
42658
42659 2009-10-26  Eric Blake  <ebb9@byu.net>
42660
42661         areadlinkat: fix fallback path
42662         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
42663         pointer and zero.
42664
42665 2009-10-22  Pádraig Brady  <P@draigBrady.com>
42666
42667         Use a better IO block size for modern systems
42668         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
42669         * lib/md2.c: Likewise.
42670         * lib/md4.c: Likewise.
42671         * lib/md5.c: Likewise.
42672         * lib/sha1.c: Likewise.
42673         * lib/sha256.c: Likewise.
42674         * lib/sha512.c: Likewise.
42675
42676 2009-10-22  Eric Blake  <ebb9@byu.net>
42677
42678         tests: avoid several compiler warnings
42679         * tests/test-getcwd.c (main): Avoid buffer underflow.
42680         * tests/test-getdate.c (main): String literals are not safe with
42681         putenv, so use setenv.  Declare unused argument.
42682         * modules/getdate-tests (Depends-on): Add setenv.
42683         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
42684         problems with string literals in char *.
42685         * tests/test-hash.c (main): Avoid shadowing declaration.
42686         (insert_new): Treat string literals as char const *.
42687         * tests/test-getopt.h (test_getopt): Likewise.
42688         (getopt_loop): Alter types to minimize casting elsewhere.
42689         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
42690         (test_getopt_long_posix): Likewise.
42691         (do_getopt_long): Add wrapper to minimize casting.
42692         * tests/test-atexit.c (clear_temp_file): Use void.
42693         * tests/test-areadlink-with-size.c (main): Declare unused
42694         arguments.
42695         * tests/test-areadlink.c (main): Likewise.
42696         * tests/test-areadlinkat-with-size.c (main): Likewise.
42697         * tests/test-areadlinkat.c (main): Likewise.
42698         * tests/test-canonicalize-lgpl.c (main): Likewise.
42699         * tests/test-canonicalize.c (main): Likewise.
42700         * tests/test-dirent-safer.c (main): Likewise.
42701         * tests/test-dirname.c (main): Likewise.
42702         * tests/test-dup2.c (main): Likewise.
42703         * tests/test-fchdir.c (main): Likewise.
42704         * tests/test-fcntl-h.c (main): Likewise.
42705         * tests/test-fcntl-safer.c (main): Likewise.
42706         * tests/test-fdopendir.c (main): Likewise.
42707         * tests/test-fdutimensat.c (main): Likewise.
42708         * tests/test-fflush.c (main): Likewise.
42709         * tests/test-filenamecat.c (main): Likewise.
42710         * tests/test-filevercmp.c (main): Likewise.
42711         * tests/test-fopen-safer.c (main): Likewise.
42712         * tests/test-fopen.c (main): Likewise.
42713         * tests/test-fpending.c (main): Likewise.
42714         * tests/test-fpurge.c (main): Likewise.
42715         * tests/test-freading.c (main): Likewise.
42716         * tests/test-fstatat.c (main): Likewise.
42717         * tests/test-fsync.c (main): Likewise.
42718         * tests/test-futimens.c (main): Likewise.
42719         * tests/test-getndelim2.c (main): Likewise.
42720         * tests/test-gettimeofday.c (main): Likewise.
42721         * tests/test-getopt.c (main): Likewise.
42722         * tests/test-i-ring.c (main): Likewise.
42723         * tests/test-inttypes.c (main): Likewise.
42724         * tests/test-link.c (main): Likewise.
42725         * tests/test-lstat.c (main): Likewise.
42726         * tests/test-math.c (main): Likewise.
42727         * tests/test-md5.c (main): Likewise.
42728         * tests/test-memchr2.c (main): Likewise.
42729         * tests/test-memrchr.c (main): Likewise.
42730         * tests/test-mkdir.c (main): Likewise.
42731         * tests/test-mkdirat.c (main): Likewise.
42732         * tests/test-mkfifoat.c (main): Likewise.
42733         * tests/test-open.c (main): Likewise.
42734         * tests/test-openat-safer.c (main): Likewise.
42735         * tests/test-openat.c (main): Likewise.
42736         * tests/test-quotearg.c (main): Likewise.
42737         * tests/test-rawmemchr.c (main): Likewise.
42738         * tests/test-readlink.c (main): Likewise.
42739         * tests/test-remove.c (main): Likewise.
42740         * tests/test-rename.c (main): Likewise.
42741         * tests/test-renameat.c (main): Likewise.
42742         * tests/test-rmdir.c (main): Likewise.
42743         * tests/test-sha1.c (main): Likewise.
42744         * tests/test-signal.c (main): Likewise.
42745         * tests/test-sigaction.c (main): Likewise.
42746         * tests/test-stat.c (main): Likewise.
42747         * tests/test-stat-time.c (main): Likewise.
42748         * tests/test-stddef.c (main): Likewise.
42749         * tests/test-stdint.c (main): Likewise.
42750         * tests/test-stdio.c (main): Likewise.
42751         * tests/test-stdlib.c (main): Likewise.
42752         * tests/test-strchrnul.c (main): Likewise.
42753         * tests/test-strerror.c (main): Likewise.
42754         * tests/test-string.c (main): Likewise.
42755         * tests/test-strtod.c (main): Likewise.
42756         * tests/test-strverscmp.c (main): Likewise.
42757         * tests/test-symlink.c (main): Likewise.
42758         * tests/test-symlinkat.c (main): Likewise.
42759         * tests/test-sys_stat.c (main): Likewise.
42760         * tests/test-sys_time.c (main): Likewise.
42761         * tests/test-time.c (main): Likewise.
42762         * tests/test-unistd.c (main): Likewise.
42763         * tests/test-unlink.c (main): Likewise.
42764         * tests/test-unlinkat.c (main): Likewise.
42765         * tests/test-utimens.c (main): Likewise.
42766         * tests/test-utimensat.c (main): Likewise.
42767         * tests/test-version-etc.c (main): Likewise.
42768         * tests/test-wchar.c (main): Likewise.
42769         * tests/test-wctype.c (main): Likewise.
42770         * tests/test-xprintf-posix.c (main): Likewise.
42771         * tests/test-posixtm.c (main): Likewise.
42772         (STREQ): Delete unused macro.
42773         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
42774         shadowed variables.
42775         * tests/test-memchr.c (main): Likewise.
42776
42777 2009-10-21  Eric Blake  <ebb9@byu.net>
42778
42779         areadlinkat: avoid failure on older glibc
42780         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
42781         rather than mis-comparing 0 against FUNC_RESULT of char*.
42782
42783 2009-10-21  Bruno Haible  <bruno@clisp.org>
42784
42785         * modules/stpncpy (License): Relicense under LGPLv2+.
42786         Reported by David Lutterkort <lutter@redhat.com>.
42787
42788 2009-10-20  Eric Blake  <ebb9@byu.net>
42789
42790         utimensat: work around Solaris 9 bug
42791         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
42792         has trailing slash bugs.
42793         * tests/test-lutimens.h (test_lutimens): Enhance test.
42794         * tests/test-utimens.h (test_utimens): Likewise.
42795         * doc/posix-functions/utime.texi (utime): Enhance documentation.
42796         * doc/posix-functions/utimes.texi (utimes): Likewise.
42797         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42798         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
42799         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
42800         * doc/posix-functions/futimens.texi (futimens): Likewise.
42801
42802         fdutimensat: new module
42803         * modules/fdutimensat: New file.
42804         * lib/fdutimensat.c (fdutimensat): Likewise.
42805         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
42806         * MODULES.html.sh (File system functions): Mention module.
42807         * modules/fdutimensat-tests: New test.
42808         * tests/test-fdutimensat.c: Likewise.
42809
42810         doc: regenerate INSTALL
42811         * doc/INSTALL: Reflect recent autoconf update.
42812         * doc/INSTALL.ISO: Likewise.
42813         * doc/INSTALL.UTF-8: Likewise.
42814
42815 2009-10-20  Pádraig Brady  <P@draigBrady.com>
42816
42817         acl: warn if ACL support is not detected
42818         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
42819
42820 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
42821
42822         * lib/nproc.h: Add extern "C" block for C++.
42823
42824 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
42825             Bruno Haible  <bruno@clisp.org>
42826
42827         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
42828         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
42829         * doc/posix-functions/isalpha.texi: Likewise.
42830         * doc/posix-functions/isblank.texi: Likewise.
42831         * doc/posix-functions/iscntrl.texi: Likewise.
42832         * doc/posix-functions/isdigit.texi: Likewise.
42833         * doc/posix-functions/isgraph.texi: Likewise.
42834         * doc/posix-functions/islower.texi: Likewise.
42835         * doc/posix-functions/isprint.texi: Likewise.
42836         * doc/posix-functions/ispunct.texi: Likewise.
42837         * doc/posix-functions/isspace.texi: Likewise.
42838         * doc/posix-functions/isupper.texi: Likewise.
42839         * doc/posix-functions/isxdigit.texi: Likewise.
42840
42841 2009-10-18  Bruno Haible  <bruno@clisp.org>
42842
42843         Tests for module 'isblank'.
42844         * modules/isblank-tests: New file.
42845         * tests/test-isblank.c: New file.
42846
42847         New module 'isblank'.
42848         * lib/isblank.c: New file.
42849         * m4/isblank.m4: New file.
42850         * modules/isblank: New file.
42851         * doc/posix-functions/isblank.texi: Mention the new module.
42852
42853 2009-10-18  Bruno Haible  <bruno@clisp.org>
42854
42855         New module 'ctype'.
42856         * lib/ctype.in.h: New file.
42857         * m4/ctype.m4: New file.
42858         * modules/ctype: New file.
42859         * doc/posix-headers/ctype.texi: Mention the new module.
42860
42861 2009-10-18  Jim Meyering  <meyering@redhat.com>
42862
42863         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
42864         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
42865         right after its initialization, rather than farther down.
42866         Keeping these in close proximity makes it easier to ensure
42867         that each such variable is initialized.  E.g.,
42868
42869             LIB_CLOCK_GETTIME=
42870             AC_SUBST([LIB_CLOCK_GETTIME])
42871
42872         This change also increments these serial numbers.
42873         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
42874         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42875         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42876
42877 2009-10-18  Bruno Haible  <bruno@clisp.org>
42878
42879         Don't let environment variables perturb build.
42880         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
42881         (gl_PREREQ_GETHRXTIME): ... not here.
42882
42883 2009-10-18  Bruno Haible  <bruno@clisp.org>
42884
42885         Avoid symlink attack in localcharset module.
42886         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
42887         (O_NOFOLLOW): Define fallback.
42888         (get_charset_aliases): Don't open the file if it is a symbolic link.
42889         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
42890         gl_FCNTL_H.
42891         (gl_FCNTL_H): Require it.
42892         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
42893         * modules/localcharset (Files): Add m4/fcntl_h.m4.
42894         Reported by Fergal Glynn <fglynn@veracode.com>.
42895
42896 2009-10-18  Bruno Haible  <bruno@clisp.org>
42897
42898         Implement nproc for mingw.
42899         * lib/nproc.c: Include <windows.h>
42900         (num_processors): On native Windows platforms, try GetSystemInfo.
42901
42902 2009-10-18  Bruno Haible  <bruno@clisp.org>
42903
42904         Implement nproc for IRIX.
42905         * lib/nproc.c: Include <sys/sysmp.h>.
42906         (num_processors): On IRIX systems, try sysmp.
42907         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
42908
42909 2009-10-18  Bruno Haible  <bruno@clisp.org>
42910
42911         Implement nproc for HP-UX.
42912         * lib/nproc.c: Include <sys/pstat.h>
42913         (num_processors): On HP-UX systems, try pstat_getdynamic.
42914         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
42915         pstat_getdynamic.
42916
42917 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
42918             Bruno Haible  <bruno@clisp.org>
42919
42920         Implement nproc for NetBSD, OpenBSD.
42921         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
42922         (ARRAY_SIZE): New macro.
42923         (num_processors): On BSD systems, try sysctl of HW_NCPU.
42924         * m4/nproc.m4: New file.
42925         * modules/nproc (Files): Add m4/nproc.m4.
42926         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
42927         (Makefile.am): Instead, augment lib_SOURCES.
42928
42929 2009-10-18  Bruno Haible  <bruno@clisp.org>
42930
42931         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
42932         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
42933         sys/param.h.
42934
42935 2009-10-16  Eric Blake  <ebb9@byu.net>
42936
42937         utimensat: new module
42938         * modules/utimensat: New file.
42939         * lib/utimensat.c (utimensat): Likewise.
42940         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42941         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
42942         so we can work around Linux bugs.
42943         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42944         * modules/sys_stat (Makefile.am): Substitute them.
42945         * lib/sys_stat.in.h (utimensat): Declare it.
42946         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42947         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42948         * modules/utimensat-tests: New test.
42949         * tests/test-utimensat.c: Likewise.
42950
42951         utimens: let lutimens work on non-symlinks
42952         * lib/utimens.c (lutimens): Fall back to utimens rather than
42953         failing with ENOSYS, when file is not a symlink.
42954         (utimens): Reduce redirection.
42955         * tests/test-lutimens.h (test_lutimens): Update test to cover
42956         non-symlinks.
42957         * tests/test-utimens.h (test_utimens): Update test to cover
42958         symlinks.
42959         * tests/test-utimens.c (main): Update caller.
42960
42961         utimens: cache whether utimensat syscall works
42962         * lib/utimens.c (utimensat_works_really): New cache variable.
42963         (fdutimens, lutimens): Use it to avoid failing syscall.
42964
42965         test-stat-time, test-utimens: improve portability
42966         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
42967         ext4 on alpha, and for cygwin.
42968         * tests/test-utimens-common.h: New file.
42969         (nap): Factor delays into single function.
42970         * tests/test-lutimens.h (test_lutimens): Use new header.
42971         * tests/test-futimens.h (test_futimens): Likewise.
42972         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
42973         timestamps to occur from same machine, as was done previously for
42974         test_utimens.
42975         * modules/utimens-tests (Files): Ship new file.
42976         * modules/futimens-tests (Files): Likewise.
42977         Reported in part by Jim Meyering.
42978
42979         sys_stat: sort replacement declarations
42980         * lib/sys_stat.in.h: Sort declarations.
42981         * lib/futimens.c (futimens): Fix typo.
42982
42983 2009-10-15  Jim Meyering  <meyering@redhat.com>
42984
42985         don't let environment settings perturb build
42986         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
42987         could cause a configure-time and/or build-time malfunction.
42988         Typically, a configure-time function-in-library test is performed
42989         via code like this:
42990
42991           LIB_VAR=
42992           AC_SUBST([LIB_VAR])
42993           prefix_saved_LIBS=$LIBS
42994             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
42995                        [test "$ac_cv_search_FUNC" = "none required" ||
42996                         LIB_VAR=$ac_cv_search_FUNC])
42997           LIBS=$prefix_saved_LIBS
42998
42999         However, in each of the files affected by this change, the LIB_VAR=
43000         initialization was omitted.  Thus, when set in the environment, its
43001         value would propagate into generated Makefiles when FUNC is not found
43002         in LIB_NAME.
43003         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
43004         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43005         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43006
43007 2009-10-14  Eric Blake  <ebb9@byu.net>
43008
43009         fchdir: avoid infinite recursion in mingw
43010         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
43011         recursing.
43012
43013         test-stat-time: port to mingw
43014         * tests/test-stat-time.c (force_unlink): Return a value.
43015         (test_ctime) [W32]: Fix compilation error.
43016         (nap): Don't call usleep with too large an argument.  Use
43017         force_unlink.
43018         * doc/pastposix-functions/usleep.texi (usleep): Document the
43019         portability issue.
43020
43021 2009-10-13  Jim Meyering  <meyering@redhat.com>
43022
43023         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
43024         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
43025         * modules/pipe-filter-ii: Likewise.
43026         * modules/sys_socket-tests: Likewise.
43027         * modules/tsearch-tests: Likewise.
43028         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
43029         (check): Depend on it.
43030
43031 2009-10-12  Eric Blake  <ebb9@byu.net>
43032
43033         utimens-tests: port to NFS file systems
43034         * tests/test-utimens.h (test_utimens): Refactor utimecmp
43035         comparisons to avoid spurious failures from timestamp drift
43036         between NFS machines.
43037
43038 2009-10-12  Eric Blake  <ebb9@byu.net>
43039
43040         stat-time-tests: minor cleanups
43041         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
43042         * tests/test-stat-time.c (nap): Separate assignment from call.
43043         Suggested by Paolo Bonzini and Bruno Haible.
43044
43045         sys_stat: guarantee struct timespec
43046         * lib/sys_stat.in.h (includes): Always include <time.h>
43047         * modules/sys_stat (Depends-on): Add time.
43048         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
43049         mode_t permission values.
43050         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
43051         get at subsecond timestamps.
43052
43053 2009-10-10  Eric Blake  <ebb9@byu.net>
43054
43055         futimens: new module
43056         * modules/futimens: New file.
43057         * lib/futimens.c (futimens): Likewise.
43058         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
43059         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
43060         we can work around Linux bugs.
43061         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43062         * modules/sys_stat (Makefile.am): Substitute them.
43063         * lib/sys_stat.in.h (futimens): Declare it.
43064         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43065         * doc/posix-functions/futimens.texi (futimens): Likewise.
43066         * modules/futimens-tests: New test.
43067         * tests/test-futimens.c: Likewise.
43068
43069         utimens: introduce fdutimens
43070         * lib/utimens.h (fdutimens): New prototype.
43071         * lib/utimens.c (gl_futimens): Move guts...
43072         (fdutimens): ...to new interface.
43073         * tests/test-utimens.c (do_fdutimens): Use it.
43074
43075         utimens: add UTIME_NOW and UTIME_OMIT support
43076         * lib/utimens.c (validate_timespec, update_timespec): New helper
43077         functions.
43078         (gl_futimens, lutimens): Use them.
43079         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
43080         stdbool, sys_stat.
43081         (Link): Mention resulting library dependency.
43082         * modules/utimecmp (Link): Likewise.
43083         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
43084         (Makefile.am): Pick up library dependency.
43085         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
43086         definition.
43087         * tests/test-sys_stat.c: Test the definitions.
43088         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
43089         * NEWS: Document library dependency.
43090
43091         utimecmp: support symlink timestamps
43092         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
43093         hashing when possible.  Use pathconf when available.
43094         (SYSCALL_RESOLUTION): Recognize tighter resolution.
43095         * modules/utimecmp (Depends-on): Add lstat.
43096
43097         utimens: add lutimens interface
43098         * lib/utimens.c (lutimens): New function.
43099         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
43100         * lib/utimens.h (lutimens): Declare new interface.
43101         * tests/test-utimens.c (main): Enhance test.
43102         * tests/test-lutimens.h (test_lutimens): New file.
43103         * modules/utimens-tests (Files): Distribute it.
43104         (Depends-on): Add symlink.
43105         (configure.ac): Check for usleep.
43106
43107         utimens: validate futimens usage
43108         * lib/utimens.c (gl_futimens): Require valid fd up front, using
43109         fewer syscalls on failure later on.  Avoid compiler warning on
43110         mingw.
43111         * modules/utimens (Depends-on): Add dup2.
43112
43113         utimens: add test
43114         * modules/utimens-tests: New test.
43115         * tests/test-utimens.h: New file.
43116         * tests/test-futimens.h: Likewise.
43117         * tests/test-utimens.c: Likewise.
43118
43119         doc: mention timestamp portability issues
43120         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
43121         instead.
43122         * doc/posix-functions/utime.texi (utime): Likewise.
43123         * doc/posix-functions/utimes.texi (utimes): Likewise.
43124         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
43125         instead.
43126         * doc/posix-functions/futimens.texi (futimens): Mention utimens
43127         module.
43128         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43129         Mention weakness with symlink timestamps.
43130         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
43131         to utimensat/futimens instead.
43132         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
43133
43134         test-dup2: enhance test
43135         * tests/test-dup2.c (main): Also check AT_FDCWD.
43136
43137         test-stat-time: avoid more spurious failures
43138         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
43139         xfs; and avoid race if the two timestamps cross quantization edge.
43140
43141         relocatable: prefer 'file system' over 'filesystem'
43142         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
43143         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
43144         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
43145         * doc/relocatable.texi (Enabling Relocatability): Likewise.
43146         * lib/relocatable.c (compute_curr_prefix): Likewise.
43147
43148 2009-10-10  Jim Meyering  <meyering@redhat.com>
43149
43150         stat-time-tests: check for the usleep function
43151         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
43152
43153 2009-10-10  Bruno Haible  <bruno@clisp.org>
43154
43155         * modules/xnanosleep: Put the Link section after the Include section.
43156
43157 2009-10-09  Eric Blake  <ebb9@byu.net>
43158
43159         dup2: work around FreeBSD 6.1 bug
43160         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
43161         * doc/posix-functions/dup2.texi (dup2): Document it.
43162         Reported by Nelson H. F. Beebe and Jim Meyering.
43163
43164         test-stat-time: port to buggy NFS clients
43165         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
43166         (test_ctime): Also skip test if mtime and ctime are skewed.
43167
43168         maint: prefer 'file system' over 'filesystem'
43169         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43170         * doc/posix-functions/lstat.texi (lstat): Likewise.
43171         * lib/file-has-acl.c (file_has_acl): Likewise.
43172         * lib/fwriteerror.c [TEST]: Likewise.
43173         * tests/test-areadlink.h (test_areadlink): Likewise.
43174         * tests/test-areadlinkat-with-size.c (main): Likewise.
43175         * tests/test-areadlinkat.c (main): Likewise.
43176         * tests/test-canonicalize-lgpl.c (main): Likewise.
43177         * tests/test-canonicalize.c (main): Likewise.
43178         * tests/test-fstatat.c (main): Likewise.
43179         * tests/test-linkat.c (main): Likewise.
43180         * tests/test-lstat.h (test_lstat_func): Likewise.
43181         * tests/test-mkdir.h (test_mkdir): Likewise.
43182         * tests/test-readlink.h (test_readlink): Likewise.
43183         * tests/test-remove.c (main): Likewise.
43184         * tests/test-rename.h (test_rename): Likewise.
43185         * tests/test-renameat.c (main): Likewise.
43186         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43187         * tests/test-symlink.h (test_symlink): Likewise.
43188         * tests/test-symlinkat.c (main): Likewise.
43189         * tests/test-unlink.h (test_unlink_func): Likewise.
43190         * tests/test-unlinkat.c (main): Likewise.
43191
43192         maint: make realtime library usage explicit
43193         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
43194         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
43195         * modules/settime (Link): Likewise.
43196         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
43197
43198         test-stat-time: speed up execution
43199         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
43200         warning on mingw.
43201         (nap): New helper function.
43202         (prepare_test): Use it to reduce sleep time.
43203         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
43204         execution.
43205         * modules/stat-time-tests (configure.ac): Check for usleep.
43206
43207 2009-10-09  Jim Meyering  <meyering@redhat.com>
43208
43209         selinux-h: always use getfilecon wrappers
43210         * lib/getfilecon.c: New file.
43211         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
43212         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
43213         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
43214         (fgetfilecon): Provide a stub.
43215         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
43216         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
43217         file unconditionally.
43218         When <selinux/selinux.h> is found, arrange to use wrappers.
43219         * modules/selinux-h (Files): Add getfilecon.c.
43220         (Makefile.am): Substitute include-next-related bits
43221         into the now-always-generated selinux/selinux.h file.
43222         * doc/glibc-functions/lgetfilecon.texi: New file.
43223         * doc/glibc-functions/fgetfilecon.texi: New file.
43224         * doc/glibc-functions/getfilecon.texi: New file.
43225         * doc/glibc-functions/getfilecon-desc.texi: New file.
43226         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
43227         which to pull in the new files.
43228         * MODULES.html.sh (Misc): Add selinux-h.
43229
43230 2009-10-08  Jim Meyering  <meyering@redhat.com>
43231
43232         unistd: fix comment typo
43233         * lib/unistd.in.h (euidaccess): Fix a comment typo.
43234
43235 2009-10-08  Eric Blake  <ebb9@byu.net>
43236
43237         areadlink: use SIZE_MAX consistently
43238         * modules/areadlink (Depends-on): Add stdint.
43239         * modules/areadlink-with-size (Depends-on): Likewise.
43240         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
43241         gives NULL; drop sys/types, since unistd gives size_t; and add
43242         stdint for SIZE_MAX.
43243         (SIZE_MAX): Rely on headers.
43244         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
43245         and add stdint.
43246         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
43247         (SIZE_MAX): Likewise.
43248         (INITIAL_BUF_SIZE): Turn into enum.
43249         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
43250
43251 2009-10-08  Jim Meyering  <meyering@redhat.com>
43252
43253         areadlinkat: avoid compilation failure
43254         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
43255         Fix typo in comment.
43256
43257 2009-10-07  Eric Blake  <ebb9@byu.net>
43258
43259         areadlinkat-with-size: new module
43260         * modules/areadlinkat-with-size: New module.
43261         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
43262         * lib/areadlink.h (areadlinkat): Declare it.
43263         * MODULES.html.sh (File system functions): Mention it.
43264         * modules/areadlinkat-with-size-tests: New test.
43265         * tests/test-areadlinkat-with-size.c: New file.
43266
43267         xreadlinkat: new module
43268         * modules/xreadlinkat: New module.
43269         * lib/xreadlinkat.c (xreadlinkat): New file.
43270         * lib/xreadlink.h (xreadlinkat): Declare it.
43271         * MODULES.html.sh (File system functions): Mention it.
43272
43273         areadlinkat: new module
43274         * lib/at-func.c (FUNC_FAIL): New define.
43275         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
43276         * modules/areadlinkat: New module.
43277         * lib/linkat.c (areadlinkat): Move...
43278         * lib/areadlinkat.c (areadlinkat): ...to new file.
43279         * lib/areadlink.h (areadlinkat): Declare it.
43280         * modules/linkat (Depends-on): Add areadlinkat.
43281         * MODULES.html.sh (File system functions): Mention it.
43282         * modules/areadlinkat-tests: New test.
43283         * tests/test-areadlinkat.c: New file.
43284
43285         areadlink, areadlink-with-size: add tests
43286         * modules/areadlink-tests: New test.
43287         * modules/areadlink-with-size-tests: Likewise.
43288         * tests/test-areadlink.h: New file.
43289         * tests/test-areadlink.c: Likewise.
43290         * tests/test-areadlink-with-size.c: Likewise.
43291
43292         maint: minor cleanups
43293         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
43294         _UNUSED_PARAMETER_ instead.
43295         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
43296         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
43297         * modules/linkat-tests (Files): Distribute test-link.h.
43298
43299         openat, utimens: whitespace cleanup
43300         * lib/openat.c: Prefer space throughout, rather than mix of 8
43301         spaces vs. tabs.
43302         * lib/at-func.c: Likewise.
43303         * lib/utimens.c: Likewise.
43304
43305         openat: avoid using wrong fd
43306         * lib/openat.c (openat_permissive): Reject user's fd if saving the
43307         working directory chooses same fd.
43308         * lib/at-func.c (AT_FUNC_NAME): Likewise.
43309
43310         mkdir, mkdirat: fix cygwin 1.5.x bug
43311         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
43312         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
43313         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
43314         bug.
43315         (gl_PREREQ_MKDIR): Delete unused macro.
43316         * modules/mkdir (Files): Track file rename.
43317         (configure.ac): Update macro name.
43318         * modules/openat (Depends-on): Add mkdir.
43319         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
43320
43321         mkdir, mkdirat: add tests
43322         * modules/mkdir-tests: New test.
43323         * tests/test-mkdir.h: New file.
43324         * tests/test-mkdir.c: Likewise.
43325         * tests/test-mkdirat.c: Likewise.
43326         * modules/openat-tests (Files): Add new files.
43327         (Makefile.am): Run new test.
43328
43329 2009-10-06  Eric Blake  <ebb9@byu.net>
43330
43331         doc: tweak *at function documentation
43332         * doc/posix-functions/faccessat.texi (faccessat): Mention
43333         known issue with replacement.
43334         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
43335         * doc/posix-functions/linkat.texi (linkat): Likewise.
43336         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43337         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43338         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43339         * doc/posix-functions/renameat.texi (renameat): Likewise.
43340         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43341
43342         openat: fix GNU/Hurd bug in unlinkat
43343         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
43344         broken.
43345         * doc/posix-functions/unlink.texi (unlink): Document this.
43346         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
43347
43348         fdopendir: fix GNU/Hurd bug
43349         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
43350         allowing non-directory fds.
43351         * lib/fdopendir.c (rpl_fdopendir): Work around it.
43352         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
43353         * modules/dirent (Makefile.am): Substitute it.
43354         * lib/dirent.in.h (fdopendir): Declare replacement.
43355         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
43356         * tests/test-fdopendir.c (main): Test something other than
43357         /dev/null, since on Hurd that behaves like a directory.
43358
43359         test-symlink: port to GNU/Hurd
43360         * tests/test-symlink.h (test_symlink): Relax expected errno.
43361
43362         doc: tweak more cygwin information
43363         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
43364         now compatible with glibc.
43365         * doc/posix-functions/getopt.texi (getopt): Likewise.
43366
43367         getopt-gnu: add another test
43368         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
43369         guarantee behavior relied on by m4.
43370         * tests/test-getopt.c (main): Use it.
43371         * modules/getopt-posix-tests (Depends-on): Add setenv.
43372         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
43373
43374         getopt: fix compilation on darwin
43375         * lib/getopt.in.h (includes): Leave breadcrumbs during system
43376         include.
43377         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
43378         Reported by Ludovic Courtès.
43379
43380 2009-10-06  Bruno Haible  <bruno@clisp.org>
43381
43382         * modules/size_max (Description): Discourage its use.
43383         Reported by Simon Josefsson.
43384
43385 2009-10-06  Jim Meyering  <meyering@redhat.com>
43386
43387         linkat: avoid compilation failure
43388         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
43389
43390 2009-10-05  Eric Blake  <ebb9@byu.net>
43391
43392         linkat: support Linux 2.6.17
43393         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
43394         linkat on Linux, but allow cache variable override.
43395         * lib/linkat.c (rpl_linkat): Define override.
43396         * modules/linkat (Depends-on): Add symlinkat.
43397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
43398         * modules/unistd (Makefile.am): Substitute it.
43399         * lib/unistd.in.h (linkat): Declare replacement.
43400         Reported by Pádraig Brady.
43401
43402         quotearg: port test to systems with C.UTF-8 locale
43403         * tests/test-quotearg.c (struct result_strings): Add another
43404         member, differentiating between C.ASCII and C.UTF-8 handling.
43405         (compare_strings): Add parameter.
43406         (main): Adjust all callers.
43407
43408         getopt: avoid clash with FreeBSD _getopt_internal
43409         * lib/getopt.in.h (_getopt_internal): Override the name.
43410         * lib/getopt_int.h (includes): Pick up any overrides.
43411         Reported by Reuben Thomas.
43412
43413         hash: allow C89 compilation
43414         * lib/hash.c (check_tuning): Move declaration before statement.
43415         Reported by Reuben Thomas.
43416
43417 2009-10-05  Karl Berry  <karl@gnu.org>
43418
43419         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
43420
43421 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
43422             Bruno Haible  <bruno@clisp.org>
43423
43424         * lib/uname.c (uname): Use a table-driven algorithm to compute
43425         Windows NT versions.
43426
43427 2009-10-04  Bruno Haible  <bruno@clisp.org>
43428
43429         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
43430         program_invocation_short_name.
43431         * modules/progname (configure.ac): Test for presence of
43432         program_invocation_short_name.
43433         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43434
43435 2009-10-04  Bruno Haible  <bruno@clisp.org>
43436
43437         * lib/progname.c (set_program_name): Fix comment.
43438         Reported by Jim Meyering.
43439
43440 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43441             Bruno Haible  <bruno@clisp.org>
43442
43443         * lib/uname.c: Include <string.h>.
43444         (uname): Do only one call to GetVersionEx in the common case.
43445
43446 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43447             Bruno Haible  <bruno@clisp.org>
43448
43449         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
43450         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
43451         (uname): Add support for Windows CE and various non-x86 CPU types.
43452
43453 2009-10-03  Bruno Haible  <bruno@clisp.org>
43454
43455         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
43456         invocation to tests/configure.ac.
43457         Reported by Ian Beckwith <ianb@erislabs.net>.
43458
43459 2009-10-02  Eric Blake  <ebb9@byu.net>
43460
43461         fchdir: avoid compiler warning
43462         * lib/fchdir.c (canonicalize_file_name)
43463         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
43464
43465         test-open: support mingw errno values
43466         * tests/test-open.h (test_open): Relax test.
43467         * tests/test-fopen.h (test_fopen): Likewise.
43468         * tests/test-openat-safer.c (main): Likewise.
43469
43470         open: fix opening directory on mingw
43471         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
43472
43473         test-open: on GNU/Hurd, /dev/null is a directory
43474         * tests/test-fopen.h (main): Rename...
43475         (test_fopen): ...to this.  Use a guaranteed non-directory when
43476         confirming open behavior on trailing slash.
43477         * tests/test-openat-safer.c (main): Likewise.
43478         * tests/test-open.h (main): Likewise....
43479         (test_open): ...to this.
43480         * tests/test-fopen.c (main): Adjust caller.
43481         * tests/test-fopen-safer.c (main): Likewise.
43482         * tests/test-open.c (main): Likewise.
43483         * tests/test-fcntl-safer.c (main): Likewise.
43484         Reported by Samuel Thibault.
43485
43486         rename, fchdir: don't ignore chdir failure
43487         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
43488         * lib/rename.c (rpl_rename) [W32]: Likewise.
43489         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
43490         an empty destination directory if source cannot be renamed,
43491         although there is still possibility for failure.
43492         * doc/posix-functions/rename.texi (rename): Document the race.
43493         Reported by Jim Meyering.
43494
43495         maint: cleanup whitespace in recent commits
43496         * lib/rename.c (rpl_rename): Remove tabs.
43497         * tests/test-link.h (test_link): Likewise.
43498         * lib/fchdir.c (get_name): Likewise.
43499         Reported by Jim Meyering.
43500
43501 2009-10-02  Ben Pfaff  <blp@gnu.org>
43502
43503         relocatable-prog-wrapper: Add missing dependency on
43504         double-slash-root.
43505         * modules/relocatable-prog-wrapper: Add dependency.
43506         Reported by Ian Beckwith <ianb@erislabs.net>.
43507
43508 2009-10-02  Eric Blake  <ebb9@byu.net>
43509
43510         renameat: fix Solaris bugs
43511         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
43512         needed fixing.
43513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
43514         * modules/stdio (Makefile.am): Substitute it.
43515         * lib/stdio.in.h (renameat): Declare replacement.
43516         * lib/renameat.c (rpl_renameat): Implement fix.
43517
43518         renameat: new module
43519         * modules/renameat: New file.
43520         * lib/renameat.c (renameat): Likewise.
43521         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
43522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43523         * modules/stdio (Makefile.am): Substitute them.
43524         * lib/stdio.in.h (renameat): Declare it.
43525         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43526         * doc/posix-functions/renameat.texi (renameat): Likewise.
43527         * modules/renameat-tests: New test.
43528         * tests/test-renameat.c: Likewise.
43529
43530         rename: fix mingw bugs
43531         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
43532         directory overwrite bugs.
43533
43534         rename: fix another cygwin 1.5 bug
43535         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
43536         checks.
43537         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
43538         unnecessary cygwin workarounds.  Also work around bug with moving
43539         full directory onto an empty one.
43540         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
43541
43542         rename-dest-slash: merge into rename module
43543         * modules/rename-dest-slash (Status): Mark obsolete.
43544         (Depends-on): Add rename.
43545         (Files): Let rename do it all.
43546         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
43547         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
43548         * m4/rename-dest-slash.m4: ...so this file can be deleted.
43549         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
43550         * lib/rename.c (rpl_rename): Update comments.
43551
43552         rename: fix cygwin 1.5.x bugs
43553         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
43554         * lib/rename.c (rpl_rename): Work around them.
43555         * modules/rename (Depends-on): Add same-inode.
43556
43557         rename: fix Solaris 10 bug
43558         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43559         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
43560         was the only bug.
43561
43562         rename: fix Solaris 9 bug
43563         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
43564         on non-directory.  Avoid calling exit.
43565         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
43566         strdup.
43567         * modules/rename-tests (Depends-on): Drop lstat.
43568         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43569         (gl_PREREQ_RENAME): Delete unused macro.
43570
43571         rename-dest-slash: fix NetBSD bug
43572         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
43573         links.
43574         * modules/rename-dest-slash (Depends-on): Add same-inode.
43575
43576         rename-tests: new test, exposes several platform bugs
43577         * modules/rename-tests: New file.
43578         * tests/test-rename.h: Likewise.
43579         * tests/test-rename.c: Likewise.
43580         * doc/posix-functions/rename.texi (rename): Improve documentation,
43581         including bugs that will eventually be fixed in gnulib.
43582
43583 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
43584
43585         * lib/uname.c: Include <stdlib.h>
43586         (uname): Assume version info is available.
43587
43588 2009-10-02  Jim Meyering  <meyering@redhat.com>
43589
43590         gnu-web-doc-update: correct --help output
43591         * build-aux/gnu-web-doc-update: Make --help output relevant.
43592
43593         gnu-web-doc-update: add standard options
43594         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
43595
43596         gnu-web-doc-update: New module.
43597         Use this script to automatically update the on-line web documentation
43598         for your GNU project at http://www.gnu.org/software/$pkg/manual/
43599         * modules/gnu-web-doc-update: New file, from coreutils.
43600         * build-aux/gnu-web-doc-update: New script.
43601
43602 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
43603
43604         link: LoadLibrary is not needed.
43605         * lib/link.c: Use GetModuleHandle.
43606
43607 2009-10-01  Eric Blake  <ebb9@byu.net>
43608
43609         getopt: bump serial number
43610         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
43611         change.
43612
43613         tests: tighten link, rmdir, and remove tests
43614         * tests/test-link.h (includes): No need to use <config.h> here.
43615         Clean up if directory hard link was created, otherwise test for
43616         trailing '.'.
43617         * tests/test-linkat.c (main): Simplify.
43618         * tests/test-remove.c (main): Enhance test for trailing '.'.
43619         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43620
43621 2009-10-01  Jim Meyering  <meyering@redhat.com>
43622
43623         maint.mk: requiring "make major" was annoying, for a "minor" release.
43624         What is intended is "stable", to contrast with alpha and beta,
43625         so require "make stable", not "make major".
43626         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
43627         (get_tool_versions): Likewise.
43628         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
43629
43630 2009-09-30  Ben Pfaff  <blp@gnu.org>
43631
43632         Fix broken build of replacement for Windows tmpfile().
43633         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
43634         flags argument added along with the 'mkostemp' module.
43635
43636 2009-09-28  Bruno Haible  <bruno@clisp.org>
43637
43638         Avoid identifier clash with POSIX function 'remove' defined as a macro.
43639         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
43640         to 'remove_elt'.
43641         (gl_list_remove): Update.
43642         * lib/gl_list.c (gl_list_remove): Update.
43643         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
43644         to 'remove_elt'.
43645         (gl_oset_remove): Update.
43646         * lib/gl_list.c (gl_oset_remove): Update.
43647         Reported by Eric Blake.
43648
43649 2009-09-28  Eric Blake  <ebb9@byu.net>
43650
43651         doc: mention yet more cygwin 1.7 status
43652         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
43653         cygwin.
43654         * doc/glibc-functions/execvpe.texi (execvpe): New file.
43655         * doc/gnulib.texi (Glibc unistd.h): Mention it.
43656
43657         argp: fix test failure
43658         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
43659         that are not upper-case.  Pass correct range to tolower.
43660
43661 2009-09-27  Jim Meyering  <meyering@redhat.com>
43662
43663         test-yesno: work around sparc-dash here-document infelicity
43664         Without this change, the literal \177 byte in a here document
43665         would make dash 0.5.5.1-3 access uninitialized memory.
43666         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
43667         Instead, use a marker, "@", and filter through tr to create the desired
43668         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
43669
43670 2009-09-27  Bruno Haible  <bruno@clisp.org>
43671
43672         Disable untested support for new flavours of ACLs on AIX.
43673         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
43674         progress.
43675         * lib/set-mode-acl.c (qset_acl): Likewise.
43676
43677 2008-12-07  Bruno Haible  <bruno@clisp.org>
43678
43679         Add support for new flavours of ACLs on AIX. (Untested.)
43680         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
43681         (file_has_acl): Add support for newer AIX.
43682         * lib/set-mode-acl.c (qset_acl): Likewise.
43683         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
43684         Rainer Tammer <tammer@tammer.net>.
43685
43686 2009-09-26  Eric Blake  <ebb9@byu.net>
43687
43688         argp: fix compilation of getopt
43689         * lib/getopt.in.h (includes): Use different guard than glibc.
43690         Reported by Sergey Poznyakoff.
43691
43692         doc: mention more cygwin 1.7 status
43693         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
43694         bug.
43695         * doc/posix-functions/execl.texi (execl): Likewise.
43696         * doc/posix-functions/execle.texi (execle): Likewise.
43697         * doc/posix-functions/execlp.texi (execlp): Likewise.
43698         * doc/posix-functions/execv.texi (execv): Likewise.
43699         * doc/posix-functions/execve.texi (execve): Likewise.
43700         * doc/posix-functions/execvp.texi (execvp): Likewise.
43701         * doc/glibc-functions/canonicalize_file_name.texi
43702         (canonicalize_file_name): Cygwin 1.7 now provides this.
43703         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
43704         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
43705         on AT_SYMLINK_NOFOLLOW.
43706
43707 2009-09-24  Eric Blake  <ebb9@byu.net>
43708
43709         test-linkat: make test more robust
43710         * tests/test-linkat.c (main): Avoid collision with EEXIST.
43711
43712         getopt: fix inclusion guards for cygwin
43713         * modules/getopt-posix (Depends-on): Add include-next.
43714         (Makefile.am): Substitute more items in replacement header.
43715         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
43716         <getopt.h>.
43717         * lib/getopt.in.h (includes): Use split inclusion guard, and
43718         prefer <getopt.h> over include <unistd.h> when one is present.
43719         (option): Also override name of 'struct option'.
43720
43721         same-inode: revert prior change; it is not yet ready
43722         * NEWS: Undo mention of this change.
43723         * lib/same-inode.h (same-inode.h): Undo tri-state change.
43724         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43725         * lib/cycle-check.c (cycle_check): Likewise.
43726         * lib/same.c (same_name): Likewise.
43727         * lib/at-func2.c (at_func2): Likewise.
43728
43729 2009-09-23  Eric Blake  <ebb9@byu.net>
43730
43731         linkat: new module
43732         * modules/linkat: New file.
43733         * lib/at-func2.c (at_func2): Likewise.
43734         * lib/linkat.c (linkat): Likewise.
43735         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
43736         * lib/openat-priv.h (at_func2): Add declaration.
43737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43738         * modules/unistd (Makefile.am): Substitute them.
43739         * lib/unistd.in.h (linkat): Declare it.
43740         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43741         * doc/posix-functions/linkat.texi (linkat): Likewise.
43742         * doc/posix-functions/link.texi (link): Tweak wording.
43743         * tests/test-link.c (main): Move guts...
43744         * tests/test-link.h (test_link): ...into new file.
43745         * modules/linkat-tests: New test.
43746         * tests/test-linkat.c: Likewise.
43747         * modules/link-tests (Files): Ship new file.
43748         (Depends-on): Add stdbool.
43749
43750         dirname: add library-safe mdir_name
43751         * lib/dirname.h (mdir_name): New prototype.
43752         * lib/dirname.c (dir_name): Move guts...
43753         (mdir_name): ...to new function that avoids xalloc_die.
43754
43755         fchdir: another mingw fix
43756         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
43757         * lib/fchdir.c (get_name): New helper method; skips canonicalize
43758         on mingw (where it has not yet been ported), and make it optional
43759         elsewhere.
43760         (_gl_register_fd): Use it.
43761
43762         same-inode: make SAME_INODE tri-state, to port to mingw
43763         * NEWS: Mention this change.
43764         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
43765         st_ino always being 0.
43766         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43767         * lib/cycle-check.c (cycle_check): Likewise.
43768         * lib/same.c (same_name): Likewise.
43769
43770         lstat: avoid mingw compilation error
43771         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
43772         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
43773         lstat ourselves.
43774         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
43775         was adequate.
43776         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
43777         the checks for lstat.
43778         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
43779
43780         link: fix test failure on Solaris 9
43781         * lib/link.c (rpl_link): Don't assume link will catch bogus
43782         trailing slash on source.
43783
43784         test-symlinkat: enhance test
43785         * tests/test-readlink.c (main): Move guts...
43786         * tests/test-readlink.h (test_readlink): ...into new file.
43787         * tests/test-symlink.c (main): Move guts...
43788         * tests/test-symlink.h (test_symlink): ...into new file.
43789         * tests/test-symlinkat.c (main): Use new files for further
43790         coverage.
43791         (do_symlink, do_readlink): New helper functions.
43792         * modules/symlink-tests (Files): Ship new file.
43793         (Depends-on): Add stdbool.
43794         * modules/readlink-tests (Files): Ship new file.
43795         (Depends-on): Add stdbool.
43796         * modules/symlinkat-tests (Files): Use new files.
43797
43798 2009-09-23  Eric Blake  <ebb9@byu.net>
43799
43800         readlink: document portability issue with symlink length
43801         * doc/posix-functions/lstat.texi (lstat): Mention that some file
43802         systems have bogus st_size on symlinks, and mention the
43803         areadlink-with-size module.
43804         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43805         * doc/posix-functions/readlink.texi (readlink): Mention the
43806         areadlink module, and ERANGE failure.
43807         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43808         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
43809
43810         readlink: fix Solaris 9 bug with trailing slash
43811         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
43812         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
43813         * doc/posix-functions/readlink.texi (readlink): Document this.
43814         * modules/readlink-tests: New test.
43815         * tests/test-readlink.c: Likewise.
43816
43817         readlink: fix cygwin 1.5.x bug with return type
43818         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
43819         * lib/unistd.in.h (readlink): Use ssize_t.
43820         * lib/readlink.c (readlink): Likewise.
43821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43822         * modules/unistd (Makefile.am): Substitute it.
43823         * lib/unistd.in.h (readlink): Declare replacement.
43824         * doc/posix-functions/readlink.texi (readlink): Document this.
43825
43826         symlink: use throughout gnulib
43827         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
43828         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
43829         symlink is not used.
43830         * modules/symlinkat (Depends-on): Add symlink.
43831         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43832         * modules/canonicalize-tests (Depends-on): Likewise.
43833         * modules/lstat-tests (Depends-on): Likewise.
43834         * modules/openat-tests (Depends-on): Likewise.
43835         * modules/remove-tests (Depends-on): Likewise.
43836         * modules/rmdir-tests (Depends-on): Likewise.
43837         * modules/unlink-tests (Depends-on): Likewise.
43838         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
43839         * tests/test-canonicalize.c (symlink): Likewise.
43840         * tests/test-fstatat.c (symlink): Likewise.
43841         * tests/test-lstat.c (symlink): Likewise.
43842         * tests/test-remove.c (symlink): Likewise.
43843         * tests/test-rmdir.c (symlink): Likewise.
43844         * tests/test-unlink.c (symlink): Likewise.
43845         * tests/test-unlinkat.c (symlink): Likewise.
43846
43847         symlink: new module, for Solaris 9 bug
43848         * modules/symlink: New file.
43849         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
43850         * lib/symlink.c: Likewise.
43851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43852         * modules/unistd (Makefile.am): Substitute them.
43853         * lib/unistd.in.h (symlink): Declare replacement.
43854         * MODULES.html.sh (File system functions): Mention it.
43855         * doc/posix-functions/symlink.texi (symlink): Likewise.
43856         * modules/symlink-tests: New test.
43857         * tests/test-symlink.c: Likewise.
43858
43859 2009-09-23  Bruno Haible  <bruno@clisp.org>
43860
43861         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
43862         when needed.
43863         Test case: gnulib-tool --import --with-tests atexit inttypes.
43864         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
43865
43866 2009-09-23  Bruno Haible  <bruno@clisp.org>
43867
43868         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
43869         subcommand, not in a subshell.
43870
43871 2009-09-22  Eric Blake  <ebb9@byu.net>
43872
43873         unistd: sort replacement declarations
43874         * lib/unistd.in.h: Sort declarations.
43875
43876         open, openat: minor optimization
43877         * lib/open.c (open): If open succeeded, len is non-zero.
43878         * lib/openat.c (rpl_openat): Likewise.
43879
43880         link-follow: ensure correct result
43881         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
43882         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
43883         distinguish between possible failures.
43884
43885 2009-09-21  Eric Blake  <ebb9@byu.net>
43886
43887         fts: avoid compiler warning
43888         * lib/fts.c (dirent_inode_sort_may_be_useful)
43889         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
43890
43891 2009-09-19  Bruno Haible  <bruno@clisp.org>
43892
43893         * lib/progreloc.c (canonicalize_file_name): New declaration.
43894
43895 2009-09-19  Eric Blake  <ebb9@byu.net>
43896
43897         link: fix quoting
43898         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
43899
43900         openat: fix openat bugs on Solaris 9
43901         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
43902         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
43903         * modules/openat (Depends-on): Add open.
43904         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
43905         * modules/fcntl-h (Makefile.am): Substitute it.
43906         * lib/fcntl.in.h (openat): Declare replacement.
43907         * doc/posix-functions/openat.texi (openat): Document this.
43908
43909         openat: move fstatat and unlinkat into correct files
43910         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
43911         compiled.
43912         * lib/openat.c (fstatat, unlinkat): Move...
43913         * lib/fstatat.c (fstatat): ...into correct files.
43914         * lib/unlinkat.c (unlinkat): Likewise.
43915
43916         openat: fix unlinkat bugs on Solaris 9
43917         * lib/unlinkat.c (unlinkat): New file.
43918         * modules/openat (Depends-on): Add unlink.
43919         (Files): Distribute it.
43920         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
43921         trailing slash behavior is broken.
43922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43923         * modules/unistd (Makefile.am): Substitute it.
43924         * lib/unistd.in.h (unlinkat): Declare replacement.
43925         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
43926
43927         openat: fix fstatat bugs on Solaris 9
43928         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
43929         stat.
43930         * doc/posix-functions/fstatat.texi (fstatat): Document this.
43931
43932         test-unlinkat: enhance test, to expose Solaris 9 bug
43933         * tests/test-unlink.c (main): Factor guts...
43934         * tests/test-unlink.h (test_rmdir_func): ...into new file.
43935         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
43936         * tests/test-rmdir.c (main): Adjust caller.
43937         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
43938         (unlinker): New helper function.
43939         (rmdirat): Enhance check.
43940         * modules/rmdir-tests (Depends-on): Add stdbool.
43941         * modules/unlink-tests (Depends-on): Likewise.
43942         (Files): Add test-unlink.h.
43943         * modules/openat-tests (Files): Likewise.
43944         (Depends-on): Add unlinkdir.
43945
43946         test-fstatat: new test, to expose Solaris 9 bugs
43947         * tests/test-stat.c (main): Factor guts...
43948         * tests/test-stat.h (test_stat_func): ...into new file.
43949         * tests/test-lstat.c (main): Factor guts...
43950         * tests/test-lstat.h (test_lstat_func): ...into new file.
43951         * tests/test-fstatat.c: New file.
43952         * modules/stat-tests (Files): Add test-stat.h.
43953         * modules/lstat-tests (Files): Add test-lstat.h.
43954         (Depends-on): Add stdbool.
43955         * modules/openat-tests (Depends-on): Add pathmax.
43956         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
43957         (Makefile.am): Run new test.
43958
43959         remove: new module, for mingw and Solaris 9 bugs
43960         * modules/remove: New file.
43961         * lib/remove.c: Likewise.
43962         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
43963         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43964         * modules/stdio (Makefile.am): Use them.
43965         * lib/stdio.in.h (remove): Declare replacement.
43966         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43967         * doc/posix-functions/remove.texi (remove): Likewise.
43968         * modules/remove-tests: New test.
43969         * tests/test-remove.c: Likewise.
43970
43971         unlink: new module, for Solaris 9 bug
43972         * modules/unlink: New file.
43973         * lib/unlink.c: Likewise.
43974         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
43975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43976         * modules/unistd (Makefile.am): Use them.
43977         * lib/unistd.in.h (stat): Declare replacement.
43978         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43979         * doc/posix-functions/unlink.texi (unlink): Likewise.
43980         * modules/unlink-tests: New test.
43981         * tests/test-unlink.c: Likewise.
43982
43983         lstat: fix Solaris 9 bug
43984         * lib/lstat.c (lstat): Also check for trailing slash on
43985         non-symlink, non-directories.  Use stat module to simplify logic.
43986         * doc/posix-functions/lstat.texi (lstat): Document it.
43987         * modules/lstat-tests (Depends-on): Add errno, same-inode.
43988         (configure.ac): Check for symlink.
43989         * tests/test-lstat.c (main): Add more tests.
43990
43991         stat: add as dependency to other modules
43992         * modules/chown (Depends-on): Add stat.
43993         * modules/euidaccess (Depends-on): Likewise.
43994         * modules/fchdir (Depends-on): Likewise.
43995         * modules/isdir (Depends-on): Likewise.
43996         * modules/link (Depends-on): Likewise.
43997         * modules/lstat (Depends-on): Likewise.
43998         * modules/mkdir-p (Depends-on): Likewise.
43999         * modules/modechange (Depends-on): Likewise.
44000         * modules/open (Depends-on): Likewise.
44001         * modules/readlink (Depends-on): Likewise.
44002         * modules/same (Depends-on): Likewise.
44003
44004         stat: fix Solaris 9 bug
44005         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
44006         slash.
44007         * lib/stat.c (rpl_stat): Work around it.
44008         * doc/posix-functions/stat.texi (stat): Update documentation.
44009
44010         stat: new module, for mingw bug
44011         * modules/stat: New file.
44012         * lib/stat.c: Likewise.
44013         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
44014         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44015         * modules/sys_stat (Makefile.am): Use them.
44016         * lib/sys_stat.in.h (stat): Declare replacement.
44017         * lib/openat.c (fstatat): Deal with lstat and stat being function
44018         macros.
44019         * modules/openat (Depends-on): Add inline.
44020         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44021         * doc/posix-functions/stat.texi (stat): Likewise.
44022         * modules/stat-tests: New test.
44023         * tests/test-stat.c: Likewise.
44024
44025 2009-09-19  Jim Meyering  <meyering@redhat.com>
44026
44027         syntax-check: detect unnecessary inclusion of canonicalize.h
44028         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
44029
44030 2009-09-19  Eric Blake  <ebb9@byu.net>
44031
44032         canonicalize-lgpl: adjust clients to use correct header
44033         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44034         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
44035         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
44036         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
44037         * lib/progreloc.c (includes): Likewise.
44038
44039 2009-09-19  Jim Meyering  <meyering@redhat.com>
44040
44041         test-posixtm.c: correct a comment
44042         * tests/test-posixtm.c: Correct first-line comment.
44043         Spotted by Eric Blake.
44044
44045 2009-09-16  Jim Meyering  <meyering@redhat.com>
44046
44047         posixtm-tests: make T const-correct; add a test case
44048         * tests/test-posixtm.c (T): Declare const.
44049         Add a test for -(2^31+1).
44050         Remove useless can-succeed-only-in-2002 test.
44051
44052         posixtm-tests: adjust the sole failing test
44053         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
44054         expected output matches what mktime now produces.  Cross-checked via
44055         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
44056
44057         posixtm: move #ifdef'd tests into a new module
44058         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
44059         * tests/test-posixtm.c: ... this new file.
44060         * modules/posixtm-tests: New module.
44061
44062 2009-09-19  Eric Blake  <ebb9@byu.net>
44063
44064         openat: simplify use of at-func.c
44065         * lib/at-func.c (includes): Include prerequisites here, to
44066         simplify requirements on client files.
44067         * lib/openat-priv.h: Add double-inclusion guard.
44068         * lib/faccessat.c (includes): Simplify.
44069         * lib/fchmodat.c (includes): Likewise.
44070         * lib/fchownat.c (includes): Likewise.
44071         * lib/mkdirat.c (includes): Likewise.
44072         * lib/mkfifoat.c (includes): Likewise.
44073         * lib/symlinkat.c (includes): Likewise.
44074
44075         openat: allow return of fd 0
44076         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
44077         * modules/save-cwd (Depends-on): Replace fcntl-safer with
44078         unistd-safer.
44079         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
44080         <fcntl.h>; this module does not leak fds.
44081         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
44082         must be allowed to return 0, leaving openat_safer to add the
44083         safety.
44084         (openat_permissive): Avoid writing to just-opened fd 2 if
44085         restoring the current directory fails.
44086         * lib/openat-die.c (openat_restore_fail): Add comment.
44087         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
44088         (save_cwd): Guarantee safe fd, but without use of open_safer.
44089         * tests/test-openat.c: New test.
44090         * modules/openat-tests (Files, Makefile.am): Distribute and build
44091         new file.
44092
44093         relocatable-prog-wrapper: fix build
44094         * modules/relocatable-prog-wrapper (Files): Update name of
44095         canonicalize m4 file, broken on 2009-09-17.
44096         Reported by emad hajjar <aleppos@hotmail.com>.
44097
44098 2009-09-19  Bruno Haible  <bruno@clisp.org>
44099
44100         * lib/safe-alloc.h: Use the standard header with GPL copyright.
44101         * lib/safe-alloc.c: Likewise.
44102         Reported by Ian Beckwith <ianb@erislabs.net>.
44103
44104 2009-09-18  Bruno Haible  <bruno@clisp.org>
44105
44106         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
44107         Reported by <erobles@sensacd.com.mx>.
44108
44109 2009-09-17  Eric Blake  <ebb9@byu.net>
44110
44111         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
44112         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
44113         slashes when checking if last component is missing.
44114         * tests/test-canonicalize.c (main): Test this.
44115
44116         canonicalize, canonicalize-lgpl: honor // if distinct from /
44117         * modules/canonicalize (Files): Add double-slash-root.m4.
44118         * modules/canonicalize-lgpl (Files): Likewise.
44119         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44120         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
44121         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
44122         fallback definition.
44123         (canonicalize_filename_mode): Use it to protect //.
44124         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
44125         (__realpath): Likewise.
44126         * tests/test-canonicalize.c (main): Test this.
44127         * tests/test-canonicalize-lgpl.c (main): Likewise.
44128         * modules/canonicalize-tests (Depends-on): Add same-inode.
44129         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44130
44131         canonicalize-lgpl: fix glibc bug with trailing slash
44132         * m4/canonicalize-lgpl.m4: Move contents...
44133         * m4/canonicalize.m4: ...here.
44134         (gl_CANONICALIZE_LGPL): Factor realpath check...
44135         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
44136         glibc 2.3.5 bug, fixed 2005-04-27.
44137         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
44138         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
44139         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
44140         * modules/canonicalize-lgpl (Files): Manage file rename.
44141         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44142         * modules/stdlib (Makefile.am): Substitute witness.
44143         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
44144         is needed.
44145         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
44146         replacement is required.
44147         * lib/canonicalize.c (canonicalize_file_name): Likewise.
44148         * doc/glibc-functions/canonicalize_file_name.texi
44149         (canonicalize_file_name): Document this.
44150         * doc/posix-functions/realpath.texi (realpath): Likewise.
44151
44152         canonicalize-lgpl: reject non-directory with trailing slash
44153         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
44154         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
44155         catches failures in glibc 2.3.5.
44156         * tests/test-canonicalize.c (main): Likewise.
44157
44158         canonicalize-lgpl: use native realpath if it works
44159         * lib/canonicalize-lgpl.c (realpath): Guard with
44160         FUNC_REALPATH_WORKS.
44161         * lib/stdlib.in.h (realpath): Make declaration optional based on
44162         HAVE_REALPATH.
44163         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
44164         native realpath works.
44165         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44166         * modules/stdlib (Makefile.am): Substitute witness.
44167
44168         canonicalize, canonicalize-lgpl: use <stdlib.h>
44169         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
44170         (Include): Mention <stdlib.h>.
44171         (configure.ac): Mention functions we provide.
44172         * modules/canonicalize (configure.ac): Likewise.
44173         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
44174         realpath if canonicalize_file_name is missing.
44175         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
44176         * modules/stdlib (Makefile.am): Substitute witnesses.
44177         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
44178         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
44179         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
44180         * NEWS: Document this.
44181         * doc/glibc-functions/canonicalize_file_name.texi
44182         (canonicalize_file_name): Likewise.
44183         * doc/posix-functions/realpath.texi (realpath): Likewise.
44184         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
44185
44186         test-canonicalize: consolidate into single C program
44187         * tests/test-canonicalize.sh: Delete; move setup into...
44188         * tests/test-canonicalize.c (main): ...the program, making it
44189         easier to run in debugger.  Add some tests.
44190         * modules/canonicalize-tests (Files): Remove unused file.
44191         (Depends-on): Add progname.
44192         (configure.ac, Makefile.am): Simplify.
44193
44194         test-canonicalize-lgpl: consolidate into single C program
44195         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
44196         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
44197         easier to run in debugger.  Add some tests.
44198         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
44199         (configure.ac, Makefile.am): Simplify.
44200
44201         canonicalize: avoid resolvepath
44202         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
44203         unnecessary checks.
44204         * lib/canonicalize.c (includes): Simplify.
44205         (canonicalize_file_name): Drop resolvepath implementation.
44206         * modules/canonicalize (Depends-on): Drop filenamecat.
44207
44208         canonicalize: don't lose errno
44209         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
44210         over calls to free.
44211
44212         canonicalize: simplify errno handling
44213         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
44214         assignment.
44215
44216         canonicalize, canonicalize-lgpl: update module dependencies
44217         * modules/canonicalize (Depends-on): Add extensions, lstat,
44218         pathmax, stdlib.
44219         (Files): Drop pathmax.h.
44220         (configure.ac): Adjust macro name.
44221         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
44222         lstat, stdlib, sys_stat.
44223         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
44224         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
44225         extensions.
44226         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
44227         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
44228         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
44229         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
44230         declaration, if available.
44231         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
44232         we can rely on the readlink module.
44233         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
44234         (includes): Use <unistd.h> unconditionally.
44235
44236 2009-09-17  Eric Blake  <ebb9@byu.net>
44237
44238         maint: make Include sections of modules consistent
44239         * modules/alloca: Use only header name; no need to list #include.
44240         * modules/alloca-opt: Likewise.
44241         * modules/arpa_inet: Likewise.
44242         * modules/canon-host: Likewise.
44243         * modules/configmake: Likewise.
44244         * modules/dirent: Likewise.
44245         * modules/eealloc: Likewise.
44246         * modules/environ: Likewise.
44247         * modules/fchdir: Likewise.
44248         * modules/fcntl: Likewise.
44249         * modules/fcntl-h: Likewise.
44250         * modules/gethrxtime: Likewise.
44251         * modules/gettime: Likewise.
44252         * modules/ignore-value: Likewise.
44253         * modules/inet_ntop: Likewise.
44254         * modules/inet_pton: Likewise.
44255         * modules/inttypes: Likewise.
44256         * modules/isnand-nolibm: Likewise.
44257         * modules/isnanf-nolibm: Likewise.
44258         * modules/mbchar: Likewise.
44259         * modules/mbfile: Likewise.
44260         * modules/mbiter: Likewise.
44261         * modules/mbuiter: Likewise.
44262         * modules/netdb: Likewise.
44263         * modules/netinet_in: Likewise.
44264         * modules/nproc: Likewise.
44265         * modules/pagealign_alloc: Likewise.
44266         * modules/poll: Likewise.
44267         * modules/printf-frexp: Likewise.
44268         * modules/pthread: Likewise.
44269         * modules/putenv: Likewise.
44270         * modules/random_r: Likewise.
44271         * modules/relocatable-prog: Likewise.
44272         * modules/search: Likewise.
44273         * modules/select: Likewise.
44274         * modules/selinux-h: Likewise.
44275         * modules/settime: Likewise.
44276         * modules/signal: Likewise.
44277         * modules/size_max: Likewise.
44278         * modules/socklen: Likewise.
44279         * modules/ssize_t: Likewise.
44280         * modules/stdarg: Likewise.
44281         * modules/stdbool: Likewise.
44282         * modules/stddef: Likewise.
44283         * modules/stdint: Likewise.
44284         * modules/stdio: Likewise.
44285         * modules/stdlib: Likewise.
44286         * modules/string: Likewise.
44287         * modules/strings: Likewise.
44288         * modules/sys_file: Likewise.
44289         * modules/sys_ioctl: Likewise.
44290         * modules/sys_select: Likewise.
44291         * modules/sys_socket: Likewise.
44292         * modules/sys_stat: Likewise.
44293         * modules/sys_time: Likewise.
44294         * modules/sys_times: Likewise.
44295         * modules/sys_utsname: Likewise.
44296         * modules/sys_wait: Likewise.
44297         * modules/sysexits: Likewise.
44298         * modules/time: Likewise.
44299         * modules/times: Likewise.
44300         * modules/tmpfile: Likewise.
44301         * modules/trim: Likewise.
44302         * modules/unistd: Likewise.
44303         * modules/wchar: Likewise.
44304         * modules/wctype: Likewise.
44305
44306 2009-09-17  Bruno Haible  <bruno@clisp.org>
44307
44308         Make getdate.y compile on QNX and NetBSD 5 / i386.
44309         * m4/getdate.m4 (gl_GETDATE): Conditionally define
44310         TIME_T_FITS_IN_LONG_INT.
44311         * lib/getdate.y (long_time_t): New type.
44312         (relative_time): Change type of 'seconds' field to long_time_t.
44313         (get_date): Update types of local variables. Check against overflow
44314         during conversion from long_time_t to time_t.
44315         Reported by Matt Kraai <kraai@ftbfs.org>
44316         and Hasso Tepper <hasso@netbsd.org>.
44317
44318 2009-09-17  Bruno Haible  <bruno@clisp.org>
44319
44320         * modules/COPYING: Update copyright years.
44321         * modules/README: Likeiwse.
44322         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
44323         Reported by Ian Beckwith <ianb@erislabs.net>.
44324
44325 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44326
44327         * users.txt: Update references for gnuit package.
44328
44329 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44330
44331         * m4/getdelim.m4: Fix typo in copyright line.
44332
44333 2009-09-17  Bruno Haible  <bruno@clisp.org>
44334
44335         * lib/atoll.c: Use the standard header with GPL copyright.
44336         * lib/argz.in.h: Likewise.
44337         * lib/glob.c: Likewise.
44338         * lib/glob-libc.h: Likewise.
44339         * lib/random_r.c: Likewise.
44340         * lib/siglist.h: Likewise.
44341         * lib/strsignal.c: Likewise.
44342         Reported by Ian Beckwith <ianb@erislabs.net>.
44343
44344 2009-09-17  Eric Blake  <ebb9@byu.net>
44345
44346         rmdir: ensure correct dependency order
44347         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
44348
44349 2009-09-17  Bruno Haible  <bruno@clisp.org>
44350
44351         Disable assertion that fails on NetBSD 5 / i386.
44352         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
44353         Reported by Sam Steingold <sds@gnu.org>
44354         and Hasso Tepper <hasso@netbsd.org>.
44355
44356 2009-09-16  Eric Blake  <ebb9@byu.net>
44357
44358         unlinkdir: port to mingw
44359         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
44360         on which no one can unlink a directory.
44361
44362         stdlib: sort witness names
44363         * modules/stdlib (Makefile.am): Sort replacements.
44364         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44365         * lib/stdlib.in.h: Likewise.
44366
44367         parse-duration-tests: avoid link failure
44368         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
44369         LIBINTL.
44370         Reported by Tom G. Christensen.
44371
44372         openat-tests: ensure unlinkat behaves like rmdir
44373         * tests/test-rmdir.c (main): Factor guts...
44374         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
44375         * modules/rmdir-tests (Files): Ship new file.
44376         * modules/openat-tests: New test.
44377         * tests/test-unlinkat.c: Likewise.
44378
44379         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
44380         * modules/rmdir-errno (Status, Notice): Now obsolete.
44381
44382         rmdir: work around cygwin 1.5.x and mingw bugs
44383         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
44384         * lib/rmdir.c (rmdir): Work around it.
44385         * modules/rmdir (Status, Notice): No longer obsolete.
44386         (Files): Add dos.m4.
44387         (Depends-on): Add unistd.
44388         (configure.ac): Set witnesses.
44389         (License): Relax to LGPLv2+.
44390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
44391         * modules/unistd (Makefile.am): Substitute witnesses.
44392         * lib/unistd.in.h (rmdir): Declare replacement.
44393         * doc/posix-functions/rmdir.texi (rmdir): Document this.
44394         * modules/rmdir-tests: New tests.
44395         * tests/test-rmdir.c: Likewise.
44396
44397 2009-09-15  Eric Blake  <ebb9@byu.net>
44398
44399         fchdir: improve use of replacement functions
44400         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
44401         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
44402         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
44403         REPLACE_CLOSEDIR.
44404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
44405         * modules/sys_stat (Makefile.am): Substitute correct witness.
44406         * modules/dirent (Makefile.am): Likewise.
44407         * modules/unistd (Makefile.am): Likewise.
44408         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
44409         * lib/unistd.in.h (dup): Likewise.
44410         * lib/sys_stat.in.h (fstat): Likewise.
44411
44412         maint: ignore gnulib-tool temp files
44413         * .gitignore: Ignore files created during gnulib-tool --test.
44414
44415 2009-09-13  Jim Meyering  <meyering@redhat.com>
44416
44417         posixtm: don't reject a time that specify "60" as the number of seconds
44418         * lib/posixtm.c (posixtime): The code to reject invalid dates
44419         would also reject a time specified with the .60 suffix.
44420         But POSIX allows that, in order to accommodate leap seconds.
44421         So don't reject it.
44422         (main): Adjust tests accordingly.
44423         * modules/posixtm (Depends-on): Add stpcpy.
44424
44425 2009-09-11  Jim Meyering  <meyering@redhat.com>
44426
44427         announce-gen: include [$release_type] in emitted Subject:
44428         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
44429         e.g., [stable] in the emitted Subject: line.
44430
44431 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44432
44433         Remove obsolete macros from several modules.
44434         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
44435         obsolete Autoconf macros with their modern counterparts.
44436         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
44437         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
44438         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
44439         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
44440         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
44441         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44442         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44443         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44444         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
44445         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
44446         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
44447         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
44448         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
44449         * m4/sockets.m4 (gl_SOCKETS): Likewise.
44450         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
44451         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
44452         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
44453         * m4/time_r.m4 (gl_TIME_R): Likewise.
44454         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
44455         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
44456         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44457
44458         Fix copyright header in build-aux scripts.
44459         * build-aux/git-version-gen: Fix copyright header to match GPLv3
44460         recommendation.
44461         * build-aux/ncftpput-ftp: Likewise.
44462         * build-aux/update-copyright: Likewise.
44463
44464 2009-09-09  Eric Blake  <ebb9@byu.net>
44465
44466         test-link: allow Linux choice of errno
44467         * tests/test-link.c (main): Relax test for alternate error.
44468
44469         strndup: fix improper m4 caching
44470         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
44471         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
44472         (gl_PREREQ_STRNDUP): Delete.
44473         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
44474         * modules/string (Makefile.am): Substitute it.
44475         * lib/string.in.h (strndup): Modernize prototype.
44476
44477         getcwd: port to mingw
44478         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
44479         different from the POSIX assumptions made throughout the getcwd
44480         module; fortunately, the mingw getcwd does not need replacement.
44481         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
44482         * modules/getcwd-tests: New test.
44483         * tests/test-getcwd.c: Likewise.
44484
44485         link: fix platform bugs
44486         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
44487         * lib/link.c (link): Work around them.  Fix related mingw bug.
44488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
44489         * modules/unistd (Makefile.am): Substitute it.
44490         * lib/unistd.in.h (link): Declare replacement.
44491         * doc/posix-functions/link.texi (link): Document this.
44492         * modules/link (Depends-on): Add strdup-posix, sys_stat.
44493
44494         test-link: consolidate into single C program, test more cases
44495         * tests/test-link.sh: Delete.
44496         * tests/test-link.c: Test more error conditions.  Exposes bugs on
44497         at least Cygwin and Solaris.
44498         * modules/link-tests (Files): Remove unused file.
44499         (Depends-on): Add errno, sys_stat.
44500         (Makefile.am): Simplify.
44501
44502 2009-09-08  Bruno Haible  <bruno@clisp.org>
44503
44504         Work around towlower, towupper bug on mingw.
44505         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
44506         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
44507         * doc/posix-functions/towlower.texi: Mention the mingw bug.
44508         * doc/posix-functions/towupper.texi: Likewise.
44509         Reported by Eric Blake.
44510
44511 2009-09-08  Jim Meyering  <meyering@redhat.com>
44512
44513         build: don't try to run autoheader if we don't use it
44514         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
44515         is not used in configure.ac.
44516
44517 2009-09-08  Eric Blake  <ebb9@byu.net>
44518
44519         euidaccess: fix compilation error
44520         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
44521
44522         rawmemchr: relax license
44523         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
44524         okay.
44525         Reported by Jim Meyering.
44526
44527         mkfifoat: new module
44528         * modules/mkfifoat: New file.
44529         * lib/mkfifoat.c: Likewise.
44530         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
44531         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44532         * modules/sys_stat (Makefile.am): Use them.
44533         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
44534         * MODULES.html.sh (File system functions): Mention module.
44535         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44536         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44537         * modules/mkfifoat-tests: New test.
44538         * tests/test-mkfifoat.c: Likewise.
44539
44540         strchrnul: relax license
44541         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
44542         okay.
44543         Reported by Jim Meyering.
44544
44545 2009-09-08  Eric Blake  <ebb9@byu.net>
44546
44547         fstatat: fix compilation on Solaris
44548         * lib/fstatat.c (includes): Add fcntl.h.
44549         Reported by Pádraig Brady.
44550
44551 2009-09-07  Eric Blake  <ebb9@byu.net>
44552
44553         rename: modernize replacement
44554         * modules/rename (Depends-on): Add stdio.
44555         (configure.ac): Declare witness.
44556         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
44557         stdio take care of replacement.
44558         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44559         * modules/stdio (Makefile.am): Substitute them.
44560         * lib/stdio.in.h (rename): Declare replacement.
44561         * lib/rename.c (includes): Allow cross-compilation to non-windows
44562         machines.
44563         * doc/posix-functions/rename.texi (rename): Improve
44564         documentation.
44565
44566         stdio: sort witness names
44567         * modules/stdio (Makefile.am): Sort replacements.
44568         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44569         * lib/stdio.in.h: Likewise.
44570
44571         getcwd: minor cleanups
44572         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
44573         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
44574
44575         openat: provide more convenience names
44576         * modules/faccessat (configure.ac): Add C witness.
44577         * lib/unistd.in.h (readlinkat): Fix typo.
44578         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
44579         convenience wrappers.
44580         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
44581         wrappers in syntax checks.
44582
44583 2009-09-06  Eric Blake  <ebb9@byu.net>
44584
44585         doc: fix comments in recent patches
44586         * lib/faccessat.c: Mention correct function.
44587         * lib/fchmodat.c: Likewise.
44588         * lib/fchownat.c: Likewise.
44589         * lib/symlinkat.c: Likewise.
44590         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
44591         constants.
44592
44593         faccessat, symlinkat: continue cleanup of previous patch
44594         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
44595         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44596         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
44597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
44598         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
44599         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
44600         set.
44601
44602 2009-09-06  Bruno Haible  <bruno@clisp.org>
44603
44604         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
44605         (fstatat): Declare if GNULIB_FSTATAT is set.
44606         (mkdirat): Declare if GNULIB_MKDIRAT is set.
44607         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
44608         (unlinkat): Declare if GNULIB_UNLINKAT is set.
44609         * modules/fcntl-h (Files): Remove m4/openat.m4.
44610         * modules/sys_stat (Files): Remove m4/openat.m4.
44611         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
44612         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
44613         * modules/unistd (Files): Remove m4/openat.m4.
44614         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
44615         GNULIB_OPENAT.
44616         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
44617         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
44618         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
44619         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
44620         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
44621         gl_OPENAT_DEFAULTS.
44622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
44623         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
44624         Don't require gl_OPENAT_DEFAULTS.
44625         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
44626         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
44627         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
44628         (gl_OPENAT_DEFAULTS): Remove macro.
44629
44630 2009-09-06  Bruno Haible  <bruno@clisp.org>
44631
44632         * modules/openat (configure.ac): Remove unneeded witness.
44633
44634 2009-09-06  Bruno Haible  <bruno@clisp.org>
44635
44636         Set errno to ENOSYS when a function is entirely unsupported.
44637         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
44638         EOPNOTSUPP.
44639         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44640         * modules/chown (Depends-on): Remove errno.
44641
44642 2009-09-06  Bruno Haible  <bruno@clisp.org>
44643
44644         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
44645
44646 2009-09-06  Bruno Haible  <bruno@clisp.org>
44647
44648         * lib/sys_stat.in.h: Fix preprocessor command indentation.
44649
44650 2009-09-06  Ben Pfaff  <blp@gnu.org>
44651             Bruno Haible  <bruno@clisp.org>
44652
44653         Work around a glibc bug in strtok_r.
44654         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
44655         Undefine if UNDEFINE_STRTOK_R is set.
44656         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
44657         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44658         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
44659         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
44660         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
44661         UNDEFINE_STRTOK_R.
44662         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
44663
44664 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
44665
44666         exclude: minor fix
44667         * lib/exclude.c: Include wctype.h
44668
44669 2009-09-06  Akim Demaille  <demaille@gostai.com>
44670
44671         bootstrap: improve error message
44672         * build-aux/bootstrap (find_tool): Upon failure, report the list
44673         of candidates.
44674         Honor the initial value of the envvar.
44675
44676 2009-09-05  Eric Blake  <ebb9@byu.net>
44677
44678         symlinkat: new module
44679         * modules/symlinkat: New file.
44680         * lib/symlinkat.c: Likewise.
44681         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
44682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44683         * modules/unistd (Makefile.am): Use them.
44684         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
44685         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
44686         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
44687         * MODULES.html.sh (File system functions): Mention module.
44688         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44689         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44690         * modules/symlinkat-tests: New test.
44691         * tests/test-symlinkat.c: Likewise.
44692
44693         test-openat-safer: add more checks
44694         * tests/test-openat-safer.c (main): Check more code paths.
44695
44696 2009-09-05  Jim Meyering  <meyering@redhat.com>
44697
44698         syntax-check: detect unnecessary inclusion of openat.h
44699         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
44700
44701 2009-09-05  Bruno Haible  <bruno@clisp.org>
44702
44703         Support towlower, towupper.
44704         * doc/posix-functions/towlower.texi: Mention module wctype.
44705         * doc/posix-functions/towupper.texi: Likewise.
44706         * lib/wctype.in.h (towlower, towupper): New functions.
44707         * tests/test-wctype.c: Include stdio.h, stdlib.h.
44708         (ASSERT): New macro.
44709         (e): New variable.
44710         (main): Test also towlower, towupper. Test WEOF argument.
44711         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44712
44713 2009-09-05  Bruno Haible  <bruno@clisp.org>
44714
44715         Fix conversion behaviour when the input is invalid.
44716         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
44717         mark occurring in first pass of indirect conversion.
44718         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
44719         input.
44720         Found by clang's static analyzer.
44721
44722 2009-09-05  Bruno Haible  <bruno@clisp.org>
44723
44724         * tests/test-striconveh.c (main): Test indirect conversion on platforms
44725         where direct conversion is possible.
44726
44727 2009-09-04  Eric Blake  <ebb9@byu.net>
44728
44729         openat: fail with ENOENT on empty name
44730         * lib/openat-proc.c (openat_proc_name): Special-case the empty
44731         buffer.
44732
44733         link-follow: fix logic bug in prior patch
44734         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
44735         reversed sense of yes and no in prior patch.  Avoid confusing
44736         compilation failure with desired semantics.
44737
44738         link-follow: accommodate mingw and cross-compilation
44739         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
44740         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
44741         cross-compilation results to -1, to make linkat easier to
44742         implement when cross-compiling.  Trivially support mingw.
44743         * modules/link-follow (configure.ac): Call new name.
44744         * NEWS: Mention this.
44745
44746 2009-09-03  Eric Blake  <ebb9@byu.net>
44747
44748         faccessat: compile replacement
44749         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
44750         needed.
44751
44752         fts: fix compilation error
44753         * lib/fts.c (includes): Re-add "openat.h", for
44754         openat_needs_fchdir.
44755
44756         faccessat: new module
44757         * modules/faccessat: New file.
44758         * lib/faccessat.c: Likewise.
44759         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44761         * modules/unistd (Makefile.am): Use it.
44762         * lib/unistd.in.h (faccessat): Declare it.
44763         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
44764         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
44765         * MODULES.html.sh (File system functions): Mention it.
44766         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
44767         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
44768
44769         euidaccess: prefer POSIX over non-standard implementation
44770         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
44771         * lib/euidaccess.c (euidaccess): Use it if available.
44772
44773         openat: make template easier to use
44774         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
44775         AT_FUNC_F2 to be undefined.
44776         (VALIDATE_FLAG): New macro; use it to reject bad flags.
44777         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
44778         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
44779         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
44780         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
44781         Likewise.
44782         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
44783         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
44784         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
44785         Likewise.
44786
44787         openat: declare in POSIX headers
44788         * NEWS: Mention this.
44789         * modules/openat (configure.ac): Declare witnesses.
44790         (Depends-on): Add fcntl-h, sys_stat, unistd.
44791         (Include): Mention correct headers.
44792         * modules/fcntl-h (Depends-on): Add link-warning.
44793         (Files): Add openat.m4.
44794         (Makefile.am): Substitute witnesses.
44795         * modules/sys_stat (Files, Makefile.am): Likewise.
44796         * modules/unistd (Files, Makefile.am): Likewise.
44797         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
44798         (gl_OPENAT_DEFAULTS): New macro.
44799         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
44800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
44801         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
44802         (SYS_STAT_H): Remove unused variable.
44803         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
44804         * lib/fcntl--.h (includes): Remove unneeded header.
44805         * lib/openat-safer.c (includes): Likewise.
44806         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
44807         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
44808         appropriate headers.
44809         (__OPENAT_PREFIX): Delete.
44810         * lib/fcntl.in.h (openat): Provide declaration.
44811         (AT_FDCWD): Fix Solaris bug.
44812         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
44813         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
44814         * lib/fchmodat.c (includes):  Adjust to find declaration.
44815         * lib/fchownat.c (includes): Likewise.
44816         * lib/mkdirat.c (includes): Likewise.
44817         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
44818         still visible.
44819
44820 2009-09-02  Eric Blake  <ebb9@byu.net>
44821
44822         errno: use consistently
44823         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
44824         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
44825         * lib/canonicalize.c (ELOOP): Likewise.
44826         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
44827         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
44828         * lib/lchown.c (EOPNOTSUPP): Likewise.
44829         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
44830         * lib/savewd.c (ESTALE): Likewise.
44831         * lib/settime.c (ENOSYS): Likewise.
44832         * lib/utimens.c (ENOSYS): Likewise.
44833         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
44834         * lib/chdir-safer.c (ELOOP): Likewise.
44835         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
44836         * modules/c-stack (Depends-on): Add errno.
44837         * modules/canonicalize (Depends-on): Likewise.
44838         * modules/chdir-safer (Depends-on): Likewise.
44839         * modules/fdopendir (Depends-on): Likewise.
44840         * modules/inet_ntop (Depends-on): Likewise.
44841         * modules/inet_pton (Depends-on): Likewise.
44842         * modules/lchown (Depends-on): Likewise.
44843         * modules/openat (Depends-on): Likewise.
44844         * modules/savewd (Depends-on): Likewise.
44845         * modules/settime (Depends-on): Likewise.
44846         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
44847
44848         fts: avoid leaking fds
44849         * modules/fts (Depends-on): Add cloexec.
44850         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
44851         flag.
44852
44853         fts: make directory fds more robust
44854         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
44855         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
44856
44857         backupfile, chdir-long, fts, savedir: make safer
44858         * lib/backupfile.c (includes): Use "dirent--.h", since
44859         numbered_backup can write to stderr during readdir.
44860         * lib/savedir.c (includes): Likewise.
44861         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
44862         emulation can write to stderr on failure.
44863         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
44864         * lib/getcwd.c: Document why opendir_safer is unused.
44865         * lib/glob.c: Likewise.
44866         * lib/scandir.c: Likewise.
44867         * lib/openat-proc.c: Likewise, for open_safer.
44868         * modules/backupfile (Depends-on): Add dirent-safer.
44869         * modules/savedir (Depends-on): Likewise.
44870         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
44871         * modules/chdir-long (Depends-on): Add openat-safer.
44872
44873         openat-safer: new module
44874         * modules/openat-safer: New file.
44875         * lib/openat-safer.c: Likewise.
44876         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
44877         * lib/fcntl-safer.h (openat_safer): Declare.
44878         * lib/fcntl--.h (openat): Override.
44879         * MODULES.html.sh (File descriptor based I/O): Mention it.
44880         * lib/openat.h: Add double-inclusion guards.
44881         * lib/openat.c (includes): Only include "fcntl-safer.h", not
44882         "fcntl--.h", so we can implement openat.
44883         * modules/openat-safer-tests: New test.
44884         * tests/test-openat-safer.c: New file.
44885
44886         dirent-safer: new module
44887         * modules/dirent-safer: New file.
44888         * lib/dirent--.h: Likewise.
44889         * lib/dirent-safer.h: Likewise.
44890         * lib/opendir-safer.c: Likewise.
44891         * m4/dirent-safer.m4: Likewise.
44892         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
44893         * modules/dirent-safer-tests: New test.
44894         * tests/test-dirent-safer.c: New file.
44895         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
44896
44897         fdopendir: optimize on mingw
44898         * lib/unistd.in.h (_gl_directory_name): New prototype.
44899         * lib/fchdir.c (_gl_directory_name): Implement it.
44900         (fchdir): Use it to simplify implementation.
44901         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
44902         fchdir, when available, to avoid calling [f]chdir().
44903
44904         fdopendir: split into its own module
44905         * lib/openat.c (fdopendir): Move...
44906         * lib/fdopendir.c: ...into new file.
44907         * modules/fdopendir: New module.
44908         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
44909         * modules/openat (Depends-on): Add fdopendir.
44910         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
44911         fdopendir here.
44912         * modules/savedir (Depends-on): Only need fdopendir, not full
44913         openat.
44914         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
44915         * lib/openat.h (fdopendir): Drop prototype.
44916         * lib/dirent.in.h (fdopendir): Provide prototype.
44917         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
44918         * modules/dirent (Makefile.am): Substitute them.
44919         * MODULES.html.sh (File system functions): Mention it.
44920         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
44921         * modules/fdopendir-tests: New file.
44922         * tests/test-fdopendir.c: Likewise.
44923
44924         fchdir: use more consistent macro convention
44925         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
44926         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
44927         REPLACE_FCHDIR, rather than relying on config.h macros.
44928         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
44929         inside a single make-time REPLACE_FCHDIR block, rather than using
44930         the config.h FCHDIR_REPLACEMENT.
44931         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
44932         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
44933         Manage fstat replacement.
44934         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
44935         REPLACE_FCHDIR.
44936         * modules/sys_stat (Files): Add m4/unistd_h.m4.
44937         (Makefile.am): Substitute REPLACE_FCHDIR.
44938         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
44939         FCHDIR_REPLACEMENT.
44940         * lib/dup-safer.c (dup_safer): Likewise.
44941         * lib/dup2.c (rpl_dup2): Likewise.
44942         * lib/dup3.c (rpl_dup3): Likewise.
44943         * lib/open.c (rpl_open): Likewise.
44944
44945         fchdir: simplify error handling, and support dup3
44946         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
44947         stdbool, malloc-posix, realloc-posix.
44948         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
44949         (ensure_dirs_slot): Return false on allocation failure.
44950         (rpl_dup2): Delete.
44951         (_gl_register_dup): New function.
44952         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
44953         (_gl_register_fd): Close fd on allocation failure.
44954         * lib/fcntl.in.h (_gl_register_fd): Update signature.
44955         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
44956         prototype.
44957         (rpl_dup2_fchdir): Delete prototype.
44958         * lib/open.c (open): Update caller.
44959         * lib/dup2.c (dup2): Track fchdir metadata.
44960         * lib/dup3.c (dup3): Likewise.
44961         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
44962         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
44963
44964 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44965
44966         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
44967         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
44968         don't pass arguments to AC_OUTPUT.
44969
44970 2009-09-02  Bruno Haible  <bruno@clisp.org>
44971
44972         * modules/mkdtemp (License): Relicense under LGPLv2+.
44973         Reported by Paolo Bonzini.
44974
44975 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44976
44977         Replace uses of obsolete autoconf macros in Jim's modules.
44978         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
44979         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
44980         can evoke a warning from autoconf when run with -Wobsolete
44981         enabled.  They were declared obsolete for good reasons (see
44982         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
44983         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
44984         should not continue using the deprecated macros.
44985         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
44986         obsolete Autoconf macros with modern counterparts.
44987         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44988         * m4/dos.m4 (gl_AC_DOS): Likewise.
44989         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
44990         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
44991         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
44992         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
44993         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
44994         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
44995         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
44996         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
44997         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
44998         Likewise.
44999         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
45000         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45001         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
45002         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
45003         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
45004         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45005
45006 2009-09-01  Eric Blake  <ebb9@byu.net>
45007
45008         fchdir: fix off-by-one bug in previous patch
45009         * lib/fchdir.c (rpl_fstat): Use correct bounds.
45010         (_gl_unregister_fd): Delete useless if.
45011
45012 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
45013
45014         maint.mk: sort the list of syntax-check rules
45015         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
45016         easier to get a sense of progress when the rules are run sequentially
45017         and take a long time.
45018
45019 2009-09-01  Simon Josefsson  <simon@josefsson.org>
45020
45021         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
45022         * modules/netinet_in: Likewise.
45023         * modules/sys_file: Likewise.
45024         * modules/sys_ioctl: Likewise.
45025         * modules/sys_select: Likewise.
45026         * modules/sys_socket: Likewise.
45027         * modules/sys_stat: Likewise.
45028         * modules/sys_time: Likewise.
45029         * modules/sys_times: Likewise.
45030         * modules/sys_utsname: Likewise.
45031         * modules/sys_wait: Likewise.
45032
45033 2009-09-01  Jim Meyering  <meyering@redhat.com>
45034
45035         fts: help ensure that return values are not ignored
45036         * lib/fts_.h (__GNUC_PREREQ): Define.
45037         (__attribute_warn_unused_result__): Define.
45038         (fts_children, fts_close, fts_open, fts_read): Declare with
45039         __attribute_warn_unused_result__.
45040
45041         fts: fts_close now fails also when closing a dir file descriptor fails
45042         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
45043         and propagate to caller, along with errno.
45044
45045         announce-gen: correct formatting in --help output
45046         * build-aux/announce-gen (usage): Move the one-line description in
45047         --help output "up", to where it belongs, just after Usage:.
45048
45049 2009-08-31  Eric Blake  <ebb9@byu.net>
45050
45051         fchdir: port to mingw
45052         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
45053         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
45054         opened, then use a substitute.
45055         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
45056         replacement.
45057         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
45058         (_gl_register_fd): No need to check stat if open already filters
45059         all directories.
45060         (fchdir): Fix error condition to match POSIX.
45061         * modules/fchdir (Depends-on): Add sys_stat.
45062         * doc/posix-functions/open.texi (open): Document the limitation.
45063         * modules/fchdir-tests: New file.
45064         * tests/test-fchdir.c: Likewise.
45065
45066         canonicalize: allow cross-testing from cygwin to mingw
45067         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
45068         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
45069         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
45070         Likewise.
45071         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
45072         target does not support symlinks.
45073         * tests/test-canonicalize-lgpl.sh: Likewise.
45074
45075         chown: avoid compilation warning on mingw
45076         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
45077         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
45078         mingw.
45079         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45080         * modules/chown (Depends-on): Add errno.
45081
45082 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
45083
45084         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
45085         command.
45086
45087 2009-08-31  Jim Meyering  <meyering@redhat.com>
45088
45089         canonicalize: remove useless initialization
45090         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
45091         initialization of local, "end".
45092
45093 2009-08-30  Bruno Haible  <bruno@clisp.org>
45094
45095         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
45096         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
45097         ENOSYS.
45098
45099 2009-08-30  Bruno Haible  <bruno@clisp.org>
45100
45101         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
45102         /usr/xpg4/bin/tr when it exists.
45103         * tests/test-pipe-filter-gi1.sh: Likewise.
45104
45105 2009-08-30  Bruno Haible  <bruno@clisp.org>
45106
45107         Work around deficient /usr/bin/id program on Solaris.
45108         * tests/test-file-has-acl.sh (ID): New variable.
45109         * tests/test-set-mode-acl.sh (ID): Likewise.
45110         * tests/test-copy-acl.sh (ID): Likewise.
45111         * tests/test-copy-file.sh (ID): Likewise.
45112
45113 2009-08-30  Bruno Haible  <bruno@clisp.org>
45114
45115         New module 'xstriconveh'.
45116         * lib/xstriconveh.h: New file.
45117         * lib/xstriconveh.c: New file.
45118         * modules/xstriconveh: New file.
45119
45120 2009-08-30  Bruno Haible  <bruno@clisp.org>
45121
45122         Make it easier to use mem_cd_iconveh.
45123         * lib/striconveh.h (iconveh_t): New type.
45124         (iconveh_open, iconveh_close): New declarations.
45125         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45126         with a single 'const iconveh_t *' argument.
45127         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
45128         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45129         with a single 'const iconveh_t *' argument.
45130         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
45131         * tests/test-striconveh.c (main): Update.
45132         * NEWS: Mention the change.
45133
45134 2009-08-30  Bruno Haible  <bruno@clisp.org>
45135
45136         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
45137         problem.
45138
45139 2009-08-30  Bruno Haible  <bruno@clisp.org>
45140
45141         Work around iconv_open problem on Solaris.
45142         * lib/iconv_open-solaris.gperf: New file.
45143         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
45144         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
45145         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
45146         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
45147         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
45148         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
45149
45150 2009-08-29  Jim Meyering  <meyering@redhat.com>
45151
45152         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
45153         * top/maint.mk (cvs-check): Remove target; it was just an alias
45154         to the better-named vc-diff-check.
45155         (maintainer-distcheck): Remove rule.  It was used only from
45156         the (alpha/beta/major) target, and all of its commands but one
45157         were coreutils-specific.
45158         (vc-dist): Remove rule.
45159         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
45160         Run vc-diff-check, not vc-dist.
45161         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
45162
45163 2009-08-27  Bruno Haible  <bruno@clisp.org>
45164
45165         * tests/test-bitrotate.c (main): Remove test that uses a shift count
45166         of 0.
45167
45168 2009-08-27  Bruno Haible  <bruno@clisp.org>
45169
45170         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
45171         compilers.
45172         * doc/func.texi: Document the SunPRO C bug.
45173
45174 2009-08-27  Bruno Haible  <bruno@clisp.org>
45175
45176         Fix link error on Solaris.
45177         * tests/test-parse-duration.c (xstrdup): Remove function.
45178
45179 2009-08-26  Pádraig Brady  <P@draigbrady.com>
45180
45181         ignore-value: handle pointer types, too
45182         * lib/ignore-value.h (__attribute__): Remove definition.
45183         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
45184         of a more concise and more-often effective "(void) i" statement.
45185         (ignore_ptr): New function to suppress warnings from functions that
45186         return pointers, and to make it explicit that one function doesn't
45187         handle all cases.
45188
45189 2009-08-25  Bruno Haible  <bruno@clisp.org>
45190
45191         dup2: work around a Linux bug.
45192         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
45193         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
45194         * doc/posix-functions/dup2.texi: Mention the Linux bug.
45195         Reported by Simon Josefsson.
45196
45197 2009-08-25  Jim Meyering  <meyering@redhat.com>
45198
45199         libguestfs uses gnulib
45200         * users.txt: Add libguestfs.
45201
45202 2009-08-24  Eric Blake  <ebb9@byu.net>
45203
45204         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
45205         * lib/pipe2.c (includes): Add binary-io.h.
45206         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
45207
45208 2009-08-24  Bruno Haible  <bruno@clisp.org>
45209
45210         Tolerate declared but missing accept4 syscall.
45211         * lib/accept4.c (accept4): Invoke original accept4 function first, if
45212         available.
45213         * lib/sys_socket.in.h (accept4): If the function is already present,
45214         override it.
45215         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
45216         * modules/accept4 (Makefile.am): Compile accept4.c always.
45217         Reported by Paolo Bonzini and Eric Blake.
45218
45219 2009-08-23  Bruno Haible  <bruno@clisp.org>
45220
45221         New module 'accept4'.
45222         * lib/sys_socket.in.h (accept4): New declaration.
45223         * lib/accept4.c: New file.
45224         * m4/accept4.m4: New file.
45225         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45226         GNULIB_ACCEPT4, HAVE_ACCEPT4.
45227         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
45228         HAVE_ACCEPT4.
45229         * modules/accept4: New file.
45230         * doc/glibc-functions/accept4.texi: Mention the new module.
45231
45232 2009-08-24  Jim Meyering  <meyering@redhat.com>
45233
45234         progname: also set global program_invocation_name, when possible
45235         Before this change, a libtool-enabled program that calls glibc's
45236         error function would report the program name as
45237         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
45238         * modules/progname (configure.ac): Check for a declaration of
45239         program_invocation_name.
45240         * lib/progname.c:  Include <errno.h>.
45241         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
45242         Set program_invocation_name.
45243
45244 2009-08-23  Bruno Haible  <bruno@clisp.org>
45245
45246         * lib/dup3.c: Include <string.h>.
45247
45248 2009-08-23  Bruno Haible  <bruno@clisp.org>
45249
45250         * lib/dup3.c (dup3): Test only once whether the system actually exists.
45251         * lib/pipe2.c (pipe2): Likewise.
45252         Suggested by Eric Blake.
45253
45254 2009-08-23  Bruno Haible  <bruno@clisp.org>
45255
45256         Tolerate declared but missing dup3 syscall.
45257         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
45258         * lib/unistd.in.h (dup3): If the function is already present,
45259         override it.
45260         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
45261         * modules/dup3 (Makefile.am): Compile dup3.c always.
45262         Reported by Paolo Bonzini.
45263
45264 2009-08-23  Bruno Haible  <bruno@clisp.org>
45265
45266         Tolerate declared but missing pipe2 syscall.
45267         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
45268         available.
45269         * lib/unistd.in.h (pipe2): If the function is already present,
45270         override it.
45271         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
45272         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
45273         Reported by Paolo Bonzini.
45274
45275 2009-08-23  Bruno Haible  <bruno@clisp.org>
45276
45277         * lib/pipe2.c (pipe2): Move #ifs inside function.
45278
45279 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45280
45281         quotearg: document limitations of quote_these_too
45282         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
45283         those limitations are created.
45284         * lib/quotearg.h (set_char_quoting): Document that digits and
45285         letters that are special after backslash are not permitted.
45286         (quotearg_char): Cross-reference set_char_quoting documentation.
45287
45288 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
45289
45290         quotearg: implement custom_quoting_style
45291         * lib/quotearg.c: (struct quoting_options): Add left_quote and
45292         right_quote fields.
45293         (set_custom_quoting): New public function.
45294         (quotearg_buffer_restyled): Add left_quote and right_quote
45295         arguments, handle them very much like locale quoting, and update
45296         all uses.
45297         (quotearg_n_custom): New public function.
45298         (quotearg_n_custom_mem): New public function.
45299         (quotearg_custom): New public function.
45300         (quotearg_custom_mem): New public function.
45301         * lib/quotearg.h: Prototype and document new public functions.
45302         (enum quoting_style): For escape_quoting_style and
45303         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
45304         ignored even though they're otherwise like c_quoting_style.
45305         Add custom_quoting_style member and document with comparison to
45306         clocale_quoting_style.
45307         * tests/test-quotearg.c (custom_quotes): New array.
45308         (custom_results): New array.
45309         (main): Extend to test custom quoting.
45310
45311 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45312
45313         quotearg: fix right quote escaping when it's in quote_these_too
45314         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
45315         quote, be sure to prepend only one backslash.
45316         * tests/test-quotearg.c (use_quote_double_quotes): New function.
45317         (main): Test it.
45318
45319 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45320
45321         quotearg-tests: test escaping of embedded locale quotes
45322         * tests/test-quotearg.c (struct result_strings): Add member for
45323         new input.
45324         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
45325         (inputs): Add new input.
45326         (results_g): Add expected results.
45327         (flag_results): Likewise.
45328         (locale_results): Likewise.
45329         (compare_strings): Check those.
45330
45331 2009-08-23  Bruno Haible  <bruno@clisp.org>
45332
45333         Tests for module 'dup3'.
45334         * modules/dup3-tests: New file.
45335         * tests/test-dup3.c: New file.
45336
45337         New module 'dup3'.
45338         * lib/unistd.in.h (dup3): New declaration.
45339         * lib/dup3.c: New file.
45340         * m4/dup3.m4: New file.
45341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
45342         HAVE_DUP3.
45343         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
45344         * modules/dup3: New file.
45345         * doc/glibc-functions/dup3.texi: Mention the new module.
45346
45347 2009-08-23  Bruno Haible  <bruno@clisp.org>
45348
45349         Tweak the dup2 test.
45350         * tests/test-dup2.c (main): Create the test file empty. Verify that an
45351         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
45352         the test file is still empty. Fix argument order of lseek.
45353
45354 2009-08-23  Bruno Haible  <bruno@clisp.org>
45355
45356         Avoid test link errors when the modules getopt-gnu, gettext are used.
45357         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
45358         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45359
45360 2009-08-23  Bruno Haible  <bruno@clisp.org>
45361
45362         Fix getdtablesize() on mingw.
45363         * lib/getdtablesize.c (getdtablesize): Implement differently.
45364         * lib/unistd.in.h (getdtablesize): Improve comment.
45365
45366 2009-08-23  Bruno Haible  <bruno@clisp.org>
45367
45368         New module 'mkostemp'.
45369         Based on Ulrich Drepper's 2007-08-10 change in glibc.
45370         * lib/stdlib.in.h (mksotemp): New declaration.
45371         * lib/mkostemp.c: New file, from glibc with modifications.
45372         * lib/tempname.h (GT_FILE): Remove outdated comment.
45373         (gen_tempname): Add flags argument.
45374         * lib/tempname.c (__GT_BIGFILE): Remove macro.
45375         (__GT_FILE): Map to 1.
45376         (small_open, large_open): Remove macros.
45377         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
45378         * lib/mkstemp.c (mkstemp): Update.
45379         * lib/mkdtemp.c (mkdtemp): Likewise.
45380         * m4/mkostemp.m4: New file.
45381         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
45382         HAVE_MKOSTEMP.
45383         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
45384         HAVE_MKOSTEMP.
45385         * modules/mkostemp: New file, based on modules/mkstemp.
45386         * doc/glibc-functions/mkostemp.texi: Mention the new module.
45387         * NEWS: Mention the change.
45388
45389 2009-08-23  Bruno Haible  <bruno@clisp.org>
45390
45391         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
45392         Reported by Eric Blake.
45393
45394 2009-08-23  Bruno Haible  <bruno@clisp.org>
45395
45396         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
45397         Reported by Eric Blake.
45398
45399 2009-08-23  Bruno Haible  <bruno@clisp.org>
45400
45401         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
45402         * modules/pipe2 (Depends-on): Likewise.
45403
45404 2009-08-23  Eric Blake  <ebb9@byu.net>
45405
45406         fcntl-h: add O_TTY_INIT support
45407         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
45408         * tests/test-fcntl-h.c (o): Test it.
45409         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45410
45411         fcntl-h: rename from fcntl, in preparation for fcntl(2)
45412         * modules/fcntl: Move <fcntl.h> header replacement...
45413         * modules/fcntl-h: ...to new name, so as not to collide with
45414         like-named function.
45415         * tests/test-fcntl.c: Rename...
45416         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
45417         * modules/fcntl-tests: Rename...
45418         * modules/fcntl-h-tests: ...to this.  Update test file name.
45419         * modules/chdir-long (Depends-on): Update clients.
45420         * modules/chdir-safer (Depends-on): Likewise.
45421         * modules/fcntl-safer (Depends-on): Likewise.
45422         * modules/fts (Depends-on): Likewise.
45423         * modules/mkancesdirs (Depends-on): Likewise.
45424         * modules/mkdir-p (Depends-on): Likewise.
45425         * modules/open (Depends-on): Likewise.
45426         * modules/savewd (Depends-on): Likewise.
45427         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
45428         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45429
45430 2009-08-22  Bruno Haible  <bruno@clisp.org>
45431
45432         * modules/binary-io (License): Relicense under LGPL.
45433         * modules/pipe2 (License): Likewise.
45434
45435 2009-08-22  Bruno Haible  <bruno@clisp.org>
45436
45437         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
45438         return value.
45439         * lib/pipe-filter-gi.c (filter_init): Likewise.
45440         Reported by Eric Blake.
45441
45442 2009-08-22  Bruno Haible  <bruno@clisp.org>
45443
45444         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
45445         * modules/pipe (Depends-on): Add pipe2.
45446
45447 2009-08-22  Bruno Haible  <bruno@clisp.org>
45448
45449         Tests for module 'pipe2'.
45450         * modules/pipe2-tests: New file.
45451         * tests/test-pipe2.c: New file.
45452
45453         New module 'pipe2'.
45454         * lib/unistd.in.h (pipe2): New declaration.
45455         * lib/pipe2.c: New file.
45456         * m4/pipe2.m4: New file.
45457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
45458         HAVE_PIPE2.
45459         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
45460         * modules/pipe2: New file.
45461         * doc/glibc-functions/pipe2.texi: Mention the new module.
45462
45463 2009-08-22  Bruno Haible  <bruno@clisp.org>
45464
45465         Reference some new glibc functions.
45466         * doc/glibc-functions/accept4.texi: New file.
45467         * doc/glibc-functions/dup3.texi: New file.
45468         * doc/glibc-functions/mkostemp.texi: New file.
45469         * doc/glibc-functions/pipe2.texi: New file.
45470         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
45471         (Glibc sys/socket.h): Refer to accept4.
45472         (Glibc unistd.h): Refer to dup3, pipe2.
45473         Reported by Eric Blake.
45474
45475 2009-08-22  Jim Meyering  <meyering@redhat.com>
45476             Bruno Haible  <bruno@clisp.org>
45477
45478         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
45479         This makes it so packages using automake-1.11's silent-rules option
45480         can print e.g., a single "GEN    configmake.h" line, rather than
45481         the 30+ statements that perform the job.  If you want to see the
45482         actual commands, you can still run "make V=1".
45483         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
45484         so that make output is abbreviated when those variables are defined
45485         appropriately.
45486         * modules/argz: Likewise.
45487         * modules/arpa_inet: Likewise.
45488         * modules/byteswap: Likewise.
45489         * modules/configmake: Likewise.
45490         * modules/dirent: Likewise.
45491         * modules/errno: Likewise.
45492         * modules/fcntl: Likewise.
45493         * modules/float: Likewise.
45494         * modules/fnmatch: Likewise.
45495         * modules/getopt-posix: Likewise.
45496         * modules/glob: Likewise.
45497         * modules/iconv_open: Likewise.
45498         * modules/inttypes: Likewise.
45499         * modules/localcharset: Likewise.
45500         * modules/locale: Likewise.
45501         * modules/math: Likewise.
45502         * modules/netdb: Likewise.
45503         * modules/netinet_in: Likewise.
45504         * modules/poll: Likewise.
45505         * modules/posix_spawnp-tests: Likewise.
45506         * modules/sched: Likewise.
45507         * modules/search: Likewise.
45508         * modules/selinux-h: Likewise.
45509         * modules/signal: Likewise.
45510         * modules/spawn: Likewise.
45511         * modules/stdarg: Likewise.
45512         * modules/stdbool: Likewise.
45513         * modules/stddef: Likewise.
45514         * modules/stdint: Likewise.
45515         * modules/stdio: Likewise.
45516         * modules/stdlib: Likewise.
45517         * modules/string: Likewise.
45518         * modules/strings: Likewise.
45519         * modules/sys_file: Likewise.
45520         * modules/sys_ioctl: Likewise.
45521         * modules/sys_select: Likewise.
45522         * modules/sys_socket: Likewise.
45523         * modules/sys_stat: Likewise.
45524         * modules/sys_time: Likewise.
45525         * modules/sys_times: Likewise.
45526         * modules/sys_utsname: Likewise.
45527         * modules/sys_wait: Likewise.
45528         * modules/sysexits: Likewise.
45529         * modules/time: Likewise.
45530         * modules/unistd: Likewise.
45531         * modules/wchar: Likewise.
45532         * modules/wctype: Likewise.
45533
45534 2009-08-22  Jim Meyering  <meyering@redhat.com>
45535
45536         announce-gen: detect write failure
45537         * build-aux/announce-gen: Add Coda at end.
45538         Remove equivalent-but-more-verbose block at top.
45539
45540 2009-08-19  Akim Demaille  <demaille@gostai.com>
45541
45542         bootstrap: --help to stdout.
45543         * bootstrap (usage): Don't send --help to stderr.
45544         Use a here doc instead of a long string.
45545
45546 2009-08-21  Eric Blake  <ebb9@byu.net>
45547
45548         test-popen-safer: split from test-popen
45549         * tests/test-popen.c (main): Move...
45550         * tests/test-popen.h: ...into new file.
45551         * tests/test-popen-safer2.c: New file.
45552         * modules/popen-tests (Files): Add test-popen.h.
45553         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
45554         Suggested by Bruno Haible.
45555
45556         test-fcntl-safer: split from test-open
45557         * tests/test-open.c (main): Move...
45558         * tests/test-open.h: ...into new file.
45559         * tests/test-fcntl-safer.c: New file.
45560         * modules/open-tests (Files): Add test-open.h.
45561         * modules/fcntl-safer-tests: New file.
45562         Suggested by Bruno Haible.
45563
45564         test-fopen-safer: split from test-fopen
45565         * tests/test-fopen.c (main): Move...
45566         * tests/test-fopen.h: ...into new file.
45567         * tests/test-fopen-safer.c: New file.
45568         * modules/fopen-tests (Files): Add test-fopen.h.
45569         * modules/fopen-safer-tests: New file.
45570         Suggested by Bruno Haible.
45571
45572 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45573
45574         popen-safer: test O_CLOEXEC at run-time.
45575         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
45576
45577 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45578
45579         fcntl: move more flags to the header
45580         * lib/cloexec.c: Do not define FD_CLOEXEC here.
45581         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
45582         * lib/fcntl.in.h: Do both things here.
45583
45584 2009-08-21  Jim Meyering  <meyering@redhat.com>
45585
45586         consistently remove $@-t before redirecting to it
45587         * modules/argz: Remove $@-t and $@ before redirecting to the former.
45588         * modules/alloca-opt: Likewise.
45589         * modules/byteswap: Likewise.
45590         * modules/fnmatch: Likewise.
45591         * modules/getopt-posix: Likewise.
45592         * modules/glob: Likewise.
45593         * modules/poll: Likewise.
45594         * modules/posix_spawnp-tests: Likewise.
45595         * modules/sys_socket: Likewise.
45596         * modules/sysexits: Likewise.
45597
45598 2009-08-21  Eric Blake  <ebb9@byu.net>
45599
45600         popen: simplify access to original popen
45601         * lib/popen.c (rpl_popen): No need to worry about popen being a
45602         macro.
45603         Reported by Bruno Haible.
45604
45605 2009-08-20  Eric Blake  <ebb9@byu.net>
45606
45607         build: avoid some compiler warnings
45608         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
45609         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
45610         type.
45611         (new_exclude_segment, excluded_file_pattern_p)
45612         (excluded_file_name_p): Reduce scope.
45613         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
45614         old-style declaration.
45615
45616 2009-08-20  Simon Josefsson  <simon@josefsson.org>
45617
45618         * tests/test-exclude1.sh: Handle Windows EOL.
45619         * tests/test-exclude2.sh: Likewise.
45620         * tests/test-exclude3.sh: Likewise.
45621         * tests/test-exclude4.sh: Likewise.
45622         * tests/test-exclude5.sh: Likewise.
45623         * tests/test-exclude6.sh: Likewise.
45624         * tests/test-exclude7.sh: Likewise.
45625
45626 2009-08-19  Akim Demaille  <demaille@gostai.com>
45627
45628         bootstrap: find sha1sum when named gsha1sum.
45629         * bootstrap (find_tool): New.
45630         ($SHA1SUM): New.
45631         Use it.
45632
45633 2009-08-20  Jim Meyering  <meyering@redhat.com>
45634
45635         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
45636         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
45637         expression that converts "." in a file name to "\." in the resulting
45638         regexp.  Start with a dummy statement, so that prior shell variable
45639         definitions are expanded portably.  Reported by Simon Josefsson.
45640
45641 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
45642
45643         Fix polling for writeability of a screen buffer.
45644         * lib/poll.c: Distinguish input and screen buffers for the
45645         Win32 implementation.
45646         * lib/select.c: Likewise.
45647
45648 2009-08-19  Eric Blake  <ebb9@byu.net>
45649
45650         popen-safer: prevent popen from clobbering std descriptors
45651         * modules/popen-safer: New file.
45652         * lib/popen-safer.c: Likewise.
45653         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
45654         * lib/stdio--.h (popen): Provide override.
45655         * lib/stdio-safer.h (popen_safer): Provide declaration.
45656         * tests/test-popen.c (includes): Partially test this.
45657         * modules/popen-safer-tests: New file, for more tests.
45658         * tests/test-popen-safer.c: Likewise.
45659         * MODULES.html.sh (file stream based Input/Output): Mention it.
45660
45661         tests: test some of the *-safer modules
45662         * modules/fopen-safer (Depends-on): Add fopen.
45663         * modules/fcntl-safer (Depends-on): Add fcntl.
45664         * modules/stdlib-safer (Depends-on): Add stdlib.
45665         (configure.ac): Set indicator.
45666         * modules/unistd-safer (configure.ac): Likewise.
45667         * modules/tmpfile-safer (configure.ac): Likewise.
45668         (Depends-on): Add tmpfile.
45669         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
45670         active.
45671         * tests/test-fopen.c (includes): Test safer versions when they are
45672         in use.
45673         * tests/test-open.c (includes): Likewise.
45674
45675         popen: fix cygwin 1.5 bug when stdin closed
45676         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
45677         * modules/popen: New file.
45678         * modules/popen-tests: Likewise.
45679         * tests/test-popen.c: Likewise.
45680         * m4/popen.m4: Likewise.
45681         * lib/popen.c: Likewise.
45682         * lib/stdio.in.h (popen): New declaration.
45683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
45684         * modules/stdio (Makefile.am): Likewise.
45685         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
45686
45687 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
45688
45689         maint.mk: give full control over update-copyright exclusions
45690         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
45691         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
45692         (update-copyright): Don't force inclusion of top-level
45693         ChangeLog.  Don't force exclusion of all COPYING files, but make
45694         them the default exclusion instead.
45695
45696 2009-08-16  Bruno Haible  <bruno@clisp.org>
45697
45698         Fix test failures on Solaris 10.
45699         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
45700         tests when Solaris iconv() is used.
45701         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45702         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45703         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45704         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45705         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45706
45707 2009-08-16  Bruno Haible  <bruno@clisp.org>
45708
45709         Fix test failures on Solaris 10.
45710         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
45711         'tr' program and pass it as first argument.
45712         * tests/test-pipe-filter-gi1.sh: Likewise.
45713         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
45714         program as first argument.
45715         * tests/test-pipe-filter-gi1.c (main): Likewise.
45716
45717 2009-08-16  Eric Blake  <ebb9@byu.net>
45718
45719         fpurge: fix previous commits
45720         * modules/fpurge (Makefile.am): Make replacement conditional,
45721         partially reverting 2007-04-29 change; missed in previous
45722         attempt.
45723         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
45724         is missing.
45725
45726 2009-08-16  Bruno Haible  <bruno@clisp.org>
45727
45728         Clarify fpurge's effect on the file position.
45729         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
45730         * tests/test-fpurge.c (main): Make a second pass for checking the file
45731         position.
45732
45733 2009-08-16  Bruno Haible  <bruno@clisp.org>
45734
45735         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
45736         declaration of fpurge is missing.
45737         * tests/test-fpurge.c (main): Check that the file has not more contents
45738         than expected. Close the file before removing it.
45739
45740 2009-08-15  Eric Blake  <ebb9@byu.net>
45741
45742         fpurge: don't wrap working cygwin implementation
45743         * lib/fpurge.c (fpurge): Fix comment typo.
45744         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
45745         1.7 to avoid replacement.
45746         * tests/test-fpurge.c (main): Enhance test.
45747
45748 2009-08-15  Eric Blake  <ebb9@byu.net>
45749         and Jim Meyering  <meyering@redhat.com>
45750
45751         test-update-copyright: skip if perl is insufficient
45752         * tests/test-update-copyright.sh: Failure to run maintainer tool
45753         should not cause testsuite failure on cygwin 1.5.
45754
45755 2009-08-14  Eric Blake  <ebb9@byu.net>
45756
45757         doc: mention more functions added in cygwin 1.7.0
45758         * doc/posix-headers/limits.texi (limits.h): Update for recent
45759         cygwin additions.
45760         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
45761         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
45762         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
45763         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
45764         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
45765
45766 2009-08-14  Eric Blake  <ebb9@byu.net>
45767
45768         maint.mk: simplify update-copyright rule
45769         * top/maint.mk (update-copyright-local): Delete, and document how
45770         to do it in cfg.mk instead.
45771         (update-copyright-exclude-regexp): Delete, and document how to do
45772         it in .x-update-copyright instead.
45773         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
45774         exclude ChangeLog.
45775
45776 2009-08-14  Bruno Haible  <bruno@clisp.org>
45777
45778         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
45779
45780 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45781
45782         maint.mk: support update-copyright-env
45783         * top/maint.mk (update-copyright-env): Define place-holder.
45784         (update-copyright): Expand $(update-copyright-env) before
45785         invoking update-copyright.
45786
45787 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45788
45789         update-copyright: implement forced reformatting
45790         * build-aux/update-copyright: Implement and document
45791         UPDATE_COPYRIGHT_FORCE.
45792         * tests/test-update-copyright.sh: Test it.
45793
45794 2009-08-14  Eric Blake  <ebb9@byu.net>
45795         and Bruno Haible  <bruno@clisp.org>
45796
45797         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
45798         * tests/test-locale.c: Revert previous patch related to NULL.
45799         * tests/test-stdio.c: Likewise.
45800         * tests/test-stdlib.c: Likewise.
45801         * tests/test-string.c: Likewise.
45802         * tests/test-unistd.c: Likewise.
45803         * modules/time-tests (Depends-on): Add verify.
45804         * modules/wchar-tests (Depends-on): Likewise.
45805         * tests/test-time.c: Test for NULL compliance.
45806         * tests/test-wchar.c: Likewise.
45807         * modules/locale (Depends-on): Add stddef.
45808         * modules/stdio (Depends-on): Likewise.
45809         * modules/stdlib (Depends-on): Likewise.
45810         * modules/string (Depends-on): Likewise.
45811         * modules/time (Depends-on): Likewise.
45812         * modules/unistd (Depends-on): Likewise.
45813         * modules/wchar (Depends-on): Likewise.
45814         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
45815         * lib/stdlib.in.h (includes): Likewise.
45816         * lib/string.in.h (includes): Likewise.
45817         * lib/time.in.h (includes): Likewise.
45818         * lib/unistd.in.h (includes): Likewise.
45819         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
45820         replaced.
45821         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45822         * m4/stddef_h.m4: New file.
45823         * modules/stddef: Likewise.
45824         * lib/stddef.in.h: Likewise.
45825         * modules/stddef-tests: Likewise.
45826         * tests/test-stddef.c: Likewise.
45827         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
45828         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
45829         * doc/posix-headers/locale.texi (locale.h): Likewise.
45830         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
45831         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
45832         * doc/posix-headers/string.texi (string.h): Likewise.
45833         * doc/posix-headers/time.texi (time.h): Likewise.
45834         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
45835         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
45836
45837 2009-08-14  Eric Blake  <ebb9@byu.net>
45838
45839         doc: improve git diff of texinfo files
45840         * .gitattributes: Add rule for *.texi files, with hint on how to
45841         use it.
45842         Copied from m4, and based on a report by Bruno Haible.
45843
45844 2009-08-14  Bruno Haible  <bruno@clisp.org>
45845
45846         Disable multithread support by default on Cygwin 1.5.x for real.
45847         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
45848
45849 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45850
45851         update-copyright: much ado about intervals
45852         * build-aux/update-copyright: Implement and document
45853         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
45854         of copyright year intervals.
45855         Also, document UPDATE_COPYRIGHT_YEAR.
45856         * tests/test-update-copyright.sh: Test it.
45857
45858         update-copyright: convert 2-digit to 4-digit years
45859         * build-aux/update-copyright: Implement and document.
45860         * tests/test-update-copyright.sh: Update.
45861
45862 2009-08-14  Jim Meyering  <meyering@redhat.com>
45863
45864         test-exclude: avoid coreutils "make check" failure
45865         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
45866         just as in test-argmatch.c.
45867
45868 2009-08-13  Eric Blake  <ebb9@byu.net>
45869
45870         test-dup2: fix bad assumption
45871         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
45872         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
45873
45874         test-version-etc: fix CRLF portability issue
45875         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
45876         recognize \r.
45877         * tests/test-argp-version-etc-1.sh: Likewise.
45878
45879         getopt: update client modules
45880         * modules/argp (Depends-on): Use getopt-gnu.
45881         * modules/git-merge-changelog (Depends-on): Likewise.
45882         * modules/long-options (Depends-on): Likewise.
45883         * modules/xstrtol (Depends-on): Likewise.
45884
45885 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45886
45887         * tests/test-version-etc.sh: Don't fail on different
45888         project/version.  Don't fail on CRLF differences.  Rewrite to use
45889         multiple -e instead of multiple sed forks, suggested by Eric Blake
45890         <ebb9@byu.net>.
45891         * tests/test-argp-version-etc-1.sh: Likewise.
45892
45893 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45894
45895         * tests/test-version-etc.sh: Don't fail on different
45896         project/version.
45897
45898 2009-08-12  Bruno Haible  <bruno@clisp.org>
45899
45900         Tests for modules 'getopt-posix', 'getopt-gnu'.
45901         * modules/getopt-posix-tests: New file.
45902         * tests/test-getopt.c: New file.
45903         * tests/test-getopt.h: New file.
45904         * tests/test-getopt_long.h: New file.
45905
45906         New modules 'getopt-posix', 'getopt-gnu'.
45907         * modules/getopt-gnu: New file, renamed from modules/getopt.
45908         * modules/getopt-posix: New file.
45909         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
45910         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
45911         (gl_GETOPT): Remove macro.
45912         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
45913         Disable the test against BSD systems that declare optreset. Test
45914         against mingw bug. Test against lack of support of optional arguments
45915         on many platforms.
45916         * doc/glibc-headers/getopt.texi: Update module name and list of
45917         relevant platforms.
45918         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
45919         'getopt-gnu' and more portability problems.
45920         * NEWS: Mention the changes.
45921
45922 2009-08-12  Bruno Haible  <bruno@clisp.org>
45923
45924         Ensure that optarg etc. get declared by <unistd.h>.
45925         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
45926         AC_USE_SYSTEM_EXTENSIONS.
45927         * modules/getopt (Depends-on): Add 'extensions'.
45928
45929 2009-08-12  Bruno Haible  <bruno@clisp.org>
45930
45931         Avoid test link errors.
45932         * modules/pipe-filter-ii-tests (Makefile.am): Define
45933         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
45934         * modules/pipe-filter-gi-tests (Makefile.am): Define
45935         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
45936         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45937
45938 2009-08-12  Bruno Haible  <bruno@clisp.org>
45939
45940         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
45941         gl_GETOPT_SUBSTITUTE before.
45942         (gl_GETOPT): Use it.
45943         * m4/argp.m4 (gl_ARGP): Update.
45944         Reported by Sergey Poznyakoff.
45945
45946         * m4/getopt.m4: Reorder macros.
45947         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
45948         (gl_GETOPT_SUBSTITUTE): Remove macro.
45949
45950 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45951
45952         Minor improvement in gitlog-to-changelog
45953
45954         * build-aux/gitlog-to-changelog: New option `--format' makes
45955         output format string configurable.
45956
45957 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45958
45959         Optimize exclude: use hash tables for non-wildcard patterns.
45960
45961         * lib/exclude.c: Include hash.h and mbuiter.h
45962         (struct exclude_pattern, exclude_segment): New data types.
45963         (struct exclude): Rewrite.
45964         (fnmatch_pattern_has_wildcards): New function.
45965         (new_exclude_segment, free_exclude_segment): New functions.
45966         (excluded_file_pattern_p, excluded_file_name_p): New functions.
45967         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
45968         * lib/exclude.h (is_fnmatch_pattern): New prototype.
45969         * modules/exclude: Depend on hash and mbuiter.
45970
45971         * modules/exclude-tests: New file.
45972         * tests/test-exclude.c: New file.
45973         * tests/test-exclude1.sh: New file.
45974         * tests/test-exclude2.sh: New file.
45975         * tests/test-exclude3.sh: New file.
45976         * tests/test-exclude4.sh: New file.
45977         * tests/test-exclude5.sh: New file.
45978         * tests/test-exclude6.sh: New file.
45979         * tests/test-exclude7.sh: New file.
45980
45981 2009-08-12  Bruno Haible  <bruno@clisp.org>
45982
45983         Ensure that getopt() gets declared by <unistd.h>.
45984         * lib/unistd.in.h: Conditionally include getopt.h.
45985         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
45986         Set GNULIB_UNISTD_H_GETOPT.
45987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45988         GNULIB_UNISTD_H_GETOPT.
45989         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
45990
45991 2009-08-12  Bruno Haible  <bruno@clisp.org>
45992
45993         Clarify logic.
45994         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
45995         gl_replace_getopt instead of GETOPT_H.
45996
45997 2009-08-12  Bruno Haible  <bruno@clisp.org>
45998
45999         * m4/getopt.m4: Add comments.
46000
46001 2009-08-12  Bruno Haible  <bruno@clisp.org>
46002
46003         Disable multithread support by default on Cygwin 1.5.x.
46004         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
46005         set gl_use_threads=no if not specified otherwise.
46006
46007 2009-08-11  Bruno Haible  <bruno@clisp.org>
46008
46009         Avoid compilation error on NetBSD 5.0.
46010         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
46011         * tests/test-stdio.c: Likewise.
46012         * tests/test-stdlib.c: Likewise.
46013         * tests/test-string.c: Likewise.
46014         * tests/test-unistd.c: Likewise.
46015         Reported by Greg Troxel <gdt@ir.bbn.com>
46016         at <https://savannah.gnu.org/support/?106973>.
46017
46018 2009-08-11  Bruno Haible  <bruno@clisp.org>
46019
46020         * modules/dup2-tests (Depends-on): Remove close.
46021
46022         Undo 2009-07-19 commit.
46023         * modules/acl-tests (Depends-on): Remove close.
46024         * modules/binary-io-tests (Depends-on): Likewise.
46025         * modules/closein-tests (Depends-on): Likewise.
46026         * modules/flock-tests (Depends-on): Likewise.
46027         * modules/fsync-tests (Depends-on): Likewise.
46028         * modules/lseek-tests (Depends-on): Likewise.
46029         * modules/pipe-tests (Depends-on): Likewise.
46030         * modules/posix_spawn-tests (Depends-on): Likewise.
46031         * modules/posix_spawnp-tests (Depends-on): Likewise.
46032         * modules/stat-time-tests (Depends-on): Likewise.
46033         * modules/yesno-tests (Depends-on): Likewise.
46034
46035 2009-08-10  Bruno Haible  <bruno@clisp.org>
46036
46037         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
46038
46039 2009-08-10  Bruno Haible  <bruno@clisp.org>
46040
46041         Fix a gcc warning.
46042         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
46043
46044 2009-08-10  Bruno Haible  <bruno@clisp.org>
46045
46046         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
46047         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
46048         not only the first time.
46049         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
46050         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
46051         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
46052         is 1, not only the the first time.
46053
46054 2009-08-10  Bruno Haible  <bruno@clisp.org>
46055
46056         Make it possible to use module 'gethostname' without module 'close'.
46057         * lib/unistd.in.h (close): Evoke a link error only if
46058         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46060         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46061         * modules/unistd (Makefile.am): Substitute
46062         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46063         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
46064         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46065         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
46066         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46067         * modules/sys_ioctl (Makefile.am): Substitute
46068         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46069         * modules/socket (configure.ac): On native Windows, set
46070         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
46071         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46072         Reported by Sam Steingold <sds@gnu.org>.
46073
46074 2009-08-10  Bruno Haible  <bruno@clisp.org>
46075
46076         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
46077         * modules/ioctl (configure.ac): Likewise.
46078
46079 2009-08-10  Bruno Haible  <bruno@clisp.org>
46080
46081         Avoid collision between gnulib wrapper and libintl wrapper.
46082         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
46083         already defined in intl/printf.c.
46084         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
46085         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
46086
46087 2009-08-09  Bruno Haible  <bruno@clisp.org>
46088
46089         Make <sys/select.h> really self-contained, also on Solaris 10.
46090         * lib/sys_select.in.h: Include <string.h>.
46091         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
46092         Solaris 10 problem.
46093         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
46094         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
46095         Reported by Jim Meyering.
46096
46097 2009-08-09  Bruno Haible  <bruno@clisp.org>
46098
46099         Avoid warnings from 'aclocal' that are due to a use of macro name
46100         AM_XGETTEXT_OPTION that is not defined in automake.
46101         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
46102         automake.
46103         * modules/error (configure.ac): Likewise.
46104         * modules/propername (configure.ac): Likewise.
46105         * modules/vasprintf (configure.ac): Likewise.
46106         * modules/verror (configure.ac): Likewise.
46107         * modules/xprintf (configure.ac): Likewise.
46108         * modules/xvasprintf (configure.ac): Likewise.
46109
46110 2009-08-08  Bruno Haible  <bruno@clisp.org>
46111
46112         Avoid compilation error in C++ mode.
46113         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
46114         Reported by Sam Steingold <sds@gnu.org>.
46115
46116 2009-08-08  Bruno Haible  <bruno@clisp.org>
46117
46118         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
46119         for the various Unix platforms.
46120         * doc/posix-headers/limits.texi: Update platforms list regarding
46121         HOST_NAME_MAX.
46122         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46123
46124 2009-08-07  Jim Meyering  <meyering@redhat.com>
46125
46126         selinux-at: fix typo in a comment
46127         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
46128         Spotted by Paolo Bonzini.
46129
46130         selinux-at: remove redundant m4 code, add documentation
46131         * modules/selinux-at (configure.ac): Remove redundant code.
46132         LIB_SELINUX is already set via the dependent module, selinux-h.
46133         (Include): Add quotes around selinux-at.h.
46134         * lib/selinux-at.h: Add documentation.
46135         Reported by Bruno Haible in
46136         http://marc.info/?l=gnulib-bug&m=124958988300749
46137
46138 2009-08-07  Bruno Haible  <bruno@clisp.org>
46139
46140         Avoid link error on MacOS X 10.3 and 10.4.
46141         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
46142         on non-ELF systems.
46143         * lib/argp-pv.c (argp_program_version): Likewise.
46144         Reported by Simon Josefsson.
46145
46146 2009-08-07  Simon Josefsson  <simon@josefsson.org>
46147
46148         * tests/test-version-etc.sh: Use $EXEEXT.
46149
46150 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
46151
46152         update-copyright: update documentation to point to maint.mk
46153         * build-aux/update-copyright: Here.
46154
46155 2009-08-06  Jim Meyering  <meyering@redhat.com>
46156
46157         maint.mk: support update-copyright-local
46158         * top/maint.mk (update-copyright-local): Define place-holder.
46159         (update-copyright): Depend on $(update-copyright-local).
46160
46161 2009-08-06  Jim Meyering  <meyering@redhat.com>
46162
46163         selinux-at: new module
46164         Initially written for coreutils, this module will soon be
46165         used by findutils, too.
46166         * MODULES.html.sh [Misc]: Add selinux-at.
46167         * lib/selinux-at.h: New file, from coreutils.
46168         * lib/selinux-at.c: Likewise.
46169         * modules/selinux-at: Likewise.
46170         (License): Change from LGPL to GPL, since it depends
46171         on the GPL'd openat module.
46172
46173         doc: update README
46174         * README: Remove references to cogito.
46175         Remove cvs-repo-updating instructions from 2007.
46176         Don't imply that CVS is better if you have limited disk space.
46177
46178 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46179
46180         update-copyright: support C-style comments
46181         * build-aux/update-copyright: Implement and document.
46182         * tests/test-update-copyright.sh: Test.
46183
46184 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46185
46186         update-copyright: support omitted "(C)"
46187         * build-aux/update-copyright: Implement and document.  Also,
46188         allow variable whitespace before "(C)".
46189         * tests/test-update-copyright.sh: Test.
46190
46191 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46192
46193         update-copyright: don't trip on non-FSF copyright statements
46194         * build-aux/update-copyright: Fix so that the first correctly
46195         formatted FSF copyright statement is recognized no matter what
46196         appears before it.  Update documentation.
46197         * tests/test-update-copyright.sh: Test that.
46198
46199 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46200
46201         update-copyright: clean up code a little
46202         * build-aux/update-copyright: Append "_re" to the name of any
46203         variable holding a regular expression.
46204         Replace "old" and "new" with "stmt" in variable names.
46205         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
46206         handled correctly.
46207         Format code more consistently.
46208
46209 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46210
46211         update-copyright-tests: improve portability
46212         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
46213         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
46214
46215 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46216
46217         update-copyright: support @copyright{} and &copy;
46218         * build-aux/update-copyright: Implement and document.
46219         * tests/test-update-copyright.sh: Test.
46220
46221 2009-08-04  Jim Meyering  <meyering@redhat.com>
46222
46223         update-copyright-tests: correctly test EOL=\r\n handling
46224         * tests/test-update-copyright.sh: Put \r at the end of some lines
46225         for the dos-eol tests.  Based on a patch by Joel E. Denny.
46226
46227         maint.mk: make update-copyright exclusion list more configurable
46228         * top/maint.mk (update-copyright): Default to excluding COPYING,
46229         but allow an override, in case someone does want to update that file.
46230
46231         maint.mk: don't update copyright date in COPYING
46232         * top/maint.mk (update-copyright): Exclude COPYING.
46233
46234         maint.mk: add a copyright-updating rule
46235         * top/maint.mk (update-copyright): New rule.
46236         Derived from coreutils/Makefile.am.
46237
46238         update-copyright: rename some variables
46239         * build-aux/update-copyright: Rename a few variables for clarity.
46240         Tweak syntax.  List Joel E. Denny as coauthor.
46241
46242 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46243
46244         update-copyright: fix bug for 2-digit last year and add tests
46245         * build-aux/update-copyright: Fix bug.
46246         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
46247         specified.
46248         * modules/update-copyright-tests: New
46249         * tests/test-update-copyright.sh: New.
46250
46251 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46252
46253         update-copyright: handle leading tabs in line prefix
46254         * build-aux/update-copyright: Count leading tabs as 8 spaces
46255         when computing margin.  This helps with the formatting of
46256         ChangeLogs, for example.
46257         Fix documentation a little.
46258
46259 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46260
46261         update-copyright: support EOL=\r\n
46262         * build-aux/update-copyright: Implement that.
46263
46264 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46265
46266         update-copyright: automatically format copyright statements
46267         * build-aux/update-copyright: Implement that.
46268         Also, be a little more predictable and safer by always failing
46269         when the full copyright format is not perfectly recognized as an
46270         unbroken whole.  Discussed at
46271         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
46272         Rewrite documentation.
46273
46274 2009-08-03  Bruno Haible  <bruno@clisp.org>
46275
46276         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
46277
46278 2009-08-02  Bruno Haible  <bruno@clisp.org>
46279
46280         Tests for module 'uname'.
46281         * modules/uname-tests: New file.
46282         * tests/test-uname.c: New file.
46283
46284         New module 'uname'.
46285         * lib/uname.c: New file.
46286         * m4/uname.m4: New file.
46287         * modules/uname: New file.
46288         * doc/posix-functions/uname.texi: Mention the new module.
46289
46290 2009-08-02  Bruno Haible  <bruno@clisp.org>
46291
46292         Tests for module 'sys_utsname'.
46293         * modules/sys_utsname-tests: New file.
46294         * tests/test-sys_utsname.c: New file.
46295
46296         New module 'sys_utsname'.
46297         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
46298         * m4/sys_utsname_h.m4: New file.
46299         * modules/sys_utsname: New file.
46300         * doc/posix-headers/sys_utsname.texi: Mention the new module.
46301
46302 2009-08-02  Bruno Haible  <bruno@clisp.org>
46303
46304         Implicitly initialize the sockets library.
46305         * lib/gethostname.c: Include sockets.h.
46306         (rpl_gethostname): Invoke gl_sockets_startup.
46307         * lib/socket.c: Include sockets.h.
46308         (rpl_socket): Invoke gl_sockets_startup.
46309         * modules/gethostname (Depends-on): Add sockets.
46310         * modules/socket (Depends-on): Likewise.
46311         * tests/test-poll.c: Don't include sockets.h.
46312         (main): Don't invoke gl_sockets_startup.
46313         * tests/test-select.c: Don't include sockets.h.
46314         (main): Don't invoke gl_sockets_startup.
46315
46316 2009-08-02  Bruno Haible  <bruno@clisp.org>
46317
46318         Allow multiple calls to gl_sockets_startup.
46319         * lib/sockets.c (initialized_sockets_version): New variable.
46320         (gl_sockets_startup): Do nothing if already called for this or a higher
46321         version.
46322         (gl_sockets_cleanup): Reset initialized_sockets_version.
46323
46324 2009-08-03  Simon Josefsson  <simon@josefsson.org>
46325
46326         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
46327         different project/version.
46328
46329 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
46330             Bruno Haible  <bruno@clisp.org>
46331
46332         Tests for module 'pipe-filter-gi'.
46333         * modules/pipe-filter-gi-tests: New file.
46334         * tests/test-pipe-filter-gi1.sh: New file.
46335         * tests/test-pipe-filter-gi1.c: New file.
46336         * tests/test-pipe-filter-gi2.sh: New file.
46337         * tests/test-pipe-filter-gi2-main.c: New file.
46338         * tests/test-pipe-filter-gi2-child.c: New file.
46339
46340         New module 'pipe-filter-gi'.
46341         * lib/pipe-filter-gi.c: New file.
46342         * modules/pipe-filter-gi: New file.
46343
46344 2009-08-02  Bruno Haible  <bruno@clisp.org>
46345             Paolo Bonzini  <bonzini@gnu.org>
46346
46347         Tests for module 'pipe-filter-ii'.
46348         * modules/pipe-filter-ii-tests: New file.
46349         * tests/test-pipe-filter-ii1.sh: New file.
46350         * tests/test-pipe-filter-ii1.c: New file.
46351         * tests/test-pipe-filter-ii2.sh: New file.
46352         * tests/test-pipe-filter-ii2-main.c: New file.
46353         * tests/test-pipe-filter-ii2-child.c: New file.
46354
46355         New module 'pipe-filter-ii'.
46356         * lib/pipe-filter.h: New file.
46357         * lib/pipe-filter-ii.c: New file.
46358         * lib/pipe-filter-aux.h: New file.
46359         * modules/pipe-filter-ii: New file.
46360
46361 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46362
46363         * lib/gc-libgcrypt.c: Change copyright to FSF.
46364         * lib/gc-gnulib.c: Likewise.
46365
46366 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
46367
46368         * lib/gethostname.c: Include limits.h.
46369
46370 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46371             Bruno Haible  <bruno@clisp.org>
46372
46373         Ensure HOST_NAME_MAX as part of the gethostname module.
46374         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
46375         define also HOST_NAME_MAX.
46376         * tests/test-gethostname.c: Include <limits.h>.
46377         (main): Check also HOST_NAME_MAX.
46378         * doc/posix-headers/limits.texi: Document the mingw problem.
46379
46380 2009-08-02  Bruno Haible  <bruno@clisp.org>
46381
46382         * lib/gethostname.c (gethostname): Fix handling of large len argument.
46383         Add comments.
46384
46385 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46386
46387         * lib/gethostname.c: Add Windows wrapper.
46388         * m4/gethostname.m4: Look for gethostname in -lws2_32.
46389         * modules/gethostname: Depend on sys_socket & errno, for also
46390         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
46391         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
46392
46393 2009-07-31  Jim Meyering  <meyering@redhat.com>
46394
46395         getloadavg: fix symbol name in comment
46396         * lib/getloadavg.c: Correct a typo I introduced when adding
46397         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
46398         Matt Kraai spotted the problem.
46399
46400 2009-07-29  Matt Kraai  <mkraai@beckman.com>
46401
46402         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
46403         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
46404         code also if ! defined N_NAME_POINTER.
46405         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
46406         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
46407         but the n_name member is a 12-byte array.
46408
46409 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
46410
46411         update-copyright: generalize comment handling
46412         * build-aux/update-copyright: Handle copyright statements
46413         within more comment styles.
46414         Document usage.
46415         Report any file with an external copyright holder or parse failure.
46416
46417 2009-07-29  Jim Meyering  <meyering@redhat.com>
46418
46419         mktime: correct setting of REPLACE_MKTIME
46420         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
46421
46422         update-copyright: new module
46423         * modules/update-copyright: New file.
46424         * build-aux/update-copyright: New file.
46425         * MODULES.html.sh (maint+release support): Add update-copyright.
46426
46427 2009-07-27  Bruno Haible  <bruno@clisp.org>
46428
46429         Fix compilation error when <ctime> is used and mktime is replaced.
46430         * lib/time.in.h (mktime): New declaration.
46431         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
46432         REPLACE_MKTIME instead of defining mktime in config.h.
46433         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
46434         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
46435         Reported by Ross McFarland <rwmcfa1@neces.com>.
46436
46437 2009-07-27  Bruno Haible  <bruno@clisp.org>
46438
46439         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
46440         Reported by Matt Kraai <mkraai@beckman.com>.
46441
46442 2009-07-25  Jim Meyering  <meyering@redhat.com>
46443
46444         maint.mk: avoid warnings about missing files
46445         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
46446         diagnostic when .prev-version does not exist.
46447         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
46448         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
46449         nonexistent cfg.mk.
46450         Suggestions from Simon Josefsson.
46451
46452 2009-07-25  Bruno Haible  <bruno@clisp.org>
46453
46454         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
46455         defined as macros. Needed on QNX 6.4.1.
46456         Reported by Matt Kraai <mkraai@beckman.com>.
46457
46458 2009-07-23  Jim Meyering  <meyering@redhat.com>
46459
46460         maint.mk: invoke "make dist" with a working value of XZ_OPT
46461         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
46462
46463 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
46464
46465         Make fseeko.c compile on QNX.
46466         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
46467
46468 2009-07-22  Peter Simons  <simons@cryp.to>
46469
46470         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
46471         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
46472         * lib/md4.h: Likewise.
46473         * lib/md5.h: Likewise.
46474         * lib/sha1.h: Likewise.
46475         * lib/sha256.h: Likewise.
46476         * lib/sha512.h: Likewise.
46477
46478         tests-sha1: don't assign literal string to 'char *' variable
46479         * tests/test-sha1.c (main): Declare locals with "const" to match
46480         attributes of the right hand side.
46481
46482 2009-07-21  Eric Blake  <ebb9@byu.net>
46483
46484         dup2: fix more mingw problems
46485         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
46486         fd to itself.
46487         * doc/posix-functions/dup2.texi (dup2): Document the bug.
46488         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
46489         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
46490         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
46491         care of mingw bugs.
46492
46493 2009-07-21  Jim Meyering  <meyering@redhat.com>
46494
46495         vc-list-files: avoid failure when /bin/sh is dash
46496         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
46497         On some Debian based systems, /bin/sh is a symlink to dash, and running
46498         this command would omit the "/" following each 'tests' prefix:
46499           dash -x build-aux/vc-list-files -C . tests
46500         That is because bash and dash work differently:
46501           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
46502           bash ok
46503           dash odd
46504
46505 2009-07-21  Eric Blake  <ebb9@byu.net>
46506
46507         dup2-tests: test previous patch
46508         * modules/dup2-tests: New file.
46509         * tests/test-dup2.c: Likewise.
46510         * tests/test-open.c (main): Avoid unspecified behavior.
46511         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
46512         test.
46513
46514         dup2: work around mingw and cygwin 1.5 bug
46515         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
46516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46517         * modules/unistd (Makefile.am): Substitute it.
46518         * lib/unistd.in.h (dup2): Declare the replacement.
46519         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
46520         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
46521         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
46522         * modules/execute (Depends-on): Add dup2.
46523         * modules/fseterr (Depends-on): Likewise.
46524         * modules/pipe (Depends-on): Likewise.
46525         * modules/posix_spawn-internal (Depends-on): Likewise.
46526
46527 2009-07-21  Bruno Haible  <bruno@clisp.org>
46528
46529         * modules/.gitattributes: New file.
46530
46531 2009-07-20  Bruno Haible  <bruno@clisp.org>
46532
46533         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
46534         (main): Use it.
46535
46536 2009-07-20  Eric Blake  <ebb9@byu.net>
46537
46538         test-pipe: make a bit more robust.
46539         * tests/test-pipe.c (myerr): Allow error messages regardless of
46540         what we do to stderr.
46541         (test_pipe): Rearrange to avoid deadlock.
46542         (child_main): Try a larger read, to ensure we avoided deadlock.
46543         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
46544         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
46545         if misused.
46546
46547 2009-07-19  Jim Meyering  <meyering@redhat.com>
46548
46549         fts: avoid false-positive cycle-detection
46550         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
46551         for each new command line argument.
46552
46553 2009-07-19  Bruno Haible  <bruno@clisp.org>
46554
46555         Fix build error on mingw with the modules sys_select and unistd.
46556         * modules/acl-tests (Depends-on): Add close.
46557         * modules/binary-io-tests (Depends-on): Likewise.
46558         * modules/closein-tests (Depends-on): Likewise.
46559         * modules/flock-tests (Depends-on): Likewise.
46560         * modules/fsync-tests (Depends-on): Likewise.
46561         * modules/lseek-tests (Depends-on): Likewise.
46562         * modules/pipe-tests (Depends-on): Likewise.
46563         * modules/posix_spawn-tests (Depends-on): Likewise.
46564         * modules/posix_spawnp-tests (Depends-on): Likewise.
46565         * modules/stat-time-tests (Depends-on): Likewise.
46566         * modules/yesno-tests (Depends-on): Likewise.
46567
46568 2009-07-19  Bruno Haible  <bruno@clisp.org>
46569
46570         Unify conditionals.
46571         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
46572         macros, not at the compiler macros.
46573         * lib/pipe.c: Likewise.
46574         * lib/execute.c: Likewise.
46575         * lib/spawni.c: Likewise.
46576
46577 2009-07-19  Bruno Haible  <bruno@clisp.org>
46578
46579         Fix handling of closed stdin/stdout/stderr on mingw.
46580         * lib/w32spawn.h: Include unistd.h.
46581         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
46582         file descriptor with O_NOINHERIT flag.
46583         (fd_safer_noinherit): New function, based on fd-safer.c.
46584         (dup_safer_noinherit): New function, based on dup-safer.c.
46585         (undup_safer_noinherit): New function.
46586         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
46587         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
46588         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
46589         instead of fd_safer.
46590         * tests/test-pipe.c: Include <windows.h>.
46591         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
46592         result.
46593
46594         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
46595         from main.
46596         (test_pipe): Pass an extra argument for disambiguation.
46597         (main): Invoke parent_main or child_main.
46598
46599         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
46600         consistently.
46601
46602 2009-07-18  Eric Blake  <ebb9@byu.net>
46603
46604         test-pipe: fix mingw build
46605         * tests/test-pipe.c (main): Avoid fcntl on mingw.
46606
46607 2009-07-18  Bruno Haible  <bruno@clisp.org>
46608
46609         * modules/pipe-tests (Makefile.am): Fix typo.
46610
46611 2009-07-18  Eric Blake  <ebb9@byu.net>
46612
46613         error: fix mingw build
46614         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
46615         Reported by Bruno Haible.
46616
46617         error: avoid undefined use of stdout
46618         * lib/error.c (error, error_at_line): Check that fd 1 is open
46619         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
46620         is handling faults and the close_stdout module wants to report the
46621         detection of closed stdout as an error.
46622
46623 2009-07-17  Eric Blake  <ebb9@byu.net>
46624
46625         pipe: be robust in face of closed fds
46626         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
46627         should cause child to misbehave.
46628         * modules/pipe-tests: New module.
46629         * tests/test-pipe.c: New file.
46630         * tests/test-pipe.sh: New file.
46631         Reported by Akim Demaille.
46632
46633 2009-07-14  Bruno Haible  <bruno@clisp.org>
46634
46635         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
46636         Reported by anonymous kc.
46637
46638 2009-07-07  Jim Meyering  <meyering@redhat.com>
46639
46640         maint.mk: don't look for translatable strings in *.m4 or *.mk
46641         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
46642         when searching for translatable strings.
46643
46644 2009-07-05  Jim Meyering  <meyering@redhat.com>
46645
46646         remove superfluous parentheses in STREQ definition
46647         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
46648         * lib/getugroups.c (STREQ): Likewise.
46649         * lib/fnmatch.c (STREQ): Likewise.
46650         Spotted by Bruno Haible.
46651
46652 2009-07-04  Jim Meyering  <meyering@redhat.com>
46653
46654         argv-iter: new module
46655         * MODULES.html.sh: Add argv-iter.
46656         * lib/argv-iter.c, lib/argv-iter.h: New files.
46657         * modules/argv-iter: New file.
46658         * modules/argv-iter-tests: New file.
46659         * tests/test-argv-iter.c: Test it.
46660
46661 2009-07-04  Bruno Haible  <bruno@clisp.org>
46662
46663         Fix assertion.
46664         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
46665         contains more exact copies of a given entry than file2, leave the extra
46666         copies unpaired rather than aborting.
46667         Reported by Eric Blake.
46668
46669 2009-07-02  Bruno Haible  <bruno@clisp.org>
46670
46671         Speedup git-merge-changelog for git cherry-pick.
46672         * lib/git-merge-changelog.c (struct entries_mapping): New type.
46673         (entries_mapping_get): New function, extracted from compute_mapping.
46674         (entries_mapping_reverse_get): New function.
46675         (compute_mapping): Add a 'full' argument. Return the result in a
46676         'struct entries_mapping'.
46677         (main): Update. Access the mappings through entries_mapping_get.
46678         Reported by Eric Blake.
46679
46680 2009-07-02  Bruno Haible  <bruno@clisp.org>
46681
46682         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
46683         best_i.
46684
46685 2009-07-02  Bruno Haible  <bruno@clisp.org>
46686
46687         Speed up approximate search for matching ChangeLog entries.
46688         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
46689         argument. Call fstrcmp_bounded instead of fstrcmp.
46690         (compute_mapping, try_split_merged_entry, main): Update callers.
46691
46692 2009-07-02  Bruno Haible  <bruno@clisp.org>
46693
46694         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
46695
46696 2009-06-30  Bruno Haible  <bruno@clisp.org>
46697
46698         Reduce the number of uc_is_cased calls.
46699         * lib/unicase.h (casing_suffix_context_t): Add
46700         'first_char_except_ignorable' field.
46701         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
46702         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
46703         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
46704         Update initializer.
46705         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
46706         case-ignorable characters.
46707         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
46708         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
46709         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
46710         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
46711         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
46712
46713 2009-06-30  Bruno Haible  <bruno@clisp.org>
46714
46715         Tests for module 'unicase/ignorable'.
46716         * modules/unicase/ignorable-tests: New file.
46717         * tests/unicase/test-ignorable.c: New file, generated by
46718         gen-uni-tables.
46719
46720         Tests for module 'unicase/cased'.
46721         * modules/unicase/cased-tests: New file.
46722         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
46723         * tests/unicase/test-predicate-part1.h: New file, derived from
46724         tests/unictype/test-predicate-part1.h.
46725         * tests/unicase/test-predicate-part2.h: New file, same as
46726         tests/unictype/test-predicate-part2.h.
46727
46728         Fix evaluation of "Before C" condition of FINAL_SIGMA.
46729         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
46730         (output_casing_properties): New function.
46731         (main): Call it.
46732         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
46733         * lib/unicase/cased.c: Include unictype/bitmap.h.
46734         (uc_is_cased): Define through a bitmap lookup.
46735         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
46736         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
46737         (uc_is_case_ignorable): Define through a bitmap lookup.
46738         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
46739         lib/unictype/bitmap.h.
46740         (Depends-on): Add inline. Clean up.
46741         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
46742         lib/unictype/bitmap.h.
46743         (Depends-on): Add inline. Clean up.
46744         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
46745         recognition.
46746         * tests/unicase/test-u16-tolower.c (main): Likewise.
46747         * tests/unicase/test-u32-tolower.c (main): Likewise.
46748
46749 2009-06-30  Bruno Haible  <bruno@clisp.org>
46750
46751         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
46752         * lib/unicase/u16-casemap.c: Likewise.
46753         * lib/unicase/u32-casemap.c: Likewise.
46754
46755 2009-06-29  Bruno Haible  <bruno@clisp.org>
46756
46757         Define u32_casefold as a wrapper around u32_ct_casefold.
46758         * lib/unicase/u32-casefold.c: Update.
46759         * modules/unicase/u32-casefold (Depends-on): Add
46760         unicase/u32-ct-casefold, unicase/empty-prefix-context,
46761         unicase/empty-suffix-context. Clean up.
46762
46763         Define u16_casefold as a wrapper around u16_ct_casefold.
46764         * lib/unicase/u16-casefold.c: Update.
46765         * modules/unicase/u16-casefold (Depends-on): Add
46766         unicase/u16-ct-casefold, unicase/empty-prefix-context,
46767         unicase/empty-suffix-context. Clean up.
46768
46769         Define u8_casefold as a wrapper around u8_ct_casefold.
46770         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
46771         * lib/unicase/u8-casefold.c: Update.
46772         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
46773         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46774
46775         Define u32_totitle as a wrapper around u32_ct_totitle.
46776         * lib/unicase/u32-totitle.c: Update.
46777         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
46778         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46779
46780         Define u16_totitle as a wrapper around u16_ct_totitle.
46781         * lib/unicase/u16-totitle.c: Update.
46782         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
46783         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46784
46785         Define u8_totitle as a wrapper around u8_ct_totitle.
46786         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
46787         functions.
46788         (FUNC): Delegate to U_CT_TOTITLE.
46789         * lib/unicase/u8-totitle.c: Update.
46790         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
46791         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46792
46793         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
46794         invocation.
46795         * modules/unicase/u32-tolower (Depends-on): Add
46796         unicase/empty-prefix-context, unicase/empty-suffix-context.
46797
46798         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
46799         invocation.
46800         * modules/unicase/u16-tolower (Depends-on): Add
46801         unicase/empty-prefix-context, unicase/empty-suffix-context.
46802
46803         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
46804         * modules/unicase/u8-tolower (Depends-on): Add
46805         unicase/empty-prefix-context, unicase/empty-suffix-context.
46806
46807         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
46808         invocation.
46809         * modules/unicase/u32-toupper (Depends-on): Add
46810         unicase/empty-prefix-context, unicase/empty-suffix-context.
46811
46812         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
46813         invocation.
46814         * modules/unicase/u16-toupper (Depends-on): Add
46815         unicase/empty-prefix-context, unicase/empty-suffix-context.
46816
46817         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
46818         * modules/unicase/u8-toupper (Depends-on): Add
46819         unicase/empty-prefix-context, unicase/empty-suffix-context.
46820
46821         New module 'unicase/u32-ct-casefold'.
46822         * lib/unicase/u32-ct-casefold.c: New file.
46823         * modules/unicase/u32-ct-casefold: New file.
46824
46825         New module 'unicase/u16-ct-casefold'.
46826         * lib/unicase/u16-ct-casefold.c: New file.
46827         * modules/unicase/u16-ct-casefold: New file.
46828
46829         New module 'unicase/u8-ct-casefold'.
46830         * lib/unicase/u8-ct-casefold.c: New file.
46831         * lib/unicase/u-ct-casefold.h: New file, derived from
46832         lib/unicase/u-casefold.h.
46833         * modules/unicase/u8-ct-casefold: New file.
46834
46835         New module 'unicase/u32-ct-totitle'.
46836         * lib/unicase/u32-ct-totitle.c: New file.
46837         * modules/unicase/u32-ct-totitle: New file.
46838
46839         New module 'unicase/u16-ct-totitle'.
46840         * lib/unicase/u16-ct-totitle.c: New file.
46841         * modules/unicase/u16-ct-totitle: New file.
46842
46843         New module 'unicase/u8-ct-totitle'.
46844         * lib/unicase/u8-ct-totitle.c: New file.
46845         * lib/unicase/u-ct-totitle.h: New file, derived from
46846         lib/unicase/u-totitle.h.
46847         * modules/unicase/u8-ct-totitle: New file.
46848
46849         New module 'unicase/u32-ct-tolower'.
46850         * lib/unicase/u32-ct-tolower.c: New file.
46851         * modules/unicase/u32-ct-tolower: New file.
46852
46853         New module 'unicase/u16-ct-tolower'.
46854         * lib/unicase/u16-ct-tolower.c: New file.
46855         * modules/unicase/u16-ct-tolower: New file.
46856
46857         New module 'unicase/u8-ct-tolower'.
46858         * lib/unicase/u8-ct-tolower.c: New file.
46859         * modules/unicase/u8-ct-tolower: New file.
46860
46861         New module 'unicase/u32-ct-toupper'.
46862         * lib/unicase/u32-ct-toupper.c: New file.
46863         * modules/unicase/u32-ct-toupper: New file.
46864
46865         New module 'unicase/u16-ct-toupper'.
46866         * lib/unicase/u16-ct-toupper.c: New file.
46867         * modules/unicase/u16-ct-toupper: New file.
46868
46869         New module 'unicase/u8-ct-toupper'.
46870         * lib/unicase/u8-ct-toupper.c: New file.
46871         * modules/unicase/u8-ct-toupper: New file.
46872
46873         Add context arguments to u*_casemap functions.
46874         * lib/unicase/unicasemap.h: Include unicase.h.
46875         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
46876         suffix_context arguments.
46877         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
46878         functions.
46879         (FUNC): Add prefix_context and suffix_context arguments. Use
46880         uc_is_cased and uc_is_case_ignorable.
46881         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
46882         * lib/unicase/u16-casemap.c: Likewise.
46883         * lib/unicase/u32-casemap.c: Likewise.
46884         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
46885         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46886         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
46887         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46888         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
46889         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46890
46891         New module 'unicase/u32-suffix-context'.
46892         * lib/unicase/u32-suffix-context.c: New file.
46893         * modules/unicase/u32-suffix-context: New file.
46894
46895         New module 'unicase/u16-suffix-context'.
46896         * lib/unicase/u16-suffix-context.c: New file.
46897         * modules/unicase/u16-suffix-context: New file.
46898
46899         New module 'unicase/u8-suffix-context'.
46900         * lib/unicase/u8-suffix-context.c: New file.
46901         * lib/unicase/u-suffix-context.h: New file.
46902         * modules/unicase/u8-suffix-context: New file.
46903
46904         New module 'unicase/empty-suffix-context'.
46905         * lib/unicase/empty-suffix-context.c: New file.
46906         * modules/unicase/empty-suffix-context: New file.
46907
46908         New module 'unicase/u32-prefix-context'.
46909         * lib/unicase/u32-prefix-context.c: New file.
46910         * modules/unicase/u32-prefix-context: New file.
46911
46912         New module 'unicase/u16-prefix-context'.
46913         * lib/unicase/u16-prefix-context.c: New file.
46914         * modules/unicase/u16-prefix-context: New file.
46915
46916         New module 'unicase/u8-prefix-context'.
46917         * lib/unicase/u8-prefix-context.c: New file.
46918         * lib/unicase/u-prefix-context.h: New file.
46919         * lib/unicase/context.h: New file.
46920         * modules/unicase/u8-prefix-context: New file.
46921
46922         New module 'unicase/empty-prefix-context'.
46923         * lib/unicase/empty-prefix-context.c: New file.
46924         * modules/unicase/empty-prefix-context: New file.
46925
46926         New module 'unicase/ignorable'.
46927         * lib/unicase/ignorable.c: New file.
46928         * modules/unicase/ignorable: New file.
46929
46930         New module 'unicase/cased'.
46931         * lib/unicase/caseprop.h: New file.
46932         * lib/unicase/cased.c: New file.
46933         * modules/unicase/cased: New file.
46934
46935         New functions for case mapping of substrings.
46936         * lib/unicase.h (casing_prefix_context_t): New type.
46937         (unicase_empty_prefix_context): New variable.
46938         (u8_casing_prefix_context, u16_casing_prefix_context,
46939         u32_casing_prefix_context, u8_casing_prefixes_context,
46940         u16_casing_prefixes_context, u32_casing_prefixes_context): New
46941         declarations.
46942         (casing_suffix_context_t): New type.
46943         (unicase_empty_suffix_context): New variable.
46944         (u8_casing_suffix_context, u16_casing_suffix_context,
46945         u32_casing_suffix_context, u8_casing_suffixes_context,
46946         u16_casing_suffixes_context, u32_casing_suffixes_context,
46947         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
46948         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
46949         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
46950         declarations.
46951
46952 2009-06-28  Jim Meyering  <meyering@redhat.com>
46953
46954         boostrap: indent only with spaces
46955         * build-aux/bootstrap: Indent only with spaces, never TABs.
46956
46957         bootstrap: split long lines
46958         * build-aux/bootstrap: Keep line length < 80.
46959
46960         bootstrap: sync from coreutils
46961         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
46962         just as autoreconf does.  Verify a list of prerequisite
46963         package-name,version-number pairs if defined in bootstrap.conf.
46964         Refer to README-prereq, if prerequisites are not satisfied.
46965
46966 2009-06-27  Eric Blake  <ebb9@byu.net>
46967
46968         tests: add test for bogus NULL definition
46969         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
46970         * tests/test-stdlib.c: Likewise.
46971         * tests/test-string.c: Likewise.
46972         * tests/test-locale.c: Likewise.
46973         * tests/test-unistd.c: Likewise.
46974         * modules/stdio-tests (Depends-on): Add verify.
46975         * modules/stdlib-tests (Depends-on): Likewise.
46976         * modules/string-tests (Depends-on): Likewise.
46977         * modules/locale-tests (Depends-on): Likewise.
46978         * modules/unistd-tests (Depends-on): Likewise.
46979
46980 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
46981
46982         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
46983         self-explaining comment.
46984         * m4/selinux-selinux-h: Update serial.
46985         (gl_LIBSELINUX): New macro, adding a warning for missing development
46986         packages to code extracted from...
46987         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
46988         Add warning for missing development packages here, too.
46989
46990 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
46991
46992         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
46993
46994 2009-06-25  Eric Blake  <ebb9@byu.net>
46995
46996         version-etc: fix regression
46997         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
46998         gcc.
46999         (version_etc): Use it, to catch bugs with trailing NULL.
47000         * lib/version-etc.c (version_etc_arn): Delete unused argument.
47001         (version_etc_va): Fix logic bug.
47002         * modules/version-etc-tests: Add test.
47003         * tests/test-version-etc.c: New file.
47004         * tests/test-version-etc.sh: Likewise.
47005
47006 2009-06-25  Sam Steingold  <sds@gnu.org>
47007
47008         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
47009         mbtowc declaration.
47010
47011 2009-06-25  Eric Blake  <ebb9@byu.net>
47012
47013         fpurge: migrate into <stdio.h>
47014         * lib/fpurge.h: Delete...
47015         * lib/stdio.in.h (fpurge): ...and declare here, instead.
47016         * lib/fpurge.c (fpurge): Change declaring header.
47017         * modules/fpurge (Files): Drop deleted file.
47018         (Depends-on): Add stdio.
47019         (configure.ac): Set witness.
47020         * modules/stdio (Makefile.am): Support fpurge macros.
47021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47022         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
47023         * lib/fflush.c: Update client.
47024         * tests/test-fpurge.c: Likewise.
47025         * NEWS: Mention the change.
47026
47027 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47028
47029         * lib/argp-version-etc.c (program_authors): Add const
47030         qualifier.
47031         * lib/version-etc.c: Fix typos in the comments.
47032         * modules/argp-version-etc: Depends on version-etc.
47033
47034 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47035
47036         argp-version-etc: new module.
47037
47038         * lib/argp-version-etc.c: New file.
47039         * lib/argp-version-etc.h: New file.
47040         * modules/argp-version-etc: New file.
47041         * modules/argp-version-etc-tests: New file.
47042         * tests/test-argp-version-etc.c: New test.
47043         * tests/test-argp-version-etc-1.sh: New test.
47044
47045 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47046
47047         Provide additional interfaces and documentation for version-etc
47048         module.
47049
47050         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
47051         interfaces.
47052         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
47053         prototypes.
47054
47055 2009-06-24  Bruno Haible  <bruno@clisp.org>
47056
47057         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
47058         HAVE_LIB${NAME} macro.
47059         Reported by Sam Steingold <sds@gnu.org>.
47060
47061 2009-06-23  Simon Josefsson  <simon@josefsson.org>
47062
47063         * modules/hash-tests (test_hash_LDADD): Link to libintl when
47064         needed.
47065
47066 2009-06-21  Bruno Haible  <bruno@clisp.org>
47067
47068         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
47069         work.
47070         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
47071         together with LIB${NAME}, LTLIB${NAME}.
47072         Reported by Sam Steingold <sds@gnu.org>.
47073
47074 2009-06-20  Jim Meyering  <meyering@redhat.com>
47075
47076         tests: make sc_require_test_exit_idiom more generic
47077         * top/maint.mk (Exit_witness_file): New overridable variable.
47078         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
47079         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
47080
47081 2009-06-19  Jim Meyering  <meyering@redhat.com>
47082
47083         hash: reverse order of src/dst parameters in an internal interface
47084         * lib/hash.c (transfer_entries): Reverse order of parameters to
47085         put DST before SRC.  Adjust callers.
47086
47087         tests: test-hash: avoid wholesale duplication
47088         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
47089         Instead, use a loop and add a single conditional.
47090
47091         tests: test-hash: allow seed selection via a command line argument
47092         * tests/test-hash.c (get_seed): New function.
47093         (main): Use it.
47094
47095 2009-06-19  Eric Blake  <ebb9@byu.net>
47096
47097         hash: avoid memory leak on allocation failure
47098         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
47099         failure.  Factor repeated algorithm...
47100         (transfer_entries): ...into new helper routine.
47101         (hash_delete): React to hash_rehash return value.
47102
47103         hash: reduce memory pressure in hash_rehash no-op case
47104         * lib/hash.c (next_prime): Avoid overflow.
47105         (hash_initialize): Factor bucket size computation...
47106         (compute_bucket_size): ...into new helper function.
47107         (hash_rehash): Use new function and open coding to reduce memory
47108         pressure, and avoid a memory leak in USE_OBSTACK code.
47109         Reported by Jim Meyering.
47110
47111 2009-06-18  Eric Blake  <ebb9@byu.net>
47112
47113         hash: make rotation more obvious
47114         * modules/hash (Depends-on): Add bitrotate and stdint.
47115         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
47116         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
47117         (SIZE_MAX): Rely on headers for definition.
47118         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
47119         (raw_hasher): Use rotr_sz.
47120         Suggested by Jim Meyering.
47121
47122         hash: fix memory leak in last patch
47123         * lib/hash.c (hash_rehash): Avoid memory leak.
47124
47125         hash: avoid no-op rehashing
47126         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
47127
47128         hash: provide default callback functions
47129         * lib/hash.c (raw_hasher, raw_comparator): New functions.
47130         (hash_initialize): Use them as defaults.
47131         * tests/test-hash.c (main): Test this.
47132
47133         hash: minor optimization
47134         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
47135         when possible.
47136         (hash_initialize): Document this promise.
47137         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
47138         * tests/test-hash.c (hash_compare_strings): Test this.
47139
47140 2009-06-18  Bruno Haible  <bruno@clisp.org>
47141
47142         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
47143         going to be replaced anyway.
47144
47145 2009-06-18  Bruno Haible  <bruno@clisp.org>
47146
47147         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
47148         in one place.
47149         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
47150         be replaced anyway.
47151
47152 2009-06-18  Eric Blake  <ebb9@byu.net>
47153
47154         hash: check for resize before insertion
47155         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
47156         threshold before insertion, so that a pathological hash_rehash
47157         that fills every bucket can still trigger another rehash.
47158
47159 2009-06-18  Jim Meyering  <meyering@redhat.com>
47160
47161         hash-tests: add a loop around the small tests
47162         * tests/test-hash.c (main): Repeat small tests with selected
47163         small initial table sizes.
47164
47165 2009-06-17  Eric Blake  <ebb9@byu.net>
47166
47167         hash: minor cleanups
47168         * lib/hash.h (hash_entry): Make opaque, by moving...
47169         * lib/hash.c (hash_entry): ...here.
47170         (hash_insert): Clarify restrictions on what can be inserted.
47171         (hash_get_next): Clarify when it is safe to remove an element
47172         during traversal.
47173         (check_tuning): Skip verification when tuning is known safe.
47174         (hash_initialize): Clarify restrictions on tuning.
47175
47176 2009-06-17  Jim Meyering  <jim@meyering.net>
47177         and Eric Blake  <ebb9@byu.net>
47178
47179         hash-tests: new module
47180         * modules/hash-tests: New file.
47181         * tests/test-hash.c: New file.
47182
47183 2009-06-17  Eric Blake  <ebb9@byu.net>
47184
47185         strstr-simple: document new module
47186         * MODULES.html.sh: Document new module.
47187
47188         strstr, strcasestr: replace on platforms with broken memchr
47189         * modules/strstr: Split into...
47190         * modules/strstr-simple: ...new module that does not care about
47191         performance, but does care about glibc bug.
47192         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
47193         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
47194         if platform memchr is broken, per Debian bug 521737.
47195         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
47196         memchr.
47197         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
47198         * doc/posix-functions/strstr.texi (strstr): Document the fix.
47199         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47200         * modules/mountlist (Depends-on): Add strstr-simple.
47201         * modules/gen-uni-tables (Depends-on): Likewise.
47202         * modules/argz (Depends-on): Add strstr.
47203
47204 2009-06-17  Bruno Haible  <bruno@clisp.org>
47205
47206         * modules/posix_spawn-internal (Depends-on): Add errno.
47207
47208 2009-06-17  Bruno Haible  <bruno@clisp.org>
47209
47210         Define missing ESTALE on Interix 3.5.
47211         * lib/errno.in.h (ESTALE): Assign a value if missing.
47212         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
47213         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
47214         missing.
47215         * doc/posix-headers/errno.texi: Mention the Interix bug.
47216         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
47217
47218 2009-06-15  Eric Blake  <ebb9@byu.net>
47219
47220         memchr, memchr2: add valgrind exception
47221         * lib/memchr.valgrind: New file.
47222         * lib/memchr2.valgrind: New file.
47223         * modules/memchr (Files): Distribute valgrind file.
47224         * modules/memchr2 (Files): Likewise.
47225
47226         docs: memchr is no longer obsolete
47227         * MODULES.html.sh: Move memchr from obsolete to string.h section.
47228         * lib/string.in.h (memchr): Simplify logic.
47229
47230 2009-06-14  Jim Meyering  <meyering@redhat.com>
47231
47232         link-follow: fix the "checking..." message to not mention trailing slash
47233         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
47234         never considered trailing slashes.
47235
47236 2009-06-14  Bruno Haible  <bruno@clisp.org>
47237
47238         * m4/memchr.m4: Mention also the bug on IA-64.
47239         * doc/posix-functions/memchr.texi: Likewise.
47240
47241 2009-06-12  Eric Blake  <ebb9@byu.net>
47242
47243         memchr: detect broken x86_64 and alpha implementations
47244         * modules/memchr-tests (Depends-on): Move mmap detection...
47245         * modules/memchr (Depends-on): ...here.
47246         (configure.ac): Set indicator.
47247         * lib/string.in.h (memchr): Declare replacement.
47248         * modules/string (Makefile.am): Trigger replacement.
47249         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47250         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
47251         bugs.
47252         * doc/posix-functions/memchr.texi (memchr): Document the bug.
47253         * modules/getpagesize (License): Relax license.
47254
47255 2009-06-11  Bruno Haible  <bruno@clisp.org>
47256
47257         * lib/idpriv.h: Add more references.
47258
47259 2009-06-08  Bruno Haible  <bruno@clisp.org>
47260
47261         Tests for module 'idpriv-droptemp'.
47262         * modules/idpriv-droptemp-tests: New file.
47263         * tests/test-idpriv-droptemp.sh: New file.
47264         * tests/test-idpriv-droptemp.su.sh: New file.
47265         * tests/test-idpriv-droptemp.c: New file.
47266
47267         New module 'idpriv-droptemp'.
47268         * lib/idpriv-droptemp.c: New file.
47269         * modules/idpriv-droptemp: New file.
47270
47271 2009-06-08  Bruno Haible  <bruno@clisp.org>
47272
47273         Tests for module 'idpriv-drop'.
47274         * modules/idpriv-drop-tests: New file.
47275         * tests/test-idpriv-drop.sh: New file.
47276         * tests/test-idpriv-drop.su.sh: New file.
47277         * tests/test-idpriv-drop.c: New file.
47278
47279         New module 'idpriv-drop'.
47280         * lib/idpriv.h: New file.
47281         * lib-idpriv-drop.c: New file.
47282         * m4/idpriv.m4: New file.
47283         * modules/idpriv-drop: New file.
47284
47285 2009-06-08  Bruno Haible  <bruno@clisp.org>
47286
47287         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
47288         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47289         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47290         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47291         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47292         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47293         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47294
47295 2009-06-08  Eric Blake  <ebb9@byu.net>
47296
47297         test-strstr: use memory fence, when possible
47298         * tests/test-strstr.c (main): Use memory fence, in order to be
47299         more likely to trigger Debian bug 521737.
47300         * modules/strstr-tests (Files): Pull in additional files.
47301
47302         memchr: no longer obsolete, for wider field testing
47303         * modules/memchr (Status, Notice): Delete, this module is no
47304         longer obsolete.
47305         * modules/vasnprintf (Depends-on): Add memchr.
47306
47307 2009-06-07  Jim Meyering  <meyering@redhat.com>
47308
47309         hash: declare some functions with the warn_unused_result attribute
47310         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
47311
47312 2009-06-07  Bruno Haible  <bruno@clisp.org>
47313
47314         * tests/test-alignof.c: Don't test int64_t if it does not exist.
47315         Reported by Eric Blake.
47316
47317 2009-06-06  Eric Blake  <ebb9@byu.net>
47318
47319         test-alignof: fix typo with long double
47320         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
47321         compiler error.
47322
47323 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
47324
47325         Escape non-texinfo { and }s.
47326         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
47327         markup error.
47328
47329 2009-06-04  Jim Meyering  <meyering@redhat.com>
47330
47331         gitlog-to-changelog: don't infloop on an empty commit log
47332         * build-aux/gitlog-to-changelog: Warn about an empty log message.
47333         Reported by Boris Petersen <transacid@centerim.org>.
47334
47335 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
47336
47337         version-etc: extend for packagers
47338         Add three new configure options, intended for packagers:
47339           --with-packager="packager name"
47340           --with-packager-version="packager-specific version"
47341           --with-packager-bug-reports="packager bug reporting"
47342         An example with coreutils:
47343           $ ./configure \
47344             --with-packager=Gentoo \
47345             --with-packager-bug-report=http://bugs.gentoo.org/ \
47346             --with-packager-version="patchset 1.6"
47347           $ ./src/ls --version | head -n2
47348           ls (GNU coreutils) 7.1-dirty
47349           Packaged by Gentoo (patchset 1.6)
47350         Note that the bug reporting info via --help doesn't show up because
47351         coreutils uses its own custom emit_bug_reporting_address() implementation
47352         in src/system.h.  If it didn't, it'd look like:
47353           $ ./src/ls --help | tail -n4
47354           Report bugs to <bug-coreutils@gnu.org>.
47355           Report Gentoo bugs to <http://bugs.gentoo.org/>.
47356           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
47357           General help using GNU software: <http://www.gnu.org/gethelp/>.
47358         * lib/version-etc.c: Print new information, if provided.
47359         * m4/version-etc.m4: New file.
47360         * modules/version-etc (Files): Add m4/version-etc.m4.
47361         (configure.ac): Add gl_VERSION_ETC.
47362
47363 2009-05-31  Bruno Haible  <bruno@clisp.org>
47364
47365         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
47366         and 'int64_t'.
47367         * modules/alignof-tests (Dependencies): Add stdint.
47368         Reported by Eric Blake.
47369
47370 2009-05-31  Bruno Haible  <bruno@clisp.org>
47371
47372         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
47373         restriction due to compiler bugs.
47374         Reported by Eric Blake.
47375
47376 2009-05-31  Simon Josefsson  <simon@josefsson.org>
47377             Bruno Haible  <bruno@clisp.org>
47378
47379         Fix test-alignof failure.
47380         * lib/alignof.h (alignof_slot): New macro.
47381         (alignof_type): New macro, with the same semantics as the previous
47382         'alignof'.
47383         (alignof): Alias to alignof_slot.
47384         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
47385         check that the results are usable as constant expressions.
47386
47387 2009-05-31  Bruno Haible  <bruno@clisp.org>
47388
47389         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
47390         * tests/test-memchr.c (main): Check that memchr does not read past the
47391         first occurrence of the byte.
47392         * tests/test-strstr.c (main): Update comment.
47393         Suggested by Eric Blake.
47394
47395 2009-05-30  Bruno Haible  <bruno@clisp.org>
47396
47397         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
47398         detail how to use dumpbin.
47399         Reported by David Byron <dbyron@dbyron.com>.
47400
47401 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47402
47403         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
47404
47405 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47406
47407         * m4/manywarnings.m4: Add GCC 4.4 warnings.
47408
47409 2009-05-28  Bruno Haible  <bruno@clisp.org>
47410
47411         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
47412         build-aux/ files.
47413
47414 2009-05-28  Simon Josefsson  <simon@josefsson.org>
47415
47416         * gnulib-tool (func_import): Transform license on build-aux/ files too.
47417
47418 2009-05-27  Simon Josefsson  <simon@josefsson.org>
47419
47420         * gnulib-tool (sed_transform_main_lib_file)
47421         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
47422         regexps.
47423
47424 2009-05-26  Simon Josefsson  <simon@josefsson.org>
47425
47426         * tests/test-strstr.c: Add another self-test.
47427         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
47428         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
47429
47430 2009-05-23  Bruno Haible  <bruno@clisp.org>
47431
47432         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
47433         change.
47434
47435 2009-05-21  Bruno Haible  <bruno@clisp.org>
47436
47437         Simplify use of mode_t varargs.
47438         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
47439         uses 'mode_t' or 'int'.
47440         * lib/openat.c (openat): Likewise.
47441         * lib/open-safer.c (open_safer): Likewise.
47442         * m4/mode_t.m4: New file.
47443         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
47444         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
47445         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
47446         * modules/open (Files): Add m4/mode_t.m4.
47447         * modules/openat (Files): Likewise.
47448         * modules/fcntl-safer (Files): Likewise.
47449         Suggested by Eric Blake.
47450
47451 2009-05-21  Pádraig Brady  <P@draigbrady.com>
47452
47453         * doc/glibc-functions/fallocate.texi: New file.
47454         * doc/gnulib.texi: Include it.
47455
47456 2009-05-21  Eric Blake  <ebb9@byu.net>
47457             Bruno Haible  <bruno@clisp.org>
47458
47459         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
47460         invocations.
47461         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47462
47463 2009-05-21  Eric Blake  <ebb9@byu.net>
47464             Bruno Haible  <bruno@clisp.org>
47465
47466         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
47467         include_next. Fix of 2008-11-20 commit.
47468         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
47469         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
47470         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
47471         NEXT_MATH_H.
47472         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
47473         instead of NEXT_MATH_H.
47474
47475 2009-05-21  Bruno Haible  <bruno@clisp.org>
47476
47477         Avoid redefinition warnings for SIZE_MAX.
47478         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
47479         Reported by Simon Josefsson.
47480
47481 2009-05-21  Bruno Haible  <bruno@clisp.org>
47482
47483         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
47484         AC_CACHE_VAL.
47485
47486 2009-05-20  Bruno Haible  <bruno@clisp.org>
47487
47488         Make zeroptr.h work on mingw.
47489         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
47490         mprotect.
47491         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
47492         * modules/memchr2-tests (configure.ac): Likewise.
47493         * modules/memcmp-tests (configure.ac): Likewise.
47494         * modules/memmem-tests (configure.ac): Likewise.
47495         * modules/memrchr-tests (configure.ac): Likewise.
47496         Reported by Simon Josefsson.
47497
47498 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47499
47500         * tests/test-glob.c: Include string.h for strcmp prototype.
47501
47502 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47503
47504         * modules/getdelim (Depends-on): Add explicit stdint, although it
47505         was implicitly already pulled in via realloc-posix.
47506         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
47507
47508 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47509
47510         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
47511         G. Christensen" <tgc@jupiterrise.com>.
47512         * m4/sys_socket_h.m4: Check for sa_family_t.
47513         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
47514         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
47515         * tests/test-sys_socket.c: Check that sa_family_t works.
47516
47517 2009-05-18  Eric Blake  <ebb9@byu.net>
47518
47519         maint.mk: allow gnulib_dir in VPATH build
47520         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
47521
47522 2009-05-15  Jim Meyering  <meyering@redhat.com>
47523
47524         maint.mk: Give gnulib_dir a default definition.
47525         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
47526         Thus, most packages no longer need to specify this variable in cfg.mk
47527
47528 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
47529
47530         rename.m4: fix typos that would make non-mingw cross-configure fail
47531         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
47532
47533 2009-05-13  Eric Blake  <ebb9@byu.net>
47534
47535         mmap-anon: avoid out-of-order autoconf expansion
47536         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
47537         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
47538         * modules/memchr-tests (Depends-on): Add extensions.
47539         * modules/memchr2-tests (Depends-on): Add extensions.
47540         * modules/memcmp-tests (Depends-on): Add extensions.
47541         * modules/memmem-tests (Depends-on): Add extensions.
47542         * modules/memrchr-tests (Depends-on): Add extensions.
47543
47544 2009-05-13  Bruno Haible  <bruno@clisp.org>
47545
47546         Make some tests ISO C 99 compliant.
47547         * tests/zerosize-ptr.h: New file.
47548         * tests/test-memchr.c: Include zerosize-ptr.h.
47549         (main): Use a zero-size object pointer instead of NULL.
47550         * tests/test-memchr2.c: Include zerosize-ptr.h.
47551         (main): Use a zero-size object pointer instead of NULL.
47552         * tests/test-memcmp.c: Include zerosize-ptr.h.
47553         (main): Use a zero-size object pointer instead of NULL.
47554         * tests/test-memmem.c: Include zerosize-ptr.h.
47555         (main): Use a zero-size object pointer instead of NULL.
47556         * tests/test-memrchr.c: Include zerosize-ptr.h.
47557         (main): Use a zero-size object pointer instead of NULL.
47558         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
47559         m4/mmap-anon.m4.
47560         (Depends-on): Add getpagesize.
47561         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47562         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
47563         m4/mmap-anon.m4.
47564         (Depends-on): Add getpagesize.
47565         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47566         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
47567         m4/mmap-anon.m4.
47568         (Depends-on): Add getpagesize.
47569         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47570         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
47571         m4/mmap-anon.m4.
47572         (Depends-on): Add getpagesize.
47573         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47574         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
47575         m4/mmap-anon.m4.
47576         (Depends-on): Add getpagesize.
47577         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47578
47579 2009-05-12  Bruno Haible  <bruno@clisp.org>
47580
47581         Tests for module 'alignof'.
47582         * modules/alignof-tests: New file.
47583         * tests/test-alignof.c: New file.
47584
47585 2009-05-12  Bruno Haible  <bruno@clisp.org>
47586
47587         Fix alignof macro.
47588         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
47589         vendor compilers that are always correct.
47590
47591 2009-05-12  Bruno Haible  <bruno@clisp.org>
47592
47593         Make the MAP_ANONYMOUS detection work on HP-UX 11.
47594         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
47595         not whether its fully works.
47596
47597 2009-05-12  Bruno Haible  <bruno@clisp.org>
47598
47599         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
47600
47601 2009-05-12  Jim Meyering  <meyering@redhat.com>
47602
47603         * top/maint.mk: Adjust backslash alignment.
47604
47605 2009-05-11  Simon Josefsson  <simon@josefsson.org>
47606
47607         * top/maint.mk: Make $(srcdir)/build-aux configurable.
47608
47609 2009-05-11  Eric Blake  <ebb9@byu.net>
47610
47611         argp: avoid undefined behavior
47612         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
47613         macros.
47614
47615 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47616
47617         * tests/test-vc-list-files-git.sh: Do git config of user.email and
47618         user.name to prevent git commit from complaining.
47619
47620 2009-05-10  Bruno Haible  <bruno@clisp.org>
47621
47622         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
47623         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
47624         it rewrites every file name only once.
47625         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
47626
47627 2009-05-08  Bruno Haible  <bruno@clisp.org>
47628
47629         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
47630         instead of 'max'.
47631
47632 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47633
47634         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
47635         sockaddr_storage test.
47636
47637 2009-05-07  Simon Josefsson  <simon@josefsson.org>
47638
47639         * modules/sys_socket (Makefile.am): Substitute
47640         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
47641         * m4/sys_socket_h.m4: Check for sockaddr_storage.
47642         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
47643         * tests/test-sys_socket.c: Check sockaddr_storage.
47644
47645 2009-05-08  Bruno Haible  <bruno@clisp.org>
47646
47647         New module 'alignof'.
47648         * lib/alignof.h: New file.
47649         * modules/alignof: New file.
47650
47651 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47652             Bruno Haible  <bruno@clisp.org>
47653
47654         Fix test-file-has-acl on FreeBSD.
47655         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
47656         mask is implicitly added.
47657         * tests/test-file-has-acl.c: Include <signal.h>.
47658         (main): Terminate the test after 5 seconds.
47659         * modules/acl-tests (configure.ac): Check for alarm function.
47660
47661 2009-05-04  Bruno Haible  <bruno@clisp.org>
47662
47663         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
47664         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
47665         * modules/errno (configure.ac): Drop AC_REQUIRE.
47666         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
47667         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
47668
47669 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47670
47671         * modules/glob-tests: New module.
47672         * tests/test-glob.c: Add.
47673
47674 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47675
47676         * modules/fnmatch-tests: New module.
47677         * tests/test-fnmatch.c: Add.
47678
47679 2009-05-04  Eric Blake  <ebb9@byu.net>
47680
47681         maint: make the new no-submodule-changes rule VPATH-safe
47682         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
47683
47684 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47685             Bruno Haible  <bruno@clisp.org>
47686
47687         acl: Fix infinite loop on FreeBSD.
47688         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
47689         of return value from acl_get_entry.
47690         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
47691         Likewise.
47692
47693 2009-05-03  Bruno Haible  <bruno@clisp.org>
47694
47695         * lib/acl-internal.h (acl_entries): Clarify return value.
47696         * lib/acl_entries.c (acl_entries): Likewise.
47697
47698 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47699
47700         Bug fix in acl module.
47701         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
47702
47703 2009-05-03  Bruno Haible  <bruno@clisp.org>
47704
47705         Create gperf-generated file in the source dir, not in the build dir.
47706         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
47707         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
47708         * modules/unicase/locale-language (unicase/locale-languages.h):
47709         Likewise.
47710         * modules/unicase/special-casing (unicase/special-casing-table.h):
47711         Likewise.
47712         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
47713         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
47714         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
47715         Reported by Ralf Wildenhues.
47716
47717 2009-05-03  Bruno Haible  <bruno@clisp.org>
47718
47719         * modules/fnmatch (Description, configure.ac): Taken from
47720         fnmatch-posix.
47721         * modules/fnmatch-posix: Turn into a symbolic reference to the
47722         'fnmatch' module, and deprecate.
47723         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
47724
47725 2009-05-03  Bruno Haible  <bruno@clisp.org>
47726
47727         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
47728         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
47729         Reported by Ralf Wildenhues.
47730
47731 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47732
47733         * m4/fnmatch.m4: Fix fnmatch re-define.
47734
47735 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47736
47737         priv-set: new module and tests; adapt write-any-file
47738         * lib/priv-set.c: New file.
47739         * lib/priv-set.h: New file.
47740         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
47741         * lib/write-any-file.c: Simplify by using priv-set module.
47742         * m4/priv-set.m4: New file.
47743         * modules/priv-set: New file.
47744         * modules/unlinkdir: Add dependency on priv-set module.
47745         * modules/write-any-file: Likewise.
47746
47747         Tests for module 'priv-set'.
47748         * modules/priv-set-tests: New file.
47749         * tests/test-priv-set.c: New file.
47750
47751 2009-05-03  Jim Meyering  <meyering@redhat.com>
47752             Bruno Haible  <bruno@clisp.org>
47753
47754         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
47755         use the converted UTF-8 variant of the name instead.
47756
47757 2009-05-03  Jim Meyering  <meyering@redhat.com>
47758
47759         tests: tighten some getdate tests
47760         * tests/test-getdate.c (main): Tighten tests: require equality,
47761         not just greater than.  Set TZ envvar to UTC0.
47762
47763 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
47764
47765         getdate: correctly interpret "next monday" when run on a Monday
47766         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
47767         that e.g., "next tues" (when run on a tuesday) results in a date
47768         that is one week in the future, and not today's date.
47769         I.e., add a week when the wday is the same as the current one.
47770         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
47771         and earlier by Martin Bernreuther and Jan Minář.
47772         * tests/test-getdate.c (main): Check that "next DAY" is always in
47773         the future and that "last DAY" is always in the past.
47774
47775 2009-05-02  Jim Meyering  <meyering@redhat.com>
47776
47777         build: ensure that a release build fails when a submodule is unclean
47778         * top/maint.mk (no-submodule-changes): New rule.
47779         (alpha beta major): Depend on it.
47780
47781 2009-05-02  Bruno Haible  <bruno@clisp.org>
47782
47783         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
47784         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
47785         shell variable gl_fnmatch_required to detect which variant is
47786         requested.
47787         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
47788         gl_FUNC_FNMATCH_POSIX.
47789         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
47790         exclude fnmatch-posix.
47791
47792 2009-05-02  Bruno Haible  <bruno@clisp.org>
47793
47794         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
47795         * modules/mbsrtowcs (License): Change to LGPLv2+.
47796         * modules/strnlen1 (License): Likewise.
47797         Reported by Simon Josefsson.
47798
47799 2009-05-02  Bruno Haible  <bruno@clisp.org>
47800
47801         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
47802         "cross".
47803         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
47804         gnulib-tool was called with option --source-base=lib.
47805
47806 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47807
47808         Use automake *-local hooks without commands, for extensibility.
47809         * modules/localcharset (Makefile.am): Rename install-exec-local
47810         rule to install-exec-localcharset, and make it a prerequisite of
47811         install-exec-local.  Likewise, rename the uninstall-local rule to
47812         uninstall-localcharset, and make it a prerequisite of the former.
47813
47814 2009-05-01  Bruno Haible  <bruno@clisp.org>
47815
47816         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
47817         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47818         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
47819         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
47820         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
47821         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47822         m4/locale-zh.m4, m4/codeset.m4.
47823
47824         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47825         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
47826         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47827         m4/locale-zh.m4.
47828
47829         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
47830         REPLACE_WCRTOMB if mbstate_t must be replaced.
47831         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
47832         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
47833
47834 2009-05-01  Bruno Haible  <bruno@clisp.org>
47835
47836         Avoid compiler warnings when redefining macros defined by <libintl.h>.
47837         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
47838         dngettext, dcngettext, textdomain, bindtextdomain,
47839         bind_textdomain_codeset): Undefine before redefining.
47840
47841 2009-04-30  Bruno Haible  <bruno@clisp.org>
47842
47843         Fix bug introduced on 2009-04-25.
47844         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
47845         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
47846         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
47847         is defined.
47848         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
47849         is defined.
47850         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
47851         is defined.
47852         Reported by Elbert_Pol <elbert.pol@gmail.com>.
47853
47854 2009-04-28  Bruno Haible  <bruno@clisp.org>
47855
47856         Comment tweaks.
47857         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
47858         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
47859         * lib/unicase.h (u*_casexfrm): Likewise.
47860         Reported by Paolo Bonzini.
47861
47862 2009-04-28  Bruno Haible  <bruno@clisp.org>
47863
47864         Fix a compilation error.
47865         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
47866         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47867         Reported by Jim Meyering.
47868
47869 2009-04-27  Bruno Haible  <bruno@clisp.org>
47870
47871         New module 'libunistring'.
47872         * modules/libunistring: New file.
47873         * m4/libunistring.m4: New file.
47874         * MODULES.html.sh (Unicode string functions): Add it.
47875
47876 2009-04-27  Eric Blake  <ebb9@byu.net>
47877
47878         maint.mk: allow package-specific header to provide <config.h>
47879         * top/maint.mk (sc_require_config_h): New variable.
47880         (sc_require_config_h, sc_require_config_h_first): Use it.
47881
47882 2009-04-27  Simon Josefsson  <simon@josefsson.org>
47883
47884         * top/maint.mk (sc_avoid_if_before_free): Except
47885         useless-if-before-free script.
47886
47887 2009-04-27  Eric Blake  <ebb9@byu.net>
47888
47889         maintainer-makefile: depend on all required helper scripts
47890         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
47891         useless-if-before-free.
47892         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
47893         version, rather than assuming gnulib checkout is available.
47894         Reported by Simen Josefsson.
47895
47896 2009-04-26  Bruno Haible  <bruno@clisp.org>
47897
47898         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
47899         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
47900         "../" or "..".
47901
47902 2009-04-26  Bruno Haible  <bruno@clisp.org>
47903
47904         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
47905         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
47906         AC_LIB_HAVE_LINKFLAGS.
47907
47908 2009-04-26  Bruno Haible  <bruno@clisp.org>
47909
47910         Simplify calling convention of u*_conv_from_encoding.
47911         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
47912         u32_conv_from_encoding): Expect a resultbuf argument and return the
47913         result directly as a pointer.
47914         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
47915         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
47916         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
47917         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
47918         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
47919         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47920         Update.
47921         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
47922         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
47923         * lib/vasnprintf.c (VASNPRINTF): Update.
47924         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
47925         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
47926         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
47927         * NEWS: Mention the change.
47928
47929 2009-04-26  Bruno Haible  <bruno@clisp.org>
47930
47931         Simplify calling convention of u*_conv_to_encoding.
47932         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47933         u32_conv_to_encoding): Expect a resultbuf argument and return the
47934         result directly as a pointer.
47935         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47936         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
47937         freeing scaled_offsets if mem_iconveha failed.
47938         * lib/unicase/u-casexfrm.h (FUNC): Update.
47939         * lib/uninorm/u-normxfrm.h (FUNC): Update.
47940         * lib/vasnprintf.c (VASNPRINTF): Update.
47941         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
47942         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
47943         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
47944         * NEWS: Mention the change.
47945
47946 2009-04-26  Bruno Haible  <bruno@clisp.org>
47947
47948         Avoid test failures on AIX and OSF/1.
47949         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
47950         malloc(0).
47951         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47952         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47953         Likewise.
47954         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
47955         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
47956         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
47957         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
47958         * doc/posix-functions/malloc.texi: Document the portability problem
47959         related to malloc(0).
47960
47961 2009-04-26  Bruno Haible  <bruno@clisp.org>
47962
47963         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
47964         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
47965         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
47966
47967 2009-04-25  Bruno Haible  <bruno@clisp.org>
47968
47969         Avoid link error when creating a namespace clean library.
47970         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
47971         as macro with arguments if already defined as an alias.
47972         * lib/signbitf.c (gl_signbitf): Don't undefine.
47973         * lib/signbitd.c (gl_signbitd): Don't undefine.
47974         * lib/signbitl.c (gl_signbitl): Don't undefine.
47975
47976 2009-04-25  Jim Meyering  <meyering@redhat.com>
47977
47978         vc-list-files: fix another quoting bug
47979         * build-aux/vc-list-files: Avoid sed backslash expansion
47980         of pathological directory names.
47981
47982 2009-04-25  Eric Blake  <ebb9@byu.net>
47983
47984         vc-list-files: fix shell quoting error
47985         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
47986         timestamp.
47987
47988 2009-04-25  Jim Meyering  <meyering@redhat.com>
47989
47990         vc-list-files: restore lost functionality with subdir argument
47991         * build-aux/vc-list-files: When given a non-"." sub-directory
47992         argument, substitute the $dir/ prefix back onto each resulting name.
47993         Otherwise, coreutils' root_tests check would fail.
47994
47995 2009-04-24  Eric Blake  <ebb9@byu.net>
47996
47997         vc-list-files: ignore git symlinks
47998         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
47999         than ls-files, to ignore git symlinks.
48000
48001         maint.mk: import improvements from m4
48002         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
48003         (move_if_change): Delete unused macro.
48004         (news-date-check, vc-diff-check): Support VPATH builds.
48005         (announcement): Likewise.  Split --bootstrap-tools list...
48006         (boostrap-tools): ...into separate list, which can be overridden
48007         in cfg.mk.
48008         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
48009         requiring dependency on useless-if-before-free module.
48010         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
48011         Support VPATH builds.
48012
48013 2009-04-24  Jim Meyering  <meyering@redhat.com>
48014
48015         maint.mk: remove coreutils-specific rules and variables
48016         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
48017         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
48018         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
48019
48020         maint.mk: remove obsolete rule
48021         * top/maint.mk (rel-check): Remove rule.
48022         (WGET, WGETFLAGS): Remove now-unused variables.
48023
48024 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48025
48026         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
48027         consistency.
48028
48029         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
48030         '$(PATH_SEPARATOR)' instead of ':'.
48031
48032 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48033
48034         * lib/getopt1.c (main): Use 'const' for static array.
48035
48036 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48037
48038         * top/maint.mk: Sync with coreutils.
48039         * NEWS: Explain incompatibilities.
48040
48041 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48042             Bruno Haible  <bruno@clisp.org>
48043
48044         Fix cross-compilation results.
48045         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
48046         statement, as third argument of AC_TRY_RUN.
48047         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
48048         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
48049         Likewise.
48050         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
48051         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
48052         Likewise.
48053         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48054         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
48055         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
48056
48057 2009-04-20  Bruno Haible  <bruno@clisp.org>
48058
48059         Avoid test failure on mingw.
48060         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
48061
48062 2009-04-20  Bruno Haible  <bruno@clisp.org>
48063
48064         Avoid compilation error on mingw.
48065         * modules/localename-tests (Depends-on): Add locale.
48066
48067 2009-04-19  Bruno Haible  <bruno@clisp.org>
48068
48069         Support for building a shared library on Windows platforms.
48070         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
48071         (main): Test the presence of UNINORM_NFC here.
48072         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
48073         (main): Test the presence of UNINORM_NFD here.
48074         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
48075         (main): Test the presence of UNINORM_NFKC here.
48076         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
48077         (main): Test the presence of UNINORM_NFKD here.
48078
48079 2009-04-19  Bruno Haible  <bruno@clisp.org>
48080
48081         Avoid a compiler warning.
48082         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
48083         Change type of variable 'sequence'.
48084
48085 2009-04-19  Bruno Haible  <bruno@clisp.org>
48086
48087         * modules/configmake (Makefile.am): When the contents of configmake.h
48088         does not change, arrange to preserve its modification time.
48089
48090 2009-04-17  Simon Josefsson  <simon@josefsson.org>
48091
48092         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
48093         gettext domain.
48094
48095 2009-04-16  Jim Meyering  <meyering@redhat.com>
48096
48097         useless-if-before-free: improve conversion code
48098         * build-aux/useless-if-before-free: Adjust code-in-comment to match
48099         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
48100
48101 2009-04-14  Bruno Haible  <bruno@clisp.org>
48102
48103         * modules/fcntl (Depends-on): Add extensions.
48104         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
48105
48106 2009-04-12  Ben Pfaff  <blp@gnu.org>
48107
48108         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
48109         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
48110
48111 2009-03-20  Ben Pfaff  <blp@gnu.org>
48112
48113         Make rename replace existing destinations on Windows.
48114         * m4/rename.m4: Add test for Mingw.
48115         * lib/rename.c: Add rename replacement that uses MoveFileEx with
48116         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
48117         * doc/posix-functions/rename.texi: Document.
48118
48119 2009-04-10  Bruno Haible  <bruno@clisp.org>
48120
48121         New include file "iconveh.h".
48122         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
48123         * lib/striconveh.h: Include it.
48124         (enum iconv_ilseq_handler): Remove definition.
48125         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
48126         striconveh.h.
48127         * lib/striconveha.c: Include striconveh.h.
48128         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
48129         * modules/striconveh (Files): Add lib/iconveh.h.
48130         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
48131         lib/striconveh.h.
48132
48133 2009-04-10  Bruno Haible  <bruno@clisp.org>
48134
48135         * lib/uniconv.h: Update comment.
48136
48137 2009-04-10  Bruno Haible  <bruno@clisp.org>
48138
48139         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
48140         always.
48141         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48142         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48143         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48144         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
48145         "unistring-notinline.h", so that the function gets defined always.
48146         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48147         * lib/unistr/u8-uctomb.c: Likewise.
48148         * lib/unistr/u16-mbtouc.c: Likewise.
48149         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48150         * lib/unistr/u16-uctomb.c: Likewise.
48151         * lib/unistr/u32-mbtouc.c: Likewise.
48152         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48153         * lib/unistr/u32-uctomb.c: Likewise.
48154
48155 2009-04-10  Bruno Haible  <bruno@clisp.org>
48156
48157         Mark 'utime' obsolete.
48158         * modules/utime (Status, Notice): New sections.
48159         Suggested by Jim Meyering.
48160
48161         Fix cross-compile guess for utime test.
48162         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
48163         autoconf.
48164         * doc/posix-functions/utime.texi: Give more precisions.
48165         Reported by Jan <ipif@ymail.com>.
48166
48167 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
48168
48169         filevercmp: correct today's change
48170         * lib/filevercmp.c: Also handle coreutils' test inputs.
48171         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
48172
48173         Fix regression in 'filevercmp' module. Thanks Sven Joachim
48174         for reporting it.
48175         * lib/filevercmp.c: Special handle for "", "." and "..".
48176         * tests/test-filevercmp.c: Enlarge the set suite.
48177
48178 2009-04-07  Jim Meyering  <meyering@redhat.com>
48179
48180         useless-if-before-free: show how to remove braced useless free, too
48181         * build-aux/useless-if-before-free: still only in a comment, though.
48182
48183 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
48184
48185         maint.mk: import changes to syntax-check macros from coreutils
48186         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
48187         Use them in the relevant macros.
48188
48189 2009-04-06  Bruno Haible  <bruno@clisp.org>
48190
48191         Fix unportable use of bit-fields.
48192         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
48193         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
48194         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
48195
48196 2009-04-06  Bruno Haible  <bruno@clisp.org>
48197
48198         Avoid test failures on AIX and OSF/1.
48199         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
48200         that malloc(0) = NULL.
48201         * tests/unicase/test-u8-tolower.c (check): Likewise.
48202         * tests/unicase/test-u8-totitle.c (check): Likewise.
48203         * tests/unicase/test-u8-toupper.c (check): Likewise.
48204         * tests/unicase/test-u16-casefold.c (check): Likewise.
48205         * tests/unicase/test-u16-tolower.c (check): Likewise.
48206         * tests/unicase/test-u16-totitle.c (check): Likewise.
48207         * tests/unicase/test-u16-toupper.c (check): Likewise.
48208         * tests/unicase/test-u32-casefold.c (check): Likewise.
48209         * tests/unicase/test-u32-tolower.c (check): Likewise.
48210         * tests/unicase/test-u32-totitle.c (check): Likewise.
48211         * tests/unicase/test-u32-toupper.c (check): Likewise.
48212         * tests/uninorm/test-u8-nfc.c (check): Likewise.
48213         * tests/uninorm/test-u8-nfd.c (check): Likewise.
48214         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
48215         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
48216         * tests/uninorm/test-u16-nfc.c (check): Likewise.
48217         * tests/uninorm/test-u16-nfd.c (check): Likewise.
48218         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
48219         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
48220         * tests/uninorm/test-u32-nfc.c (check): Likewise.
48221         * tests/uninorm/test-u32-nfd.c (check): Likewise.
48222         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
48223         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
48224
48225 2009-04-05  Bruno Haible  <bruno@clisp.org>
48226
48227         Work around an autoconf limitation.
48228         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
48229         comment line if it would be longer than 3 KB.
48230
48231 2009-04-05  Bruno Haible  <bruno@clisp.org>
48232
48233         Avoid test failure with libiconv-1.13.
48234         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
48235         of the expected test results.
48236
48237 2009-04-05  Bruno Haible  <bruno@clisp.org>
48238
48239         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
48240         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
48241         that it should be installed.
48242
48243 2009-04-05  Bruno Haible  <bruno@clisp.org>
48244
48245         * gnulib-tool: New option --copy-file.
48246         (func_usage): Document it.
48247         (func_dest_tmpfilename): Moved out of func_import.
48248         (func_add_file, func_update_file): New functions, extracted from
48249         func_import.
48250         (func_import): Update.
48251
48252 2009-04-05  Karl Berry  <karl@gnu.org>
48253
48254         * README: prominently mention gnulib-tool.
48255         Rearrange sections so getting the code is near the top.
48256
48257 2009-04-05  Bruno Haible  <bruno@clisp.org>
48258
48259         * lib/unicase.h: Mention u*_cmp2.
48260         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48261         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
48262         * lib/unicase/ulc-casecmp.c: Likewise.
48263         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
48264         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
48265         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
48266         unistr/u8-cmp.
48267         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
48268         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
48269         unistr/u16-cmp.
48270         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
48271         unistr/u32-cmp.
48272
48273         * lib/uninorm.h: Mention u*_cmp2.
48274         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48275         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
48276         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
48277         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
48278         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
48279         unistr/u8-cmp.
48280         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
48281         unistr/u16-cmp.
48282         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
48283         unistr/u32-cmp.
48284
48285         New module 'unistr/u32-cmp2'.
48286         * lib/unistr/u32-cmp2.c: New file.
48287         * modules/unistr/u32-cmp2: New file.
48288
48289         New module 'unistr/u16-cmp2'.
48290         * lib/unistr/u16-cmp2.c: New file.
48291         * modules/unistr/u16-cmp2: New file.
48292
48293         New module 'unistr/u8-cmp2'.
48294         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
48295         * lib/unistr/u8-cmp2.c: New file.
48296         * lib/unistr/u-cmp2.h: New file.
48297         * modules/unistr/u8-cmp2: New file.
48298
48299 2009-04-05  Bruno Haible  <bruno@clisp.org>
48300
48301         * lib/unictype.h (uc_property_is_valid): New macro.
48302         * tests/unictype/test-pr_byname.c (main): Use it.
48303
48304         * lib/unistr.h: Doc fixes.
48305         * lib/uniconv.h: Doc fixes.
48306         * lib/unictype.h: Doc fixes.
48307
48308 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
48309
48310         Port coreutils 7.2 to Solaris 8.
48311
48312         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
48313         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
48314         for Solaris 8.  This is a bit of a hack, as it means it's the
48315         caller's responsibility to add -lnsl if needed, but most likely it
48316         won't be needed since only getaddrinfo uses this and getaddrinfo
48317         isn't needed on Solaris 8.
48318
48319         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
48320         problem to Solaris 8 encountered with coreutils 7.2, which
48321         resulted in a message "fnmatch.c:292: warning: passing argument 4
48322         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
48323         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
48324
48325 2009-04-03  Simon Josefsson  <simon@josefsson.org>
48326
48327         * m4/ld-version-script.m4: Add FIXME comment.
48328
48329 2009-04-02  Simon Josefsson  <simon@josefsson.org>
48330
48331         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
48332         SOVERSION variable.
48333
48334 2009-04-02  Bruno Haible  <bruno@clisp.org>
48335
48336         * Makefile (info, html, dvi, pdf): Combine the rules.
48337         Suggested by Jim Meyering.
48338
48339 2009-04-01  Bruno Haible  <bruno@clisp.org>
48340
48341         * Makefile (info, html, dvi, pdf): New targets.
48342         Reported by Reuben Thomas <rrt@sc3d.org>.
48343
48344 2009-04-01  Bruno Haible  <bruno@clisp.org>
48345
48346         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
48347         can be put into PATH.
48348         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
48349
48350 2009-04-01  Bruno Haible  <bruno@clisp.org>
48351
48352         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
48353
48354 2009-04-01  Bruno Haible  <bruno@clisp.org>
48355
48356         Rename module 'visibility'.
48357         * modules/lib-symbol-visibility: Renamed from modules/visibility.
48358         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
48359         * doc/gnulib.texi: Update.
48360         * MODULES.html.sh (Misc): Update.
48361         * NEWS: Mention the change.
48362
48363 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48364
48365         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
48366         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
48367         Eric Blake <ebb9@byu.net> for review.
48368         * MODULES.html.sh: Add lib-msvc-compat.
48369         * doc/gnulib.texi: Link to new section.
48370         * m4/ld-output-def.m4: New file.
48371         * doc/ld-output-def.texi: New file.
48372
48373 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48374
48375         Rename ld-version-script to lib-symbol-versions.  Suggested by
48376         Bruno Haible <bruno@clisp.org>.
48377         * modules/ld-version-script: Renamed to lib-symbol-versions.
48378         * doc/ld-version-script.texi: Fix module name.
48379         * MODULES.html.sh: Add lib-symbol-versions.
48380
48381 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48382
48383         * modules/u64-tests: New file.
48384         * tests/test-u64.c: New file.
48385
48386 2009-03-04  Simon Josefsson  <simon@josefsson.org>
48387
48388         * MODULES.html.sh: Mention u64.
48389         * modules/u64: New module.
48390         * modules/crypto/sha512: Depend on u64 module instead of providing
48391         u64.h.
48392
48393 2009-03-27  Eric Blake  <ebb9@byu.net>
48394
48395         test-strerror: make debugging EAI_SYSTEM easier
48396         * modules/getaddrinfo-tests (Depends-on): Add strerror.
48397         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
48398         failure was EAI_SYSTEM.
48399
48400 2009-03-25  Bruno Haible  <bruno@clisp.org>
48401
48402         Fix a problem with --enable-relocatable on Solaris 7.
48403         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
48404         since 2008-02-24.
48405
48406 2009-03-25  Eric Blake  <ebb9@byu.net>
48407
48408         test-sockets: avoid gcc warning
48409         * tests/test-sockets.c (main): Silence compiler warning.
48410
48411 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48412
48413         New modules nproc, pthread, contributed by Glen Lenker.
48414
48415         * MODULES.html.sh: Add pthread, nproc.
48416         * lib/nproc.c: New file.
48417         * lib/nproc.h: New file.
48418         * lib/pthread.in.h: New file.
48419         * m4/pthread.m4: New file.
48420         * modules/nproc: New file.
48421         * modules/pthread: New file.
48422
48423 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48424
48425         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
48426         New variable.
48427
48428 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
48429
48430         filevercmp: handle simple~ and numbered.~3~ backup suffixes
48431         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
48432         * tests/test-filevercmp.c: Add tests for backup suffixes.
48433
48434 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48435
48436         * modules/stdlib (Depends-on): Add stdint, needed when defining
48437         struct random_data on, for example, HP-UX 10.20.  Reported by
48438         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48439
48440 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48441
48442         * lib/readline.c (readline): Call fflush on stdout after printing
48443         prompt.
48444
48445 2009-03-20  Bruno Haible  <bruno@clisp.org>
48446
48447         Remove dependency from 'close' module to -lws2_32 on native Windows.
48448         * lib/close-hook.h: New file.
48449         * lib/close-hook.c: New file.
48450         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
48451         w32sock.h.
48452         (_gl_close_fd_maybe_socket): Remove function.
48453         (rpl_close): Invoke execute_all_close_hooks instead of
48454         _gl_close_fd_maybe_socket.
48455         * lib/sockets.c: Include close-hook.h, w32sock.h.
48456         (close_fd_maybe_socket): New function, essentially from lib/close.c.
48457         (close_sockets_hook): New variable.
48458         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
48459         (gl_sockets_cleanup): Unregister it.
48460         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
48461         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
48462         * modules/close-hook: New file.
48463         * modules/close (Files): Remove lib/w32sock.h.
48464         (Depends-on): Add close-hook.
48465         (Link): Remove section.
48466         * modules/sockets (Files): Add lib/w32sock.h.
48467         (Depends-on): Add close-hook.
48468         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
48469         invocation.
48470         * NEWS: Mention that LIB_CLOSE is gone.
48471
48472 2009-03-23  Eric Blake  <ebb9@byu.net>
48473
48474         signal-tests: test previous patch
48475         * tests/test-signal.c: New file.
48476         * modules/signal-tests: Likewise.
48477
48478         signal.h: always support 'volatile sig_atomic_t'
48479         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
48480         (gl_SIGNAL_H_DEFAULTS): Add a default.
48481         * modules/signal (Makefile.am): Substitute if needed.
48482         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
48483         users can blindly add volatile.
48484         * doc/posix-headers/signal.texi (signal.h): Document it.
48485         Reported by Matthew Woehlke.
48486
48487 2009-03-23  Jim Meyering  <meyering@redhat.com>
48488
48489         pathmax: PATH_MAX: use pathconf only when available
48490         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
48491         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
48492         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
48493         This avoids a link failure in a PSP cross-compilation environment
48494         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
48495
48496         * lib/vasnprintf.c (divide): Fix typo in comment.
48497
48498 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48499
48500         * gnulib-tool (func_filter_filelist): Fix comment.
48501
48502 2009-03-20  Bruno Haible  <bruno@clisp.org>
48503
48504         Make sockets.h self-contained.
48505         * lib/sockets.c: Include sockets.h first.
48506         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
48507
48508 2009-03-19  Eric Blake  <ebb9@byu.net>
48509
48510         doc: mention more functions added in cygwin 1.7.0
48511         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
48512         addition.
48513         * doc/posix-functions/log2f.texi: Likewise.
48514
48515 2009-03-19  Jim Meyering  <meyering@redhat.com>
48516
48517         fsusage: avoid syntax error due to statement-before-declaration
48518         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
48519         after all declarations.  Reported by Matthew Woehlke in
48520         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
48521
48522 2009-03-18  Eric Blake  <ebb9@byu.net>
48523
48524         build-aux/compile: sync from automake
48525         * build-aux/compile: New file, from automake.
48526         * config/srclist.txt: Mention build-aux/compile.
48527
48528 2009-03-17  Bruno Haible  <bruno@clisp.org>
48529
48530         * lib/git-merge-changelog.c: Fix typo in comment.
48531         Reported by Reuben Thomas <rrt@sc3d.org>.
48532
48533 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
48534
48535         * m4/regex.m4: update and improve help for
48536         --without-included-regex.
48537
48538 2009-03-17  Simon Josefsson  <simon@josefsson.org>
48539
48540         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
48541         failure on missing include files.
48542
48543 2009-03-17  Eric Blake  <ebb9@byu.net>
48544
48545         doc: mention more functions added in cygwin 1.7.0
48546         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
48547         addition.
48548         * doc/posix-functions/fwscanf.texi: Likewise.
48549         * doc/posix-functions/swprintf.texi: Likewise.
48550         * doc/posix-functions/swscanf.texi: Likewise.
48551         * doc/posix-functions/vfwprintf.texi: Likewise.
48552         * doc/posix-functions/vfwscanf.texi: Likewise.
48553         * doc/posix-functions/vswprintf.texi: Likewise.
48554         * doc/posix-functions/vswscanf.texi: Likewise.
48555         * doc/posix-functions/vwprintf.texi: Likewise.
48556         * doc/posix-functions/vwscanf.texi: Likewise.
48557         * doc/posix-functions/wcscasecmp.texi: Likewise.
48558         * doc/posix-functions/wcsdup.texi: Likewise.
48559         * doc/posix-functions/wcsftime.texi: Likewise.
48560         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48561         * doc/posix-functions/wprintf.texi: Likewise.
48562         * doc/posix-functions/wscanf.texi: Likewise.
48563         * doc/glibc-functions/gethostbyname2.texi: Likewise.
48564
48565 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48566
48567         maint.mk: really add $(AM_MAKEFLAGS)
48568         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
48569         was inadvertently omitted in the last commit.
48570         Spotted by Bruno Haible.
48571
48572         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
48573         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
48574         $(AM_MAKEFLAGS)' rather than plain `make'.
48575
48576         gnulib-tool: execute $MAKE not make
48577         * gnulib-tool: Default $MAKE to 'make'.
48578         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
48579         than make.  Initialize $MAKE in the do-autobuild script.
48580
48581         gnulib-tool: use $MAKE not make in generated files
48582         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
48583         make, in generated files.  Initialize $MAKE in the do-autobuild
48584         script.
48585
48586         * top/GNUmakefile (_have-git-version-gen): Fix typo.
48587
48588         GNUmakefile: disable parallelism only for multiple, recursive targets
48589         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
48590         additions in the Makefile.
48591         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
48592         by Automake.
48593         (.NOTPARALLEL): Only disable parallel builds if multiple targets
48594         are listed on the command line and at least one of them is
48595         listed in $(ALL_RECURSIVE_TARGETS).
48596
48597 2009-03-14  Bruno Haible  <bruno@clisp.org>
48598
48599         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
48600         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
48601         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
48602         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
48603         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
48604         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
48605         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
48606         unistr/u8-uctomb.
48607         * modules/unistr/u8-strchr (Depends-on): Likewise.
48608         * modules/unistr/u8-strrchr (Depends-on): Likewise.
48609         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
48610         unistr/u16-uctomb.
48611         * modules/unistr/u16-strchr (Depends-on): Likewise.
48612         * modules/unistr/u16-strrchr (Depends-on): Likewise.
48613
48614 2009-03-12  Bruno Haible  <bruno@clisp.org>
48615
48616         Work around select() bug on Interix 3.5.
48617         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
48618         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
48619         * m4/select.m4: New file.
48620         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
48621         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
48622         * modules/select (Files): Add m4/select.m4.
48623         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
48624         * modules/nanosleep (Depends-on): Add select.
48625         * modules/poll (Depends-on): Likewise.
48626         * doc/posix-functions/select.texi: Mention the Interix bug.
48627         Reported by Markus Duft <mduft@gentoo.org>.
48628
48629         * lib/select.c: Renamed from lib/winsock-select.c.
48630         * modules/select (Files): Add lib/select.c, remove
48631         lib/winsock-select.c.
48632         (configure.ac): Update.
48633
48634 2009-03-12  Jim Meyering  <meyering@redhat.com>
48635
48636         avoid gcc warnings about unused macro definitions
48637         * lib/readtokens.c (STREQ): Remove unused definition.
48638         * lib/xmalloc.c (SIZE_MAX): Likewise.
48639         * lib/openat-die.c (N_): Likewise.
48640         * lib/mountlist.c (SIZE_MAX): Remove definition.
48641         Instead, include <stdint.h>.
48642         * lib/readutmp.c: Likewise.
48643         * modules/readutmp (Depends-on): Add stdint.
48644         * modules/mountlist (Depends-on): Add stdint.
48645         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
48646
48647 2009-03-10  Bruno Haible  <bruno@clisp.org>
48648
48649         Tests for module 'mbmemcasecoll'.
48650         * modules/mbmemcasecoll-tests: New file.
48651         * tests/test-mbmemcasecoll1.sh: New file.
48652         * tests/test-mbmemcasecoll2.sh: New file.
48653         * tests/test-mbmemcasecoll3.sh: New file.
48654         * tests/test-mbmemcasecoll.c: New file.
48655
48656         New module 'mbmemcasecoll'.
48657         * lib/mbmemcasecoll.h: New file.
48658         * lib/mbmemcasecoll.c: New file.
48659         * modules/mbmemcasecoll: New file.
48660
48661         * tests/test-mbmemcasecmp.h: New file, extracted from
48662         tests/test-mbmemcasecmp.c.
48663         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
48664         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
48665         (main): Update.
48666         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
48667
48668 2009-03-09  Bruno Haible  <bruno@clisp.org>
48669
48670         Tests for module 'mbmemcasecmp'.
48671         * modules/mbmemcasecmp-tests: New file.
48672         * tests/test-mbmemcasecmp1.sh: New file.
48673         * tests/test-mbmemcasecmp2.sh: New file.
48674         * tests/test-mbmemcasecmp3.sh: New file.
48675         * tests/test-mbmemcasecmp.c: New file.
48676
48677         New module 'mbmemcasecmp'.
48678         * lib/mbmemcasecmp.h: New file.
48679         * lib/mbmemcasecmp.c: New file.
48680         * modules/mbmemcasecmp: New file.
48681
48682 2009-03-09  Bruno Haible  <bruno@clisp.org>
48683
48684         Tests for module 'unicase/ulc-casecoll'.
48685         * modules/unicase/ulc-casecoll-tests: New file.
48686         * tests/unicase/test-ulc-casecoll1.sh: New file.
48687         * tests/unicase/test-ulc-casecoll2.sh: New file.
48688         * tests/unicase/test-ulc-casecoll.c: New file.
48689
48690         New module 'unicase/ulc-casecoll'.
48691         * lib/unicase.h (ulc_casecoll): New declaration.
48692         * lib/unicase/ulc-casecoll.c: New file.
48693         * modules/unicase/ulc-casecoll: New file.
48694
48695         New module 'unicase/ulc-casexfrm'.
48696         * lib/unicase.h (ulc_casexfrm): New declaration.
48697         * lib/unicase/ulc-casexfrm.c: New file.
48698         * modules/unicase/ulc-casexfrm: New file.
48699
48700 2009-03-09  Bruno Haible  <bruno@clisp.org>
48701
48702         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
48703         invocations.
48704
48705         * m4/mbscasecmp.m4: Remove file.
48706         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
48707         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
48708
48709         * m4/mbscasestr.m4: Remove file.
48710         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
48711         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
48712
48713         * m4/mbschr.m4: Remove file.
48714         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
48715         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
48716
48717         * m4/mbscspn.m4: Remove file.
48718         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
48719         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
48720
48721         * m4/mbslen.m4: Remove file.
48722         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
48723         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
48724
48725         * m4/mbsncasecmp.m4: Remove file.
48726         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
48727         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
48728
48729         * m4/mbsnlen.m4: Remove file.
48730         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
48731         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
48732
48733         * m4/mbspbrk.m4: Remove file.
48734         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
48735         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
48736
48737         * m4/mbspcasecmp.m4: Remove file.
48738         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
48739         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
48740
48741         * m4/mbsrchr.m4: Remove file.
48742         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
48743         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
48744
48745         * m4/mbssep.m4: Remove file.
48746         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
48747         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
48748
48749         * m4/mbsspn.m4: Remove file.
48750         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
48751         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
48752
48753         * m4/mbsstr.m4: Remove file.
48754         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
48755         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
48756
48757         * m4/mbstok_r.m4: Remove file.
48758         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
48759         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
48760
48761         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
48762
48763         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
48764         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
48765
48766         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
48767
48768 2009-03-08  Bruno Haible  <bruno@clisp.org>
48769
48770         Tests for module 'unicase/ulc-casecmp'.
48771         * modules/unicase/ulc-casecmp-tests: New file.
48772         * tests/unicase/test-ulc-casecmp1.sh: New file.
48773         * tests/unicase/test-ulc-casecmp2.sh: New file.
48774         * tests/unicase/test-ulc-casecmp.c: New file.
48775
48776         New module 'unicase/ulc-casecmp'.
48777         * lib/unicase.h (ulc_casecmp): New declaration.
48778         * lib/unicase/ulc-casecmp.c: New file.
48779         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
48780         'const SRC_UNIT *'.
48781         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
48782         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
48783         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
48784         * modules/unicase/ulc-casecmp: New file.
48785
48786         Tests for module 'unicase/u32-is-cased'.
48787         * modules/unicase/u32-is-cased-tests: New file.
48788         * tests/unicase/test-u32-is-cased.c: New file.
48789
48790         Tests for module 'unicase/u16-is-cased'.
48791         * modules/unicase/u16-is-cased-tests: New file.
48792         * tests/unicase/test-u16-is-cased.c: New file.
48793
48794         Tests for module 'unicase/u8-is-cased'.
48795         * modules/unicase/u8-is-cased-tests: New file.
48796         * tests/unicase/test-u8-is-cased.c: New file.
48797         * tests/unicase/test-is-cased.h: New file.
48798
48799         New module 'unicase/u32-is-cased'.
48800         * lib/unicase/u32-is-cased.c: New file.
48801         * modules/unicase/u32-is-cased: New file.
48802
48803         New module 'unicase/u16-is-cased'.
48804         * lib/unicase/u16-is-cased.c: New file.
48805         * modules/unicase/u16-is-cased: New file.
48806
48807         New module 'unicase/u8-is-cased'.
48808         * lib/unicase/u8-is-cased.c: New file.
48809         * lib/unicase/u-is-cased.h: New file.
48810         * modules/unicase/u8-is-cased: New file.
48811
48812         Tests for module 'unicase/u32-is-casefolded'.
48813         * modules/unicase/u32-is-casefolded-tests: New file.
48814         * tests/unicase/test-u32-is-casefolded.c: New file.
48815
48816         Tests for module 'unicase/u16-is-casefolded'.
48817         * modules/unicase/u16-is-casefolded-tests: New file.
48818         * tests/unicase/test-u16-is-casefolded.c: New file.
48819
48820         Tests for module 'unicase/u8-is-casefolded'.
48821         * modules/unicase/u8-is-casefolded-tests: New file.
48822         * tests/unicase/test-u8-is-casefolded.c: New file.
48823         * tests/unicase/test-is-casefolded.h: New file.
48824
48825         New module 'unicase/u32-is-casefolded'.
48826         * lib/unicase/u32-is-casefolded.c: New file.
48827         * modules/unicase/u32-is-casefolded: New file.
48828
48829         New module 'unicase/u16-is-casefolded'.
48830         * lib/unicase/u16-is-casefolded.c: New file.
48831         * modules/unicase/u16-is-casefolded: New file.
48832
48833         New module 'unicase/u8-is-casefolded'.
48834         * lib/unicase/u8-is-casefolded.c: New file.
48835         * modules/unicase/u8-is-casefolded: New file.
48836
48837         Tests for module 'unicase/u32-is-titlecase'.
48838         * modules/unicase/u32-is-titlecase-tests: New file.
48839         * tests/unicase/test-u32-is-titlecase.c: New file.
48840
48841         Tests for module 'unicase/u16-is-titlecase'.
48842         * modules/unicase/u16-is-titlecase-tests: New file.
48843         * tests/unicase/test-u16-is-titlecase.c: New file.
48844
48845         Tests for module 'unicase/u8-is-titlecase'.
48846         * modules/unicase/u8-is-titlecase-tests: New file.
48847         * tests/unicase/test-u8-is-titlecase.c: New file.
48848         * tests/unicase/test-is-titlecase.h: New file.
48849
48850         New module 'unicase/u32-is-titlecase'.
48851         * lib/unicase/u32-is-titlecase.c: New file.
48852         * modules/unicase/u32-is-titlecase: New file.
48853
48854         New module 'unicase/u16-is-titlecase'.
48855         * lib/unicase/u16-is-titlecase.c: New file.
48856         * modules/unicase/u16-is-titlecase: New file.
48857
48858         New module 'unicase/u8-is-titlecase'.
48859         * lib/unicase/u8-is-titlecase.c: New file.
48860         * modules/unicase/u8-is-titlecase: New file.
48861
48862         Tests for module 'unicase/u32-is-lowercase'.
48863         * modules/unicase/u32-is-lowercase-tests: New file.
48864         * tests/unicase/test-u32-is-lowercase.c: New file.
48865
48866         Tests for module 'unicase/u16-is-lowercase'.
48867         * modules/unicase/u16-is-lowercase-tests: New file.
48868         * tests/unicase/test-u16-is-lowercase.c: New file.
48869
48870         Tests for module 'unicase/u8-is-lowercase'.
48871         * modules/unicase/u8-is-lowercase-tests: New file.
48872         * tests/unicase/test-u8-is-lowercase.c: New file.
48873         * tests/unicase/test-is-lowercase.h: New file.
48874
48875         New module 'unicase/u32-is-lowercase'.
48876         * lib/unicase/u32-is-lowercase.c: New file.
48877         * modules/unicase/u32-is-lowercase: New file.
48878
48879         New module 'unicase/u16-is-lowercase'.
48880         * lib/unicase/u16-is-lowercase.c: New file.
48881         * modules/unicase/u16-is-lowercase: New file.
48882
48883         New module 'unicase/u8-is-lowercase'.
48884         * lib/unicase/u8-is-lowercase.c: New file.
48885         * modules/unicase/u8-is-lowercase: New file.
48886
48887         Tests for module 'unicase/u32-is-uppercase'.
48888         * modules/unicase/u32-is-uppercase-tests: New file.
48889         * tests/unicase/test-u32-is-uppercase.c: New file.
48890
48891         Tests for module 'unicase/u16-is-uppercase'.
48892         * modules/unicase/u16-is-uppercase-tests: New file.
48893         * tests/unicase/test-u16-is-uppercase.c: New file.
48894
48895         Tests for module 'unicase/u8-is-uppercase'.
48896         * modules/unicase/u8-is-uppercase-tests: New file.
48897         * tests/unicase/test-u8-is-uppercase.c: New file.
48898         * tests/unicase/test-is-uppercase.h: New file.
48899
48900         New module 'unicase/u32-is-uppercase'.
48901         * lib/unicase/u32-is-uppercase.c: New file.
48902         * modules/unicase/u32-is-uppercase: New file.
48903
48904         New module 'unicase/u16-is-uppercase'.
48905         * lib/unicase/u16-is-uppercase.c: New file.
48906         * modules/unicase/u16-is-uppercase: New file.
48907
48908         New module 'unicase/u8-is-uppercase'.
48909         * lib/unicase/u8-is-uppercase.c: New file.
48910         * modules/unicase/u8-is-uppercase: New file.
48911
48912         New module 'unicase/u32-is-invariant'.
48913         * lib/unicase/u32-is-invariant.c: New file.
48914         * modules/unicase/u32-is-invariant: New file.
48915
48916         New module 'unicase/u16-is-invariant'.
48917         * lib/unicase/u16-is-invariant.c: New file.
48918         * modules/unicase/u16-is-invariant: New file.
48919
48920         New module 'unicase/u8-is-invariant'.
48921         * lib/unicase/u8-is-invariant.c: New file.
48922         * lib/unicase/invariant.h: New file.
48923         * lib/unicase/u-is-invariant.h: New file.
48924         * modules/unicase/u8-is-invariant: New file.
48925
48926         Tests for module 'unicase/u32-casecoll'.
48927         * modules/unicase/u32-casecoll-tests: New file.
48928         * tests/unicase/test-u32-casecoll.c: New file.
48929
48930         Tests for module 'unicase/u16-casecoll'.
48931         * modules/unicase/u16-casecoll-tests: New file.
48932         * tests/unicase/test-u16-casecoll.c: New file.
48933
48934         Tests for module 'unicase/u8-casecoll'.
48935         * modules/unicase/u8-casecoll-tests: New file.
48936         * tests/unicase/test-u8-casecoll.c: New file.
48937
48938         New module 'unicase/u32-casecoll'.
48939         * lib/unicase/u32-casecoll.c: New file.
48940         * modules/unicase/u32-casecoll: New file.
48941
48942         New module 'unicase/u16-casecoll'.
48943         * lib/unicase/u16-casecoll.c: New file.
48944         * modules/unicase/u16-casecoll: New file.
48945
48946         New module 'unicase/u8-casecoll'.
48947         * lib/unicase/u8-casecoll.c: New file.
48948         * lib/unicase/u-casecoll.h: New file.
48949         * modules/unicase/u8-casecoll: New file.
48950
48951         New module 'unicase/u32-casexfrm'.
48952         * lib/unicase/u32-casexfrm.c: New file.
48953         * modules/unicase/u32-casexfrm: New file.
48954
48955         New module 'unicase/u16-casexfrm'.
48956         * lib/unicase/u16-casexfrm.c: New file.
48957         * modules/unicase/u16-casexfrm: New file.
48958
48959         New module 'unicase/u8-casexfrm'.
48960         * lib/unicase/u8-casexfrm.c: New file.
48961         * lib/unicase/u-casexfrm.h: New file.
48962         * modules/unicase/u8-casexfrm: New file.
48963
48964         Tests for module 'unicase/u32-casecmp'.
48965         * modules/unicase/u32-casecmp-tests: New file.
48966         * tests/unicase/test-u32-casecmp.c: New file.
48967
48968         Tests for module 'unicase/u16-casecmp'.
48969         * modules/unicase/u16-casecmp-tests: New file.
48970         * tests/unicase/test-u16-casecmp.c: New file.
48971
48972         Tests for module 'unicase/u8-casecmp'.
48973         * modules/unicase/u8-casecmp-tests: New file.
48974         * tests/unicase/test-u8-casecmp.c: New file.
48975         * tests/unicase/test-casecmp.h: New file.
48976
48977         New module 'unicase/u32-casecmp'.
48978         * lib/unicase/u32-casecmp.c: New file.
48979         * modules/unicase/u32-casecmp: New file.
48980
48981         New module 'unicase/u16-casecmp'.
48982         * lib/unicase/u16-casecmp.c: New file.
48983         * modules/unicase/u16-casecmp: New file.
48984
48985         New module 'unicase/u8-casecmp'.
48986         * lib/unicase/u8-casecmp.c: New file.
48987         * lib/unicase/u-casecmp.h: New file.
48988         * modules/unicase/u8-casecmp: New file.
48989
48990         Tests for module 'unicase/u32-casefold'.
48991         * modules/unicase/u32-casefold-tests: New file.
48992         * tests/unicase/test-u32-casefold.c: New file.
48993
48994         Tests for module 'unicase/u16-casefold'.
48995         * modules/unicase/u16-casefold-tests: New file.
48996         * tests/unicase/test-u16-casefold.c: New file.
48997
48998         Tests for module 'unicase/u8-casefold'.
48999         * modules/unicase/u8-casefold-tests: New file.
49000         * tests/unicase/test-u8-casefold.c: New file.
49001
49002         New module 'unicase/u32-casefold'.
49003         * lib/unicase/u32-casefold.c: New file.
49004         * modules/unicase/u32-casefold: New file.
49005
49006         New module 'unicase/u16-casefold'.
49007         * lib/unicase/u16-casefold.c: New file.
49008         * modules/unicase/u16-casefold: New file.
49009
49010         New module 'unicase/u8-casefold'.
49011         * lib/unicase/u8-casefold.c: New file.
49012         * lib/unicase/u-casefold.h: New file.
49013         * modules/unicase/u8-casefold: New file.
49014
49015         New module 'unicase/tocasefold'.
49016         * lib/unicase/casefold.h: New file.
49017         * lib/unicase/tocasefold.c: New file.
49018         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
49019         * modules/unicase/tocasefold: New file.
49020
49021         Tests for module 'unicase/u32-totitle'.
49022         * modules/unicase/u32-totitle-tests: New file.
49023         * tests/unicase/test-u32-totitle.c: New file.
49024
49025         Tests for module 'unicase/u16-totitle'.
49026         * modules/unicase/u16-totitle-tests: New file.
49027         * tests/unicase/test-u16-totitle.c: New file.
49028
49029         Tests for module 'unicase/u8-totitle'.
49030         * modules/unicase/u8-totitle-tests: New file.
49031         * tests/unicase/test-u8-totitle.c: New file.
49032
49033         New module 'unicase/u32-totitle'.
49034         * lib/unicase/u32-totitle.c: New file.
49035         * modules/unicase/u32-totitle: New file.
49036
49037         New module 'unicase/u16-totitle'.
49038         * lib/unicase/u16-totitle.c: New file.
49039         * modules/unicase/u16-totitle: New file.
49040
49041         New module 'unicase/u8-totitle'.
49042         * lib/unicase/u8-totitle.c: New file.
49043         * lib/unicase/u-totitle.h: New file.
49044         * modules/unicase/u8-totitle: New file.
49045
49046         Tests for module 'unicase/u32-tolower'.
49047         * modules/unicase/u32-tolower-tests: New file.
49048         * tests/unicase/test-u32-tolower.c: New file.
49049
49050         Tests for module 'unicase/u16-tolower'.
49051         * modules/unicase/u16-tolower-tests: New file.
49052         * tests/unicase/test-u16-tolower.c: New file.
49053
49054         Tests for module 'unicase/u8-tolower'.
49055         * modules/unicase/u8-tolower-tests: New file.
49056         * tests/unicase/test-u8-tolower.c: New file.
49057
49058         New module 'unicase/u32-tolower'.
49059         * lib/unicase/u32-tolower.c: New file.
49060         * modules/unicase/u32-tolower: New file.
49061
49062         New module 'unicase/u16-tolower'.
49063         * lib/unicase/u16-tolower.c: New file.
49064         * modules/unicase/u16-tolower: New file.
49065
49066         New module 'unicase/u8-tolower'.
49067         * lib/unicase/u8-tolower.c: New file.
49068         * modules/unicase/u8-tolower: New file.
49069
49070         Tests for module 'unicase/u32-toupper'.
49071         * modules/unicase/u32-toupper-tests: New file.
49072         * tests/unicase/test-u32-toupper.c: New file.
49073
49074         Tests for module 'unicase/u16-toupper'.
49075         * modules/unicase/u16-toupper-tests: New file.
49076         * tests/unicase/test-u16-toupper.c: New file.
49077
49078         Tests for module 'unicase/u8-toupper'.
49079         * modules/unicase/u8-toupper-tests: New file.
49080         * tests/unicase/test-u8-toupper.c: New file.
49081
49082         New module 'unicase/u32-toupper'.
49083         * lib/unicase/u32-toupper.c: New file.
49084         * modules/unicase/u32-toupper: New file.
49085
49086         New module 'unicase/u16-toupper'.
49087         * lib/unicase/u16-toupper.c: New file.
49088         * modules/unicase/u16-toupper: New file.
49089
49090         New module 'unicase/u8-toupper'.
49091         * lib/unicase/u8-toupper.c: New file.
49092         * modules/unicase/u8-toupper: New file.
49093
49094         New module 'unicase/u32-casemap'.
49095         * lib/unicase/u32-casemap.c: New file.
49096         * modules/unicase/u32-casemap: New file.
49097
49098         New module 'unicase/u16-casemap'.
49099         * lib/unicase/u16-casemap.c: New file.
49100         * modules/unicase/u16-casemap: New file.
49101
49102         New module 'unicase/u8-casemap'.
49103         * lib/unicase/unicasemap.h: New file.
49104         * lib/unicase/u8-casemap.c: New file.
49105         * lib/unicase/u-casemap.h: New file.
49106         * modules/unicase/u8-casemap: New file.
49107
49108         New module 'unicase/special-casing'.
49109         * lib/unicase/special-casing.h: New file.
49110         * lib/unicase/special-casing.c: New file.
49111         * lib/unicase/special-casing-table.gperf: New file, generated by
49112         gen-uni-tables.c.
49113         * modules/unicase/special-casing: New file.
49114
49115         Tests for module 'unicase/locale-language'.
49116         * modules/unicase/locale-language-tests: New file.
49117         * tests/unicase/test-locale-language.sh: New file.
49118         * tests/unicase/test-locale-language.c: New file.
49119
49120         New module 'unicase/locale-language'.
49121         * lib/unicase/locale-language.c: New file.
49122         * lib/unicase/locale-languages.gperf: New file.
49123         * modules/unicase/locale-language: New file.
49124
49125         Generate more tables for case conversion and case folding.
49126         * lib/gen-uni-tables.c (SCC_*): New enum items.
49127         (struct special_casing_rule): New type.
49128         (casing_rules, num_casing_rules, allocated_casing_rules): New
49129         variables.
49130         (add_casing_rule, fill_casing_rules): New functions.
49131         (struct casefold_rule): New type.
49132         (casefolding_rules, num_casefolding_rules,
49133         allocated_casefolding_rules): New variables.
49134         (fill_casefolding_rules): New function.
49135         (unicode_casefold): New variable.
49136         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
49137         sort_casing_rules, output_casing_rules): New functions.
49138         (main): Accept to more arguments: SpecialCasing.txt and
49139         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
49140         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
49141         Output mapping for casefolding.
49142
49143         * lib/unicase.h: Include stdbool.h, uninorm.h.
49144         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
49145         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
49146         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
49147         arguments.
49148         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
49149         resultp arguments.
49150         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
49151         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
49152         resultp arguments.
49153         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
49154         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
49155         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
49156         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
49157         declarations.
49158         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
49159
49160 2009-03-08  Bruno Haible  <bruno@clisp.org>
49161
49162         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49163         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
49164         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
49165         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49166
49167 2009-03-07  Bruno Haible  <bruno@clisp.org>
49168
49169         Adjust u*_normcmp, u*_normcoll API.
49170         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49171         u16_normcoll, u32_normcoll): Change failure conventions.
49172         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
49173         errno and return -1.
49174         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49175
49176 2009-03-07  Bruno Haible  <bruno@clisp.org>
49177
49178         Tests for module 'uninorm/u32-normcoll'.
49179         * modules/uninorm/u32-normcoll-tests: New file.
49180         * tests/uninorm/test-u32-normcoll.c: New file.
49181
49182         Tests for module 'uninorm/u16-normcoll'.
49183         * modules/uninorm/u16-normcoll-tests: New file.
49184         * tests/uninorm/test-u16-normcoll.c: New file.
49185
49186         Tests for module 'uninorm/u8-normcoll'.
49187         * modules/uninorm/u8-normcoll-tests: New file.
49188         * tests/uninorm/test-u8-normcoll.c: New file.
49189
49190 2009-03-07  Bruno Haible  <bruno@clisp.org>
49191
49192         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
49193         tests/uninorm/test-u32-normcmp.c.
49194         * tests/uninorm/test-u32-normcmp.c: Include it.
49195         (test_nonascii): New function, extracted from main. Add some more
49196         tests.
49197         (main): Invoke test_ascii and test_nonascii.
49198         * modules/uninorm/u32-normcmp-tests (Files): Add
49199         tests/uninorm/test-u32-normcmp.h.
49200         (Depends-on): Remove uninorm/u32-normcmp.
49201
49202         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
49203         tests/uninorm/test-u16-normcmp.c.
49204         * tests/uninorm/test-u16-normcmp.c: Include it.
49205         (test_nonascii): New function, extracted from main. Add some more
49206         tests.
49207         (main): Invoke test_ascii and test_nonascii.
49208         * modules/uninorm/u16-normcmp-tests (Files): Add
49209         tests/uninorm/test-u16-normcmp.h.
49210         (Depends-on): Remove uninorm/u16-normcmp.
49211
49212         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
49213         tests/uninorm/test-u8-normcmp.c.
49214         * tests/uninorm/test-u8-normcmp.c: Include it.
49215         (test_nonascii): New function, extracted from main. Add some more
49216         tests.
49217         (main): Invoke test_ascii and test_nonascii.
49218         * modules/uninorm/u8-normcmp-tests (Files): Add
49219         tests/uninorm/test-u8-normcmp.h.
49220         (Depends-on): Remove uninorm/u8-normcmp.
49221
49222 2009-03-07  Bruno Haible  <bruno@clisp.org>
49223
49224         New module 'uninorm/u32-normcoll'.
49225         * lib/uninorm/u32-normcoll.c: New file.
49226         * modules/uninorm/u32-normcoll: New file.
49227
49228         New module 'uninorm/u16-normcoll'.
49229         * lib/uninorm/u16-normcoll.c: New file.
49230         * modules/uninorm/u16-normcoll: New file.
49231
49232         New module 'uninorm/u8-normcoll'.
49233         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
49234         declarations.
49235         * lib/uninorm/u8-normcoll.c: New file.
49236         * lib/uninorm/u-normcoll.h: New file.
49237         * modules/uninorm/u8-normcoll: New file.
49238
49239         New module 'uninorm/u32-normxfrm'.
49240         * lib/uninorm/u32-normxfrm.c: New file.
49241         * modules/uninorm/u32-normxfrm: New file.
49242
49243         New module 'uninorm/u16-normxfrm'.
49244         * lib/uninorm/u16-normxfrm.c: New file.
49245         * modules/uninorm/u16-normxfrm: New file.
49246
49247         New module 'uninorm/u8-normxfrm'.
49248         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
49249         declarations.
49250         * lib/uninorm/u8-normxfrm.c: New file.
49251         * lib/uninorm/u-normxfrm.h: New file.
49252         * modules/uninorm/u8-normxfrm: New file.
49253
49254 2009-03-07  Bruno Haible  <bruno@clisp.org>
49255
49256         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
49257         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
49258         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
49259
49260 2009-03-07  Bruno Haible  <bruno@clisp.org>
49261
49262         New module 'memxfrm'.
49263         * lib/memxfrm.h: New file.
49264         * lib/memxfrm.c: New file.
49265         * modules/memxfrm: New file.
49266
49267 2009-03-07  Bruno Haible  <bruno@clisp.org>
49268
49269         New module 'memcmp2'.
49270         * lib/memcmp2.h: New file.
49271         * lib/memcmp2.c: New file.
49272         * modules/memcmp2: New file.
49273
49274 2009-03-07  Bruno Haible  <bruno@clisp.org>
49275
49276         Tests for module 'uninorm/decomposing-form'.
49277         * modules/uninorm/decomposing-form-tests: New file.
49278         * tests/uninorm/test-decomposing-form.c: New file.
49279
49280         New module 'uninorm/decomposing-form'.
49281         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
49282         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
49283         Add 'decomposing_variant' field.
49284         * lib/uninorm/decomposing-form.c: New file.
49285         * lib/uninorm/nfc.c (uninorm_nfc): Update.
49286         * lib/uninorm/nfd.c (uninorm_nfd): Update.
49287         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
49288         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
49289         * modules/uninorm/decomposing-form: New file.
49290         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
49291         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
49292
49293 2009-03-07  Bruno Haible  <bruno@clisp.org>
49294
49295         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
49296         strings.
49297
49298 2009-03-06  Bruno Haible  <bruno@clisp.org>
49299
49300         Tests for module 'uninorm/u32-normcmp'.
49301         * tests/uninorm/test-u32-normcmp.c: New file.
49302         * modules/uninorm/u32-normcmp-tests: New file.
49303
49304         Tests for module 'uninorm/u16-normcmp'.
49305         * tests/uninorm/test-u16-normcmp.c: New file.
49306         * modules/uninorm/u16-normcmp-tests: New file.
49307
49308         Tests for module 'uninorm/u8-normcmp'.
49309         * tests/uninorm/test-u8-normcmp.c: New file.
49310         * modules/uninorm/u8-normcmp-tests: New file.
49311
49312         New module 'uninorm/u32-normcmp'.
49313         * lib/uninorm/u32-normcmp.c: New file.
49314         * modules/uninorm/u32-normcmp: New file.
49315
49316         New module 'uninorm/u16-normcmp'.
49317         * lib/uninorm/u16-normcmp.c: New file.
49318         * modules/uninorm/u16-normcmp: New file.
49319
49320         New module 'uninorm/u8-normcmp'.
49321         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
49322         declarations.
49323         * lib/uninorm/u8-normcmp.c: New file.
49324         * lib/uninorm/u-normcmp.h: New file.
49325         * modules/uninorm/u8-normcmp: New file.
49326
49327 2009-03-06  Bruno Haible  <bruno@clisp.org>
49328
49329         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
49330         Reported by Eric Blake.
49331
49332 2009-03-06  Eric Blake  <ebb9@byu.net>
49333             Bruno Haible  <bruno@clisp.org>
49334
49335         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
49336         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
49337         condition.
49338         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49339         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
49340         condition.
49341         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49342
49343 2009-03-06  Eric Blake  <ebb9@byu.net>
49344
49345         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
49346         to avoid compiler warnings.
49347         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
49348
49349 2009-03-05  Bruno Haible  <bruno@clisp.org>
49350
49351         * tests/test-ftell.c (main): Disable test beyond end of file on
49352         FreeMiNT.
49353         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49354
49355 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
49356
49357         * lib/filevercmp.c: Move hidden files up in ordering.
49358         * tests/test-filevercmp.c: Add tests for hidden files.
49359
49360 2009-03-04  Bruno Haible  <bruno@clisp.org>
49361
49362         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
49363         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
49364         AM_CFLAGS.
49365         Reported by Simon Josefsson.
49366
49367 2009-03-03  Bruno Haible  <bruno@clisp.org>
49368
49369         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
49370         Reported by Simon Josefsson.
49371
49372         * doc/ld-version-script.texi: Update node reference.
49373
49374 2009-03-03  Bruno Haible  <bruno@clisp.org>
49375
49376         * modules/visibility (License): Change to 'unlimited'.
49377         Suggested by Simon Josefsson.
49378
49379 2009-03-03  Jim Meyering  <meyering@redhat.com>
49380
49381         unlinkdir: cannot_unlink_dir may modify process state
49382         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
49383         it's neither thread-safe nor appropriate for use in a library.
49384
49385 2009-03-03  Eric Blake  <ebb9@byu.net>
49386
49387         test-closein: silence test under Darwin
49388         * tests/test-closein.sh: Ignore stderr from cat, since we don't
49389         care if it dies from EPIPE or EBADF.
49390
49391 2009-03-03  Bruno Haible  <bruno@clisp.org>
49392
49393         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
49394         earlier.
49395         * doc/visibility.texi: Fix @node and @section.
49396
49397 2009-03-03  Simon Josefsson  <simon@josefsson.org>
49398
49399         * doc/gnulib.texi: Link to sections for ld version script and
49400         visibility.
49401         * doc/visibility.texi: Add @node and @section.
49402         * modules/ld-version-script: New module.
49403         * m4/ld-version-script.m4: New file.
49404         * doc/ld-version-script.texi: New file.
49405
49406 2009-03-02  David Lutterkort  <lutter@redhat.com>
49407
49408         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
49409         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49410
49411 2009-03-02  Bruno Haible  <bruno@clisp.org>
49412
49413         * doc/visibility.texi: Mention libtool's -export-symbols option.
49414
49415 2009-03-02  Jim Meyering  <meyering@redhat.com>
49416
49417         announce-gen: new option: --no-print-checksums
49418         * build-aux/announce-gen (usage): Describe it.
49419         (print_checksums): Print a newline here, not in the [*] footnote.
49420         (main): Honor it.
49421
49422 2009-03-01  Bruno Haible  <bruno@clisp.org>
49423
49424         Use socklen_t in the native Windows replacements prototypes.
49425         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
49426         instead of 'int'.
49427         * lib/getsockopt.c (rpl_getsockopt): Likewise.
49428         * lib/setsockopt.c (rpl_setsockopt): Likewise.
49429         * modules/getsockopt (Depends-on): Add socklen.
49430         * modules/setsockopt (Depends-on): Add socklen.
49431
49432 2009-03-01  Bruno Haible  <bruno@clisp.org>
49433
49434         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
49435         least 4.2.
49436
49437 2009-03-01  Eric Blake  <ebb9@byu.net>
49438             Bruno Haible  <bruno@clisp.org>
49439
49440         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
49441         error messages.
49442         * lib/wait-process.c (wait_subprocess): Omit error message about
49443         deadly signal sent to the child of termsigp != NULL.
49444
49445 2009-03-01  Eric Blake  <ebb9@byu.net>
49446
49447         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
49448
49449 2009-03-01  Bruno Haible  <bruno@clisp.org>
49450
49451         Avoid a gcc warning.
49452         * tests/test-sched.c (b): Make global.
49453         Reported by Eric Blake.
49454
49455 2009-01-19  Martin Lambers  <marlam@marlam.de>
49456
49457         Provide POSIX semantics for socket timeout options on W32.
49458         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
49459         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
49460         * modules/setsockopt: Depend on sys_time module for struct timeval.
49461         * modules/getsockopt: Depend on sys_time module for struct timeval.
49462
49463 2009-03-01  Simon Josefsson  <simon@josefsson.org>
49464
49465         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
49466         __USE_GNU, for consistency with netdb.in.h.
49467         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49468
49469 2009-03-01  Bruno Haible  <bruno@clisp.org>
49470
49471         More support for FreeMiNT.
49472         * lib/fseeko.c (rpl_fseeko): Complete last commit.
49473         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49474
49475 2009-03-01  Bruno Haible  <bruno@clisp.org>
49476
49477         More support for FreeMiNT.
49478         * lib/fpurge.c (fpurge): Correct last commit.
49479         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49480
49481 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49482
49483         Fix unportable awk script in vc-list-files.
49484         * build-aux/vc-list-files: In the replacement awk script, use
49485         substr with a second argument of 1, not zero.
49486         Report by Simon Josefsson.
49487
49488 2009-02-28  Bruno Haible  <bruno@clisp.org>
49489
49490         More support for FreeMiNT.
49491         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
49492         to FreeMiNT today.
49493         * lib/fwriting.c (fwriting): Likewise.
49494         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
49495
49496 2009-02-28  Bruno Haible  <bruno@clisp.org>
49497
49498         * tests/test-freadseek.c (main): Disable test beyond end of file on
49499         FreeMiNT.
49500         * tests/test-ftello.c (main): Likewise.
49501         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49502
49503 2009-02-28  Bruno Haible  <bruno@clisp.org>
49504
49505         Add tentative support for FreeMiNT.
49506         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
49507         * lib/fpurge.c (fpurge): Likewise.
49508         * lib/freadable.c (freadable): Likewise.
49509         * lib/freading.c (freading): Likewise.
49510         * lib/freadptr.c (freadptr): Likewise.
49511         * lib/freadseek.c (freadptrinc): Likewise.
49512         * lib/fseeko.c (rpl_fseeko): Likewise.
49513         * lib/fseterr.c (fseterr): Likewise.
49514         * lib/fwritable.c (fwritable): Likewise.
49515         * lib/fwriting.c (fwriting): Likewise.
49516         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
49517         Hourihane.
49518         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49519
49520 2009-02-28  Bruno Haible  <bruno@clisp.org>
49521
49522         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
49523         SIGCHLD.
49524         Reported by Jim Meyering.
49525
49526 2009-02-28  Bruno Haible  <bruno@clisp.org>
49527
49528         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
49529         Mention the results of these tests on various platforms.
49530         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
49531         order.
49532         * doc/posix-functions/printf.texi: Likewise.
49533         * doc/posix-functions/snprintf.texi: Likewise.
49534         * doc/posix-functions/sprintf.texi: Likewise.
49535         * doc/posix-functions/vfprintf.texi: Likewise.
49536         * doc/posix-functions/vprintf.texi: Likewise.
49537         * doc/posix-functions/vsnprintf.texi: Likewise.
49538         * doc/posix-functions/vsprintf.texi: Likewise.
49539         * doc/glibc-functions/obstack_printf.texi: Likewise.
49540         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
49541
49542 2009-02-28  Bruno Haible  <bruno@clisp.org>
49543
49544         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
49545         Reported by Loïc Minier <lool@dooz.org>.
49546
49547 2009-02-27  Bruno Haible  <bruno@clisp.org>
49548
49549         * gnulib-tool (func_import): Make the sed expression used to create the
49550         sed script for updating the .gitignore file POSIX compliant.
49551         Reported by Eric Blake.
49552
49553 2009-02-27  Bruno Haible  <bruno@clisp.org>
49554
49555         * gnulib-tool (sed): Don't alias as "sed --posix".
49556         Reported by Eric Blake.
49557
49558 2009-02-27  Bruno Haible  <bruno@clisp.org>
49559
49560         Avoid test link errors.
49561         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
49562         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
49563         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
49564         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
49565         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49566
49567 2009-02-27  Bruno Haible  <bruno@clisp.org>
49568
49569         Avoid spurious "(cached)" in configure output.
49570         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
49571         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
49572         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49573         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49574         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49575         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49576         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49577         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49578         Reported by Eric Blake.
49579
49580 2009-02-27  Eric Blake  <ebb9@byu.net>
49581
49582         printf: fix regression in previous patch
49583         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
49584
49585 2009-02-27  Bruno Haible  <bruno@clisp.org>
49586
49587         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
49588         value.
49589         * lib/stdint.in.h: Likewise.
49590         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
49591
49592 2009-02-27  Eric Blake  <ebb9@byu.net>
49593
49594         doc: mention more functions added in cygwin 1.7.0
49595         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
49596         addition.
49597         * doc/posix-functions/open_wmemstream.texi: Likewise.
49598         * doc/posix-functions/wcsnlen.texi: Likewise.
49599         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49600         * doc/posix-functions/wcstod.texi: Likewise.
49601         * doc/posix-functions/wcstof.texi: Likewise.
49602         * doc/posix-functions/wcstoimax.texi: Likewise.
49603         * doc/posix-functions/wcstok.texi: Likewise.
49604         * doc/posix-functions/wcstoumax.texi: Likewise.
49605
49606         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
49607         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
49608         * doc/posix-functions/fprintf.texi: Update.
49609         * doc/posix-functions/printf.texi: Update.
49610         * doc/posix-functions/snprintf.texi: Update.
49611         * doc/posix-functions/sprintf.texi: Update.
49612         * doc/posix-functions/vfprintf.texi: Update.
49613         * doc/posix-functions/vprintf.texi: Update.
49614         * doc/posix-functions/vsnprintf.texi: Update.
49615         * doc/posix-functions/vsprintf.texi: Update.
49616         * doc/glibc-functions/obstack_printf.texi: Update.
49617         * doc/glibc-functions/obstack_vprintf.texi: Update.
49618
49619 2009-02-26  Eric Blake  <ebb9@byu.net>
49620
49621         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
49622         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
49623         compilation bug by using runtime conversion.
49624         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49625         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
49626         * modules/ceill-tests (Files): Use nan.h.
49627         * modules/floorl-tests (Files): Likewise.
49628         * modules/frexpl-tests (Files): Likewise.
49629         * modules/isnanl-tests (Files): Likewise.
49630         * modules/ldexpl-tests (Files): Likewise.
49631         * modules/roundl-tests (Files): Likewise.
49632         * modules/truncl-tests (Files): Likewise.
49633         * tests/test-ceill.c (main): Use a working NaN.
49634         * tests/test-floorl.c (main): Likewise.
49635         * tests/test-frexpl.c (main): Likewise.
49636         * tests/test-isnan.c (test_long_double): Likewise.
49637         * tests/test-isnanl.h (main): Likewise.
49638         * tests/test-ldexpl.h (main): Likewise.
49639         * tests/test-roundl.h (main): Likewise.
49640         * tests/test-truncl.h (main): Likewise.
49641         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
49642
49643 2009-02-26  Eric Blake  <ebb9@byu.net>
49644             Bruno Haible  <bruno@clisp.org>
49645
49646         Work around a *printf bug with %ls on Solaris.
49647         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
49648         precision is specified, sprintf stops converting the wide string
49649         argument when the number of bytes that have been produced by this
49650         conversion equals or exceeds the precision.
49651         * doc/posix-functions/fprintf.texi: Update.
49652         * doc/posix-functions/printf.texi: Update.
49653         * doc/posix-functions/snprintf.texi: Update.
49654         * doc/posix-functions/sprintf.texi: Update.
49655         * doc/posix-functions/vfprintf.texi: Update.
49656         * doc/posix-functions/vprintf.texi: Update.
49657         * doc/posix-functions/vsnprintf.texi: Update.
49658         * doc/posix-functions/vsprintf.texi: Update.
49659         * doc/glibc-functions/obstack_printf.texi: Update.
49660         * doc/glibc-functions/obstack_vprintf.texi: Update.
49661
49662 2009-02-26  Eric Blake  <ebb9@byu.net>
49663
49664         stdlib: favor compiler check of random.h
49665         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
49666         to avoid an ObjC random.h installed by Swarm.
49667
49668 2009-02-26  Bruno Haible  <bruno@clisp.org>
49669
49670         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
49671         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
49672         Reported by Gary V. Vaughan <gary@gnu.org>.
49673
49674 2009-02-26  Bruno Haible  <bruno@clisp.org>
49675
49676         Fix *printf behaviour regarding the %ls directive.
49677         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
49678         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
49679         NEED_PRINTF_DIRECTIVE_LS.
49680         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
49681         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49682         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49683         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
49684         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
49685         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
49686         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49687         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49688         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49689         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49690         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49691         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
49692         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49693         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49694         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49695         * doc/posix-functions/fprintf.texi: Update.
49696         * doc/posix-functions/printf.texi: Update.
49697         * doc/posix-functions/snprintf.texi: Update.
49698         * doc/posix-functions/sprintf.texi: Update.
49699         * doc/posix-functions/vfprintf.texi: Update.
49700         * doc/posix-functions/vprintf.texi: Update.
49701         * doc/posix-functions/vsnprintf.texi: Update.
49702         * doc/posix-functions/vsprintf.texi: Update.
49703         * doc/glibc-functions/obstack_printf.texi: Update.
49704         * doc/glibc-functions/obstack_vprintf.texi: Update.
49705         Reported by Eric Blake.
49706
49707 2009-02-25  Bruno Haible  <bruno@clisp.org>
49708
49709         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
49710         with known value.
49711         Reported by Gary V. Vaughan <gary@gnu.org>.
49712
49713 2009-02-25  Bruno Haible  <bruno@clisp.org>
49714
49715         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
49716         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
49717         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
49718         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
49719         Reported by Gary V. Vaughan <gary@gnu.org>.
49720
49721 2009-02-25  Bruno Haible  <bruno@clisp.org>
49722
49723         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
49724         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
49725         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
49726         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
49727         Reported by Gary V. Vaughan <gary@gnu.org>.
49728
49729 2009-02-25  Eric Blake  <ebb9@byu.net>
49730
49731         tests: skip fseek/ftell tests if ungetc is broken
49732         * m4/ungetc.m4: New file.
49733         * modules/fseek-tests: Split test, so ungetc dependency is
49734         separate from rest of test.
49735         * modules/fseeko-tests: Likewise.
49736         * modules/ftell-tests: Likewise.
49737         * modules/ftello-tests: Likewise.
49738         * tests/test-fseek.c (main): Isolate ungetc dependency.
49739         * tests/test-fseeko.c (main): Likewise.
49740         * tests/test-ftell.c (main): Likewise.
49741         * tests/test-ftello.c (main): Likewise.
49742         * tests/test-fseek2.sh: New file.
49743         * tests/test-fseeko2.sh: Likewise.
49744         * tests/test-ftell2.sh: Likewise.
49745         * tests/test-ftello2.sh: Likewise.
49746
49747 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
49748
49749         test-getaddrinfo: fix usage of skip return code 77
49750         * tests/test-gettaddrinfo.c: Return skip code 77 only
49751         for first occurrence of skip (4x77 is not 77)
49752
49753 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
49754
49755         strtod: avoid C99 decl-after-statement
49756         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
49757
49758 2009-02-24  Eric Blake  <ebb9@byu.net>
49759
49760         strtod: detect HP-UX 11.31 bug
49761         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
49762         Reported by Gary V. Vaughan.
49763
49764 2009-02-23  Bruno Haible  <bruno@clisp.org>
49765
49766         Fix invalid read past end of memory block.
49767         * lib/vasnprintf.c (DCHAR_SET): Define.
49768         (local_wcslen): Define only when needed.
49769         (local_strnlen, local_wcsnlen): New functions.
49770         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
49771         directives that involve a conversion ourselves.
49772         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
49773         wcsnlen, mbrtowc, wcrtomb.
49774         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
49775         * tests/test-vasprintf-posix.c (test_function): Likewise.
49776         * tests/test-snprintf-posix.h (test_function): Likewise.
49777         * tests/test-sprintf-posix.h (test_function): Likewise.
49778         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49779
49780 2009-02-22  Bruno Haible  <bruno@clisp.org>
49781
49782         Implement new clarified decomposition of Hangul syllables.
49783         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
49784         of type LTV, return only a pairwise decomposition.
49785         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
49786         Likewise.
49787         * tests/uninorm/test-decomposition.c (main): Updated expected result.
49788         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
49789         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
49790
49791 2009-02-22  Bruno Haible  <bruno@clisp.org>
49792
49793         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
49794         zero-length results and shrink excess allocated memory.
49795         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
49796         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
49797         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
49798         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
49799         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
49800         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
49801         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
49802         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
49803         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
49804         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
49805         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
49806         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
49807
49808 2009-02-21  Bruno Haible  <bruno@clisp.org>
49809
49810         * doc/gnulib.texi: Include safe-alloc.texi earlier.
49811         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
49812         spaces after a period. Put a space between a macro name and its
49813         argument list. Trivial rewordings.
49814         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
49815         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
49816         (main): Return 0 explicitly.
49817
49818 2009-02-21  Bruno Haible  <bruno@clisp.org>
49819
49820         Tests for module 'uninorm/filter'.
49821         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
49822         * modules/uninorm/filter-tests: New file.
49823
49824         New module 'uninorm/filter'.
49825         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
49826         uninorm_filter_flush, uninorm_filter_free): New declarations.
49827         * lib/uninorm/uninorm-filter.c: New file.
49828         * modules/uninorm/filter: New file.
49829
49830 2009-02-21  Bruno Haible  <bruno@clisp.org>
49831
49832         Tests for module 'uninorm/nfkc'.
49833         * tests/uninorm/test-nfkc.c: New file.
49834         * tests/uninorm/test-u8-nfkc.c: New file.
49835         * tests/uninorm/test-u16-nfkc.c: New file.
49836         * tests/uninorm/test-u32-nfkc.c: New file.
49837         * tests/uninorm/test-u32-nfkc-big.sh: New file.
49838         * tests/uninorm/test-u32-nfkc-big.c: New file.
49839         * modules/uninorm/nfkc-tests: New file.
49840
49841         New module 'uninorm/nfkc'.
49842         * lib/uninorm/nfkc.c: New file.
49843         * modules/uninorm/nfkc: New file.
49844
49845         Tests for module 'uninorm/nfkd'.
49846         * tests/uninorm/test-nfkd.c: New file.
49847         * tests/uninorm/test-u8-nfkd.c: New file.
49848         * tests/uninorm/test-u16-nfkd.c: New file.
49849         * tests/uninorm/test-u32-nfkd.c: New file.
49850         * tests/uninorm/test-u32-nfkd-big.sh: New file.
49851         * tests/uninorm/test-u32-nfkd-big.c: New file.
49852         * modules/uninorm/nfkd-tests: New file.
49853
49854         New module 'uninorm/nfkd'.
49855         * lib/uninorm/nfkd.c: New file.
49856         * modules/uninorm/nfkd: New file.
49857
49858         Tests for module 'uninorm/nfc'.
49859         * tests/uninorm/test-nfc.c: New file.
49860         * tests/uninorm/test-u8-nfc.c: New file.
49861         * tests/uninorm/test-u16-nfc.c: New file.
49862         * tests/uninorm/test-u32-nfc.c: New file.
49863         * tests/uninorm/test-u32-nfc-big.sh: New file.
49864         * tests/uninorm/test-u32-nfc-big.c: New file.
49865         * modules/uninorm/nfc-tests: New file.
49866
49867         New module 'uninorm/nfc'.
49868         * lib/uninorm/nfc.c: New file.
49869         * modules/uninorm/nfc: New file.
49870
49871         Tests for module 'uninorm/nfd'.
49872         * tests/uninorm/test-nfd.c: New file.
49873         * tests/uninorm/test-u8-nfd.c: New file.
49874         * tests/uninorm/test-u16-nfd.c: New file.
49875         * tests/uninorm/test-u32-nfd.c: New file.
49876         * tests/uninorm/test-u32-nfd-big.sh: New file.
49877         * tests/uninorm/test-u32-nfd-big.c: New file.
49878         * tests/uninorm/test-u32-normalize-big.h: New file.
49879         * tests/uninorm/test-u32-normalize-big.c: New file.
49880         * tests/uninorm/NormalizationTest.txt: New file, created from
49881         Unicode 5.1.0 NormalizationTest.txt.
49882         * modules/uninorm/nfd-tests: New file.
49883
49884         New module 'uninorm/nfd'.
49885         * lib/uninorm/nfd.c: New file.
49886         * modules/uninorm/nfd: New file.
49887
49888         New module 'uninorm/u32-normalize'.
49889         * lib/uninorm/u32-normalize.c: New file.
49890         * modules/uninorm/u32-normalize: New file.
49891
49892         New module 'uninorm/u16-normalize'.
49893         * lib/uninorm/u16-normalize.c: New file.
49894         * modules/uninorm/u16-normalize: New file.
49895
49896         New module 'uninorm/u8-normalize'.
49897         * lib/uninorm/u8-normalize.c: New file.
49898         * lib/uninorm/normalize-internal.h: New file.
49899         * lib/uninorm/u-normalize-internal.h: New file.
49900         * modules/uninorm/u8-normalize: New file.
49901
49902         New module 'uninorm/decompose-internal'.
49903         * lib/uninorm/decompose-internal.c: New file.
49904         * modules/uninorm/decompose-internal: New file.
49905
49906         Tests for module 'uninorm/composition'.
49907         * tests/uninorm/test-composition.c: New file.
49908         * modules/uninorm/composition-tests: New file.
49909
49910         New module 'uninorm/composition'.
49911         * lib/uninorm/composition.c: New file.
49912         * lib/uninorm/composition-table.gperf: New file, generated by
49913         gen-uni-tables.
49914         * modules/uninorm/composition: New file.
49915
49916         Tests for module 'uninorm/compat-decomposition'.
49917         * tests/uninorm/test-compat-decomposition.c: New file.
49918         * modules/uninorm/compat-decomposition-tests: New file.
49919
49920         New module 'uninorm/compat-decomposition'.
49921         * lib/uninorm/decompose-internal.h: New file.
49922         * lib/uninorm/compat-decomposition.c: New file.
49923         * modules/uninorm/compat-decomposition: New file.
49924
49925         Tests for module 'uninorm/canonical-decomposition'.
49926         * tests/uninorm/test-canonical-decomposition.c: New file.
49927         * modules/uninorm/canonical-decomposition-tests: New file.
49928
49929         New module 'uninorm/canonical-decomposition'.
49930         * lib/uninorm/canonical-decomposition.c: New file.
49931         * modules/uninorm/canonical-decomposition: New file.
49932
49933         Tests for module 'uninorm/decomposition'.
49934         * tests/uninorm/test-decomposition.c: New file.
49935         * modules/uninorm/decomposition-tests: New file.
49936
49937         New module 'uninorm/decomposition'.
49938         * lib/uninorm/decomposition.c: New file.
49939         * modules/uninorm/decomposition: New file.
49940
49941         New module 'uninorm/decomposition-table'.
49942         * lib/uninorm/decomposition-table.h: New file.
49943         * lib/uninorm/decomposition-table.c: New file.
49944         * lib/uninorm/decomposition-table1.h: New file, generated by
49945         gen-uni-tables.
49946         * lib/uninorm/decomposition-table2.h: New file, generated by
49947         gen-uni-tables.
49948         * modules/uninorm/decomposition-table: New file.
49949
49950         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
49951         (UC_DECOMP_*): New enumeration items.
49952         (get_decomposition): New function.
49953         (struct decomp_table): New type.
49954         (output_decomposition, output_decomposition_tables): New functions.
49955         (unicode_composition_exclusions): New variable.
49956         (fill_composition_exclusions, debug_output_composition_tables): New
49957         functions.
49958         (main): Accept one more argument. Invoke fill_composition_exclusions.
49959         Output decomposition and composition tables.
49960
49961         New module 'uninorm/base'.
49962         * lib/uninorm.h: New file.
49963         * lib/unictype.h: Update comment.
49964         * modules/uninorm/base: New file.
49965
49966 2009-02-21  David Lutterkort  <lutter@redhat.com>
49967
49968         Tests for module 'safe-alloc'.
49969         * tests/test-safe-alloc.c: New file.
49970         * modules/safe-alloc-tests: New file.
49971
49972         New module 'safe-alloc'.
49973         * lib/safe-alloc.h: New file.
49974         * lib/safe-alloc.c: New file.
49975         * m4/safe-alloc.m4: New file.
49976         * modules/safe-alloc: New file.
49977         * doc/safe-alloc.texi: New file.
49978         * doc/gnulib.texi: Include it.
49979         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49980         safe-alloc.
49981
49982 2009-02-18  Bruno Haible  <bruno@clisp.org>
49983
49984         Fix link error on non-glibc systems.
49985         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
49986         variable.
49987         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49988
49989 2009-02-18  Jim Meyering  <meyering@redhat.com>
49990
49991         fts: avoid used-uninitialized error due to recent change
49992         * lib/fts.c (fts_read): Guard uses of the new member,
49993         parent->fts_n_dirs_remaining, since it's not relevant for
49994         the parent of a directory specified on the command-line.
49995
49996 2009-02-17  James Youngman  <jay@gnu.org>
49997             Bruno Haible  <bruno@clisp.org>
49998
49999         * m4/include_next.m4: Reformulate comment.
50000
50001 2009-02-16  Jim Meyering  <meyering@redhat.com>
50002
50003         fts: add #if guards so that the fts_lgpl module still builds
50004         * lib/fts.c: Guard just-added hash-table-using parts with
50005         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
50006         Reported by Simon Josefsson.
50007
50008 2009-02-15  Bruno Haible  <bruno@clisp.org>
50009
50010         * modules/array-mergesort-tests: New file.
50011         * tests/test-array-mergesort.c: New file.
50012
50013         New module 'array-mergesort'.
50014         * modules/array-mergesort: New file.
50015         * lib/array-mergesort.h: New file.
50016
50017 2009-02-15  Bruno Haible  <bruno@clisp.org>
50018
50019         Fix 2009-02-07 commit.
50020         * lib/gen-uni-tables.c (output_predicate, output_category,
50021         output_combclass, output_bidi_category, output_decimal_digit,
50022         output_digit, output_numeric, output_mirror, output_scripts,
50023         output_ident_category, output_simple_mapping): Fix format directives.
50024         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
50025
50026 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
50027
50028         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
50029         fixes are available from IBM.
50030
50031 2009-02-13  Jim Meyering  <meyering@redhat.com>
50032
50033         fts: arrange not to stat non-directories in more cases
50034         This makes GNU find (when it doesn't need to stat each file)
50035         *much* more efficient at traversing reiserfs file systems.
50036         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
50037         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
50038         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
50039         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
50040         (leaf_optimization_applies): New function.
50041         (LCO_hash, LCO_compare): New helper functions.
50042         (link_count_optimize_ok): New function.
50043         (fts_stat): Initialize new member (if dir).
50044         (fts_read): Decrement parent's fts_n_dirs_remaining count if
50045         we've just stat'ed a directory.  Skip the stat call when possible.
50046         ---
50047         Note this AFS-related exchange:
50048         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
50049         and note find's pioctl call in find/fstype.c.
50050         But that is necessary only if you want to enable the
50051         optimization for AFS, and for now, I don't.
50052
50053         fts: move a function definition "up" (no semantic change)
50054         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
50055         "up" to precede upcoming use of a related function.
50056
50057 2009-02-11  Jim Meyering  <meyering@redhat.com>
50058
50059         fts: correct internal computation of nlinks (optimization-related)
50060         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
50061         whether the current entry is a directory, so don't test it.
50062
50063 2009-02-10  Bruno Haible  <bruno@clisp.org>
50064
50065         Tests for module 'uniwbrk/ulc-wordbreaks'.
50066         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
50067         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
50068         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
50069
50070         Tests for module 'uniwbrk/u32-wordbreaks'.
50071         * modules/uniwbrk/u32-wordbreaks-tests: New file.
50072         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
50073
50074         Tests for module 'uniwbrk/u16-wordbreaks'.
50075         * modules/uniwbrk/u16-wordbreaks-tests: New file.
50076         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
50077
50078         Tests for module 'uniwbrk/u8-wordbreaks'.
50079         * modules/uniwbrk/u8-wordbreaks-tests: New file.
50080         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
50081
50082 2009-02-10  Bruno Haible  <bruno@clisp.org>
50083
50084         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
50085         property.
50086         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
50087         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
50088         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
50089
50090 2009-02-10  Simon Josefsson  <simon@josefsson.org>
50091
50092         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
50093         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
50094
50095 2009-02-10  Bruno Haible  <bruno@clisp.org>
50096
50097         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
50098         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
50099         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
50100         * lib/unilbrk/u8-possible-linebreaks.c: Update.
50101         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
50102         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
50103
50104 2009-02-09  Simon Josefsson  <simon@josefsson.org>
50105
50106         * lib/sockets.h (gl_fd_to_handle): New function.
50107
50108         * tests/test-sockets.c: Call gl_fd_to_handle.
50109
50110 2009-02-09  Bruno Haible  <bruno@clisp.org>
50111
50112         * doc/havelib.texi: Document the conventions on bi-arch systems.
50113
50114 2009-02-08  Bruno Haible  <bruno@clisp.org>
50115
50116         Document the AC_LIB_LINKFLAGS macro.
50117         * doc/havelib.texi: New file, mostly written on 2005-05-24.
50118         * doc/gnulib.texi: Include it.
50119
50120 2009-02-08  Bruno Haible  <bruno@clisp.org>
50121
50122         Fix wrong order of sections, compared to TOC.
50123         * doc/gnulib.texi: Include relocatable-maint.texi after the
50124         "Regular expressions" node, not before.
50125
50126 2009-02-08  Bruno Haible  <bruno@clisp.org>
50127
50128         Tests for module 'unicase/totitle'.
50129         * modules/unicase/totitle-tests: New file.
50130
50131         Tests for module 'unicase/tolower'.
50132         * modules/unicase/tolower-tests: New file.
50133
50134         Tests for module 'unicase/toupper'.
50135         * modules/unicase/toupper-tests: New file.
50136         * tests/unicase/test-mapping-part1.h: New file.
50137         * tests/unicase/test-mapping-part2.h: New file.
50138
50139         New module 'unicase/totitle'.
50140         * modules/unicase/totitle: New file.
50141         * lib/unicase/totitle.c: New file.
50142
50143         New module 'unicase/tolower'.
50144         * modules/unicase/tolower: New file.
50145         * lib/unicase/tolower.c: New file.
50146
50147         New module 'unicase/toupper'.
50148         * modules/unicase/toupper: New file.
50149         * lib/unicase/toupper.c: New file.
50150         * lib/unicase/simple-mapping.h: New file.
50151
50152         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
50153         (mapping_table): New structure.
50154         (output_simple_mapping): New function.
50155         (main): Invoke output_simple_mapping_test and output_simple_mapping.
50156         * modules/gen-uni-tables (Description): Update.
50157         * lib/unicase/toupper.h: New file, automatically generated by
50158         gen-uni-tables.
50159         * lib/unicase/tolower.h: New file, automatically generated by
50160         gen-uni-tables.
50161         * lib/unicase/totitle.h: New file, automatically generated by
50162         gen-uni-tables.
50163         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
50164         gen-uni-tables.
50165         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
50166         gen-uni-tables.
50167         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
50168         gen-uni-tables.
50169
50170         New module 'unicase/base'.
50171         * modules/unicase/base: New file.
50172         * lib/unicase.h: New file.
50173
50174 2009-02-08  Bruno Haible  <bruno@clisp.org>
50175
50176         New module 'uniwbrk/ulc-wordbreaks'.
50177         * modules/uniwbrk/ulc-wordbreaks: New file.
50178         * lib/uniwbrk/ulc-wordbreaks.c: New file.
50179
50180         New module 'uniwbrk/u32-wordbreaks'.
50181         * modules/uniwbrk/u32-wordbreaks: New file.
50182         * lib/uniwbrk/u32-wordbreaks.c: New file.
50183
50184         New module 'uniwbrk/u16-wordbreaks'.
50185         * modules/uniwbrk/u16-wordbreaks: New file.
50186         * lib/uniwbrk/u16-wordbreaks.c: New file.
50187
50188         New module 'uniwbrk/u8-wordbreaks'.
50189         * modules/uniwbrk/u8-wordbreaks: New file.
50190         * lib/uniwbrk/u8-wordbreaks.c: New file.
50191         * lib/uniwbrk/u-wordbreaks.h: New file.
50192
50193         New module 'uniwbrk/table'.
50194         * modules/uniwbrk/table: New file.
50195         * lib/uniwbrk/wbrktable.h: New file.
50196         * lib/uniwbrk/wbrktable.c: New file.
50197
50198         New module 'uniwbrk/wordbreak-property'.
50199         * modules/uniwbrk/wordbreak-property: New file.
50200         * lib/uniwbrk/wordbreak-property.c: New file.
50201
50202         * lib/gen-uni-tables.c (WBP_*): New enum items.
50203         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
50204         (unicode_org_wbp): New variable.
50205         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
50206         New functions.
50207         (wbp_table): New structure.
50208         (output_wbp, output_wbrk_tables): New functions.
50209         (main): Accept additional argument. Invoke fill_org_wbp,
50210         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
50211         output_wbrk_tables.
50212         * modules/gen-uni-tables (Description): Update.
50213         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
50214         gen-uni-tables.
50215
50216         New module 'uniwbrk/base'.
50217         * modules/uniwbrk/base: New file.
50218         * lib/uniwbrk.h: New file.
50219
50220 2009-02-08  Bruno Haible  <bruno@clisp.org>
50221
50222         Update to Unicode 5.1.0.
50223         * lib/gen-uni-tables.c (is_property_alphabetic): Include
50224         U+2185..U+2188.
50225         (is_property_default_ignorable_code_point): Don't include characters
50226         of category Cc or Cs and not-a-characters.
50227         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
50228         U+0D79, U+109E, U+109F, U+A60C.
50229         * lib/unictype/bidi_of.h: Regenerated.
50230         * lib/unictype/blocks.h: Regenerated.
50231         * lib/unictype/categ_C.h: Regenerated.
50232         * lib/unictype/categ_Cf.h: Regenerated.
50233         * lib/unictype/categ_Cn.h: Regenerated.
50234         * lib/unictype/categ_L.h: Regenerated.
50235         * lib/unictype/categ_Ll.h: Regenerated.
50236         * lib/unictype/categ_Lm.h: Regenerated.
50237         * lib/unictype/categ_Lo.h: Regenerated.
50238         * lib/unictype/categ_Lu.h: Regenerated.
50239         * lib/unictype/categ_M.h: Regenerated.
50240         * lib/unictype/categ_Mc.h: Regenerated.
50241         * lib/unictype/categ_Me.h: Regenerated.
50242         * lib/unictype/categ_Mn.h: Regenerated.
50243         * lib/unictype/categ_N.h: Regenerated.
50244         * lib/unictype/categ_Nd.h: Regenerated.
50245         * lib/unictype/categ_Nl.h: Regenerated.
50246         * lib/unictype/categ_No.h: Regenerated.
50247         * lib/unictype/categ_P.h: Regenerated.
50248         * lib/unictype/categ_Pd.h: Regenerated.
50249         * lib/unictype/categ_Pe.h: Regenerated.
50250         * lib/unictype/categ_Pf.h: Regenerated.
50251         * lib/unictype/categ_Pi.h: Regenerated.
50252         * lib/unictype/categ_Po.h: Regenerated.
50253         * lib/unictype/categ_Ps.h: Regenerated.
50254         * lib/unictype/categ_S.h: Regenerated.
50255         * lib/unictype/categ_Sk.h: Regenerated.
50256         * lib/unictype/categ_Sm.h: Regenerated.
50257         * lib/unictype/categ_So.h: Regenerated.
50258         * lib/unictype/categ_of.h: Regenerated.
50259         * lib/unictype/combining.h: Regenerated.
50260         * lib/unictype/ctype_alnum.h: Regenerated.
50261         * lib/unictype/ctype_alpha.h: Regenerated.
50262         * lib/unictype/ctype_graph.h: Regenerated.
50263         * lib/unictype/ctype_lower.h: Regenerated.
50264         * lib/unictype/ctype_print.h: Regenerated.
50265         * lib/unictype/ctype_punct.h: Regenerated.
50266         * lib/unictype/ctype_upper.h: Regenerated.
50267         * lib/unictype/decdigit.h: Regenerated.
50268         * lib/unictype/digit.h: Regenerated.
50269         * lib/unictype/mirror.h: Regenerated.
50270         * lib/unictype/numeric.h: Regenerated.
50271         * lib/unictype/pr_alphabetic.h: Regenerated.
50272         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
50273         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
50274         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
50275         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
50276         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
50277         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
50278         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
50279         * lib/unictype/pr_combining.h: Regenerated.
50280         * lib/unictype/pr_dash.h: Regenerated.
50281         * lib/unictype/pr_decimal_digit.h: Regenerated.
50282         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
50283         * lib/unictype/pr_deprecated.h: Regenerated.
50284         * lib/unictype/pr_diacritic.h: Regenerated.
50285         * lib/unictype/pr_extender.h: Regenerated.
50286         * lib/unictype/pr_format_control.h: Regenerated.
50287         * lib/unictype/pr_grapheme_base.h: Regenerated.
50288         * lib/unictype/pr_grapheme_extend.h: Regenerated.
50289         * lib/unictype/pr_grapheme_link.h: Regenerated.
50290         * lib/unictype/pr_id_continue.h: Regenerated.
50291         * lib/unictype/pr_id_start.h: Regenerated.
50292         * lib/unictype/pr_ideographic.h: Regenerated.
50293         * lib/unictype/pr_ignorable_control.h: Regenerated.
50294         * lib/unictype/pr_lowercase.h: Regenerated.
50295         * lib/unictype/pr_math.h: Regenerated.
50296         * lib/unictype/pr_numeric.h: Regenerated.
50297         * lib/unictype/pr_other_alphabetic.h: Regenerated.
50298         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
50299         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
50300         * lib/unictype/pr_other_id_continue.h: Regenerated.
50301         * lib/unictype/pr_other_lowercase.h: Regenerated.
50302         * lib/unictype/pr_other_math.h: Regenerated.
50303         * lib/unictype/pr_punctuation.h: Regenerated.
50304         * lib/unictype/pr_sentence_terminal.h: Regenerated.
50305         * lib/unictype/pr_soft_dotted.h: Regenerated.
50306         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
50307         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
50308         * lib/unictype/pr_unified_ideograph.h: Regenerated.
50309         * lib/unictype/pr_uppercase.h: Regenerated.
50310         * lib/unictype/pr_xid_continue.h: Regenerated.
50311         * lib/unictype/pr_xid_start.h: Regenerated.
50312         * lib/unictype/pr_zero_width.h: Regenerated.
50313         * lib/unictype/scripts.h: Regenerated.
50314         * lib/unictype/scripts_byname.gperf: Regenerated.
50315         * lib/unictype/sy_java_ident.h: Regenerated.
50316         * lib/unilbrk/lbrkprop1.h: Regenerated.
50317         * lib/unilbrk/lbrkprop2.h: Regenerated.
50318         * tests/unictype/test-categ_C.c: Regenerated.
50319         * tests/unictype/test-categ_Cf.c: Regenerated.
50320         * tests/unictype/test-categ_Cn.c: Regenerated.
50321         * tests/unictype/test-categ_L.c: Regenerated.
50322         * tests/unictype/test-categ_Ll.c: Regenerated.
50323         * tests/unictype/test-categ_Lm.c: Regenerated.
50324         * tests/unictype/test-categ_Lo.c: Regenerated.
50325         * tests/unictype/test-categ_Lu.c: Regenerated.
50326         * tests/unictype/test-categ_M.c: Regenerated.
50327         * tests/unictype/test-categ_Mc.c: Regenerated.
50328         * tests/unictype/test-categ_Me.c: Regenerated.
50329         * tests/unictype/test-categ_Mn.c: Regenerated.
50330         * tests/unictype/test-categ_N.c: Regenerated.
50331         * tests/unictype/test-categ_Nd.c: Regenerated.
50332         * tests/unictype/test-categ_Nl.c: Regenerated.
50333         * tests/unictype/test-categ_No.c: Regenerated.
50334         * tests/unictype/test-categ_P.c: Regenerated.
50335         * tests/unictype/test-categ_Pd.c: Regenerated.
50336         * tests/unictype/test-categ_Pe.c: Regenerated.
50337         * tests/unictype/test-categ_Pf.c: Regenerated.
50338         * tests/unictype/test-categ_Pi.c: Regenerated.
50339         * tests/unictype/test-categ_Po.c: Regenerated.
50340         * tests/unictype/test-categ_Ps.c: Regenerated.
50341         * tests/unictype/test-categ_S.c: Regenerated.
50342         * tests/unictype/test-categ_Sk.c: Regenerated.
50343         * tests/unictype/test-categ_Sm.c: Regenerated.
50344         * tests/unictype/test-categ_So.c: Regenerated.
50345         * tests/unictype/test-ctype_alnum.c: Regenerated.
50346         * tests/unictype/test-ctype_alpha.c: Regenerated.
50347         * tests/unictype/test-ctype_graph.c: Regenerated.
50348         * tests/unictype/test-ctype_lower.c: Regenerated.
50349         * tests/unictype/test-ctype_print.c: Regenerated.
50350         * tests/unictype/test-ctype_punct.c: Regenerated.
50351         * tests/unictype/test-ctype_upper.c: Regenerated.
50352         * tests/unictype/test-decdigit.h: Regenerated.
50353         * tests/unictype/test-digit.h: Regenerated.
50354         * tests/unictype/test-numeric.h: Regenerated.
50355         * tests/unictype/test-pr_alphabetic.c: Regenerated.
50356         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
50357         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
50358         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
50359         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
50360         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
50361         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
50362         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
50363         * tests/unictype/test-pr_combining.c: Regenerated.
50364         * tests/unictype/test-pr_dash.c: Regenerated.
50365         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
50366         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
50367         * tests/unictype/test-pr_deprecated.c: Regenerated.
50368         * tests/unictype/test-pr_diacritic.c: Regenerated.
50369         * tests/unictype/test-pr_extender.c: Regenerated.
50370         * tests/unictype/test-pr_format_control.c: Regenerated.
50371         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
50372         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
50373         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
50374         * tests/unictype/test-pr_id_continue.c: Regenerated.
50375         * tests/unictype/test-pr_id_start.c: Regenerated.
50376         * tests/unictype/test-pr_ideographic.c: Regenerated.
50377         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
50378         * tests/unictype/test-pr_lowercase.c: Regenerated.
50379         * tests/unictype/test-pr_math.c: Regenerated.
50380         * tests/unictype/test-pr_numeric.c: Regenerated.
50381         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
50382         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
50383         Regenerated.
50384         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
50385         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
50386         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
50387         * tests/unictype/test-pr_other_math.c: Regenerated.
50388         * tests/unictype/test-pr_punctuation.c: Regenerated.
50389         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
50390         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
50391         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
50392         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
50393         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
50394         * tests/unictype/test-pr_uppercase.c: Regenerated.
50395         * tests/unictype/test-pr_xid_continue.c: Regenerated.
50396         * tests/unictype/test-pr_xid_start.c: Regenerated.
50397         * tests/unictype/test-pr_zero_width.c: Regenerated.
50398
50399         Update to Unicode 5.1.0.
50400         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
50401         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
50402         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
50403         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
50404         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
50405         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
50406         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
50407         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
50408         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
50409         (nonspacing_table_ind): Update.
50410         * tests/uniwidth/test-uc_width2.sh: Update expected result.
50411
50412         Update to Unicode 5.1.0.
50413         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
50414         code transform.
50415         * lib/uniname/uniname.c (unicode_character_name,
50416         unicode_name_character): Add the range 0x1Fxxx to the code transform.
50417         * lib/uniname/uninames.h: Regenerated.
50418         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
50419
50420 2009-02-07  Bruno Haible  <bruno@clisp.org>
50421
50422         Merge gen-ctype and gen-lbrk into a single program.
50423         * lib/gen-uni-tables.c: New file, incorporating
50424         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
50425         Add directory prefixes to the names of the generated files.
50426         * lib/unictype/gen-ctype.c: Remove file.
50427         * lib/unilbrk/gen-lbrk.c: Remove file.
50428         * modules/gen-uni-tables: New file.
50429         * modules/unictype/gen-ctype: Remove file.
50430         * modules/unilbrk/gen-lbrk: Remove file.
50431
50432 2009-02-07  Bruno Haible  <bruno@clisp.org>
50433
50434         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
50435
50436         New module 'unistr/u32-strcoll'.
50437         * modules/unistr/u32-strcoll: New file.
50438         * lib/unistr/u32-strcoll.c: New file.
50439
50440         New module 'unistr/u16-strcoll'.
50441         * modules/unistr/u16-strcoll: New file.
50442         * lib/unistr/u16-strcoll.c: New file.
50443
50444         New module 'unistr/u8-strcoll'.
50445         * modules/unistr/u8-strcoll: New file.
50446         * lib/unistr/u8-strcoll.c: New file.
50447         * lib/unistr/u-strcoll.h: New file.
50448
50449 2009-02-07  Bruno Haible  <bruno@clisp.org>
50450
50451         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
50452         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50453         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50454         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
50455         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
50456         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
50457
50458 2009-02-07  Bruno Haible  <bruno@clisp.org>
50459
50460         Make 64-bit clean.
50461         * lib/unictype/gen-ctype.c (output_predicate, output_category,
50462         output_combclass, output_bidi_category, output_decimal_digit,
50463         output_digit, output_numeric, output_mirror, output_scripts,
50464         output_ident_category): Use proper width specifier in format strings.
50465
50466 2009-02-07  Bruno Haible  <bruno@clisp.org>
50467
50468         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
50469         failure behaviour.
50470
50471 2009-02-07  Jim Meyering  <meyering@redhat.com>
50472
50473         regex: avoid compilation failure with upcoming gcc-4.4
50474         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
50475         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
50476         "... error: integer overflow in preprocessor expression".
50477
50478 2009-02-05  Ben Pfaff  <blp@gnu.org>
50479
50480         Fix link errors on Windows when close module is used.
50481         * modules/close: Add $(LIB_CLOSE) to Link section.
50482         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
50483         $(LIB_CLOSE) on Windows.
50484
50485 2009-02-05  Jim Meyering  <meyering@redhat.com>
50486
50487         still avoid unused-parameter warnings, but do it cleanly
50488         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
50489         (get_fs_usage): Cast to void instead.
50490         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
50491         (dev_from_mount_options, read_file_system_list): Cast to void.
50492         Prompted by Bruno Haible.
50493
50494 2009-02-04  Jim Meyering  <meyering@redhat.com>
50495
50496         fsusage.c: correct copyright year
50497         * lib/fsusage.c: Reflect year in which the change is pushed into
50498
50499         avoid misc. warnings
50500         * lib/fsusage.c (UNUSED_PARAM): Define.
50501         (get_fs_usage): Mark parameter "disk" as unused.
50502         * lib/getugroups.c (getgrent): Use "void" in prototype.
50503         * lib/mountlist.c: Mark unused parameters.
50504         (read_file_system_list): Declare a local with "const".
50505         * lib/nanosleep.c (getnow): Declare static.
50506         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
50507
50508         dirfd: set errno upon failure
50509         * lib/dirfd.c: Include <errno.h>.
50510         Set errno to ENOTSUP when returning -1.
50511         * modules/dirfd (Depends-on): Add errno.
50512         Suggested by John Kodis <kodis@comcast.net>.
50513
50514 2009-02-01  Bruno Haible  <bruno@clisp.org>
50515
50516         Don't assume sizeof (long) >= sizeof (void *).
50517         * lib/memcmp.c: Include stdint.h.
50518         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
50519         srcp2 to 'const byte *'.
50520         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
50521         types to uintptr_t.
50522         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
50523         * modules/memcmp (Depends-on): Add stdint.
50524         Reported by Ozkan Sezer <sezeroz@gmail.com>.
50525
50526 2009-01-30  Eric Blake  <ebb9@byu.net>
50527
50528         fix more require-before-expand issues
50529         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
50530         expand, AC_PROG_AWK.
50531         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
50532
50533 2009-01-28  Eric Blake  <ebb9@byu.net>
50534
50535         version-etc: use consistent URL formatting
50536         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
50537         Improve formatting.  Use fputs for string without %.
50538
50539 2009-01-28  Jim Meyering  <meyering@redhat.com>
50540
50541         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
50542         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
50543         "underquoted definition of NAME" from autoconf-2.59.
50544
50545 2009-01-28  Bruno Haible  <bruno@clisp.org>
50546
50547         * doc/gnulib.texi: Add "Obsolete modules" to index.
50548
50549 2009-01-28  Jim Meyering  <meyering@redhat.com>
50550
50551         useless-if-before-free: recognize more variants
50552         * build-aux/useless-if-before-free: Also recognize e.g.,
50553         if (NULL != p) free (p);
50554
50555 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
50556
50557         test-getaddrinfo: skip (don't fail) this test when there's no network
50558         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
50559         on the presumption that it means you lack network access.
50560
50561 2009-01-26  Jim Meyering  <meyering@redhat.com>
50562
50563         fflush: avoid warnings on modern systems
50564         * lib/fflush.c (rpl_fflush): Move declarations of locals,
50565         pos and result, into scopes where they're used.
50566
50567 2009-01-26  Eric Blake  <ebb9@byu.net>
50568
50569         Silence warning reintroduced by recent extensions patch.
50570         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
50571         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
50572         autoconf.
50573
50574         Backport improved autoconf semantics of AC_DEFUN_ONCE.
50575         * m4/00gnulib.m4: New file.
50576         * gnulib-tool (func_get_filelist): Always use it.
50577         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
50578         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
50579
50580 2009-01-25  Bruno Haible  <bruno@clisp.org>
50581
50582         Make test-quotearg work on MacOS X and AIX.
50583         * tests/test-quotearg.sh: New file.
50584         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
50585         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
50586         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
50587         include <libintl.h>.
50588         (fake_locale): Remove variable.
50589         (gettext, dgettext, dcgettext): Remove functions.
50590         (main): Instead of setting a fake locale, set a real locale. Call
50591         textdomain and bindtextdomain.
50592         * modules/quotearg-tests (Files): Add the new files.
50593         (Depends-on): Add gettext, setenv, unsetenv.
50594         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50595         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
50596         Augment TESTS_ENVIRONMENT.
50597
50598 2009-01-25  Bruno Haible  <bruno@clisp.org>
50599
50600         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
50601         fr_FR.ISO8859-1 locale on MacOS X.
50602         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
50603         ja_JP.eucJP locale on MacOS X.
50604         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
50605         zh_CN.GB18030 locale on MacOS X.
50606
50607 2009-01-25  Bruno Haible  <bruno@clisp.org>
50608
50609         Avoid link errors on MacOS X 10.3.
50610         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
50611         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50612
50613 2009-01-25  Bruno Haible  <bruno@clisp.org>
50614
50615         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50616         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
50617         * modules/pipe (Files): Remove m4/posix_spawn.m4.
50618         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50619         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
50620         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50621         posix_spawnattr_init, posix_spawnattr_setsigmask,
50622         posix_spawnattr_setflags, posix_spawnattr_destroy.
50623
50624         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50625         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
50626         * modules/execute (Files): Remove m4/posix_spawn.m4.
50627         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50628         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50629         posix_spawnattr_init, posix_spawnattr_setsigmask,
50630         posix_spawnattr_setflags, posix_spawnattr_destroy.
50631
50632 2009-01-25  Bruno Haible  <bruno@clisp.org>
50633
50634         * lib/glthread/threadlib.c: Include <stdlib.h>.
50635
50636 2009-01-25  Bruno Haible  <bruno@clisp.org>
50637
50638         * lib/glthread/threadlib.c (dummy): New declaration.
50639
50640 2009-01-25  Bruno Haible  <bruno@clisp.org>
50641
50642         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
50643         multibyte characters also for the GB18030 encoding. Don't crash when
50644         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
50645
50646 2009-01-25  Bruno Haible  <bruno@clisp.org>
50647
50648         Avoid redefining 'struct random_data' on OSF/1 5.1.
50649         * lib/stdlib.in.h: Include <random.h> if it exists.
50650         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
50651         HAVE_RANDOM_H. Include <random.h> when testing whether
50652         'struct random_data' exists.
50653         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
50654
50655 2009-01-25  Bruno Haible  <bruno@clisp.org>
50656
50657         Don't install charset.alias on MacOS X >= 10.3.
50658         * lib/localcharset.c (DARWIN7): New macro.
50659         (get_charset_aliases): Hardcode the result for Darwin7.
50660         * modules/localcharset (install-exec-local): Don't install
50661         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
50662
50663 2009-01-25  Bruno Haible  <bruno@clisp.org>
50664
50665         Don't install charset.alias on mingw and Cygwin.
50666         * modules/localcharset (install-exec-local): Don't install
50667         charset.alias on mingw and Cygwin, if the file does not yet exist.
50668         The result for these platforms is hardcoded in localcharset.c.
50669
50670 2009-01-25  Bruno Haible  <bruno@clisp.org>
50671
50672         Make it possible again to use AC_GNU_SOURCE together with gnulib.
50673         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
50674         before requiring AC_USE_SYSTEM_EXTENSIONS.
50675
50676 2009-01-25  Jim Meyering  <meyering@redhat.com>
50677
50678         c-strtod: avoid warnings
50679         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
50680         "assignment discards qualifiers from pointer target type" warnings.
50681
50682 2009-01-24  Bruno Haible  <bruno@clisp.org>
50683
50684         Add support for non-UTF-8 locales on MacOS X.
50685         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
50686         canonical encodings. For Darwin 7 and newer, don't map traditional
50687         encodings to UTF-8.
50688         Reported by Vincent Lefevre <vincent@vinc17.org>
50689         at <http://savannah.gnu.org/bugs/?25235>.
50690
50691 2009-01-24  Bruno Haible  <bruno@clisp.org>
50692
50693         * doc/gnulib.texi (Obsolete modules): New section.
50694         Reported by Mike Frysinger <vapier@gentoo.org>.
50695
50696 2009-01-24  Bruno Haible  <bruno@clisp.org>
50697
50698         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
50699         (%.dvi): New rule.
50700
50701 2009-01-24  Bruno Haible  <bruno@clisp.org>
50702
50703         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
50704         Reported by Eric Blake.
50705
50706 2009-01-24  Bruno Haible  <bruno@clisp.org>
50707
50708         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
50709         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
50710         Reported by Gary V. Vaughan <gary@gnu.org>.
50711
50712 2009-01-24  Bruno Haible  <bruno@clisp.org>
50713
50714         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
50715
50716 2009-01-23  Bruno Haible  <bruno@clisp.org>
50717
50718         Make c-strtod, c-strtold usable in libraries.
50719         * lib/c-strtod.c: Include string.h instead of xalloc.h.
50720         (C_STRTOD): Call strdup instead of xstrdup.
50721         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
50722         * modules/c-strtold (Depends-on): Likewise.
50723         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
50724         * NEWS: Mention the change.
50725         Reported by Michael Gold <mgold@ncf.ca>.
50726
50727 2009-01-23  Jim Meyering  <meyering@redhat.com>
50728
50729         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
50730         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
50731         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
50732
50733 2009-01-23  Simon Josefsson  <simon@josefsson.org>
50734
50735         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
50736         GNU CoreUtils.
50737         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
50738         * modules/version-etc (Description): Update.
50739
50740 2009-01-22  Bruno Haible  <bruno@clisp.org>
50741
50742         Cache the C locale object.
50743         * lib/c-strtod.c (c_locale_cache): New variable.
50744         (c_locale): New function.
50745         (C_STRTOD): Use it, and don't call freelocale.
50746         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
50747         Suggested by Paolo Bonzini.
50748
50749 2009-01-21  Bruno Haible  <bruno@clisp.org>
50750
50751         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
50752         conditions other than overflow.
50753
50754 2009-01-21  Bruno Haible  <bruno@clisp.org>
50755
50756         * lib/c-strtod.c: Include errno.h.
50757         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
50758         value from STRTOD_L and STRTOD.
50759
50760 2009-01-21  Bruno Haible  <bruno@clisp.org>
50761         and Jim Meyering  <meyering@redhat.com>
50762
50763         nanosleep: skip configure test (fail it) for apple universal builds
50764         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
50765         universal builds, assume that nanosleep does not work.
50766         * modules/nanosleep (Depends-on): Add multiarch.
50767
50768         mktime: skip configure test (fail it) for apple universal builds
50769         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
50770         universal builds, assume that mktime does not work.
50771         * modules/mktime (Depends-on): Add multiarch.
50772
50773 2009-01-21  Eric Blake  <ebb9@byu.net>
50774
50775         multiarch: avoid expand-before-require warning
50776         * modules/multiarch (configure.ac): Require, rather than expand,
50777         gl_MULTIARCH.
50778         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
50779         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
50780         enforce that all clients require it.  Partial reversion of
50781         2008-12-29 patch.
50782
50783         error: avoid expand-before-require warning
50784         * modules/errno (configure.ac): Require, rather than expand,
50785         gl_HEADER_ERRNO_H.
50786         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
50787         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
50788         enforce that all clients require it.
50789
50790         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
50791         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
50792         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
50793         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
50794
50795 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
50796
50797         Revert:
50798         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50799
50800         regex: do not depend on obsolete modules.
50801         * modules/regex: Remove memcmp and memmove.
50802
50803 2009-01-20  Bruno Haible  <bruno@clisp.org>
50804
50805         Make the 'link' module link on Windows NT 4.
50806         * lib/link.c (_WIN32_WINNT): Don't define.
50807         (CreateHardLinkFuncType): New type.
50808         (CreateHardLinkFunc, initialized): New variables.
50809         (initialize): New function.
50810         (link): Invoke CreateHardLink indirectly through the function pointer.
50811
50812 2009-01-20  Bruno Haible  <bruno@clisp.org>
50813
50814         Fix compilation failure on mingw.
50815         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
50816
50817 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
50818
50819         * doc/c-strtod.texi: Mention a couple of restrictions.
50820
50821 2009-01-20  Jim Meyering  <meyering@redhat.com>
50822
50823         gettimeofday: move more declarations out of functions
50824         * lib/gettimeofday.c: Move extern declarations of tzset and
50825         gmtime out of containing functions.  Prompted by Bruno Haible.
50826
50827 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50828
50829         regex: do not depend on obsolete modules.
50830         * modules/regex: Remove memcmp and memmove.
50831
50832 2009-01-19  Bruno Haible  <bruno@clisp.org>
50833
50834         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50835         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
50836         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50837         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
50838         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
50839
50840 2009-01-19  Bruno Haible  <bruno@clisp.org>
50841
50842         * tests/test-link.c: Include <errno.h>.
50843         (main): Exit with code 77 when a hard link cannot be created due to
50844         the file system.
50845         * tests/test-link.sh: Skip test when a hard link cannot be created due
50846         to the file system.
50847         Suggested by Eric Blake.
50848
50849 2009-01-19  Martin Lambers  <marlam@marlam.de>
50850
50851         * modules/link-tests: New file.
50852         * tests/test-link.sh: New file.
50853         * tests/test-link.c: New file.
50854
50855 2009-01-19  Eric Blake  <ebb9@byu.net>
50856
50857         doc: mention another function added in cygwin 1.7.0
50858         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
50859         Another new function in cygwin 1.7.
50860
50861 2009-01-19  Bruno Haible  <bruno@clisp.org>
50862
50863         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50864         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
50865         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
50866         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50867         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
50868         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
50869         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
50870         * m4/md4.m4 (gl_MD4): Likewise.
50871         * m4/md5.m4 (gl_MD5): Likewise.
50872         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
50873         * m4/sha1.m4 (gl_SHA1): Likewise.
50874         * m4/sha256.m4 (gl_SHA256): Likewise.
50875         * m4/sha512.m4 (gl_SHA512): Likewise.
50876
50877 2009-01-19  Bruno Haible  <bruno@clisp.org>
50878
50879         * modules/uniname/uniname-tests (Depends-on): Add progname.
50880         * tests/uniname/test-uninames.c: Include progname.h.
50881         (main): Call set_program_name.
50882
50883         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
50884         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
50885         (main): Call set_program_name.
50886
50887         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
50888         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
50889         (main): Call set_program_name.
50890
50891         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
50892         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
50893         (main): Call set_program_name.
50894
50895         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
50896         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
50897         (main): Call set_program_name.
50898
50899         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
50900         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
50901         (main): Call set_program_name.
50902
50903         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
50904         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
50905         (main): Call set_program_name.
50906
50907         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
50908         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
50909         (main): Call set_program_name.
50910
50911         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
50912         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
50913         (main): Call set_program_name.
50914
50915 2009-01-19  Eric Blake  <ebb9@byu.net>
50916
50917         test-unistd: test previous patch
50918         * tests/test-unistd.c: Test *_FILENO macros.
50919
50920         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
50921         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50922         Guarantee a definition.
50923         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
50924         * modules/unistd-safer (Depends-on): Add dependency on unistd.
50925         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
50926         * lib/dup-safer.c (STDERR_FILENO): Likewise.
50927         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50928         Likewise.
50929         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
50930         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
50931         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50932         Likewise.
50933         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
50934         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
50935         (STDERR_FILENO): Likewise.
50936         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
50937         (STDERR_FILENO): Likewise.
50938         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
50939         (STDERR_FILENO): Likewise.
50940         Reported by Elbert Pol.
50941
50942 2009-01-19  Eric Blake  <ebb9@byu.net>
50943
50944         doc: mention more functions added in cygwin 1.7.0
50945         * doc/posix-functions/abort.texi (abort): Update wording related
50946         to cygwin.
50947         * doc/posix-functions/daylight.texi (daylight): Likewise.
50948         * doc/posix-functions/optarg.texi (optarg): Likewise.
50949         * doc/posix-functions/optarg.texi (opterr): Likewise.
50950         * doc/posix-functions/optarg.texi (optind): Likewise.
50951         * doc/posix-functions/optarg.texi (optopt): Likewise.
50952         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
50953         worked in 1.5.x, and was withdrawn in 1.7.
50954         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50955         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
50956         cygwin versions.
50957         * doc/posix-functions/perror.texi (perror): Likewise.
50958         * doc/posix-functions/printf.texi (printf): Likewise.
50959         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
50960         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
50961         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50962         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50963         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50964         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
50965         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50966         Likewise.
50967         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50968         Likewise.
50969         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
50970         this function.
50971         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
50972         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
50973         Likewise.
50974         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
50975         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
50976         * doc/posix-functions/confstr.texi (confstr): Likewise.
50977         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
50978         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
50979         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
50980         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
50981         * doc/posix-functions/fputws.texi (fputws): Likewise.
50982         * doc/posix-functions/fwide.texi (fwide): Likewise.
50983         * doc/posix-functions/getwc.texi (getwc): Likewise.
50984         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
50985         * doc/posix-functions/putwc.texi (putwc): Likewise.
50986         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
50987         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
50988         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
50989         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50990         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
50991         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
50992         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
50993         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
50994         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
50995         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
50996         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
50997
50998 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50999
51000         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
51001         * lib/ioctl.c: Include <sys/ioctl.h>.
51002
51003 2009-01-19  Simon Josefsson  <simon@josefsson.org>
51004
51005         * modules/getdate-tests (Depends-on): Add progname.
51006         * tests/test-getdate.c: Use progname module, to avoid link errors
51007         on non-glibc systems.
51008
51009 2009-01-18  Simon Josefsson  <simon@josefsson.org>
51010
51011         * modules/filenamecat-tests (Depends-on): Add progname.
51012         * modules/fstrcmp-tests (Depends-on): Likewise.
51013
51014         * tests/test-filenamecat.c: Use progname module, to avoid link
51015         errors on non-glibc systems.
51016         * tests/test-fstrcmp.c: Likewise.
51017
51018 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51019
51020         gettimeofday: avoid warning: nested extern declaration of 'localtime'
51021         * lib/gettimeofday.c: Move extern declaration out of function.
51022
51023 2009-01-18  Bruno Haible  <bruno@clisp.org>
51024
51025         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
51026         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
51027         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
51028
51029 2009-01-18  Bruno Haible  <bruno@clisp.org>
51030
51031         * lib/strftime.c (MEMPCPY): Remove unused macro.
51032         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
51033
51034 2009-01-18  Martin Lambers  <marlam@marlam.de>
51035
51036         New module 'link'.
51037         * lib/unistd.in.h (link): New declaration.
51038         * lib/link.c: New file.
51039         * m4/link.m4: New file.
51040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
51041         HAVE_LINK.
51042         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
51043         * modules/link: New file.
51044         * doc/posix-functions/link.texi: Mention the new module.
51045
51046 2009-01-18  Bruno Haible  <bruno@clisp.org>
51047
51048         * tests/test-avltree_list.c (main): Call set_program_name.
51049         * tests/test-avltree_oset.c (main): Likewise.
51050         * tests/test-obstack-printf.c: Include progname.h.
51051         (main): Call set_program_name.
51052         * tests/test-quotearg.c: Include progname.h.
51053         (main): Call set_program_name.
51054         * tests/test-xmemdup0.c: Include progname.h.
51055         (main): Call set_program_name.
51056
51057 2009-01-18  Bruno Haible  <bruno@clisp.org>
51058
51059         New module 'alphasort'.
51060         * lib/dirent.in.h (alphasort): New declaration.
51061         * lib/alphasort.c: New file, from glibc with modifications.
51062         * m4/alphasort.m4: New file.
51063         * modules/alphasort: New file.
51064         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
51065         HAVE_ALPHASORT.
51066         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
51067         HAVE_ALPHASORT.
51068         * doc/posix-functions/alphasort.texi: Mention the new module and the
51069         portability problems.
51070
51071 2009-01-18  Bruno Haible  <bruno@clisp.org>
51072
51073         New module 'scandir'.
51074         * lib/dirent.in.h (scandir): New declaration.
51075         * lib/scandir.c: New file, from glibc with modifications.
51076         * m4/scandir.m4: New file.
51077         * modules/scandir: New file.
51078         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
51079         HAVE_SCANDIR.
51080         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
51081         HAVE_SCANDIR.
51082         * doc/posix-functions/scandir.texi: Mention the new module and the
51083         portability problems.
51084
51085 2009-01-17  Bruno Haible  <bruno@clisp.org>
51086
51087         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
51088         Update documentation.
51089         (func_remove_suffix): Escape all dots in the suffix. Update
51090         documentation.
51091         (func_filter_filelist): Update documentation.
51092         Reported by Ralf Wildenhues.
51093
51094 2009-01-17  Bruno Haible  <bruno@clisp.org>
51095
51096         * modules/dprintf-posix-tests: New file.
51097         * tests/test-dprintf-posix.sh: New file.
51098         * tests/test-dprintf-posix.c: New file.
51099
51100         New modules 'dprintf', 'dprintf-posix'.
51101         * lib/stdio.in.h (dprintf): New declaration.
51102         * lib/dprintf.c: New file.
51103         * m4/dprintf.m4: New file.
51104         * m4/dprintf-posix.m4: New file.
51105         * modules/dprintf: New file.
51106         * modules/dprintf-posix: New file.
51107         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
51108         HAVE_DPRINTF, REPLACE_DPRINTF.
51109         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
51110         HAVE_DPRINTF, REPLACE_DPRINTF.
51111         * doc/posix-functions/dprintf.texi: Mention the new modules.
51112
51113 2009-01-17  Bruno Haible  <bruno@clisp.org>
51114
51115         * modules/vdprintf-posix-tests: New file.
51116         * tests/test-vdprintf-posix.sh: New file.
51117         * tests/test-vdprintf-posix.c: New file.
51118
51119         New modules 'vdprintf', 'vdprintf-posix'.
51120         * lib/stdio.in.h (vdprintf): New declaration.
51121         * lib/vdprintf.c: New file.
51122         * m4/vdprintf.m4: New file.
51123         * m4/vdprintf-posix.m4: New file.
51124         * modules/vdprintf: New file.
51125         * modules/vdprintf-posix: New file.
51126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
51127         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51128         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
51129         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51130         * doc/posix-functions/vdprintf.texi: Mention the new modules.
51131
51132 2009-01-17  Bruno Haible  <bruno@clisp.org>
51133
51134         Fix replacement of fopen on mingw.
51135         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
51136         mingw.
51137
51138 2009-01-17  Bruno Haible  <bruno@clisp.org>
51139
51140         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
51141         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
51142
51143 2009-01-17  Bruno Haible  <bruno@clisp.org>
51144
51145         Avoid test-fflush2.sh failure on mingw.
51146         * tests/test-fflush2.c: Include binary-io.h.
51147         (main): Put standard input into binary mode.
51148         * modules/fflush-tests (Depends-on): Add binary-io.
51149
51150 2009-01-17  Bruno Haible  <bruno@clisp.org>
51151
51152         * lib/wchar.in.h: In another particular situation, include only the
51153         system's <wchar.h> file.
51154         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
51155         Reported by Albert Chin-A-Young <china@thewrittenword.com>
51156         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
51157
51158 2009-01-17  Bruno Haible  <bruno@clisp.org>
51159
51160         Support for stripping executables in --enable-relocatable.
51161         * build-aux/install-reloc: Expect one more argument, or an environment
51162         variable RELOC_STRIP_PROG. If set, strip the destination program and
51163         its wrapper.
51164         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
51165         RELOC_STRIP_PROG.
51166         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
51167         to set RELOCATABLE_STRIP.
51168         * NEWS: Mention the new Makefile requirement.
51169
51170 2009-01-17  Bruno Haible  <bruno@clisp.org>
51171
51172         * build-aux/install-reloc: Remove debugging information left over by
51173         C compiler on MacOS X.
51174
51175 2009-01-17  Bruno Haible  <bruno@clisp.org>
51176
51177         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
51178         * lib/progreloc.c (find_executable): Fix type of pointer passed to
51179         _NSGetExecutablePath.
51180
51181 2009-01-16  Jim Meyering  <meyering@redhat.com>
51182
51183         strerror: avoid warnings about discarding "const"
51184         * lib/strerror.c (rpl_strerror): Instead of returning a const
51185         string from each and every "case", use a variable, and add a single
51186         cast after the switch.
51187
51188 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
51189
51190         * lib/arpa_inet.in.h: Add extern "C" block for C++.
51191
51192 2009-01-16  Bruno Haible  <bruno@clisp.org>
51193
51194         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
51195         array initializer syntax that also works in C++ mode.
51196         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51197
51198 2009-01-16  Jim Meyering  <meyering@redhat.com>
51199
51200         poll: suppress a warning
51201         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
51202         to ignore "...unsigned expression < 0 is always false" warnings.
51203
51204 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
51205
51206         poll: remove declarations of unused variables
51207         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
51208         sockbuf and optlen.
51209
51210 2009-01-15  Bruno Haible  <bruno@clisp.org>
51211
51212         Make fflush-after-ungetc POSIX compliant on BSD systems.
51213         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
51214         (clear_ungetc_buffer): Implement also for other systems.
51215         (rpl_fflush): On glibc systems, invoke
51216         clear_ungetc_buffer_preserving_position. Otherwise, invoke
51217         clear_ungetc_buffer after fetching the stream's position, not before.
51218
51219 2009-01-15  Bruno Haible  <bruno@clisp.org>
51220
51221         Make fflush-after-ungetc POSIX compliant on glibc systems.
51222         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
51223         after ungetc.
51224         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
51225         (rpl_fflush): On glibc systems, simply call the system's fflush
51226         function after clearing the ungetc buffer.
51227         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
51228         Instead, lseek only to the end of file, then use the system's fseeko
51229         for the rest. On glibc systems, reset the EOF indicator bit.
51230
51231 2009-01-15  Jim Meyering  <meyering@redhat.com>
51232
51233         openmp.m4: revert quote-adding change, for portability to older autoconf
51234         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
51235         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
51236         Simon Josefsson noticed the problem when using autoconf-2.61.
51237
51238 2009-01-15  Bruno Haible  <bruno@clisp.org>
51239
51240         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
51241         * tests/test-fflush2.c (ASSERT): Always fail.
51242         (main): Add two tests for fflush() after ungetc(), taking into account
51243         the Austin Group's clarification.
51244         Suggested by Eric Blake.
51245
51246 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
51247
51248         mktime.m4: remove K&R-style function prototypes
51249         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
51250         for the Sun C++ compiler.
51251
51252 2009-01-14  Bruno Haible  <bruno@clisp.org>
51253
51254         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
51255         while including <wchar.h>.
51256         * lib/wchar.in.h: In two particular situations on HP-UX, include only
51257         the system's <wchar.h> file.
51258         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51259
51260 2009-01-14  Bruno Haible  <bruno@clisp.org>
51261
51262         * m4/csharp.m4: Don't mention gettext on the serial number line.
51263         * m4/csharpexec.m4: Likewise.
51264         * m4/eaccess.m4: Likewise.
51265         * m4/javaexec.m4: Likewise.
51266         * m4/sig_atomic_t.m4: Likewise.
51267         * m4/tmpdir.m4: Likewise.
51268         * m4/intldir.m4: Bump gettext version.
51269         * m4/lib-ld.m4: Likewise.
51270
51271 2009-01-14  Bruno Haible  <bruno@clisp.org>
51272
51273         * lib/progname.c (set_program_name): Add more comments.
51274         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
51275
51276 2009-01-14  Simon Josefsson  <simon@josefsson.org>
51277
51278         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
51279         were sys/stat.h does not define it.
51280
51281 2009-01-14  Jim Meyering  <meyering@redhat.com>
51282
51283         many *.m4 files: improve m4 quoting
51284         99% of this change was performed by running the following commands:
51285         git ls-files | grep '\.m4$' | xargs perl -pi \
51286           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
51287           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51288           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51289           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
51290         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
51291         The remainder were to add Copyright dates, increment serial numbers,
51292         undo some changes in comments, exclude m4/intl.m4, and add quotes
51293         around the "1" in ",1" where the unusual spacing prohibited the
51294         above regexps from doing the job.  For more details, see
51295         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
51296         * m4/acl.m4: Modified.
51297         * m4/afs.m4: Likewise.
51298         * m4/alloca.m4: Likewise.
51299         * m4/argp.m4: Likewise.
51300         * m4/argz.m4: Likewise.
51301         * m4/atexit.m4: Likewise.
51302         * m4/bison-i18n.m4: Likewise.
51303         * m4/bison.m4: Likewise.
51304         * m4/byteswap.m4: Likewise.
51305         * m4/c-stack.m4: Likewise.
51306         * m4/c-strtod.m4: Likewise.
51307         * m4/calloc.m4: Likewise.
51308         * m4/canonicalize-lgpl.m4: Likewise.
51309         * m4/chown.m4: Likewise.
51310         * m4/clock_time.m4: Likewise.
51311         * m4/codeset.m4: Likewise.
51312         * m4/copy-file.m4: Likewise.
51313         * m4/csharp.m4: Likewise.
51314         * m4/csharpcomp.m4: Likewise.
51315         * m4/csharpexec.m4: Likewise.
51316         * m4/d-ino.m4: Likewise.
51317         * m4/d-type.m4: Likewise.
51318         * m4/dirfd.m4: Likewise.
51319         * m4/double-slash-root.m4: Likewise.
51320         * m4/eaccess.m4: Likewise.
51321         * m4/eealloc.m4: Likewise.
51322         * m4/environ.m4: Likewise.
51323         * m4/errno_h.m4: Likewise.
51324         * m4/euidaccess.m4: Likewise.
51325         * m4/execute.m4: Likewise.
51326         * m4/fatal-signal.m4: Likewise.
51327         * m4/fchdir.m4: Likewise.
51328         * m4/fcntl_h.m4: Likewise.
51329         * m4/fileblocks.m4: Likewise.
51330         * m4/filenamecat.m4: Likewise.
51331         * m4/findprog.m4: Likewise.
51332         * m4/flexmember.m4: Likewise.
51333         * m4/fnmatch.m4: Likewise.
51334         * m4/fopen.m4: Likewise.
51335         * m4/fpending.m4: Likewise.
51336         * m4/fprintf-posix.m4: Likewise.
51337         * m4/free.m4: Likewise.
51338         * m4/frexp.m4: Likewise.
51339         * m4/frexpl.m4: Likewise.
51340         * m4/fsusage.m4: Likewise.
51341         * m4/ftruncate.m4: Likewise.
51342         * m4/gc-camellia.m4: Likewise.
51343         * m4/gc-random.m4: Likewise.
51344         * m4/gc.m4: Likewise.
51345         * m4/getaddrinfo.m4: Likewise.
51346         * m4/getcwd-abort-bug.m4: Likewise.
51347         * m4/getcwd-path-max.m4: Likewise.
51348         * m4/getdate.m4: Likewise.
51349         * m4/getdomainname.m4: Likewise.
51350         * m4/getgroups.m4: Likewise.
51351         * m4/gethostname.m4: Likewise.
51352         * m4/gethrxtime.m4: Likewise.
51353         * m4/getline.m4: Likewise.
51354         * m4/getloadavg.m4: Likewise.
51355         * m4/getndelim2.m4: Likewise.
51356         * m4/getpass.m4: Likewise.
51357         * m4/gettext.m4: Likewise.
51358         * m4/gettime.m4: Likewise.
51359         * m4/gettimeofday.m4: Likewise.
51360         * m4/gnulib-common.m4: Likewise.
51361         * m4/group-member.m4: Likewise.
51362         * m4/host-os.m4: Likewise.
51363         * m4/iconv.m4: Likewise.
51364         * m4/iconv_open.m4: Likewise.
51365         * m4/inet_ntop.m4: Likewise.
51366         * m4/inet_pton.m4: Likewise.
51367         * m4/inline.m4: Likewise.
51368         * m4/intldir.m4: Likewise.
51369         * m4/intlmacosx.m4: Likewise.
51370         * m4/intmax.m4: Likewise.
51371         * m4/intmax_t.m4: Likewise.
51372         * m4/inttypes.m4: Likewise.
51373         * m4/inttypes_h.m4: Likewise.
51374         * m4/inttypes-pri.m4: Likewise.
51375         * m4/isapipe.m4: Likewise.
51376         * m4/isnand.m4: Likewise.
51377         * m4/isnanf.m4: Likewise.
51378         * m4/isnanl.m4: Likewise.
51379         * m4/javacomp.m4: Likewise.
51380         * m4/javaexec.m4: Likewise.
51381         * m4/jm-winsz1.m4: Likewise.
51382         * m4/jm-winsz2.m4: Likewise.
51383         * m4/lchown.m4: Likewise.
51384         * m4/lcmessage.m4: Likewise.
51385         * m4/ldexpl.m4: Likewise.
51386         * m4/lib-ld.m4: Likewise.
51387         * m4/lib-link.m4: Likewise.
51388         * m4/libsigsegv.m4: Likewise.
51389         * m4/link-follow.m4: Likewise.
51390         * m4/localcharset.m4: Likewise.
51391         * m4/locale-fr.m4: Likewise.
51392         * m4/locale-ja.m4: Likewise.
51393         * m4/locale-tr.m4: Likewise.
51394         * m4/locale-zh.m4: Likewise.
51395         * m4/lock.m4: Likewise.
51396         * m4/longlong.m4: Likewise.
51397         * m4/ls-mntd-fs.m4: Likewise.
51398         * m4/lstat.m4: Likewise.
51399         * m4/malloc.m4: Likewise.
51400         * m4/mathl.m4: Likewise.
51401         * m4/mbrtowc.m4: Likewise.
51402         * m4/mbstate_t.m4: Likewise.
51403         * m4/mbswidth.m4: Likewise.
51404         * m4/memchr.m4: Likewise.
51405         * m4/memcmp.m4: Likewise.
51406         * m4/memcpy.m4: Likewise.
51407         * m4/memmem.m4: Likewise.
51408         * m4/memmove.m4: Likewise.
51409         * m4/mempcpy.m4: Likewise.
51410         * m4/memrchr.m4: Likewise.
51411         * m4/memset.m4: Likewise.
51412         * m4/minmax.m4: Likewise.
51413         * m4/mkdir-slash.m4: Likewise.
51414         * m4/mkdtemp.m4: Likewise.
51415         * m4/mktime.m4: Likewise.
51416         * m4/mmap-anon.m4: Likewise.
51417         * m4/mountlist.m4: Likewise.
51418         * m4/nanosleep.m4: Likewise.
51419         * m4/nls.m4: Likewise.
51420         * m4/nocrash.m4: Likewise.
51421         * m4/open.m4: Likewise.
51422         * m4/openat.m4: Likewise.
51423         * m4/openmp.m4: Likewise.
51424         * m4/pathmax.m4: Likewise.
51425         * m4/perl.m4: Likewise.
51426         * m4/physmem.m4: Likewise.
51427         * m4/pipe.m4: Likewise.
51428         * m4/po.m4: Likewise.
51429         * m4/poll.m4: Likewise.
51430         * m4/posixtm.m4: Likewise.
51431         * m4/posixver.m4: Likewise.
51432         * m4/printf-frexp.m4: Likewise.
51433         * m4/printf-frexpl.m4: Likewise.
51434         * m4/printf-posix.m4: Likewise.
51435         * m4/printf-posix-rpl.m4: Likewise.
51436         * m4/printf.m4: Likewise.
51437         * m4/progtest.m4: Likewise.
51438         * m4/putenv.m4: Likewise.
51439         * m4/readline.m4: Likewise.
51440         * m4/readlink.m4: Likewise.
51441         * m4/readutmp.m4: Likewise.
51442         * m4/realloc.m4: Likewise.
51443         * m4/regex.m4: Likewise.
51444         * m4/relocatable.m4: Likewise.
51445         * m4/relocatable-lib.m4: Likewise.
51446         * m4/rename-dest-slash.m4: Likewise.
51447         * m4/rename.m4: Likewise.
51448         * m4/rmdir-errno.m4: Likewise.
51449         * m4/rmdir.m4: Likewise.
51450         * m4/roundf.m4: Likewise.
51451         * m4/roundl.m4: Likewise.
51452         * m4/rpmatch.m4: Likewise.
51453         * m4/save-cwd.m4: Likewise.
51454         * m4/selinux-selinux-h.m4: Likewise.
51455         * m4/setenv.m4: Likewise.
51456         * m4/settime.m4: Likewise.
51457         * m4/sig2str.m4: Likewise.
51458         * m4/sig_atomic_t.m4: Likewise.
51459         * m4/signalblocking.m4: Likewise.
51460         * m4/signbit.m4: Likewise.
51461         * m4/sigpipe.m4: Likewise.
51462         * m4/sockets.m4: Likewise.
51463         * m4/sockpfaf.m4: Likewise.
51464         * m4/st_dm_mode.m4: Likewise.
51465         * m4/stat-time.m4: Likewise.
51466         * m4/stdbool.m4: Likewise.
51467         * m4/stdint.m4: Likewise.
51468         * m4/stdint_h.m4: Likewise.
51469         * m4/stpcpy.m4: Likewise.
51470         * m4/stpncpy.m4: Likewise.
51471         * m4/strcase.m4: Likewise.
51472         * m4/strchrnul.m4: Likewise.
51473         * m4/strcspn.m4: Likewise.
51474         * m4/strdup.m4: Likewise.
51475         * m4/strftime.m4: Likewise.
51476         * m4/strndup.m4: Likewise.
51477         * m4/strnlen.m4: Likewise.
51478         * m4/strpbrk.m4: Likewise.
51479         * m4/strptime.m4: Likewise.
51480         * m4/strsep.m4: Likewise.
51481         * m4/strtod.m4: Likewise.
51482         * m4/strtoimax.m4: Likewise.
51483         * m4/strtok_r.m4: Likewise.
51484         * m4/strtol.m4: Likewise.
51485         * m4/strtoll.m4: Likewise.
51486         * m4/strtoul.m4: Likewise.
51487         * m4/strtoull.m4: Likewise.
51488         * m4/strtoumax.m4: Likewise.
51489         * m4/strverscmp.m4: Likewise.
51490         * m4/threadlib.m4: Likewise.
51491         * m4/timegm.m4: Likewise.
51492         * m4/tm_gmtoff.m4: Likewise.
51493         * m4/tmpdir.m4: Likewise.
51494         * m4/tmpfile.m4: Likewise.
51495         * m4/tzset.m4: Likewise.
51496         * m4/uintmax_t.m4: Likewise.
51497         * m4/unlinkdir.m4: Likewise.
51498         * m4/unlocked-io.m4: Likewise.
51499         * m4/uptime.m4: Likewise.
51500         * m4/userspec.m4: Likewise.
51501         * m4/utimbuf.m4: Likewise.
51502         * m4/utime.m4: Likewise.
51503         * m4/utimes-null.m4: Likewise.
51504         * m4/utimes.m4: Likewise.
51505         * m4/vararrays.m4: Likewise.
51506         * m4/vasnprintf.m4: Likewise.
51507         * m4/vfprintf-posix.m4: Likewise.
51508         * m4/vprintf-posix.m4: Likewise.
51509         * m4/wait-process.m4: Likewise.
51510         * m4/wchar_t.m4: Likewise.
51511         * m4/wint_t.m4: Likewise.
51512         * m4/write-any-file.m4: Likewise.
51513         * m4/yield.m4: Likewise.
51514
51515 2009-01-13  Bruno Haible  <bruno@clisp.org>
51516
51517         Avoid test-copy-file.sh failures when ACL support insufficient.
51518         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
51519         TESTS_ENVIRONMENT.
51520         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
51521         Reported by Jim Meyering.
51522
51523 2009-01-13  Bruno Haible  <bruno@clisp.org>
51524
51525         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
51526         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
51527         * modules/unistdio/u8-printf-parse (Files): Likewise.
51528         * modules/unistdio/u32-printf-parse (Files): Likewise.
51529         * modules/unistdio/ulc-printf-parse (Files): Likewise.
51530
51531 2009-01-13  Simon Josefsson  <simon@josefsson.org>
51532
51533         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
51534         and m4/inttypes_h.m4 too.
51535
51536 2009-01-12  Eric Blake  <ebb9@byu.net>
51537
51538         tests: IRIX 6.2 cc can't compile -0.0 into .data
51539         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
51540         rather than at compile-time.
51541         * tests/test-floorl.c (minus_zero): Likewise.
51542         * tests/test-frexpl.c (minus_zero): Likewise.
51543         * tests/test-isnan.c (minus_zerol): Likewise.
51544         * tests/test-isnanl.h (minus_zero): Likewise.
51545         * tests/test-ldexpl.c (minus_zero): Likewise.
51546         * tests/test-roundl.c (minus_zero): Likewise.
51547         * tests/test-signbit.c (minus_zerol): Likewise.
51548         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51549         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51550         * tests/test-truncl.c (minus_zero): Likewise.
51551         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51552         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51553         Reported by Tom G. Christensen and Nelson H. F. Beebe.
51554
51555 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51556
51557         regex: fix glibc bug 9697
51558         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
51559         handling.
51560
51561 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51562
51563         regex: fix glibc bug 697
51564         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
51565         being NULL also if there are no backreferences.
51566
51567 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51568
51569         regex: merge glibc changes
51570         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
51571         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
51572         re_string_skip_chars, re_string_reconstruct): Likewise.
51573         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
51574
51575 2009-01-07  Jim Meyering  <meyering@redhat.com>
51576
51577         poll: filter through cppi
51578         * lib/poll.c: Indent cpp directives to reflect nesting.
51579
51580 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
51581
51582         poll: don't return uninitialized
51583         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
51584
51585 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
51586
51587         avoid compile failure on AIX 6.1
51588         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
51589         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
51590
51591 2009-01-04  Jim Meyering  <meyering@redhat.com>
51592
51593         remove duplicate inclusion of <stdio.h>
51594         * tests/test-fprintf-posix.c: Likewise.
51595         * tests/test-printf-posix.c: Likewise.
51596         * tests/test-snprintf-posix.c: Likewise.
51597         * tests/test-sprintf-posix.c: Likewise.
51598         * tests/test-vasprintf-posix.c: Likewise.
51599         * tests/test-vfprintf-posix.c: Likewise.
51600         * tests/test-vprintf-posix.c: Likewise.
51601         * tests/test-vsnprintf-posix.c: Likewise.
51602         * tests/test-vsprintf-posix.c: Likewise.
51603
51604 2009-01-03  Jim Meyering  <meyering@redhat.com>
51605
51606         gnulib-tool: fix sed-based filtering
51607         * gnulib-tool (func_filter_filelist): Remove extra backslash
51608         in sed_fff_filter definition.
51609
51610 2009-01-02  Jim Meyering  <meyering@redhat.com>
51611
51612         strftime: avoid compilation failure on Solaris 2.6
51613         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
51614         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
51615         Don't #define mbrlen or mbsinit, since now they're guaranteed to
51616         be available.  Reported by Tom G. Christensen.  Details in
51617         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
51618
51619 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51620             Bruno Haible  <bruno@clisp.org>
51621
51622         Speed up gnulib-tool by doing more string processing through shell
51623         built-ins.
51624         * gnulib-tool (fast_func_append): New variable.
51625         (func_remove_prefix, func_remove_suffix): New functions.
51626         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
51627         (func_filter_filelist): New function.
51628         (func_get_dependencies): Use func_remove_suffix instead of sed.
51629         (func_get_automake_snippet): Use func_filter_filelist instead of a
51630         subshell and sed invocation.
51631
51632 2009-01-01  Bruno Haible  <bruno@clisp.org>
51633
51634         Fix a security bug.
51635         * gnulib-tool (func_import, import, update): Don't allow the characters
51636         '"', '$', '`', '\' in macro arguments that become part of commands that
51637         are evaluated.
51638
51639 2009-01-01  Bruno Haible  <bruno@clisp.org>
51640
51641         * gnulib-tool (func_reset_sigpipe): Add more comments.
51642
51643 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51644
51645         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
51646         func_emit_tests_Makefile_am, func_import): Abort loops early if we
51647         already know the answer.
51648
51649 2009-01-01  Jim Meyering  <meyering@redhat.com>
51650
51651         * lib/version-etc.c (version_etc_va): Update copyright year.
51652
51653 2008-12-30  Bruno Haible  <bruno@clisp.org>
51654
51655         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
51656         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
51657         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
51658
51659 2008-12-29  Eric Blake  <ebb9@byu.net>
51660
51661         multiarch: avoid autoconf AC_REQUIRE bug
51662         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
51663         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
51664         2.63 and older.
51665         Reported by Bruno Haible, and analyzed in
51666         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
51667
51668 2008-12-29  Bruno Haible  <bruno@clisp.org>
51669
51670         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
51671         files in subdirectories correctly.
51672         Reported by Ralf Wildenhues.
51673
51674 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51675
51676         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
51677         rather than 'join FILE -', for Solaris join.
51678
51679 2008-12-29  Bruno Haible  <bruno@clisp.org>
51680
51681         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
51682         quoting.
51683         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
51684         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
51685         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
51686         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
51687         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
51688         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
51689         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
51690         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
51691         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51692         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
51693         * m4/nls.m4 (AM_NLS): Likewise.
51694         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
51695         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
51696         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
51697         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
51698         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
51699         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
51700         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
51701         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
51702         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
51703         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
51704         * m4/xsize.m4 (gl_XSIZE): Likewise.
51705         Suggested by Jim Meyering.
51706
51707 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51708
51709         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
51710         * lib/parse-duration.c: use a switch instead of cascading if's.
51711
51712 2008-12-29  Eric Blake  <ebb9@byu.net>
51713
51714         wchar.h: supply WEOF on Irix 5.3
51715         * lib/wchar.in.h (wint_t): Also supply WEOF.
51716         * lib/wctype.in.h (wint_t): Likewise.
51717         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
51718         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
51719         Reported by Tom G. Christensen.
51720
51721 2008-12-26  Bruno Haible  <bruno@clisp.org>
51722
51723         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
51724         i486, i586, i686.
51725
51726 2008-12-26  Bruno Haible  <bruno@clisp.org>
51727
51728         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
51729
51730 2008-12-26  Bruno Haible  <bruno@clisp.org>
51731
51732         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
51733         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
51734         not __STDC_CONSTANT_MACROS.
51735         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51736
51737 2008-12-25  Bruno Haible  <bruno@clisp.org>
51738
51739         Add support for universal builds to vasnprintf.
51740         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
51741         universal builds, guess no.
51742         * modules/vasnprintf-posix (Depends-on): Add multiarch.
51743         * modules/vasprintf-posix (Depends-on): Likewise.
51744         * modules/fprintf-posix (Depends-on): Likewise.
51745         * modules/vfprintf-posix (Depends-on): Likewise.
51746         * modules/snprintf-posix (Depends-on): Likewise.
51747         * modules/vsnprintf-posix (Depends-on): Likewise.
51748         * modules/sprintf-posix (Depends-on): Likewise.
51749         * modules/vsprintf-posix (Depends-on): Likewise.
51750         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51751         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51752         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51753         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51754         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51755         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51756         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51757
51758         Add support for universal builds to <inttypes.h>.
51759         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
51760         _SCNu64_PREFIX): In Apple
51761         universal builds, define directly, using _LP64.
51762         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
51763         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
51764         * modules/inttypes (Depends-on): Add multiarch.
51765         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51766
51767         Add support for universal builds to <stdint.h>.
51768         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
51769         universal builds, define directly, using _LP64.
51770         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
51771         Apple universal builds, don't test for the size and suffix of ptrdiff_t
51772         and size_t.
51773         * modules/stdint (Depends-on): Add multiarch.
51774         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51775
51776         New module 'multiarch'.
51777         * modules/multiarch: New file.
51778         * m4/multiarch.m4: New file.
51779
51780 2008-12-25  Bruno Haible  <bruno@clisp.org>
51781
51782         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
51783
51784 2008-12-25  Bruno Haible  <bruno@clisp.org>
51785
51786         * modules/btowc (License): Relicense under LGPLv2+.
51787         * modules/mbsinit (License): Likewise.
51788         * modules/mbrtowc (License): Likewise.
51789         * modules/wcrtomb (License): Likewise.
51790         * modules/streq (License): Likewise.
51791         Reported by David Lutterkort <lutter@redhat.com>.
51792
51793 2008-12-23  Bruno Haible  <bruno@clisp.org>
51794
51795         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
51796
51797 2008-12-23  Bruno Haible  <bruno@clisp.org>
51798
51799         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
51800         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
51801         GETADDRINFO_LIB, not in LIBS.
51802         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
51803         * modules/canon-host (Link): Likewise.
51804         * NEWS: Mention the change.
51805         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
51806         GETADDRINFO_LIB.
51807
51808 2008-12-22  Bruno Haible  <bruno@clisp.org>
51809
51810         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
51811         * doc/posix-functions/iswalpha_l.texi: Likewise.
51812         * doc/posix-functions/iswblank_l.texi: Likewise.
51813         * doc/posix-functions/iswcntrl_l.texi: Likewise.
51814         * doc/posix-functions/iswctype_l.texi: Likewise.
51815         * doc/posix-functions/iswdigit_l.texi: Likewise.
51816         * doc/posix-functions/iswgraph_l.texi: Likewise.
51817         * doc/posix-functions/iswlower_l.texi: Likewise.
51818         * doc/posix-functions/iswprint_l.texi: Likewise.
51819         * doc/posix-functions/iswpunct_l.texi: Likewise.
51820         * doc/posix-functions/iswspace_l.texi: Likewise.
51821         * doc/posix-functions/iswupper_l.texi: Likewise.
51822         * doc/posix-functions/iswxdigit_l.texi: Likewise.
51823         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
51824         * doc/posix-functions/open_wmemstream.texi: Likewise.
51825         * doc/posix-functions/swscanf.texi: Likewise.
51826         * doc/posix-functions/towctrans_l.texi: Likewise.
51827         * doc/posix-functions/towlower.texi: Likewise.
51828         * doc/posix-functions/towlower_l.texi: Likewise.
51829         * doc/posix-functions/towupper.texi: Likewise.
51830         * doc/posix-functions/towupper_l.texi: Likewise.
51831         * doc/posix-functions/vfwprintf.texi: Likewise.
51832         * doc/posix-functions/vfwscanf.texi: Likewise.
51833         * doc/posix-functions/vswscanf.texi: Likewise.
51834         * doc/posix-functions/vwprintf.texi: Likewise.
51835         * doc/posix-functions/vwscanf.texi: Likewise.
51836         * doc/posix-functions/wcpcpy.texi: Likewise.
51837         * doc/posix-functions/wcpncpy.texi: Likewise.
51838         * doc/posix-functions/wcscasecmp.texi: Likewise.
51839         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
51840         * doc/posix-functions/wcscoll_l.texi: Likewise.
51841         * doc/posix-functions/wcsdup.texi: Likewise.
51842         * doc/posix-functions/wcsncasecmp.texi: Likewise.
51843         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
51844         * doc/posix-functions/wcsnlen.texi: Likewise.
51845         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51846         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
51847         * doc/posix-functions/wctrans_l.texi: Likewise.
51848         * doc/posix-functions/wctype_l.texi: Likewise.
51849         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
51850         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
51851         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
51852         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
51853         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
51854         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
51855         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
51856         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
51857         * doc/glibc-functions/wcschrnul.texi: Likewise.
51858         * doc/glibc-functions/wcsftime_l.texi: Likewise.
51859         * doc/glibc-functions/wcstod_l.texi: Likewise.
51860         * doc/glibc-functions/wcstof_l.texi: Likewise.
51861         * doc/glibc-functions/wcstol_l.texi: Likewise.
51862         * doc/glibc-functions/wcstold_l.texi: Likewise.
51863         * doc/glibc-functions/wcstoll_l.texi: Likewise.
51864         * doc/glibc-functions/wcstoq.texi: Likewise.
51865         * doc/glibc-functions/wcstoul_l.texi: Likewise.
51866         * doc/glibc-functions/wcstoull_l.texi: Likewise.
51867         * doc/glibc-functions/wcstouq.texi: Likewise.
51868         * doc/glibc-functions/wmempcpy.texi: Likewise.
51869
51870 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
51871             Eric Blake  <ebb9@byu.net>
51872             Paolo Bonzini  <bonzini@gnu.org>
51873             Bruno Haible  <bruno@clisp.org>
51874
51875         Make c-stack work on Haiku.
51876         * lib/c-stack.c (SA_ONSTACK): Define fallback.
51877         (c_stack_action): Use SA_ONSTACK flag.
51878
51879 2008-12-22  Bruno Haible  <bruno@clisp.org>
51880
51881         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
51882
51883 2008-12-22  Bruno Haible  <bruno@clisp.org>
51884
51885         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
51886         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
51887         being overridden.
51888         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
51889         New macros.
51890         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
51891         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
51892         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
51893         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
51894
51895 2008-12-22  Bruno Haible  <bruno@clisp.org>
51896
51897         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
51898         from test code.
51899
51900 2008-12-22  Eric Blake  <ebb9@byu.net>
51901
51902         Avoid gcc warnings on cygwin.
51903         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
51904         Avoid unused variable.
51905         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
51906         Likewise.
51907
51908 2008-12-22  Bruno Haible  <bruno@clisp.org>
51909
51910         Remove HAVE_MBRTOWC conditionals.
51911         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
51912         (mbscasecmp): Assume mbrtowc function.
51913         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
51914         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
51915         * lib/mbschr.c: Include mbuiter.h unconditionally.
51916         (mbschr): Assume mbrtowc function.
51917         * lib/mbscspn.c: Include mbuiter.h unconditionally.
51918         (mbscspn): Assume mbrtowc function.
51919         * lib/mbslen.c: Include mbuiter.h unconditionally.
51920         (mbslen): Assume mbrtowc function.
51921         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
51922         (mbsncasecmp): Assume mbrtowc function.
51923         * lib/mbsnlen.c: Include mbiter.h unconditionally.
51924         (mbsnlen): Assume mbrtowc function.
51925         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
51926         (mbspbrk): Assume mbrtowc function.
51927         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
51928         (mbspcasecmp): Assume mbrtowc function.
51929         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
51930         (mbsrchr): Assume mbrtowc function.
51931         * lib/mbssep.c: Include mbuiter.h unconditionally.
51932         (mbssep): Assume mbrtowc function.
51933         * lib/mbsspn.c: Include mbuiter.h unconditionally.
51934         (mbsspn): Assume mbrtowc function.
51935         * lib/mbsstr.c: Include mbuiter.h unconditionally.
51936         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
51937         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
51938         (mbstok_r): Assume mbrtowc function.
51939         * lib/propername.c: Include mbuiter.h unconditionally.
51940         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
51941         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
51942         (trim2): Assume mbrtowc function.
51943         * lib/mbswidth.c (mbsinit): Remove fallback definition.
51944         (mbsnwidth): Assume mbrtowc function.
51945         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
51946         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
51947         fallback definitions.
51948         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
51949
51950 2008-12-22  Bruno Haible  <bruno@clisp.org>
51951
51952         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
51953
51954 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
51955
51956         * modules/regex: Request emulations for the mb*/wc* functions we need.
51957         * m4/regex.m4: Don't look for those functions here.
51958         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
51959
51960 2008-12-22  Bruno Haible  <bruno@clisp.org>
51961
51962         * modules/fnmatch (Depends-on): Remove duplicated dependency.
51963
51964 2008-12-21  Bruno Haible  <bruno@clisp.org>
51965
51966         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
51967         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
51968         (Include): Remove conditionalization.
51969         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
51970         (Include): Remove conditionalization.
51971         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
51972         (Include): Remove conditionalization.
51973         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
51974         * m4/mbfile.m4 (gl_MBFILE): Likewise.
51975         * NEWS: Mention the change.
51976         Reported by Alan Hourihane <alanh@fairlite.co.uk>
51977         via Sergey Poznyakoff <gray@gnu.org.ua>.
51978
51979 2008-12-21  Bruno Haible  <bruno@clisp.org>
51980
51981         * MODULES.html.sh (Extended multibyte and wide character utilities
51982         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
51983         wcrtomb, wcsrtombs.
51984         (Support for systems lacking POSIX:2008): Add accept, bind, close,
51985         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
51986         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
51987         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
51988
51989 2008-12-21  Bruno Haible  <bruno@clisp.org>
51990
51991         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
51992
51993 2008-12-21  Bruno Haible  <bruno@clisp.org>
51994
51995         * modules/wcsnrtombs-tests: New file.
51996         * tests/test-wcsnrtombs1.sh: New file.
51997         * tests/test-wcsnrtombs2.sh: New file.
51998         * tests/test-wcsnrtombs3.sh: New file.
51999         * tests/test-wcsnrtombs4.sh: New file.
52000         * tests/test-wcsnrtombs.c: New file.
52001
52002         New module 'wcsnrtombs'.
52003         * lib/wchar.in.h (wcsnrtombs): New declaration.
52004         * lib/wcsnrtombs.c: New file.
52005         * lib/wcsrtombs-state.c: New file.
52006         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
52007         (internal_state): Remove variable.
52008         * m4/wcsnrtombs.m4: New file.
52009         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
52010         compilation units.
52011         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
52012         HAVE_WCSNRTOMBS.
52013         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
52014         HAVE_WCSNRTOMBS.
52015         * modules/wcsnrtombs: New file.
52016         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
52017         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
52018
52019 2008-12-21  Bruno Haible  <bruno@clisp.org>
52020
52021         * modules/wcsrtombs-tests: New file.
52022         * tests/test-wcsrtombs1.sh: New file.
52023         * tests/test-wcsrtombs2.sh: New file.
52024         * tests/test-wcsrtombs3.sh: New file.
52025         * tests/test-wcsrtombs4.sh: New file.
52026         * tests/test-wcsrtombs.c: New file.
52027
52028         New module 'wcsrtombs'.
52029         * lib/wchar.in.h (wcsrtombs): New declaration.
52030         * lib/wcsrtombs.c: New file.
52031         * m4/wcsrtombs.m4: New file.
52032         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
52033         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52034         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
52035         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52036         * modules/wcsrtombs: New file.
52037         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
52038         bugs.
52039
52040 2008-12-21  Bruno Haible  <bruno@clisp.org>
52041
52042         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
52043         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
52044         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
52045         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
52046         if not correct.
52047         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
52048         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
52049         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52050         m4/locale-zh.m4, m4/codeset.m4.
52051         * doc/posix-functions/wcrtomb.texi: Document the bug.
52052
52053 2008-12-21  Bruno Haible  <bruno@clisp.org>
52054
52055         Work around a btowc() bug on IRIX 6.5.
52056         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
52057         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
52058         REPLACE_WTOBC if not.
52059         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
52060         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
52061         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
52062
52063 2008-12-21  Bruno Haible  <bruno@clisp.org>
52064
52065         * modules/wcrtomb-tests: New file.
52066         * tests/test-wcrtomb.sh: New file.
52067         * tests/test-wcrtomb.c: New file.
52068
52069         New module 'wcrtomb'.
52070         * lib/wchar.in.h (wcrtomb): New declaration.
52071         * lib/wcrtomb.c: New file.
52072         * m4/wcrtomb.m4: New file.
52073         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
52074         HAVE_WCRTOMB.
52075         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
52076         HAVE_WCRTOMB.
52077         * modules/wcrtomb: New file.
52078         * doc/posix-functions/wcrtomb.texi: Mention the new module.
52079
52080 2008-12-21  Bruno Haible  <bruno@clisp.org>
52081
52082         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
52083         * modules/mbsrtowcs (Files): Likewise.
52084         * modules/wctob (Files): Likewise.
52085         * modules/c-strcase-tests (Files): Likewise.
52086         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
52087         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
52088         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
52089         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
52090         * modules/vasnprintf-posix-tests (Files): Likewise.
52091
52092 2008-12-21  William Pursell  <bill.pursell@gmail.com>
52093
52094         gitlog-to-changelog: pass all command-line arguments to git-log
52095         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
52096         it is sometimes convenient to filter the commits in various ways.
52097         gitlog-to-changelog only allows --since to specify a start date,
52098         but git-log itself supports many other filtering mechanisms.
52099         At the moment, I want to filter by branch name.  Rather than
52100         adding a --branch option to gitlog-to-changelog, it seems more
52101         flexible to simply pass all options directly to git-log and let
52102         git do the work.  Notice that this effectively makes --since a
52103         redundant option for gitlog-to-changelog, but removing it would
52104         require current usage to change since calls would then require
52105         an additional '--'.
52106
52107 2008-12-21  Bruno Haible  <bruno@clisp.org>
52108
52109         * modules/mbsnrtowcs-tests: New file.
52110         * tests/test-mbsnrtowcs1.sh: New file.
52111         * tests/test-mbsnrtowcs2.sh: New file.
52112         * tests/test-mbsnrtowcs3.sh: New file.
52113         * tests/test-mbsnrtowcs4.sh: New file.
52114         * tests/test-mbsnrtowcs.c: New file.
52115
52116         New module 'mbsnrtowcs'.
52117         * lib/wchar.in.h (mbsnrtowcs): New declaration.
52118         * lib/mbsnrtowcs.c: New file.
52119         * lib/mbsrtowcs-state.c: New file.
52120         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
52121         (internal_state): Remove variable.
52122         * m4/mbsnrtowcs.m4: New file.
52123         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
52124         compilation units.
52125         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
52126         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52127         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
52128         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52129         * modules/mbsnrtowcs: New file.
52130         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
52131         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
52132         portability problem.
52133
52134 2008-12-21  Bruno Haible  <bruno@clisp.org>
52135
52136         Work around mbsrtowcs bug.
52137         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
52138         (gl_FUNC_MBSRTOWCS): Invoke it.
52139         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52140         m4/locale-zh.m4.
52141         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
52142
52143 2008-12-21  Bruno Haible  <bruno@clisp.org>
52144
52145         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
52146
52147 2008-12-21  Bruno Haible  <bruno@clisp.org>
52148
52149         Update doc for AIX.
52150         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
52151         16-bit wchar_t type.
52152         * doc/posix-functions/btowc.texi: Likewise.
52153         * doc/posix-functions/fgetwc.texi: Likewise.
52154         * doc/posix-functions/fgetws.texi: Likewise.
52155         * doc/posix-functions/fputwc.texi: Likewise.
52156         * doc/posix-functions/fputws.texi: Likewise.
52157         * doc/posix-functions/fwide.texi: Likewise.
52158         * doc/posix-functions/fwprintf.texi: Likewise.
52159         * doc/posix-functions/fwscanf.texi: Likewise.
52160         * doc/posix-functions/getwchar.texi: Likewise.
52161         * doc/posix-functions/getwc.texi: Likewise.
52162         * doc/posix-functions/iswalnum.texi: Likewise.
52163         * doc/posix-functions/iswalpha.texi: Likewise.
52164         * doc/posix-functions/iswblank.texi: Likewise.
52165         * doc/posix-functions/iswcntrl.texi: Likewise.
52166         * doc/posix-functions/iswctype.texi: Likewise.
52167         * doc/posix-functions/iswdigit.texi: Likewise.
52168         * doc/posix-functions/iswgraph.texi: Likewise.
52169         * doc/posix-functions/iswlower.texi: Likewise.
52170         * doc/posix-functions/iswprint.texi: Likewise.
52171         * doc/posix-functions/iswpunct.texi: Likewise.
52172         * doc/posix-functions/iswspace.texi: Likewise.
52173         * doc/posix-functions/iswupper.texi: Likewise.
52174         * doc/posix-functions/iswxdigit.texi: Likewise.
52175         * doc/posix-functions/mbrtowc.texi: Likewise.
52176         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52177         * doc/posix-functions/mbstowcs.texi: Likewise.
52178         * doc/posix-functions/mbtowc.texi: Likewise.
52179         * doc/posix-functions/putwchar.texi: Likewise.
52180         * doc/posix-functions/putwc.texi: Likewise.
52181         * doc/posix-functions/swprintf.texi: Likewise.
52182         * doc/posix-functions/tolower.texi: Likewise.
52183         * doc/posix-functions/toupper.texi: Likewise.
52184         * doc/posix-functions/towctrans.texi: Likewise.
52185         * doc/posix-functions/ungetwc.texi: Likewise.
52186         * doc/posix-functions/vswprintf.texi: Likewise.
52187         * doc/posix-functions/wcrtomb.texi: Likewise.
52188         * doc/posix-functions/wcscat.texi: Likewise.
52189         * doc/posix-functions/wcschr.texi: Likewise.
52190         * doc/posix-functions/wcscmp.texi: Likewise.
52191         * doc/posix-functions/wcscoll.texi: Likewise.
52192         * doc/posix-functions/wcscpy.texi: Likewise.
52193         * doc/posix-functions/wcscspn.texi: Likewise.
52194         * doc/posix-functions/wcsftime.texi: Likewise.
52195         * doc/posix-functions/wcslen.texi: Likewise.
52196         * doc/posix-functions/wcsncat.texi: Likewise.
52197         * doc/posix-functions/wcsncmp.texi: Likewise.
52198         * doc/posix-functions/wcsncpy.texi: Likewise.
52199         * doc/posix-functions/wcspbrk.texi: Likewise.
52200         * doc/posix-functions/wcsrchr.texi: Likewise.
52201         * doc/posix-functions/wcsrtombs.texi: Likewise.
52202         * doc/posix-functions/wcsspn.texi: Likewise.
52203         * doc/posix-functions/wcsstr.texi: Likewise.
52204         * doc/posix-functions/wcstod.texi: Likewise.
52205         * doc/posix-functions/wcstof.texi: Likewise.
52206         * doc/posix-functions/wcstoimax.texi: Likewise.
52207         * doc/posix-functions/wcstok.texi: Likewise.
52208         * doc/posix-functions/wcstold.texi: Likewise.
52209         * doc/posix-functions/wcstoll.texi: Likewise.
52210         * doc/posix-functions/wcstol.texi: Likewise.
52211         * doc/posix-functions/wcstombs.texi: Likewise.
52212         * doc/posix-functions/wcstoull.texi: Likewise.
52213         * doc/posix-functions/wcstoul.texi: Likewise.
52214         * doc/posix-functions/wcstoumax.texi: Likewise.
52215         * doc/posix-functions/wcswidth.texi: Likewise.
52216         * doc/posix-functions/wcsxfrm.texi: Likewise.
52217         * doc/posix-functions/wctob.texi: Likewise.
52218         * doc/posix-functions/wctomb.texi: Likewise.
52219         * doc/posix-functions/wctrans.texi: Likewise.
52220         * doc/posix-functions/wctype.texi: Likewise.
52221         * doc/posix-functions/wcwidth.texi: Likewise.
52222         * doc/posix-functions/wmemchr.texi: Likewise.
52223         * doc/posix-functions/wmemcmp.texi: Likewise.
52224         * doc/posix-functions/wmemcpy.texi: Likewise.
52225         * doc/posix-functions/wmemmove.texi: Likewise.
52226         * doc/posix-functions/wmemset.texi: Likewise.
52227         * doc/posix-functions/wprintf.texi: Likewise.
52228         * doc/posix-functions/wscanf.texi: Likewise.
52229
52230 2008-12-21  Bruno Haible  <bruno@clisp.org>
52231
52232         Update doc for HP-UX 11.11.
52233         * doc/posix-functions/btowc.texi: Clarify that the function is missing
52234         in HP-UX version 11.00, not in all versions of HP-UX 11.
52235         * doc/posix-functions/fwide.texi: Likewise.
52236         * doc/posix-functions/fwprintf.texi: Likewise.
52237         * doc/posix-functions/fwscanf.texi: Likewise.
52238         * doc/posix-functions/inet_ntop.texi: Likewise.
52239         * doc/posix-functions/inet_pton.texi: Likewise.
52240         * doc/posix-functions/mbrlen.texi: Likewise.
52241         * doc/posix-functions/mbrtowc.texi: Likewise.
52242         * doc/posix-functions/mbsinit.texi: Likewise.
52243         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52244         * doc/posix-functions/swprintf.texi: Likewise.
52245         * doc/posix-functions/swscanf.texi: Likewise.
52246         * doc/posix-functions/towctrans.texi: Likewise.
52247         * doc/posix-functions/vfwprintf.texi: Likewise.
52248         * doc/posix-functions/vswprintf.texi: Likewise.
52249         * doc/posix-functions/vwprintf.texi: Likewise.
52250         * doc/posix-functions/wcrtomb.texi: Likewise.
52251         * doc/posix-functions/wcsrtombs.texi: Likewise.
52252         * doc/posix-functions/wcsstr.texi: Likewise.
52253         * doc/posix-functions/wctob.texi: Likewise.
52254         * doc/posix-functions/wctrans.texi: Likewise.
52255         * doc/posix-functions/wmemchr.texi: Likewise.
52256         * doc/posix-functions/wmemcmp.texi: Likewise.
52257         * doc/posix-functions/wmemcpy.texi: Likewise.
52258         * doc/posix-functions/wmemmove.texi: Likewise.
52259         * doc/posix-functions/wmemset.texi: Likewise.
52260         * doc/posix-functions/wprintf.texi: Likewise.
52261         * doc/posix-functions/wscanf.texi: Likewise.
52262
52263 2008-12-21  Bruno Haible  <bruno@clisp.org>
52264
52265         Work around a portability problem.
52266         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
52267         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
52268
52269 2008-12-20  Bruno Haible  <bruno@clisp.org>
52270
52271         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
52272         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
52273         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
52274         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
52275         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
52276
52277         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
52278         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
52279         set.
52280         (GNULIB_defined_mbstate_t): New macro.
52281         (mbsinit): Redefine if REPLACE_MBSINIT is set.
52282         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
52283         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
52284         reuses the system's mbrtowc function but works around the bugs.
52285         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
52286         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
52287         macros.
52288         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
52289         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
52290         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
52291         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
52292         REPLACE_MBSINIT if mbsinit needs to be overridden.
52293         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
52294         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52295         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
52296         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52297         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52298         m4/locale-zh.m4.
52299         (Depends): Add mbsinit.
52300         * modules/mbsinit (Depends): Add mbrtowc.
52301         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
52302
52303 2008-12-20  Bruno Haible  <bruno@clisp.org>
52304
52305         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
52306         so that there are no conversion errors on AIX.
52307         * tests/test-mbsrtowcs.c (main): LIkewise.
52308
52309 2008-12-20  Bruno Haible  <bruno@clisp.org>
52310
52311         Work around wctob bug on Solaris <= 9.
52312         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
52313         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
52314         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
52315         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
52316         * modules/wctob (Files): Add m4/locale-fr.m4.
52317         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
52318
52319 2008-12-20  Bruno Haible  <bruno@clisp.org>
52320
52321         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
52322         /dev/null.
52323         * tests/test-select-in.sh: Likewise.
52324         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52325
52326 2008-12-20  Bruno Haible  <bruno@clisp.org>
52327
52328         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
52329         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
52330         Cygwin 1.5.x.
52331
52332 2008-12-20  Bruno Haible  <bruno@clisp.org>
52333
52334         Ensure mbstate_t is defined on HP-UX 11.11.
52335         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
52336         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
52337         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
52338         AC_USE_SYSTEM_EXTENSIONS.
52339         * modules/fnmatch (Depends-on): Add extensions.
52340         * modules/mbrlen (Depends-on): Likewise.
52341         * modules/mbrtowc (Depends-on): Likewise.
52342         * modules/mbsinit (Depends-on): Likewise.
52343         * modules/mbsrtowcs (Depends-on): Likewise.
52344         * modules/mbswidth (Depends-on): Likewise.
52345         * modules/quotearg (Depends-on): Likewise.
52346         * modules/strftime (Depends-on): Likewise.
52347
52348 2008-12-20  Bruno Haible  <bruno@clisp.org>
52349
52350         Ensure wctob is declared on IRIX 6.5.
52351         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
52352         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
52353         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
52354         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
52355         of HAVE_WCTOB.
52356         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
52357         HAVE_WCTOB.
52358         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
52359
52360 2008-12-19  Bruno Haible  <bruno@clisp.org>
52361
52362         * modules/mbsrtowcs-tests: New file.
52363         * tests/test-mbsrtowcs1.sh: New file.
52364         * tests/test-mbsrtowcs2.sh: New file.
52365         * tests/test-mbsrtowcs3.sh: New file.
52366         * tests/test-mbsrtowcs4.sh: New file.
52367         * tests/test-mbsrtowcs.c: New file.
52368
52369         New module 'mbsrtowcs'.
52370         * lib/wchar.in.h (mbsrtowcs): New declaration.
52371         * lib/mbsrtowcs.c: New file.
52372         * m4/mbsrtowcs.m4: New file.
52373         * modules/mbsrtowcs: New file.
52374         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
52375         HAVE_MBSRTOWCS.
52376         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
52377         HAVE_MBSRTOWCS.
52378         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
52379
52380 2008-12-19  Bruno Haible  <bruno@clisp.org>
52381
52382         New module 'mbrlen'.
52383         * lib/wchar.in.h (mbrlen): New declaration.
52384         * lib/mbrlen.c: New file.
52385         * m4/mbrlen.m4: New file.
52386         * modules/mbrlen: New file.
52387         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
52388         HAVE_MBRLEN.
52389         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
52390         HAVE_MBRLEN.
52391         * doc/posix-functions/mbrlen.texi: Document the new module.
52392
52393 2008-12-19  Bruno Haible  <bruno@clisp.org>
52394
52395         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
52396         * modules/mbrtowc (Depends-on): Add verify.
52397         Suggested by Paul Eggert.
52398
52399 2008-12-18  Bruno Haible  <bruno@clisp.org>
52400
52401         * modules/mbsinit-tests: New file.
52402         * tests/test-mbsinit.sh: New file.
52403         * tests/test-mbsinit.c: New file.
52404
52405 2008-12-18  Bruno Haible  <bruno@clisp.org>
52406
52407         * modules/mbrtowc-tests: New file.
52408         * tests/test-mbrtowc1.sh: New file.
52409         * tests/test-mbrtowc2.sh: New file.
52410         * tests/test-mbrtowc3.sh: New file.
52411         * tests/test-mbrtowc4.sh: New file.
52412         * tests/test-mbrtowc.c: New file.
52413
52414         New module 'mbrtowc'.
52415         * lib/wchar.in.h (mbstate_t): Override when the system does not have
52416         mbsinit and mbrtowc.
52417         (mbrtowc): New declaration.
52418         * lib/mbrtowc.c: New file.
52419         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
52420         * modules/mbrtowc: New file.
52421         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
52422         HAVE_MBRTOWC.
52423         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
52424         HAVE_MBRTOWC.
52425         * doc/posix-functions/mbrtowc.texi: Document the new module.
52426
52427 2008-12-18  Bruno Haible  <bruno@clisp.org>
52428
52429         New module 'wctob'.
52430         * lib/wchar.in.h (wctob): New declaration.
52431         * lib/wctob.c: New file.
52432         * m4/wctob.m4: New file.
52433         * modules/wctob: New file.
52434         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
52435         HAVE_WCTOB.
52436         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
52437         * doc/posix-functions/wctob.texi: Document the new module.
52438
52439 2008-12-18  Bruno Haible  <bruno@clisp.org>
52440
52441         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
52442         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
52443
52444 2008-12-18  Simon Josefsson  <simon@josefsson.org>
52445
52446         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
52447         G. Christensen" <tgc@jupiterrise.com>.
52448
52449         * lib/flock.c: Need to include errno.h.  Reported by "Tom
52450         G. Christensen" <tgc@jupiterrise.com>.
52451
52452         * lib/flock.c: Need to include string.h.  Reported by "Tom
52453         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
52454         <ebb9@byu.net>.
52455
52456 2008-12-18  Bruno Haible  <bruno@clisp.org>
52457
52458         * m4/locale-ja.m4: New file, from GNU gettext.
52459
52460 2008-12-17  Bruno Haible  <bruno@clisp.org>
52461
52462         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
52463         Suggested by Eric Blake.
52464
52465 2008-12-17  Bruno Haible  <bruno@clisp.org>
52466
52467         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
52468
52469 2008-12-17  Bruno Haible  <bruno@clisp.org>
52470
52471         * lib/mbsinit.c: Include verify.h. Verify an assumption.
52472         * modules/mbsinit (Depends-on): Add verify.
52473         Suggested by Paul Eggert.
52474
52475 2008-12-17  Bruno Haible  <bruno@clisp.org>
52476
52477         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
52478         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
52479         gl_FUNC_MBRTOWC.
52480         * m4/mbiter.m4 (gl_MBITER): LIkewise.
52481         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
52482         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
52483         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
52484         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
52485         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
52486         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
52487         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
52488         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
52489         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
52490         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
52491         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
52492         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
52493         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
52494         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
52495         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52496         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
52497         * modules/trim (configure.ac): Likewise.
52498
52499 2008-12-17  Bruno Haible  <bruno@clisp.org>
52500
52501         * modules/btowc-tests: New file.
52502         * tests/test-btowc1.sh: New file.
52503         * tests/test-btowc2.sh: New file.
52504         * tests/test-btowc.c: New file.
52505
52506         New module 'btowc'.
52507         * lib/wchar.in.h (btowc): New declaration.
52508         * lib/btowc.c: New file.
52509         * m4/btowc.m4: New file.
52510         * modules/btowc: New file.
52511         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
52512         HAVE_BTOWC.
52513         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
52514         * doc/posix-functions/btowc.texi: Document the new module.
52515
52516 2008-12-17  Bruno Haible  <bruno@clisp.org>
52517
52518         New module 'mbsinit'.
52519         * lib/wchar.in.h (mbsinit): New declaration.
52520         * lib/mbsinit.c: New file.
52521         * m4/mbsinit.m4: New file.
52522         * modules/mbsinit: New file.
52523         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
52524         HAVE_MBSINIT.
52525         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
52526         HAVE_MBSINIT.
52527         * doc/posix-functions/mbsinit.texi: Document the new module.
52528
52529 2008-12-16  Bruno Haible  <bruno@clisp.org>
52530
52531         * lib/unistd.in.h: Add comment.
52532         * tests/test-environ.c: Don't include <stdlib.h>.
52533
52534 2008-12-16  Bruno Haible  <bruno@clisp.org>
52535
52536         * lib/parse-duration.h (parse_duration): Document return value
52537         convention.
52538         * lib/parse-duration.c: Include specification header first. Add
52539         comments.
52540         (_): Remove macro.
52541         (parse_year_month_day, parse_hour_minute_second): Move side effects
52542         outside of strchr call.
52543         (parse_non_iso8601): Move side effects outside of isspace call.
52544         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
52545         call.
52546
52547 2008-12-16  Bruno Haible  <bruno@clisp.org>
52548
52549         * tests/test-parse-duration.sh: Produce no output when the test
52550         succeeds.
52551
52552 2008-12-16  Bruno Haible  <bruno@clisp.org>
52553
52554         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
52555         expressions.
52556
52557 2008-12-15  Bruno Haible  <bruno@clisp.org>
52558
52559         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
52560         * doc/glibc-functions/flistxattr.texi: Likewise.
52561         * doc/glibc-functions/fopencookie.texi: Likewise.
52562         * doc/glibc-functions/fremovexattr.texi: Likewise.
52563         * doc/glibc-functions/fsetxattr.texi: Likewise.
52564         * doc/glibc-functions/getxattr.texi: Likewise.
52565         * doc/glibc-functions/lgetxattr.texi: Likewise.
52566         * doc/glibc-functions/listxattr.texi: Likewise.
52567         * doc/glibc-functions/llistxattr.texi: Likewise.
52568         * doc/glibc-functions/lremovexattr.texi: Likewise.
52569         * doc/glibc-functions/lsetxattr.texi: Likewise.
52570         * doc/glibc-functions/removexattr.texi: Likewise.
52571         * doc/glibc-functions/setxattr.texi: Likewise.
52572         * doc/posix-functions/open_memstream.texi: Likewise.
52573
52574 2008-12-15  Eric Blake  <ebb9@byu.net>
52575
52576         Update doc for cygwin 1.7.
52577         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
52578         functions.
52579         * doc/posix-functions/fchmodat.texi: Likewise.
52580         * doc/posix-functions/fchownat.texi: Likewise.
52581         * doc/posix-functions/fdopendir.texi: Likewise.
52582         * doc/posix-functions/fmemopen.texi: Likewise.
52583         * doc/posix-functions/freeaddrinfo.texi: Likewise.
52584         * doc/posix-functions/fstatat.texi: Likewise.
52585         * doc/posix-functions/futimens.texi: Likewise.
52586         * doc/posix-functions/gai_strerror.texi: Likewise.
52587         * doc/posix-functions/getaddrinfo.texi: Likewise.
52588         * doc/posix-functions/getnameinfo.texi: Likewise.
52589         * doc/posix-functions/if_freenameindex.texi: Likewise.
52590         * doc/posix-functions/if_indextoname.texi: Likewise.
52591         * doc/posix-functions/if_nameindex.texi: Likewise.
52592         * doc/posix-functions/if_nametoindex.texi: Likewise.
52593         * doc/posix-functions/insque.texi: Likewise.
52594         * doc/posix-functions/linkat.texi: Likewise.
52595         * doc/posix-functions/llrint.texi: Likewise.
52596         * doc/posix-functions/llrintf.texi: Likewise.
52597         * doc/posix-functions/llrintl.texi: Likewise.
52598         * doc/posix-functions/lockf.texi: Likewise.
52599         * doc/posix-functions/lrintl.texi: Likewise.
52600         * doc/posix-functions/mkdirat.texi: Likewise.
52601         * doc/posix-functions/mkfifoat.texi: Likewise.
52602         * doc/posix-functions/mknodat.texi: Likewise.
52603         * doc/posix-functions/mq_close.texi: Likewise.
52604         * doc/posix-functions/mq_getattr.texi: Likewise.
52605         * doc/posix-functions/mq_notify.texi: Likewise.
52606         * doc/posix-functions/mq_open.texi: Likewise.
52607         * doc/posix-functions/mq_receive.texi: Likewise.
52608         * doc/posix-functions/mq_send.texi: Likewise.
52609         * doc/posix-functions/mq_setattr.texi: Likewise.
52610         * doc/posix-functions/mq_timedreceive.texi: Likewise.
52611         * doc/posix-functions/mq_timedsend.texi: Likewise.
52612         * doc/posix-functions/mq_unlink.texi: Likewise.
52613         * doc/posix-functions/open_memstream.texi: Likewise.
52614         * doc/posix-functions/openat.texi: Likewise.
52615         * doc/posix-functions/posix_fadvise.texi: Likewise.
52616         * doc/posix-functions/posix_fallocate.texi: Likewise.
52617         * doc/posix-functions/posix_madvise.texi: Likewise.
52618         * doc/posix-functions/posix_memalign.texi: Likewise.
52619         * doc/posix-functions/posix_openpt.texi: Likewise.
52620         * doc/posix-functions/readlinkat.texi: Likewise.
52621         * doc/posix-functions/remque.texi: Likewise.
52622         * doc/posix-functions/renameat.texi: Likewise.
52623         * doc/posix-functions/rintl.texi: Likewise.
52624         * doc/posix-functions/sem_unlink.texi: Likewise.
52625         * doc/posix-functions/shm_open.texi: Likewise.
52626         * doc/posix-functions/shm_unlink.texi: Likewise.
52627         * doc/posix-functions/signgam.texi: Likewise.
52628         * doc/posix-functions/sigset.texi: Likewise.
52629         * doc/posix-functions/stpcpy.texi: Likewise.
52630         * doc/posix-functions/stpncpy.texi: Likewise.
52631         * doc/posix-functions/strerror.texi: Likewise.
52632         * doc/posix-functions/strtod.texi: Likewise.
52633         * doc/posix-functions/symlinkat.texi: Likewise.
52634         * doc/posix-functions/unlinkat.texi: Likewise.
52635         * doc/posix-functions/utimensat.texi: Likewise.
52636         * doc/glibc-functions/bindresvport.texi: Likewise.
52637         * doc/glibc-functions/dn_expand.texi: Likewise.
52638         * doc/glibc-functions/exp10.texi: Likewise.
52639         * doc/glibc-functions/exp10f.texi: Likewise.
52640         * doc/glibc-functions/fgetxattr.texi: Likewise.
52641         * doc/glibc-functions/flistxattr.texi: Likewise.
52642         * doc/glibc-functions/fopencookie.texi: Likewise.
52643         * doc/glibc-functions/freeifaddrs.texi: Likewise.
52644         * doc/glibc-functions/fremovexattr.texi: Likewise.
52645         * doc/glibc-functions/fsetxattr.texi: Likewise.
52646         * doc/glibc-functions/getifaddrs.texi: Likewise.
52647         * doc/glibc-functions/getxattr.texi: Likewise.
52648         * doc/glibc-functions/lgetxattr.texi: Likewise.
52649         * doc/glibc-functions/listxattr.texi: Likewise.
52650         * doc/glibc-functions/llistxattr.texi: Likewise.
52651         * doc/glibc-functions/lremovexattr.texi: Likewise.
52652         * doc/glibc-functions/lsetxattr.texi: Likewise.
52653         * doc/glibc-functions/pow10.texi: Likewise.
52654         * doc/glibc-functions/pow10f.texi: Likewise.
52655         * doc/glibc-functions/rcmd_af.texi: Likewise.
52656         * doc/glibc-functions/removexattr.texi: Likewise.
52657         * doc/glibc-functions/res_init.texi: Likewise.
52658         * doc/glibc-functions/res_mkquery.texi: Likewise.
52659         * doc/glibc-functions/res_query.texi: Likewise.
52660         * doc/glibc-functions/res_querydomain.texi: Likewise.
52661         * doc/glibc-functions/res_send.texi: Likewise.
52662         * doc/glibc-functions/rresvport_af.texi: Likewise.
52663         * doc/glibc-functions/setxattr.texi: Likewise.
52664         * doc/glibc-functions/strcasestr.texi: Likewise.
52665
52666 2008-12-15  Bruno Haible  <bruno@clisp.org>
52667
52668         Fix compilation error on OSF/1 4.0.
52669         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
52670         <sys/time.h>, simply delegate to the system header.
52671         Reported by Daniel Richard G. <oss@teragram.com>.
52672
52673 2008-12-15  Bruno Haible  <bruno@clisp.org>
52674
52675         * doc/posix-functions/openat.texi: Mention the 'openat' module.
52676         * doc/posix-functions/fchmodat.texi: Likewise.
52677         * doc/posix-functions/fchownat.texi: Likewise.
52678         * doc/posix-functions/fdopendir.texi: Likewise.
52679         * doc/posix-functions/fstatat.texi: Likewise.
52680         * doc/posix-functions/mkdirat.texi: Likewise.
52681         * doc/posix-functions/unlinkat.texi: Likewise.
52682
52683 2008-12-14  Bruno Haible  <bruno@clisp.org>
52684
52685         Update doc for POSIX:2008.
52686         * doc/posix-functions/faccessat.texi: New file.
52687         * doc/posix-functions/fchmodat.texi: New file.
52688         * doc/posix-functions/fchownat.texi: New file.
52689         * doc/posix-functions/fdopendir.texi: New file.
52690         * doc/posix-functions/fstatat.texi: New file.
52691         * doc/posix-functions/futimens.texi: New file.
52692         * doc/posix-functions/linkat.texi: New file.
52693         * doc/posix-functions/mkdirat.texi: New file.
52694         * doc/posix-functions/mkfifoat.texi: New file.
52695         * doc/posix-functions/mknodat.texi: New file.
52696         * doc/posix-functions/open_wmemstream.texi: New file.
52697         * doc/posix-functions/openat.texi: New file.
52698         * doc/posix-functions/psiginfo.texi: New file.
52699         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
52700         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
52701         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
52702         * doc/posix-functions/readlinkat.texi: New file.
52703         * doc/posix-functions/renameat.texi: New file.
52704         * doc/posix-functions/strerror_l.texi: New file.
52705         * doc/posix-functions/symlinkat.texi: New file.
52706         * doc/posix-functions/unlinkat.texi: New file.
52707         * doc/posix-functions/utimensat.texi: New file.
52708         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52709
52710 2008-12-14  Bruno Haible  <bruno@clisp.org>
52711
52712         Update doc for POSIX:2008.
52713         * doc/posix-functions/alphasort.texi: Renamed from
52714         doc/glibc-functions/alphasort.texi.
52715         * doc/posix-functions/dirfd.texi: Renamed from
52716         doc/glibc-functions/dirfd.texi.
52717         * doc/posix-functions/dprintf.texi: Renamed from
52718         doc/glibc-functions/dprintf.texi.
52719         * doc/posix-functions/duplocale.texi: Renamed from
52720         doc/glibc-functions/duplocale.texi.
52721         * doc/posix-functions/fexecve.texi: Renamed from
52722         doc/glibc-functions/fexecve.texi.
52723         * doc/posix-functions/fmemopen.texi: Renamed from
52724         doc/glibc-functions/fmemopen.texi.
52725         * doc/posix-functions/freelocale.texi: Renamed from
52726         doc/glibc-functions/freelocale.texi.
52727         * doc/posix-functions/getdate_err.texi: Renamed from
52728         doc/glibc-functions/getdate_err.texi.
52729         * doc/posix-functions/isalnum_l.texi: Renamed from
52730         doc/glibc-functions/isalnum_l.texi.
52731         * doc/posix-functions/isalpha_l.texi: Renamed from
52732         doc/glibc-functions/isalpha_l.texi.
52733         * doc/posix-functions/isblank_l.texi: Renamed from
52734         doc/glibc-functions/isblank_l.texi.
52735         * doc/posix-functions/iscntrl_l.texi: Renamed from
52736         doc/glibc-functions/iscntrl_l.texi.
52737         * doc/posix-functions/isdigit_l.texi: Renamed from
52738         doc/glibc-functions/isdigit_l.texi.
52739         * doc/posix-functions/isgraph_l.texi: Renamed from
52740         doc/glibc-functions/isgraph_l.texi.
52741         * doc/posix-functions/islower_l.texi: Renamed from
52742         doc/glibc-functions/islower_l.texi.
52743         * doc/posix-functions/isprint_l.texi: Renamed from
52744         doc/glibc-functions/isprint_l.texi.
52745         * doc/posix-functions/ispunct_l.texi: Renamed from
52746         doc/glibc-functions/ispunct_l.texi.
52747         * doc/posix-functions/isspace_l.texi: Renamed from
52748         doc/glibc-functions/isspace_l.texi.
52749         * doc/posix-functions/isupper_l.texi: Renamed from
52750         doc/glibc-functions/isupper_l.texi.
52751         * doc/posix-functions/iswalnum_l.texi: Renamed from
52752         doc/glibc-functions/iswalnum_l.texi.
52753         * doc/posix-functions/iswalpha_l.texi: Renamed from
52754         doc/glibc-functions/iswalpha_l.texi.
52755         * doc/posix-functions/iswblank_l.texi: Renamed from
52756         doc/glibc-functions/iswblank_l.texi.
52757         * doc/posix-functions/iswcntrl_l.texi: Renamed from
52758         doc/glibc-functions/iswcntrl_l.texi.
52759         * doc/posix-functions/iswctype_l.texi: Renamed from
52760         doc/glibc-functions/iswctype_l.texi.
52761         * doc/posix-functions/iswdigit_l.texi: Renamed from
52762         doc/glibc-functions/iswdigit_l.texi.
52763         * doc/posix-functions/iswgraph_l.texi: Renamed from
52764         doc/glibc-functions/iswgraph_l.texi.
52765         * doc/posix-functions/iswlower_l.texi: Renamed from
52766         doc/glibc-functions/iswlower_l.texi.
52767         * doc/posix-functions/iswprint_l.texi: Renamed from
52768         doc/glibc-functions/iswprint_l.texi.
52769         * doc/posix-functions/iswpunct_l.texi: Renamed from
52770         doc/glibc-functions/iswpunct_l.texi.
52771         * doc/posix-functions/iswspace_l.texi: Renamed from
52772         doc/glibc-functions/iswspace_l.texi.
52773         * doc/posix-functions/iswupper_l.texi: Renamed from
52774         doc/glibc-functions/iswupper_l.texi.
52775         * doc/posix-functions/iswxdigit_l.texi: Renamed from
52776         doc/glibc-functions/iswxdigit_l.texi.
52777         * doc/posix-functions/isxdigit_l.texi: Renamed from
52778         doc/glibc-functions/isxdigit_l.texi.
52779         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
52780         doc/glibc-functions/mbsnrtowcs.texi.
52781         * doc/posix-functions/mkdtemp.texi: Renamed from
52782         doc/glibc-functions/mkdtemp.texi.
52783         * doc/posix-functions/newlocale.texi: Renamed from
52784         doc/glibc-functions/newlocale.texi.
52785         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
52786         doc/glibc-functions/nl_langinfo_l.texi.
52787         * doc/posix-functions/open_memstream.texi: Renamed from
52788         doc/glibc-functions/open_memstream.texi.
52789         * doc/posix-functions/opterr.texi: Renamed from
52790         doc/glibc-functions/opterr.texi.
52791         * doc/posix-functions/optind.texi: Renamed from
52792         doc/glibc-functions/optind.texi.
52793         * doc/posix-functions/optopt.texi: Renamed from
52794         doc/glibc-functions/optopt.texi.
52795         * doc/posix-functions/psignal.texi: Renamed from
52796         doc/glibc-functions/psignal.texi.
52797         * doc/posix-functions/scandir.texi: Renamed from
52798         doc/glibc-functions/scandir.texi.
52799         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
52800         doc/glibc-functions/sched_get_priority_min.texi.
52801         * doc/posix-functions/signgam.texi: Renamed from
52802         doc/glibc-functions/signgam.texi.
52803         * doc/posix-functions/stpcpy.texi: Renamed from
52804         doc/glibc-functions/stpcpy.texi.
52805         * doc/posix-functions/stpncpy.texi: Renamed from
52806         doc/glibc-functions/stpncpy.texi.
52807         * doc/posix-functions/strcasecmp_l.texi: Renamed from
52808         doc/glibc-functions/strcasecmp_l.texi.
52809         * doc/posix-functions/strcoll_l.texi: Renamed from
52810         doc/glibc-functions/strcoll_l.texi.
52811         * doc/posix-functions/strfmon_l.texi: Renamed from
52812         doc/glibc-functions/strfmon_l.texi.
52813         * doc/posix-functions/strftime_l.texi: Renamed from
52814         doc/glibc-functions/strftime_l.texi.
52815         * doc/posix-functions/strncasecmp_l.texi: Renamed from
52816         doc/glibc-functions/strncasecmp_l.texi.
52817         * doc/posix-functions/strndup.texi: Renamed from
52818         doc/glibc-functions/strndup.texi.
52819         * doc/posix-functions/strnlen.texi: Renamed from
52820         doc/glibc-functions/strnlen.texi.
52821         * doc/posix-functions/strsignal.texi: Renamed from
52822         doc/glibc-functions/strsignal.texi.
52823         * doc/posix-functions/strxfrm_l.texi: Renamed from
52824         doc/glibc-functions/strxfrm_l.texi.
52825         * doc/posix-functions/timer_gettime.texi: Renamed from
52826         doc/glibc-functions/timer_gettime.texi.
52827         * doc/posix-functions/tolower_l.texi: Renamed from
52828         doc/glibc-functions/tolower_l.texi.
52829         * doc/posix-functions/toupper_l.texi: Renamed from
52830         doc/glibc-functions/toupper_l.texi.
52831         * doc/posix-functions/towctrans_l.texi: Renamed from
52832         doc/glibc-functions/towctrans_l.texi.
52833         * doc/posix-functions/towlower_l.texi: Renamed from
52834         doc/glibc-functions/towlower_l.texi.
52835         * doc/posix-functions/towupper_l.texi: Renamed from
52836         doc/glibc-functions/towupper_l.texi.
52837         * doc/posix-functions/uselocale.texi: Renamed from
52838         doc/glibc-functions/uselocale.texi.
52839         * doc/posix-functions/vdprintf.texi: Renamed from
52840         doc/glibc-functions/vdprintf.texi.
52841         * doc/posix-functions/wcpcpy.texi:
52842         Renamed from doc/glibc-functions/wcpcpy.texi.
52843         * doc/posix-functions/wcpncpy.texi: Renamed from
52844         doc/glibc-functions/wcpncpy.texi.
52845         * doc/posix-functions/wcscasecmp.texi: Renamed from
52846         doc/glibc-functions/wcscasecmp.texi.
52847         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
52848         doc/glibc-functions/wcscasecmp_l.texi.
52849         * doc/posix-functions/wcscoll_l.texi: Renamed from
52850         doc/glibc-functions/wcscoll_l.texi.
52851         * doc/posix-functions/wcsdup.texi: Renamed from
52852         doc/glibc-functions/wcsdup.texi.
52853         * doc/posix-functions/wcsncasecmp.texi: Renamed from
52854         doc/glibc-functions/wcsncasecmp.texi.
52855         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
52856         doc/glibc-functions/wcsncasecmp_l.texi.
52857         * doc/posix-functions/wcsnlen.texi: Renamed from
52858         doc/glibc-functions/wcsnlen.texi.
52859         * doc/posix-functions/wcsnrtombs.texi: Renamed from
52860         doc/glibc-functions/wcsnrtombs.texi.
52861         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
52862         doc/glibc-functions/wcsxfrm_l.texi.
52863         * doc/posix-functions/wctrans_l.texi: Renamed from
52864         doc/glibc-functions/wctrans_l.texi.
52865         * doc/posix-functions/wctype_l.texi: Renamed from
52866         doc/glibc-functions/wctype_l.texi.
52867         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52868         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
52869         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
52870         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
52871         these subsections.
52872         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
52873         Remove sections.
52874
52875 2008-12-14  Bruno Haible  <bruno@clisp.org>
52876
52877         Update doc for POSIX:2008.
52878         * doc/posix-functions/*.texi: Update URL of POSIX specification.
52879
52880 2008-12-14  Bruno Haible  <bruno@clisp.org>
52881
52882         Update doc for POSIX:2008.
52883         * doc/pastposix-functions/bcmp.texi: Renamed from
52884         doc/posix-functions/bcmp.texi.
52885         * doc/pastposix-functions/bcopy.texi: Renamed from
52886         doc/posix-functions/bcopy.texi.
52887         * doc/pastposix-functions/bsd_signal.texi: Renamed from
52888         doc/posix-functions/bsd_signal.texi.
52889         * doc/pastposix-functions/bzero.texi: Renamed from
52890         doc/posix-functions/bzero.texi.
52891         * doc/pastposix-functions/ecvt.texi: Renamed from
52892         doc/posix-functions/ecvt.texi.
52893         * doc/pastposix-functions/fcvt.texi: Renamed from
52894         doc/posix-functions/fcvt.texi.
52895         * doc/pastposix-functions/ftime.texi: Renamed from
52896         doc/posix-functions/ftime.texi.
52897         * doc/pastposix-functions/gcvt.texi: Renamed from
52898         doc/posix-functions/gcvt.texi.
52899         * doc/pastposix-functions/getcontext.texi: Renamed from
52900         doc/posix-functions/getcontext.texi.
52901         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
52902         doc/posix-functions/gethostbyaddr.texi.
52903         * doc/pastposix-functions/gethostbyname.texi: Renamed from
52904         doc/posix-functions/gethostbyname.texi.
52905         * doc/pastposix-functions/getwd.texi: Renamed from
52906         doc/posix-functions/getwd.texi.
52907         * doc/pastposix-functions/h_errno.texi: Renamed from
52908         doc/posix-functions/h_errno.texi.
52909         * doc/pastposix-functions/index.texi: Renamed from
52910         doc/posix-functions/index.texi.
52911         * doc/pastposix-functions/makecontext.texi: Renamed from
52912         doc/posix-functions/makecontext.texi.
52913         * doc/pastposix-functions/mktemp.texi: Renamed from
52914         doc/posix-functions/mktemp.texi.
52915         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
52916         doc/posix-functions/pthread_attr_getstackaddr.texi.
52917         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
52918         doc/posix-functions/pthread_attr_setstackaddr.texi.
52919         * doc/pastposix-functions/rindex.texi: Renamed from
52920         doc/posix-functions/rindex.texi.
52921         * doc/pastposix-functions/scalb.texi: Renamed from
52922         doc/posix-functions/scalb.texi.
52923         * doc/pastposix-functions/setcontext.texi: Renamed from
52924         doc/posix-functions/setcontext.texi.
52925         * doc/pastposix-functions/swapcontext.texi: Renamed from
52926         doc/posix-functions/swapcontext.texi.
52927         * doc/pastposix-functions/ualarm.texi: Renamed from
52928         doc/posix-functions/ualarm.texi.
52929         * doc/pastposix-functions/usleep.texi: Renamed from
52930         doc/posix-functions/usleep.texi.
52931         * doc/pastposix-functions/vfork.texi: Renamed from
52932         doc/posix-functions/vfork.texi.
52933         * doc/pastposix-functions/wcswcs.texi: Renamed from
52934         doc/posix-functions/wcswcs.texi.
52935         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
52936         (Function Substitutes): Update.
52937
52938 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52939
52940         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
52941         m4/strerror.m4.
52942
52943 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52944             Bruno Haible  <bruno@clisp.org>
52945
52946         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
52947
52948 2008-12-13  Bruno Haible  <bruno@clisp.org>
52949
52950         * modules/strtoull (Depends-on): Remove unistd.
52951
52952 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52953
52954         * modules/strtoull (Depends-on): Add stdlib.
52955
52956 2008-12-11  Simon Josefsson  <simon@josefsson.org>
52957
52958         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
52959
52960 2008-12-10  Jim Meyering  <meyering@redhat.com>
52961
52962         gl_ASSERT: don't say assertions are disabled when they're not
52963         * m4/assert.m4 (gl_ASSERT): Do not make configure report
52964         "checking whether to enable assertions... no", when they are in
52965         fact enabled.  This is solely a bug in the output of configure.
52966         In spite of saying "no", NDEBUG was not defined in that case.
52967         Also, as noted by Eric Blake, leave assertions enabled upon
52968         --enable-assert=INVALID.
52969
52970 2008-12-10  Bruno Haible  <bruno@clisp.org>
52971
52972         Change MODULES.html to refer to POSIX:2008 where possible.
52973         * MODULES.html.sh (POSIX2008_URL): New variable.
52974         (posix_headers): Remove sys/timeb, ucontext.
52975         (posix2001_headers): New variable.
52976         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
52977         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
52978         index, makecontext, mktemp, pthread_attr_getstackaddr,
52979         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
52980         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
52981         (posix2001_functions): New variable.
52982         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
52983         otherwise.
52984
52985 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52986
52987         add missing include to parse-duration.c
52988         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
52989         * modules/parse-duration (Depends-on): Add xalloc.
52990
52991         fix sed script reading maint.mk
52992         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
52993         (syntax-check-rules): Use it.
52994
52995 2008-12-09  Bruno Haible  <bruno@clisp.org>
52996
52997         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
52998         MacOS X 10.4/PowerPC.
52999         Reported by Simon Josefsson.
53000
53001 2008-12-08  Jim Meyering  <meyering@redhat.com>
53002
53003         work around mingw's lack of some S_IF definitions
53004         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
53005         Reported by Simon Josefsson.
53006
53007 2008-12-08  Bruno Haible  <bruno@clisp.org>
53008
53009         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
53010         applied to variables. Needed on MacOS X 10.4/PowerPC.
53011         Reported by Simon Josefsson.
53012
53013 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
53014         and Eric Blake  <ebb9@byu.net>
53015
53016         assert: honor --enable-assert
53017         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
53018         order to honor --enable-assert, rather than treating it as a
53019         synonym for --disable-assert.
53020
53021 2008-12-08  Jim Meyering  <meyering@redhat.com>
53022
53023         * lib/posixtm.c: Remove now-useless declaration of mktime.
53024
53025         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
53026
53027 2008-12-07  Bruno Haible  <bruno@clisp.org>
53028
53029         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
53030         test_once): Mark functions as static.
53031         * tests/test-tls.c (test_tls): Likewise.
53032
53033 2008-12-07  Bruno Haible  <bruno@clisp.org>
53034
53035         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
53036         iconv_register_autodetect.
53037
53038 2008-12-07  Jim Meyering  <meyering@redhat.com>
53039
53040         posixtm.c: avoid a warning
53041         * lib/posixtm.c (posixtime): Don't initialize tm0.
53042         It's no longer needed to placate gcc4's -Wuninitialized,
53043         and the attempt to placate would elicit a new warning.
53044
53045         unicodeio.c: mark unused parameters
53046         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53047         (fallback_failure_callback): Likewise.
53048
53049 2008-12-07  Bruno Haible  <bruno@clisp.org>
53050
53051         * gnulib-tool (func_create_testdir): When building the tests
53052         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
53053         Reported by Simon Josefsson.
53054
53055 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53056
53057         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
53058
53059 2008-12-06  Bruno Haible  <bruno@clisp.org>
53060
53061         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
53062         Suggested by Eric Blake.
53063
53064 2008-12-06  Bruno Haible  <bruno@clisp.org>
53065
53066         Fix a c-stack test failure on MacOS X.
53067         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
53068         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
53069         handler for SIGBUS as well.
53070         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
53071         install a signal handler for SIGBUS as well.
53072         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
53073
53074 2008-12-06  Bruno Haible  <bruno@clisp.org>
53075
53076         Advocacy documentation.
53077         * doc/gnulib-intro.texi (Benefits): New section.
53078         * doc/gnulib.texi: Update.
53079
53080 2008-12-06  Bruno Haible  <bruno@clisp.org>
53081
53082         Document the 'manywarnings' module.
53083         * doc/manywarnings.texi: New file.
53084         * doc/gnulib.texi: Include it.
53085
53086 2008-12-05  Eric Blake  <ebb9@byu.net>
53087
53088         tests: silence some gcc warnings
53089         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
53090         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
53091         type mismatches.
53092
53093 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53094             Bruno Haible  <bruno@clisp.org>
53095
53096         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
53097
53098 2008-11-29  Jim Meyering  <meyering@redhat.com>
53099
53100         unicodeio.c: mark unused parameters
53101         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53102         (fallback_failure_callback): Likewise.
53103
53104         fts: fix a thinko
53105         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
53106         (set_stat_type): Return S_IF*-valued "type" directly.
53107         Prompted by James Youngman's spotting a related bug.
53108         Confirmed by further testing through find.
53109
53110         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
53111         * lib/fts.c (D_TYPE): Define.
53112         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
53113         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
53114         (s_ifmt_shift_bits): New function.
53115         (set_stat_type): New function.
53116         (fts_build): When not calling fts_stat, call set_stat_type
53117         to propagate dirent.d_type info to fts_read caller.
53118         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
53119         fts_statp->st_mode type information may be valid.
53120
53121 2008-11-28  Simon Josefsson  <simon@josefsson.org>
53122
53123         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
53124         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
53125         <sds@gnu.org>.
53126
53127 2008-11-20  Bruno Haible  <bruno@clisp.org>
53128
53129         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
53130         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
53131         INCLUDE_NEXT.
53132         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
53133         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
53134         * modules/math (Makefile.am): Substitute
53135         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
53136         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53137
53138 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
53139             Bruno Haible  <bruno@clisp.org>
53140
53141         * lib/stdint.in.h: Define all type macros so that their expansion is
53142         a single typedef'ed token. Fixes a compilation failure in Boost which
53143         does "using ::int8_t;".
53144
53145 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53146
53147         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
53148         gl_MANYWARN_ALL_GCC.
53149         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
53150         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
53151         * modules/manywarnings: New file.
53152         * MODULES.html.sh: Mention manywarnings module.
53153
53154 2008-11-18  Bruno Haible  <bruno@clisp.org>
53155
53156         * doc/gnulib-tool.texi (Unit tests): New section.
53157
53158 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53159
53160         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
53161         paths like 'lib/po/foo.po'.
53162
53163 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53164
53165         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
53166         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
53167
53168 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53169
53170         * m4/warnings.m4: Use CPPFLAGS to really check whether the
53171         parameter works.
53172
53173 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53174
53175         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
53176
53177 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53178
53179         * modules/parse-duration-tests: New file.
53180         * tests/test-parse-duration.sh: New file.
53181         * tests/test-parse-duration.c: New file.
53182
53183         New module 'parse-duration'.
53184         * lib/parse-duration.h: New file.
53185         * lib/parse-duration.c: New file.
53186         * modules/parse-duration: New file.
53187
53188 2008-11-17  Bruno Haible  <bruno@clisp.org>
53189
53190         * tests/test-select-out.sh: Comment out the first pipe test.
53191         Reported by Simon Josefsson.
53192
53193 2008-11-17  Bruno Haible  <bruno@clisp.org>
53194
53195         * modules/getaddrinfo (Depends-on): Add servent, hostent.
53196         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
53197         gl_HOSTENT.
53198
53199 2008-11-17  Bruno Haible  <bruno@clisp.org>
53200
53201         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
53202         -lnetwork and -lnet. Needed for Haiku and BeOS.
53203
53204 2008-11-16  Bruno Haible  <bruno@clisp.org>
53205
53206         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
53207
53208 2008-11-16  Bruno Haible  <bruno@clisp.org>
53209
53210         Avoid test failure on Haiku.
53211         * tests/test-fsync.c: Include <errno.h>.
53212         (main): Don't require that fsync (0) fails.
53213
53214 2008-11-15  Bruno Haible  <bruno@clisp.org>
53215
53216         New module 'hostent'.
53217         * modules/hostent: New file.
53218         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
53219
53220 2008-11-15  Bruno Haible  <bruno@clisp.org>
53221
53222         New module 'servent'.
53223         * modules/servent: New file.
53224         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
53225
53226 2008-11-15  Bruno Haible  <bruno@clisp.org>
53227
53228         Avoid generating same test program with two different rules.
53229         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
53230         test-frexp to test-frexp-nolibm.
53231         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
53232         test-frexpl to test-frexpl-nolibm.
53233
53234 2008-11-15  Bruno Haible  <bruno@clisp.org>
53235
53236         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
53237         $(FREXPL_LIBM).
53238
53239 2008-11-15  Bruno Haible  <bruno@clisp.org>
53240
53241         * lib/netdb.in.h: Activate the definitions also when the system's
53242         <netdb.h> has 'struct addrinfo'.
53243         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
53244         EAI_OVERFLOW or AI_NUMERICSERV.
53245         * doc/posix-headers/netdb.texi: Document the problem.
53246
53247 2008-11-15  Bruno Haible  <bruno@clisp.org>
53248
53249         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
53250
53251         Make the 'sched' module work on platforms where <sched.h> exists but
53252         is incomplete (such as Haiku).
53253         * lib/sched.in.h; Include the system's <sched.h> if it exists.
53254         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
53255         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
53256         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
53257         HAVE_STRUCT_SCHED_PARAM.
53258         * modules/sched (Depends-on): Add include_next.
53259         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
53260         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
53261         * doc/posix-headers/sched.texi: Document the issue.
53262
53263 2008-11-13  Jim Meyering  <meyering@redhat.com>
53264
53265         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
53266         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
53267         test would fail due to the difference in the Report bugs to ...
53268         line.  The expected address is empty, "<>", while the actual
53269         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
53270
53271 2008-11-12  Bruno Haible  <bruno@clisp.org>
53272
53273         lstat: don't compile lstat.c on systems lacking lstat
53274         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
53275         which don't have lstat; this is handled by lib/sys_stat.in.h already.
53276         Reported by Daniel P. Berrange via Jim Meyering.
53277
53278 2008-11-12  Jim Meyering  <meyering@redhat.com>
53279
53280         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
53281
53282 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53283
53284         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
53285         instead.
53286
53287 2008-11-12  Bruno Haible  <bruno@clisp.org>
53288
53289         * lib/unicodeio.c: Include unistr.h.
53290         (utf8_wctomb): Remove function.
53291         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
53292
53293 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53294
53295         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
53296         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
53297         <bruno@clisp.org>.
53298         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
53299
53300 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53301
53302         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
53303         * doc/gnulib.texi: Add section for warnings.
53304
53305 2008-11-11  Bruno Haible  <bruno@clisp.org>
53306
53307         * lib/sockets.h: Add a comment.
53308
53309 2008-11-11  Karl Berry  <karl@gnu.org>
53310
53311         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
53312
53313 2008-11-11  Eric Blake  <ebb9@byu.net>
53314
53315         fdl.texi: avoid git symlinks
53316         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
53317
53318 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53319
53320         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
53321
53322 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53323
53324         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
53325         (gl_WARN_ADD): Substitute $2 if literal.
53326
53327 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53328
53329         * m4/warning.m4: Remove.
53330
53331 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53332
53333         * m4/warnings.m4: Almost complete rewrite. :-)
53334
53335 2008-11-10  Simon Josefsson  <simon@josefsson.org>
53336
53337         * modules/warnings: New module.
53338         * m4/warnings.m4: New file.
53339         * MODULES.html.sh: Mention warnings module.
53340         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
53341         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53342
53343 2008-11-10  Eric Blake  <ebb9@byu.net>
53344
53345         fdl.texi: make a symlink to the latest version
53346         * doc/standards.texi: Revert today's earlier change.
53347         * doc/fdl-1.2.texi: Rename from old fdl.texi...
53348         * doc/fdl.texi: ...and replace this with a symlink to the newer
53349         fdl-1.3.texi.
53350
53351 2008-11-10  Bruno Haible  <bruno@clisp.org>
53352
53353         * tests/test-select-fd.c (main): Accept the result file name as fourth
53354         argument.
53355         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
53356         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
53357
53358 2008-11-10  Bruno Haible  <bruno@clisp.org>
53359
53360         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
53361         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
53362         as autoconf-substituted macros.
53363         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
53364         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
53365         gl_NETDB_H_DEFAULTS. Set these variables.
53366         * modules/netdb (Makefile.am): Substitute these variables.
53367
53368 2008-11-10  Eric Blake  <ebb9@byu.net>
53369
53370         standards.texi: include correct file for FDL 1.3
53371         * doc/standards.texi (GNU Free Documentation License): Change
53372         include file to pull in FDL 1.3, not 1.2.
53373
53374         fdl.texi: revert accidental change to license
53375         * doc/fdl.texi: This is FDL 1.2, not 1.3.
53376
53377 2008-11-10  Bruno Haible  <bruno@clisp.org>
53378
53379         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
53380         cross-compiling guesses also when the native compile gives no result.
53381
53382 2008-11-10  Bruno Haible  <bruno@clisp.org>
53383
53384         * lib/spawni.c (__spawni): Force variable into the stack.
53385
53386 2008-11-10  Bruno Haible  <bruno@clisp.org>
53387
53388         Add support for Haiku.
53389         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
53390         glibc and BeOS, but also on Haiku.
53391         * lib/fpurge.c (fpurge): Likewise.
53392         * lib/freadable.c (freadable): Likewise.
53393         * lib/freadahead.c (freadahead): Likewise.
53394         * lib/freading.c (freading): Likewise.
53395         * lib/freadptr.c (freadptr): Likewise.
53396         * lib/freadseek.c (freadptrinc): Likewise.
53397         * lib/fseeko.c (rpl_fseeko): Likewise.
53398         * lib/fseterr.c (fseterr): Likewise.
53399         * lib/fwritable.c (fwritable): Likewise.
53400         * lib/fwriting.c (fwriting): Likewise.
53401         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
53402
53403 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53404
53405         * lib/config.charset: Treat Haiku like BeOS.
53406
53407 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53408
53409         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
53410         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
53411
53412 2008-11-08  Bruno Haible  <bruno@clisp.org>
53413
53414         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
53415         AC_CACHE_CHECK.
53416
53417 2008-11-08  Bruno Haible  <bruno@clisp.org>
53418
53419         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
53420
53421 2008-11-08  Bruno Haible  <bruno@clisp.org>
53422
53423         * tests/test-select-fd.c: New file.
53424         * tests/test-select-in.sh: New file.
53425         * tests/test-select-out.sh: New file.
53426         * tests/test-select-stdin.c: New file.
53427         * modules/select-tests (Files): Add the new files.
53428         (Depends-on): Add gettimeofday.
53429         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
53430         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
53431         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
53432
53433 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
53434             Bruno Haible  <bruno@clisp.org>
53435
53436         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
53437
53438 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
53439
53440         * build-aux/pmccabe2html: Added support for C++ source files.
53441
53442 2008-11-05  Ben Pfaff  <blp@gnu.org>
53443
53444         Fix lib/close.c build on Windows.
53445         * modules/close (Files): Add lib/w32sock.h.
53446
53447 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
53448
53449         Accept Bison's NEWS format.
53450         * build-aux/announce-gen (print_news_deltas): Tweak
53451         $re_prefix.
53452
53453 2008-11-04  Bruno Haible  <bruno@clisp.org>
53454
53455         * modules/random_r (Maintainer): Add glibc.
53456
53457 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53458
53459         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
53460         by karl@freefriends.org (Karl Berry).
53461         * doc/alloca.texi: Likewise.
53462         * doc/c-ctype.texi: Likewise.
53463         * doc/c-strcase.texi: Likewise.
53464         * doc/c-strcaseeq.texi: Likewise.
53465         * doc/c-strcasestr.texi: Likewise.
53466         * doc/c-strstr.texi: Likewise.
53467         * doc/c-strtod.texi: Likewise.
53468         * doc/c-strtold.texi: Likewise.
53469         * doc/ctime.texi: Likewise.
53470         * doc/error.texi: Likewise.
53471         * doc/fdl.texi: Likewise.
53472         * doc/gcd.texi: Likewise.
53473         * doc/getdate.texi: Likewise.
53474         * doc/gnulib-intro.texi: Likewise.
53475         * doc/gnulib-tool.texi: Likewise.
53476         * doc/gnulib.texi: Likewise.
53477         * doc/inet_ntoa.texi: Likewise.
53478         * doc/maintain.texi: Likewise.
53479         * doc/make-stds.texi: Likewise.
53480         * doc/quote.texi: Likewise.
53481         * doc/regexprops-generic.texi: Likewise.
53482         * doc/standards.texi: Likewise.
53483         * doc/verify.texi: Likewise.
53484         * doc/visibility.texi: Likewise.
53485         * doc/gnulib.texi (GNU Free Documentation License): Include
53486         fdl-1.3.texi instead of fdl.texi.
53487
53488 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53489
53490         * doc/fdl-1.3.texi: New file, from
53491         <http://www.gnu.org/licenses/fdl-1.3.texi>.
53492         * modules/fdl-1.3: Add.
53493         * MODULES.html.sh: Add fdl-1.3.
53494
53495 2008-11-03  Bruno Haible  <bruno@clisp.org>
53496
53497         Make determination of absolute name of header file work with AIX xlc.
53498         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
53499         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
53500         preprocessing.
53501         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53502         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53503
53504 2008-11-03  Simon Josefsson  <simon@josefsson.org>
53505
53506         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
53507         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
53508         <ludo@gnu.org>.
53509
53510 2008-11-02  Bruno Haible  <bruno@clisp.org>
53511
53512         Mark 'strpbrk' obsolete.
53513         * modules/strpbrk (Status, Notice): New sections.
53514         * modules/strtok_r (Depends-on): Add strpbrk.
53515
53516 2008-11-02  Bruno Haible  <bruno@clisp.org>
53517
53518         Mark 'strdup' obsolete.
53519         * modules/strdup (Status, Notice): New sections.
53520         * modules/findprog (Depends-on): Add strdup.
53521         * modules/getaddrinfo (Depends-on): Likewise.
53522         * modules/localename (Depends-on): Likewise.
53523         * modules/relocatable-lib (Depends-on): Likewise.
53524         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
53525         * modules/relocatable-prog (Depends-on): Likewise.
53526         * modules/trim (Depends-on): Likewise.
53527         * modules/unictype/gen-ctype (Depends-on): Likewise.
53528         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53529
53530 2008-11-02  Bruno Haible  <bruno@clisp.org>
53531
53532         Mark 'strcspn' obsolete.
53533         * modules/strcspn (Status, Notice): New sections.
53534
53535 2008-11-02  Bruno Haible  <bruno@clisp.org>
53536
53537         Mark 'rmdir' obsolete.
53538         * modules/rmdir (Status, Notice): New sections.
53539         * modules/clean-temp (Depends-on): Add rmdir.
53540         * modules/openat (Depends-on): Likewise.
53541
53542 2008-11-02  Bruno Haible  <bruno@clisp.org>
53543
53544         Mark 'raise' obsolete.
53545         * modules/raise (Status, Notice): New sections.
53546         (Include): Specify <signal.h>.
53547         * modules/stdio (Depends-on): Add raise.
53548         * modules/write (Depends-on): Likewise.
53549
53550 2008-11-02  Bruno Haible  <bruno@clisp.org>
53551
53552         Mark 'memset' obsolete.
53553         * modules/memset (Status, Notice): New sections.
53554
53555 2008-11-02  Bruno Haible  <bruno@clisp.org>
53556
53557         Mark 'memmove' obsolete.
53558         * modules/memmove (Status, Notice): New sections.
53559         * modules/argp (Depends-on): Add memmove.
53560         * modules/argz (Depends-on): Likewise.
53561         * modules/canonicalize (Depends-on): Likewise.
53562         * modules/canonicalize-lgpl (Depends-on): Likewise.
53563         * modules/fts (Depends-on): Likewise.
53564         * modules/getcwd (Depends-on): Likewise.
53565         * modules/human (Depends-on): Likewise.
53566         * modules/regex (Depends-on): Likewise.
53567         * modules/striconveh (Depends-on): Likewise.
53568         * modules/trim (Depends-on): Likewise.
53569         * modules/unistr/u8-move (Depends-on): Likewise.
53570         * modules/unistr/u16-move (Depends-on): Likewise.
53571         * modules/unistr/u32-move (Depends-on): Likewise.
53572
53573 2008-11-02  Bruno Haible  <bruno@clisp.org>
53574
53575         Mark 'memcpy' obsolete.
53576         * modules/memcpy (Status, Notice): New sections.
53577
53578 2008-11-02  Bruno Haible  <bruno@clisp.org>
53579
53580         Mark 'memcmp' obsolete.
53581         * modules/memcmp (Status, Notice): New sections.
53582         * modules/argmatch (Depends-on): Add memchr.
53583         * modules/backupfile (Depends-on): Likewise.
53584         * modules/c-strcasestr (Depends-on): Likewise.
53585         * modules/crypto/des (Depends-on): Likewise.
53586         * modules/csharpcomp (Depends-on): Likewise.
53587         * modules/fnmatch (Depends-on): Likewise.
53588         * modules/git-merge-changelog (Depends-on): Likewise.
53589         * modules/isnand (Depends-on): Likewise.
53590         * modules/isnand-nolibm (Depends-on): Likewise.
53591         * modules/isnanf (Depends-on): Likewise.
53592         * modules/isnanf-nolibm (Depends-on): Likewise.
53593         * modules/isnanl (Depends-on): Likewise.
53594         * modules/isnanl-nolibm (Depends-on): Likewise.
53595         * modules/mbchar (Depends-on): Likewise.
53596         * modules/memcoll (Depends-on): Likewise.
53597         * modules/quotearg (Depends-on): Likewise.
53598         * modules/regex (Depends-on): Likewise.
53599         * modules/relocatable-prog (Depends-on): Likewise.
53600         * modules/same (Depends-on): Likewise.
53601         * modules/signbit (Depends-on): Likewise.
53602         * modules/strcasestr-simple (Depends-on): Likewise.
53603         * modules/unictype/gen-ctype (Depends-on): Likewise.
53604         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53605         * modules/uniname/uniname (Depends-on): Likewise.
53606         * modules/unistr/u8-cmp (Depends-on): Likewise.
53607
53608 2008-11-02  Bruno Haible  <bruno@clisp.org>
53609
53610         Mark 'memchr' obsolete.
53611         * modules/memchr (Status, Notice): New sections.
53612         * modules/argp (Depends-on): Add memchr.
53613         * modules/base64 (Depends-on): Likewise.
53614         * modules/c-strcasestr (Depends-on): Likewise.
53615         * modules/chdir-long (Depends-on): Likewise.
53616         * modules/fnmatch (Depends-on): Likewise.
53617         * modules/getsubopt (Depends-on): Likewise.
53618         * modules/git-merge-changelog (Depends-on): Likewise.
53619         * modules/glob (Depends-on): Likewise.
53620         * modules/strcasestr-simple (Depends-on): Likewise.
53621         * modules/strnlen (Depends-on): Likewise.
53622
53623 2008-11-02  Bruno Haible  <bruno@clisp.org>
53624
53625         Mark 'atexit' obsolete.
53626         * modules/atexit (Status, Notice): New sections.
53627         * modules/chdir-long (Depends-on): Add atexit.
53628         * modules/wait-process (Depends-on): Likewise.
53629
53630 2008-11-02  Bruno Haible  <bruno@clisp.org>
53631
53632         * gnulib-tool: New option --with-obsolete.
53633         (func_usage): Document it.
53634         (func_modules_transitive_closure): Drop obsolete dependencies if
53635         incobsolete is not true.
53636         (func_import): Read and save the incobsolete variable to the cache.
53637
53638 2008-11-02  Bruno Haible  <bruno@clisp.org>
53639
53640         * modules/TEMPLATE-EXTENDED: New field 'Status'.
53641         * gnulib-tool: New option --extract-status.
53642         (func_usage): Document it.
53643         (sed_extract_prog): Recognize it.
53644         (func_get_status): New function.
53645
53646 2008-10-30  Simon Josefsson  <simon@josefsson.org>
53647
53648         * modules/sockets (License): Change from LGPL to LGPLv2+.
53649
53650 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53651
53652         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
53653
53654 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53655
53656         * MODULES.html.sh (Support for systems lacking POSIX:2001):
53657         Mention times and sys_times.
53658         * modules/sys_times, modules/sys_times-tests: New modules.
53659         * modules/times, modules/times-tests: Likewise
53660         * m4/sys_times_h.m4: New file.
53661         * lib/sys_times.in.h: Likewise
53662         * lib/times.c: Likewise.
53663         * tests/test-sys_times.c: Likewise.
53664         * tests/test-times.c: Likewise.
53665         * doc/posix-headers/sys_times.texi: Update.
53666         * doc/posix-functions/times.texi: Update.
53667
53668 2008-10-28  Jim Meyering  <meyering@redhat.com>
53669
53670         * modules/tempname (Depends-on): Add lstat.
53671
53672         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
53673
53674 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53675
53676         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
53677         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
53678         using idiom used elsewhere in gnulib.
53679
53680 2008-10-27  Jim Meyering  <meyering@redhat.com>
53681
53682         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
53683
53684 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53685
53686         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
53687         TESTS_ENVIRONMENT, for shell scripts that needs to call built
53688         programs.
53689         * tests/test-argp-2.sh: Use $EXEEXT when needed.
53690
53691 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53692
53693         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
53694
53695 2008-10-27  Bruno Haible  <bruno@clisp.org>
53696
53697         * tests/test-lstat.c: Include <stdio.h>.
53698
53699 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53700
53701         * modules/lstat-tests: New module.
53702         * tests/test-lstat.c: New file.
53703
53704 2008-10-26  Jim Meyering  <meyering@redhat.com>
53705
53706         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
53707
53708 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53709             Bruno Haible  <bruno@clisp.org>
53710
53711         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
53712         * modules/configmake (Include): Add a note that the include must come
53713         after all system headers.
53714         * lib/javaversion.c: Include configmake.h after all other includes.
53715
53716 2008-10-26  Bruno Haible  <bruno@clisp.org>
53717
53718         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
53719         HAVE_STRUCT_RANDOM_DATA to 1.
53720         (gl_STDLIB_H): Simplify.
53721
53722 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53723
53724         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
53725         substitute HAVE_STRUCT_RANDOM_DATA.
53726         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
53727         random_data.
53728         * modules/stdlib (Makefile.am): Substitute
53729         HAVE_STRUCT_RANDOM_DATA.
53730
53731 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53732
53733         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
53734         * doc/gnulib-intro.texi (Copyright): Likewise.
53735
53736 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53737
53738         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
53739         findings.
53740
53741 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
53742             Bruno Haible  <bruno@clisp.org>
53743
53744         * lib/unistd.in.h: Include <winsock2.h>.
53745         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
53746         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
53747         Provide dummy declarations.
53748         (gethostname): Override.
53749         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
53750         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
53751         gl_PREREQ_SYS_H_WINSOCK2.
53752         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
53753         * doc/posix-functions/gethostname.texi: More details.
53754
53755 2008-10-25  Bruno Haible  <bruno@clisp.org>
53756
53757         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53758         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
53759         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
53760
53761         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
53762         here ...
53763         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
53764         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
53765         gl_UNISTD_H_DEFAULTS.
53766
53767 2008-10-25  Eric Blake  <ebb9@byu.net>
53768
53769         signbit: avoid spurious compiler failure
53770         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
53771         declarations inside function.
53772
53773 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53774             Bruno Haible  <bruno@clisp.org>
53775
53776         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
53777         * modules/random_r (Depends-on): Add stdint.
53778
53779 2008-10-24  Bruno Haible  <bruno@clisp.org>
53780
53781         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
53782         Eggert.
53783         * modules/strerror (License): Likewise.
53784
53785 2008-10-24  Jim Meyering  <meyering@redhat.com>
53786
53787         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
53788         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
53789
53790 2008-10-24  Eric Blake  <ebb9@byu.net>
53791
53792         getgroups: fix compilation when getgroups is available
53793         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
53794         but with <config.h> override of getgroups disabled.
53795
53796 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53797
53798         * doc/gnulib.texi (Header files): Add note about C++ problems.
53799         Explained by Bruno Haible <bruno@clisp.org>.
53800
53801 2008-10-23  Bruno Haible  <bruno@clisp.org>
53802
53803         Define a dummy SA_NODEFER macro on Interix.
53804         * lib/signal.in.h (SA_NODEFER): Define fallback.
53805         Reported by Aleksey Cheusov <cheusov@tut.by> via
53806         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
53807
53808 2008-10-23  Bruno Haible  <bruno@clisp.org>
53809
53810         * modules/freadahead (License): Change to LGPLv2+.
53811         Suggested by Simon Josefsson.
53812
53813 2008-10-23  Jim Meyering  <meyering@redhat.com>
53814
53815         random_r: new module
53816         * modules/random_r: New file.
53817         * m4/random_r.m4: New file.
53818         * lib/random_r.c: New file, from glibc.
53819         * modules/random_r-tests: New file.
53820         * tests/test-random_r.c: New file.
53821         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
53822          Declare.
53823         (RAND_MAX): Define.
53824         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
53825         * modules/stdlib: Substitute them, too.
53826         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
53827         * doc/glibc-functions/initstate_r.texi: Mention the new module.
53828         * doc/glibc-functions/random_r.texi: Likewise.
53829         * doc/glibc-functions/setstate_r.texi: Likewise.
53830         * doc/glibc-functions/srandom_r.texi: Likewise.
53831         * config/srclist.txt: Mention it.
53832
53833 2008-10-23  David Lutterkort  <lutter@redhat.com>
53834
53835         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
53836         link requirement
53837
53838 2008-10-23  Jim Meyering  <meyering@redhat.com>
53839
53840         selinux-h: mark parameters of stub functions as intentionally unused
53841         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
53842         * lib/se-context.in.h: Likewise.
53843
53844 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53845
53846         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
53847
53848 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53849
53850         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
53851
53852 2008-10-22  Eric Blake  <ebb9@byu.net>
53853
53854         glthread/thread: avoid compiler warning
53855         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
53856         Add unreachable abort to silence compiler.
53857
53858 2008-10-22  Eric Blake  <ebb9@byu.net>
53859
53860         netdb: also supply struct addrinfo for cygwin 1.5.x
53861         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
53862         older cygwin.
53863         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
53864         cygwin.
53865         * doc/posix-headers/netdb.texi (netdb.h): Document this.
53866
53867 2008-10-22  Bruno Haible  <bruno@clisp.org>
53868
53869         * users.txt: Update entry about pspp.
53870
53871 2008-10-21  Bruno Haible  <bruno@clisp.org>
53872
53873         Simplification.
53874         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
53875         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
53876
53877         Simplification.
53878         * lib/ioctl.c (ioctl): Don't undefine.
53879         * lib/socket.c (socket): Don't undefine.
53880
53881         Remove unused module indicator macros.
53882         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
53883         GNULIB_$1 as a C macro.
53884
53885         * doc/posix-functions/close.texi: Undo last change.
53886         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
53887         Windows platforms.
53888
53889 2008-10-21  Bruno Haible  <bruno@clisp.org>
53890
53891         Add gethostname() declaration to <unistd.h>.
53892         * lib/unistd.in.h (gethostname): New declaration.
53893         * lib/gethostname.c: Include <unistd.h>.
53894         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
53895         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
53896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
53897         and HAVE_GETHOSTNAME.
53898         * modules/gethostname (Depends-on): Add unistd.
53899         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53900         (Include): Specify <unistd.h>.
53901         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
53902         HAVE_GETHOSTNAME.
53903         * tests/test-gethostname.c: Include <unistd.h> first.
53904
53905 2008-10-21  Bruno Haible  <bruno@clisp.org>
53906
53907         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
53908         * modules/select-tests (Depends-on): Likewise.
53909         Reported by Simon Josefsson.
53910
53911 2008-10-21  Simon Josefsson  <simon@josefsson.org>
53912
53913         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
53914         * lib/accept.c: New file, based on winsock.c.
53915         * lib/bind.c: New file, based on winsock.c.
53916         * lib/connect.c: New file, based on winsock.c.
53917         * lib/getpeername.c: New file, based on winsock.c.
53918         * lib/getsockname.c: New file, based on winsock.c.
53919         * lib/getsockopt.c: New file, based on winsock.c.
53920         * lib/ioctl.c: New file, based on winsock.c.
53921         * lib/listen.c: New file, based on winsock.c.
53922         * lib/recv.c: New file, based on winsock.c.
53923         * lib/recvfrom.c: New file, based on winsock.c.
53924         * lib/send.c: New file, based on winsock.c.
53925         * lib/sendto.c: New file, based on winsock.c.
53926         * lib/setsockopt.c: New file, based on winsock.c.
53927         * lib/shutdown.c: New file, based on winsock.c.
53928         * lib/socket.c: New file, based on winsock.c.
53929         * lib/w32sock.h: New file, based on winsock.c.
53930         * lib/winsock.c: Remove file.
53931         * modules/accept: Likewise.
53932         * modules/bind: Likewise.
53933         * modules/connect: Likewise.
53934         * modules/getpeername: Likewise.
53935         * modules/getsockname: Likewise.
53936         * modules/getsockopt: Likewise.
53937         * modules/ioctl: Likewise.
53938         * modules/listen: Likewise.
53939         * modules/recv: Likewise.
53940         * modules/recvfrom: Likewise.
53941         * modules/send: Likewise.
53942         * modules/sendto: Likewise.
53943         * modules/setsockopt: Likewise.
53944         * modules/shutdown: Likewise.
53945         * modules/socket: Use socket.c instead of winsock.c.
53946         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
53947         * doc/posix-functions/accept.texi: Doc fix.
53948         * doc/posix-functions/bind.texi: Doc fix.
53949         * doc/posix-functions/close.texi: Doc fix.
53950         * doc/posix-functions/connect.texi: Doc fix.
53951         * doc/posix-functions/getpeername.texi: Doc fix.
53952         * doc/posix-functions/getsockname.texi: Doc fix.
53953         * doc/posix-functions/getsockopt.texi: Doc fix.
53954         * doc/posix-functions/ioctl.texi: Doc fix.
53955         * doc/posix-functions/listen.texi: Doc fix.
53956         * doc/posix-functions/recv.texi: Doc fix.
53957         * doc/posix-functions/recvfrom.texi: Doc fix.
53958         * doc/posix-functions/send.texi: Doc fix.
53959         * doc/posix-functions/sendto.texi: Doc fix.
53960         * doc/posix-functions/setsockopt.texi: Doc fix.
53961         * doc/posix-functions/shutdown.texi: Doc fix.
53962         * doc/posix-functions/socket.texi: Doc fix.
53963
53964 2008-10-20  Bruno Haible  <bruno@clisp.org>
53965
53966         Take into account the role of SIGABRT_COMPAT on Windows 2008.
53967         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
53968         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
53969         as an alias for SIGABRT.
53970         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
53971         (sigaction): Map it to SIGABRT.
53972         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
53973
53974 2008-10-20  Bruno Haible  <bruno@clisp.org>
53975
53976         * lib/fts.c: Don't include lstat.h.
53977         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
53978
53979         Move the lstat() declaration to <sys/stat.h>.
53980         * lib/lstat.h: Remove file.
53981         * lib/sys_stat.in.h: Add special invocation convention.
53982         (lstat): New declaration.
53983         * lib/lstat.c (orig_lstat): New function.
53984         (rpl_lstat): Use orig_lstat instead of lstat.
53985         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
53986         AC_C_INLINE. Set REPLACE_LSTAT.
53987         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
53988         and REPLACE_LSTAT.
53989         * modules/lstat (Files): Remove lib/lstat.h.
53990         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53991         (Include): Specify <sys/stat.h> instead of lstat.h.
53992         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
53993         REPLACE_LSTAT.
53994         * NEWS: Mention the change.
53995
53996 2008-10-20  Bruno Haible  <bruno@clisp.org>
53997
53998         * modules/posix_spawn-tests: New file.
53999         * tests/test-posix_spawn3.c: New file.
54000
54001 2008-10-20  Bruno Haible  <bruno@clisp.org>
54002
54003         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
54004         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54005         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
54006         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54007         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
54008
54009 2008-10-20  Bruno Haible  <bruno@clisp.org>
54010
54011         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
54012         of posix_spawn on AIX 5.3.
54013
54014 2008-10-20  Bruno Haible  <bruno@clisp.org>
54015
54016         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
54017
54018 2008-10-20  Bruno Haible  <bruno@clisp.org>
54019
54020         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
54021         of AC_LANG_PROGRAM.
54022
54023 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54024
54025         * lib/netdb.in.h: Don't define GNU specific constants until they
54026         are supported or needed.  Reported by Bruno Haible
54027         <bruno@clisp.org>.
54028
54029 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54030
54031         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
54032
54033 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54034
54035         * lib/getaddrinfo.h: Remove file.
54036         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
54037         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
54038         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
54039         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
54040         * modules/netdb: Substitute GNULIB_GETADDRINFO.
54041         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
54042         * tests/test-getaddrinfo.c: Likewise.
54043         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
54044         * NEWS: Mention change.
54045
54046 2008-10-19  Bruno Haible  <bruno@clisp.org>
54047
54048         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
54049
54050 2008-10-19  Bruno Haible  <bruno@clisp.org>
54051
54052         * lib/wait-process.c: Include simply <sys/wait.h>.
54053         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
54054         WIFSTOPPED): Remove fallback definitions.
54055         * modules/wait-process (Depends-on): Add sys_wait.
54056
54057         New module 'sys_wait'.
54058         * modules/sys_wait: New file.
54059         * lib/sys_wait.in.h: New file, partially copied from
54060         lib/wait-process.c.
54061         * m4/sys_wait_h.m4: New file.
54062         * doc/posix-headers/sys_wait.texi: Mention the new module.
54063
54064 2008-10-19  Bruno Haible  <bruno@clisp.org>
54065
54066         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
54067
54068 2008-10-19  Bruno Haible  <bruno@clisp.org>
54069
54070         Assume that waitpid() fills an 'int' status, not a 'union wait'.
54071         * lib/wait-process.c (WAIT_T): Remove type.
54072         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
54073         (wait_subprocess): Update.
54074
54075 2008-10-19  Bruno Haible  <bruno@clisp.org>
54076
54077         New module 'atoll'.
54078         * modules/atoll: New file.
54079         * lib/stdlib.in.h (atoll): New declaration.
54080         * lib/atoll.c: New file, from glibc with modifications.
54081         * m4/atoll.m4: New file.
54082         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
54083         HAVE_ATOLL.
54084         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
54085         * doc/posix-functions/atoll.texi: Mention the new module.
54086
54087 2008-10-19  Bruno Haible  <bruno@clisp.org>
54088
54089         Add strtoull() declaration to <stdlib.h>.
54090         * lib/stdlib.in.h (strtoull): New declaration.
54091         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54092         Set HAVE_STRTOULL.
54093         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
54094         HAVE_STRTOULL.
54095         * modules/strtoull (Depends-on): Add stdlib.
54096         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54097         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
54098         HAVE_STRTOULL.
54099
54100 2008-10-19  Bruno Haible  <bruno@clisp.org>
54101
54102         Add strtoll() declaration to <stdlib.h>.
54103         * lib/stdlib.in.h (strtoll): New declaration.
54104         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54105         Set HAVE_STRTOLL.
54106         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
54107         HAVE_STRTOLL.
54108         * modules/strtoll (Depends-on): Add stdlib.
54109         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54110         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
54111
54112 2008-10-19  Bruno Haible  <bruno@clisp.org>
54113
54114         * modules/bcopy (Depends-on): Add strings.
54115         (Include): Specify <strings.h>.
54116
54117 2008-10-19  Bruno Haible  <bruno@clisp.org>
54118
54119         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
54120
54121 2008-10-19  Bruno Haible  <bruno@clisp.org>
54122
54123         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
54124         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
54125         mingw.
54126
54127 2008-10-19  Bruno Haible  <bruno@clisp.org>
54128
54129         * lib/atanl.c: Don't include isnanl.h.
54130         * lib/cosl.c: Likewise.
54131         * lib/ldexpl.c: Likewise.
54132         * lib/logl.c: Likewise.
54133         * lib/sinl.c: Likewise.
54134         * lib/sqrtl.c: Likewise.
54135         * lib/tanl.c: Likewise.
54136
54137         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
54138         * lib/isnanf.h: Remove file.
54139         * lib/isnand.h: Remove file.
54140         * lib/isnanl.h: Remove file.
54141         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
54142         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
54143         macros.
54144         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
54145         HAVE_ISNANF, don't define it as a C macro.
54146         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
54147         HAVE_ISNAND, don't define it as a C macro.
54148         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
54149         HAVE_ISNANL, don't define it as a C macro.
54150         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
54151         HAVE_ISNAN[FDL].
54152         * modules/isnanf (Files): Remove lib/isnanf.h.
54153         (Depends-on): Add math.
54154         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54155         (Include): Specify <math.h> instead of isnanf.h.
54156         * modules/isnand (Files): Remove lib/isnand.h.
54157         (Depends-on): Add math.
54158         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54159         (Include): Specify <math.h> instead of isnand.h.
54160         * modules/isnanl (Files): Remove lib/isnanl.h.
54161         (Depends-on): Add math.
54162         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54163         (Include): Specify <math.h> instead of isnanl.h.
54164         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
54165         HAVE_ISNAN[FDL].
54166         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
54167         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
54168         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
54169         * NEWS: Mention the change.
54170
54171 2008-10-18  Bruno Haible  <bruno@clisp.org>
54172
54173         Add getusershell(), setusershell(), endusershell() declarations to
54174         <unistd.h>.
54175         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
54176         declarations.
54177         * lib/getusershell.c: Include unistd.h.
54178         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
54179         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54180         HAVE_GETUSERSHELL.
54181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
54182         and HAVE_GETUSERSHELL.
54183         * modules/getusershell (Depends-on): Add unistd, extensions.
54184         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54185         (Include): Specify <unistd.h>.
54186         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
54187         HAVE_GETUSERSHELL.
54188
54189 2008-10-18  Bruno Haible  <bruno@clisp.org>
54190
54191         Add a getloadavg() declaration to <stdlib.h>.
54192         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
54193         getloadavg declaration.
54194         (getloadavg): New declaration.
54195         * lib/getloadavg.c: Include <stdlib.h> first.
54196         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
54197         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
54198         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
54199         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
54200         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54201         * modules/getloadavg (Depends-on): Add stdlib, extensions.
54202         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54203         (Include): Specify <stdlib.h>.
54204         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
54205         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54206
54207 2008-10-18  Bruno Haible  <bruno@clisp.org>
54208
54209         * lib/dirchownmod.c: Don't include lchmod.h.
54210
54211         Move the lchmod() declaration to <sys/stat.h>.
54212         * lib/lchmod.h: Remove file.
54213         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
54214         (lchmod): New declaration, moved here from lib/lchown.h.
54215         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
54216         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
54217         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
54218         and HAVE_LCHMOD.
54219         * modules/lchmod (Files): Remove lib/lchmod.h.
54220         (Depends-on): Add sys_stat, extensions.
54221         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54222         (Include): Specify <sys/stat.h> instead of lchmod.h.
54223         * modules/sys_stat (Depends-on): Add link-warning.
54224         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
54225         definition of GL_LINK_WARNING.
54226         * NEWS: Mention the change.
54227
54228 2008-10-18  Bruno Haible  <bruno@clisp.org>
54229
54230         * lib/fchdir.c: Don't include dirfd.h.
54231         * lib/fts.c: Likewise.
54232         * lib/getcwd.c: Likewise.
54233         * lib/glob.c: Likewise.
54234
54235         Move the dirfd() declaration to <dirent.h>.
54236         * lib/dirfd.h: Remove file.
54237         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
54238         (dirfd): New declaration.
54239         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
54240         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
54241         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
54242         HAVE_DECL_DIRFD.
54243         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
54244         HAVE_DECL_DIRFD.
54245         * modules/dirfd (Files): Remove lib/dirfd.h.
54246         (Depends-on): Add dirent, extensions.
54247         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
54248         (Include): Specify <dirent.h> instead of dirfd.h.
54249         * modules/dirent (Depends-on): Add link-warning.
54250         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
54251         definition of GL_LINK_WARNING.
54252         * NEWS: Mention the change.
54253
54254 2008-10-18  Bruno Haible  <bruno@clisp.org>
54255
54256         Move the euidaccess() declaration to <unistd.h>.
54257         * lib/euidaccess.h: Remove file.
54258         * lib/unistd.in.h (euidaccess): New declaration.
54259         * lib/euidaccess.c: Don't include euidaccess.h.
54260         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
54261         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
54262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
54263         and HAVE_EUIDACCESS.
54264         * modules/euidaccess (Files): Remove lib/euidaccess.h.
54265         (Depends-on): Add unistd.
54266         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54267         (Include): Specify <unistd.h> instead of euidaccess.h.
54268         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
54269         HAVE_EUIDACCESS.
54270         * NEWS: Mention the change.
54271
54272 2008-10-18  Bruno Haible  <bruno@clisp.org>
54273
54274         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
54275
54276         Move the getdomainname() declaration to <unistd.h>.
54277         * lib/getdomainname.h: Remove file.
54278         * lib/unistd.in.h (getdomainname): New declaration.
54279         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
54280         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
54281         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54282         HAVE_GETDOMAINNAME.
54283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54284         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
54285         * modules/getdomainname (Files): Remove lib/getdomainname.h.
54286         (Depends-on): Add unistd, extensions.
54287         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54288         (Includes): Specify <unistd.h> instead of getdomainname.h.
54289         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
54290         HAVE_GETDOMAINNAME.
54291         * NEWS: Mention the change.
54292
54293 2008-10-18  Bruno Haible  <bruno@clisp.org>
54294
54295         * modules/dirent: New file.
54296         * m4/dirent_h.m4: New file.
54297         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
54298         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
54299         * modules/fchdir (Files): Remove lib/dirent.in.h.
54300         (Depends-on): Add dirent.
54301         (Makefile.am): Move rules to modules/dirent.
54302         * doc/posix-headers/dirent.texi: Mention the new module.
54303
54304 2008-10-18  Bruno Haible  <bruno@clisp.org>
54305
54306         Avoid -Wunused-parameter warnings in public gnulib header files.
54307         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
54308         macro.
54309         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
54310
54311 2008-10-18  Bruno Haible  <bruno@clisp.org>
54312
54313         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
54314         * doc/glibc-functions/error.texi: Mention the module 'error'.
54315         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
54316         * doc/glibc-functions/getdomainname.texi: Mention the module
54317         'getdomainname'.
54318         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
54319         * doc/glibc-functions/getpagesize.texi: Mention the module
54320         'getpagesize'.
54321         * doc/glibc-functions/getusershell.texi: Mention the module
54322         'getusershell'.
54323         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
54324         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
54325         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
54326         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
54327         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
54328         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
54329         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
54330         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
54331         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
54332         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
54333         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
54334         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
54335         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
54336         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
54337
54338 2008-10-17  Bruno Haible  <bruno@clisp.org>
54339
54340         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
54341         HP-UX and IRIX, use -0.0L.
54342         * tests/test-ceill.c (minus_zero): Likewise.
54343         * tests/test-floorl.c (minus_zero): Likewise.
54344         * tests/test-frexpl.c (minus_zero): Likewise.
54345         * tests/test-isnan.c (minus_zerol): Likewise.
54346         * tests/test-isnanl.h (minus_zero): Likewise.
54347         * tests/test-ldexpl.c (minus_zero): Likewise.
54348         * tests/test-roundl.c (minus_zero): Likewise.
54349         * tests/test-signbit.c (minus_zerol): Likewise.
54350         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
54351         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
54352         * tests/test-truncl.c (minus_zero): Likewise.
54353         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
54354         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
54355         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
54356         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
54357
54358 2008-10-17  Bruno Haible  <bruno@clisp.org>
54359
54360         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
54361         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
54362         that it gets activated only for gcc >= 3.0.
54363         * lib/dirent.in.h: Likewise.
54364         * lib/errno.in.h: Likewise.
54365         * lib/fcntl.in.h: Likewise.
54366         * lib/float.in.h: Likewise.
54367         * lib/iconv.in.h: Likewise.
54368         * lib/inttypes.in.h: Likewise.
54369         * lib/locale.in.h: Likewise.
54370         * lib/math.in.h: Likewise.
54371         * lib/netdb.in.h: Likewise.
54372         * lib/netinet_in.in.h: Likewise.
54373         * lib/search.in.h: Likewise.
54374         * lib/signal.in.h: Likewise.
54375         * lib/spawn.in.h: Likewise.
54376         * lib/stdarg.in.h: Likewise.
54377         * lib/stdint.in.h: Likewise.
54378         * lib/stdio.in.h: Likewise.
54379         * lib/stdlib.in.h: Likewise.
54380         * lib/string.in.h: Likewise.
54381         * lib/strings.in.h: Likewise.
54382         * lib/sys_file.in.h: Likewise.
54383         * lib/sys_ioctl.in.h: Likewise.
54384         * lib/sys_select.in.h: Likewise.
54385         * lib/sys_socket.in.h: Likewise.
54386         * lib/sys_stat.in.h: Likewise.
54387         * lib/sys_time.in.h: Likewise.
54388         * lib/sysexits.in.h: Likewise.
54389         * lib/time.in.h: Likewise.
54390         * lib/unistd.in.h: Likewise.
54391         * lib/wchar.in.h: Likewise.
54392         * lib/wctype.in.h: Likewise.
54393         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54394
54395 2008-10-17  Jim Meyering  <meyering@redhat.com>
54396
54397         ignore-value: don't depend on inline module
54398         * modules/ignore-value (Depends-on): Remove 'inline'.
54399         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
54400         Suggestion from Bruno Haible.
54401
54402 2008-10-17  Bruno Haible  <bruno@clisp.org>
54403
54404         New implementation of condition variables for Win32.
54405         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
54406         (gl_linked_waitqueue_t): New type.
54407         (gl_cond_t): Use it.
54408         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
54409         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
54410         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
54411         (glthread_cond_init_func, glthread_cond_wait_func,
54412         glthread_cond_timedwait_func, glthread_cond_signal_func,
54413         glthread_cond_broadcast_func, glthread_cond_destroy_func):
54414         Reimplemented on the basis of gl_linked_waitqueue_t.
54415         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
54416         gl_waitqueue_t.
54417         (gl_rwlock_t): Update.
54418         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
54419
54420 2008-10-17  Simon Josefsson  <simon@josefsson.org>
54421
54422         * modules/recvfrom (Depends-on): Add dependency on getpeername.
54423         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54424
54425 2008-10-17  Jim Meyering  <meyering@redhat.com>
54426
54427         ignore-value: new module
54428         * modules/ignore-value: New file.
54429         * lib/ignore-value.h: New file.
54430         * MODULES.html.sh (Compiler warning management): New section,
54431         just for this module.  More to come.
54432
54433 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54434
54435         open-safer.c: avoid 'signed and unsigned in conditional...' warning
54436         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
54437         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
54438
54439 2008-10-16  Jim Meyering  <meyering@redhat.com>
54440
54441         openat-die.c: avoid 'no previous prototype' warning
54442         * lib/openat-die.c: Include "openat.h".
54443         Reported by Reuben Thomas <rrt@sc3d.org>.
54444
54445 2008-10-16  Simon Josefsson  <simon@josefsson.org>
54446
54447         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
54448         * lib/netdb.in.h: Fix typo.
54449         Reported by Bruno Haible  <bruno@clisp.org>
54450
54451         * lib/netdb.in.h: Include sys/socket.h for platforms without
54452         netdb.h, to get structures like hostent on MinGW.
54453         * modules/netdb (Depends-on): Add sys_socket.
54454
54455 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54456
54457         * modules/netdb, modules/netdb-tests: New file.
54458         * m4/netdb_h.m4: New file.
54459         * lib/netdb.in.h: Add, currently just an empty file pending
54460         definitions.
54461         * tests/test-netdb.c: New file.
54462         * doc/posix-headers/netdb.texi: Mention that we replace it if
54463         needed.
54464         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54465         netdb.
54466
54467 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54468
54469         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
54470         with code.
54471
54472 2008-10-13  Bruno Haible  <bruno@clisp.org>
54473
54474         * lib/glthread/cond.c (glthread_cond_wait_func,
54475         glthread_cond_timedwait_func): Add a comment.
54476
54477 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54478
54479         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
54480         * tests/test-select.c: Likewise,
54481
54482 2008-10-13  Bruno Haible  <bruno@clisp.org>
54483
54484         * lib/glthread/cond.c (glthread_cond_wait_func,
54485         glthread_cond_timedwait_func): Fix variable name.
54486         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54487
54488 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
54489
54490         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
54491         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
54492         struct sockaddr.sa_len.
54493         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
54494
54495 2008-10-13  Simon Josefsson  <simon@josefsson.org>
54496
54497         * build-aux/pmccabe2html: Add css and css_url parameters.
54498
54499 2008-10-12  Bruno Haible  <bruno@clisp.org>
54500
54501         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
54502         calling aclx_get.
54503         Reported by Rainer Tammer <tammer@tammer.net>.
54504
54505 2008-10-12  Bruno Haible  <bruno@clisp.org>
54506
54507         Use msvcrt aware primitives for creation/termination of Win32 threads.
54508         * lib/glthread/thread.c: Include <process.h>.
54509         (glthread_create_func): Use _beginthreadex instead of CreateThread.
54510         (wrapper_func): Update signature.
54511         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
54512
54513 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54514             Bruno Haible  <bruno@clisp.org>
54515
54516         Provide a Win32 implementation of the 'cond' module.
54517         * lib/glthread/cond.h [USE_WIN32]: New implementation.
54518         * lib/glthread/cond.c (glthread_cond_init_func,
54519         glthread_cond_wait_func, glthread_cond_timedwait_func,
54520         glthread_cond_signal_func, glthread_cond_broadcast_func,
54521         glthread_cond_destroy_func) [USE_WIN32]: New functions.
54522         * modules/cond (Dependencies): Add gettimeofday.
54523
54524 2008-10-11  Bruno Haible  <bruno@clisp.org>
54525
54526         Make sleep work on older versions of mingw.
54527         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
54528         only whether it exists.
54529         * doc/posix-functions/sleep.texi: Mention the problem with older
54530         versions of mingw.
54531
54532 2008-10-11  Bruno Haible  <bruno@clisp.org>
54533
54534         New module 'shutdown'.
54535         * modules/shutdown: New file.
54536         * lib/sys_socket.in.h (shutdown): New declaration.
54537         * lib/winsock.c (shutdown): New function.
54538         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
54539         GNULIB_SHUTDOWN.
54540         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
54541         * doc/posix-functions/shutdown.texi: Document the new module.
54542
54543 2008-10-11  Jim Meyering  <meyering@redhat.com>
54544
54545         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
54546
54547 2008-10-11  Bruno Haible  <bruno@clisp.org>
54548
54549         New module 'fclose'.
54550         * modules/fclose: New file.
54551         * lib/stdio.in.h (fclose): New declaration.
54552         * lib/fclose.c: New file.
54553         * m4/fclose.m4: New file.
54554         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
54555         REPLACE_FCLOSE.
54556         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
54557         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
54558         REPLACE_FCLOSE.
54559         * modules/close (Depends-on): fclose.
54560         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
54561
54562 2008-10-11  Bruno Haible  <bruno@clisp.org>
54563
54564         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
54565         set errno and don't call _close.
54566
54567 2008-10-10  Bruno Haible  <bruno@clisp.org>
54568
54569         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
54570         ACL, not afterwards. Fixes test failure on Cygwin.
54571
54572 2008-10-09  Ben Pfaff  <blp@gnu.org>
54573
54574         * build-aux/announce-gen: Fix gnulib version related part of usage
54575         message.  Die with a useful error message if no tarballs are
54576         found.
54577
54578 2008-10-10  Jim Meyering  <meyering@redhat.com>
54579
54580         bootstrap: use git's --depth=N option only if it's supported
54581         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
54582         recognize the --depth option.  Reported by Pádraig Brady.
54583
54584 2008-10-09  Bruno Haible  <bruno@clisp.org>
54585
54586         New module 'ioctl'.
54587         * modules/ioctl: New file.
54588         * lib/sys_socket.in.h (ioctl): Remove declaration.
54589         * lib/winsock.c: Include <sys/ioctl.h>.
54590         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
54591         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54592         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
54593         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
54594         * doc/posix-functions/ioctl.texi: Mention the new module.
54595
54596 2008-10-09  Bruno Haible  <bruno@clisp.org>
54597
54598         New module 'sys_ioctl'.
54599         * lib/sys_ioctl.in.h: New file.
54600         * m4/sys_ioctl_h.m4: New file.
54601         * modules/sys_ioctl: New file.
54602         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
54603
54604 2008-10-09  Bruno Haible  <bruno@clisp.org>
54605
54606         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
54607         * lib/winsock.c: Include <stdarg.h>.
54608         (rpl_ioctl): Change to second argument 'int' and then varargs.
54609
54610 2008-10-09  Bruno Haible  <bruno@clisp.org>
54611
54612         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
54613         when the sys_socket module is present and the system has <winsock2.h>.
54614
54615 2008-10-09  Bruno Haible  <bruno@clisp.org>
54616
54617         * doc/posix-functions/close.texi: Mention module 'close' instead of
54618         module 'sys_socket'.
54619
54620 2008-10-09  Bruno Haible  <bruno@clisp.org>
54621
54622         * doc/glibc-headers/sys_ioctl.texi: New file.
54623         * doc/gnulib.texi: Include it.
54624
54625 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54626             Bruno Haible  <bruno@clisp.org>
54627
54628         Combine the two replacements of 'close'.
54629         * lib/sys_socket.in.h (close): Define to a reminder to include
54630         <unistd.h>.
54631         (_gl_close_fd_maybe_socket): New declaration.
54632         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
54633         * lib/winsock.c (close): Remove undefinition.
54634         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
54635         needed for the gnulib module 'close'.
54636         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
54637         define to an error symbol or to a warning, if suitable.
54638         * lib/close.c: Include <sys/socket.h>.
54639         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
54640         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
54641         UNISTD_H_HAVE_WINSOCK2_H.
54642         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
54643         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54644         UNISTD_H_HAVE_WINSOCK2_H.
54645         * modules/sys_socket (Files): Add m4/unistd_h.m4.
54646         (configure.ac): Set a module indicator.
54647         (Makefile.am): Substitute GNULIB_CLOSE.
54648         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
54649         * modules/poll-tests (Depends-on): Add close.
54650         * modules/select-tests (Depends-on): Likewise.
54651
54652 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54653             Bruno Haible  <bruno@clisp.org>
54654
54655         New module 'close'.
54656         * modules/close: New file.
54657         * lib/unistd.in.h (close): Move declaration out of the
54658         FCHDIR_REPLACEMENT scope.
54659         (_gl_unregister_fd): New declaration.
54660         * lib/close.c: New file.
54661         * lib/fchdir.c (rpl_close): Remove function.
54662         * m4/close.m4: New file.
54663         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54664         close.
54665         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
54666         REPLACE_CLOSE.
54667         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
54668         REPLACE_CLOSE.
54669         * modules/fchdir (Depends-on): Add close.
54670
54671 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54672             Bruno Haible  <bruno@clisp.org>
54673
54674         * lib/fcntl.in.h (open): Simplify conditionals.
54675         (_gl_register_fd): New declaration.
54676         * lib/fchdir.c (rpl_open): Remove function.
54677         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
54678         also.
54679         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
54680         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54681         open.
54682
54683 2008-10-09  Jim Meyering  <meyering@redhat.com>
54684
54685         GNUmakefile: use the more name-space-friendly "_version"
54686         * top/GNUmakefile (_dummy): Update.
54687         (_version): Rename from "version".
54688
54689 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54690             Bruno Haible  <bruno@clisp.org>
54691
54692         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
54693         rpl_close.
54694         (_gl_register_fd): New function, extracted from rpl_open.
54695         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
54696         (rpl_open, rpl_opendir): Use _gl_register_fd.
54697
54698 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54699
54700         Fix organization of 'open' replacement.
54701         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
54702         (gl_FUNC_OPEN): Use it.
54703         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
54704
54705 2008-10-08  Bruno Haible  <bruno@clisp.org>
54706
54707         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
54708
54709 2008-10-08  Simon Josefsson  <simon@josefsson.org>
54710
54711         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
54712         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
54713         listen).
54714
54715 2008-10-08  Eric Blake  <ebb9@byu.net>
54716
54717         GNUmakefile: add 'make version' target
54718         * top/GNUmakefile (_curr-ver): Split version update rules...
54719         (version): ...into a target.
54720
54721 2008-10-07  Bruno Haible  <bruno@clisp.org>
54722
54723         Use a more portable replacement expression for -0.0L.
54724         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
54725         instead of -0.0L. Fix m4 quotation.
54726
54727         * tests/test-signbit.c: Include <float.h>.
54728         (minus_zero): New variable.
54729         (test_signbitl): Use minus_zero instead of -zero.
54730         * modules/signbit-tests (Depends-on): Add float.
54731
54732         * tests/test-ceill.c: Include <float.h>.
54733         (zero): Remove variable.
54734         (minus_zero): New variable.
54735         (main): Use minus_zero instead of -zero.
54736         * modules/ceill-tests (Depends-on): Add float.
54737
54738         * tests/test-floorl.c: Include <float.h>.
54739         (zero): Remove variable.
54740         (minus_zero): New variable.
54741         (main): Use minus_zero instead of -zero.
54742         * modules/floorl-tests (Depends-on): Add float.
54743
54744         * tests/test-roundl.c: Include <float.h>.
54745         (zero): Remove variable.
54746         (minus_zero): New variable.
54747         (main): Use minus_zero instead of -zero.
54748         * modules/roundl-tests (Depends-on): Add float.
54749
54750         * tests/test-truncl.c: Include <float.h>.
54751         (zero): Remove variable.
54752         (minus_zero): New variable.
54753         (main): Use minus_zero instead of -zero.
54754         * modules/truncl-tests (Depends-on): Add float.
54755
54756         * tests/test-frexpl.c (zero): Remove variable.
54757         (minus_zero): New variable.
54758         (main): Use minus_zero instead of -zero.
54759         * modules/frexpl-tests (Depends-on): Add float.
54760
54761         * tests/test-isnan.c (zerol): Remove variable.
54762         (minus_zerol): New variable.
54763         (test_long_double): Use minus_zerol instead of -zerol.
54764         * modules/isnan-tests (Depends-on): Add float.
54765
54766         * tests/test-isnanl.h (zero): Remove variable.
54767         (minus_zero): New variable.
54768         (main): Use minus_zero instead of -zero.
54769         * modules/isnanl-nolibm-tests (Depends-on): Add float.
54770         * modules/isnanl-tests (Depends-on): Add float.
54771
54772         * tests/test-ldexpl.c (zero): Remove variable.
54773         (minus_zero): New variable.
54774         (main): Use minus_zero instead of -zero.
54775         * modules/ldexpl-tests (Depends-on): Add float.
54776
54777         * tests/test-snprintf-posix.h (zerol): Remove variable.
54778         (minus_zerol): New variable.
54779         (test_function): Use minus_zerol instead of -zerol.
54780         * modules/snprintf-posix-tests (Depends-on): Add float.
54781         * modules/vsnprintf-posix-tests (Depends-on): Add float.
54782
54783         * tests/test-sprintf-posix.h (zerol): Remove variable.
54784         (minus_zerol): New variable.
54785         (test_function): Use minus_zerol instead of -zerol.
54786         * modules/sprintf-posix-tests (Depends-on): Add float.
54787         * modules/vsprintf-posix-tests (Depends-on): Add float.
54788
54789         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
54790         (minus_zerol): New variable.
54791         (test_function): Use minus_zerol instead of -zerol.
54792         * modules/vasnprintf-posix-tests (Depends-on): Add float.
54793
54794         * tests/test-vasprintf-posix.c (zerol): Remove variable.
54795         (minus_zerol): New variable.
54796         (test_function): Use minus_zerol instead of -zerol.
54797         * modules/vasprintf-posix-tests (Depends-on): Add float.
54798
54799 2008-10-07  Simon Josefsson  <simon@josefsson.org>
54800
54801         * MODULES.html.sh (Support for building documentation): Mention
54802         pmccabe2html.  Sort entries.
54803
54804         Add pmccabe2html module, from gnupdf.
54805         * build-aux/pmccabe.css: New file.
54806         * build-aux/pmccabe2html: New file.
54807         * m4/pmccabe2html.m4: New file.
54808         * modules/pmccabe2html: New file.
54809
54810 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
54811
54812         flock: new module
54813         * MODULES.html.sh: Add to list of modules.
54814         * lib/flock.c: flock implementation for Windows and Unix systems
54815         which have fcntl.
54816         * doc/glibc-functions/flock.texi: Update documentation.
54817         * lib/sys_file.in.h: <sys/file.h> header file.
54818         * m4/flock.m4: M4 macros.
54819         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
54820         * modules/flock: flock module.
54821         * modules/flock-tests: flock tests module.
54822         * modules/sys_file: sys/file.h module.
54823         * tests/test-flock.c: test suite for flock.
54824
54825 2008-10-06  Jim Meyering  <meyering@redhat.com>
54826
54827         bootstrap: check for LT_INIT more portably still ;-)
54828         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
54829         Spotted by Bruno Haible.
54830
54831 2008-10-06  Eric Blake  <ebb9@byu.net>
54832
54833         test-signbit: avoid tripping Irix cc bug on -0.0L
54834         * tests/test-signbit.c (minus_zerol): Delete, and replace with
54835         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
54836         entire testsuite consistent and avoids an Irix 6.2 bug.
54837
54838 2008-10-05  Bruno Haible  <bruno@clisp.org>
54839             Jim Meyering  <jim@meyering.net>
54840
54841         Add an option for ignoring EPIPE during close_stdout.
54842         * lib/closeout.h: Include <stdbool.h>.
54843         (close_stdout_set_ignore_EPIPE): New declaration.
54844         * lib/closeout.c: Include <stdbool.h>.
54845         (ignore_EPIPE): New variable.
54846         (close_stdout_set_ignore_EPIPE): New function.
54847         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
54848         * lib/close-stream.c (close_stream): Mention the possible EPIPE
54849         failure.
54850         * modules/closeout (Depends-on): Add stdbool.
54851
54852 2008-10-05  Bruno Haible  <bruno@clisp.org>
54853
54854         * modules/accept: New file.
54855         * modules/bind: New file.
54856         * modules/connect: New file.
54857         * modules/getpeername: New file.
54858         * modules/getsockname: New file.
54859         * modules/getsockopt: New file.
54860         * modules/listen: New file.
54861         * modules/recv: New file.
54862         * modules/recvfrom: New file.
54863         * modules/send: New file.
54864         * modules/sendto: New file.
54865         * modules/setsockopt: New file.
54866         * modules/socket: New file.
54867         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
54868         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
54869         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
54870         the particular module is requested. Add a link warning when the
54871         particular module is not requested.
54872         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
54873         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
54874         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
54875         the particular module is requested.
54876         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
54877         gl_SYS_SOCKET_H_DEFAULTS): New macros.
54878         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
54879         * modules/sys_socket (Depends-on): Add link-warning.
54880         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
54881         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
54882         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
54883         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
54884         GL_LINK_WARNING.
54885         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
54886         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
54887         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
54888         * doc/posix-functions/getpeername.texi: Mention the new module
54889         'getpeername'.
54890         * doc/posix-functions/getsockname.texi: Mention the new module
54891         'getsockname'.
54892         * doc/posix-functions/getsockopt.texi: Mention the new module
54893         'getsockopt'.
54894         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
54895         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
54896         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
54897         * doc/posix-functions/send.texi: Mention the new module 'send'.
54898         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
54899         * doc/posix-functions/setsockopt.texi: Mention the new module
54900         'setsockopt'.
54901         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
54902         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
54903         listen, connect, accept.
54904         * modules/select-tests (Depends-on): Likewise.
54905
54906 2008-10-05  Bruno Haible  <bruno@clisp.org>
54907
54908         * lib/winsock.c (strerror): Remove unused #undef.
54909         (rpl_close): Remove unused local variable.
54910
54911         * modules/sys_socket (Depends-on); Add errno.
54912
54913 2008-10-05  Bruno Haible  <bruno@clisp.org>
54914
54915         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
54916         (select): Add a link warning when the 'select' module is not used.
54917         * modules/sys_select (Depends-on): Add link-warning.
54918         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
54919         Suggested by Paolo Bonzini.
54920
54921 2008-10-05  Jim Meyering  <meyering@redhat.com>
54922
54923         bootstrap: check for LT_INIT more portably
54924         * build-aux/bootstrap: Avoid using grep -E, since it's not
54925         portable enough.  Suggestion from Bruno Haible.
54926
54927 2008-10-05  Bruno Haible  <bruno@clisp.org>
54928
54929         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
54930         as being fixed by gnulib.
54931
54932 2008-10-05  Bruno Haible  <bruno@clisp.org>
54933
54934         * modules/select-tests: New file, mostly copied from
54935         modules/sys_select-tests.
54936         * tests/test-select.c: New file, mostly copied from
54937         tests/test-sys_select.c.
54938         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
54939         * modules/sys_select-tests (Depends-on): Remove all dependencies.
54940         (Makefile.am): Remove test_sys_select_LDADD.
54941
54942         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
54943         to an undefined symbol, for an error message.
54944         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
54945         (gl_SYS_SELECT_H_DEFAULTS): New macro.
54946         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
54947         winsock-select.c here.
54948         * modules/sys_select (Files): Remove lib/winsock-select.c.
54949         (Depends-on): Remove alloca.
54950         (Makefile.am): Substitute GNULIB_SELECT.
54951         * modules/select: New file.
54952         * doc/posix-functions/select.texi: Update.
54953
54954 2008-10-05  Bruno Haible  <bruno@clisp.org>
54955
54956         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
54957         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
54958         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
54959         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
54960         getdtablesize.
54961         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
54962         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
54963
54964 2008-10-05  Bruno Haible  <bruno@clisp.org>
54965
54966         * modules/getdtablesize-tests: New file.
54967         * tests/test-getdtablesize.c: New file.
54968
54969         New module 'getdtablesize'.
54970         * lib/unistd.in.h (getdtablesize): New declaration.
54971         * lib/getdtablesize.c: New file.
54972         * m4/getdtablesize.m4: New file.
54973         * modules/getdtablesize: New file.
54974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54975         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
54976         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
54977         HAVE_GETDTABLESIZE.
54978         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
54979
54980 2008-10-05  Bruno Haible  <bruno@clisp.org>
54981
54982         * modules/sched (Makefile.am): Fix typo.
54983         Reported by Simon Josefsson.
54984
54985 2008-10-05  Jim Meyering  <meyering@redhat.com>
54986
54987         bootstrap: check for LT_INIT, too
54988         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
54989         are deprecated.  Suggestion from Ralf Wildenhues.
54990
54991 2008-10-05  Bruno Haible  <bruno@clisp.org>
54992
54993         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
54994         overriding them by ours.
54995         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
54996
54997 2008-10-05  Jim Meyering  <meyering@redhat.com>
54998
54999         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
55000         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
55001         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
55002
55003 2008-10-04  Bruno Haible  <bruno@clisp.org>
55004
55005         * modules/dup2 (License): Change to LGPLv2+.
55006         * modules/sleep (License): Likewise.
55007         * modules/perror (License): Likewise.
55008         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
55009         Blake.
55010         * modules/signal (License): Likewise.
55011         * modules/sigprocmask (License): Likewise.
55012         * modules/raise (License): Change to LGPLv2+, with approval by Jim
55013         Meyering.
55014
55015 2008-10-04  Bruno Haible  <bruno@clisp.org>
55016
55017         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
55018         Reported by Rainer Tammer <tammer@tammer.net>.
55019
55020 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
55021             Bruno Haible  <bruno@clisp.org>
55022
55023         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
55024         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
55025         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
55026
55027 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
55028
55029         filevercmp: new module
55030         * lib/filevercmp.h: New function filevercmp comparing version strings.
55031         * lib/filevercmp.c: Implementation of filevercmp function.
55032         * modules/filevercmp: Module metadata.
55033         * tests/test-filevercmp.c: Unit test for new module.
55034         * modules/filevercmp-tests: Unit test metadata.
55035         * MODULES.html.sh: Add filevercmp module.
55036
55037 2008-10-03  Bruno Haible  <bruno@clisp.org>
55038
55039         * lib/c-ctype.h: Add comment.
55040         Reported by Jim Meyering.
55041
55042 2008-10-02  Bruno Haible  <bruno@clisp.org>
55043
55044         * modules/posix_spawn-internal (Depends-on): Add 'open'.
55045
55046 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55047
55048         * build-aux/bootstrap: Allow renaming bootstrap, and change the
55049         name of bootstrap.conf accordingly.
55050
55051 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55052
55053         * build-aux/bootstrap: Install git-merge-changelog configuration
55054         items into .gitconfig if needed.
55055
55056 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55057
55058         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
55059         git repository, and initialize/update it accordingly.
55060
55061 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
55062
55063         * modules/fsync-tests: New file.
55064         * tests/test-fsync.c: New file.
55065
55066         New module 'fsync'.
55067         * lib/fsync.c: New file.
55068         * m4/fsync.m4: New file.
55069         * modules/fsync: New file.
55070         * lib/unistd.in.h (fsync): New declaration.
55071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
55072         GNULIB_FSYNC and HAVE_FSYNC.
55073         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
55074         * MODULES.html.sh (posix_functions): Add fsync.
55075         * doc/posix-functions/fsync.texi: Mention the new module.
55076
55077 2008-10-02  Jim Meyering  <meyering@redhat.com>
55078
55079         fts.c: sync with similar code from coreutils' remove.c
55080         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
55081         Guard also with "#if defined __linux__", since for now at least,
55082         this code is Linux-kernel-specific.
55083
55084 2008-10-02  Jim Meyering  <meyering@redhat.com>
55085
55086         fts: bug fixes
55087         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
55088         Include <sys/vfs.h>, not <sys/statfs.h>.
55089
55090         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
55091         Include <sys/vfs.h>, not <sys/statfs.h>.
55092
55093 2008-10-01  Bruno Haible  <bruno@clisp.org>
55094
55095         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
55096         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
55097         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
55098         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
55099         * doc/posix-functions/posix_spawnp.texi: Likewise.
55100         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
55101         whether posix_spawn actually works.
55102         * m4/pipe.m4 (gl_PIPE): Likewise.
55103         * modules/execute (Files): Add m4/posix_spawn.m4.
55104         * modules/pipe (Files): Add m4/posix_spawn.m4.
55105         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
55106
55107 2008-10-01  Jim Meyering  <meyering@redhat.com>
55108
55109         remove trailing spaces
55110         * NEWS: Likewise.
55111         * lib/poll.c (poll): Likewise.
55112         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
55113         * lib/winsock.c (rpl_close): Likewise.
55114         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
55115         * modules/yield: Likewise.
55116         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
55117         * tests/test-sys_select.c (connect_to_socket): Likewise.
55118
55119         fts.c: adjust a new interface to be more generally useful
55120         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
55121         (fts_build): Adjust caller.
55122
55123 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55124
55125         * modules/cond-tests: New file.
55126         * tests/test-cond.c: New file.
55127
55128 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55129             Bruno Haible  <bruno@clisp.org>
55130
55131         * modules/cond (Dependencies): Add errno, time.
55132         * lib/glthread/cond.h: Include <time.h>.
55133         (gl_cond_define, gl_cond_define_initialized): Use the same definition
55134         across platforms.
55135
55136 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55137             Bruno Haible  <bruno@clisp.org>
55138
55139         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
55140
55141 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55142             Bruno Haible  <bruno@clisp.org>
55143
55144         * modules/tls-tests (Depends-on): Add thread, yield.
55145         (configure.ac): Remove all checks.
55146         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
55147         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55148         gl_thread_self): Remove definitions. Include glthread/thread.h and
55149         glthread/yield.h instead.
55150         (test_tls): Pass an additional NULL argument to gl_thread_join.
55151
55152 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55153             Bruno Haible  <bruno@clisp.org>
55154
55155         * modules/lock-tests (Depends-on): Add thread, yield.
55156         (configure.ac): Remove all checks.
55157         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
55158         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55159         gl_thread_self): Remove definitions. Include glthread/thread.h and
55160         glthread/yield.h instead.
55161         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
55162         additional NULL argument to gl_thread_join.
55163
55164 2008-09-30  Bruno Haible  <bruno@clisp.org>
55165
55166         Fix the Win32 implementation of the 'thread' module.
55167         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
55168         pointer type.
55169         (gl_thread_self): Invoke gl_thread_self_func.
55170         (gl_thread_self_func): New declaration.
55171         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
55172         (do_init_self_key, init_self_key): New functions.
55173         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
55174         Remove some fields.
55175         (running_threads, running_lock): Remove variables.
55176         (get_current_thread_handle): New function.
55177         (gl_thread_self_func, wrapper_func, glthread_create_func,
55178         glthread_join_func, gl_thread_exit_func): Largely rewritten and
55179         simplified.
55180
55181 2008-09-30  Bruno Haible  <bruno@clisp.org>
55182
55183         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
55184         files.
55185
55186 2008-09-30  Jim Meyering  <meyering@redhat.com>
55187
55188         fts.m4: correct the test for statfs.f_type
55189         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
55190         when checking for statfs.f_type.
55191
55192 2008-09-15  Simon Josefsson  <simon@josefsson.org>
55193
55194         tests: avoid some compiler warnings
55195         * tests/test-memchr.c (main): Pass NULL indirectly.
55196         * tests/test-getdate.c (main): Remove unused variable 'ret'.
55197
55198 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
55199
55200         getdate.y: disallow countable dayshifts like "4 yesterday ago"
55201         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
55202         exactly specified dayshifts.
55203         (dayshift): New rule.
55204         (rel): Add dayshift.
55205         (relative_time_table) [tomorrow, yesterday, today, now]:
55206         Use tDAY_SHIFT in place of tDAY_UNIT.
55207         * tests/test-getdate.c: Add tests for now-disallowed countable
55208         dayshifts, e.g., "4 yesterday ago".
55209
55210 2008-09-29  Bruno Haible  <bruno@clisp.org>
55211
55212         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
55213         * tests/test-posix_spawn1.in.sh: Renamed from
55214         tests/test-posix_spawn.in.sh.
55215         * tests/test-posix_spawn2.c: New file.
55216         * tests/test-posix_spawn2.in.sh: New file.
55217         * modules/posix_spawnp-tests (Files): Update.
55218         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
55219
55220 2008-09-29  Bruno Haible  <bruno@clisp.org>
55221
55222         Propagate effects of putenv/setenv/unsetenv to child processes.
55223         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
55224         * lib/pipe.c (create_pipe): Likewise.
55225
55226 2008-09-29  Bruno Haible  <bruno@clisp.org>
55227
55228         Enable use of shell scripts as executables in mingw.
55229         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
55230         run the program as a shell script.
55231         * lib/pipe.c (create_pipe): Likewise.
55232         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
55233         resulting array.
55234
55235 2008-09-29  Eric Blake  <ebb9@byu.net>
55236
55237         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
55238
55239 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
55240
55241         * doc/posix-functions/accept.texi: Update mingw problems.
55242         * doc/posix-functions/bind.texi: Update mingw problems.
55243         * doc/posix-functions/close.texi: Update mingw problems.
55244         * doc/posix-functions/connect.texi: Update mingw problems.
55245         * doc/posix-functions/getpeername.texi: Update mingw problems.
55246         * doc/posix-functions/getsockname.texi: Update mingw problems.
55247         * doc/posix-functions/getsockopt.texi: Update mingw problems.
55248         * doc/posix-functions/ioctl.texi: Update mingw problems.
55249         * doc/posix-functions/listen.texi: Update mingw problems.
55250         * doc/posix-functions/recv.texi: Update mingw problems.
55251         * doc/posix-functions/recvfrom.texi: Update mingw problems.
55252         * doc/posix-functions/select.texi: Update mingw problems.
55253         * doc/posix-functions/send.texi: Update mingw problems.
55254         * doc/posix-functions/sendto.texi: Update mingw problems.
55255         * doc/posix-functions/setsockopt.texi: Update mingw problems.
55256         * doc/posix-functions/socket.texi: Update mingw problems.
55257
55258 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
55259             Bruno Haible  <bruno@clisp.org>
55260
55261         * lib/sys_select.in.h: Include sys/time.h.
55262         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
55263         * modules/sys_select: Depend on sys_time.
55264         * tests/test-sys_select.c: Test that sys/select.h defines struct
55265         timeval fully.
55266
55267 2008-09-29  Bruno Haible  <bruno@clisp.org>
55268
55269         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
55270         * lib/sys_select.in.h: Likewise.
55271
55272 2008-09-29  Bruno Haible  <bruno@clisp.org>
55273
55274         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
55275
55276 2008-09-29  Bruno Haible  <bruno@clisp.org>
55277
55278         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
55279         Set LIBSOCKET instead of augmenting LIBS.
55280         * modules/sockets (Link): New section.
55281         * modules/sockets-tests (test_sockets_LDADD): New variable.
55282         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
55283         * modules/poll-tests (test_poll_LDADD): New variable.
55284         * NEWS: Document the change.
55285
55286 2008-09-29  Bruno Haible  <bruno@clisp.org>
55287
55288         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
55289         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
55290         ARPA_INET_H directly.
55291         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55292
55293 2008-09-28  Bruno Haible  <bruno@clisp.org>
55294
55295         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
55296         from gl_HEADER_SYS_SOCKET.
55297         (gl_HEADER_SYS_SOCKET): Invoke it.
55298         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55299
55300 2008-09-28  Bruno Haible  <bruno@clisp.org>
55301
55302         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
55303         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
55304         Needed on OSF/1 4.0.
55305
55306 2008-09-28  Bruno Haible  <bruno@clisp.org>
55307
55308         Override open more carefully.
55309         * lib/open.c (orig_open): New function.
55310         (rpl_open): Use orig_open instead of open.
55311         * lib/fcntl.in.h: Add special invocation convention.
55312         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
55313         (gl_FUNC_OPEN): Invoke it.
55314
55315         Override freopen more carefully.
55316         * lib/freopen.c (orig_freopen): New function.
55317         (rpl_freopen): Use orig_freopen instead of freopen.
55318         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
55319         (gl_FUNC_FREOPEN): Invoke it.
55320
55321         Override fopen more carefully.
55322         * lib/fopen.c (orig_fopen): New function.
55323         (rpl_fopen): Use orig_fopen instead of fopen.
55324         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
55325         (gl_FUNC_FOPEN): Invoke it.
55326         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
55327
55328 2008-09-28  Bruno Haible  <bruno@clisp.org>
55329
55330         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
55331         SIGPIPE.
55332
55333 2008-09-28  Bruno Haible  <bruno@clisp.org>
55334
55335         * tests/test-sigaction.c (handler, main): Disable the check whether
55336         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
55337         glibc systems with LinuxThreads.
55338
55339 2008-09-28  Bruno Haible  <bruno@clisp.org>
55340
55341         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
55342
55343         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
55344         with AIX xlc.
55345         * lib/fcntl.in.h (open): Likewise.
55346         Reported by Rainer Tammer <tammer@tammer.net>.
55347
55348 2008-09-28  Bruno Haible  <bruno@clisp.org>
55349
55350         * modules/posix_spawnp-tests: New file.
55351         * tests/test-posix_spawn.c: New file.
55352         * tests/test-posix_spawn.in.sh: New file.
55353
55354         New module 'posix_spawnp'.
55355         * modules/posix_spawnp: New file.
55356         * lib/spawnp.c: New file, from GNU libc with modifications.
55357         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
55358
55359         New module 'posix_spawn'.
55360         * modules/posix_spawn: New file.
55361         * lib/spawn.c: New file, from GNU libc with modifications.
55362         * doc/posix-functions/posix_spawn.texi: Mention the new module.
55363
55364         New module 'posix_spawnattr_destroy'.
55365         * modules/posix_spawnattr_destroy: New file.
55366         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
55367         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
55368         module.
55369
55370         New module 'posix_spawnattr_setsigmask'.
55371         * modules/posix_spawnattr_setsigmask: New file.
55372         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
55373         modifications.
55374         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
55375         new module.
55376
55377         New module 'posix_spawnattr_getsigmask'.
55378         * modules/posix_spawnattr_getsigmask: New file.
55379         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
55380         modifications.
55381         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
55382         new module.
55383
55384         New module 'posix_spawnattr_setsigdefault'.
55385         * modules/posix_spawnattr_setsigdefault: New file.
55386         * lib/spawnattr_setdefault.c: New file, from GNU libc with
55387         modifications.
55388         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
55389         new module.
55390
55391         New module 'posix_spawnattr_getsigdefault'.
55392         * modules/posix_spawnattr_getsigdefault: New file.
55393         * lib/spawnattr_getdefault.c: New file, from GNU libc with
55394         modifications.
55395         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
55396         new module.
55397
55398         New module 'posix_spawnattr_setschedpolicy'.
55399         * modules/posix_spawnattr_setschedpolicy: New file.
55400         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
55401         modifications.
55402         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
55403         new module.
55404
55405         New module 'posix_spawnattr_getschedpolicy'.
55406         * modules/posix_spawnattr_getschedpolicy: New file.
55407         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
55408         modifications.
55409         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
55410         new module.
55411
55412         New module 'posix_spawnattr_setschedparam'.
55413         * modules/posix_spawnattr_setschedparam: New file.
55414         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
55415         modifications.
55416         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
55417         new module.
55418
55419         New module 'posix_spawnattr_getschedparam'.
55420         * modules/posix_spawnattr_getschedparam: New file.
55421         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
55422         modifications.
55423         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
55424         new module.
55425
55426         New module 'posix_spawnattr_setpgroup'.
55427         * modules/posix_spawnattr_setpgroup: New file.
55428         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
55429         modifications.
55430         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
55431         module.
55432
55433         New module 'posix_spawnattr_getpgroup'.
55434         * modules/posix_spawnattr_getpgroup: New file.
55435         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
55436         modifications.
55437         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
55438         module.
55439
55440         New module 'posix_spawnattr_setflags'.
55441         * modules/posix_spawnattr_setflags: New file.
55442         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
55443         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
55444         module.
55445
55446         New module 'posix_spawnattr_getflags'.
55447         * modules/posix_spawnattr_getflags: New file.
55448         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
55449         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
55450         module.
55451
55452         New module 'posix_spawnattr_init'.
55453         * modules/posix_spawnattr_init: New file.
55454         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
55455         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
55456         module.
55457
55458         New module 'posix_spawn_file_actions_destroy'.
55459         * modules/posix_spawn_file_actions_destroy: New file.
55460         * lib/spawn_faction_destroy.c: New file, from GNU libc with
55461         modifications.
55462         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
55463         the new module.
55464
55465         New module 'posix_spawn_file_actions_addopen'.
55466         * modules/posix_spawn_file_actions_addopen: New file.
55467         * lib/spawn_faction_addopen.c: New file, from GNU libc with
55468         modifications.
55469         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
55470         the new module.
55471
55472         New module 'posix_spawn_file_actions_adddup2'.
55473         * modules/posix_spawn_file_actions_adddup2: New file.
55474         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
55475         modifications.
55476         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
55477         the new module.
55478
55479         New module 'posix_spawn_file_actions_addclose'.
55480         * modules/posix_spawn_file_actions_addclose: New file.
55481         * lib/spawn_faction_addclose.c: New file, from GNU libc with
55482         modifications.
55483         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
55484         the new module.
55485
55486         New module 'posix_spawn_file_actions_init'.
55487         * modules/posix_spawn_file_actions_init: New file.
55488         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
55489         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
55490         new module.
55491
55492         New module 'posix_spawn-internal'.
55493         * modules/posix_spawn-internal: New file.
55494         * lib/spawn_int.h: New file, from GNU libc with modifications.
55495         * lib/spawni.c: New file, from GNU libc with modifications.
55496         * m4/posix_spawn.m4: New file.
55497
55498         New module 'spawn'.
55499         * modules/spawn: New file.
55500         * lib/spawn.in.h: New file, from GNU libc with modifications.
55501         * m4/spawn_h.m4: New file.
55502         * doc/posix-headers/spawn.texi: Mention the new module.
55503
55504 2008-09-28  Bruno Haible  <bruno@clisp.org>
55505
55506         * modules/sched-tests: New file.
55507         * tests/test-sched.c: New file.
55508
55509         New module 'sched'.
55510         * modules/sched: New file.
55511         * lib/sched.in.h: New file.
55512         * m4/sched_h.m4: New file.
55513         * doc/posix-headers/sched.texi: Mention the new module.
55514
55515 2008-09-27  Eric Blake  <ebb9@byu.net>
55516
55517         Fix previous patch, and tweak references to $0.
55518         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
55519         (func_version, func_gnulib_dir): Don't call this program
55520         gnulib-tool.
55521         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
55522         with using $0 in function.
55523         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
55524         (func_fatal_error): Reuse the name the user invoked us with.
55525
55526 2008-09-27  Bruno Haible  <bruno@clisp.org>
55527
55528         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
55529         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
55530         (gl_ICONV_H): Not here.
55531         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55532         instead of assigning ICONV_H directly.
55533
55534         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
55535         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
55536         WCHAR_H directly.
55537
55538 2008-09-27  Bruno Haible  <bruno@clisp.org>
55539
55540         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
55541         * modules/arpa_inet (Depends-on): Add link-warning.
55542         (Makefile.am): Insert the definition of GL_LINK-WARNING.
55543         * modules/unistd (Makefile.am): Likewise.
55544
55545 2008-09-26  Bruno Haible  <bruno@clisp.org>
55546
55547         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
55548         variables.
55549         (func_version): Essentially copied from gnulib-tool.
55550         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
55551         func_readlink): Copied from gnulib-tool.
55552
55553 2008-09-26  Bruno Haible  <bruno@clisp.org>
55554
55555         * gnulib-tool (func_version): Change directory to $gnulib_dir before
55556         invoking git-version-gen.
55557
55558 2008-09-26  Bruno Haible  <bruno@clisp.org>
55559
55560         * posix-modules: Update to directory names changed on 2008-01-19.
55561         Remove commas in output before splitting into words. No more need to
55562         avoid 'ftruncate' since 2007-02-19.
55563
55564 2008-09-26  Bruno Haible  <bruno@clisp.org>
55565
55566         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
55567
55568 2008-09-26  Bruno Haible  <bruno@clisp.org>
55569
55570         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
55571         * modules/fwriteerror (Depends-on): Add errno.
55572
55573 2008-09-26  Bruno Haible  <bruno@clisp.org>
55574
55575         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
55576         * tests/test-vc-list-files-cvs.sh: Likewise.
55577
55578 2008-09-26  Bruno Haible  <bruno@clisp.org>
55579
55580         * doc/posix-headers/sys_resource.texi: Reorder items.
55581
55582 2008-09-26  Jim Meyering  <meyering@redhat.com>
55583
55584         fts: tweak inode comparison function
55585         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
55586         inode numbers, as documented.
55587
55588         fts: sort dirent entries on inode number before traversing
55589         This avoids a quadratic, seek-related performance penalty when
55590         operating on a directory containing many entries (measurable at 10k;
55591         3.5 hours at 2 million entries with a cold cache) on certain types
55592         of file systems, including ext3 and ext4, but not tmpfs.
55593         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
55594         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
55595         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
55596         (fs_handles_readdir_ordered_dirents_efficiently): New function.
55597         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
55598         (fts_build): Set the stat.st_ino member from D_INO.
55599         If it is likely to be useful, sort dirent entries on inode number.
55600
55601         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
55602         and the struct statfs.f_type member.
55603         * modules/fts (Depends-on): Add d-ino.
55604
55605 2008-09-26  Bruno Haible  <bruno@clisp.org>
55606
55607         * modules/sigpipe-die (Depends-on): Add sigpipe.
55608
55609         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
55610         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
55611         and GNULIB_STDIO_H_SIGPIPE are set.
55612         * lib/stdio-write.c: New file.
55613         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
55614         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55615         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55616         REPLACE_STDIO_WRITE_FUNCS.
55617         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
55618         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55619         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55620         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55621         * modules/stdio (Files): Add lib/stdio-write.c.
55622         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
55623         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55624         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55625         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55626         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
55627         REPLACE_FPRINTF_POSIX.
55628         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
55629         REPLACE_PRINTF_POSIX.
55630         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
55631         REPLACE_VFPRINTF_POSIX.
55632         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
55633         REPLACE_VPRINTF_POSIX.
55634         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
55635         SIGPIPE issue.
55636         * doc/posix-functions/fputc.texi: Likewise.
55637         * doc/posix-functions/fputs.texi: Likewise.
55638         * doc/posix-functions/fwrite.texi: Likewise.
55639         * doc/posix-functions/printf.texi: Likewise.
55640         * doc/posix-functions/putc.texi: Likewise.
55641         * doc/posix-functions/putchar.texi: Likewise.
55642         * doc/posix-functions/puts.texi: Likewise.
55643         * doc/posix-functions/vfprintf.texi: Likewise.
55644         * doc/posix-functions/vprintf.texi: Likewise.
55645
55646         * modules/safe-write (Depends-on): Add write.
55647
55648         * modules/sigpipe-tests: New file.
55649         * tests/test-sigpipe.c: New file.
55650         * tests/test-sigpipe.sh: New file.
55651
55652         * modules/write: New file.
55653         * lib/unistd.in.h: Include <sys/types.h>.
55654         (write): New declaration.
55655         * lib/write.c: New file.
55656         * m4/write.m4: New file.
55657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55658         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
55659         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
55660         GNULIB_WRITE, REPLACE_WRITE.
55661         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
55662         and the SIGPIPE issue.
55663
55664         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
55665         (raise): New declaration.
55666         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
55667         (ext_signal): New function.
55668         (rpl_raise): New function.
55669         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
55670         GNULIB_SIGNAL_H_SIGPIPE.
55671         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
55672         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
55673
55674         * modules/sigpipe: New file.
55675         * m4/sigpipe.m4: New file.
55676
55677 2008-09-25  Derek Price  <derek@ximbiot.com>
55678             Bruno Haible  <bruno@clisp.org>
55679
55680         * gnulib-tool (func_import): Report all license incompatibilities, not
55681         just the first one.
55682
55683 2008-09-25  Bruno Haible  <bruno@clisp.org>
55684
55685         * gnulib-tool (func_import): When computing the edits, consider not
55686         only the Makefile.ams that exist but also those that will be generated.
55687
55688 2008-09-25  Simon Josefsson  <simon@josefsson.org>
55689
55690         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
55691         fixes gnulib-tool --test warning about duplicate dependency.
55692
55693 2008-09-25  Bruno Haible  <bruno@clisp.org>
55694
55695         * gnulib-tool: Don't ask the user to perform edits in the generated
55696         Makefile.ams.
55697         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
55698         apply to the Makefile.am being generated.
55699         (func_emit_tests_Makefile_am): Execute edits that apply to the
55700         Makefile.am being generated.
55701         (func_import): Setup list of Makefile.am edits before emitting the
55702         Makefile.ams, not at the end.
55703         (func_create_testdir): Update.
55704         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55705
55706 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55707
55708         * gnulib-tool (func_import): Store the --tests-base option in the
55709         comment in gnulib-cache.m4.
55710
55711 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
55712
55713         * NEWS: Document increased portability that sys_select now provides.
55714
55715         * lib/sys_select.in.h: Install select wrapper.
55716         * lib/sys_socket.in.h: Use more descriptive name when there is no
55717         select wrapper.
55718         * lib/winsock-select.c: New.
55719         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
55720         Require gl_HEADER_SYS_SOCKET.
55721         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
55722         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
55723         * tests/test-sys_select.c: Add functional tests.
55724
55725 2008-09-24  Eric Blake  <ebb9@byu.net>
55726
55727         open, fopen: close fd leak in last patch
55728         * lib/open.c (rpl_open): Close fd before returning error.
55729         * lib/fopen.c (rpl_fopen): Close fd before returning error.
55730         * doc/posix-functions/open.texi (open): Document that Irix also
55731         has the bug.
55732         * doc/posix-functions/fopen.texi (fopen): Likewise.
55733         Reported by Paolo Bonzini.
55734
55735 2008-09-24  Bruno Haible  <bruno@clisp.org>
55736
55737         Ensure that a filename ending in a slash cannot be used to access a
55738         non-directory.
55739         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
55740         to check whether it's really a directory.
55741         * lib/fopen.c: Include fcntl.h, unistd.h.
55742         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
55743         and fdopen().
55744         * modules/fopen (Depends-on): Add unistd.
55745         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
55746         * tests/test-fopen.c (main): Likewise.
55747         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
55748         * doc/posix-functions/fopen.texi: Likewise.
55749         Reported by Eric Blake.
55750
55751 2008-09-23  Eric Blake  <ebb9@byu.net>
55752
55753         c-stack: avoid compiler optimizations when provoking overflow
55754         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
55755         recursion harder to optimize, to ensure a stack overflow occurs.
55756         * tests/test-c-stack.c (recurse): Likewise.
55757         Borrowed from libsigsegv.
55758
55759         c-stack: work around Irix sigaltstack bug
55760         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
55761         whether sigaltstack uses wrong end of stack_t (copied in part from
55762         libsigsegv).
55763         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
55764         Irix bug, without requiring an over-allocation.
55765         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
55766         bug.
55767
55768         fopen: document mingw bug on directories
55769         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
55770         not allowing a stream visiting a directory, even though reading
55771         from such a stream is not portable.
55772
55773 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55774
55775         * lib/poll.c: Rewrite.
55776         * modules/poll: Depend on alloca.
55777
55778 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55779
55780         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
55781         instead define prototypes for a full set of wrappers.  Ensure
55782         that Cygwin does not use the compatibility code, which is only
55783         for MinGW.
55784         * lib/winsock.c: New.
55785         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
55786         * modules/sys_socket: Add lib/winsock.c.
55787
55788         * modules/poll-tests: Add errno and perror.
55789         * tests/test-poll.c: Use ioctl, not ioctlsocket.
55790
55791 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55792
55793         * tests/test-poll.c: Downgrade minimum needed Winsock version.
55794
55795 2008-09-23  Bruno Haible  <bruno@clisp.org>
55796
55797         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
55798         * doc/glibc-functions/*: Likewise.
55799
55800 2008-09-23  Simon Josefsson  <simon@josefsson.org>
55801
55802         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
55803         success.
55804
55805 2008-09-22  Eric Blake  <ebb9@byu.net>
55806             Bruno Haible  <bruno@clisp.org>
55807
55808         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
55809         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
55810         supply %A but mishandle pseudo-NaN.
55811         Reported by Simon Josefsson.
55812
55813 2008-09-21  Bruno Haible  <bruno@clisp.org>
55814
55815         * tests/test-lock.c (main): Tweak skip message.
55816         * tests/test-tls.c (main): Likewise.
55817
55818 2008-09-21  Bruno Haible  <bruno@clisp.org>
55819
55820         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
55821         whether 'struct sigaction' has sa_sigaction here...
55822         (gl_PREREQ_SIG_HANDLER_H): ... not here.
55823         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
55824
55825 2008-09-21  Bruno Haible  <bruno@clisp.org>
55826
55827         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
55828         section.
55829         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
55830         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
55831         the new section.
55832         (Support for obsolete systems lacking POSIX:2001): New section.
55833         (String handling <string.h>): Move strdup to the new section.
55834         Suggested by Simon Josefsson and Paolo Bonzini.
55835
55836 2008-09-21  Bruno Haible  <bruno@clisp.org>
55837
55838         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
55839         exponents in %e and %g results on 'long double'. Needed for mingw's
55840         improved *printf functions.
55841         * tests/test-vasprintf-posix.c (test_function): Likewise.
55842         * tests/test-snprintf-posix.h (test_function): Likewise.
55843         * tests/test-sprintf-posix.h (test_function): Likewise.
55844         Reported by Eric Blake.
55845
55846 2008-09-21  Bruno Haible  <bruno@clisp.org>
55847
55848         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
55849         * tests/test-sprintf-posix.h (test_function): Likewise.
55850
55851 2008-09-21  Bruno Haible  <bruno@clisp.org>
55852
55853         * modules/getpass (Depends-on): Add strdup-posix.
55854
55855         New module 'strdup-posix'.
55856         * modules/strdup-posix: New file.
55857         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
55858         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
55859         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55860         REPLACE_STRDUP.
55861         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
55862         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
55863         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55864         strdup-posix.
55865
55866         * modules/strdup (Depends-on): Remove malloc-posix.
55867
55868 2008-09-20  Bruno Haible  <bruno@clisp.org>
55869
55870         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
55871         Wildenhues.
55872
55873 2008-09-20  Bruno Haible  <bruno@clisp.org>
55874
55875         Ensure that wint_t gets defined on IRIX 5.3.
55876         * lib/wchar.in.h (wint_t): Define if not defined by the system.
55877         * lib/wctype.in.h (wint_t): Likewise.
55878         (__wctype_wint_t): Remove type.
55879         (isw*): Use wint_t instead of __wctype_wint_t.
55880         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
55881         * modules/wchar (Files): Add m4/wint_t.m4.
55882         (Makefile.am): Substitute HAVE_WINT_T.
55883         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
55884         * tests/test-wctype.c: Check that wint_t is defined.
55885         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
55886         * doc/posix-headers/wctype.texi: Likewise.
55887         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55888
55889 2008-09-18  Bruno Haible  <bruno@clisp.org>
55890
55891         * gnulib-tool (func_exit): Update comment.
55892
55893 2008-09-18  Simon Josefsson  <simon@josefsson.org>
55894
55895         * modules/getaddrinfo (Depends-on): Remove strdup, this module
55896         assumes strdup exists and does not depend on strdup to return
55897         ENOMEM on out of memory conditions.
55898
55899 2008-09-18  Bruno Haible  <bruno@clisp.org>
55900
55901         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
55902         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
55903         digits for the exponent.
55904
55905 2008-09-18  Jim Meyering  <meyering@redhat.com>
55906             Bruno Haible  <bruno@clisp.org>
55907
55908         * lib/vasnprintf.c (decimal_point_char): Define also if
55909         NEED_PRINTF_INFINITE_LONG_DOUBLE.
55910
55911 2008-09-16  Bruno Haible  <bruno@clisp.org>
55912         and Eric Blake  <ebb9@byu.net>
55913
55914         vasnprintf: support Irix 5.3
55915         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
55916         that mishandle long double infinity.
55917         Reported by Tom G. Christensen.
55918
55919 2008-09-16  Bruno Haible  <bruno@clisp.org>
55920
55921         * doc/glibc-functions/scandir.texi: Mention the function is missing on
55922         Solaris 9.
55923         * doc/glibc-functions/alphasort.texi: Likewise.
55924         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
55925
55926 2008-09-16  Jim Meyering  <meyering@redhat.com>
55927
55928         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
55929         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
55930         a umask modification leak out of a subshell.  Otherwise, the
55931         opensolaris /bin/sh would be accepted and thus cause unwarranted
55932         failures in the coreutils test suite.
55933
55934 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
55935
55936         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
55937         to succeed.
55938
55939 2008-09-16  Jim Meyering  <meyering@redhat.com>
55940
55941         avoid spurious test failure when library is built without ACL support
55942         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
55943         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
55944         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
55945         * tests/test-copy-acl.sh: Likewise.
55946
55947 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55948
55949         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
55950         based on character occurrence counts.
55951
55952 2008-09-15  Eric Blake  <ebb9@byu.net>
55953
55954         tests: avoid some compiler warnings
55955         * tests/test-memchr.c (main): Pass NULL indirectly.
55956         * tests/test-closein.c (main): Avoid unused variable.
55957
55958 2008-09-15  Bruno Haible  <bruno@clisp.org>
55959
55960         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
55961         are missing on OpenBSD 4.0 individually.
55962         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55963
55964 2008-09-15  Bruno Haible  <bruno@clisp.org>
55965
55966         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
55967         * doc/posix-functions/strerror.texi: Mention also Cygwin.
55968         * doc/posix-functions/perror.texi: Likewise.
55969         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
55970         is missing.
55971         Reported by Eric Blake.
55972
55973         * lib/errno.in.h: Use replacement values >= 2000.
55974         Reported by Eric Blake.
55975
55976 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55977
55978         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
55979         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
55980         limit.
55981         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
55982         compareseq was aborted.
55983
55984 2008-09-14  Bruno Haible  <bruno@clisp.org>
55985
55986         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
55987         yvec_edit_count.
55988         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
55989         (fstrcmp_bounded): Simplify result computation accordingly.
55990
55991 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55992
55993         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
55994         (fstrcmp): Define in terms of fstrcmp_bounded.
55995         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
55996         lower_bound argument.
55997         Return quickly if the result is certainly < lower_bound.
55998         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
55999
56000 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56001
56002         * lib/diffseq.h (EARLY_ABORT): New macro.
56003         (compareseq): Change return type to bool. Return true when EARLY_ABORT
56004         evaluates to true.
56005
56006 2008-09-14  Bruno Haible  <bruno@clisp.org>
56007
56008         * modules/perror-tests: New file.
56009         * tests/test-perror.sh: New file.
56010         * tests/test-perror.c: New file.
56011
56012         New module 'perror'.
56013         * lib/stdio.in.h (perror): New declaration.
56014         * lib/perror.c: New file.
56015         * m4/perror.m4: New file.
56016         * modules/perror: New file.
56017         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
56018         * doc/posix-functions/perror.texi: Mention the perror module.
56019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
56020         REPLACE_PERROR.
56021         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
56022         REPLACE_PERROR.
56023
56024 2008-09-14  Bruno Haible  <bruno@clisp.org>
56025
56026         * modules/stdio (Makefile.am): Reorder to match the order in
56027         lib/stdio.in.h.
56028         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56029
56030 2008-09-13  Bruno Haible  <bruno@clisp.org>
56031
56032         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
56033
56034 2008-09-13  Bruno Haible  <bruno@clisp.org>
56035
56036         Extend strerror to cover the added errno values.
56037         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
56038         (rpl_strerror): Provide error messages for the added errno values and
56039         for the WSA* values.
56040         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
56041         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
56042         strerror.
56043         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
56044         * modules/strerror (Depends-on): Add errno.
56045         * doc/posix-functions/strerror.texi: Document the change.
56046         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
56047         and EOVERFLOW.
56048
56049 2008-09-13  Bruno Haible  <bruno@clisp.org>
56050
56051         * modules/EOVERFLOW: Remove file.
56052         * m4/eoverflow.m4: Remove file.
56053         * modules/EOVERFLOW-tests: Remove file.
56054         * tests/test-EOVERFLOW.c: Remove file.
56055         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
56056         * modules/ftell (Depends-on): Likewise.
56057         * modules/getdelim (Depends-on): Likewise.
56058         * modules/getugroups (Depends-on): Likewise.
56059         * modules/poll (Depends-on): Likewise.
56060         * modules/snprintf (Depends-on): Likewise.
56061         * modules/sprintf-posix (Depends-on): Likewise.
56062         * modules/vasnprintf (Depends-on): Likewise.
56063         * modules/vasprintf (Depends-on): Likewise.
56064         * modules/vfprintf-posix (Depends-on): Likewise.
56065         * modules/vsnprintf (Depends-on): Likewise.
56066         * modules/vsprintf-posix (Depends-on): Likewise.
56067         * modules/xvasprintf (Depends-on): Likewise.
56068         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56069         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
56070         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
56071         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
56072         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56073         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
56074         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
56075         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
56076         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56077         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
56078         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
56079         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
56080         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56081         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
56082         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
56083         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
56084         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56085         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
56086         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
56087         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
56088         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56089         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
56090         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
56091         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
56092         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
56093         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56094         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
56095         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
56096         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
56097         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
56098         * MODULES.html.sh: Remove EOVERFLOW.
56099         * NEWS: Mention the change.
56100
56101 2008-09-13  Bruno Haible  <bruno@clisp.org>
56102
56103         * modules/errno-tests: New file.
56104         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
56105
56106         * lib/errno.in.h: New file.
56107         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
56108         * modules/errno: New file.
56109         * doc/posix-headers/errno.texi: Update documentation.
56110         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
56111
56112 2008-09-13  Bruno Haible  <bruno@clisp.org>
56113
56114         * tests/test-poll.c: Use #if for native Windows, rather than testing
56115         __MSVCRT__.
56116
56117 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56118             Bruno Haible  <bruno@clisp.org>
56119
56120         * lib/glob.c: Don't include <pwd.h> on native Windows.
56121         (WINDOWS32): New macro.
56122         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
56123
56124 2008-09-13  Bruno Haible  <bruno@clisp.org>
56125
56126         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
56127         (ETIMEDOUT): Remove macro.
56128         (glthread_cond_timedwait_multithreaded): New declaration.
56129         (glthread_cond_timedwait): Use it.
56130         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
56131         (glthread_cond_timedwait_multithreaded): New function.
56132
56133 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56134
56135         * modules/poll-tests: Do not check for io.h.
56136         * tests/test-poll.c: Check for __MSVCRT__ instead.
56137
56138 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56139
56140         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
56141         * modules/poll-tests: Add inet_pton, stdbool, sockets.
56142         * tests/test-poll.c: Use them.  Use _pipe on Windows.
56143
56144 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56145
56146         * modules/poll-tests: New.
56147         * tests/test-poll.c: New.
56148
56149 2008-09-12  Eric Blake  <ebb9@byu.net>
56150
56151         frexp: test for NetBSD failure on -0.0
56152         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
56153         not all, bugs from NetBSD 3.0 have been fixed.
56154         * doc/posix-functions/frexp.texi (frexp): Document bug.
56155         Reported by Thomas Klausner.
56156
56157         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
56158         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
56159         literal -0.0.
56160         Reported by Jonathan C. Patschke <jp@centtech.com>.
56161
56162 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56163
56164         * lib/glthread/cond.h: Use dummy implementation also if
56165         USE_WIN32_THREADS.
56166
56167 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56168
56169         * modules/fnmatch-posix (License): Change to LGPLv2+.
56170         * modules/fnmatch-gnu (License): Likewise.
56171
56172 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56173
56174         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
56175
56176 2008-09-11  Jim Meyering  <meyering@redhat.com>
56177
56178         * users.txt: Add gtk-vnc.
56179
56180 2008-09-08  Simon Josefsson  <simon@josefsson.org>
56181
56182         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
56183         rotate amounts.
56184
56185         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
56186         required for 16-bit and 8-bit rotates.
56187         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
56188         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
56189         UINT8_MAX instead of hard-coded constants.
56190         Suggested by Paul Eggert.
56191
56192 2008-09-07  Bruno Haible  <bruno@clisp.org>
56193
56194         * tests/test-striconveh.c (main): Check behaviour when converting from
56195         UTF-7.
56196
56197         Make striconveh work better with stateful encodings.
56198         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
56199         that iconv does not increment the inptr when returning -1/EINVAL.
56200
56201 2008-09-07  Bruno Haible  <bruno@clisp.org>
56202
56203         * build-aux/config.rpath: Update according to libtool-2.2.6.
56204         * build-aux/config.libpath: Likewise.
56205
56206 2008-09-06  Bruno Haible  <bruno@clisp.org>
56207
56208         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
56209         * lib/freadptr.c (freadptr): Likewise.
56210         * lib/freadseek.c (freadptrinc): Likewise.
56211         Reported by Simon Josefsson.
56212
56213 2008-09-06  Bruno Haible  <bruno@clisp.org>
56214
56215         * modules/freadptr (License): Change to LGPLv2+.
56216         * modules/freadseek (License): Likewise.
56217         Suggested by Eric Blake.
56218
56219         * modules/memchr2 (License): Change to LGPLv2+.
56220         Approved by Eric Blake.
56221
56222 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56223             Bruno Haible  <bruno@clisp.org>
56224
56225         Make gnulib-tool work with native 'sed' on AIX.
56226         * gnulib-tool (sed_noop): New variable.
56227         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
56228         func_add_or_update, func_create_testdir): Use it to initialize sed
56229         script variables.
56230         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56231
56232 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
56233             Bruno Haible  <bruno@clisp.org>
56234
56235         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
56236         also works after #include directives.
56237
56238 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
56239
56240         getdate.y: reject an out-of-range timezone value
56241         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
56242         the range [-24...+24].  When specified with only one or two digits,
56243         * tests/test-getdate.c: Tests for the fix.
56244         * doc/getdate.texi: Document this change.
56245
56246 2008-09-03  Bruno Haible  <bruno@clisp.org>
56247
56248         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
56249
56250 2008-09-02  Simon Josefsson  <simon@josefsson.org>
56251
56252         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
56253         <bruce.korb@gmail.com> with ideas from Ben Pfaff
56254         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
56255         Blake <ebb9@byu.net>.
56256
56257         * tests/test-bitrotate.c: Add more test vectors.
56258
56259 2008-09-02  Eric Blake  <ebb9@byu.net>
56260
56261         vasnprintf-posix: handle large precision via %.*d
56262         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
56263         when handling it ourselves.
56264         * tests/test-vasnprintf-posix.c (test_function): Add test.
56265         * tests/test-snprintf-posix.h (test_function): Likewise.
56266         * tests/test-sprintf-posix.h (test_function): Likewise.
56267         * tests/test-vasprintf-posix.c (test_function): Likewise.
56268         Reported by Alain Guibert.
56269
56270 2008-09-01  Eric Blake  <ebb9@byu.net>
56271
56272         c-stack: make configure-time check more robust
56273         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
56274         successful sigaction call.
56275         Reported by Tom G. Christensen.
56276
56277 2008-09-01  Bruno Haible  <bruno@clisp.org>
56278
56279         New module 'findprog-lgpl'.
56280         * modules/findprog-lgpl: New file.
56281         * lib/findprog-lgpl.c: New file.
56282         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
56283         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
56284         to decide whether to use strdup or xstrdup, concatenated_filename or
56285         xconcatenated_filename.
56286
56287 2008-09-01  Bruno Haible  <bruno@clisp.org>
56288
56289         Split module 'concat-filename' into 'concat-filename' (LGPL) and
56290         'xconcat-filename' (GPL).
56291         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
56292         (License): Change to LGPLv2+.
56293         * modules/xconcat-filename: New file.
56294         * lib/concat-filename.h (concatenated_filename): Change specification.
56295         (xconcatenated_filename): New declaration.
56296         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
56297         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
56298         memory situations.
56299         * lib/xconcat-filename.c: New file.
56300         * NEWS: Mention the change.
56301         * lib/findprog.c: Include concat-filename.h, not filename.h.
56302         (find_in_path): Use xconcatenated_filename instead of
56303         concatenated_filename.
56304         * lib/javacomp.c: Include concat-filename.h, not filename.h.
56305         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56306         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56307         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56308         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
56309         instead of concatenated_filename.
56310         * lib/javaexec.c: Include concat-filename.h, not filename.h.
56311         (execute_java_class): Use xconcatenated_filename instead of
56312         concatenated_filename.
56313         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
56314         * modules/javacomp (Depends-on): Likewise.
56315         * modules/javaexec (Depends-on): Likewise.
56316
56317 2008-09-01  Bruno Haible  <bruno@clisp.org>
56318
56319         Split module 'filename' into 'filename' and 'concat-filename'.
56320         * modules/filename: Keep only lib/filename.h.
56321         (License): Change to LGPLv2+.
56322         * modules/concat-filename: New file, extracted from modules/filename.
56323         * lib/filename.h (concatenated_filename): Remove declaration.
56324         * lib/concat-filename.h: New file, extracted from lib/filename.h.
56325         * lib/concat-filename.c: Include concat-filename.h.
56326         * NEWS: Mention the change.
56327
56328 2008-09-01  Simon Josefsson  <simon@josefsson.org>
56329
56330         * lib/bitrotate.h (rotl8, rotr8): Add.
56331
56332         * modules/bitrotate (configure.ac): Need
56333         AC_REQUIRE([AC_C_INLINE]).
56334         (Description): Mention stdint.h.  Reported by Bruno Haible
56335         <bruno@clisp.org>.
56336
56337         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
56338         Paolo Bonzini <bonzini@gnu.org>.
56339
56340 2008-08-31  Bruno Haible  <bruno@clisp.org>
56341
56342         Assume Solaris specific bi-arch conventions on Solaris systems.
56343         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
56344         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
56345         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
56346         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
56347         like acl_libdirstem.
56348         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
56349         acl_libdirstem.
56350         * NEWS: Mention the change.
56351         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
56352
56353 2008-08-31  Jim Meyering  <meyering@redhat.com>
56354
56355         * lib/strftime.h: Add comments describing the two added arguments.
56356
56357         remove duplicate #include directives
56358         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
56359         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
56360
56361 2008-08-31  Bruno Haible  <bruno@clisp.org>
56362
56363         New module 'sigpipe-die'.
56364         * modules/sigpipe-die: New file.
56365         * lib/sigpipe-die.h: New file.
56366         * lib/sigpipe-die.c: New file.
56367         * MODULES.html.sh (Signal handling): Add sigpipe-die.
56368
56369 2008-08-31  Bruno Haible  <bruno@clisp.org>
56370
56371         Don't override previously installed signal handlers.
56372         * lib/fatal-signal.c (saved_sigactions): New variable.
56373         (uninstall_handlers): Reset the signal to the saved handler, not
56374         to SIG_DFL (except when ignored).
56375         (install_handlers): Save the previous handlers.
56376
56377 2008-08-30  Bruno Haible  <bruno@clisp.org>
56378
56379         * gnulib-tool (func_reset_sigpipe): New function.
56380         (func_get_automake_snippet, func_modules_transitive_closure,
56381         func_import): Invoke it before a join command that reads from stdin,
56382         to avoid "echo: write error: Broken pipe" error messages on stderr.
56383         Reported by Sam Steingold <sds@gnu.org>.
56384
56385 2008-08-30  Bruno Haible  <bruno@clisp.org>
56386
56387         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
56388         Code copied from m4/open.m4.
56389         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
56390         access and the filename ends in a slash. Code copied from lib/open.c.
56391         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
56392         * tests/test-fopen.c (main): Check against bug with trailing slash.
56393
56394 2008-08-29  Bruno Haible  <bruno@clisp.org>
56395
56396         Avoid some "gcc -pedantic" warnings.
56397         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
56398         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
56399         * lib/dirent.in.h: Likewise.
56400         * lib/fcntl.in.h: Likewise.
56401         * lib/float.in.h: Likewise.
56402         * lib/iconv.in.h: Likewise.
56403         * lib/inttypes.in.h: Likewise.
56404         * lib/locale.in.h: Likewise.
56405         * lib/math.in.h: Likewise.
56406         * lib/netinet_in.in.h: Likewise.
56407         * lib/search.in.h: Likewise.
56408         * lib/signal.in.h: Likewise.
56409         * lib/stdarg.in.h: Likewise.
56410         * lib/stdint.in.h: Likewise.
56411         * lib/stdio.in.h: Likewise.
56412         * lib/stdlib.in.h: Likewise.
56413         * lib/string.in.h: Likewise.
56414         * lib/strings.in.h: Likewise.
56415         * lib/sys_select.in.h: Likewise.
56416         * lib/sys_socket.in.h: Likewise.
56417         * lib/sys_stat.in.h: Likewise.
56418         * lib/sys_time.in.h: Likewise.
56419         * lib/sysexits.in.h: Likewise.
56420         * lib/time.in.h: Likewise.
56421         * lib/unistd.in.h: Likewise.
56422         * lib/wchar.in.h: Likewise.
56423         * lib/wctype.in.h: Likewise.
56424         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
56425         * modules/fchdir (Makefile.am): Likewise.
56426         * modules/fcntl (Makefile.am): Likewise.
56427         * modules/float (Makefile.am): Likewise.
56428         * modules/iconv_open (Makefile.am): Likewise.
56429         * modules/inttypes (Makefile.am): Likewise.
56430         * modules/locale (Makefile.am): Likewise.
56431         * modules/math (Makefile.am): Likewise.
56432         * modules/netinet_in (Makefile.am): Likewise.
56433         * modules/search (Makefile.am): Likewise.
56434         * modules/signal (Makefile.am): Likewise.
56435         * modules/stdarg (Makefile.am): Likewise.
56436         * modules/stdint (Makefile.am): Likewise.
56437         * modules/stdio (Makefile.am): Likewise.
56438         * modules/stdlib (Makefile.am): Likewise.
56439         * modules/string (Makefile.am): Likewise.
56440         * modules/strings (Makefile.am): Likewise.
56441         * modules/sys_select (Makefile.am): Likewise.
56442         * modules/sys_socket (Makefile.am): Likewise.
56443         * modules/sys_stat (Makefile.am): Likewise.
56444         * modules/sys_time (Makefile.am): Likewise.
56445         * modules/sysexits (Makefile.am): Likewise.
56446         * modules/time (Makefile.am): Likewise.
56447         * modules/unistd (Makefile.am): Likewise.
56448         * modules/wchar (Makefile.am): Likewise.
56449         * modules/wctype (Makefile.am): Likewise.
56450         Reported by Reuben Thomas <rrt@sc3d.org>.
56451
56452 2008-08-29  Bruno Haible  <bruno@clisp.org>
56453
56454         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
56455         any more.
56456
56457 2008-08-29  Simon Josefsson  <simon@josefsson.org>
56458
56459         * MODULES.html.sh (Misc): Add bitrotate.
56460
56461         * modules/bitrotate: New file.
56462
56463         * lib/bitrotate.h: New file.
56464
56465         * modules/bitrotate-tests: New file.
56466
56467         * tests/test-bitrotate.c: New file.
56468
56469         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
56470         on the bitrotate module.
56471
56472         * lib/arctwo.c: Use new bitrotate module.
56473
56474 2008-08-29  Jim Meyering  <meyering@redhat.com>
56475
56476         bootstrap: merge changes from coreutils
56477         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
56478         of copied files.  Remove a kludge, now that this is fixed.
56479         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
56480         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
56481         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
56482
56483 2008-08-29  Bruno Haible  <bruno@clisp.org>
56484
56485         * MODULES.html.sh: Remove --cvs-urls option.
56486
56487 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
56488
56489         maint.mk: adjust to file name change
56490         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
56491
56492 2008-08-28  Jim Meyering  <meyering@redhat.com>
56493
56494         * modules/getndelim2 (License): Relicense to LGPLv2+.
56495         Approved by Richard Stallman for the version of 1995, and by
56496         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
56497
56498 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
56499
56500         * lib/getdelim.c (flockfile, funlockfile): Make all of them
56501         dummy if one is not available.  Do not touch them if
56502         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
56503         (getc_maybe_unlocked): New.
56504         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
56505
56506 2008-08-26  Eric Blake  <ebb9@byu.net>
56507
56508         doc/INSTALL: resync from autoconf
56509         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
56510         (INSTALL_PRELUDE): Delete; this is done more efficiently by
56511         moving...
56512         * install.texi [!autoconf]: ...here.  Resync from autoconf.
56513         * INSTALL: Regenerate.
56514         * INSTALL.ISO: New file.
56515         * INSTALL.UTF-8: Likewise.
56516
56517 2008-08-26  Jim Meyering  <meyering@redhat.com>
56518
56519         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
56520         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
56521         these definitions conditional, so that they may be overridden, too.
56522
56523 2008-08-26  Bruno Haible  <bruno@clisp.org>
56524
56525         Generate INSTALL file variants with prettier quotes.
56526         * doc/Makefile (INSTALL_PRELUDE): New macro.
56527         (INSTALL): Use it.
56528         (INSTALL.ISO, INSTALL.UTF-8): New rules.
56529
56530 2008-08-26  Bruno Haible  <bruno@clisp.org>
56531
56532         Run makeinfo in an English locale.
56533         * doc/Makefile (MAKEINFO): New variable.
56534
56535 2008-08-26  Bruno Haible  <bruno@clisp.org>
56536
56537         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
56538         Suggested by Eric Blake.
56539
56540 2008-08-25  Bruno Haible  <bruno@clisp.org>
56541
56542         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
56543
56544 2008-08-25  Eric Blake  <ebb9@byu.net>
56545
56546         c-stack: test that stack overflow can be caught
56547         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
56548         that platform allows handling stack overflow; at least OS/2 EMX
56549         has sigaltstack, but crashes before transferring control to
56550         handler on stack overflow.
56551         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
56552         check for HAVE_STACK_OVERFLOW_HANDLING.
56553         Reported by Elbert Pol.
56554
56555 2008-08-25  Bruno Haible  <bruno@clisp.org>
56556
56557         * doc/posix-functions/strftime.texi: Fix description of strftime
56558         module.
56559
56560 2008-08-24  Bruno Haible  <bruno@clisp.org>
56561
56562         * tests/uniwidth/test-uc_width2.c: New file.
56563         * tests/uniwidth/test-uc_width2.sh: New file.
56564         * modules/uniwidth/width-tests (Files): Add the new files.
56565         (TESTS): Add uniwidth/test-uc_width2.sh.
56566         (TESTS_ENVIRONMENT): New variable.
56567         (check_PROGRAMS): Add test-uc_width2.
56568         (test_uc_width2_SOURCES): New variable.
56569
56570         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
56571         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
56572         not 0x00AB.
56573         Reported by Alexander V. Lukyanov <lav@netis.ru>.
56574
56575 2008-08-22  Eric Blake  <ebb9@byu.net>
56576
56577         test-lock, test-tls: mention why a test is skipped
56578         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
56579         skipped.
56580         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
56581
56582         count-one-bits: relax license
56583         * modules/count-one-bits (License): Relicense to LGPLv2+.
56584         Suggested by Ludovic Courtès, approved by Ben Pfaff.
56585
56586 2008-08-22  Andreas Schwab  <schwab@suse.de>
56587
56588         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
56589         Remove spurious space in assignment.
56590
56591 2008-08-21  Simon Josefsson  <simon@josefsson.org>
56592
56593         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
56594         Paul Eggert <eggert@CS.UCLA.EDU>.
56595
56596 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
56597
56598         * modules/gettext: Add m4/threadlib.m4.
56599
56600 2008-08-19  Eric Blake  <ebb9@byu.net>
56601
56602         test-c-stack: fix compilation failure on FreeBSD 5.0
56603         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
56604         headers before <sys/resource.h>.
56605         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
56606         the bug.
56607         Reported by Nelson H. F. Beebe.
56608
56609         strverscmp: migrate from "strverscmp.h" to <string.h>
56610         * modules/string (Makefile.am): Add new hooks.
56611         * modules/strverscmp (Files): Remove strverscmp.h.
56612         (Depends-on): Add string.
56613         (configure.ac): Add indicator.
56614         (Include): Mention new header.
56615         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
56616         defaults.
56617         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
56618         results.
56619         * lib/strverscmp.h: Delete.
56620         * lib/string.in.h (strverscmp): Provide declaration, when needed.
56621         * tests/test-strverscmp.c (includes): Adjust client.
56622         * lib/check-version.c (includes): Likewise.
56623         * NEWS: Document the change.
56624
56625         strverscmp: add unit test
56626         * modules/strverscmp-tests: New file.
56627         * tests/test-strverscmp.c: Likewise.
56628
56629 2008-08-19  Simon Josefsson  <simon@josefsson.org>
56630
56631         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
56632         regarding Windows crypto stuff, from Mono.
56633
56634 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
56635
56636         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
56637         if present, for intel RND.  Return error on failures.
56638
56639 2008-08-18  Ben Pfaff  <blp@gnu.org>
56640
56641         gitlog-to-changelog: give better diagnostic for failed pipe-open
56642         * build-aux/gitlog-to-changelog: Improve error message: suggest
56643         that the version of Git may be too old.
56644
56645 2008-08-18  Simon Josefsson  <simon@josefsson.org>
56646
56647         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
56648         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
56649
56650 2008-08-18  Bruno Haible  <bruno@clisp.org>
56651
56652         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
56653         pthread_in_use().
56654
56655 2008-08-18  Bruno Haible  <bruno@clisp.org>
56656
56657         * lib/glthread/threadlib.c: Include <pthread.h>.
56658
56659 2008-08-18  Bruno Haible  <bruno@clisp.org>
56660
56661         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
56662         glthread_recursive_lock_* macros.
56663         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
56664         Fix syntax error.
56665
56666 2008-08-18  Bruno Haible  <bruno@clisp.org>
56667
56668         * lib/glthread/thread.c: Avoid forcing a context switch right after
56669         thread creation.
56670
56671 2008-08-17  Bruno Haible  <bruno@clisp.org>
56672
56673         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
56674         * lib/glthread/thread.h: Provide Win32 specific implementation.
56675         * modules/thread (Files): Add lib/glthread/thread.c.
56676         (Depends-on): Add lock.
56677         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
56678
56679 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56680
56681         New module 'yield'.
56682         * modules/yield: New file.
56683         * lib/glthread/yield.h: New file.
56684         * m4/yield.m4: New file.
56685         * MODULES.html.sh (Multithreading): Add yield.
56686
56687 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56688
56689         New module 'thread'.
56690         * modules/thread: New file.
56691         * lib/glthread/thread.h: New file.
56692         * m4/thread.m4: New file.
56693         * MODULES.html.sh (Multithreading): Add thread.
56694
56695 2008-08-17  Bruno Haible  <bruno@clisp.org>
56696
56697         * lib/glthread/lock.h: Include <stdlib.h> always.
56698         * lib/glthread/tls.h: Likewise.
56699         * lib/glthread/cond.h: Likewise.
56700
56701 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56702
56703         New module 'cond'.
56704         * modules/cond: New file.
56705         * lib/glthread/cond.h: New file.
56706         * lib/glthread/cond.c: New file.
56707         * m4/cond.m4: New file.
56708         * MODULES.html.sh (Multithreading): Add cond.
56709
56710 2008-08-16  Eric Blake  <ebb9@byu.net>
56711
56712         c-stack: fix regression on Irix 5.3 from 2008-06-21
56713         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
56714         sa_sigaction...
56715         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
56716         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
56717         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
56718         * modules/signal (Makefile.am): Use the value.
56719         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
56720         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
56721         * doc/posix-headers/signal.texi (signal.h): Document this
56722         portability issue.
56723         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
56724         Reported by Tom G. Christensen.
56725
56726 2008-08-17  Bruno Haible  <bruno@clisp.org>
56727
56728         New module 'threadlib'.
56729         * modules/threadlib: New file.
56730         * lib/glthread/threadlib.c: New file, extracted from
56731         lib/glthread/lock.c.
56732         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
56733         functions.
56734         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
56735         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
56736         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
56737         macros.
56738         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
56739         (gl_DISABLE_THREADS): Remove macro.
56740         * modules/lock (Files): Remove build-aux/config.rpath.
56741         (Depends-on): Remove havelib. Add threadlib.
56742         (configure.ac-early): Remove section.
56743         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
56744         * modules/tls (Depends-on): Remove lock. Add threadlib.
56745         (Link): New section, copied from threadlib.
56746         * MODULES.html.sh (Multithreading): Add threadlib.
56747
56748 2008-08-14  Bruno Haible  <bruno@clisp.org>
56749
56750         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
56751         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
56752         glthread_rwlock_unlock, glthread_rwlock_destroy,
56753         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
56754         glthread_recursive_lock_destroy): Define as macros always.
56755         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
56756         glthread_lock_lock.
56757         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
56758         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
56759         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
56760         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
56761         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
56762         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
56763         (glthread_recursive_lock_lock_func): Renamed from
56764         glthread_recursive_lock_lock.
56765         (glthread_recursive_lock_unlock_func): Renamed from
56766         glthread_recursive_lock_unlock.
56767         (glthread_recursive_lock_destroy_func): Renamed from
56768         glthread_recursive_lock_destroy.
56769
56770 2008-08-14  Bruno Haible  <bruno@clisp.org>
56771
56772         * lib/glthread/lock.h: Renamed from lib/lock.h.
56773         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
56774         * lib/glthread/tls.h: Renamed from lib/tls.h.
56775         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
56776         * lib/fstrcmp.c: Update includes.
56777         * lib/strsignal.c: Update includes.
56778         * modules/lock (Files, Makefile.am): Update.
56779         (Include): Change to "glthread/lock.h".
56780         * modules/tls (Files, Makefile.am): Update.
56781         (Include): Change to "glthread/tls.h".
56782         * tests/test-lock.c: Update includes.
56783         * tests/test-tls.c: Update includes.
56784         * NEWS: Mention the renamed header files.
56785
56786 2008-08-11  Jim Meyering  <meyering@redhat.com>
56787
56788         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
56789
56790 2008-08-11  Eric Blake  <ebb9@byu.net>
56791
56792         test-c-stack: avoid C99-ism
56793         * tests/test-c-stack.c (main): Fix whitespace, move declaration
56794         before statement.
56795         Reported by Alain Guibert.
56796
56797 2008-08-10  Jim Meyering  <meyering@redhat.com>
56798
56799         ensure that return value of uinttostr et al are not ignored
56800         * lib/inttostr.h (__GNUC_PREREQ): Define.
56801         (__attribute_warn_unused_result__): Define.
56802         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
56803
56804 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
56805
56806         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
56807         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
56808
56809 2008-08-07  Jim Meyering  <meyering@redhat.com>
56810
56811         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
56812
56813         * modules/mkstemp (License): Relicense under LGPLv2+.
56814         * modules/tempname (License): Likewise.
56815
56816 2008-08-06  Bruno Haible  <bruno@clisp.org>
56817
56818         * lib/poll.c (poll): Further micro-optimization.
56819
56820 2008-08-06  Jim Meyering  <meyering@redhat.com>
56821
56822         inet_pton.c: use locale-independent tolower
56823         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
56824         (inet_pton6): Use c_tolower rather than tolower.
56825         * modules/inet_pton (Depends-on): Add c-ctype.
56826
56827 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
56828
56829         * lib/poll.c (poll): Avoid division when timeout is 0, cache
56830         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
56831
56832 2008-08-06  Jim Meyering  <meyering@redhat.com>
56833
56834         * modules/inet_pton (License): Relicense under LGPLv2+.
56835
56836 2008-08-03  Bruno Haible  <bruno@clisp.org>
56837
56838         Additional non-aborting API for lock and tls.
56839         * lib/lock.h: Include <errno.h>.
56840         (glthread_lock_init): New macro/function.
56841         (gl_lock_init): Define as wrapper around glthread_lock_init.
56842         (glthread_lock_lock): New macro/function.
56843         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
56844         (glthread_lock_unlock): New macro/function.
56845         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
56846         (glthread_lock_destroy): New macro/function.
56847         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
56848         (glthread_rwlock_init): New macro/function.
56849         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
56850         (glthread_rwlock_rdlock): New macro/function.
56851         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
56852         (glthread_rwlock_wrlock): New macro/function.
56853         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
56854         (glthread_rwlock_unlock): New macro/function.
56855         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
56856         (glthread_rwlock_destroy): New macro/function.
56857         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
56858         (glthread_recursive_lock_init): New macro/function.
56859         (gl_recursive_lock_init): Define as wrapper around
56860         glthread_recursive_lock_init.
56861         (glthread_recursive_lock_lock): New macro/function.
56862         (gl_recursive_lock_lock): Define as wrapper around
56863         glthread_recursive_lock_lock.
56864         (glthread_recursive_lock_unlock): New macro/function.
56865         (gl_recursive_lock_unlock): Define as wrapper around
56866         glthread_recursive_lock_unlock.
56867         (glthread_recursive_lock_destroy): New macro/function.
56868         (gl_recursive_lock_destroy): Define as wrapper around
56869         glthread_recursive_lock_destroy.
56870         (glthread_once): New macro/function.
56871         (gl_once): Define as wrapper around glthread_once.
56872         Update function declarations.
56873         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
56874         glthread_rwlock_init. Return error code.
56875         (glthread_rwlock_rdlock_multithreaded): Renamed from
56876         glthread_rwlock_rdlock. Return error code.
56877         (glthread_rwlock_wrlock_multithreaded): Renamed from
56878         glthread_rwlock_wrlock. Return error code.
56879         (glthread_rwlock_unlock_multithreaded): Renamed from
56880         glthread_rwlock_unlock. Return error code.
56881         (glthread_rwlock_destroy_multithreaded): Renamed from
56882         glthread_rwlock_destroy. Return error code.
56883         (glthread_recursive_lock_init_multithreaded): Renamed from
56884         glthread_recursive_lock_init. Return error code.
56885         (glthread_recursive_lock_lock_multithreaded): Renamed from
56886         glthread_recursive_lock_lock. Return error code.
56887         (glthread_recursive_lock_unlock_multithreaded): Renamed from
56888         glthread_recursive_lock_unlock. Return error code.
56889         (glthread_recursive_lock_destroy_multithreaded): Renamed from
56890         glthread_recursive_lock_destroy. Return error code.
56891         (glthread_once_call): Make static.
56892         (glthread_once_multithreaded): Renamed from glthread_once.
56893         * lib/tls.h: Include <errno.h>.
56894         (glthread_tls_key_init): New macro/function.
56895         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
56896         (glthread_tls_set): New macro/function.
56897         (gl_tls_set): Define as wrapper around glthread_tls_set.
56898         (glthread_tls_key_destroy): New macro/function.
56899         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
56900         Update function declarations.
56901         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
56902         glthread_tls_get.
56903         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56904
56905 2008-08-04  Eric Blake  <ebb9@byu.net>
56906
56907         gnumakefile: use space, not TAB, outside of targets
56908         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
56909
56910 2008-08-02  Jim Meyering  <meyering@redhat.com>
56911
56912         getdate.y: avoid locale-dependent date parsing failure
56913         In Turkish locales, getdate would fail to recognize keywords
56914         containing a lowercase "i".  The solution is not to rely on
56915         locale-sensitive case-conversion.
56916         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
56917         (lookup_word): Use c_toupper in place of toupper.
56918         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
56919         Reported by Vefa Bicakci <bicave@superonline.com> in
56920         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
56921         * modules/getdate (Depends-on): Add c-ctype.
56922
56923 2008-08-02  Bruno Haible  <bruno@clisp.org>
56924
56925         * gnulib-tool (func_import): When updating or creating a .gitignore
56926         file, prepend each added line with a slash, and ignore leading slashes
56927         from the existing lines.
56928         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56929
56930 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56931
56932         Portability fix for GNU make 3.79.1.
56933         * top/GNUmakefile: Avoid 'else COND', which older GNU make
56934         versions do not understand.
56935
56936 2008-08-01  Bruno Haible  <bruno@clisp.org>
56937
56938         Work around bug of HP-UX 10.20 cc with -0.0 literal.
56939         * tests/test-isnanf.h (zero): New variable.
56940         (main): Avoid literal -0.0f.
56941         * tests/test-isnand.h (zero): New variable.
56942         (main): Avoid literal -0.0.
56943         * tests/test-isnanl.h (zero): New variable.
56944         (main): Avoid literal -0.0L.
56945         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
56946         (test_float, test_double, test_long_double): Avoid literals -0.0f,
56947         -0.0, -0.0L.
56948         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
56949         (test_signbitd): Avoid literal -0.0.
56950         (test_signbitl): Avoid literal -0.0L.
56951         * tests/test-ceilf1.c (zero): New variable.
56952         (main): Avoid literal -0.0f.
56953         * tests/test-ceill.c (zero): New variable.
56954         (main): Avoid literal -0.0L.
56955         * tests/test-floorf1.c (zero): New variable.
56956         (main): Avoid literal -0.0f.
56957         * tests/test-floorl.c (zero): New variable.
56958         (main): Avoid literal -0.0L.
56959         * tests/test-roundf1.c (zero): New variable.
56960         (main): Avoid literal -0.0f.
56961         * tests/test-round1.c (zero): New variable.
56962         (main): Avoid literal -0.0.
56963         * tests/test-roundl.c (zero): New variable.
56964         (main): Avoid literal -0.0L.
56965         * tests/test-truncf1.c (zero): New variable.
56966         (main): Avoid literal -0.0f.
56967         * tests/test-trunc1.c (zero): New variable.
56968         (main): Avoid literal -0.0.
56969         * tests/test-truncl.c (zero): New variable.
56970         (main): Avoid literal -0.0L.
56971         * tests/test-frexp.c (zero): New variable.
56972         (main): Avoid literal -0.0.
56973         * tests/test-frexpl.c (zero): New variable.
56974         (main): Avoid literal -0.0L.
56975         * tests/test-ldexpl.c (zero): New variable.
56976         (main): Avoid literal -0.0L.
56977         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56978         (zerod, zerol): New variables.
56979         (test_function): Avoid literals -0.0, -0.0L.
56980         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56981         (zerod, zerol): New variables.
56982         (test_function): Avoid literals -0.0, -0.0L.
56983         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56984         (zerod, zerol): New variables.
56985         (test_function): Avoid literals -0.0, -0.0L.
56986         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56987         (zerod, zerol): New variables.
56988         (test_function): Avoid literals -0.0, -0.0L.
56989         * tests/test-strtod.c (zero): New variable.
56990         (main): Avoid literal -0.0.
56991         Reported by Jonathan C. Patschke <jp@centtech.com>.
56992
56993 2008-07-31  Jim Meyering  <meyering@redhat.com>
56994
56995         sha256.h: correct definition of SHA224_DIGEST_SIZE
56996         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
56997         Reported by Paulie Pena IV <paulie4@gmail.com>.
56998         Define as 224 / 8, rather than as a literal.
56999         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
57000         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
57001         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
57002
57003 2008-07-31  Bruno Haible  <bruno@clisp.org>
57004
57005         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
57006         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
57007         Reported by Jonathan Patschke <jp@centtech.com>.
57008
57009 2008-07-31  Bruno Haible  <bruno@clisp.org>
57010
57011         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
57012         Reported by Paolo Bonzini <bonzini@gnu.org>.
57013
57014 2008-07-30  Eric Blake  <ebb9@byu.net>
57015
57016         test-strtod: allow compilation without -lm
57017         * tests/test-strtod.c (main): Avoid link dependence on fabs.
57018         Reported by Dennis Clarke <blastwave@gmail.com>.
57019
57020 2008-07-28  Jim Meyering  <meyering@redhat.com>
57021
57022         bootstrap: work also when there are no .po files in po/
57023         * build-aux/bootstrap (update_po_files): Complete the change
57024         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
57025
57026 2008-07-27  Jim Meyering  <meyering@redhat.com>
57027
57028         * users.txt: Add zile.
57029
57030 2008-07-26  Ben Pfaff  <blp@gnu.org>
57031
57032         Add missing dependencies on new m4/exponent[fdl].m4 files.
57033         * modules/isnanf-nolibm: Add m4/exponentf.m4.
57034         * modules/isnand-nolibm: Add m4/exponentd.m4.
57035         * modules/isnanl-nolibm: Add m4/exponentl.m4.
57036         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
57037         m4/isnan[fdl].m4, because the macros actually used moved.
57038         Reported by Jim Meyering.
57039
57040 2008-07-14  Ben Pfaff  <blp@gnu.org>
57041
57042         Add isinf module.
57043         * lib/isinf.c: New file.
57044         * lib/math.in.h: Define isinf macro if we have decided to replace
57045         it.
57046         * m4/isinf.m4: New file.
57047         * m4/math_h.m4: Initialize and substitute variables for isinf
57048         module.
57049         * modules/isinf: New file.
57050         * modules/isinf-tests: New file.
57051         * modules/math: Add substitutions for new module.
57052         * tests/test-isinf.c: New file.
57053         * doc/posix-functions/isinf.texi: Mention new module.
57054         * MODULES.html.sh: Mention new module.
57055
57056 2008-07-14  Ben Pfaff  <blp@gnu.org>
57057
57058         Factor out some macros for use by additional modules.
57059         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
57060         exponentf.m4.
57061         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
57062         exponentd.m4.
57063         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
57064         file exponentl.m4.
57065         * m4/exponentf.m4: New file.
57066         * m4/exponentd.m4: New file.
57067         * m4/exponentl.m4: New file.
57068         * modules/isnanf: Use new file m4/exponentf.m4.
57069         * modules/isnand: Use new file m4/exponentd.m4.
57070         * modules/isnanl: Use new file m4/exponentl.m4.
57071
57072 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
57073
57074         mktime.c: normalize tp->tm_isdst value to -1/0/1.
57075         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
57076         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
57077         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
57078
57079         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
57080         readlink on platforms without PATH_MAX.
57081
57082 2008-07-21  Eric Blake  <ebb9@byu.net>
57083
57084         Warn, not fail, on stale version.
57085         * top/GNUmakefile (_curr-ver): Tone down previous patch.
57086
57087         Don't allow installation with stale devel version number.
57088         * top/GNUmakefile (_is-install-target): New macro.
57089         (_curr-ver): Forbid installation with stale version number.
57090
57091 2008-07-20  Bruno Haible  <bruno@clisp.org>
57092
57093         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
57094         TESTS_ENVIRONMENT.
57095         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
57096
57097 2008-07-20  Bruno Haible  <bruno@clisp.org>
57098
57099         * lib/c-stack.h (c_stack_action): Add documentation.
57100         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
57101
57102 2008-07-20  Bruno Haible  <bruno@clisp.org>
57103
57104         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
57105         * modules/readlink (License): Likewise.
57106
57107 2008-07-17  Eric Blake  <ebb9@byu.net>
57108
57109         * modules/c-stack (Link): Fix typo.
57110
57111         Make c-stack use libsigsegv, when available.
57112         * modules/c-stack (Depends-on): Add libsigsegv.
57113         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
57114         needed.
57115         * lib/c-stack.c (SIGSTKSZ): Define fallback.
57116         (segv_handler, overflow_handler, c_stack_action)
57117         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
57118         implementation when libsigsegv is available, but only when using
57119         the library is necessary.
57120         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
57121         comment, explaining why XSI check fails on Linux.
57122         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
57123         * tests/test-c-stack2.sh: Tweak skip message.
57124         * NEWS: Document new link-time requirements.
57125
57126 2008-07-16  Eric Blake  <ebb9@byu.net>
57127
57128         c-stack: Expose false positives when not using libsigsegv.
57129         * modules/c-stack-tests (Files): Expand test.
57130         * tests/test-c-stack.c (main): Add means to conditionally trigger
57131         non-overflow SIGSEGV.
57132         * tests/test-c-stack2.sh: New file.
57133
57134 2008-07-14  Bruno Haible  <bruno@clisp.org>
57135
57136         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
57137         Reported by Eric Blake.
57138
57139 2008-07-14  Sam Steingold  <sds@gnu.org>
57140             Bruno Haible  <bruno@clisp.org>
57141
57142         New module libsigsegv.
57143         * modules/libsigsegv: New file.
57144         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
57145         modifications.
57146         * MODULES.html.sh (Signal handling): New section.
57147
57148 2008-07-14  Bruno Haible  <bruno@clisp.org>
57149
57150         * modules/unictype/ctype-* (Description): Add the word "function".
57151         Improves the resulting doc in MODULES.html.
57152
57153 2008-07-12  Ben Pfaff  <blp@gnu.org>
57154
57155         Add longlong module.
57156         * modules/longlong: New file.
57157
57158 2008-07-12  Bruno Haible  <bruno@clisp.org>
57159
57160         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
57161         to empty.
57162
57163 2008-07-10  Ben Pfaff  <blp@gnu.org>
57164
57165         Add isnan module.
57166         * doc/posix-functions/isnan.texi: Mention new module.
57167         * lib/math.in.h: Define isnan macro if we have decided to replace
57168         it.
57169         * m4/isnan.m4: New file.
57170         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
57171         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
57172         also.
57173         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
57174         redundancy.
57175         * m4/math_h.m4: Initialize and substitute variables for isnan
57176         module.
57177         * modules/isnan: New file.
57178         * modules/isnan-tests: New file.
57179         * modules/math: Add substitutions for new module.
57180         * tests/test-isnan.c: New file.
57181         * MODULES.html.sh: Mention new module.
57182
57183 2008-07-10  Ben Pfaff  <blp@gnu.org>
57184
57185         Add isnanf module.
57186         * lib/isnanf.m4: New file.
57187         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
57188         (gl_HAVE_ISNANF_IN_LIBM): New macro.
57189         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
57190         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
57191         * modules/isnanf: New file.
57192         * modules/isnanf-tests: New file.
57193         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
57194         files.
57195         * tests/test-isnanf-nolibm.c: factored most of its contents into
57196         new file tests/test-isnanf.h.
57197         * tests/test-isnanf.h: New file.
57198         * tests/test-isnanf.c: New file.
57199         * MODULES.html.sh: Mention new module.
57200         * doc/glibc-functions/isnanf.texi: Mention new module.
57201
57202 2008-07-10  Ben Pfaff  <blp@gnu.org>
57203
57204         Add isnand module.
57205         * lib/isnand.h: New file.
57206         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
57207         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
57208         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
57209         functionality also.
57210         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
57211         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
57212         (gl_HAVE_ISNAND_IN_LIBM): New macro.
57213         * modules/isnand: New file.
57214         * modules/isnand-tests: New file.
57215         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
57216         files.
57217         * tests/test-isnand-nolibm.c: factored most of its contents into
57218         new file tests/test-isnand.h.
57219         * tests/test-isnand.h: New file.
57220         * tests/test-isnand.c: New file.
57221         * MODULES.html.sh: Mention new module.
57222
57223 2008-07-10  Ben Pfaff  <blp@gnu.org>
57224
57225         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
57226         * lib/isnand.h: Rename lib/isnand-nolibm.h.
57227         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
57228         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
57229         * modules/isnanf-nolibm: Update references to renamed files.
57230         * modules/isnand-nolibm: Likewise.
57231         * modules/isnanf-nolibm-tests: Likewise.
57232         * modules/isnand-nolibm-tests: Likewise.
57233         * lib/frexp.c: Likewise.
57234         * lib/isfinite.c: Likewise.
57235         * lib/signbitd.c: Likewise.
57236         * lib/signbitf.c: Likewise.
57237         * lib/vasnprintf.c: Likewise.
57238         * tests/test-ceilf1.c: Likewise.
57239         * tests/test-ceilf2.c: Likewise.
57240         * tests/test-floorf1.c: Likewise.
57241         * tests/test-floorf2.c: Likewise.
57242         * tests/test-frexp.c: Likewise.
57243         * tests/test-round1.c: Likewise.
57244         * tests/test-round2.c: Likewise.
57245         * tests/test-roundf1.c: Likewise.
57246         * tests/test-strtod.c: Likewise.
57247         * tests/test-trunc1.c: Likewise.
57248         * tests/test-trunc2.c: Likewise.
57249         * tests/test-truncf1.c: Likewise.
57250         * tests/test-truncf2.c: Likewise.
57251         * NEWS: Mention the renamed header files.
57252
57253 2008-07-11  Jim Meyering  <meyering@redhat.com>
57254
57255         vc-list-files: make the last-resort awk code more portable
57256         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
57257         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
57258         does not support it.
57259
57260 2008-07-10  Eric Blake  <ebb9@byu.net>
57261
57262         Work with tar's bootstrap.
57263         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
57264         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
57265         an m4 comment.
57266
57267 2008-07-09  Jim Meyering  <meyering@redhat.com>
57268
57269         posix-shell.m4: fix typo that made this test malfunction
57270         * m4/posix-shell.m4: Remove capitalization in variable name.
57271
57272 2008-07-08  Bruno Haible  <bruno@clisp.org>
57273
57274         * m4/onceonly.m4: Update comments.
57275         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57276
57277 2008-07-04  Jim Meyering  <meyering@redhat.com>
57278
57279         * users.txt: Add vc-dwim.
57280         (bison, coreutils): Use the gitweb URL.
57281
57282 2008-07-03  Jim Meyering  <meyering@redhat.com>
57283
57284         * users.txt: Add libffcall.  From Sam Steingold.
57285
57286 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
57287
57288         getdate.y: do not ignore TZ with relative day, month or year offset
57289         * lib/getdate.y (get_date): Move the tz-handling block to follow the
57290         relative-date-handling, since otherwise, the latter would clobber the
57291         sole output (an updated Start value) of the tz-handling block.
57292         * tests/test-getdate.c: Tests for the fix
57293
57294 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57295
57296         Recognize 'foo_LIBRARIES += libgnu.a'.
57297         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
57298         makefile snippet has already specified an installation location,
57299         also using '+='.
57300
57301 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
57302
57303         getdate.y: factor out common actions
57304         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
57305         Use them in place of open-coded actions.
57306
57307 2008-07-01  Simon Josefsson  <simon@josefsson.org>
57308
57309         Add self-test for getdate module.
57310         * modules/getdate-tests: New file.
57311         * tests/test-getdate.c: New file.
57312
57313 2008-06-29  Bruno Haible  <bruno@clisp.org>
57314
57315         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
57316         .gitignore.
57317         Reported by Sylvain Beucler <beuc@beuc.net>.
57318
57319 2008-06-29  Bruno Haible  <bruno@clisp.org>
57320
57321         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
57322         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
57323
57324 2008-06-29  Bruno Haible  <bruno@clisp.org>
57325
57326         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
57327         EXTRA_DIST.
57328         Reported by Sylvain Beucler <beuc@beuc.net>.
57329
57330 2008-06-26  Jim Meyering  <meyering@redhat.com>
57331
57332         make several modules depend on the "open" module
57333         This provides slightly increased consistency when opening-for-write
57334         the name of a non-directory spelled with a trailing slash.
57335         * modules/chdir-safer: Likewise.
57336         * modules/chown: Likewise.
57337         * modules/clean-temp: Likewise.
57338         * modules/copy-file: Likewise.
57339         * modules/fchdir: Likewise.
57340         * modules/fcntl-safer: Likewise.
57341         * modules/pipe: Likewise.
57342         * modules/utime: Likewise.
57343         Prompted by Eric Blake and Bruno Haible.
57344
57345 2008-06-24  Andreas Schwab  <schwab@suse.de>
57346
57347         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
57348         literals can be used as initializers for global variables.
57349
57350 2008-06-23  Eric Blake  <ebb9@byu.net>
57351
57352         Make gnulib-cache.m4 easier to diff.
57353         * gnulib-tool (func_import): Allow newlines when reading cached
57354         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
57355
57356 2008-06-23  Bruno Haible  <bruno@clisp.org>
57357
57358         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
57359         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
57360         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
57361         m4/signalblocking.m4.
57362         (gl_PREREQ_SIGACTION): Don't invoke it.
57363         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
57364         gl_PREREQ_SIG_HANDLER_H.
57365         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57366         Don't check for sigaction here.
57367
57368 2008-06-23  Bruno Haible  <bruno@clisp.org>
57369
57370         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
57371         (install_handlers): Don't set the SA_RESETHAND flag.
57372
57373 2008-06-23  Bruno Haible  <bruno@clisp.org>
57374
57375         * m4/sigaction.m4: Comment fixes.
57376         * lib/signal.in.h: Likewise.
57377
57378 2008-06-23  Eric Blake  <ebb9@byu.net>
57379
57380         Fix typo.
57381         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
57382
57383         Avoid SA_ namespace.
57384         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
57385         Reported by Ralf Wildenhues.
57386
57387         Avoid test failure due to SA_RESTORER.
57388         * tests/test-sigaction.c (SA_MASK): New macro.
57389         (main): Avoid failing due to extension flags being set.
57390         Reported by Jim Meyering.
57391
57392         Revert use of sig-handler.h in sigprocmask.c.
57393         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
57394         it requires the existence of struct sigaction.
57395         * lib/sigprocmask.c (handler_t): Restore typedef.
57396         (rpl_signal, old_handlers): Use local type.
57397
57398 2008-06-22  Bruno Haible  <bruno@clisp.org>
57399
57400         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
57401         conditionally.
57402         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57403
57404 2008-06-22  Bruno Haible  <bruno@clisp.org>
57405
57406         * doc/posix-functions/siginterrupt.texi: Move note.
57407
57408         * lib/signal.in.h (SA_RESTART): New macro.
57409         * lib/sigaction.c: Update comment.
57410
57411         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
57412
57413         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
57414         (gl_PREREQ_SIGPROCMASK): Invoke it.
57415         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
57416
57417         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
57418
57419         * lib/sigprocmask.c: Update a comment.
57420
57421 2008-06-21  Eric Blake  <ebb9@byu.net>
57422
57423         Use sigaction module rather than signal().
57424         * modules/c-stack (Depends-on): Add sigaction.
57425         * modules/fatal-signal (Depends-on): Likewise.
57426         * modules/nanosleep (Depends-on): Likewise.
57427         * modules/sigprocmask (Files): Add sig-handler.h.
57428         * modules/sigaction (Files): Likewise.
57429         * lib/sig-handler.h (get_handler): New file, suggested by Paul
57430         Eggert.
57431         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
57432         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
57433         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
57434         (init_fatal_signals): Likewise.
57435         * lib/nanosleep.c (rpl_nanosleep): Likewise.
57436         (siginterrupt): Delete fallback.
57437         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
57438         instead.
57439         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
57440         siginterrupt.
57441
57442         New module sigaction, for mingw.
57443         * modules/sigaction: New module...
57444         * modules/sigaction-tests: ...and its test.
57445         * m4/sigaction.m4: New file.
57446         * lib/sigaction.c: Likewise.
57447         * tests/test-sigaction.c: Likewise.
57448         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
57449         * modules/signal (Makefile.am): Likewise.
57450         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
57451         needed.
57452         * doc/posix-headers/signal.texi (signal.h): Mention provided
57453         types.
57454         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
57455         that sigaction is preferable.
57456         * doc/posix-functions/sigaction.texi (sigaction): Mention new
57457         module.
57458         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57459         sigaction.
57460
57461         Improve robustness of sigprocmask by overriding signal.
57462         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
57463         is in use.
57464         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
57465         (SIGKILL, SIGSTOP): Provide fallbacks.
57466         (rpl_signal): Implement.
57467         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
57468         signal can be called inside handlers.
57469
57470         Fix nanosleep module on mingw.
57471         * modules/nanosleep (Depends-on): Add sys_select.
57472         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
57473
57474         Fix licensing of sigprocmask.
57475         * modules/raise (License): Relicense as LGPL.
57476
57477 2008-06-21  Bruno Haible  <bruno@clisp.org>
57478
57479         * lib/propername.c (proper_name_utf8): Don't use the transliterated
57480         result if it contains question marks.
57481         Reported by Michael Geng <linux@michaelgeng.de>.
57482
57483 2008-06-19  Bruno Haible  <bruno@clisp.org>
57484
57485         Fix CVS-ism.
57486         * doc/gnulib.texi: Include updated-stamp.texi.
57487         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
57488         (updated-stamp.texi): New rule.
57489         (gnulib.info): Depend on it.
57490         * doc/.gitignore: Add updated-stamp.texi.
57491         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
57492
57493 2008-06-19  Bruno Haible  <bruno@clisp.org>
57494
57495         * doc/Makefile (gnulib.info): Update and simplify dependencies.
57496         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57497
57498 2008-06-19  Eric Blake  <ebb9@byu.net>
57499
57500         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
57501         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
57502         Reported by Stepan Kasal.
57503
57504 2008-06-18  Bruno Haible  <bruno@clisp.org>
57505
57506         * lib/fatal-signal.c (init_fatal_signals): Add comment.
57507         Reported by Eric Blake.
57508
57509 2008-06-18  Eric Blake  <ebb9@byu.net>
57510
57511         Work around cygwin 1.5.25 strsignal bug.
57512         * tests/test-strsignal.c: Allow for const char *.
57513         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
57514
57515 2008-06-18  Simon Josefsson  <simon@josefsson.org>
57516
57517         * users.txt: Update URL to article and add author/date
57518         information.
57519
57520 2008-06-17  Bruno Haible  <bruno@clisp.org>
57521
57522         New macro gl_DISABLE_THREADS.
57523         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
57524         if the user did not pass --enable-threads or --disable-threads option.
57525         (gl_DISABLE_THREADS): New macro.
57526         Reported by Eric Blake <ebb9@byu.net>.
57527
57528 2008-06-17  Bruno Haible  <bruno@clisp.org>
57529
57530         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
57531         when the macro ignores it.
57532         Based on a patch by Eric Blake <ebb9@byu.net>.
57533
57534 2008-06-17  Bruno Haible  <bruno@clisp.org>
57535
57536         * modules/tls (License): Change to LGPLv2+.
57537         Reported by Eric Blake.
57538
57539 2008-06-17  Eric Blake  <ebb9@byu.net>
57540
57541         Simplify c-stack prerequisites.
57542         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
57543         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
57544         no longer requires <ucontext.h> to exist.  Optimize setrlimit
57545         check.
57546         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
57547         <sys/resource.h>.
57548
57549         Move c-stack test into testsuite.
57550         * modules/c-stack-tests: New file.
57551         * lib/c-stack.c [DEBUG]: Move test program...
57552         * tests/test-c-stack.c: ...into this new file.  Skip rather than
57553         fail test if sigaltstack is lacking.
57554         * tests/test-c-stack.sh: New driver file.
57555
57556 2008-06-16  Eric Blake  <ebb9@byu.net>
57557
57558         Use raise module consistently.
57559         * modules/fatal-signal (Depends-on): Add raise.
57560         * modules/sigprocmask (Depends-on): Likewise.
57561         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
57562         * lib/sigprocmask.c (sigprocmask): Likewise.
57563         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57564         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
57565
57566         Fix compliance bug in sigpending.
57567         * lib/sigprocmask.c (sigpending): Return pending array via
57568         parameter, not return value.
57569
57570 2008-06-14  Eric Blake  <ebb9@byu.net>
57571
57572         Improve obstack-printf test code.
57573         * tests/test-obstack-printf.c (test_function): Fix comment, and
57574         simplify usage of obstack_* in macros.  Add a test for coverage.
57575         Reported by Bruno Haible.
57576
57577 2008-06-14  Bruno Haible  <bruno@clisp.org>
57578
57579         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
57580         array size as a constant, not as a const variable.
57581         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
57582         AC_USE_SYSTEM_EXTENSIONS.
57583         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
57584         Test whether the obstack_printf function actually exists.
57585         * modules/obstack-printf (Depends-on): Add extensions.
57586         (Include): Remove obstack.h.
57587         * modules/obstack-printf-posix (Depends-on): Add extensions.
57588         (Include): Remove obstack.h.
57589
57590 2008-06-13  Eric Blake  <ebb9@byu.net>
57591
57592         Add obstack-printf and obstack-printf-posix modules.
57593         * modules/obstack-printf: New file.
57594         * modules/obstack-printf-posix: Likewise.
57595         * MODULES.html.sh (Misc): Mention them.
57596         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
57597         Likewise.
57598         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
57599         Likewise.
57600         * modules/stdio (Makefile.am): Accomodate new modules.
57601         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57602         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
57603         Declare.
57604         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
57605         functions.
57606         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
57607         (gl_REPLACE_OBSTACK_PRINTF): New macros
57608         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
57609         * tests/test-obstack-printf.c: New file.
57610         * modules/obstack-printf-tests: Likewise.
57611         * modules/obstack-printf-posix-tests: Likewise.
57612
57613 2008-06-11  Bruno Haible  <bruno@clisp.org>
57614
57615         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
57616         * lib/open.c: Include errno.h.
57617         (open): Fail when attempting to write to a file that has a trailing
57618         slash.
57619         * tests/test-open.c (main): Test against trailing slash bug.
57620         * doc/posix-functions/open.texi: Mention the trailing slash bug.
57621
57622 2008-06-10  Bruno Haible  <bruno@clisp.org>
57623
57624         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
57625         for $? to work inside the trap command, with various /bin/sh-s.
57626         * tests/test-vc-list-files-cvs.sh: Likewise.
57627
57628 2008-06-10  Bruno Haible  <bruno@clisp.org>
57629
57630         * lib/acl-internal.h: Don't include gettext.h here.
57631         * lib/set-mode-acl.c: Include gettext.h here.
57632         * lib/copy-acl.c: Likewise.
57633
57634 2008-06-10  Bruno Haible  <bruno@clisp.org>
57635
57636         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
57637         * lib/wait-process.c (wait_subprocess): Likewise.
57638         * lib/execute.h (execute): Add termsigp argument.
57639         * lib/execute.c (execute): Likewise.
57640         * lib/csharpcomp.c (compile_csharp_using_pnet,
57641         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
57642         * lib/csharpexec.c (execute_csharp_using_pnet,
57643         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
57644         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
57645         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
57646         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
57647         is_jikes_present): Update.
57648         * lib/javaexec.c (execute_java_class): Update.
57649         * lib/javaversion.c (execute_and_read_line): Update.
57650         * NEWS: Document the changes.
57651         Reported by Eric Blake.
57652
57653 2008-06-10  Eric Blake  <ebb9@byu.net>
57654
57655         Add missing include.
57656         * tests/test-strstr.c (includes): Add <signal.h>.
57657         * tests/test-strcasestr.c (includes): Likewise.
57658         * tests/test-memmem.c (includes): Likewise.
57659
57660 2008-06-10  Bruno Haible  <bruno@clisp.org>
57661
57662         * lib/wait-process.c (wait_subprocess): Add an assertion.
57663
57664 2008-06-10  Bruno Haible  <bruno@clisp.org>
57665
57666         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
57667
57668 2008-06-10  Bruno Haible  <bruno@clisp.org>
57669
57670         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
57671         using alarm().
57672         * tests/test-strcasestr.c (main): Likewise.
57673         * tests/test-strstr.c (main): Likewise.
57674
57675 2008-06-09  Bruno Haible  <bruno@clisp.org>
57676
57677         Work around the Solaris 10 ACE ACLs ABI change.
57678         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
57679         declare if ACL_NO_TRIVIAL is present.
57680         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
57681         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
57682         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
57683         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
57684         define if ACL_NO_TRIVIAL is present.
57685         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
57686         and use the current ABI.
57687         (file_has_acl): Use same #if condition as elsewhere.
57688         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
57689         in use, and use the current ABI.
57690         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
57691         Reported by Jim Meyering.
57692
57693 2008-06-09  Eric Blake  <ebb9@byu.net>
57694
57695         Work around environments that (stupidly) ignore SIGALRM.
57696         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
57697         before using alarm().
57698         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57699         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57700         Reported by Ian Beckwith <ianb@erislabs.net>.
57701
57702         Produce autobuild blurb earlier in log.
57703         * modules/autobuild (configure.ac-early): Move AB_INIT here.
57704
57705 2008-06-09  Jim Meyering  <meyering@redhat.com>
57706         and OndÅ™ej Vašík  <ovasik@redhat.com>
57707
57708         utimens.c: correct kernel bug work-around
57709         OndÅ™ej Vašík found that the invalid return value of 280 indicates
57710         failure, not success, and the kernel bug we're trying to work
57711         around affects not just the utimensat call, but also the fallback
57712         futimens call.
57713         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
57714         not success.
57715         [HAVE_FUTIMENS]: Use the same work-around, here.
57716
57717 2008-06-09  Jim Meyering  <meyering@redhat.com>
57718
57719         add more guards around definition of ACE_-related code
57720         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
57721         ALLOW and ACE_OWNER are also defined.
57722
57723 2008-06-08  Bruno Haible  <bruno@clisp.org>
57724
57725         * lib/acl-internal.h: Add me as co-author.
57726         * lib/file-has-acl.c: Likewise.
57727         * lib/set-mode-acl.c: Likewise.
57728         * lib/copy-acl.c: Likewise.
57729
57730 2008-06-08  Bruno Haible  <bruno@clisp.org>
57731
57732         Add support for AIX ACLs.
57733         * lib/acl-internal.h (acl_nontrivial): New declaration.
57734         * lib/file-has-acl.c (acl_nontrivial): New function.
57735         (file_has_acl): Add implementation using AIX 4 ACL API.
57736         * lib/set-mode-acl.c (qset_acl): Likewise.
57737         * lib/copy-acl.c (qcopy_acl): Likewise.
57738
57739 2008-06-08  Bruno Haible  <bruno@clisp.org>
57740
57741         Add support for HP-UX ACLs.
57742         * lib/acl-internal.h (acl_nontrivial): New declaration.
57743         * lib/file-has-acl.c (acl_nontrivial): New function.
57744         (file_has_acl): Add implementation using HP-UX 11 ACL API.
57745         * lib/set-mode-acl.c (qset_acl): Likewise.
57746         * lib/copy-acl.c (qcopy_acl): Likewise.
57747
57748 2008-06-08  Bruno Haible  <bruno@clisp.org>
57749
57750         Add support for Cygwin ACLs.
57751         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
57752         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
57753         the chmod_or_fchmod call.
57754         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
57755
57756 2008-06-08  Bruno Haible  <bruno@clisp.org>
57757
57758         Fix bug with setuid modes in Solaris 10+ code.
57759         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
57760         succeeded, when the mode contains some special bits.
57761
57762 2008-06-08  Bruno Haible  <bruno@clisp.org>
57763
57764         Add support for Solaris 7..10 ACLs.
57765         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
57766         declarations.
57767         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
57768         functions.
57769         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
57770         * lib/set-mode-acl.c (qset_acl): Likewise.
57771         * lib/copy-acl.c (qcopy_acl): Likewise.
57772
57773 2008-06-08  Bruno Haible  <bruno@clisp.org>
57774
57775         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
57776         declaration.
57777         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
57778         (acl_access_nontrivial): Remove MacOS X case.
57779         (file_has_acl): Use acl_extended_nontrivial.
57780         * lib/copy-acl.c (qcopy_acl): Likewise.
57781
57782 2008-06-08  Bruno Haible  <bruno@clisp.org>
57783
57784         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
57785
57786 2008-06-08  Jim Meyering  <meyering@redhat.com>
57787
57788         * modules/acl (Maintainer): Add Bruno Haible.
57789
57790 2008-06-07  Bruno Haible  <bruno@clisp.org>
57791
57792         Improve support for Tru64 ACLs.
57793         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
57794         ACL on OSF/1.
57795
57796 2008-06-07  Bruno Haible  <bruno@clisp.org>
57797
57798         Add support for MacOS X ACLs.
57799         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
57800         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
57801         * lib/set-mode-acl.c (qset_acl): Likewise.
57802         * lib/copy-acl.c (qcopy_acl): Likewise.
57803
57804 2008-06-07  Bruno Haible  <bruno@clisp.org>
57805
57806         Fix memory leak introduced on 2008-05-22.
57807         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
57808         use.
57809
57810 2008-06-07  Bruno Haible  <bruno@clisp.org>
57811
57812         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
57813         to construct an empty ACL.
57814
57815 2008-06-07  Bruno Haible  <bruno@clisp.org>
57816
57817         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
57818         precisely.
57819         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
57820
57821 2008-06-07  Bruno Haible  <bruno@clisp.org>
57822
57823         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
57824         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
57825
57826 2008-06-07  Bruno Haible  <bruno@clisp.org>
57827
57828         * doc/posix-functions/_setjmp.texi: Explain the use of this function
57829         regardless of POSIX.
57830         * doc/posix-functions/_longjmp.texi: Likewise.
57831         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
57832         SystemV platform in this case.
57833
57834 2008-06-06  Eric Blake  <ebb9@byu.net>
57835
57836         Document abort() bugs.
57837         * doc/posix-functions/abort.texi (abort): Mention anomalies.
57838
57839         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
57840         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
57841         sigsetjmp.
57842         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
57843         siglongjmp, but only as a macro.
57844         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
57845         is obsolete.
57846         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
57847
57848         Tweak documentation to cover cygwin argz bugs.
57849         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
57850         argz bug fix; no code change needed since no cygwin releases
57851         occurred between the last fix and the bug being tested.
57852         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
57853         module and recently fixed cygwin bugs.
57854         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
57855         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
57856         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
57857         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
57858         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
57859         Likewise.
57860         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
57861         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
57862         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
57863         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
57864         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
57865         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
57866         Likewise.
57867
57868         Avoid gcc warning on cygwin.
57869         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
57870         !ACL_NO_TRIVIAL]: Avoid unused variable.
57871
57872 2008-06-05  Eric Blake  <ebb9@byu.net>
57873
57874         Be tolerant of UNKNOWN version in gnulib-tool test dir.
57875         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
57876         git-version-gen fails to come up with a version.
57877         Reported by Simon Josefsson.
57878
57879 2008-06-05  Jim Meyering  <meyering@redhat.com>
57880             Paul Eggert  <eggert@cs.ucla.edu>
57881
57882         utimens.c: work around a probable Linux kernel bug
57883         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
57884         appears to be a kernel bug that causes utimensat to return 280
57885         instead of 0, indicating success.
57886
57887 2008-06-04  Bruno Haible  <bruno@clisp.org>
57888
57889         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
57890         2008-06-01 commit.
57891
57892 2008-06-04  Bruno Haible  <bruno@clisp.org>
57893
57894         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
57895         * lib/file-has-acl.c (acl_access_nontrivial): New function.
57896         (file_has_acl): Use it. Save errno afterwards.
57897         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
57898
57899 2008-06-03  Bruno Haible  <bruno@clisp.org>
57900
57901         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
57902         draft code. Simplify #ifs.
57903         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
57904         Put Solaris code after POSIX-draft code. Fix comments regarding
57905         Solaris 10, HP-UX. Mention Cygwin.
57906         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
57907
57908 2008-06-03  Eric Blake  <ebb9@byu.net>
57909
57910         Provide fallback for older kernels.
57911         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
57912         Provide runtime fallback if kernel lacks support.
57913         Reported by Mike Frysinger.
57914
57915 2008-06-02  Bruno Haible  <bruno@clisp.org>
57916
57917         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
57918         it exists.
57919
57920 2008-06-02  Bruno Haible  <bruno@clisp.org>
57921
57922         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
57923         * lib/copy-acl.c (qcopy_acl): Update comment.
57924
57925 2008-06-02  Bruno Haible  <bruno@clisp.org>
57926
57927         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
57928         like ACL APIs.
57929
57930 2008-06-02  Bruno Haible  <bruno@clisp.org>
57931
57932         * tests/test-file-has-acl.sh: Use different code for Cygwin.
57933         * tests/test-set-mode-acl.sh: Likewise.
57934         * tests/test-copy-acl.sh: Likewise.
57935         * tests/test-copy-file.sh: Likewise.
57936
57937 2008-06-02  Bruno Haible  <bruno@clisp.org>
57938
57939         * tests/test-file-has-acl.sh: Remove unused code.
57940
57941 2008-06-01  Bruno Haible  <bruno@clisp.org>
57942
57943         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
57944         (copy_acl): Just a wrapper around qcopy_acl that emits the error
57945         messages.
57946         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
57947
57948 2008-06-01  Bruno Haible  <bruno@clisp.org>
57949
57950         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
57951         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
57952         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
57953         APIs.
57954         * modules/acl-tests (configure.ac): Remove tests now contained in
57955         m4/acl.m4.
57956
57957 2008-06-02  Jim Meyering  <meyering@redhat.com>
57958
57959         announce-gen: use a better key-server host name
57960         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
57961         it may be more consistently reliable.  Suggested by Werner Koch
57962         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
57963
57964 2008-06-01  Bruno Haible  <bruno@clisp.org>
57965
57966         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
57967         Reported by Voroskoi Andras <voroskoi@gmail.com>.
57968
57969 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
57970
57971         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
57972
57973 2008-06-01  Bruno Haible  <bruno@clisp.org>
57974
57975         New ACL tests.
57976         * tests/test-file-has-acl.sh: New file.
57977         * tests/test-file-has-acl.c: New file.
57978         * tests/test-set-mode-acl.sh: New file.
57979         * tests/test-set-mode-acl.c: New file.
57980         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
57981         * tests/test-copy-acl.c: New file.
57982         * modules/acl-tests: New file, based on modules/copy-file-tests.
57983         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
57984         (Depends-on): Add acl-tests.
57985         (configure.ac): Remove checks.
57986         (Makefile.am): Don't create test-sameacls program here any more.
57987
57988 2008-06-01  Bruno Haible  <bruno@clisp.org>
57989
57990         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
57991         * tests/test-sameacls.c: Include progname.h.
57992         (main): Invoke set_program_name. Portability fixes for MacOS X,
57993         Solaris, HP-UX.
57994
57995 2008-06-01  Bruno Haible  <bruno@clisp.org>
57996
57997         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
57998         function.
57999         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
58000
58001 2008-06-01  Bruno Haible  <bruno@clisp.org>
58002
58003         * modules/rpmatch (Depends-on): Add strdup.
58004
58005 2008-06-01  Bruno Haible  <bruno@clisp.org>
58006
58007         * lib/pipe.c: Include unistd-safer.h.
58008         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
58009         * modules/pipe (Depends-on): Add unistd-safer.
58010
58011 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58012
58013         * modules/autobuild (configure.ac): Call AB_INIT.
58014
58015 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58016
58017         * tests/test-getaddrinfo.c: Don't print debug messages by default.
58018         Suggested by Bruno Haible <bruno@clisp.org>.
58019
58020 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58021
58022         * tests/test-base64.c: Cast size_t to unsigned long when invoking
58023         printf.  Use %lu instead of %d.  Reported by Bruno Haible
58024         <bruno@clisp.org>.
58025
58026 2008-05-29  Eric Blake  <ebb9@byu.net>
58027
58028         Prefer new POSIX 200x interfaces over futimesat.
58029         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
58030         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
58031         when available.
58032         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
58033
58034 2008-05-28  Bruno Haible  <bruno@clisp.org>
58035
58036         * modules/stpcpy (License): Change to LGPLv2+.
58037         Requested by David Lutterkort <dlutter@redhat.com>.
58038
58039 2008-05-27  Bruno Haible  <bruno@clisp.org>
58040
58041         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
58042         current mingw.
58043         Reported by Jose E. Marchesi <jemarch@gnu.org>.
58044
58045 2008-05-27  Bruno Haible  <bruno@clisp.org>
58046
58047         * modules/iconv_open (Link): New section, from module 'iconv'.
58048         * modules/striconv (Link): Likewise.
58049         * modules/striconveh (Link): Likewise.
58050         * modules/xstriconv (Link): Likewise.
58051         * modules/unicodeio (Link): Likewise.
58052         * modules/propername (Link): Likewise.
58053         Reported by Jim Meyering.
58054
58055 2008-05-26  Jim Meyering  <meyering@redhat.com>
58056
58057         sha256: do not artificially restrict buffer length to be < 2^32
58058         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
58059         uint32_t to size_t.
58060         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
58061         to match.
58062
58063         avoid unaligned access errors, e.g., on sparc
58064         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
58065         direct access through a possibly-unaligned uint64* pointer.
58066         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
58067         direct access through a possibly-unaligned uint32* pointer.
58068         Prompted by this patch from Tom "spot" Callaway:
58069         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
58070
58071         sha512.c: fix typo in comment
58072         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
58073
58074 2008-05-25  Bruno Haible  <bruno@clisp.org>
58075
58076         * lib/set-mode-acl.c: Renamed from lib/acl.c.
58077         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
58078         (Makefile.am): Update lib_SOURCES.
58079
58080 2008-05-25  Bruno Haible  <bruno@clisp.org>
58081
58082         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
58083
58084 2008-05-25  Jim Meyering  <meyering@redhat.com>
58085
58086         useless-if-before-free: freed expr may have white-space differences
58087         * build-aux/useless-if-before-free: Recognize cases in which the
58088         freed expression differs from the tested one in embedded white
58089         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
58090         $1 was used, so we can't make any regexp shy.  Improved tests now
58091         detect this.
58092
58093         useless-if-before-free: accept white space in the expression.
58094         * build-aux/useless-if-before-free: For now, any white space
58095         in the expression must be identical in the free argument.
58096
58097         useless-if-before-free: efficiency tweak
58098         * build-aux/useless-if-before-free: Make the expression-matching
58099         regexp "shy".
58100         Make the *outer* regexp shy, not the expr-matching one.
58101
58102         update code-in-comment to accept cast of free arg
58103         * build-aux/useless-if-before-free: Update regexp.
58104
58105 2008-05-25  Bruno Haible  <bruno@clisp.org>
58106
58107         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
58108         * modules/copy-file-tests (Files, Makefile.am): Update.
58109         * tests/test-copy-file.c (func_test_copy): Update.
58110
58111 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
58112
58113         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
58114
58115 2008-05-23  Bruno Haible  <bruno@clisp.org>
58116
58117         Improve support for ACLs on OSF/1.
58118         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
58119         Remove fallback for unknown flavors of ACLs.
58120
58121 2008-05-22  Bruno Haible  <bruno@clisp.org>
58122
58123         Add support for ACLs on OSF/1.
58124         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
58125         replacements.
58126         (acl_free_text): New macro fallback.
58127         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
58128         acl_free.
58129         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
58130         acl_free_text function. Require AC_C_INLINE.
58131
58132 2008-05-22  Bruno Haible  <bruno@clisp.org>
58133
58134         Make copy_acl work on MacOS X 10.5.
58135         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
58136         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
58137         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
58138         If MODE_INSIDE_ACL, don't assume that every system has the same text
58139         representation for ACLs as FreeBSD.
58140         * lib/copy-acl.c (copy_acl): Add support for platforms with
58141         !MODE_INSIDE_ACL.
58142         * lib/file-has-acl.c (file_has_acl): Likewise.
58143         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
58144         FreeBSD, MacOS X, or IRIX, respectively.
58145
58146 2008-05-22  Bruno Haible  <bruno@clisp.org>
58147
58148         * lib/acl.h: Don't include <sys/acl.h>.
58149         (GETACLCNT): Move fallback to lib/acl-internal.h.
58150         * lib/acl-internal.h: Include <sys/acl.h> here.
58151         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
58152
58153 2008-05-22  Bruno Haible  <bruno@clisp.org>
58154
58155         Split off copy_acl function to separate file.
58156         * lib/copy-acl.c: New file, extracted from lib/acl.c.
58157         * lib/acl.c (copy_acl): Moved function to separate file.
58158         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
58159         * modules/acl (Files): Add lib/copy-acl.c.
58160         (Makefiles.am): Augment lib_SOURCES.
58161
58162 2008-05-22  Bruno Haible  <bruno@clisp.org>
58163
58164         * modules/copy-file-tests: New file.
58165         * tests/test-copy-file.sh: New file.
58166         * tests/test-copy-file.c: New file.
58167         * tests/test-copy-file-sameacls.c: New file.
58168
58169 2008-05-22  Eric Blake  <ebb9@byu.net>
58170
58171         Avoid gcc warning.
58172         * tests/test-memcmp.c (main): Pass NULL indirectly.
58173
58174 2008-05-21  Bruno Haible  <bruno@clisp.org>
58175
58176         Add reference doc about ACLs.
58177         * doc/acl-resources.txt: New file.
58178         * doc/acl-cygwin.txt: New file.
58179
58180 2008-05-21  Bruno Haible  <bruno@clisp.org>
58181
58182         Avoid one more warning from gcc.
58183         * lib/vasnprintf.c (IF_LINT): Update comments.
58184         (VASNPRINTF): Use it also for the 'prefix' array initializer.
58185
58186 2008-05-21  Jim Meyering  <meyering@redhat.com>
58187
58188         avoid a warning from gcc
58189         * lib/vasnprintf.c (IF_LINT): Define.
58190         (scale10_round_decimal_long_double):
58191         Use it to avoid a "may be used uninitialized" warning.
58192         (scale10_round_decimal_double): Likewise.
58193
58194 2008-05-21  Simon Josefsson  <simon@josefsson.org>
58195
58196         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
58197         declared.
58198
58199 2008-05-20  Bruno Haible  <bruno@clisp.org>
58200
58201         * tests/test-memcmp.c (main): Test also the sign of the result. Test
58202         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
58203
58204 2008-05-20  Simon Josefsson  <simon@josefsson.org>
58205
58206         * modules/memcmp-tests: New file.
58207         * tests/test-memcmp.c: New file.
58208
58209 2008-05-19  Bruno Haible  <bruno@clisp.org>
58210
58211         * modules/propername (Notice, configure.ac): Put quoted "..." into
58212         --keyword option.
58213         * lib/propername.h: Update comments accordingly.
58214         Reported by Eric Blake.
58215
58216 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
58217
58218         * modules/getpass-gnu (Depends-on): Add fseeko.
58219
58220 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58221
58222         * modules/base64-tests: New file.
58223
58224 2008-05-19  Bo Borgerson <gigabo@gmail.com>
58225
58226         * lib/base64.c (base64_decode_ctx): If a decode context structure
58227         was passed in use it to ignore newlines.  If a context structure
58228         was _not_ passed in, continue to treat newlines as garbage (this
58229         is the historical behavior).  Formerly base64_decode.
58230         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58231         takes a decode context structure.
58232         * lib/base64.h (base64_decode): Macro for four-argument calls.
58233         (base64_decode_alloc): Likewise.
58234         * lib/base64.c (base64_decode_ctx): If a decode context structure
58235         was passed in use it to ignore newlines.  If a context structure
58236         was _not_ passed in, continue to treat newlines as garbage (this
58237         is the historical behavior).  Formerly base64_decode.
58238         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58239         takes a decode context structure.
58240         * lib/base64.h (base64_decode): Macro for four-argument calls.
58241         (base64_decode_alloc): Likewise.
58242
58243 2008-05-19  Jim Meyering  <meyering@redhat.com>
58244
58245         avoid a warning from gcc
58246         * lib/trim.c (IF_LINT): Define.
58247         (trim2): Use it to avoid a "may be used uninitialized" warning.
58248
58249         Fix doc typo.
58250         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
58251
58252 2008-05-19  Bruno Haible  <bruno@clisp.org>
58253
58254         * doc/glibc-functions/getpass.texi: Document limits of other
58255         implementations.
58256
58257 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58258             Bruno Haible <bruno@clisp.org>
58259
58260         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
58261
58262 2008-05-18  Bruno Haible  <bruno@clisp.org>
58263
58264         * modules/propername: New file, from GNU gettext.
58265         * lib/propername.h: New file, from GNU gettext.
58266         * lib/propername.c: New file, from GNU gettext.
58267         * MODULES.html.sh (Internationalization functions): Add propername.
58268
58269 2008-05-16  Jim Meyering  <meyering@redhat.com>
58270             Bruno Haible  <bruno@clisp.org>
58271
58272         Avoid some warnings from "gcc -Wshadow".
58273         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
58274
58275 2008-05-15  Eric Blake  <ebb9@byu.net>
58276
58277         Extend previous patch to cygwin 1.7.0.
58278         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
58279         fast implementation in cygwin >= 1.7.0.
58280         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58281         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58282
58283 2008-05-15  Bruno Haible  <bruno@clisp.org>
58284
58285         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
58286         implementation in glibc >= 2.9.
58287         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58288         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58289
58290 2008-05-15  Bruno Haible  <bruno@clisp.org>
58291
58292         * MODULES.html.sh (Internationalization functions): Remove linebreak.
58293         (Unicode string functions): Add unilbrk/*.
58294         Reported by Karl Berry.
58295
58296 2008-05-15  Eric Blake  <ebb9@byu.net>
58297
58298         Fix violation of <stdbool.h> replacement in regex.
58299         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
58300         * lib/regexec.c (re_search_internal): Likewise.
58301         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
58302
58303 2008-05-15  Jim Meyering  <meyering@redhat.com>
58304
58305         avoid distracting test output when git or cvs is not found
58306         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
58307         * tests/test-vc-list-files-git.sh: Likewise.
58308
58309 2008-05-15  Eric Blake  <ebb9@byu.net>
58310
58311         Glibc finally accepted the memmem speedup code, bugzilla #5514.
58312         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
58313         glibc version.
58314         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
58315         * doc/posix-functions/strstr.texi (strstr): Likewise.
58316         * lib/str-two-way.h (MAX): Sychronize with glibc.
58317
58318 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
58319
58320         * lib/regcomp.c (optimize_utf8): Add a note on why we test
58321         opr.ctx_type.
58322         (calc_first): Initialize constraint field.
58323         (duplicate_node_closure): Use it instead of special casing ANCHORS.
58324         Fix grammar.
58325         (duplicate_node): Merge constraint field for all node types.
58326         (calc_eclosure_iter): Look at constraint field for all node types.
58327         * lib/regex_internal.c (create_cd_newstate): Don't look at
58328         opr.ctx_type.
58329
58330 2008-05-14  Bruno Haible  <bruno@clisp.org>
58331
58332         Help GCC to do better code generation.
58333         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
58334         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
58335         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
58336         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
58337         Declare with attribute 'malloc' if supported.
58338
58339 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
58340
58341         use "echo STR|wc -c" rather than unportable "expr length STR"
58342         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
58343         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
58344
58345 2008-05-14  Jim Meyering  <meyering@redhat.com>
58346
58347         use dd ibs=$n count=1 ... rather than less-portable head -c$n
58348         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
58349         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
58350         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
58351         via Collin Lasse.
58352
58353 2008-05-14  Eric Blake  <ebb9@byu.net>
58354
58355         Avoid quadratic growth in gl_LIBSOURCES.
58356         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
58357         Suggested by Bruno Haible.
58358
58359         Test xmemdup0.
58360         * modules/xmemdup0-tests: New file.
58361         * tests/test-xmemdup0.c: Likewise.
58362
58363 2008-05-13  Eric Blake  <ebb9@byu.net>
58364
58365         Split xmemdup0 into its own module.
58366         * modules/xmemdup0: New file.
58367         * lib/xmemdup0.h: Likewise.
58368         * lib/xmemdup0.c: Likewise.
58369         * MODULES.html.sh (Memory management functions): Add xmemdup0.
58370         * lib/xalloc.h (xmemdup0): Remove.
58371         * lib/xmalloc.c (xmemdup0): Likewise.
58372
58373 2008-05-13  Eric Blake  <ebb9@byu.net>
58374             Bruno Haible  <bruno@clisp.org>
58375
58376         Reduce number of forks required during autoconf.
58377         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
58378         and gl_LIBSOURCES_DIR.
58379         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
58380         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
58381         m4_syscmd per file.
58382         <m4_foreach_w>: Move...
58383         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
58384
58385 2008-05-13  Eric Blake  <ebb9@byu.net>
58386
58387         * gnulib-tool: Fix various comment typos.
58388
58389 2008-05-12  Bruno Haible  <bruno@clisp.org>
58390
58391         Tailor the linebreaking algorithm.
58392         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
58393
58394 2008-05-12  Bruno Haible  <bruno@clisp.org>
58395
58396         Update to Unicode 5.0.0.
58397         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58398         LBP_JV, LBP_JT. Redistribute values.
58399         (unilbrk_table): Change size.
58400         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
58401         Unicode TR#14 rev. 22.
58402         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58403         LBP_JV, LBP_JT. Redistribute values.
58404         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
58405         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
58406         Update.
58407         * lib/unilbrk/lbrkprop1.h: Regenerated.
58408         * lib/unilbrk/lbrkprop2.h: Regenerated.
58409         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
58410         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
58411         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
58412         Likewise.
58413         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
58414         Likewise.
58415         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
58416         result.
58417         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
58418         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
58419         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
58420         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
58421         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
58422         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
58423
58424 2008-05-11  Bruno Haible  <bruno@clisp.org>
58425
58426         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
58427
58428 2008-05-11  Bruno Haible  <bruno@clisp.org>
58429
58430         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
58431         * modules/unilbrk/gen-lbrk: New file.
58432
58433 2008-05-11  Bruno Haible  <bruno@clisp.org>
58434
58435         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
58436         * m4/sha512.m4 (gl_SHA512): Likewise.
58437
58438 2008-05-11  Jim Meyering  <meyering@redhat.com>
58439
58440         New modules: crypto/sha256, crypto/sha512 (from coreutils)
58441         * modules/crypto/sha256: New file.
58442         * modules/crypto/sha512: Likewise.
58443         * lib/sha256.c: Likewise.
58444         * lib/sha256.h: Likewise.
58445         * lib/sha512.c: Likewise.
58446         * lib/sha512.h: Likewise.
58447         * lib/u64.h: Likewise.
58448         * m4/sha256.m4: Likewise.
58449         * m4/sha512.m4: Likewise.
58450         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
58451
58452 2008-05-10  Bruno Haible  <bruno@clisp.org>
58453
58454         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
58455         (Input/Output <stdio.h>): Add xprintf.
58456         (Signal handling <signal.h>): Add strsignal.
58457         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
58458         (Core language properties): Add func.
58459         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
58460         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
58461         strings.
58462         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
58463         (Input/output): New section.
58464         (File system functions): Add openat-die, stat-macros.
58465         (Networking functions): Add sockets.
58466         (Unicode string functions): Add unictype/*.
58467         (Support for building libraries and executables): Add gperf.
58468         (Support for building documentation): Add agpl-3.0.
58469         (Misc): Add nocrash.
58470
58471 2008-05-10  Bruno Haible  <bruno@clisp.org>
58472
58473         * modules/unictype/gen-ctype: New file.
58474
58475 2008-05-10  Jim Meyering  <meyering@redhat.com>
58476
58477         Make chdir-safer.c more efficient on a system with no symlinks.
58478         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
58479         also if ELOOP is zero.  Suggested by Bruno Haible.
58480
58481         Make chdir-safer.c slightly safer.
58482         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
58483         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
58484
58485         Avoid compile failure on systems without ELOOP (like mingw).
58486         * lib/chdir-safer.c (ELOOP): Define if not already defined.
58487         Reported by Bruno Haible.
58488
58489 2008-05-10  Bruno Haible  <bruno@clisp.org>
58490
58491         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
58492         (is_utf8_encoding): Use a case-insensitive comparison.
58493         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
58494         streq.
58495
58496 2008-05-10  Bruno Haible  <bruno@clisp.org>
58497
58498         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
58499         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
58500         * lib/unilbrk/ulc-common.h (iconv_string_length,
58501         iconv_string_keeping_offsets): Remove declarations.
58502         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
58503         Don't include <iconv.h>, streq.h, xsize.h.
58504         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
58505         conversion.
58506         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
58507         <iconv.h>, streq.h, xsize.h.
58508         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
58509         conversion.
58510         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
58511         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
58512         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
58513         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
58514
58515 2008-05-10  Bruno Haible  <bruno@clisp.org>
58516
58517         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
58518         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
58519
58520         * modules/unilbrk/u32-width-linebreaks-tests: New file.
58521         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
58522
58523         * modules/unilbrk/u16-width-linebreaks-tests: New file.
58524         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
58525
58526         * modules/unilbrk/u8-width-linebreaks-tests: New file.
58527         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
58528
58529         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
58530         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
58531
58532         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
58533         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
58534
58535         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
58536         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
58537
58538         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
58539         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
58540
58541 2008-05-10  Bruno Haible  <bruno@clisp.org>
58542
58543         Split up 'linebreak' module.
58544         * lib/unilbrk.h: New file, based on lib/linebreak.h.
58545         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
58546         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
58547         modifications.
58548         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
58549         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
58550         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
58551         lib/linebreak.c.
58552         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
58553         lib/linebreak.c.
58554         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
58555         lib/linebreak.c.
58556         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
58557         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
58558         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
58559         lib/linebreak.c.
58560         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
58561         lib/linebreak.c.
58562         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
58563         lib/linebreak.c.
58564         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
58565         lib/linebreak.c.
58566         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
58567         lib/linebreak.c.
58568         * modules/unilbrk/base: New file.
58569         * modules/unilbrk/tables: New file.
58570         * modules/unilbrk/u8-possible-linebreaks: New file.
58571         * modules/unilbrk/u16-possible-linebreaks: New file.
58572         * modules/unilbrk/u32-possible-linebreaks: New file.
58573         * modules/unilbrk/ulc-common: New file.
58574         * modules/unilbrk/ulc-possible-linebreaks: New file.
58575         * modules/unilbrk/u8-width-linebreaks: New file.
58576         * modules/unilbrk/u16-width-linebreaks: New file.
58577         * modules/unilbrk/u32-width-linebreaks: New file.
58578         * modules/unilbrk/ulc-width-linebreaks: New file.
58579         * lib/linebreak.h: Remove file.
58580         * lib/linebreak.c: Remove file.
58581         * m4/linebreak.m4: Remove file.
58582         * modules/linebreak: Remove file.
58583         * NEWS: Mention the changes.
58584
58585 2008-05-09  Eric Blake  <ebb9@byu.net>
58586
58587         Add xmemdup0.
58588         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
58589         implementation.
58590         * lib/xmalloc.c (xmemdup0): New C implementation.
58591
58592 2008-05-08  Bruno Haible  <bruno@clisp.org>
58593
58594         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
58595
58596 2008-05-07  Eric Blake  <ebb9@byu.net>
58597
58598         Support cross-compilation of <wctype.h>.
58599         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
58600         AC_CACHE_CHECK.
58601
58602 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
58603
58604         * build-aux/vc-list-files: Add support for bzr.
58605
58606 2008-05-03  Jim Meyering  <meyering@redhat.com>
58607
58608         avoid failed assertion with tight malloc
58609         * tests/test-getndelim2.c: Correct an off-by-one assertion.
58610
58611 2008-05-03  Simon Josefsson  <simon@josefsson.org>
58612
58613         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
58614         are needed from arpa/inet.h.
58615         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
58616         Reported by Bruno Haible.
58617
58618 2008-05-02  Jim Meyering  <meyering@redhat.com>
58619
58620         avoid compilation error on FreeBSD 6
58621         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
58622
58623 2008-05-01  Jim Meyering  <meyering@redhat.com>
58624
58625         useless-if-before-free: correct --help's exit status description
58626         * build-aux/useless-if-before-free (usage): Like grep, exit 0
58627         for one or more matches, etc.  Reported by Bruno Haible.
58628
58629         vc-list-files: make the stand-alone gnulib test work
58630         * modules/vc-list-files-tests (configure.ac):
58631         Define and AC_SUBST abs_aux_dir.
58632         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
58633         $(abs_top_srcdir) to each script and having each of them
58634         duplicate the work of setting PATH, set PATH here, using
58635         the new variable, abs_aux_dir instead.
58636         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
58637         * tests/test-vc-list-files-git.sh: Likewise.
58638         Reported by Bruno Haible.
58639
58640 2008-05-01  Bruno Haible  <bruno@clisp.org>
58641
58642         * lib/getndelim2.c (getndelim2): Fix newsize computation during
58643         reallocation. Rename 'done' to 'found_delimiter'.
58644
58645 2008-05-01  Jim Meyering  <meyering@redhat.com>
58646
58647         vc-list-files: accommodate /bin/sh like the one from Solaris 10
58648         * build-aux/vc-list-files: Use `...`, not $(...).
58649
58650 2008-04-30  Jim Meyering  <meyering@redhat.com>
58651
58652         add tests for vc-list-files
58653         * modules/vc-list-files-tests: New module.
58654         * tests/test-vc-list-files-cvs.sh: New file.
58655         * tests/test-vc-list-files-git.sh: New file.
58656
58657         avoid a warning from gcc
58658         * lib/getndelim2.c (IF_LINT): Define.
58659         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
58660
58661         vc-list-files: work properly with build-aux/cvsu, too
58662         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
58663         to all cvs-based clauses.
58664
58665         vc-list-files: work properly in the CVS+awk case, too
58666         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
58667
58668         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
58669         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
58670         take more than one file argument, so .  Add quotes, just in case $dir
58671         ever contains a shell meta-character.  Prompted by Soren Hansen in
58672         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
58673
58674 2008-04-29  Eric Blake  <ebb9@byu.net>
58675
58676         Optimize getndelim2 to use block operations when possible.
58677         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
58678         freadseek, and memchr2.
58679         * lib/getndelim2.c (getndelim2): Use them for block reads.
58680
58681 2008-04-29  Bruno Haible  <bruno@clisp.org>
58682
58683         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
58684         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58685         * modules/inet_ntop (Depends-on): Add extensions.
58686         * modules/inet_pton (Depends-on): Likewise.
58687         Reported by Simon Josefsson.
58688
58689 2008-04-29  Jim Meyering  <meyering@redhat.com>
58690
58691         When the is more than one match in a block, match all of them.
58692         * build-aux/useless-if-before-free: Iterate through each block
58693         until there are no more matches.
58694
58695         Fix broken useless-if-before-free script.
58696         * build-aux/useless-if-before-free: Fix typo: missing "?" after
58697         the expression to match cast of argument to free-like function.
58698
58699 2008-04-29  Eric Blake  <ebb9@byu.net>
58700
58701         Use new header.
58702         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
58703
58704 2008-04-29  Jim Meyering  <meyering@redhat.com>
58705
58706         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
58707         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
58708         by gnulib to exist and to declare e.g., inet_ntop.
58709         Don't include "inet_ntop.h", now removed.
58710
58711         * m4/arpa_inet_h.m4: Remove trailing blanks.
58712
58713 2008-04-29  Eric Blake  <ebb9@byu.net>
58714
58715         Silence valgrind on safe reads beyond potential array bounds.
58716         * lib/rawmemchr.valgrind: New file.
58717         * lib/strchrnul.valgrind: Likewise.
58718         * modules/rawmemchr (Files): Distribute new file.
58719         * modules/strchrnul (Files): Likewise.
58720         Suggested by Bruno Haible.
58721
58722 2008-04-29  Bruno Haible  <bruno@clisp.org>
58723
58724         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
58725         (inet_ntop, inet_pton): Change portability warning's wording.
58726         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
58727         Invoke gl_CHECK_NEXT_HEADERS.
58728         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
58729         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
58730         set ARPA_INET_H.
58731         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58732         * modules/arpa_inet (Description): No longer only for systems that
58733         lack it.
58734         (Depends-on): Add include_next.
58735         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
58736         HAVE_ARPA_INET_H.
58737
58738 2008-04-29  Jim Meyering  <meyering@redhat.com>
58739
58740         * modules/mkdir (License): Re-license as LGPLv2+.
58741
58742 2008-04-29  Bruno Haible  <bruno@clisp.org>
58743
58744         * modules/rawmemchr (Maintainer): Set to Eric.
58745         * modules/strchrnul (Maintainer): Likewise.
58746
58747 2008-04-29  Simon Josefsson  <simon@josefsson.org>
58748
58749         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
58750         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
58751
58752         * modules/arpa_inet (arpa/inet.h): Use them.
58753
58754 2008-04-28  Eric Blake  <ebb9@byu.net>
58755
58756         Test getndelim2.
58757         * modules/getndelim2-tests: New file.
58758         * tests/test-getndelim2.c: Likewise.
58759         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
58760         stream.
58761         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
58762
58763         * MODULES.html.sh: Document new module.
58764
58765 2008-04-20  Bruno Haible  <bruno@clisp.org>
58766
58767         * lib/c-stack.c (die): Use raise.
58768         * modules/c-stack (Depends-on): Add raise.
58769
58770 2008-04-28  Bruno Haible  <bruno@clisp.org>
58771
58772         Expect rpmatch to be declared.
58773         * lib/yesno.c (rpmatch): Remove declaration.
58774
58775         Declare rpmatch.
58776         * lib/stdlib.in.h (rpmatch): New declaration.
58777         * lib/rpmatch.c: Include <stdlib.h> first.
58778         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
58779         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
58780         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
58781         HAVE_RPMATCH.
58782         * modules/rpmatch (Depends-on): Add stdlib, extensions.
58783         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58784         (Include): Set to <stdlib.h>.
58785         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
58786         HAVE_RPMATCH.
58787         * NEWS: Document the change.
58788
58789 2008-04-28  Bruno Haible  <bruno@clisp.org>
58790
58791         Change rpmatch to use nl_langinfo when appropriate.
58792         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
58793         (N_): New macro.
58794         (localized_pattern): New function/macro.
58795         (try): Remove match, nomatch arguments. Copy the pattern into safe
58796         memory before caching it.
58797         (rpmatch): Use localized_pattern. Add translator comments.
58798         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
58799         Suggested by Eric Blake.
58800         * modules/rpmatch (Depends-on): Add stdbool.
58801
58802 2008-04-28  Eric Blake  <ebb9@byu.net>
58803
58804         Add rawmemchr module, matching glibc.
58805         * modules/string (Makefile.am): New indicator.
58806         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
58807         * lib/string.in.h (rawmemchr): Declare when appropriate.
58808         * modules/rawmemchr: New file.
58809         * m4/rawmemchr.m4: Likewise.
58810         * lib/rawmemchr.c: Likewise.
58811         * modules/rawmemchr-tests: Likewise.
58812         * tests/test-rawmemchr.c: Likewise.
58813         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
58814         module.
58815         * modules/strchrnul (Depends-on): Add rawmemchr.
58816         * lib/strchrnul.c (strchrnul): Optimize a corner case.
58817
58818         Whitespace cleanup.
58819         * tests/test-strchrnul.c: Reindent.
58820         * lib/strchrnul.c: Likewise.
58821
58822         Optimize and test strchrnul.
58823         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
58824         * modules/strchrnul-tests: New file.
58825         * tests/test-strchrnul.c: Likewise.
58826
58827         Remove intprops dependency.
58828         * modules/memchr (Depends-on): Remove intprops.
58829         * modules/memrchr (Depends-on): Likewise.
58830         * modules/memchr2 (Depends-on): Likewise.
58831         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
58832         * lib/memrchr.c (__memrchr): Likewise.
58833         * lib/memrchr2.c (memchr2): Likewise.
58834         Reported by Simon Josefsson.
58835
58836 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58837
58838         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
58839         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58840
58841 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58842
58843         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
58844
58845         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
58846
58847         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
58848
58849         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
58850         declarations.
58851         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
58852
58853         * m4/inet_pton.m4: Don't check for header files.
58854
58855         * m4/inet_ntop.m4: Don't check for header files.
58856
58857 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58858
58859         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
58860         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
58861         trigger for cygwin).
58862         Reported by Bruno Haible  <bruno@clisp.org>.
58863
58864 2008-04-28  Bruno Haible  <bruno@clisp.org>
58865
58866         * doc/posix-functions/strdup.texi: Mention mingw problem.
58867
58868 2008-04-27  Bruno Haible  <bruno@clisp.org>
58869
58870         * modules/stat-time-tests (Depends-on): Add sleep.
58871         * tests/test-stat-time.c (force_unlink): New function.
58872         (cleanup): Use it.
58873         (test_mtime): Remove the ctime related tests.
58874         (test_ctime): New function, containing the ctime related tests.
58875         (main): Call test_ctime, except on native Windows platforms.
58876
58877 2008-04-27  Bruno Haible  <bruno@clisp.org>
58878
58879         * lib/rpmatch.c (rpmatch): Add some comments.
58880         Reported by James Youngman <jay@gnu.org>.
58881
58882 2008-04-27  Bruno Haible  <bruno@clisp.org>
58883
58884         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
58885         quiet NaNs.
58886
58887 2008-04-27  Bruno Haible  <bruno@clisp.org>
58888
58889         Make test-yesno.sh work on mingw.
58890         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
58891         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
58892         (main): Set stdin to binary mode.
58893         * modules/yesno-tests (Depends-on): Add binary-io.
58894
58895 2008-04-27  Bruno Haible  <bruno@clisp.org>
58896
58897         Fix 'isfinite' on x86, x86_64, ia64 platforms.
58898         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
58899         argument that lie outside the IEEE 854 domain.
58900         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
58901         (gl_ISFINITE): Use it.
58902         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
58903
58904 2008-04-27  Bruno Haible  <bruno@clisp.org>
58905
58906         Allow local renaming in config.h.
58907         * lib/memrchr.c (memrchr): Don't undefine outside libc.
58908
58909 2008-04-27  Bruno Haible  <bruno@clisp.org>
58910
58911         * lib/memchr.c (__memchr): Change type of 'i'.
58912         * lib/memchr2.c (memchr2): Likewise.
58913
58914 2008-04-26  Eric Blake  <ebb9@byu.net>
58915         and Bruno Haible  <bruno@clisp.org>
58916
58917         Optimize and test memrchr.
58918         * modules/memrchr (Depends-on): Add intprops.
58919         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
58920         * modules/memrchr-tests: New file.
58921         * tests/test-memrchr.c: New file.
58922
58923 2008-04-26  Bruno Haible  <bruno@clisp.org>
58924
58925         Add tentative support for DragonFly BSD.
58926         * lib/stdio-impl.h: Add macros for DragonFly BSD.
58927         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
58928         fp.
58929         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58930         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
58931         * lib/fpurge.c (fpurge): Likewise.
58932         * lib/freadable.c (freaadable): Likewise.
58933         * lib/freadahead.c (freadahead): Likewise.
58934         * lib/freading.c (freading): Likewise.
58935         * lib/freadptr.c (freadptr): Likewise.
58936         * lib/freadseek.c (freadptrinc): Likewise.
58937         * lib/fseeko.c (fseeko): Likewise.
58938         * lib/fseterr.c (fseterr): Likewise.
58939         * lib/fwritable.c (fwritable): Likewise.
58940         * lib/fwriting.c (fwriting): Likewise.
58941
58942 2008-04-26  Bruno Haible  <bruno@clisp.org>
58943
58944         * lib/stdio-impl.h: New file.
58945         * lib/fbufmode.c: Include stdio-impl.h.
58946         (fbufmode): Use fp_, remove redundant #defines.
58947         * lib/fflush.c: Include stdio-impl.h.
58948         (clear_ungetc_buffer): Remove redundant #defines.
58949         * lib/fpurge.c: Include stdio-impl.h.
58950         (fpurge): Remove redundant #defines.
58951         * lib/freadable.c: Include stdio-impl.h.
58952         (freadable): Remove redundant #defines.
58953         * lib/freadahead.c: Include stdio-impl.h.
58954         (freadahead): Remove redundant #defines.
58955         * lib/freading.c: Include stdio-impl.h.
58956         (freading): Remove redundant #defines.
58957         * lib/freadptr.c: Include stdio-impl.h.
58958         (freadptr): Remove redundant #defines.
58959         * lib/freadseek.c: Include stdio-impl.h.
58960         (freadptrinc): Remove redundant #defines.
58961         * lib/fseeko.c: Include stdio-impl.h.
58962         (rpl_fseeko): Remove redundant #defines.
58963         * lib/fseterr.c: Include stdio-impl.h.
58964         (fseterr): Remove redundant #defines.
58965         * lib/fwritable.c: Include stdio-impl.h.
58966         (fwritable: Remove redundant #defines.
58967         * lib/fwriting.c: Include stdio-impl.h.
58968         (fwriting): Remove redundant #defines.
58969         * modules/fbufmode (Files): Add lib/stdio-impl.h.
58970         * modules/fflush (Files): Likewise.
58971         * modules/fpurge (Files): Likewise.
58972         * modules/freadable (Files): Likewise.
58973         * modules/freadahead (Files): Likewise.
58974         * modules/freading (Files): Likewise.
58975         * modules/freadptr (Files): Likewise.
58976         * modules/freadseek (Files): Likewise.
58977         * modules/fseeko (Files): Likewise.
58978         * modules/fseterr (Files): Likewise.
58979         * modules/fwritable (Files): Likewise.
58980         * modules/fwriting (Files): Likewise.
58981
58982 2008-04-26  Bruno Haible  <bruno@clisp.org>
58983
58984         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58985         restore_seek_optimization, update_fpos_cache): New functions, extracted
58986         from rpl_fflush.
58987         (rpl_fflush): Use them.
58988         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
58989         (gl_REPLACE_FFLUSH): Use it.
58990
58991 2008-04-26  Bruno Haible  <bruno@clisp.org>
58992
58993         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
58994         on Solaris.
58995         * tests/test-xstrtoimax.sh: Likewise.
58996         * tests/test-xstrtoumax.sh: Likewise.
58997         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58998
58999 2008-04-26  Bruno Haible  <bruno@clisp.org>
59000
59001         * modules/memchr-tests: New file.
59002         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
59003
59004 2008-04-26  Eric Blake  <ebb9@byu.net>
59005             Bruno Haible  <bruno@clisp.org>
59006
59007         * lib/memchr.c: Include intprops.h.
59008         (__memchr): Optimize parallel detection of matching bytes. Rename local
59009         variables. Add explanatory comments.
59010
59011 2008-04-26  Bruno Haible  <bruno@clisp.org>
59012
59013         Fix module 'memchr', broken since 2000-10-28.
59014         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
59015
59016 2008-04-26  Bruno Haible  <bruno@clisp.org>
59017
59018         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
59019         comments.
59020
59021 2008-04-25  Eric Blake  <ebb9@byu.net>
59022
59023         Use native fstatat on cygwin 1.7.0.
59024         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
59025         first.
59026
59027 2008-04-23  Eric Blake  <ebb9@byu.net>
59028
59029         Improve memchr2 performance.
59030         * lib/memchr2.c (memchr2): Further optimize parallel detection of
59031         NUL bytes.
59032         * modules/memchr2 (Depends-on): Use intprops.h.
59033
59034 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59035
59036         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
59037         an inline function instead of a CPP macro.  Patch by Ben Pfaff
59038         <blp@cs.stanford.edu>.
59039
59040 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59041
59042         * lib/arpa_inet.in.h: New file.
59043
59044         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
59045         (Makefile.am): Sed in substitute header file.
59046
59047         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
59048         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
59049
59050         * modules/inet_ntop (configure.ac): Use
59051         gl_ARPA_INET_MODULE_INDICATOR.
59052
59053         * modules/inet_pton (configure.ac): Use
59054         gl_ARPA_INET_MODULE_INDICATOR.
59055
59056 2008-04-22  Jim Meyering  <meyering@redhat.com>
59057
59058         * modules/verify (License): Re-license as LGPLv2+.
59059
59060 2008-04-22  Simon Josefsson  <simon@josefsson.org>
59061
59062         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
59063         parameter to void* as per POSIX standard (MinGW uses char*).
59064
59065 2008-04-21  Bruno Haible  <bruno@clisp.org>
59066
59067         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59068         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59069         Define to replacements if REPLACE_ISWCNTRL is 1.
59070         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
59071         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
59072         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
59073         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
59074         what it fixes.
59075         * doc/posix-functions/iswalpha.texi: Likewise.
59076         * doc/posix-functions/iswblank.texi: Likewise.
59077         * doc/posix-functions/iswcntrl.texi: Likewise.
59078         * doc/posix-functions/iswdigit.texi: Likewise.
59079         * doc/posix-functions/iswgraph.texi: Likewise.
59080         * doc/posix-functions/iswlower.texi: Likewise.
59081         * doc/posix-functions/iswprint.texi: Likewise.
59082         * doc/posix-functions/iswpunct.texi: Likewise.
59083         * doc/posix-functions/iswspace.texi: Likewise.
59084         * doc/posix-functions/iswupper.texi: Likewise.
59085         * doc/posix-functions/iswxdigit.texi: Likewise.
59086         Reported by Alain Guibert.
59087
59088 2008-04-21  Bruno Haible  <bruno@clisp.org>
59089
59090         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
59091         Patch by Alain Guibert.
59092
59093 2008-04-21  Bruno Haible  <bruno@clisp.org>
59094
59095         Fix test failures on mingw.
59096         * tests/test-xstrtol.c (print_no_progname): New function.
59097         (main): Install it in error_print_progname hook.
59098         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
59099         * tests/test-xstrtoimax.sh: Likewise.
59100         * tests/test-xstrtoumax.sh: Likewise.
59101
59102 2008-04-21  Bruno Haible  <bruno@clisp.org>
59103
59104         Fix test failure on mingw.
59105         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
59106
59107 2008-04-21  Bruno Haible  <bruno@clisp.org>
59108
59109         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
59110         Actually assign a value.
59111
59112 2008-04-20  Bruno Haible  <bruno@clisp.org>
59113
59114         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
59115         take 2.
59116         * lib/canonicalize.c (canonicalize_file_name): Elide if the
59117         'canonicalize-lgpl' module is also used.
59118         * lib/canonicalize-lgpl.c: Undo last change.
59119         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
59120
59121 2008-04-20  Bruno Haible  <bruno@clisp.org>
59122
59123         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
59124         config.h. Provide _mkdir based fallback for mingw.
59125         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
59126         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
59127         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
59128         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
59129         rather than defining mkdir in config.h.
59130         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
59131         (gl_SYS_STAT_H_DEFAULTS): New macro.
59132         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
59133         HAVE_IO_H any more.
59134         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
59135         HAVE_DECL_MKDIR and HAVE_IO_H.
59136
59137 2008-04-20  Bruno Haible  <bruno@clisp.org>
59138
59139         * lib/isapipe.c: Port to native Windows platforms.
59140
59141 2008-04-20  Bruno Haible  <bruno@clisp.org>
59142
59143         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
59144
59145 2008-04-21  Eric Blake  <ebb9@byu.net>
59146
59147         Work around preprocessors that don't handle UINTMAX_MAX.
59148         * lib/memchr2.c (memchr2): Avoid embedded #if.
59149         Reported by Alain Guibert, fix suggested by Bruno Haible.
59150
59151 2008-04-21  Simon Josefsson  <simon@josefsson.org>
59152
59153         * doc/posix-functions/strftime.texi (strftime): Explain better
59154         Windows incompatibility.  Suggested by Micah Cowan
59155         <micah@cowan.name>.
59156
59157 2008-04-20  Bruno Haible  <bruno@clisp.org>
59158
59159         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
59160         unistr/u8-mblen.
59161
59162 2008-04-20  Bruno Haible  <bruno@clisp.org>
59163
59164         Fix test failure on platforms with non-GNU iconv.
59165         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
59166         (U_TO_U8): Use it, rather than u16_to_u8.
59167         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
59168         units at the end of the input string.
59169         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
59170
59171 2008-04-20  Bruno Haible  <bruno@clisp.org>
59172
59173         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
59174         when the resulting length is 0.
59175         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
59176
59177 2008-04-20  Bruno Haible  <bruno@clisp.org>
59178
59179         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
59180         works.
59181         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
59182
59183 2008-04-20  Bruno Haible  <bruno@clisp.org>
59184
59185         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
59186         * modules/tsearch-tests (configure.ac): Test for initstate function.
59187
59188 2008-04-20  Bruno Haible  <bruno@clisp.org>
59189
59190         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
59191         for nlink_t if missing.
59192         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
59193
59194 2008-04-19  Bruno Haible  <bruno@clisp.org>
59195
59196         Work around snprintf bug on Linux libc5.
59197         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
59198         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59199         gl_SNPRINTF_SIZE1.
59200         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59201         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
59202         that test failed.
59203         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
59204         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
59205         * modules/snprintf (Files): Add m4/printf.m4.
59206         * modules/vsnprintf (Files): Likewise.
59207         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
59208         * doc/posix-functions/vsnprintf.texi: Likewise.
59209
59210 2008-04-19  Bruno Haible  <bruno@clisp.org>
59211
59212         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
59213         from 0.0058 to less than 10^-7.
59214
59215 2008-04-19  Bruno Haible  <bruno@clisp.org>
59216
59217         Fix rounding when a precision is given.
59218         * lib/vasnprintf.c (is_borderline): New function.
59219         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
59220         9...9x.
59221         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
59222         %e, %g.
59223         * tests/test-vasprintf-posix.c (test_function): Likewise.
59224         * tests/test-snprintf-posix.h (test_function): Likewise.
59225         * tests/test-sprintf-posix.h (test_function): Likewise.
59226         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
59227         * tests/test-printf-posix.h (test_function): Likewise.
59228         * tests/test-printf-posix.output: Update.
59229         Reported by John Darrington <john@darrington.wattle.id.au> via
59230         Ben Pfaff <blp@cs.stanford.edu>.
59231
59232 2008-04-18  Simon Josefsson  <simon@josefsson.org>
59233
59234         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
59235         Suggested by Bruno Haible <bruno@clisp.org>.
59236
59237 2008-04-17  Bruno Haible  <bruno@clisp.org>
59238
59239         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
59240         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
59241         implementation.
59242         Patch by Bruce Merry <bmerry@gmail.com>.
59243
59244 2008-04-17  Simon Josefsson  <simon@josefsson.org>
59245
59246         * doc/posix-functions/strftime.texi (strftime): Mention that %e
59247         doesn't work under Windows.
59248
59249 2008-04-16  Bruno Haible  <bruno@clisp.org>
59250
59251         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
59252         New macros.
59253         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
59254         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
59255         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
59256         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
59257         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
59258         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
59259         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
59260         macros.
59261         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
59262         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
59263         Northern Sotho, Uighur.
59264
59265 2008-04-16  Bruno Haible  <bruno@clisp.org>
59266
59267         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
59268         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
59269         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
59270         Reported by Daniel Bergström <daniel@octocode.com>.
59271
59272 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
59273             Bruno Haible  <bruno@clisp.org>
59274
59275         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
59276         function.
59277         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
59278         New functions, mostly extracted from gl_locale_name_default.
59279         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
59280
59281 2008-04-16  Eric Blake  <ebb9@byu.net>
59282
59283         Adjust strtod detection to catch glibc 2.7 bug.
59284         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
59285         Reported by John Gatewood Ham.
59286
59287 2008-04-16  Bruno Haible  <bruno@clisp.org>
59288
59289         Add tentative support for Linux libc5.
59290         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
59291         * lib/fpurge.c (fpurge): Likewise.
59292         * lib/freadable.c (freadable): Likewise.
59293         * lib/freadahead.c (freadahead): Likewise.
59294         * lib/freading.c (freading): Likewise.
59295         * lib/freadptr.c (freadptr): Likewise.
59296         * lib/freadseek.c (freadptrinc): Likewise.
59297         * lib/fseeko.c (rpl_fseeko): Likewise.
59298         * lib/fseterr.c (fseterr): Likewise.
59299         * lib/fwritable.c (fwritable): Likewise.
59300         * lib/fwriting.c (fwriting): Likewise.
59301         Reported by Alain Guibert <alguibert+bts@free.fr>.
59302
59303 2008-04-15  Bruno Haible  <bruno@clisp.org>
59304
59305         * modules/mathl (configure.ac): Define module indicator.
59306
59307 2008-04-15  Bruno Haible  <bruno@clisp.org>
59308
59309         * lib/logl.c (logl): Remove unused variables.
59310
59311 2008-04-15  Bruno Haible  <bruno@clisp.org>
59312
59313         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
59314         fails.
59315
59316 2008-04-15  Bruno Haible  <bruno@clisp.org>
59317
59318         * lib/trim.c (trim2): Fix argument of isspace() macro.
59319
59320 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
59321
59322         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
59323         to 0.
59324         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
59325
59326 2008-04-14  Bruno Haible  <bruno@clisp.org>
59327
59328         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
59329         AC_LANG_PROGRAM argument.
59330         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
59331         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
59332         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59333         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59334         * m4/math_h.m4 (gl_MATH_H): Likewise.
59335         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
59336         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59337         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59338         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
59339         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59340         * m4/regex.m4 (gl_REGEX): Likewise.
59341         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
59342         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
59343         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59344         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
59345         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59346         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59347         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59348         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59349
59350 2008-04-14  Jim Meyering  <meyering@redhat.com>
59351
59352         test-strtod: fix typos: s/abs/fabs/
59353         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
59354
59355 2008-04-13  Bruno Haible  <bruno@clisp.org>
59356
59357         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
59358         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
59359         module is also used and while not building the reloc-wrapper.
59360
59361 2008-04-13  Bruno Haible  <bruno@clisp.org>
59362
59363         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
59364
59365 2008-04-13  Bruno Haible  <bruno@clisp.org>
59366
59367         Fix AIX compilation failure introduced on 2008-04-02.
59368         * tests/test-frexp.c (exp): Undefine before redefining.
59369         * tests/test-frexpl.c (exp): Likewise.
59370
59371 2008-04-13  Bruno Haible  <bruno@clisp.org>
59372
59373         Work around a HP-UX stdio bug.
59374         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
59375         * tests/test-ftello.c (main): Likewise.
59376         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
59377         * doc/posix-functions/ftello.texi: Likewise.
59378
59379 2008-04-13  Bruno Haible  <bruno@clisp.org>
59380
59381         Make test-signbit pass on HP-UX/hppa.
59382         * tests/test-signbit.c (minus_zerol): New variable.
59383         (test_signbitl): Use it.
59384
59385 2008-04-13  Bruno Haible  <bruno@clisp.org>
59386
59387         Make truncl work on OSF/1 4.0.
59388         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
59389         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59390         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59391         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
59392         HAVE_DECL_TRUNCL.
59393         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
59394         HAVE_DECL_TRUNCL.
59395         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
59396
59397 2008-04-13  Bruno Haible  <bruno@clisp.org>
59398
59399         * lib/unictype.h: Remove trailing comma from enumeration definitions.
59400
59401 2008-04-13  Bruno Haible  <bruno@clisp.org>
59402
59403         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
59404         expression, so as to avoid HP-UX 11 cc compiler bug.
59405
59406 2008-04-13  Bruno Haible  <bruno@clisp.org>
59407
59408         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
59409
59410 2008-04-13  Bruno Haible  <bruno@clisp.org>
59411
59412         * lib/git-merge-changelog.c: Remove empty declaration outside of
59413         functions.
59414
59415 2008-04-13  Bruno Haible  <bruno@clisp.org>
59416
59417         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
59418
59419 2008-04-13  Bruno Haible  <bruno@clisp.org>
59420
59421         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
59422         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
59423         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
59424         also if it exists but lacks definitions of the SHUT_* macros.
59425         * modules/sys_socket (Description): Update.
59426         Reported by Elbert Pol <e.pol@chello.nl>.
59427
59428 2008-04-13  Bruno Haible  <bruno@clisp.org>
59429
59430         * lib/localcharset.c (OS2): Don't redefine if already defined.
59431         Reported by Elbert Pol <e.pol@chello.nl>.
59432
59433 2008-04-13  Bruno Haible  <bruno@clisp.org>
59434
59435         * lib/binary-io.h [__EMX__]: Include <io.h>.
59436         Reported by Elbert Pol <e.pol@chello.nl>.
59437
59438 2008-04-12  Bruno Haible  <bruno@clisp.org>
59439
59440         * lib/fpucw.h: Enable the definitions also for x86_64.
59441         Needed for NetBSD/x86_64.
59442         Reported by Thomas Klausner <tk@giga.or.at>.
59443
59444 2008-04-12  Bruno Haible  <bruno@clisp.org>
59445
59446         * tests/test-strtod.c: Include isnand.h.
59447         (main): Use isnand instead of isnan.
59448         Reported by Jim Meyering.
59449
59450 2008-04-12  Bruno Haible  <bruno@clisp.org>
59451
59452         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
59453         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59454
59455 2008-04-12  Jim Meyering  <meyering@redhat.com>
59456
59457         * m4/math_h.m4 (gl_MATH_H): Fix typos.
59458
59459 2008-04-12  Bruno Haible  <bruno@clisp.org>
59460
59461         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
59462         Reported by Elbert Pol <e.pol@chello.nl>.
59463
59464 2008-04-12  Eric Blake  <ebb9@byu.net>
59465
59466         Work around Solaris 10 math.h bug.
59467         * m4/math_h.m4 (gl_MATH_H): Check for bug.
59468         (gl_MATH_H_DEFAULTS): Set up default.
59469         * modules/math (Makefile.am): Replace new indicators.
59470         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
59471         * tests/test-math.c (main): Test this.
59472         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
59473         * doc/posix-headers/math.texi (math.h): Mention bug.
59474         Reported by Nelson H. F. Beebe and Jim Meyering.
59475
59476 2008-04-11  Bruno Haible  <bruno@clisp.org>
59477
59478         Adapt to future versions of Apple GCC.
59479         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
59480         Reported by Peter O'Gorman <peter@pogma.com>.
59481
59482 2008-04-11  Bruno Haible  <bruno@clisp.org>
59483
59484         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
59485
59486 2008-04-11  Bruno Haible  <bruno@clisp.org>
59487
59488         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
59489
59490         * modules/getaddrinfo-tests (Makefile.am): Define
59491         test_getaddrinfo_LDADD.
59492
59493 2008-04-11  Bruno Haible  <bruno@clisp.org>
59494
59495         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
59496         (init): Fix syntax error.
59497         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
59498         is declared.
59499
59500 2008-04-11  Bruno Haible  <bruno@clisp.org>
59501
59502         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
59503         * modules/glob (Depends-on): Add stdbool.
59504
59505 2008-04-11  Bruno Haible  <bruno@clisp.org>
59506
59507         * lib/trim.c: Include <string.h>.
59508
59509 2008-04-11  Eric Blake  <ebb9@byu.net>
59510
59511         Avoid compile failure on OS/2.
59512         * lib/regex_internal.h (internal_function): Disable optimization
59513         on OS/2 (__EMX__), where it caused compiler error.
59514         Reported by Elbert Pol.
59515
59516 2008-04-11  Bruno Haible  <bruno@clisp.org>
59517
59518         Flush the standard error stream before aborting. Needed on mingw.
59519         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
59520         * tests/test-array_list.c (ASSERT): Likewise.
59521         * tests/test-array_oset.c (ASSERT): Likewise.
59522         * tests/test-avltree_list.c (ASSERT): Likewise.
59523         * tests/test-avltree_oset.c (ASSERT): Likewise.
59524         * tests/test-avltreehash_list.c (ASSERT): Likewise.
59525         * tests/test-binary-io.c (ASSERT): Likewise.
59526         * tests/test-byteswap.c (ASSERT): Likewise.
59527         * tests/test-c-ctype.c (ASSERT): Likewise.
59528         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
59529         * tests/test-c-strcasestr.c (ASSERT): Likewise.
59530         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
59531         * tests/test-c-strstr.c (ASSERT): Likewise.
59532         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
59533         * tests/test-canonicalize.c (ASSERT): Likewise.
59534         * tests/test-carray_list.c (ASSERT): Likewise.
59535         * tests/test-ceilf1.c (ASSERT): Likewise.
59536         * tests/test-ceilf2.c (ASSERT): Likewise.
59537         * tests/test-ceill.c (ASSERT): Likewise.
59538         * tests/test-count-one-bits.c (ASSERT): Likewise.
59539         * tests/test-fbufmode.c (ASSERT): Likewise.
59540         * tests/test-fflush2.c (ASSERT): Likewise.
59541         * tests/test-floorf1.c (ASSERT): Likewise.
59542         * tests/test-floorf2.c (ASSERT): Likewise.
59543         * tests/test-floorl.c (ASSERT): Likewise.
59544         * tests/test-fopen.c (ASSERT): Likewise.
59545         * tests/test-fpending.c (ASSERT): Likewise.
59546         * tests/test-fprintf-posix.c (ASSERT): Likewise.
59547         * tests/test-fpurge.c (ASSERT): Likewise.
59548         * tests/test-freadable.c (ASSERT): Likewise.
59549         * tests/test-freadahead.c (ASSERT): Likewise.
59550         * tests/test-freading.c (ASSERT): Likewise.
59551         * tests/test-freadptr.c (ASSERT): Likewise.
59552         * tests/test-freadptr2.c (ASSERT): Likewise.
59553         * tests/test-freadseek.c (ASSERT): Likewise.
59554         * tests/test-freopen.c (ASSERT): Likewise.
59555         * tests/test-frexp.c (ASSERT): Likewise.
59556         * tests/test-frexpl.c (ASSERT): Likewise.
59557         * tests/test-fseek.c (ASSERT): Likewise.
59558         * tests/test-fseeko.c (ASSERT): Likewise.
59559         * tests/test-fstrcmp.c (ASSERT): Likewise.
59560         * tests/test-ftell.c (ASSERT): Likewise.
59561         * tests/test-ftello.c (ASSERT): Likewise.
59562         * tests/test-func.c (ASSERT): Likewise.
59563         * tests/test-fwritable.c (ASSERT): Likewise.
59564         * tests/test-fwriting.c (ASSERT): Likewise.
59565         * tests/test-getdelim.c (ASSERT): Likewise.
59566         * tests/test-getline.c (ASSERT): Likewise.
59567         * tests/test-i-ring.c (ASSERT): Likewise.
59568         * tests/test-iconv-utf.c (ASSERT): Likewise.
59569         * tests/test-iconv.c (ASSERT): Likewise.
59570         * tests/test-isfinite.c (ASSERT): Likewise.
59571         * tests/test-isnand.c (ASSERT): Likewise.
59572         * tests/test-isnanf.c (ASSERT): Likewise.
59573         * tests/test-isnanl.h (ASSERT): Likewise.
59574         * tests/test-ldexpl.c (ASSERT): Likewise.
59575         * tests/test-linked_list.c (ASSERT): Likewise.
59576         * tests/test-linkedhash_list.c (ASSERT): Likewise.
59577         * tests/test-localename.c (ASSERT): Likewise.
59578         * tests/test-lseek.c (ASSERT): Likewise.
59579         * tests/test-mbscasecmp.c (ASSERT): Likewise.
59580         * tests/test-mbscasestr1.c (ASSERT): Likewise.
59581         * tests/test-mbscasestr2.c (ASSERT): Likewise.
59582         * tests/test-mbscasestr3.c (ASSERT): Likewise.
59583         * tests/test-mbscasestr4.c (ASSERT): Likewise.
59584         * tests/test-mbschr.c (ASSERT): Likewise.
59585         * tests/test-mbscspn.c (ASSERT): Likewise.
59586         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
59587         * tests/test-mbspbrk.c (ASSERT): Likewise.
59588         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
59589         * tests/test-mbsrchr.c (ASSERT): Likewise.
59590         * tests/test-mbsspn.c (ASSERT): Likewise.
59591         * tests/test-mbsstr1.c (ASSERT): Likewise.
59592         * tests/test-mbsstr2.c (ASSERT): Likewise.
59593         * tests/test-mbsstr3.c (ASSERT): Likewise.
59594         * tests/test-memchr2.c (ASSERT): Likewise.
59595         * tests/test-memmem.c (ASSERT): Likewise.
59596         * tests/test-open.c (ASSERT): Likewise.
59597         * tests/test-printf-frexp.c (ASSERT): Likewise.
59598         * tests/test-printf-frexpl.c (ASSERT): Likewise.
59599         * tests/test-printf-posix.c (ASSERT): Likewise.
59600         * tests/test-quotearg.c (ASSERT): Likewise.
59601         * tests/test-rbtree_list.c (ASSERT): Likewise.
59602         * tests/test-rbtree_oset.c (ASSERT): Likewise.
59603         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
59604         * tests/test-round1.c (ASSERT): Likewise.
59605         * tests/test-roundf1.c (ASSERT): Likewise.
59606         * tests/test-roundl.c (ASSERT): Likewise.
59607         * tests/test-signbit.c (ASSERT): Likewise.
59608         * tests/test-sleep.c (ASSERT): Likewise.
59609         * tests/test-snprintf-posix.c (ASSERT): Likewise.
59610         * tests/test-snprintf.c (ASSERT): Likewise.
59611         * tests/test-sprintf-posix.c (ASSERT): Likewise.
59612         * tests/test-stat-time.c (ASSERT): Likewise.
59613         * tests/test-strcasestr.c (ASSERT): Likewise.
59614         * tests/test-strerror.c (ASSERT): Likewise.
59615         * tests/test-striconv.c (ASSERT): Likewise.
59616         * tests/test-striconveh.c (ASSERT): Likewise.
59617         * tests/test-striconveha.c (ASSERT): Likewise.
59618         * tests/test-strsignal.c (ASSERT): Likewise.
59619         * tests/test-strstr.c (ASSERT): Likewise.
59620         * tests/test-strtod.c (ASSERT): Likewise.
59621         * tests/test-trunc1.c (ASSERT): Likewise.
59622         * tests/test-trunc2.c (ASSERT): Likewise.
59623         * tests/test-truncf1.c (ASSERT): Likewise.
59624         * tests/test-truncf2.c (ASSERT): Likewise.
59625         * tests/test-truncl.c (ASSERT): Likewise.
59626         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
59627         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
59628         * tests/test-vasnprintf.c (ASSERT): Likewise.
59629         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
59630         * tests/test-vasprintf.c (ASSERT): Likewise.
59631         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
59632         * tests/test-vprintf-posix.c (ASSERT): Likewise.
59633         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
59634         * tests/test-vsnprintf.c (ASSERT): Likewise.
59635         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
59636         * tests/test-wcwidth.c (ASSERT): Likewise.
59637         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
59638         * tests/test-xprintf-posix.c (ASSERT): Likewise.
59639         * tests/test-xvasprintf.c (ASSERT): Likewise.
59640         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
59641         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
59642         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
59643         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
59644         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
59645         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
59646         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
59647         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
59648         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
59649         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
59650         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
59651         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
59652         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
59653         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
59654         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
59655         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
59656         * tests/unictype/test-block_list.c (ASSERT): Likewise.
59657         * tests/unictype/test-block_of.c (ASSERT): Likewise.
59658         * tests/unictype/test-block_test.c (ASSERT): Likewise.
59659         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
59660         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
59661         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
59662         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
59663         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
59664         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
59665         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
59666         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
59667         * tests/unictype/test-combining.c (ASSERT): Likewise.
59668         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
59669         * tests/unictype/test-digit.c (ASSERT): Likewise.
59670         * tests/unictype/test-mirror.c (ASSERT): Likewise.
59671         * tests/unictype/test-numeric.c (ASSERT): Likewise.
59672         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
59673         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
59674         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
59675         * tests/unictype/test-scripts.c (ASSERT): Likewise.
59676         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
59677         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
59678         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
59679         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
59680         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
59681         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
59682         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
59683         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
59684         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
59685         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
59686         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
59687         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
59688         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
59689         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
59690         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
59691         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
59692         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
59693         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
59694         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
59695         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
59696         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
59697         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
59698         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
59699         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
59700         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
59701         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
59702         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
59703         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
59704         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
59705         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
59706         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
59707         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
59708         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
59709         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
59710         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
59711         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
59712         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
59713         Reported by Eric Blake.
59714
59715 2008-04-11  Bruno Haible  <bruno@clisp.org>
59716
59717         * lib/wchar.in.h: Tweak comment.
59718
59719 2008-04-11  Bruno Haible  <bruno@clisp.org>
59720
59721         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
59722         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
59723         gl_COMMON.
59724         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
59725
59726 2008-04-11  Bruno Haible  <bruno@clisp.org>
59727
59728         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
59729
59730 2008-04-11  Simon Josefsson  <simon@josefsson.org>
59731
59732         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
59733         of attempting to use non-existing /dev/*random.  Based on patch
59734         from Adam Strzelecki <ono@java.pl> in
59735         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
59736
59737 2008-04-08  Bruno Haible  <bruno@clisp.org>
59738
59739         Add tentative support for emx+gcc.
59740         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
59741         * lib/fpurge.c (fpurge): Likewise.
59742         * lib/freadable.c (freadable): Likewise.
59743         * lib/freadahead.c (freadahead): Likewise.
59744         * lib/freading.c (freading): Likewise.
59745         * lib/freadptr.c (freadptr): Likewise.
59746         * lib/freadseek.c (freadptrinc): Likewise.
59747         * lib/fseeko.c (rpl_fseeko): Likewise.
59748         * lib/fseterr.c (fseterr): Likewise.
59749         * lib/fwritable.c (fwritable): Likewise.
59750         * lib/fwriting.c (fwriting): Likewise.
59751         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
59752
59753 2008-04-09  Eric Blake  <ebb9@byu.net>
59754
59755         Avoid some autoconf warnings.
59756         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
59757         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
59758         * m4/afs.m4 (gl_AFS): Likewise.
59759         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
59760         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
59761         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59762         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
59763         (gl_INTEGER_TYPE_SUFFIX): Likewise.
59764         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
59765         (AC_CHECK_DECLS_ONCE): Likewise.
59766         Rename file...
59767         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
59768         gnulib-tool requires autoconf 2.59 or better.
59769         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
59770
59771 2008-04-08  Eric Blake  <ebb9@byu.net>
59772
59773         Use 'git describe --match' if present (added in git 1.5.5).
59774         * build-aux/git-version-gen: Limit result to tags that match 'v*'
59775         if possible.
59776
59777 2008-04-08  Bruno Haible  <bruno@clisp.org>
59778
59779         Add tentative support for OpenServer.
59780         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
59781         _ptr, _cnt.
59782         * lib/fpurge.c (fpurge): Likewise.
59783         * lib/freadable.c (freadable): Likewise.
59784         * lib/freadahead.c (freadahead): Likewise.
59785         * lib/freading.c (freading): Likewise.
59786         * lib/freadptr.c (freadptr): Likewise.
59787         * lib/freadseek.c (freadptrinc): Likewise.
59788         * lib/fseeko.c (rpl_fseeko): Likewise.
59789         * lib/fseterr.c (fseterr): Likewise.
59790         * lib/fwritable.c (fwritable): Likewise.
59791         * lib/fwriting.c (fwriting): Likewise.
59792         Reported by Roger Cornelius <rac@tenzing.org> and
59793         Brian K. White <brian@aljex.com>.
59794
59795 2008-04-06  Jim Meyering  <meyering@redhat.com>
59796
59797         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
59798
59799 2008-04-06  Bruno Haible  <bruno@clisp.org>
59800
59801         Avoid possible error with non-ASCII bytes in UTF-8 locales.
59802         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
59803         * tests/test-printf-posix.sh: Likewise.
59804         * tests/test-vfprintf-posix.sh: Likewise.
59805         * tests/test-vprintf-posix.sh: Likewise.
59806         * tests/test-xprintf-posix.sh: Likewise.
59807
59808 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59809
59810         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
59811         hide error from 'ls', needed on OS/2.
59812         Report by Elbert Pol <elbert.pol@gmail.com>.
59813
59814 2008-04-04  Eric Blake  <ebb9@byu.net>
59815
59816         Make test-fseeko.c failures meaningful.
59817         * tests/test-fseeko.c: Print line number on failure.
59818         * tests/test-fseek.c: Likewise.
59819         Reported by Nelson H. F. Beebe.
59820
59821         Improve strtod bug detection check.
59822         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
59823         required for Solaris 10.
59824         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
59825
59826 2008-04-04  Bruno Haible  <bruno@clisp.org>
59827
59828         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
59829         by m4/setenv.m4.
59830
59831 2008-04-03  Eric Blake  <ebb9@byu.net>
59832
59833         Ensure sane .version contents.
59834         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
59835         version string.
59836         * build-aux/git-version-gen: Improve documentation.
59837
59838         Make GNU make output nicer.
59839         * top/GNUmakefile [!_have-Makefile]: Add dependency on
59840         MAKECMDGOALS to enforce message for all command line targets.  Set
59841         srcdir for use in maint.mk.
59842
59843         Another maintainer tweak.
59844         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
59845         a target that regenerates version.
59846
59847 2008-04-03  Jim Meyering  <meyering@redhat.com>
59848
59849         vc-list-files: don't cause coreutils "make po-check" failure
59850         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
59851
59852 2008-04-03  Eric Blake  <ebb9@byu.net>
59853
59854         Allow VPATH usage of vc-list-files.
59855         * build-aux/vc-list-files (scriptversion): Add timestamp.
59856         (options): Add --help, --version, -C.
59857         (CVS): Support installed cvsu.
59858
59859 2008-04-02  Bruno Haible  <bruno@clisp.org>
59860
59861         Avoid some "statement with no effect" warnings from gcc.
59862         * tests/test-wctype.c (main): Explicitly ignore unused values.
59863         Reported by Jim Meyering.
59864
59865 2008-04-02  Jim Meyering  <meyering@redhat.com>
59866
59867         Avoid some warnings from "gcc -Wshadow".
59868         * tests/test-frexp.c (exp): Define to a different identifier.
59869         * tests/test-frexpl.c (exp): Likewise.
59870
59871 2008-04-03  Jim Meyering  <meyering@redhat.com>
59872
59873         bootstrap: remove dangling *.[ch] symlinks from lib
59874         * build-aux/bootstrap [dangling symlink removal]: Move find's
59875         -depth option to precede all others, to avoid a warning.
59876         Remove *.[ch] files too, and from "$source_base" (usually lib/).
59877
59878 2008-04-02  Bruno Haible  <bruno@clisp.org>
59879
59880         Avoid some warnings from "gcc -Wshadow".
59881         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
59882         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
59883         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
59884         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
59885         Reported by Jim Meyering.
59886
59887 2008-04-01  Bruno Haible  <bruno@clisp.org>
59888
59889         Fix test to work on IRIX 6.5 with cc.
59890         * tests/test-math.c (numeric_equal): New function.
59891         (main): Use it.
59892
59893 2008-04-01  Bruno Haible  <bruno@clisp.org>
59894
59895         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
59896
59897 2008-04-01  Bruno Haible  <bruno@clisp.org>
59898
59899         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
59900         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59901         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
59902         (Depends-on): Remove math.
59903
59904         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
59905         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59906         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
59907         (Depends-on): Remove math.
59908
59909         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
59910         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59911         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
59912         (Depends-on): Remove math.
59913         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
59914         (Depends-on): Remove math.
59915
59916         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
59917         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59918         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
59919         (Depends-on): Remove math.
59920         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
59921         (Depends-on): Remove math.
59922
59923         * tests/test-round1.c: Include nan.h.
59924         (main): Use NaNd instead of NAN.
59925         * modules/round-tests (Files): Add tests/nan.h.
59926
59927         * tests/test-trunc1.c: Include nan.h.
59928         (main): Use NaNd instead of NAN.
59929         * modules/trunc-tests (Files): Add tests/nan.h.
59930
59931         * tests/test-roundf1.c: Include nan.h.
59932         (main): Use NaNf instead of NAN.
59933         * modules/roundf-tests (Files): Add tests/nan.h.
59934
59935         * tests/test-truncf1.c: Include nan.h.
59936         (main): Use NaNf instead of NAN.
59937         * modules/truncf-tests (Files): Add tests/nan.h.
59938
59939         * tests/test-ceilf1.c: Include nan.h.
59940         (main): Use NaNf instead of NAN.
59941         * modules/ceilf-tests (Files): Add tests/nan.h.
59942
59943         * tests/test-floorf1.c: Include nan.h.
59944         (main): Use NaNf instead of NAN.
59945         * modules/floorf-tests (Files): Add tests/nan.h.
59946
59947         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
59948         (main): Use NaNf instead of NAN.
59949         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
59950
59951         * tests/test-isnand.c: Include nan.h instead of <math.h>.
59952         (main): Use NaNd instead of NAN.
59953         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
59954
59955         * tests/test-frexp.c: Include nan.h.
59956         (main): Use NaNd instead of NAN.
59957         * modules/frexp-tests (Files): Add tests/nan.h.
59958
59959         * lib/isnan.c: Don't include <math.h>.
59960         (FUNC): Don't use NAN macro.
59961         * modules/isnand-nolibm (Depends-on): Remove math.
59962         * modules/isnanf-nolibm (Depends-on): Remove math.
59963         * modules/isnanl (Depends-on): Remove math.
59964         * modules/isnanl-nolibm (Depends-on): Remove math.
59965
59966         * tests/nan.h: New file.
59967
59968 2008-04-01  Eric Blake  <ebb9@byu.net>
59969
59970         Fix typos.
59971         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
59972         values to be the right type.
59973
59974         For now, cater to gnulib strtod inaccuracies.
59975         * tests/test-strtod.c (main): Allow 1-ulp error on expected
59976         fractional results.  While not as nice from a QoI perspective, it
59977         is a quicker patch than correctly implementing decimal to binary
59978         rounding.
59979
59980 2008-03-31  Eric Blake  <ebb9@byu.net>
59981
59982         Guarantee a definition of NAN.
59983         * lib/math.in.h (NAN): Define if missing.
59984         * tests/test-math.c (main): Test it.
59985         * doc/posix-headers/math.texi (math.h): Document this.
59986         * lib/isnan.c (rpl_isnand): Use it.
59987         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
59988         * tests/test-floorf1.c (NaN): Likewise.
59989         * tests/test-frexp.c (NaN): Likewise.
59990         * tests/test-isnand.c (NaN): Likewise.
59991         * tests/test-isnanf.c (NaN): Likewise.
59992         * tests/test-round1.c (NaN): Likewise.
59993         * tests/test-roundf1.c (NaN): Likewise.
59994         * tests/test-snprintf-posix.h (NaN): Likewise.
59995         * tests/test-sprintf-posix.h (NaN): Likewise.
59996         * tests/test-trunc1.c (NaN): Likewise.
59997         * tests/test-truncf1.c (NaN): Likewise.
59998         * tests/test-vasnprintf-posix.c (NaN): Likewise.
59999         * tests/test-vasprintf-posix.c (NaN): Likewise.
60000         * modules/isnand-nolibm (Depends-on): Add math.
60001         * modules/isnanf-nolibm (Depends-on): Likewise.
60002         * modules/isnanl (Depends-on): Likewise.
60003         * modules/isnanl-nolibm (Depends-on): Likewise.
60004         * modules/snprintf-posix-tests (Depends-on): Likewise.
60005         * modules/sprintf-posix-tests (Depends-on): Likewise.
60006         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
60007         * modules/vsprintf-posix-tests (Depends-on): Likewise.
60008         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
60009         * modules/vasprintf-posix-tests (Depends-on): Likewise.
60010
60011 2008-03-31  Bruno Haible  <bruno@clisp.org>
60012
60013         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
60014         * doc/posix-functions/strtod.texi: Likewise.
60015
60016 2008-03-31  Bruno Haible  <bruno@clisp.org>
60017
60018         * tests/test-strtod.c (main): Don't use C99 syntax.
60019
60020 2008-03-31  Bruno Haible  <bruno@clisp.org>
60021
60022         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
60023         Reported by Eric Blake.
60024
60025 2008-03-31  Jim Meyering  <meyering@redhat.com>
60026
60027         Don't compare actual signbit return values.
60028         * tests/test-strtod.c (main): Rather, compare only their
60029         zero/non-zero nature.
60030
60031 2008-03-31  Eric Blake  <ebb9@byu.net>
60032
60033         More strtod documentation.
60034         * doc/posix-functions/strtod.texi (strtod): Interpret more test
60035         failures as distinct bugs.
60036
60037 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60038
60039         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
60040         Problem reported by Erik Benada in
60041         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
60042
60043 2008-03-30  Bruno Haible  <bruno@clisp.org>
60044
60045         * tests/test-strtod.c: Add comments about which assertion fails on which
60046         platform.
60047         * doc/posix-functions/strtod.texi: Add info about many more platforms.
60048
60049 2008-03-30  Eric Blake  <ebb9@byu.net>
60050
60051         Test signbit behavior on zeros.
60052         * tests/test-signbit.c (test_signbitf): Add tests for zero.
60053         (test_signbitd, test_signbitl): Likewise.
60054
60055         More strtod touchups.
60056         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
60057         sign of negative underflow, for now.  Use .5, not .1.
60058         * doc/posix-functions/strtod.texi (strtod): Mention these
60059         limitations.
60060         Reported by Jim Meyering.
60061
60062 2008-03-30  Bruno Haible  <bruno@clisp.org>
60063
60064         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
60065         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
60066
60067 2008-03-30  Bruno Haible  <bruno@clisp.org>
60068
60069         Avoid failure when attempting to return empty iconv results on some
60070         platforms.
60071         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
60072         allocation, don't report ENOMEM when the resulting string is empty.
60073
60074 2008-03-30  Bruno Haible  <bruno@clisp.org>
60075
60076         Fix buffer overrun.
60077         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
60078         Don't consider the width for tmp_length. Check count against tmp_length
60079         before doing the padding. Ensure enough allocation during padding.
60080
60081 2008-03-30  Eric Blake  <ebb9@byu.net>
60082
60083         strtod touchups.
60084         * lib/strtod.c (strtod): Avoid compiler warnings.
60085         Reported by Jim Meyering.
60086
60087 2008-03-30  Bruno Haible  <bruno@clisp.org>
60088
60089         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
60090         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
60091         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
60092         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
60093         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
60094         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
60095         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
60096         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
60097
60098         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
60099         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
60100         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
60101         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
60102         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
60103         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
60104         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
60105         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
60106
60107         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
60108         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
60109         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
60110         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
60111         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
60112         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
60113         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
60114         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
60115
60116         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
60117         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
60118
60119         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
60120         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
60121
60122         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
60123         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
60124
60125         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
60126         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
60127         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
60128
60129         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
60130         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
60131         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
60132
60133         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
60134         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
60135         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
60136
60137         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
60138         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
60139         * modules/vasprintf (Depends-on): Add EOVERFLOW.
60140
60141         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
60142         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
60143         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
60144         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
60145         (Depends-on): Add EOVERFLOW.
60146         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
60147         (Depends-on): Add EOVERFLOW.
60148         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60149         (Depends-on): Add EOVERFLOW.
60150         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60151         (Depends-on): Add EOVERFLOW.
60152         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60153         (Depends-on): Add EOVERFLOW.
60154         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60155         (Depends-on): Add EOVERFLOW.
60156         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60157         (Depends-on): Add EOVERFLOW.
60158         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60159         (Depends-on): Add EOVERFLOW.
60160
60161         * lib/sprintf.c (EOVERFLOW): Remove fallback.
60162         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
60163         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
60164
60165         * lib/snprintf.c (EOVERFLOW): Remove fallback.
60166         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
60167         * modules/snprintf (Depends-on): Add EOVERFLOW.
60168
60169         * lib/poll.c (EOVERFLOW): Remove fallback.
60170         * modules/poll (Depends-on): Add EOVERFLOW.
60171
60172         * lib/getugroups.c (EOVERFLOW): Remove fallback.
60173         * modules/getugroups (Depends-on): Add EOVERFLOW.
60174
60175         * lib/getdelim.c (EOVERFLOW): Remove fallback.
60176         * modules/getdelim (Depends-on): Add EOVERFLOW.
60177
60178         * lib/ftell.c (EOVERFLOW): Remove fallback.
60179         * modules/ftell (Depends-on): Add EOVERFLOW.
60180
60181         * lib/fprintf.c (EOVERFLOW): Remove fallback.
60182         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
60183         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
60184
60185         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
60186
60187         * modules/EOVERFLOW-tests: New file.
60188         * tests/test-EOVERFLOW.c: New file.
60189
60190         * modules/EOVERFLOW: New file.
60191         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
60192
60193 2008-03-30  Bruno Haible  <bruno@clisp.org>
60194
60195         Fix bug introduced on 2007-06-10.
60196         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
60197         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
60198
60199 2008-03-30  Bruno Haible  <bruno@clisp.org>
60200
60201         Improve freadseek's efficiency after ungetc.
60202         * lib/freadseek.c: Include freadahead.h.
60203         (freadptrinc): New function, extracted from freadseek.
60204         (freadseek): Use it in a loop. Use freadahead to determine the number
60205         of loop iterations.
60206         * modules/freadseek (Depends-on): Add freadahead.
60207         (configure.ac): Require AC_C_INLINE.
60208
60209 2008-03-30  Bruno Haible  <bruno@clisp.org>
60210
60211         * lib/freadseek.c (freadseek): Don't ignore the return value of
60212         freadptr.
60213
60214 2008-03-29  Eric Blake  <ebb9@byu.net>
60215
60216         Add hex float support.
60217         * modules/strtod (Depends-on): Add c-ctype.
60218         (Link): Mention POW_LIB.
60219         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
60220         whitespace between 'e' and exponent.
60221         * tests/test-strtod.c (main): Enable hex float tests.
60222         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
60223         now provides.
60224
60225         Document various strtod bugs, with some fixes.
60226         * doc/posix-functions/strtod.texi (strtod): Document bugs with
60227         "-0x", "inf", "nan", and hex constants.
60228         * doc/posix-functions/atof.texi (atof): Likewise.
60229         * modules/stdlib (Makefile.am): Support strtod.
60230         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
60231         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
60232         detect additional strtod bugs.
60233         * lib/stdlib.in.h (rpl_strtod): Add declarations.
60234         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
60235         bool where appropriate.  Parse 'inf' and 'nan'.
60236         * tests/test-strtod.c: New file.
60237         * modules/strtod (Depends-on): Add stdbool, stdlib.
60238         (configure.ac): Turn on module indicator.
60239         * modules/strtod-tests: New module.
60240
60241 2008-03-29  Eric Blake  <ebb9@byu.net>
60242
60243         Fix ftell on mingw.
60244         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
60245         * modules/ftell-tests (Depends-on): Add binary-io.
60246         * modules/ftello-tests (Depends-on): Likewise.
60247         * tests/test-ftell.c (main): Enhance test to cover behavior after
60248         ungetc.  Enforce binary mode.
60249         * tests/test-ftello.c (main): Likewise.
60250
60251         Pass test-freadseek on cygwin.
60252         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
60253         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
60254         ungetc buffer.
60255
60256         * tests/test-fflush2.c (main): Fix typo.
60257
60258 2008-03-29  Bruno Haible  <bruno@clisp.org>
60259
60260         * tests/test-fflush2.c (main): Temporarily disable the contents of
60261         this test.
60262         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
60263         Reported by Eric Blake.
60264
60265 2008-03-28  Simon Josefsson  <simon@josefsson.org>
60266
60267         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
60268         (GC_SHA224_DIGEST_SIZE): Add.
60269
60270         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
60271         (gc_hash_digest_length): Likewise.
60272         (gc_hash_buffer): Likewise.
60273
60274 2008-03-25  Bruno Haible  <bruno@clisp.org>
60275
60276         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
60277         detail which gettext release to use.
60278         Reported by Simon Josefsson.
60279
60280 2008-03-26  Jim Meyering  <meyering@redhat.com>
60281
60282         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
60283         * modules/gnumakefile (clean-GNUmakefile): Also, use
60284         test ... && ... || : syntax rather than if-then ... fi.
60285
60286         gnumakefile: Don't double-quote-expand $(VPATH) value.
60287         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
60288
60289 2008-03-24  Eric Blake  <ebb9@byu.net>
60290
60291         Alter GNUmakefile to install into top directory.
60292         * modules/maintainer-makefile: Split, and add dependency...
60293         * modules/gnumakefile: to this new module.
60294         * build-aux/GNUmakefile: Move...
60295         * top/GNUmakefile: ...here.
60296         * build-aux/maint.mk: Move...
60297         * top/maint.mk: ...here.
60298         * MODULES.html.sh (Support for maintaining...): Document new
60299         module.
60300
60301 2008-03-23  Bruno Haible  <bruno@clisp.org>
60302
60303         * gnulib-tool: New options --vc-files, --no-vc-files.
60304         (func_usage): Document them.
60305         (vc_files): New variable.
60306         (func_import): Consider vc_files.
60307         (func_create_testdir): Set vc_files to empty.
60308         Suggested by Jim Meyering and Karl Berry.
60309
60310 2008-03-23  Bruno Haible  <bruno@clisp.org>
60311
60312         Fix regex compilation error on HP-UX 11.
60313         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
60314         * modules/regex (Files): Add m4/mbstate_t.m4.
60315         Reported by Ton Voon <ton.voon@altinity.com>.
60316
60317 2008-03-23  Bruno Haible  <bruno@clisp.org>
60318
60319         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
60320
60321 2008-03-23  Eric Blake  <ebb9@byu.net>
60322             Bruno Haible  <bruno@clisp.org>
60323
60324         Install files from top/ in the destination directory.
60325         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60326         augmentation also for the files from top/.
60327         (func_import, func_create_testdir): Rewrite file names:
60328         top/filename -> filename.
60329
60330 2008-03-23  Bruno Haible  <bruno@clisp.org>
60331
60332         Tweak "gnulib --version" output.
60333         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
60334
60335 2008-03-23  Bruno Haible  <bruno@clisp.org>
60336
60337         Tweak "gnulib --version" output.
60338         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
60339         rather than contents of ChangeLog, when possible.
60340
60341 2008-03-21  Eric Blake  <ebb9@byu.net>
60342
60343         More --version tweaks.
60344         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
60345         date of last ChangeLog entry.
60346
60347 2008-03-21  Jim Meyering  <meyering@redhat.com>
60348
60349         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
60350
60351 2008-03-20  Eric Blake  <ebb9@byu.net>
60352
60353         VPATH fix.
60354         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
60355
60356 2008-03-20  Simon Josefsson  <simon@josefsson.org>
60357
60358         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
60359         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
60360
60361 2008-03-20  Eric Blake  <ebb9@byu.net>
60362
60363         Sync GNUmakefile with coreutils.
60364         * build-aux/GNUmakefile (have-Makefile): Rename...
60365         (_have-Makefile): ...to this, for namespace consideration.
60366         (GNUmakefile.cfg): Include, if present.
60367         (_autoreconf): Define a default.
60368         (_is-dist-target): New rule for rebuilds to pick up intra-release
60369         version.
60370         (maint-cfg.mk): Rename...
60371         (cfg.mk): ...to this.
60372
60373 2008-03-18  Jim Meyering  <meyering@redhat.com>
60374
60375         New script and module: mktempd
60376         * MODULES.html.sh (maint+release support): Add mktempd.
60377         * build-aux/mktempd: New file.
60378         * modules/mktempd: New file.
60379
60380 2008-03-15  Jim Meyering  <meyering@redhat.com>
60381
60382         Undo last change.
60383         * lib/sha1.c, lib/md5.c: 63 != ~63.
60384         Reported by Andreas Schwab.
60385
60386         sha1.c, md5.c: Hoist a redundant expression.
60387         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
60388         "ctx->buflen" only once, before calling *_process_block.
60389         * lib/md5.c (md5_process_bytes): Likewise.
60390
60391 2008-03-14  Eric Blake  <ebb9@byu.net>
60392
60393         Bump copyright year in files generated by gnulib-tool.
60394         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
60395         gnulib-tool, rather than hard-coding it.
60396
60397         Fix 'gnulib-tool --version' output to work with git.
60398         * gnulib-tool (func_gnulib_dir): New function, extracted from...
60399         (startup): ...here.
60400         (func_version): Use it to invoke git-version-gen, rather than
60401         relying on CVS keyword expansion.  Modernize wording.
60402         (cvsdatestamp, last_checkin_date, version): Kill unused
60403         variables.
60404
60405 2008-03-12  Jim Meyering  <meyering@redhat.com>
60406
60407         Recognize optional cast of the argument to free.
60408         * build-aux/useless-if-before-free: Update regexps.
60409
60410         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
60411
60412 2008-03-11  Bruno Haible  <bruno@clisp.org>
60413
60414         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
60415         by a single package.
60416         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
60417         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
60418         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
60419         Reported by Sam Steingold <sds@gnu.org>.
60420
60421 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60422
60423         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
60424         repositories.
60425
60426 2008-03-11  Bruno Haible  <bruno@clisp.org>
60427
60428         Avoid conflicts between local macro definitions.
60429         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60430         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
60431
60432 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
60433             Bruno Haible  <bruno@clisp.org>
60434
60435         Make va_copy work with some version of xlc on AIX 5.1.
60436         * lib/stdarg.in.h: New file.
60437         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
60438         On AIX, use a <stdarg.h> file substitute.
60439         * modules/stdarg (Files): Add lib/stdarg.in.h.
60440         (Depends-on): Add include_next.
60441         (Makefile.am): Build a stdarg.h substitute if requested.
60442         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
60443
60444 2008-03-10  Bruno Haible  <bruno@clisp.org>
60445
60446         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
60447         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60448         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60449
60450 2008-03-10  Bruno Haible  <bruno@clisp.org>
60451
60452         * modules/stdlib (Depends-on): Add include_next, remove
60453         absolute-header.
60454
60455 2008-03-09  Bruno Haible  <bruno@clisp.org>
60456
60457         * lib/freadahead.h (freadahead): Document more precisely.
60458         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
60459         the sum of both buffer sizes.
60460         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
60461         * NEWS: Document the change.
60462
60463 2008-03-09  Bruno Haible  <bruno@clisp.org>
60464
60465         Extend freadptr to return also the buffer size.
60466         * lib/freadptr.h (freadptr): Add sizep argument.
60467         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
60468         (freadptr): Add sizep argument. Determine buffer size like freadahead
60469         does.
60470         * tests/test-freadptr.c: Don't include freadahead.h.
60471         (main): Adapt for new calling convention of freadptr.
60472         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
60473         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
60474         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
60475         tests/test-freadptr2.sh.
60476         (Depends): Remove freadahead.
60477         (TESTS): Add test-freadptr2.sh.
60478         (check_PROGRAMS): Add test-freadptr2.
60479
60480 2008-03-09  Bruno Haible  <bruno@clisp.org>
60481
60482         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
60483         Report and solution by Simon Josefsson.
60484
60485 2008-03-06  Bruno Haible  <bruno@clisp.org>
60486
60487         Make fflush after ungetc work on BSD platforms.
60488         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
60489         * tests/test-fflush2.c: New file.
60490         * tests/test-fflush2.sh: New file.
60491         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
60492         tests/test-fflush2.c.
60493         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
60494         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
60495
60496 2008-03-06  Eric Blake  <ebb9@byu.net>
60497
60498         Likewise for ftello.
60499         * modules/ftello (Dependencies): Add extensions.
60500         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
60501
60502 2008-03-06  Bruno Haible  <bruno@clisp.org>
60503
60504         * modules/fseeko (Dependencies): Add extensions.
60505         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
60506         Needed on glibc systems.
60507
60508 2008-03-06  Bruno Haible  <bruno@clisp.org>
60509
60510         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
60511         email address.
60512         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60513
60514 2008-03-06  Bruno Haible  <bruno@clisp.org>
60515
60516         * users.txt: Add libgnupdf.
60517
60518 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60519
60520         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
60521         (Header File Substitutes, Function Substitutes,
60522         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
60523         (Build robot for gnulib): Fix typo.
60524
60525 2008-03-06  Bruno Haible  <bruno@clisp.org>
60526
60527         * doc/gnulib-tool.texi (VCS Issues): Small updates.
60528         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60529
60530 2008-03-06  Bruno Haible  <bruno@clisp.org>
60531
60532         * doc/func.texi: New file, extracted from doc/gnulib.texi.
60533         * doc/gnulib.texi: Include it.
60534
60535 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60536
60537         * modules/func (License): Change license to unlimited; there was
60538         no LGPL parts in the module anyway.
60539
60540 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60541
60542         * modules/__func__: Renamed to modules/func.
60543         * modules/__func__-tests: Renamed to modules/func-tests.
60544         * tests/test-__func__.c: Renamed to tests/test-func.c.
60545         * m4/__func__.m4: Renamed to m4/func.m4.
60546         * doc/gnulib.texi (__func__): Section renamed to func.
60547         Suggested by Eric Blake <ebb9@byu.net>.
60548
60549 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60550
60551         * doc/gnulib.texi (__func__): Use C99 terminology when talking
60552         about __func__.  Make example self-contained.  Suggested by Eric
60553         Blake <ebb9@byu.net>.
60554
60555         * tests/test-__func__.c (main): Avoid extraneous () around __func.
60556         Suggested by Eric Blake <ebb9@byu.net>.
60557
60558 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60559
60560         * modules/__func__: New file.
60561         * modules/__func__-tests: New file.
60562         * tests/test-__func__.c: New file.
60563         * m4/__func__.m4: New file.
60564         * doc/gnulib.texi (__func__): Document __func__ module.
60565
60566 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60567
60568         * modules/byteswap (License): Re-license as LGPLv2+.
60569
60570 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60571
60572         * doc/Makefile: Add pdf target.
60573
60574 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60575
60576         * modules/inline (License): Use 'unlimited', since there are only
60577         *.m4 files in this module.
60578
60579 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60580             Bruno Haible  <bruno@clisp.org>
60581
60582         Add support for HP C 7.1 on OpenVMS 8.3.
60583         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
60584
60585 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60586
60587         Update VMS specifics.
60588         * lib/getopt.c [VMS]: Remove include of unixlib.h.
60589
60590 2008-03-02  Jim Meyering  <meyering@redhat.com>
60591
60592         Remove the last dependency on the "free" module.
60593         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
60594         Reported by Bob Proulx.
60595
60596         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
60597
60598         Remove useless "if" tests before free.  Deprecate "free" module.
60599         * doc/posix-functions/free.texi: Mention that this
60600         module is no longer useful.
60601         * modules/free (Notice): Say this module is obsolete.
60602         * modules/readutmp (Depends-on): Remove free.
60603         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
60604         * lib/putenv.c (putenv): Likewise.
60605         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
60606         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
60607         * tests/test-c-strcasestr.c (main): Likewise.
60608         * tests/test-c-strstr.c (main): Likewise.
60609         * tests/test-mbscasestr1.c (main): Likewise.
60610         * tests/test-mbscasestr2.c (main): Likewise.
60611         * tests/test-mbsstr1.c (main): Likewise.
60612         * tests/test-mbsstr2.c (main): Likewise.
60613         * tests/test-memmem.c (main): Likewise.
60614         * tests/test-strcasestr.c (main): Likewise.
60615         * tests/test-striconv.c (main): Likewise.
60616         * tests/test-striconveh.c (main): Likewise.
60617         * tests/test-striconveha.c (main): Likewise.
60618         * tests/test-strstr.c (main): Likewise.
60619
60620         * build-aux/git-version-gen: Adjust a comment and the Usage string.
60621
60622         bootstrap: sync from coreutils again
60623         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
60624
60625 2008-03-01  Jim Meyering  <meyering@redhat.com>
60626
60627         bootstrap: sync from coreutils
60628         * build-aux/bootstrap (update_po_files): Copy a .po file into place
60629         also when the target doesn't exist.
60630
60631 2008-03-01  Eric Blake  <ebb9@byu.net>
60632
60633         Fix bugs in last patch.
60634         * lib/memchr2.c (memchr2): Fix typo.
60635         * tests/test-memchr2.c: Test previous bug, and don't use GNU
60636         extension.
60637         Reported by Bruce Korb.
60638
60639         New module 'memchr2'.
60640         * modules/memchr2: New file.
60641         * modules/memchr2-tests: Likewise.
60642         * lib/memchr2.h: Likewise.
60643         * lib/memchr2.c: Likewise, based on memchr.c.
60644         * tests/test-memchr2.c: New test.
60645         * MODULES.html.sh (String handling): Add memchr2.
60646
60647 2008-02-29  Bruno Haible  <bruno@clisp.org>
60648
60649         * modules/freadseek-tests: New file.
60650         * tests/test-freadseek.sh: New file.
60651         * tests/test-freadseek.c: New file.
60652
60653         New module 'freadseek'.
60654         * modules/freadseek: New file.
60655         * lib/freadseek.h: New file.
60656         * lib/freadseek.c: New file.
60657         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
60658
60659 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60660
60661         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
60662         wydawca.
60663
60664         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
60665         program_invocation_name and program_invocation_short_name are
60666         present.
60667
60668 2008-02-28  Bruno Haible  <bruno@clisp.org>
60669
60670         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
60671         * tests/test-freadptr.sh: Also test non-seekable stdin.
60672
60673 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
60674
60675         * build-aux/bootstrap (source_base, m4_base)
60676         (doc_base, tests_base): New variables.
60677         (gnulib_tool_options): Do not hardcode base directories, use
60678         the above variables instead.
60679
60680 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
60681
60682         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
60683
60684 2008-02-28  Bruno Haible  <bruno@clisp.org>
60685
60686         * modules/freadptr-tests: New file.
60687         * tests/test-freadptr.sh: New file.
60688         * tests/test-freadptr.c: New file.
60689
60690         New module 'freadptr'.
60691         * modules/freadptr: New file.
60692         * lib/freadptr.h: New file.
60693         * lib/freadptr.c: New file.
60694         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
60695
60696 2008-02-26  Karl Berry  <karl@freefriends.org>
60697
60698         Sync from Libtool:
60699         * libltdl/argz.c (argz_add, argz_count): New functions.
60700         * libltdl/argz.in.h: Declare them.
60701         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
60702
60703 2008-02-22  Bruno Haible  <bruno@clisp.org>
60704
60705         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
60706         is a pointer type.  Needed for HP-UX 10.
60707         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
60708         * doc/posix-functions/gmtime_r.texi: Likewise.
60709         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60710
60711 2008-02-24  Bruno Haible  <bruno@clisp.org>
60712
60713         * modules/environ-tests: New file.
60714         * tests/test-environ.c: New file.
60715
60716         New module 'environ'.
60717         * modules/environ: New file.
60718         * lib/unistd.in.h (environ): New declaration.
60719         * m4/environ.m4: New file.
60720         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
60721         after use.
60722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
60723         HAVE_DECL_ENVIRON.
60724         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
60725         HAVE_DECL_ENVIRON.
60726         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
60727         wrong claim that 'environ' is missing on some systems.
60728         * modules/execute (Depends-on): Add environ.
60729         * lib/execute.c (environ): Remove fallback declaration.
60730         * modules/pipe (Depends-on): Add environ.
60731         * lib/pipe.c (environ): Remove fallback declaration.
60732         * modules/setenv (Depends-on): Add environ.
60733         * lib/setenv.c (environ): Remove fallback declaration.
60734         * modules/unsetenv (Depends-on): Add environ.
60735         * lib/unsetenv.c (environ): Remove fallback declaration.
60736         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
60737         m4/environ.m4.
60738         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
60739         (gl_PREREQ_UNSETENV): Likewise.
60740
60741 2008-02-24  Bruno Haible  <bruno@clisp.org>
60742
60743         * doc/posix-functions/environ.texi: Document the MacOS X problem.
60744
60745 2008-02-20  Bob Proulx  <bob@proulx.com>
60746
60747         Enable use of older two part flavor 'git describe'.
60748         * build-aux/git-version-gen: If using the older two part flavor of
60749         git version then recreate the third part now present in the
60750         newer three part flavor of git describe.
60751
60752 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
60753
60754         * lib/fts.c (fts_build): Typo correction to comment.
60755
60756 2008-02-17  Bruno Haible  <bruno@clisp.org>
60757
60758         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
60759         generating no-op conflicts.
60760
60761 2008-02-17  Bruno Haible  <bruno@clisp.org>
60762
60763         Speed up by 10%.
60764         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
60765         result_entries, rather than an index-based loop.
60766
60767 2008-02-17  Bruno Haible  <bruno@clisp.org>
60768
60769         Speed up by 25%.
60770         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
60771         'hashcode_cached'.
60772         (entry_create): New function.
60773         (entry_hashcode): Use the cached hashcode if possible.
60774         (read_changelog_file, try_split_merged_entry): Use entry_create.
60775
60776 2008-02-17  Bruno Haible  <bruno@clisp.org>
60777
60778         Speed up from O(n^2) to O(n) for long ChangeLog files.
60779         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
60780         (read_changelog_file): Change implementation of entries_reversed list
60781         to rbtreehash.
60782         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
60783
60784 2008-02-17  Bruno Haible  <bruno@clisp.org>
60785
60786         New option --split-merged-entry.
60787         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
60788         (find_paragraph_end, try_split_merged_entry): New functions.
60789         (long_options): Add option --split-merged-entry.
60790         (usage): Document option --split-merged-entry.
60791         (main): Implement option --split-merged-entry.
60792         Reported by Eric Blake.
60793
60794 2008-02-17  Bruno Haible  <bruno@clisp.org>
60795
60796         * lib/git-merge-changelog.c: Include c-strstr.h.
60797         (main): Support the "git pull --rebase" situation.
60798         * modules/git-merge-changelog (Depends-on): Add c-strstr.
60799         Reported by Eric Blake.
60800
60801 2008-02-16  Eric Blake  <ebb9@byu.net>
60802
60803         Avoid doubling \ in common case of "c-maybe" quoting style.
60804         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
60805         eliding outer quotes.
60806         * lib/quotearg.h: Document this.
60807         * tests/test-quotearg.c (result_strings, inputs, results_g)
60808         (flag_results, locale_results): Test it by adding a new string to
60809         each test group.
60810         (compare_strings): Test new string.
60811
60812 2008-02-13  Eric Blake  <ebb9@byu.net>
60813
60814         Avoid trigraph quoting in default output.
60815         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
60816         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
60817         unless explicitly requested.
60818         * tests/test-quotearg.c (flag_results, main): Add additional tests.
60819
60820 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
60821
60822         Don't rely on signed integer overflowing to negative value.
60823         * lib/getugroups.c (getugroups): Include <limits.h>.
60824         Instead, compare against INT_MAX, and increment only if the test passes.
60825
60826 2008-02-13  Jim Meyering  <meyering@redhat.com>
60827         and Eric Blake  <ebb9@byu.net>
60828
60829         Avoid shadowing warning and compile errors on Linux.
60830         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
60831         forwarding macros on Linux.
60832         (dcgettext): Define a stub, for Linux.
60833         (results_g, main): Avoid warnings.
60834
60835 2008-02-12  Eric Blake  <ebb9@byu.net>
60836
60837         Silence warning in last patch.
60838         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
60839
60840         Quotearg part 4: add tests, fix c-maybe colon quoting.
60841         * lib/quotearg.h: Improve documentation.
60842         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
60843         escapes when adding outer quotes.  When quoting trigraphs, use
60844         valid C notation.  When quoting NUL, omit extra characters if next
60845         character is not digit.  Alter prototype.
60846         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
60847         callers.
60848         * modules/quotearg-tests: New module.
60849         * tests/test-quotearg.c: New test.
60850
60851 2008-02-07  Eric Blake  <ebb9@byu.net>
60852
60853         Quotearg part 3: add flag to control outer quote elision.
60854         * lib/quotearg.h (c_maybe_quoting_style): New style.
60855         (enum quoting_flags): Better documentation of flags.
60856         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
60857         c-maybe style.
60858         (quotearg_buffer_restyled): Handle new flag to elide outer
60859         quotes.
60860
60861         Quotearg part 2: add flag that can control NUL elision.
60862         * lib/quotearg.h (set_quoting_flags): New prototype.
60863         * lib/quotearg.c (struct quoting_options): Add flag field.
60864         (set_quoting_flags): New function.
60865         (quotearg_buffer_restyled): Add flags parameter.
60866         (quotearg_alloc_mem): Set the flag if length cannot be returned.
60867         (quotearg_n_options): Set the flag, since length cannot be
60868         returned.
60869         (quoting_options_from_style): Default flags correctly.
60870
60871         Quotearg part 1: more wrappers, restore quotearg_char state.
60872         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
60873         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
60874         (quotearg_colon_mem): New wrappers.
60875         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
60876         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
60877         functions.
60878         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
60879         (quotearg_colon_mem): New functions.
60880
60881 2008-02-11  Bruno Haible  <bruno@clisp.org>
60882
60883         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
60884         library in the current directory: it does not work with parallel make.
60885         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60886
60887 2008-02-11  Bruno Haible  <bruno@clisp.org>
60888
60889         * .gitattributes: New file.
60890
60891 2008-02-11  Jim Meyering  <meyering@redhat.com>
60892
60893         useless-if-before-free: Fix reversed exit values.
60894         * build-aux/useless-if-before-free: Use correct values
60895         for EXIT_MATCH and EXIT_NO_MATCH.
60896
60897         * build-aux/useless-if-before-free: Close stdout carefully.
60898
60899 2008-02-10  Bruno Haible  <bruno@clisp.org>
60900
60901         New module 'git-merge-changelog'.
60902         * modules/git-merge-changelog: New file.
60903         * lib/git-merge-changelog.c: New file.
60904
60905 2008-02-10  Jim Meyering  <meyering@redhat.com>
60906
60907         useless-if-before-free: New option: --list (-l).
60908
60909         useless-if-before-free: Don't exit immediately upon open failure.
60910         * build-aux/useless-if-before-free: Exit 2 for errors.
60911         Upon failure to open a file, don't exit immediately.
60912         Rather, just warn and continue with any remaining files.
60913
60914 2008-02-10  Bruno Haible  <bruno@clisp.org>
60915
60916         New abstract list operation 'node_set_value'.
60917         * lib/gl_list.h (gl_list_node_set_value): New function.
60918         (struct gl_list_implementation): New field node_set_value.
60919         * lib/gl_list.c (gl_list_node_set_value): New function.
60920         * lib/gl_array_list.c (gl_array_node_set_value): New function.
60921         (gl_array_list_implementation): Update.
60922         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
60923         (gl_carray_list_implementation): Update.
60924         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
60925         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60926         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60927         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
60928         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60929         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60930         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60931         Update.
60932         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60933         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
60934         (gl_sublist_list_implementation): Update.
60935
60936 2008-02-10  Bruno Haible  <bruno@clisp.org>
60937
60938         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
60939         Needed when ELEMENT is #defined to 'some_type *'.
60940
60941 2008-02-10  Jim Meyering  <meyering@redhat.com>
60942
60943         New script and module: useless-if-before-free
60944         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
60945         * build-aux/useless-if-before-free: New file.
60946         * modules/useless-if-before-free: New file.
60947
60948         * build-aux/gitlog-to-changelog: Use committer date, not author date.
60949
60950         xstrtol_error: Fix typo.
60951         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
60952         s/exit_failure/exit_status/.
60953
60954 2008-02-09  Jim Meyering  <meyering@redhat.com>
60955
60956         New script and module: gitlog-to-changelog
60957         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
60958         * modules/gitlog-to-changelog: New file.
60959         * build-aux/gitlog-to-changelog: New file.
60960
60961 2008-02-08  Jim Meyering  <meyering@redhat.com>
60962
60963         Avoid two "parameter unused" warnings.
60964         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
60965         Mark "st" as used.
60966
60967         Use "git COMMAND", not "git-COMMAND".
60968         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
60969         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
60970         * build-aux/git-version-gen: Use "git status", not "git-status".
60971
60972 2008-02-07  Bruno Haible  <bruno@clisp.org>
60973
60974         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
60975         Avoids a crash on Windows Vista.
60976         Reported by Adam Strzelecki <ono@java.pl> via
60977         Simon Josefsson <simon@josefsson.org>.
60978
60979 2008-02-06  Bruno Haible  <bruno@clisp.org>
60980
60981         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
60982         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
60983         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
60984         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
60985         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60986         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60987         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
60988         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
60989         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60990         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60991         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60992         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60993         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60994         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60995         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60996         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
60997         left-adjust flag.
60998         * tests/test-snprintf-posix.h (test_function): Likewise.
60999         * tests/test-sprintf-posix.h (test_function): Likewise.
61000         * tests/test-vasprintf-posix.c (test_function): Likewise.
61001         * doc/posix-functions/fprintf.texi: Update.
61002         * doc/posix-functions/printf.texi: Update.
61003         * doc/posix-functions/snprintf.texi: Update.
61004         * doc/posix-functions/sprintf.texi: Update.
61005         * doc/posix-functions/vfprintf.texi: Update.
61006         * doc/posix-functions/vprintf.texi: Update.
61007         * doc/posix-functions/vsnprintf.texi: Update.
61008         * doc/posix-functions/vsprintf.texi: Update.
61009         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61010
61011 2008-02-06  Bruno Haible  <bruno@clisp.org>
61012
61013         Fix bug introduced on 2008-01-26.
61014         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
61015
61016 2008-02-06  Bruno Haible  <bruno@clisp.org>
61017
61018         Fix bug introduced on 2007-06-10.
61019         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
61020         !NEED_PRINTF_FLAG_ZERO.
61021
61022 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
61023
61024         getloadavg: use libperfstat on AIX5
61025         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
61026
61027 2008-02-03  Bruno Haible  <bruno@clisp.org>
61028
61029         * lib/diffseq.h: Add comments about required #includes.
61030         Reported by Michael Biggs <gnulib@doubleplum.net>.
61031
61032 2008-02-01  Bruno Haible  <bruno@clisp.org>
61033
61034         * users.txt: Add gnuit.
61035
61036 2008-01-31  Bruno Haible  <bruno@clisp.org>
61037
61038         * lib/md4.c (set_uint32): Mark as inline.
61039         * lib/md5.c (set_uint32): Likewise.
61040         * lib/sha1.c (set_uint32): Likewise.
61041         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
61042         * m4/md5.m4 (gl_MD5): Likewise.
61043         * m4/sha1.m4 (gl_SHA1): Likewise.
61044
61045 2008-01-31  Jim Meyering  <meyering@redhat.com>
61046
61047         Use "sizeof VAR", rather than a literal "4".
61048         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
61049         * lib/md4.c (md4_read_ctx): Likewise.
61050         * lib/sha1.c (sha1_read_ctx): Likewise.
61051
61052 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61053
61054         * tests/test-sha1.c: New file, based on test-md5.c.
61055
61056         * modules/crypto/sha1-tests: New file.
61057
61058 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61059
61060         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
61061
61062 2008-01-31  Jim Meyering  <meyering@redhat.com>
61063
61064         Prefer "sizeof v" over the equivalent "4".
61065         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
61066         * lib/md5.c (set_uint32): Likewise.
61067         * lib/sha1.c (set_uint32): Likewise.
61068
61069 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61070
61071         * lib/sha1.c (set_uint32): Mark function as static.
61072
61073 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61074
61075         md2: clarify comments to say that alignment is not required.
61076         * lib/md2.h: Remove warning about alignment in comment.
61077         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
61078         never been required.
61079
61080 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61081
61082         md4: adapt alignment constraint fix from sha1.
61083         * lib/md4.c (set_uint32): New function, from sha1.c
61084         (md4_read_ctx): Use it.
61085         (md4_finish_ctx): Doc fix.
61086         * lib/md4.h: Doc fix.
61087
61088 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61089
61090         md5: adapt alignment constraint fix from sha1.
61091         * lib/md5.c (set_uint32): New function, from sha1.c
61092         (md5_read_ctx): Use it.
61093         (md5_finish_ctx): Doc fix.
61094         * lib/md5.h: Doc fix.
61095
61096 2008-01-30  Peter Palfrader  <weasel@debian.org>
61097
61098         sha1: remove the result buffer alignment constraint
61099         * lib/sha1.c (set_uint32): New function.
61100         (sha1_read_ctx): Rewrite to remove the result buffer alignment
61101         constraint.
61102         (sha1_finish_ctx): Remove comment warning about alignment constraint.
61103         * lib/sha1.h: Likewise.
61104
61105 2008-01-30  Andreas Schwab  <schwab@suse.de>
61106             Bruno Haible  <bruno@clisp.org>
61107
61108         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
61109         correct definition of LDBL_MIN_EXP.
61110
61111 2008-01-30  Karl Berry  <karl@gnu.org>
61112
61113         * config/srclist-update: try to preserve x bit on updates.
61114         * config/srclistvars.sh: update for karl.
61115
61116 2008-01-29  Jim Meyering  <meyering@redhat.com>
61117
61118         vasnprintf.c: Avoid warning about unused label
61119         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
61120         "overflow" label definition and associated code with the
61121         same cpp condition that guards the sole use of that label.
61122
61123 2008-01-26  Bruno Haible  <bruno@clisp.org>
61124
61125         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
61126         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
61127         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
61128         * lib/isnanl-nolibm.h (isnanl): Likewise.
61129         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61130
61131 2008-01-26  Bruno Haible  <bruno@clisp.org>
61132
61133         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
61134         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
61135
61136 2008-01-26  Bruno Haible  <bruno@clisp.org>
61137
61138         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
61139         GCC >= 4.0 built-in.
61140         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
61141
61142 2008-01-26  Bruno Haible  <bruno@clisp.org>
61143
61144         Rename isnan, applicable to 'double' only, to isnand.
61145         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
61146         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
61147         (configure.ac): Update.
61148         (Include): Replace "isnan.h" with "isnand.h".
61149         * m4/isnand.m4: Renamed from m4/isnan.m4.
61150         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
61151         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
61152         instead of isnan.c.
61153         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
61154         instead of HAVE_ISNAN_IN_LIBC.
61155         (isnand): Renamed from isnan.
61156         * lib/isnand.c: New file.
61157         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
61158         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
61159         (Makefile.am): Update.
61160         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
61161         Include isnand.h instead of isnan.h.
61162         (main): Test isnand instead of isnan.
61163         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
61164         isnan-nolibm.
61165         * modules/frexp (Depends-on): Likewise.
61166         * modules/frexp-tests (Depends-on): Likewise.
61167         * modules/frexp-nolibm (Depends-on): Likewise.
61168         * modules/frexp-nolibm-tests (Depends-on): Likewise.
61169         * modules/isfinite (Depends-on): Likewise.
61170         * modules/round-tests (Depends-on): Likewise.
61171         * modules/signbit (Depends-on): Likewise.
61172         * modules/signbit-tests (Depends-on): Likewise.
61173         * modules/snprintf-posix (Depends-on): Likewise.
61174         * modules/sprintf-posix (Depends-on): Likewise.
61175         * modules/trunc-tests (Depends-on): Likewise.
61176         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61177         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61178         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61179         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61180         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61181         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61182         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61183         * modules/vasnprintf-posix (Depends-on): Likewise.
61184         * modules/vasprintf-posix (Depends-on): Likewise.
61185         * modules/vfprintf-posix (Depends-on): Likewise.
61186         * modules/vsnprintf-posix (Depends-on): Likewise.
61187         * modules/vsprintf-posix (Depends-on): Likewise.
61188         * lib/frexp.c: Include isnand.h instead of isnan.h.
61189         (ISNAN): Set to isnand instead of isnan.
61190         * lib/isfinite.c: Include isnand.h instead of isnan.h.
61191         (gl_isfinited): Use isnand instead of isnan.
61192         * lib/signbitd.c: Include isnand.h instead of isnan.h.
61193         (gl_signbitd): Use isnand instead of isnan.
61194         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
61195         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
61196         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
61197         (main): Use isnand instead of isnan.
61198         * tests/test-round1.c: Include isnand.h.
61199         (main): Use isnand instead of isnan.
61200         * tests/test-round2.c: Include isnand.h instead of isnan.h.
61201         (ISNAN): Set to isnand instead of isnan.
61202         * tests/test-trunc1.c: Include isnand.h.
61203         (main): Use isnand instead of isnan.
61204         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
61205         (equal): Use isnand instead of isnan.
61206         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
61207         isnand-nolibm.
61208         * NEWS: Mention the change.
61209
61210 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61211             Bruno Haible  <bruno@clisp.org>
61212
61213         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
61214         the GCC builtins for signbits are present and set
61215         REPLACE_SIGNBIT_USING_GCC if so.
61216         * lib/math.in.h (signbit): Define using GCC builtins if
61217         REPLACE_SIGNBIT_USING_GCC is set.
61218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
61219         REPLACE_SIGNBIT_USING_GCC.
61220         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
61221
61222 2008-01-25  Jim Meyering  <meyering@redhat.com>
61223
61224         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
61225         * lib/poll.c: Include <config.h>, not "config.h".
61226         * tests/test-getaddrinfo.c: Likewise.
61227
61228 2008-01-25  Simon Josefsson  <simon@josefsson.org>
61229
61230         * modules/sockets-tests: New file.
61231
61232 2008-01-24  Simon Josefsson  <simon@josefsson.org>
61233
61234         * modules/sockets: New module, can be used to call WSA_Startup and
61235         WSA_Cleanup when needed.
61236
61237         * lib/sockets.h, lib/sockets.c: New files.
61238
61239         * m4/sockets.m4: New file.
61240
61241         * tests/test-sockets.c: New file.
61242
61243 2008-01-19  Bruno Haible  <bruno@clisp.org>
61244
61245         * doc/posix-headers: Renamed from doc/headers.
61246         * doc/posix-functions: Renamed from doc/functions.
61247         * doc/gnulib.texi: Update.
61248
61249 2008-01-19  Bruno Haible  <bruno@clisp.org>
61250
61251         * doc/glibc-functions/strcasestr.texi: Include contents of
61252         doc/functions/strcasestr.texi, fixing the list of platforms.
61253         * doc/functions/strcasestr.texi: Remove file.
61254
61255 2008-01-19  Bruno Haible  <bruno@clisp.org>
61256
61257         * doc/glibc-functions/memmem.texi: Include contents of
61258         doc/functions/memmem.texi.
61259         * doc/functions/memmem.texi: Remove file.
61260
61261 2008-01-18  Bruno Haible  <bruno@clisp.org>
61262
61263         * doc/glibc-functions/*.texi: New files.
61264         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
61265         to use the new files.
61266
61267 2008-01-17  Bruno Haible  <bruno@clisp.org>
61268
61269         * tests/test-gethostname.c (main): Fix printf statement.
61270
61271 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61272
61273         * modules/gethostname-tests: New file.
61274
61275         * tests/test-gethostname.c: New file.
61276
61277 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61278
61279         * lib/gethostname.c: Include string.h unconditionally, strncpy is
61280         used by the UNAME case.  Reported by Bruno Haible
61281         <bruno@clisp.org>.
61282
61283 2008-01-17  Eric Blake  <ebb9@byu.net>
61284
61285         Convert c-strcasestr to be more efficient.
61286         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
61287         (Depends-on): Add c-strcase, remove malloca, strnlen.
61288         * tests/test-c-strcasestr.c (main): Enhance test.
61289         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
61290
61291 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61292
61293         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
61294         Use it in creating po/Makevars.
61295
61296 2008-01-15  Simon Josefsson  <simon@josefsson.org>
61297
61298         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
61299         Applications that requires it should initialize libgcrypt
61300         manually.
61301
61302 2008-01-16  Simon Josefsson  <simon@josefsson.org>
61303
61304         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
61305
61306 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
61307
61308         Fix problem with getdate on mingw32 reported by Simon Josefsson
61309         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
61310         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
61311         tzname", when deciding whether to declare tzname.
61312         * lib/strftime.c (tzname): Likewise.
61313
61314 2008-01-15  Bruno Haible  <bruno@clisp.org>
61315
61316         Work around a MacOS X 10.5 bug in frexpl().
61317         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
61318         * doc/functions/frexpl.texi: Document the bug.
61319         Reported by Elias Pipping <pipping@gentoo.org>.
61320
61321 2008-01-14  Eric Blake  <ebb9@byu.net>
61322
61323         Touch up previous patch.
61324         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
61325         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
61326
61327         Convert strcasestr module to use Two-Way algorithm.
61328         * modules/strcasestr-simple: New module, based on the old
61329         strcasestr, but with Two-Way rather than KMP.
61330         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
61331         * lib/string.in.h (rpl_strcasestr): Declare.
61332         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
61333         performance.
61334         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
61335         * modules/string (Makefile.am): Support strcasestr.
61336         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
61337         * modules/strcasestr-tests (Depends-on): Check for alarm.
61338         * tests/test-strcasestr.c: Augment test.
61339         * lib/str-two-way.h: Clean up stray macro.
61340         * NEWS: Document new module.
61341         * MODULES.html.sh (string handling): Likewise.
61342         * doc/functions/strcasestr.texi: New file.
61343         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
61344         here, since it is not a POSIX function.
61345
61346 2008-01-14  Colin Watson  <cjwatson@debian.org>
61347             Bruno Haible  <bruno@clisp.org>
61348
61349         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
61350         works fine; if not, set REPLACE_STRSIGNAL.
61351         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
61352         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61353         REPLACE_STRSIGNAL.
61354         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
61355         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
61356         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
61357
61358 2008-01-14  Bruno Haible  <bruno@clisp.org>
61359
61360         * modules/strsignal (Include): Change to <string.h>.
61361
61362 2008-01-14  Colin Watson  <cjwatson@debian.org>
61363
61364         * modules/argp (Notice): Add a notice recommending to change
61365         XGETTEXT_OPTIONS.
61366         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
61367
61368 2008-01-13  Colin Watson  <cjwatson@debian.org>
61369
61370         * modules/strsignal-tests: New file.
61371         * tests/test-strsignal.c: New file.
61372
61373         * lib/strsignal.c: New file, from glibc with modifications.
61374         * lib/siglist.h: New file, from glibc with modifications.
61375         * lib/string.in.h (strsignal): New declaration.
61376         * m4/strsignal.m4: New file.
61377         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61378         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
61379         * modules/strsignal: New file.
61380         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
61381         HAVE_DECL_STRSIGNAL.
61382
61383 2008-01-13  Bruno Haible  <bruno@clisp.org>
61384
61385         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
61386         locale encoding is not ASCII. Needed for OpenBSD 4.0.
61387         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61388         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61389
61390 2008-01-13  Bruno Haible  <bruno@clisp.org>
61391
61392         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
61393         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
61394         * lib/argp.h (__attribute__): Likewise.
61395         * lib/c-stack.c (__attribute__): Likewise.
61396         * lib/error.h (__attribute__): Likewise.
61397         * lib/fts.c (__attribute__): Likewise.
61398         * lib/openat.h (__attribute__): Likewise.
61399         * lib/stdio.in.h (__attribute__): Likewise.
61400         * lib/string.in.h (__attribute__): Likewise.
61401         * lib/utimens.c (__attribute__): Likewise.
61402         * lib/vasnprintf.h (__attribute__): Likewise.
61403         * lib/xalloc.h (__attribute__): Likewise.
61404         * lib/xprintf.h (__attribute__): Likewise.
61405         * lib/xstrtol.h (__attribute__): Likewise.
61406         * lib/xvasprintf.h (__attribute__): Likewise.
61407
61408 2008-01-12  Bruno Haible  <bruno@clisp.org>
61409
61410         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
61411         * doc/glibc-headers/a.out.texi: New file.
61412         * doc/glibc-headers/aliases.texi: New file.
61413         * doc/glibc-headers/alloca.texi: New file.
61414         * doc/glibc-headers/ar.texi: New file.
61415         * doc/glibc-headers/argp.texi: New file.
61416         * doc/glibc-headers/argz.texi: New file.
61417         * doc/glibc-headers/byteswap.texi: New file.
61418         * doc/glibc-headers/crypt.texi: New file.
61419         * doc/glibc-headers/endian.texi: New file.
61420         * doc/glibc-headers/envz.texi: New file.
61421         * doc/glibc-headers/err.texi: New file.
61422         * doc/glibc-headers/error.texi: New file.
61423         * doc/glibc-headers/execinfo.texi: New file.
61424         * doc/glibc-headers/fpu_control.texi: New file.
61425         * doc/glibc-headers/fstab.texi: New file.
61426         * doc/glibc-headers/fts.texi: New file.
61427         * doc/glibc-headers/getopt.texi: New file.
61428         * doc/glibc-headers/ieee754.texi: New file.
61429         * doc/glibc-headers/ifaddrs.texi: New file.
61430         * doc/glibc-headers/libintl.texi: New file.
61431         * doc/glibc-headers/mcheck.texi: New file.
61432         * doc/glibc-headers/mntent.texi: New file.
61433         * doc/glibc-headers/obstack.texi: New file.
61434         * doc/glibc-headers/paths.texi: New file.
61435         * doc/glibc-headers/printf.texi: New file.
61436         * doc/glibc-headers/pty.texi: New file.
61437         * doc/glibc-headers/resolv.texi: New file.
61438         * doc/glibc-headers/shadow.texi: New file.
61439         * doc/glibc-headers/sysexits.texi: New file.
61440         * doc/glibc-headers/ttyent.texi: New file.
61441
61442 2008-01-12  Jim Meyering  <meyering@redhat.com>
61443
61444         announce-gen: emit Gnulib's git-based version string.
61445         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
61446         New option --gnulib-version=V, where V is expected to be
61447         the output of running git describe in the gnulib directory.
61448         (get_tool_versions): Request feedback on xdelta.  I suspect it's
61449         not useful, and plan to stop publishing an xdelta file with each
61450         coreutils release.
61451
61452         * build-aux/announce-gen: Also check for lzma-compressed files.
61453
61454 2008-01-11  Bruno Haible  <bruno@clisp.org>
61455
61456         * tests/test-memmem.c (main): Increase maximum allowed time.
61457         * tests/test-strstr.c (main): Likewise.
61458
61459 2008-01-11  Bruno Haible  <bruno@clisp.org>
61460
61461         * doc/functions/memmem.texi: Add more precisions about platforms.
61462         * doc/functions/strstr.texi: Likewise.
61463
61464 2008-01-10  Eric Blake  <ebb9@byu.net>
61465
61466         * m4/strstr.m4: Delete cruft from copy-n-paste.
61467         Reported by Bruno Haible.
61468
61469 2008-01-10  Bruno Haible  <bruno@clisp.org>
61470
61471         Make c-strstr rely on strstr.
61472         * lib/c-strstr.c: Don't include str-kmp.h.
61473         (c_strstr): Define in terms of strstr.
61474         * modules/c-strstr (Files): Remove lib/str-kmp.h.
61475         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
61476
61477 2008-01-10  Bruno Haible  <bruno@clisp.org>
61478
61479         * doc/gnulib.texi (String Functions in C Locale): New section.
61480         * doc/c-ctype.texi: New file.
61481         * doc/c-strcase.texi: New file.
61482         * doc/c-strcaseeq.texi: New file.
61483         * doc/c-strcasestr.texi: New file.
61484         * doc/c-strstr.texi: New file.
61485         * doc/c-strtod.texi: New file.
61486         * doc/c-strtold.texi: New file.
61487
61488 2008-01-10  Eric Blake  <ebb9@byu.net>
61489
61490         * lib/relocatable.h: Fix a comment.
61491
61492 2008-01-10  Eric Blake  <ebb9@byu.net>
61493
61494         Share two-way algorithm.
61495         * lib/str-two-way.h: New file, merged from...
61496         * lib/memmem.c: ...here...
61497         * lib/strstr.c: ...and here.
61498         * modules/memmem (Files): Use it.
61499         * modules/strstr (Files): Likewise.
61500
61501         Avoid quadratic strstr implementations.
61502         * lib/strstr.c: New file.
61503         * m4/strstr.m4: Likewise.
61504         * modules/strstr: Likewise.
61505         * modules/strstr-tests: Likewise.
61506         * tests/test-strstr.c: Likewise.
61507         * lib/string.in.h (rpl_strstr): Declare.
61508         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
61509         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
61510         * modules/string (Makefile.am): Likewise.
61511         * MODULES.html.sh (string handling): Mention new module.
61512         * doc/functions/strstr.texi (strstr): Document the bug.
61513
61514 2008-01-10  Bruno Haible  <bruno@clisp.org>
61515
61516         * lib/relocatable.h (relocate): State whether result is freshly
61517         allocated or not.
61518         * lib/relocatable.c (relocate): Return a freshly allocated string
61519         instead of a pointer to a privately held string.
61520         Reported by Sylvain Beucler <beuc@gnu.org>.
61521
61522 2008-01-10  Colin Watson  <cjwatson@debian.org>
61523
61524         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
61525         s/S_ISNLK/S_ISLNK/.
61526
61527 2008-01-09  Bruno Haible  <bruno@clisp.org>
61528
61529         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
61530         and other files.
61531         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
61532         if it's only a guess.
61533         * modules/memmem: Simplify by depending on memmem-simple.
61534
61535 2008-01-09  Bruno Haible  <bruno@clisp.org>
61536
61537         Work around OpenBSD 4.0 tdelete() bug.
61538         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
61539         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
61540         macros and don't redefine the enum values.
61541         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
61542         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
61543         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
61544
61545 2008-01-09  Bruno Haible  <bruno@clisp.org>
61546
61547         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
61548         (main): Don't perform the tests if setlocale did not install a UTF-8
61549         locale. Needed on OpenBSD 4.0.
61550         * modules/wcwidth-tests (Depends-on): Add localcharset.
61551
61552 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61553
61554         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
61555         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
61556         * NEWS: announce this.
61557         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
61558
61559 2008-01-09  Simon Josefsson  <simon@josefsson.org>
61560         and Eric Blake  <ebb9@byu.net>
61561
61562         Add memmem-simple module.
61563         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
61564         (gl_FUNC_MEMMEM): Separate performance from presence checks.
61565         * modules/memmem-simple: New file.
61566         * modules/memmem (Description): Tweak.
61567         * MODULES.html.sh (string handling): Mention new module.
61568         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
61569         addressed by memmem-simple.
61570         * NEWS: Document the difference.
61571
61572 2008-01-09  Eric Blake  <ebb9@byu.net>
61573
61574         Give gcc some memmem optimization hints.
61575         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
61576         (strcasestr): Declare as pure.
61577         * modules/memmem (Maintainer): Claim my implementation.
61578
61579 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61580
61581         Support AIX 6.1 and higher.
61582         * build-aux/config.libpath: Likewise.
61583         * build-aux/config.rpath: Likewise.
61584
61585 2008-01-08  Jim Meyering  <meyering@redhat.com>
61586             Bruno Haible  <bruno@clisp.org>
61587
61588         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
61589         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
61590         Reported by Peter Fales in
61591         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
61592
61593 2008-01-08  Bruno Haible  <bruno@clisp.org>
61594
61595         * modules/unictype/category-of (Depends-on): Add
61596         unictype/category-none.
61597         * modules/unictype/category-and-tests (Depends-on): Add
61598         unictype/category-{L,N,Lu,Nd}.
61599         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
61600         * modules/unictype/category-or-tests (Depends-on): Add
61601         unictype/category-{L,N}.
61602         * modules/unictype/category-name-tests (Depends-on): Add
61603         unictype/category-{Z,Nl}.
61604         Reported by Simon Josefsson.
61605
61606 2008-01-08  Bruno Haible  <bruno@clisp.org>
61607
61608         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
61609         convention better.
61610         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
61611         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
61612         Reported by Peter Miller <millerp@canb.auug.org.au>.
61613
61614 2008-01-08  Eric Blake  <ebb9@byu.net>
61615
61616         Rewrite memmem to guarantee linear complexity without malloc.
61617         * lib/memmem.c (memmem): Use Two-Way rather than
61618         Knuth-Morris-Pratt, to allow O(1) space usage.
61619         (critical_factorization, two_way_short_needle)
61620         (two_way_long_needle): New functions.
61621         (knuth_morris_pratt): Delete.
61622         * modules/memmem (Depends-on): No longer need malloca or stdbool.
61623         Add stdint.
61624         * tests/test-memmem.c (main): Add tests for periodic needle and
61625         sublinear performance.
61626         * doc/functions/memmem.texi (memmem): Document other deficiencies
61627         in cygwin and older glibc.
61628
61629 2008-01-08  Bruno Haible  <bruno@clisp.org>
61630
61631         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
61632         augmentation.
61633
61634 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
61635
61636         Add a configure time option: --disable-acl.
61637         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
61638         AC_ARG_ENABLE(acl).
61639
61640 2008-01-06  Simon Josefsson  <simon@josefsson.org>
61641
61642         * tests/test-localename.c: Don't include obsolete "setenv.h".
61643
61644         * modules/localename-tests (Depends-on): Need unsetenv.
61645
61646 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61647
61648         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
61649
61650 2008-01-06  Colin Watson  <cjwatson@debian.org>
61651
61652         * users.txt: Add man-db.
61653
61654 2008-01-07  Bruno Haible  <bruno@clisp.org>
61655
61656         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
61657         previous section name.
61658
61659 2008-01-07  Bruno Haible  <bruno@clisp.org>
61660
61661         * lib/progname.c (set_program_name): Don't strip off a leading
61662         "lt-" prefix outside a .libs directory.
61663         Suggested by Paul Eggert.
61664
61665 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
61666             Bruno Haible  <bruno@clisp.org>
61667
61668         Improve memory cleanup in 'relocatable' module.
61669         * lib/relocatable.h (compute_curr_prefix): Change return type to
61670         'char *'.
61671         * lib/relocatable.c (compute_curr_prefix): Change return type to
61672         'char *'. Free curr_installdir after use.
61673         (relocate): Free curr_prefix_better after use.
61674         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
61675
61676 2008-01-01  Bruno Haible  <bruno@clisp.org>
61677
61678         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
61679         failure on older glibc systems.
61680         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61681
61682 2008-01-05  Eric Blake  <ebb9@byu.net>
61683
61684         Avoid quadratic system memmem.
61685         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
61686         Reported by Ralf Wildenhues.
61687
61688         Fix memmem test for mingw.
61689         * modules/memmem-tests (configure.ac): Check for alarm.
61690         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
61691         it.
61692         * doc/functions/memmem.texi: New file.
61693         * doc/gnulib.texi (Function Substitutes): Add memmem.
61694         Reported by Bruno Haible.
61695
61696 2008-01-04  Bruno Haible  <bruno@clisp.org>
61697
61698         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
61699         Require gl_HEADER_STRINGS_H_DEFAULTS, not
61700         gl_HEADER_STRING_H_DEFAULTS.
61701
61702 2008-01-04  Eric Blake  <ebb9@byu.net>
61703
61704         Shorten duration of memmem test.
61705         * tests/test-memmem.c (main): Use alarm to declare failure if test
61706         is taking too long.
61707         Reported by Ralf Wildenhues.
61708
61709 2007-12-21  Simon Josefsson  <simon@josefsson.org>
61710
61711         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
61712         string, needed by strerror.
61713
61714 2008-01-03  Colin Watson  <cjwatson@debian.org>
61715             Bruno Haible  <bruno@clisp.org>
61716
61717         * doc/gnulib-tool.texi (Localization): New section.
61718
61719 2008-01-02  Bruno Haible  <bruno@clisp.org>
61720
61721         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
61722         variables to 'unsigned char *' type.
61723         Reported by Paul Eggert.
61724
61725 2008-01-02  Jim Meyering  <jim@meyering.net>
61726
61727         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
61728
61729 2007-12-31  Jim Meyering  <jim@meyering.net>
61730
61731         Avoid use of private FTS type name.
61732         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
61733
61734 2007-12-30  Karl Berry  <karl@gnu.org>
61735
61736         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
61737         work around defect in Texinfo and/or the standalone Info browser.
61738
61739 2007-12-30  Bruno Haible  <bruno@clisp.org>
61740
61741         Unify 5 copies of the KMP code.
61742         * lib/str-kmp.h: New file.
61743         * lib/c-strcasestr.c: Include str-kmp.h.
61744         (knuth_morris_pratt): Remove function.
61745         (c_strcasestr): Update.
61746         * lib/c-strstr.c: Include str-kmp.h.
61747         (knuth_morris_pratt): Remove function.
61748         (c_strcasestr): Update.
61749         * lib/mbscasestr.c: Include str-kmp.h.
61750         (knuth_morris_pratt_unibyte): Remove function.
61751         * lib/mbsstr.c: Include str-kmp.h.
61752         (knuth_morris_pratt_unibyte): Remove function.
61753         * lib/strcasestr.c: Include str-kmp.h.
61754         (knuth_morris_pratt): Remove function.
61755         (strcasestr): Update.
61756         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
61757         * modules/c-strstr (Files): Likewise.
61758         * modules/mbscasestr (Files): Likewise.
61759         * modules/mbsstr (Files): Likewise.
61760         * modules/strcasestr (Files): Likewise.
61761         Suggested by Paul Eggert.
61762
61763 2007-12-30  Bruno Haible  <bruno@clisp.org>
61764
61765         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
61766         defined.
61767
61768 2007-12-30  Bruno Haible  <bruno@clisp.org>
61769
61770         * lib/xmalloca.h: Include xalloc.h.
61771         (xnmalloca): New macro.
61772
61773 2007-12-30  Bruno Haible  <bruno@clisp.org>
61774
61775         * lib/malloca.h (nmalloca): New macro.
61776         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
61777         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
61778         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
61779         knuth_morris_pratt_multibyte): Likewise.
61780         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
61781         knuth_morris_pratt_multibyte): Likewise.
61782         * lib/memmem.c (knuth_morris_pratt): Likewise.
61783         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
61784
61785 2007-12-25  Bruno Haible  <bruno@clisp.org>
61786
61787         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
61788         * lib/glob.c: Don't include openat.h.
61789         (link_exists2_p): Add back the code that deals with the
61790         !GLOB_ALTDIRFUNC case.
61791         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
61792         let it do the filename concatenation.
61793         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
61794         * modules/glob (Depends-on): Remove openat.
61795
61796 2007-12-31  Bruno Haible  <bruno@clisp.org>
61797
61798         * modules/dirfd (License): Change to LGPLv2+.
61799         Approved by Jim Meyering.
61800
61801 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61802
61803         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
61804         when multiplying M by sizeof (size_t).
61805
61806 2007-12-10  Martin Lambers  <marlam@marlam.de>
61807
61808         Override getpagesize on mingw.
61809         * lib/getpagesize.c: New file.
61810         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
61811         * modules/getpagesize (Files): Add lib/getpagesize.c.
61812         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
61813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61814         REPLACE_GETPAGESIZE.
61815         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
61816
61817 2007-12-25  Bruno Haible  <bruno@clisp.org>
61818
61819         * modules/localcharset (Notice): New field.
61820         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
61821         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
61822
61823 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61824             Bruno Haible  <bruno@clisp.org>
61825
61826         Avoid using the syntax symbol() in formatted documentation.
61827         * MODULES.html.sh (func_module): When replacing symbol() with a
61828         hyperlink, remove the parentheses. Show an error if some remain.
61829         Recognize and render the '...' syntax.
61830         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
61831         Rework. Add paragraph about GCC's inlining.
61832         * doc/alloca.texi: Likewise.
61833         * doc/error.texi: Remove parentheses from symbol reference.
61834         * doc/gnulib-intro.texi: Likewise.
61835         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
61836         * modules/fnmatch (Description): Reword to say "the ... function".
61837         * modules/full-read (Description): Likewise.
61838         * modules/full-write (Description): Likewise.
61839         * modules/safe-read (Description): Likewise.
61840         * modules/safe-write (Description): Likewise.
61841         * modules/strchrnul (Description): Likewise.
61842         * modules/trim (Description): Likewise.
61843         * modules/error (Description): Remove parentheses from symbol
61844         references.
61845         * modules/verror (Description): Likewise.
61846         Reported by Karl Berry.
61847
61848 2007-12-25  Bruno Haible  <bruno@clisp.org>
61849
61850         Fixup after 2007-10-16 commit.
61851         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
61852
61853 2007-12-24  Bruno Haible  <bruno@clisp.org>
61854
61855         Make --enable-relocatable work with DESTDIR.
61856         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
61857         to compute installdir from destprog.
61858         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
61859         also set the RELOC_DESTDIR variable.
61860         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61861
61862 2007-12-24  Bruno Haible  <bruno@clisp.org>
61863
61864         Fix link error due to xalloc_die().
61865         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
61866         of xreadlink.
61867         * lib/relocwrapper.c: Update comments.
61868         * build-aux/install-reloc: Remove xreadlink.c from file list.
61869         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
61870         xreadlink.c.
61871         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61872
61873 2007-12-24  Bruno Haible  <bruno@clisp.org>
61874
61875         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
61876         * lib/setenv.h: Remove file.
61877         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
61878         lib/setenv.h.
61879         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
61880         (Depends-on): Add stdlib.
61881         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
61882         gl_FUNC_UNSETENV.
61883         (Include): Replace setenv.h with <stdlib.h>.
61884         * modules/unsetenv: New file.
61885         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
61886         * lib/unsetenv.c: Include <stdlib.h> first.
61887         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
61888         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
61889         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
61890         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
61891         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
61892         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61893         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
61894         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61895         * doc/functions/unsetenv.texi: Update.
61896         * modules/xsetenv (Depends-on): Add unsetenv.
61897         * modules/getdate (Depends-on): Likewise.
61898         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
61899         * lib/xsetenv.c: Don't include setenv.h.
61900         * lib/getdate.y: Likewise.
61901         * lib/relocwrapper.c: Likewise.
61902         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
61903         (Depends-on): Add stdlib.
61904         * NEWS: Mention the changes.
61905         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61906
61907 2007-12-23  Bruno Haible  <bruno@clisp.org>
61908
61909         * lib/memmem.c (memmem): Use lowercase variable names. Tab
61910         indentation.
61911
61912 2007-12-23  Bruno Haible  <bruno@clisp.org>
61913
61914         * lib/c-strcasestr.c: Add more comments.
61915         * lib/c-strstr.c: Likewise.
61916         * lib/mbscasestr.c: Likewise.
61917         * lib/mbsstr.c: Likewise.
61918         * lib/strcasestr.c: Likewise.
61919         * lib/memmem.c: Likewise.
61920
61921 2007-12-23  Bruno Haible  <bruno@clisp.org>
61922
61923         * tests/test-memmem.c: Include <string.h> first.
61924
61925 2007-12-22  Bruno Haible  <bruno@clisp.org>
61926
61927         * gnulib-tool (func_create_testdir): Change $auxdir while generating
61928         the contents of $testsbase.
61929         Reported by Ralf Wildenhues.
61930
61931 2007-12-22  Bruno Haible  <bruno@clisp.org>
61932
61933         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
61934         two variables local_ldadd_before, local_ldadd_last.
61935
61936 2007-12-20  Eric Blake  <ebb9@byu.net>
61937
61938         Work around circular library issue when cross-compiling.
61939         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
61940         that progname.o does not need to pull in rpl_memcmp.
61941
61942 2007-12-19  Eric Blake  <ebb9@byu.net>
61943
61944         Fix memmem to avoid O(n^2) worst-case complexity.
61945         * lib/memmem.c (knuth_morris_pratt): New function.
61946         (memmem): Use it if first few naive iterations fail.
61947         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
61948         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
61949         * modules/memchr (License): Likewise.
61950         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
61951         malloca.
61952         * tests/test-memmem.c: Rewrite, borrowing ideas from
61953         test-mbsstr1.c; the old version wouldn't even compile!
61954         * modules/memmem-tests: New file.
61955         * lib/string.in.h (rpl_memmem): Add declaration.
61956         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
61957         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
61958         REPLACE_MEMMEM.
61959
61960 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61961
61962         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
61963         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
61964         before any system include files, and undef after them all.  This
61965         should fix a problem on VMS reported by John E. Malmberg in
61966         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
61967
61968 2007-12-17  Eric Blake  <ebb9@byu.net>
61969
61970         Revert addition of verify, for BSD/OS.
61971         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
61972         can't handle large files, for the sake of obsolete platforms.
61973         * modules/fseeko (Depends-on): Remove verify.
61974         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
61975         * doc/functions/ftello.texi (ftello): Likewise.
61976         * doc/functions/fgetpos.texi (fgetpos): Likewise.
61977         Reported by Larry Jones.
61978
61979 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
61980
61981         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
61982         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
61983
61984 2007-12-17  Jim Meyering  <meyering@redhat.com>
61985
61986         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
61987         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
61988         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
61989         * modules/getcwd (Depends-on): Add openat.
61990         Reported by Petr Salinger.
61991
61992 2007-12-17  Bruno Haible  <bruno@clisp.org>
61993
61994         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
61995         avoid a segmentation fault of the configure test on x86_64 systems.
61996
61997 2007-12-15  Jim Meyering  <meyering@redhat.com>
61998
61999         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
62000
62001 2007-12-13  Eric Blake  <ebb9@byu.net>
62002
62003         Another fseek test.
62004         * tests/test-fseek.c (main): Also test ungetc handling.
62005         * tests/test-fseeko.c (main): Likewise.
62006         * modules/fseeko (Depends-on): Add verify.
62007         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
62008         large.
62009         Reported by Larry Jones.
62010
62011         Fix fseeko on mingw.
62012         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
62013         seek.
62014
62015         Beef up fseek tests.
62016         * tests/test-fseek.c (main): Also test eof handling.
62017         * tests/test-fseeko.c (main): Likewise.
62018         Reported by Larry Jones.
62019
62020 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
62021
62022         Fix fseeko on BSD-based platforms.
62023         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
62024         successful seek.
62025
62026 2007-12-12  Eric Blake  <ebb9@byu.net>
62027
62028         Allow circular dependency of separate libtests.a
62029         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
62030         when use_libtests.
62031
62032 2007-12-11  Eric Blake  <ebb9@byu.net>
62033
62034         Fix bug with -0.0L in previous patch.
62035         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
62036         * tests/test-isnan.c (main): Also test on zeroes.
62037         * tests/test-isnanf.c (main): Likewise.
62038         * tests/test-isnanl.h (main): Likewise.
62039
62040         Detect pseudo-denormals on x86 even when cross-compiling.
62041         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
62042         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
62043         invalid bit patterns that happen to satisfy ==.
62044
62045         Avoid link failures with separate libtests.a.
62046         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
62047         last, to satisfy circular dependencies.
62048
62049 2007-12-11  Eric Blake  <ebb9@byu.net>
62050         and Bruno Haible  <bruno@clisp.org>
62051
62052         Fix OpenBSD 4.0 <float.h> handling of long double.
62053         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
62054         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
62055         * doc/headers/float.texi (float.h): Document OpenBSD bug.
62056
62057 2007-12-11  Jim Meyering  <meyering@redhat.com>
62058
62059         * users.txt: Add libvirt.
62060
62061         Support versions of autoconf prior to 2.59c.
62062         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
62063         if it is not already defined.
62064
62065 2007-12-09  Bruno Haible  <bruno@clisp.org>
62066
62067         Let 'gnulib-tool --import' collect sources needed for the tests in
62068         tests/ rather than in lib/.
62069         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
62070         argument. If true, add rules to generate libtests.a, and put libtests.a
62071         into $(LDADD). Consider source files in subdirectories and set
62072         uses_subdirs.
62073         (func_emit_initmacro_start, func_emit_initmacro_end,
62074         func_emit_initmacro_done): Pass all arguments explicitly.
62075         (func_import): Determine two module lists main_modules,
62076         testsrelated_modules. Determine use_libtests. Determine two variables
62077         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
62078         instead of just sed_transform_lib_file. Determine two variables
62079         main_files and testsrelated_files. Compute 'files' as the union of
62080         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
62081         func_add_or_update. In the generated gnulib-comp.m4, collect the
62082         object files for tests/ in different variables than those for lib/.
62083         Substitute LIBTESTS_LIBDEPS.
62084         (func_create_testdir): Combine the uses_subdirs results from
62085         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
62086
62087 2007-12-09  Bruno Haible  <bruno@clisp.org>
62088
62089         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
62090         the build-aux directory.
62091
62092 2007-12-09  Bruno Haible  <bruno@clisp.org>
62093
62094         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
62095         introduced on 2006-09-09.
62096
62097 2007-12-07  Jim Meyering  <meyering@redhat.com>
62098
62099         Let these macros work also with autoconf-2.59.
62100         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
62101         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
62102         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62103
62104 2007-12-06  Jim Meyering  <meyering@redhat.com>
62105
62106         Avoid a configure-time syntax error in gl_FUNC_ACL.
62107         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
62108         function in each branch, before testing the cache variable.
62109
62110 2007-12-04  Eric Blake  <ebb9@byu.net>
62111
62112         Make scripts executable.
62113         * build-aux/config.guess: Add execute permissions.
62114         * build-aux/config.sub: Likewise.
62115         * build-aux/gendocs.sh: Likewise.
62116
62117         Fix frexp on mingw.
62118         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
62119         cross-compiling.
62120         * doc/functions/frexp.texi (frexp): Document the bug.
62121
62122         Make cygwin fseeko check more reliable.
62123         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
62124         version numbers, rather than unrelated feature check.
62125         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
62126         * doc/functions/ftello.texi (ftello): Likewise.
62127         Reported by Bruno Haible.
62128
62129         * m4/strerror.m4: Bump version number.
62130
62131 2007-12-03  Bruno Haible  <bruno@clisp.org>
62132
62133         * doc/functions/mprotect.texi: Mention the mingw problem.
62134
62135 2007-12-03  Eric Blake  <ebb9@byu.net>
62136
62137         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
62138         REPLACE_STRERROR is initialized before this macro.
62139
62140 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62141
62142         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
62143         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
62144         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
62145         put -lsec in even for programs other than 'ls'.  This fixes a problem
62146         for gettext reported by Bruno Haible in
62147         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
62148         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
62149         Add support for Solaris 10.  This isn't efficient, but should get the
62150         job done for now.
62151
62152 2007-12-03  James Youngman  <jay@gnu.org>
62153
62154         * doc/regexprops-generic.texi: change "an close-group" to "a
62155         close-group" and "illegal" to "not allowed".
62156
62157 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62158
62159         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
62160         pr_byname.h. Needed for the rare case when the maintainer has done
62161         "make maintainer-clean" in the source directory and then attempts a
62162         build outside the source directory.
62163         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
62164         scripts_byname.h.
62165
62166 2007-12-02  Martin Lambers <marlam@marlam.de>
62167             Bruno Haible  <bruno@clisp.org>
62168
62169         * lib/getpagesize.h: Remove file.
62170         * lib/unistd.in.h: Include declaration of getpagesize here.
62171         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
62172         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
62173         HAVE_SYS_PARAM_H.
62174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
62175         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62176         * modules/getpagesize (Files): Remove lib/getpagesize.h.
62177         (Depends-on): Add unistd.
62178         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62179         (Include): Use <unistd.h> instead of getpagesize.h.
62180         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
62181         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62182         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
62183         gl_GETPAGESIZE invocation, already handled by module dependency.
62184         * lib/pagealign_alloc.c: Don't include getpagesize.h.
62185
62186 2007-12-02  Bruno Haible  <bruno@clisp.org>
62187
62188         * modules/strings-tests: New file.
62189         * tests/test-strings.c: New file.
62190
62191         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
62192         * lib/strings.in.h: New file.
62193         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
62194         * m4/strings_h.m4: New file.
62195         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
62196         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
62197         * modules/strings: New file.
62198         * modules/string (Makefile.am): Update.
62199         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
62200         Reported by Karl Berry.
62201
62202 2007-12-01  Eric Blake  <ebb9@byu.net>
62203
62204         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
62205         accommodate fix in cygwin 1.5.25.
62206
62207 2007-12-01  Jim Meyering  <meyering@redhat.com>
62208
62209         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
62210         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
62211         that would inhibit utf8-optimization of a regexp containing line-
62212         or buffer-anchors, e.g., `^', `$'.
62213
62214 2007-11-30  Bruno Haible  <bruno@clisp.org>
62215
62216         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
62217         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
62218         glthread_recursive_lock_init.
62219         * lib/lock.c (glthread_recursive_lock_init)
62220         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
62221         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62222
62223 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
62224
62225         New function qset_acl, like set_acl but with syscall semantics.
62226         * lib/acl.h (qset_acl): New decl.
62227         * lib/acl.c (qset_acl): New function.
62228         (set_acl): Use new function.  Use more-consistent diagnostics.
62229
62230 2007-11-28  Jim Meyering  <meyering@redhat.com>
62231
62232         * modules/physmem (License): Change from GPL to LGPLv2+.
62233
62234 2007-11-26  Bruno Haible  <bruno@clisp.org>
62235
62236         * lib/vasnprintf.c (decode_long_double): Don't abort if the
62237         'long double' type has excess precision.
62238         Reported by Jim Meyering in
62239         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
62240
62241 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62242
62243         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
62244         Sync from <http://gnu.org/licenses>.
62245         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
62246         with license text from same location.
62247         * doc/maintain.texi, doc/standards.texi:  Sync from
62248         <http://savannah.gnu.org/projects/gnustandards>.
62249
62250 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
62251         and Jim Meyering  <meyering@redhat.com>
62252
62253         Adjust getdate' grammar to accept a slightly more regular language.
62254         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
62255         Before, the former was rejected.
62256         * lib/getdate.y (digits_to_date_time): New function, factored
62257         out of ...
62258         (number): ...here.  Just call digits_to_date_time.
62259         (hybrid): New non-terminal to handle an <unsigned number,
62260         signed relative offset> sequence consistently.
62261
62262 2007-11-18  Jim Meyering  <meyering@redhat.com>
62263
62264         Pull my changes from coreutils:
62265         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
62266         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
62267         use of $gnulib_tool_option_extras, so that it's separated from the
62268         preceding argument.
62269
62270         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
62271         * build-aux/bootstrap (cp_mark_as_generated): Create any required
62272         parent destination directories before copying a file into place.
62273
62274 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62275
62276         bootstrap: work also with 4-argument variant of AC_INIT
62277         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
62278
62279 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62280
62281         Port test-getaddrinfo to Solaris.
62282         Problem reported by Bruno Haible in
62283         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
62284         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
62285         explanation of setting 'hints'.
62286         Don't reject an implementation merely because it returns EAI_SERVICE.
62287         (EAI_SERVICE): Define to 0 if not defined.
62288
62289 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62290
62291         The license of gnu-make and posix-shell is now "GPLed build tool".
62292         * modules/gnu-make (License): Likewise.
62293         * modules/posix-shell (License): Likewise.
62294
62295         New module posix-shell, for determining a POSIX shell
62296         or perhaps something that is close enough to a POSIX shell.
62297         * m4/posix-shell.m4: New file.
62298         * modules/posix-shell: New file.
62299
62300         * MODULES.html.sh: Mention new module.
62301
62302         New module gnu-make, for determining whether we're using GNU Make.
62303         * m4/gnu-make.m4: New file.
62304         * modules/gnu-make: New file.
62305         * MODULES.html.sh: Mention new module.
62306
62307 2007-11-14  Jim Meyering  <meyering@redhat.com>
62308
62309         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
62310         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
62311         use this macro to create a function _definition_.
62312         Remove useless "#undef ARGMATCH_DIE".
62313
62314 2007-11-14  Bruno Haible  <bruno@clisp.org>
62315
62316         * lib/config.charset: Update for OpenBSD 4.1.
62317         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
62318
62319 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
62320
62321         Document 64-bit #if problems in stdint.texi.
62322         * doc/headers/stdint.texi (stdint.h): Mention problems with
62323         64-bit-#if, and how to work around them.
62324
62325         Don't insist on 'long long int' support in the preprocessor.  It
62326         breaks too many things.  For example, PRIdMAX still uses a 'long
62327         long int' format with the latest Sun compiler, even though
62328         HAVE_LONG_LONG_INT isn't defined due to that compiler's
62329         preprocessor problem.  This causes the latest coreutils to dump
62330         core on Solaris 10 sparc with the Sun C compiler.
62331         Instead, fix the 2007-10-16 problem in a different way, by evaluating
62332         the troublesome expressions at configure-time, not at #if-time.
62333         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
62334         preprocessor.
62335         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
62336         compile-time C checks, done at 'configure'-time.
62337         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
62338         * modules/inttypes (Makefile): Substitute the new symbols that
62339         gl_INTTYPES_H now generates.
62340         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
62341
62342 2007-11-12  Bruno Haible  <bruno@clisp.org>
62343
62344         Tests for Unicode character classification functions.
62345
62346         * modules/unictype/bidicategory-byname-tests: New file.
62347         * modules/unictype/bidicategory-name-tests: New file.
62348         * modules/unictype/bidicategory-of-tests: New file.
62349         * modules/unictype/bidicategory-test-tests: New file.
62350         * modules/unictype/block-list-tests: New file.
62351         * modules/unictype/block-of-tests: New file.
62352         * modules/unictype/block-test-tests: New file.
62353         * modules/unictype/category-C-tests: New file.
62354         * modules/unictype/category-Cc-tests: New file.
62355         * modules/unictype/category-Cf-tests: New file.
62356         * modules/unictype/category-Cn-tests: New file.
62357         * modules/unictype/category-Co-tests: New file.
62358         * modules/unictype/category-Cs-tests: New file.
62359         * modules/unictype/category-L-tests: New file.
62360         * modules/unictype/category-Ll-tests: New file.
62361         * modules/unictype/category-Lm-tests: New file.
62362         * modules/unictype/category-Lo-tests: New file.
62363         * modules/unictype/category-Lt-tests: New file.
62364         * modules/unictype/category-Lu-tests: New file.
62365         * modules/unictype/category-M-tests: New file.
62366         * modules/unictype/category-Mc-tests: New file.
62367         * modules/unictype/category-Me-tests: New file.
62368         * modules/unictype/category-Mn-tests: New file.
62369         * modules/unictype/category-N-tests: New file.
62370         * modules/unictype/category-Nd-tests: New file.
62371         * modules/unictype/category-Nl-tests: New file.
62372         * modules/unictype/category-No-tests: New file.
62373         * modules/unictype/category-P-tests: New file.
62374         * modules/unictype/category-Pc-tests: New file.
62375         * modules/unictype/category-Pd-tests: New file.
62376         * modules/unictype/category-Pe-tests: New file.
62377         * modules/unictype/category-Pf-tests: New file.
62378         * modules/unictype/category-Pi-tests: New file.
62379         * modules/unictype/category-Po-tests: New file.
62380         * modules/unictype/category-Ps-tests: New file.
62381         * modules/unictype/category-S-tests: New file.
62382         * modules/unictype/category-Sc-tests: New file.
62383         * modules/unictype/category-Sk-tests: New file.
62384         * modules/unictype/category-Sm-tests: New file.
62385         * modules/unictype/category-So-tests: New file.
62386         * modules/unictype/category-Z-tests: New file.
62387         * modules/unictype/category-Zl-tests: New file.
62388         * modules/unictype/category-Zp-tests: New file.
62389         * modules/unictype/category-Zs-tests: New file.
62390         * modules/unictype/category-and-not-tests: New file.
62391         * modules/unictype/category-and-tests: New file.
62392         * modules/unictype/category-byname-tests: New file.
62393         * modules/unictype/category-name-tests: New file.
62394         * modules/unictype/category-none-tests: New file.
62395         * modules/unictype/category-of-tests: New file.
62396         * modules/unictype/category-or-tests: New file.
62397         * modules/unictype/category-test-withtable-tests: New file.
62398         * modules/unictype/combining-class-tests: New file.
62399         * modules/unictype/ctype-alnum-tests: New file.
62400         * modules/unictype/ctype-alpha-tests: New file.
62401         * modules/unictype/ctype-blank-tests: New file.
62402         * modules/unictype/ctype-cntrl-tests: New file.
62403         * modules/unictype/ctype-digit-tests: New file.
62404         * modules/unictype/ctype-graph-tests: New file.
62405         * modules/unictype/ctype-lower-tests: New file.
62406         * modules/unictype/ctype-print-tests: New file.
62407         * modules/unictype/ctype-punct-tests: New file.
62408         * modules/unictype/ctype-space-tests: New file.
62409         * modules/unictype/ctype-upper-tests: New file.
62410         * modules/unictype/ctype-xdigit-tests: New file.
62411         * modules/unictype/decimal-digit-tests: New file.
62412         * modules/unictype/digit-tests: New file.
62413         * modules/unictype/mirror-tests: New file.
62414         * modules/unictype/numeric-tests: New file.
62415         * modules/unictype/property-alphabetic-tests: New file.
62416         * modules/unictype/property-ascii-hex-digit-tests: New file.
62417         * modules/unictype/property-bidi-arabic-digit-tests: New file.
62418         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
62419         * modules/unictype/property-bidi-block-separator-tests: New file.
62420         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
62421         * modules/unictype/property-bidi-common-separator-tests: New file.
62422         * modules/unictype/property-bidi-control-tests: New file.
62423         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
62424         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
62425         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
62426         * modules/unictype/property-bidi-european-digit-tests: New file.
62427         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
62428         * modules/unictype/property-bidi-left-to-right-tests: New file.
62429         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
62430         * modules/unictype/property-bidi-other-neutral-tests: New file.
62431         * modules/unictype/property-bidi-pdf-tests: New file.
62432         * modules/unictype/property-bidi-segment-separator-tests: New file.
62433         * modules/unictype/property-bidi-whitespace-tests: New file.
62434         * modules/unictype/property-byname-tests: New file.
62435         * modules/unictype/property-combining-tests: New file.
62436         * modules/unictype/property-composite-tests: New file.
62437         * modules/unictype/property-currency-symbol-tests: New file.
62438         * modules/unictype/property-dash-tests: New file.
62439         * modules/unictype/property-decimal-digit-tests: New file.
62440         * modules/unictype/property-default-ignorable-code-point-tests: New file.
62441         * modules/unictype/property-deprecated-tests: New file.
62442         * modules/unictype/property-diacritic-tests: New file.
62443         * modules/unictype/property-extender-tests: New file.
62444         * modules/unictype/property-format-control-tests: New file.
62445         * modules/unictype/property-grapheme-base-tests: New file.
62446         * modules/unictype/property-grapheme-extend-tests: New file.
62447         * modules/unictype/property-grapheme-link-tests: New file.
62448         * modules/unictype/property-hex-digit-tests: New file.
62449         * modules/unictype/property-hyphen-tests: New file.
62450         * modules/unictype/property-id-continue-tests: New file.
62451         * modules/unictype/property-id-start-tests: New file.
62452         * modules/unictype/property-ideographic-tests: New file.
62453         * modules/unictype/property-ids-binary-operator-tests: New file.
62454         * modules/unictype/property-ids-trinary-operator-tests: New file.
62455         * modules/unictype/property-ignorable-control-tests: New file.
62456         * modules/unictype/property-iso-control-tests: New file.
62457         * modules/unictype/property-join-control-tests: New file.
62458         * modules/unictype/property-left-of-pair-tests: New file.
62459         * modules/unictype/property-line-separator-tests: New file.
62460         * modules/unictype/property-logical-order-exception-tests: New file.
62461         * modules/unictype/property-lowercase-tests: New file.
62462         * modules/unictype/property-math-tests: New file.
62463         * modules/unictype/property-non-break-tests: New file.
62464         * modules/unictype/property-not-a-character-tests: New file.
62465         * modules/unictype/property-numeric-tests: New file.
62466         * modules/unictype/property-other-alphabetic-tests: New file.
62467         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
62468         * modules/unictype/property-other-grapheme-extend-tests: New file.
62469         * modules/unictype/property-other-id-continue-tests: New file.
62470         * modules/unictype/property-other-id-start-tests: New file.
62471         * modules/unictype/property-other-lowercase-tests: New file.
62472         * modules/unictype/property-other-math-tests: New file.
62473         * modules/unictype/property-other-uppercase-tests: New file.
62474         * modules/unictype/property-paired-punctuation-tests: New file.
62475         * modules/unictype/property-paragraph-separator-tests: New file.
62476         * modules/unictype/property-pattern-syntax-tests: New file.
62477         * modules/unictype/property-pattern-white-space-tests: New file.
62478         * modules/unictype/property-private-use-tests: New file.
62479         * modules/unictype/property-punctuation-tests: New file.
62480         * modules/unictype/property-quotation-mark-tests: New file.
62481         * modules/unictype/property-radical-tests: New file.
62482         * modules/unictype/property-sentence-terminal-tests: New file.
62483         * modules/unictype/property-soft-dotted-tests: New file.
62484         * modules/unictype/property-space-tests: New file.
62485         * modules/unictype/property-terminal-punctuation-tests: New file.
62486         * modules/unictype/property-test-tests: New file.
62487         * modules/unictype/property-titlecase-tests: New file.
62488         * modules/unictype/property-unassigned-code-value-tests: New file.
62489         * modules/unictype/property-unified-ideograph-tests: New file.
62490         * modules/unictype/property-uppercase-tests: New file.
62491         * modules/unictype/property-variation-selector-tests: New file.
62492         * modules/unictype/property-white-space-tests: New file.
62493         * modules/unictype/property-xid-continue-tests: New file.
62494         * modules/unictype/property-xid-start-tests: New file.
62495         * modules/unictype/property-zero-width-tests: New file.
62496         * modules/unictype/scripts-tests: New file.
62497         * modules/unictype/syntax-c-ident-tests: New file.
62498         * modules/unictype/syntax-c-whitespace-tests: New file.
62499         * modules/unictype/syntax-java-ident-tests: New file.
62500         * modules/unictype/syntax-java-whitespace-tests: New file.
62501         * tests/unictype/test-bidi_byname.c: New file.
62502         * tests/unictype/test-bidi_name.c: New file.
62503         * tests/unictype/test-bidi_of.c: New file.
62504         * tests/unictype/test-bidi_test.c: New file.
62505         * tests/unictype/test-block_list.c: New file.
62506         * tests/unictype/test-block_of.c: New file.
62507         * tests/unictype/test-block_test.c: New file.
62508         * tests/unictype/test-categ_and.c: New file.
62509         * tests/unictype/test-categ_and_not.c: New file.
62510         * tests/unictype/test-categ_byname.c: New file.
62511         * tests/unictype/test-categ_name.c: New file.
62512         * tests/unictype/test-categ_none.c: New file.
62513         * tests/unictype/test-categ_of.c: New file.
62514         * tests/unictype/test-categ_or.c: New file.
62515         * tests/unictype/test-categ_test_withtable.c: New file.
62516         * tests/unictype/test-combining.c: New file.
62517         * tests/unictype/test-decdigit.c: New file.
62518         * tests/unictype/test-digit.c: New file.
62519         * tests/unictype/test-mirror.c: New file.
62520         * tests/unictype/test-numeric.c: New file.
62521         * tests/unictype/test-pr_byname.c: New file.
62522         * tests/unictype/test-pr_test.c: New file.
62523         * tests/unictype/test-predicate-part1.h: New file.
62524         * tests/unictype/test-predicate-part2.h: New file.
62525         * tests/unictype/test-scripts.c: New file.
62526         * tests/unictype/test-sy_c_ident.c: New file.
62527         * tests/unictype/test-sy_java_ident.c: New file.
62528
62529         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
62530         for Unicode 5.0.0.
62531         * tests/unictype/test-categ_Cc.c: Likewise.
62532         * tests/unictype/test-categ_Cf.c: Likewise.
62533         * tests/unictype/test-categ_Cn.c: Likewise.
62534         * tests/unictype/test-categ_Co.c: Likewise.
62535         * tests/unictype/test-categ_Cs.c: Likewise.
62536         * tests/unictype/test-categ_L.c: Likewise.
62537         * tests/unictype/test-categ_Ll.c: Likewise.
62538         * tests/unictype/test-categ_Lm.c: Likewise.
62539         * tests/unictype/test-categ_Lo.c: Likewise.
62540         * tests/unictype/test-categ_Lt.c: Likewise.
62541         * tests/unictype/test-categ_Lu.c: Likewise.
62542         * tests/unictype/test-categ_M.c: Likewise.
62543         * tests/unictype/test-categ_Mc.c: Likewise.
62544         * tests/unictype/test-categ_Me.c: Likewise.
62545         * tests/unictype/test-categ_Mn.c: Likewise.
62546         * tests/unictype/test-categ_N.c: Likewise.
62547         * tests/unictype/test-categ_Nd.c: Likewise.
62548         * tests/unictype/test-categ_Nl.c: Likewise.
62549         * tests/unictype/test-categ_No.c: Likewise.
62550         * tests/unictype/test-categ_P.c: Likewise.
62551         * tests/unictype/test-categ_Pc.c: Likewise.
62552         * tests/unictype/test-categ_Pd.c: Likewise.
62553         * tests/unictype/test-categ_Pe.c: Likewise.
62554         * tests/unictype/test-categ_Pf.c: Likewise.
62555         * tests/unictype/test-categ_Pi.c: Likewise.
62556         * tests/unictype/test-categ_Po.c: Likewise.
62557         * tests/unictype/test-categ_Ps.c: Likewise.
62558         * tests/unictype/test-categ_S.c: Likewise.
62559         * tests/unictype/test-categ_Sc.c: Likewise.
62560         * tests/unictype/test-categ_Sk.c: Likewise.
62561         * tests/unictype/test-categ_Sm.c: Likewise.
62562         * tests/unictype/test-categ_So.c: Likewise.
62563         * tests/unictype/test-categ_Z.c: Likewise.
62564         * tests/unictype/test-categ_Zl.c: Likewise.
62565         * tests/unictype/test-categ_Zp.c: Likewise.
62566         * tests/unictype/test-categ_Zs.c: Likewise.
62567         * tests/unictype/test-ctype_alnum.c: Likewise.
62568         * tests/unictype/test-ctype_alpha.c: Likewise.
62569         * tests/unictype/test-ctype_blank.c: Likewise.
62570         * tests/unictype/test-ctype_cntrl.c: Likewise.
62571         * tests/unictype/test-ctype_digit.c: Likewise.
62572         * tests/unictype/test-ctype_graph.c: Likewise.
62573         * tests/unictype/test-ctype_lower.c: Likewise.
62574         * tests/unictype/test-ctype_print.c: Likewise.
62575         * tests/unictype/test-ctype_punct.c: Likewise.
62576         * tests/unictype/test-ctype_space.c: Likewise.
62577         * tests/unictype/test-ctype_upper.c: Likewise.
62578         * tests/unictype/test-ctype_xdigit.c: Likewise.
62579         * tests/unictype/test-decdigit.h: Likewise.
62580         * tests/unictype/test-digit.h: Likewise.
62581         * tests/unictype/test-numeric.h: Likewise.
62582         * tests/unictype/test-pr_alphabetic.c: Likewise.
62583         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
62584         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
62585         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
62586         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
62587         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
62588         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
62589         * tests/unictype/test-pr_bidi_control.c: Likewise.
62590         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
62591         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
62592         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
62593         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
62594         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
62595         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
62596         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
62597         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
62598         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
62599         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
62600         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
62601         * tests/unictype/test-pr_combining.c: Likewise.
62602         * tests/unictype/test-pr_composite.c: Likewise.
62603         * tests/unictype/test-pr_currency_symbol.c: Likewise.
62604         * tests/unictype/test-pr_dash.c: Likewise.
62605         * tests/unictype/test-pr_decimal_digit.c: Likewise.
62606         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
62607         * tests/unictype/test-pr_deprecated.c: Likewise.
62608         * tests/unictype/test-pr_diacritic.c: Likewise.
62609         * tests/unictype/test-pr_extender.c: Likewise.
62610         * tests/unictype/test-pr_format_control.c: Likewise.
62611         * tests/unictype/test-pr_grapheme_base.c: Likewise.
62612         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
62613         * tests/unictype/test-pr_grapheme_link.c: Likewise.
62614         * tests/unictype/test-pr_hex_digit.c: Likewise.
62615         * tests/unictype/test-pr_hyphen.c: Likewise.
62616         * tests/unictype/test-pr_id_continue.c: Likewise.
62617         * tests/unictype/test-pr_id_start.c: Likewise.
62618         * tests/unictype/test-pr_ideographic.c: Likewise.
62619         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
62620         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
62621         * tests/unictype/test-pr_ignorable_control.c: Likewise.
62622         * tests/unictype/test-pr_iso_control.c: Likewise.
62623         * tests/unictype/test-pr_join_control.c: Likewise.
62624         * tests/unictype/test-pr_left_of_pair.c: Likewise.
62625         * tests/unictype/test-pr_line_separator.c: Likewise.
62626         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
62627         * tests/unictype/test-pr_lowercase.c: Likewise.
62628         * tests/unictype/test-pr_math.c: Likewise.
62629         * tests/unictype/test-pr_non_break.c: Likewise.
62630         * tests/unictype/test-pr_not_a_character.c: Likewise.
62631         * tests/unictype/test-pr_numeric.c: Likewise.
62632         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
62633         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
62634         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
62635         * tests/unictype/test-pr_other_id_continue.c: Likewise.
62636         * tests/unictype/test-pr_other_id_start.c: Likewise.
62637         * tests/unictype/test-pr_other_lowercase.c: Likewise.
62638         * tests/unictype/test-pr_other_math.c: Likewise.
62639         * tests/unictype/test-pr_other_uppercase.c: Likewise.
62640         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
62641         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
62642         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
62643         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
62644         * tests/unictype/test-pr_private_use.c: Likewise.
62645         * tests/unictype/test-pr_punctuation.c: Likewise.
62646         * tests/unictype/test-pr_quotation_mark.c: Likewise.
62647         * tests/unictype/test-pr_radical.c: Likewise.
62648         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
62649         * tests/unictype/test-pr_soft_dotted.c: Likewise.
62650         * tests/unictype/test-pr_space.c: Likewise.
62651         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
62652         * tests/unictype/test-pr_titlecase.c: Likewise.
62653         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
62654         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
62655         * tests/unictype/test-pr_uppercase.c: Likewise.
62656         * tests/unictype/test-pr_variation_selector.c: Likewise.
62657         * tests/unictype/test-pr_white_space.c: Likewise.
62658         * tests/unictype/test-pr_xid_continue.c: Likewise.
62659         * tests/unictype/test-pr_xid_start.c: Likewise.
62660         * tests/unictype/test-pr_zero_width.c: Likewise.
62661         * tests/unictype/test-sy_c_whitespace.c: Likewise.
62662         * tests/unictype/test-sy_java_whitespace.c: Likewise.
62663
62664 2007-11-12  Bruno Haible  <bruno@clisp.org>
62665
62666         Unicode character classification functions.
62667         * lib/unictype.h: New file.
62668         * modules/unictype/base: New file.
62669         * modules/unictype/category-L: New file.
62670         * modules/unictype/category-Lu: New file.
62671         * modules/unictype/category-Ll: New file.
62672         * modules/unictype/category-Lt: New file.
62673         * modules/unictype/category-Lm: New file.
62674         * modules/unictype/category-Lo: New file.
62675         * modules/unictype/category-M: New file.
62676         * modules/unictype/category-Mn: New file.
62677         * modules/unictype/category-Mc: New file.
62678         * modules/unictype/category-Me: New file.
62679         * modules/unictype/category-N: New file.
62680         * modules/unictype/category-Nd: New file.
62681         * modules/unictype/category-Nl: New file.
62682         * modules/unictype/category-No: New file.
62683         * modules/unictype/category-P: New file.
62684         * modules/unictype/category-Pc: New file.
62685         * modules/unictype/category-Pd: New file.
62686         * modules/unictype/category-Ps: New file.
62687         * modules/unictype/category-Pe: New file.
62688         * modules/unictype/category-Pi: New file.
62689         * modules/unictype/category-Pf: New file.
62690         * modules/unictype/category-Po: New file.
62691         * modules/unictype/category-S: New file.
62692         * modules/unictype/category-Sm: New file.
62693         * modules/unictype/category-Sc: New file.
62694         * modules/unictype/category-Sk: New file.
62695         * modules/unictype/category-So: New file.
62696         * modules/unictype/category-Z: New file.
62697         * modules/unictype/category-Zs: New file.
62698         * modules/unictype/category-Zl: New file.
62699         * modules/unictype/category-Zp: New file.
62700         * modules/unictype/category-C: New file.
62701         * modules/unictype/category-Cc: New file.
62702         * modules/unictype/category-Cf: New file.
62703         * modules/unictype/category-Cs: New file.
62704         * modules/unictype/category-Co: New file.
62705         * modules/unictype/category-Cn: New file.
62706         * modules/unictype/category-or: New file.
62707         * modules/unictype/category-of: New file.
62708         * modules/unictype/category-test: New file.
62709         * modules/unictype/category-test-withtable: New file.
62710         * modules/unictype/category-byname: New file.
62711         * modules/unictype/category-none: New file.
62712         * modules/unictype/category-and: New file.
62713         * modules/unictype/category-and-not: New file.
62714         * modules/unictype/category-name: New file.
62715         * modules/unictype/combining-class: New file.
62716         * modules/unictype/category-all: New file.
62717         * modules/unictype/bidicategory-all: New file.
62718         * modules/unictype/bidicategory-byname: New file.
62719         * modules/unictype/bidicategory-name: New file.
62720         * modules/unictype/bidicategory-of: New file.
62721         * modules/unictype/bidicategory-test: New file.
62722         * modules/unictype/decimal-digit: New file.
62723         * modules/unictype/digit: New file.
62724         * modules/unictype/numeric: New file.
62725         * modules/unictype/mirror: New file.
62726         * modules/unictype/property-white-space: New file.
62727         * modules/unictype/property-alphabetic: New file.
62728         * modules/unictype/property-other-alphabetic: New file.
62729         * modules/unictype/property-not-a-character: New file.
62730         * modules/unictype/property-default-ignorable-code-point: New file.
62731         * modules/unictype/property-other-default-ignorable-code-point: New
62732         file.
62733         * modules/unictype/property-deprecated: New file.
62734         * modules/unictype/property-logical-order-exception: New file.
62735         * modules/unictype/property-variation-selector: New file.
62736         * modules/unictype/property-private-use: New file.
62737         * modules/unictype/property-unassigned-code-value: New file.
62738         * modules/unictype/property-uppercase: New file.
62739         * modules/unictype/property-other-uppercase: New file.
62740         * modules/unictype/property-lowercase: New file.
62741         * modules/unictype/property-other-lowercase: New file.
62742         * modules/unictype/property-titlecase: New file.
62743         * modules/unictype/property-soft-dotted: New file.
62744         * modules/unictype/property-id-start: New file.
62745         * modules/unictype/property-other-id-start: New file.
62746         * modules/unictype/property-id-continue: New file.
62747         * modules/unictype/property-other-id-continue: New file.
62748         * modules/unictype/property-xid-start: New file.
62749         * modules/unictype/property-xid-continue: New file.
62750         * modules/unictype/property-pattern-white-space: New file.
62751         * modules/unictype/property-pattern-syntax: New file.
62752         * modules/unictype/property-join-control: New file.
62753         * modules/unictype/property-grapheme-base: New file.
62754         * modules/unictype/property-grapheme-extend: New file.
62755         * modules/unictype/property-other-grapheme-extend: New file.
62756         * modules/unictype/property-grapheme-link: New file.
62757         * modules/unictype/property-bidi-control: New file.
62758         * modules/unictype/property-bidi-left-to-right: New file.
62759         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
62760         * modules/unictype/property-bidi-arabic-right-to-left: New file.
62761         * modules/unictype/property-bidi-european-digit: New file.
62762         * modules/unictype/property-bidi-eur-num-separator: New file.
62763         * modules/unictype/property-bidi-eur-num-terminator: New file.
62764         * modules/unictype/property-bidi-arabic-digit: New file.
62765         * modules/unictype/property-bidi-common-separator: New file.
62766         * modules/unictype/property-bidi-block-separator: New file.
62767         * modules/unictype/property-bidi-segment-separator: New file.
62768         * modules/unictype/property-bidi-whitespace: New file.
62769         * modules/unictype/property-bidi-non-spacing-mark: New file.
62770         * modules/unictype/property-bidi-boundary-neutral: New file.
62771         * modules/unictype/property-bidi-pdf: New file.
62772         * modules/unictype/property-bidi-embedding-or-override: New file.
62773         * modules/unictype/property-bidi-other-neutral: New file.
62774         * modules/unictype/property-hex-digit: New file.
62775         * modules/unictype/property-ascii-hex-digit: New file.
62776         * modules/unictype/property-ideographic: New file.
62777         * modules/unictype/property-unified-ideograph: New file.
62778         * modules/unictype/property-radical: New file.
62779         * modules/unictype/property-ids-binary-operator: New file.
62780         * modules/unictype/property-ids-trinary-operator: New file.
62781         * modules/unictype/property-zero-width: New file.
62782         * modules/unictype/property-space: New file.
62783         * modules/unictype/property-non-break: New file.
62784         * modules/unictype/property-iso-control: New file.
62785         * modules/unictype/property-format-control: New file.
62786         * modules/unictype/property-dash: New file.
62787         * modules/unictype/property-hyphen: New file.
62788         * modules/unictype/property-punctuation: New file.
62789         * modules/unictype/property-line-separator: New file.
62790         * modules/unictype/property-paragraph-separator: New file.
62791         * modules/unictype/property-quotation-mark: New file.
62792         * modules/unictype/property-sentence-terminal: New file.
62793         * modules/unictype/property-terminal-punctuation: New file.
62794         * modules/unictype/property-currency-symbol: New file.
62795         * modules/unictype/property-math: New file.
62796         * modules/unictype/property-other-math: New file.
62797         * modules/unictype/property-paired-punctuation: New file.
62798         * modules/unictype/property-left-of-pair: New file.
62799         * modules/unictype/property-combining: New file.
62800         * modules/unictype/property-composite: New file.
62801         * modules/unictype/property-decimal-digit: New file.
62802         * modules/unictype/property-numeric: New file.
62803         * modules/unictype/property-diacritic: New file.
62804         * modules/unictype/property-extender: New file.
62805         * modules/unictype/property-ignorable-control: New file.
62806         * modules/unictype/property-test: New file.
62807         * modules/unictype/property-byname: New file.
62808         * modules/unictype/property-all: New file.
62809         * modules/unictype/scripts: New file.
62810         * modules/unictype/scripts-all: New file.
62811         * modules/unictype/block-of: New file.
62812         * modules/unictype/block-test: New file.
62813         * modules/unictype/block-list: New file.
62814         * modules/unictype/block-all: New file.
62815         * modules/unictype/syntax-c-whitespace: New file.
62816         * modules/unictype/syntax-java-whitespace: New file.
62817         * modules/unictype/syntax-c-ident: New file.
62818         * modules/unictype/syntax-java-ident: New file.
62819         * modules/unictype/ctype-alnum: New file.
62820         * modules/unictype/ctype-alpha: New file.
62821         * modules/unictype/ctype-cntrl: New file.
62822         * modules/unictype/ctype-digit: New file.
62823         * modules/unictype/ctype-graph: New file.
62824         * modules/unictype/ctype-lower: New file.
62825         * modules/unictype/ctype-print: New file.
62826         * modules/unictype/ctype-punct: New file.
62827         * modules/unictype/ctype-space: New file.
62828         * modules/unictype/ctype-upper: New file.
62829         * modules/unictype/ctype-xdigit: New file.
62830         * modules/unictype/ctype-blank: New file.
62831         * lib/unictype/bidi_byname.c: New file.
62832         * lib/unictype/bidi_name.c: New file.
62833         * lib/unictype/bidi_of.c: New file.
62834         * lib/unictype/bidi_test.c: New file.
62835         * lib/unictype/bitmap.h: New file.
62836         * lib/unictype/block_test.c: New file.
62837         * lib/unictype/blocks.c: New file.
62838         * lib/unictype/categ_C.c: New file.
62839         * lib/unictype/categ_Cc.c: New file.
62840         * lib/unictype/categ_Cf.c: New file.
62841         * lib/unictype/categ_Cn.c: New file.
62842         * lib/unictype/categ_Co.c: New file.
62843         * lib/unictype/categ_Cs.c: New file.
62844         * lib/unictype/categ_L.c: New file.
62845         * lib/unictype/categ_Ll.c: New file.
62846         * lib/unictype/categ_Lm.c: New file.
62847         * lib/unictype/categ_Lo.c: New file.
62848         * lib/unictype/categ_Lt.c: New file.
62849         * lib/unictype/categ_Lu.c: New file.
62850         * lib/unictype/categ_M.c: New file.
62851         * lib/unictype/categ_Mc.c: New file.
62852         * lib/unictype/categ_Me.c: New file.
62853         * lib/unictype/categ_Mn.c: New file.
62854         * lib/unictype/categ_N.c: New file.
62855         * lib/unictype/categ_Nd.c: New file.
62856         * lib/unictype/categ_Nl.c: New file.
62857         * lib/unictype/categ_No.c: New file.
62858         * lib/unictype/categ_P.c: New file.
62859         * lib/unictype/categ_Pc.c: New file.
62860         * lib/unictype/categ_Pd.c: New file.
62861         * lib/unictype/categ_Pe.c: New file.
62862         * lib/unictype/categ_Pf.c: New file.
62863         * lib/unictype/categ_Pi.c: New file.
62864         * lib/unictype/categ_Po.c: New file.
62865         * lib/unictype/categ_Ps.c: New file.
62866         * lib/unictype/categ_S.c: New file.
62867         * lib/unictype/categ_Sc.c: New file.
62868         * lib/unictype/categ_Sk.c: New file.
62869         * lib/unictype/categ_Sm.c: New file.
62870         * lib/unictype/categ_So.c: New file.
62871         * lib/unictype/categ_Z.c: New file.
62872         * lib/unictype/categ_Zl.c: New file.
62873         * lib/unictype/categ_Zp.c: New file.
62874         * lib/unictype/categ_Zs.c: New file.
62875         * lib/unictype/categ_and.c: New file.
62876         * lib/unictype/categ_and_not.c: New file.
62877         * lib/unictype/categ_byname.c: New file.
62878         * lib/unictype/categ_name.c: New file.
62879         * lib/unictype/categ_none.c: New file.
62880         * lib/unictype/categ_of.c: New file.
62881         * lib/unictype/categ_or.c: New file.
62882         * lib/unictype/categ_test.c: New file.
62883         * lib/unictype/combining.c: New file.
62884         * lib/unictype/ctype_alnum.c: New file.
62885         * lib/unictype/ctype_alpha.c: New file.
62886         * lib/unictype/ctype_blank.c: New file.
62887         * lib/unictype/ctype_cntrl.c: New file.
62888         * lib/unictype/ctype_digit.c: New file.
62889         * lib/unictype/ctype_graph.c: New file.
62890         * lib/unictype/ctype_lower.c: New file.
62891         * lib/unictype/ctype_print.c: New file.
62892         * lib/unictype/ctype_punct.c: New file.
62893         * lib/unictype/ctype_space.c: New file.
62894         * lib/unictype/ctype_upper.c: New file.
62895         * lib/unictype/ctype_xdigit.c: New file.
62896         * lib/unictype/decdigit.c: New file.
62897         * lib/unictype/digit.c: New file.
62898         * lib/unictype/identsyntaxmap.h: New file.
62899         * lib/unictype/mirror.c: New file.
62900         * lib/unictype/numeric.c: New file.
62901         * lib/unictype/pr_alphabetic.c: New file.
62902         * lib/unictype/pr_ascii_hex_digit.c: New file.
62903         * lib/unictype/pr_bidi_arabic_digit.c: New file.
62904         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
62905         * lib/unictype/pr_bidi_block_separator.c: New file.
62906         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
62907         * lib/unictype/pr_bidi_common_separator.c: New file.
62908         * lib/unictype/pr_bidi_control.c: New file.
62909         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
62910         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
62911         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
62912         * lib/unictype/pr_bidi_european_digit.c: New file.
62913         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
62914         * lib/unictype/pr_bidi_left_to_right.c: New file.
62915         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
62916         * lib/unictype/pr_bidi_other_neutral.c: New file.
62917         * lib/unictype/pr_bidi_pdf.c: New file.
62918         * lib/unictype/pr_bidi_segment_separator.c: New file.
62919         * lib/unictype/pr_bidi_whitespace.c: New file.
62920         * lib/unictype/pr_byname.c: New file.
62921         * lib/unictype/pr_byname.gperf: New file.
62922         * lib/unictype/pr_combining.c: New file.
62923         * lib/unictype/pr_composite.c: New file.
62924         * lib/unictype/pr_currency_symbol.c: New file.
62925         * lib/unictype/pr_dash.c: New file.
62926         * lib/unictype/pr_decimal_digit.c: New file.
62927         * lib/unictype/pr_default_ignorable_code_point.c: New file.
62928         * lib/unictype/pr_deprecated.c: New file.
62929         * lib/unictype/pr_diacritic.c: New file.
62930         * lib/unictype/pr_extender.c: New file.
62931         * lib/unictype/pr_format_control.c: New file.
62932         * lib/unictype/pr_grapheme_base.c: New file.
62933         * lib/unictype/pr_grapheme_extend.c: New file.
62934         * lib/unictype/pr_grapheme_link.c: New file.
62935         * lib/unictype/pr_hex_digit.c: New file.
62936         * lib/unictype/pr_hyphen.c: New file.
62937         * lib/unictype/pr_id_continue.c: New file.
62938         * lib/unictype/pr_id_start.c: New file.
62939         * lib/unictype/pr_ideographic.c: New file.
62940         * lib/unictype/pr_ids_binary_operator.c: New file.
62941         * lib/unictype/pr_ids_trinary_operator.c: New file.
62942         * lib/unictype/pr_ignorable_control.c: New file.
62943         * lib/unictype/pr_iso_control.c: New file.
62944         * lib/unictype/pr_join_control.c: New file.
62945         * lib/unictype/pr_left_of_pair.c: New file.
62946         * lib/unictype/pr_line_separator.c: New file.
62947         * lib/unictype/pr_logical_order_exception.c: New file.
62948         * lib/unictype/pr_lowercase.c: New file.
62949         * lib/unictype/pr_math.c: New file.
62950         * lib/unictype/pr_non_break.c: New file.
62951         * lib/unictype/pr_not_a_character.c: New file.
62952         * lib/unictype/pr_numeric.c: New file.
62953         * lib/unictype/pr_other_alphabetic.c: New file.
62954         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
62955         * lib/unictype/pr_other_grapheme_extend.c: New file.
62956         * lib/unictype/pr_other_id_continue.c: New file.
62957         * lib/unictype/pr_other_id_start.c: New file.
62958         * lib/unictype/pr_other_lowercase.c: New file.
62959         * lib/unictype/pr_other_math.c: New file.
62960         * lib/unictype/pr_other_uppercase.c: New file.
62961         * lib/unictype/pr_paired_punctuation.c: New file.
62962         * lib/unictype/pr_paragraph_separator.c: New file.
62963         * lib/unictype/pr_pattern_syntax.c: New file.
62964         * lib/unictype/pr_pattern_white_space.c: New file.
62965         * lib/unictype/pr_private_use.c: New file.
62966         * lib/unictype/pr_punctuation.c: New file.
62967         * lib/unictype/pr_quotation_mark.c: New file.
62968         * lib/unictype/pr_radical.c: New file.
62969         * lib/unictype/pr_sentence_terminal.c: New file.
62970         * lib/unictype/pr_soft_dotted.c: New file.
62971         * lib/unictype/pr_space.c: New file.
62972         * lib/unictype/pr_terminal_punctuation.c: New file.
62973         * lib/unictype/pr_test.c: New file.
62974         * lib/unictype/pr_titlecase.c: New file.
62975         * lib/unictype/pr_unassigned_code_value.c: New file.
62976         * lib/unictype/pr_unified_ideograph.c: New file.
62977         * lib/unictype/pr_uppercase.c: New file.
62978         * lib/unictype/pr_variation_selector.c: New file.
62979         * lib/unictype/pr_white_space.c: New file.
62980         * lib/unictype/pr_xid_continue.c: New file.
62981         * lib/unictype/pr_xid_start.c: New file.
62982         * lib/unictype/pr_zero_width.c: New file.
62983         * lib/unictype/scripts.c: New file.
62984         * lib/unictype/sy_c_ident.c: New file.
62985         * lib/unictype/sy_c_whitespace.c: New file.
62986         * lib/unictype/sy_java_ident.c: New file.
62987         * lib/unictype/sy_java_whitespace.c: New file.
62988
62989         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
62990         Unicode 5.0.0.
62991         * lib/unictype/blocks.h: Likewise.
62992         * lib/unictype/categ_C.h: Likewise.
62993         * lib/unictype/categ_Cc.h: Likewise.
62994         * lib/unictype/categ_Cf.h: Likewise.
62995         * lib/unictype/categ_Cn.h: Likewise.
62996         * lib/unictype/categ_Co.h: Likewise.
62997         * lib/unictype/categ_Cs.h: Likewise.
62998         * lib/unictype/categ_L.h: Likewise.
62999         * lib/unictype/categ_Ll.h: Likewise.
63000         * lib/unictype/categ_Lm.h: Likewise.
63001         * lib/unictype/categ_Lo.h: Likewise.
63002         * lib/unictype/categ_Lt.h: Likewise.
63003         * lib/unictype/categ_Lu.h: Likewise.
63004         * lib/unictype/categ_M.h: Likewise.
63005         * lib/unictype/categ_Mc.h: Likewise.
63006         * lib/unictype/categ_Me.h: Likewise.
63007         * lib/unictype/categ_Mn.h: Likewise.
63008         * lib/unictype/categ_N.h: Likewise.
63009         * lib/unictype/categ_Nd.h: Likewise.
63010         * lib/unictype/categ_Nl.h: Likewise.
63011         * lib/unictype/categ_No.h: Likewise.
63012         * lib/unictype/categ_P.h: Likewise.
63013         * lib/unictype/categ_Pc.h: Likewise.
63014         * lib/unictype/categ_Pd.h: Likewise.
63015         * lib/unictype/categ_Pe.h: Likewise.
63016         * lib/unictype/categ_Pf.h: Likewise.
63017         * lib/unictype/categ_Pi.h: Likewise.
63018         * lib/unictype/categ_Po.h: Likewise.
63019         * lib/unictype/categ_Ps.h: Likewise.
63020         * lib/unictype/categ_S.h: Likewise.
63021         * lib/unictype/categ_Sc.h: Likewise.
63022         * lib/unictype/categ_Sk.h: Likewise.
63023         * lib/unictype/categ_Sm.h: Likewise.
63024         * lib/unictype/categ_So.h: Likewise.
63025         * lib/unictype/categ_Z.h: Likewise.
63026         * lib/unictype/categ_Zl.h: Likewise.
63027         * lib/unictype/categ_Zp.h: Likewise.
63028         * lib/unictype/categ_Zs.h: Likewise.
63029         * lib/unictype/categ_of.h: Likewise.
63030         * lib/unictype/combining.h: Likewise.
63031         * lib/unictype/ctype_alnum.h: Likewise.
63032         * lib/unictype/ctype_alpha.h: Likewise.
63033         * lib/unictype/ctype_blank.h: Likewise.
63034         * lib/unictype/ctype_cntrl.h: Likewise.
63035         * lib/unictype/ctype_digit.h: Likewise.
63036         * lib/unictype/ctype_graph.h: Likewise.
63037         * lib/unictype/ctype_lower.h: Likewise.
63038         * lib/unictype/ctype_print.h: Likewise.
63039         * lib/unictype/ctype_punct.h: Likewise.
63040         * lib/unictype/ctype_space.h: Likewise.
63041         * lib/unictype/ctype_upper.h: Likewise.
63042         * lib/unictype/ctype_xdigit.h: Likewise.
63043         * lib/unictype/decdigit.h: Likewise.
63044         * lib/unictype/digit.h: Likewise.
63045         * lib/unictype/mirror.h: Likewise.
63046         * lib/unictype/numeric.h: Likewise.
63047         * lib/unictype/pr_alphabetic.h: Likewise.
63048         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
63049         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
63050         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
63051         * lib/unictype/pr_bidi_block_separator.h: Likewise.
63052         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
63053         * lib/unictype/pr_bidi_common_separator.h: Likewise.
63054         * lib/unictype/pr_bidi_control.h: Likewise.
63055         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
63056         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
63057         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
63058         * lib/unictype/pr_bidi_european_digit.h: Likewise.
63059         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
63060         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
63061         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
63062         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
63063         * lib/unictype/pr_bidi_pdf.h: Likewise.
63064         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
63065         * lib/unictype/pr_bidi_whitespace.h: Likewise.
63066         * lib/unictype/pr_combining.h: Likewise.
63067         * lib/unictype/pr_composite.h: Likewise.
63068         * lib/unictype/pr_currency_symbol.h: Likewise.
63069         * lib/unictype/pr_dash.h: Likewise.
63070         * lib/unictype/pr_decimal_digit.h: Likewise.
63071         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
63072         * lib/unictype/pr_deprecated.h: Likewise.
63073         * lib/unictype/pr_diacritic.h: Likewise.
63074         * lib/unictype/pr_extender.h: Likewise.
63075         * lib/unictype/pr_format_control.h: Likewise.
63076         * lib/unictype/pr_grapheme_base.h: Likewise.
63077         * lib/unictype/pr_grapheme_extend.h: Likewise.
63078         * lib/unictype/pr_grapheme_link.h: Likewise.
63079         * lib/unictype/pr_hex_digit.h: Likewise.
63080         * lib/unictype/pr_hyphen.h: Likewise.
63081         * lib/unictype/pr_id_continue.h: Likewise.
63082         * lib/unictype/pr_id_start.h: Likewise.
63083         * lib/unictype/pr_ideographic.h: Likewise.
63084         * lib/unictype/pr_ids_binary_operator.h: Likewise.
63085         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
63086         * lib/unictype/pr_ignorable_control.h: Likewise.
63087         * lib/unictype/pr_iso_control.h: Likewise.
63088         * lib/unictype/pr_join_control.h: Likewise.
63089         * lib/unictype/pr_left_of_pair.h: Likewise.
63090         * lib/unictype/pr_line_separator.h: Likewise.
63091         * lib/unictype/pr_logical_order_exception.h: Likewise.
63092         * lib/unictype/pr_lowercase.h: Likewise.
63093         * lib/unictype/pr_math.h: Likewise.
63094         * lib/unictype/pr_non_break.h: Likewise.
63095         * lib/unictype/pr_not_a_character.h: Likewise.
63096         * lib/unictype/pr_numeric.h: Likewise.
63097         * lib/unictype/pr_other_alphabetic.h: Likewise.
63098         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
63099         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
63100         * lib/unictype/pr_other_id_continue.h: Likewise.
63101         * lib/unictype/pr_other_id_start.h: Likewise.
63102         * lib/unictype/pr_other_lowercase.h: Likewise.
63103         * lib/unictype/pr_other_math.h: Likewise.
63104         * lib/unictype/pr_other_uppercase.h: Likewise.
63105         * lib/unictype/pr_paired_punctuation.h: Likewise.
63106         * lib/unictype/pr_paragraph_separator.h: Likewise.
63107         * lib/unictype/pr_pattern_syntax.h: Likewise.
63108         * lib/unictype/pr_pattern_white_space.h: Likewise.
63109         * lib/unictype/pr_private_use.h: Likewise.
63110         * lib/unictype/pr_punctuation.h: Likewise.
63111         * lib/unictype/pr_quotation_mark.h: Likewise.
63112         * lib/unictype/pr_radical.h: Likewise.
63113         * lib/unictype/pr_sentence_terminal.h: Likewise.
63114         * lib/unictype/pr_soft_dotted.h: Likewise.
63115         * lib/unictype/pr_space.h: Likewise.
63116         * lib/unictype/pr_terminal_punctuation.h: Likewise.
63117         * lib/unictype/pr_titlecase.h: Likewise.
63118         * lib/unictype/pr_unassigned_code_value.h: Likewise.
63119         * lib/unictype/pr_unified_ideograph.h: Likewise.
63120         * lib/unictype/pr_uppercase.h: Likewise.
63121         * lib/unictype/pr_variation_selector.h: Likewise.
63122         * lib/unictype/pr_white_space.h: Likewise.
63123         * lib/unictype/pr_xid_continue.h: Likewise.
63124         * lib/unictype/pr_xid_start.h: Likewise.
63125         * lib/unictype/pr_zero_width.h: Likewise.
63126         * lib/unictype/scripts.h: Likewise.
63127         * lib/unictype/scripts_byname.gperf: Likewise.
63128         * lib/unictype/sy_c_ident.h: Likewise.
63129         * lib/unictype/sy_c_whitespace.h: Likewise.
63130         * lib/unictype/sy_java_ident.h: Likewise.
63131         * lib/unictype/sy_java_whitespace.h: Likewise.
63132
63133         * lib/unictype/Makefile: New file.
63134         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
63135         glibc.
63136         * lib/unictype/3level.h: New file, copied from glibc.
63137         * lib/unictype/3levelbit.h: New file.
63138
63139 2007-11-11  Bruno Haible  <bruno@clisp.org>
63140
63141         * modules/gperf: New file.
63142         * modules/iconv_open (Depends-on): Add it.
63143         (Makefile.am): Remove the GPERF definition.
63144
63145 2007-11-11  Bruno Haible  <bruno@clisp.org>
63146
63147         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
63148         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
63149
63150 2007-11-11  Bruno Haible  <bruno@clisp.org>
63151
63152         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
63153         (usage): Remove function.
63154
63155 2007-11-11  Bruno Haible  <bruno@clisp.org>
63156
63157         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
63158         gl_FUNC_CEILF_LIBS.
63159         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
63160         gl_FUNC_CEIL_LIBS.
63161         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
63162         gl_FUNC_CEILL_LIBS.
63163         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
63164         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
63165         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
63166
63167 2007-11-11  Bruno Haible  <bruno@clisp.org>
63168
63169         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
63170         roundf were declared but do not exist on functions.
63171         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
63172         roundl were declared but do not exist on functions.
63173         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
63174         HAVE_FLOORL_AND_CEILL, respectively.
63175         Needed for Sun C on Solaris 10.
63176
63177 2007-11-11  Bruno Haible  <bruno@clisp.org>
63178
63179         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
63180         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
63181         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
63182         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
63183         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
63184         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
63185         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
63186         HAVE_DECL_ROUNDF.
63187         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
63188         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
63189         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
63190         of HAVE_DECL_ROUND*.
63191         * modules/math (Makefile.am): Update.
63192
63193 2007-11-10  Bruno Haible  <bruno@clisp.org>
63194
63195         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
63196         ptrdiff_t as m4/intl.m4.
63197
63198 2007-11-10  Jim Meyering  <meyering@redhat.com>
63199
63200         Avoid link failure for the argmatch test.
63201         * tests/test-argmatch.c (usage): Define function to avoid a link
63202         failure: argmatch_die requires a usage function.
63203
63204 2007-11-09  Bruno Haible  <bruno@clisp.org>
63205
63206         * doc/functions/snprintf.texi: Mention BeOS deficiency.
63207         * doc/functions/vsnprintf.texi: Likewise.
63208         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
63209         with a size argument < 2.
63210
63211 2007-11-09  Bruno Haible  <bruno@clisp.org>
63212
63213         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
63214         buffer. Fixes an inefficiency introduced on 2007-11-03.
63215
63216 2007-11-09  Bruno Haible  <bruno@clisp.org>
63217
63218         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
63219         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
63220
63221 2007-11-08  Jim Meyering  <meyering@redhat.com>
63222
63223         Change cache variable name prefix "jm_" to "gl_" everywhere.
63224         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
63225         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
63226         * m4/uptime.m4: s/gl_/jm_/
63227
63228 2007-11-07  Bruno Haible  <bruno@clisp.org>
63229
63230         Update to GNU gettext 0.17.
63231         * m4/intl.m4: Update to GNU gettext 0.17.
63232         * m4/po.m4: Likewise.
63233         * modules/gettext (Files): Remove m4/ulonglong.m4.
63234         (configure.ac): Require gettext infrastructure from version 0.17.
63235
63236 2007-11-06  Bruno Haible  <bruno@clisp.org>
63237
63238         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
63239         symbolic values are not defined in a public header.
63240         * lib/freadable.c (freadable) [QNX]: Likewise.
63241         * lib/freadahead.c (freadahead) [QNX]: Likewise.
63242         * lib/freading.c (freading) [QNX]: Likewise.
63243         * lib/fseterr.c (fseterr) [QNX]: Likewise.
63244         * lib/fwritable.c (fwritable) [QNX]: Likewise.
63245         * lib/fwriting.c (fwriting) [QNX]: Likewise.
63246         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
63247         Reported by Alain Magloire.
63248
63249         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
63250
63251 2007-11-05  Bruno Haible  <bruno@clisp.org>
63252
63253         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
63254         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
63255         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
63256         Reported by Eric Blake.
63257
63258 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63259             Bruno Haible  <bruno@clisp.org>
63260
63261         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
63262         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
63263         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
63264         (malloc): Undefine also before including <stdlib.h>.
63265         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
63266         Needed on OSF/1 4.0.
63267
63268 2007-11-05  Jim Meyering  <meyering@redhat.com>
63269
63270         git-version-gen: sync from coreutils.
63271         * build-aux/git-version-gen: Add comments.
63272         Change the first '-' to '.' in the snapshot version string,
63273         e.g., 6.9-377-08144 -> 6.9.377-08144
63274         Remove first parameter.
63275         Don't declare a version "-dirty" merely because a time
63276         stamp has changed.
63277
63278 2007-11-04  Bruno Haible  <bruno@clisp.org>
63279
63280         * lib/lock.h: Protect all macro definitions containing an 'if'
63281         statement through a "do { ... } while (0)".
63282         * lib/tls.h: Likewise.
63283
63284 2007-11-04  Bruno Haible  <bruno@clisp.org>
63285
63286         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
63287
63288 2007-11-04  Bruno Haible  <bruno@clisp.org>
63289
63290         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
63291         * modules/fprintf-posix (Depends-on): Add nocrash.
63292         * modules/snprintf-posix (Depends-on): Likewise.
63293         * modules/sprintf-posix (Depends-on): Likewise.
63294         * modules/vasnprintf-posix (Depends-on): Likewise.
63295         * modules/vasprintf-posix (Depends-on): Likewise.
63296         * modules/vfprintf-posix (Depends-on): Likewise.
63297         * modules/vsnprintf-posix (Depends-on): Likewise.
63298         * modules/vsprintf-posix (Depends-on): Likewise.
63299         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63300         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63301         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63302         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63303         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63304         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63305         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63306
63307 2007-11-04  Bruno Haible  <bruno@clisp.org>
63308
63309         * modules/nocrash: New file.
63310         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
63311         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
63312
63313 2007-11-04  Bruno Haible  <bruno@clisp.org>
63314
63315         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
63316         precision handling.
63317         * tests/test-vasprintf-posix.c (test_function): Likewise.
63318         * tests/test-snprintf-posix.h (test_function): Likewise.
63319         * tests/test-sprintf-posix.h (test_function): Likewise.
63320
63321         Fix *printf behaviour for large precisions on mingw and BeOS.
63322         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
63323         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
63324         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
63325         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63326         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63327         gl_PRINTF_PRECISION and test its result. Invoke
63328         gl_PREREQ_VASNPRINTF_PRECISION.
63329         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63330         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63331         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63332         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63333         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63334         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63335         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63336         * doc/functions/fprintf.texi: Update.
63337         * doc/functions/printf.texi: Update.
63338         * doc/functions/snprintf.texi: Update.
63339         * doc/functions/sprintf.texi: Update.
63340         * doc/functions/vfprintf.texi: Update.
63341         * doc/functions/vprintf.texi: Update.
63342         * doc/functions/vsnprintf.texi: Update.
63343         * doc/functions/vsprintf.texi: Update.
63344
63345 2007-11-04  Bruno Haible  <bruno@clisp.org>
63346
63347         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
63348
63349 2007-11-04  Bruno Haible  <bruno@clisp.org>
63350
63351         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
63352         Reported by Sylvain Beucler <beuc@gnu.org>.
63353
63354 2007-11-03  Bruno Haible  <bruno@clisp.org>
63355
63356         * tests/test-fprintf-posix2.sh: New file.
63357         * tests/test-fprintf-posix2.c: New file.
63358         * modules/fprintf-posix-tests (Files): Add them.
63359         (TESTS): Add test-fprintf-posix2.sh.
63360         (configure.ac): Check for getrlimit and setrlimit.
63361         (check_PROGRAMS): Add test-fprintf-posix2.
63362
63363         * tests/test-printf-posix2.sh: New file.
63364         * tests/test-printf-posix2.c: New file.
63365         * modules/printf-posix-tests (Files): Add them.
63366         (TESTS): Add test-printf-posix2.sh.
63367         (configure.ac): Check for getrlimit and setrlimit.
63368         (check_PROGRAMS): Add test-printf-posix2.
63369
63370         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
63371         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
63372         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
63373         (decode_double): New function, copied from decode_long_double.
63374         (scale10_round_decimal_decoded): New function, extracted from
63375         scale10_round_decimal_long_double.
63376         (scale10_round_decimal_long_double): Use it.
63377         (scale10_round_decimal_double): New function.
63378         (floorlog10): New function.
63379         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
63380         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
63381         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63382         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63383         gl_PRINTF_ENOMEM and test its result. Invoke
63384         gl_PREREQ_VASNPRINTF_ENOMEM.
63385         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63386         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63387         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63388         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63389         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63390         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63391         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63392         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
63393         * modules/snprintf-posix (Depends-on): Likewise.
63394         * modules/sprintf-posix (Depends-on): Likewise.
63395         * modules/vasnprintf-posix (Depends-on): Likewise.
63396         * modules/vasprintf-posix (Depends-on): Likewise.
63397         * modules/vfprintf-posix (Depends-on): Likewise.
63398         * modules/vsnprintf-posix (Depends-on): Likewise.
63399         * modules/vsprintf-posix (Depends-on): Likewise.
63400         * doc/functions/fprintf.texi: Update.
63401         * doc/functions/printf.texi: Update.
63402         * doc/functions/snprintf.texi: Update.
63403         * doc/functions/sprintf.texi: Update.
63404         * doc/functions/vfprintf.texi: Update.
63405         * doc/functions/vprintf.texi: Update.
63406         * doc/functions/vsnprintf.texi: Update.
63407         * doc/functions/vsprintf.texi: Update.
63408
63409 2007-11-03  Bruno Haible  <bruno@clisp.org>
63410
63411         * modules/frexp-nolibm-tests: New file.
63412
63413         * modules/frexp-nolibm: New file.
63414         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
63415
63416 2007-11-03  Bruno Haible  <bruno@clisp.org>
63417
63418         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
63419         value is C99 compliant.
63420         Needed for OSF/1 5.1.
63421
63422 2007-11-03  Bruno Haible  <bruno@clisp.org>
63423
63424         Fix out-of-memory handling of vasnprintf.
63425         * lib/printf-parse.c: Include <errno.h>.
63426         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
63427         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
63428         is already set.
63429
63430 2007-11-02  Eric Blake  <ebb9@byu.net>
63431
63432         Fix tests on cygwin.
63433         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
63434
63435 2007-11-01  Bruno Haible  <bruno@clisp.org>
63436
63437         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
63438         warning.
63439         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
63440         needed for POSIX compatibility.
63441
63442 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63443
63444         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
63445         for compatibility with GNU.
63446
63447 2007-11-01  Bruno Haible  <bruno@clisp.org>
63448
63449         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
63450         (putenv): Renamed from rpl_putenv. Change argument type from
63451         'const char *' to 'char *'.
63452         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
63453         of defining putenv in config.h, just set REPLACE_PUTENV.
63454         * modules/putenv (Depends-on): Add stdlib.
63455         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63456         (Include): Use <stdlib.h>.
63457         * lib/stdlib.in.h (putenv): New declaration.
63458         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
63459         REPLACE_PUTENV.
63460         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
63461         REPLACE_PUTENV.
63462         Needed for MacOS X 10.5.0.
63463         Reported by Peter O'Gorman <peter@pogma.com>.
63464
63465 2007-11-01  Jim Meyering  <meyering@redhat.com>
63466
63467         Treat an empty date string exactly like "0".
63468         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
63469         if the remaining date string (to be parsed) is empty, use "0".
63470         Reported by Mischa Molhoek and discussed in this thread:
63471         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
63472
63473 2007-10-31  Bruno Haible  <bruno@clisp.org>
63474
63475         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
63476         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
63477         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
63478         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
63479         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
63480         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
63481
63482 2007-10-31  Bruno Haible  <bruno@clisp.org>
63483
63484         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
63485         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
63486         (AC_TYPE_LONG_LONG_INT): Use it.
63487         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
63488         it as well.
63489         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
63490         to m4/longlong.m4.
63491         * modules/stdint (Files): Remove m4/ulonglong.m4.
63492         * modules/strtoull (Files): Use m4/longlong.m4 instead of
63493         m4/ulonglong.m4.
63494         * modules/strtoumax (Files): Likewise.
63495
63496 2007-10-30  Bruno Haible  <bruno@clisp.org>
63497
63498         * modules/xvasprintf-posix: New file.
63499         Suggested by Eric Blake.
63500
63501 2007-10-30  Bruno Haible  <bruno@clisp.org>
63502
63503         * modules/xprintf-posix-tests: New file.
63504         * tests/test-xprintf-posix.sh: New file.
63505         * tests/test-xprintf-posix.c: New file.
63506         * tests/test-xfprintf-posix.c: New file.
63507
63508         * modules/xprintf-posix: New file.
63509
63510 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63511
63512         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
63513         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
63514         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
63515
63516 2007-10-29  Bruno Haible  <bruno@clisp.org>
63517
63518         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
63519         contain the special marker '_cv_'.
63520         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
63521         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
63522         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
63523         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
63524         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
63525         Reported by Ralf Wildenhues.
63526
63527 2007-10-29  Bruno Haible  <bruno@clisp.org>
63528
63529         * gnulib-tool (func_import): When --lgpl is not specified, set
63530         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
63531         GPLv3.
63532         Reported by Simon Josefsson.
63533
63534 2007-10-28  Bruno Haible  <bruno@clisp.org>
63535
63536         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
63537         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
63538         HAVE_DECL_ISFINITE.
63539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63540         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
63541         HAVE_DECL_ISFINITE.
63542
63543 2007-10-28  Bruno Haible  <bruno@clisp.org>
63544
63545         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
63546         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
63547
63548 2007-10-28  Bruno Haible  <bruno@clisp.org>
63549
63550         Fix link errors with Sun C 5.0 on Solaris 10.
63551         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
63552         function is declared but not present in the compiler's libm.
63553         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
63554         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
63555         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
63556         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
63557         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
63558         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
63559         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
63560         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63561         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
63562         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
63563         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
63564         HAVE_DECL_FLOORL.
63565
63566 2007-10-28  Bruno Haible  <bruno@clisp.org>
63567
63568         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
63569         gl_FUNC_FLOORL. Cache the result.
63570         (gl_FUNC_FLOORL): Use it.
63571         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
63572         gl_FUNC_CEILL. Cache the result.
63573         (gl_FUNC_CEILL): Use it.
63574
63575         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
63576         gl_FUNC_FLOOR. Cache the result.
63577         (gl_FUNC_FLOOR): Use it.
63578         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
63579         gl_FUNC_CEIL. Cache the result.
63580         (gl_FUNC_CEIL): Use it.
63581
63582         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
63583         gl_FUNC_FLOORF. Cache the result.
63584         (gl_FUNC_FLOORF): Use it.
63585         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
63586         gl_FUNC_CEILF. Cache the result.
63587         (gl_FUNC_CEILF): Use it.
63588
63589 2007-10-28  Bruno Haible  <bruno@clisp.org>
63590
63591         * gnulib-tool: Allow specifying the LGPL version number through
63592         --lgpl=2 or --lgpl=3.
63593         (func_usage): Document --lgpl with argument.
63594         Handle --lgpl=... arguments.
63595         (func_import): Recognize also gl_LGPL calls with an argument. When
63596         --lgpl=2 is used and the module's license is just LGPL, report an
63597         error. Set sed_transform_lib_file according to the lgpl variable. In
63598         the generated files, use --lgpl or gl_LGPL invocations with argument,
63599         if necessary.
63600         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
63601         an LGPv2+ license.
63602         * doc/gnulib-tool.texi (Modified imports): Update explanation of
63603         gl_LGPL macro.
63604
63605 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63606             Bruno Haible  <bruno@clisp.org>
63607
63608         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
63609         (u16_uctomb_aux): Likewise.
63610         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
63611         !HAVE_INLINE.
63612         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
63613
63614 2007-10-28  Bruno Haible  <bruno@clisp.org>
63615
63616         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
63617         Invoke AM_GETTEXT_OPTION if it exists.
63618         * modules/vasprintf: Likewise.
63619         * modules/verror: Likewise.
63620         * modules/xprintf: Likewise.
63621         * modules/xvasprintf: Likewise.
63622
63623 2007-10-27  Ben Pfaff  <blp@gnu.org>
63624
63625         * lib/math.in.h: Define isfinite macro and prototypes for
63626         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
63627         implementations.
63628         * m4/math_h.m4: New substitutions for isfinite module.
63629         * lib/isfinite.c: New file.
63630         * m4/isfinite.m4: New file.
63631         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
63632         * modules/isfinite: New file.
63633         * modules/isfinite-tests: New file.
63634         * tests/tests-isfinite.c: New file.
63635         * doc/functions/isfinite.texi: Mention isfinite module.
63636         * MODULES.html.sh: Mention new module.
63637
63638 2007-10-27  Ben Pfaff  <blp@gnu.org>
63639
63640         Ralf Wildenhues reported that Tru64 4.0D declares the round
63641         functions but does not have definitions.
63642         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
63643         cannot be found in any library, set the output variable to
63644         "missing" instead of "".
63645         * m4/round.m4: Also use our substitute if we cannot find round in
63646         any library, even if it is declared.
63647         * m4/roundf.m4: Likewise for roundf.
63648         * m4/roundl.m4: Likewise for roundl.
63649         * lib/math.in.h: Undefine roundf, round, roundl before defining
63650         their replacements, to allow for hypothetical systems where these
63651         may be defined as macros but not available in libraries.
63652
63653 2007-10-27  Bruno Haible  <bruno@clisp.org>
63654
63655         * doc/gnulib.texi: Invoke @firstparagraphindent.
63656         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
63657         changes in gnulib.
63658         (Source changes): New section.
63659
63660 2007-10-26  Bruno Haible  <bruno@clisp.org>
63661
63662         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
63663         borrowed from autoconf.
63664
63665 2007-10-26  Bruno Haible  <bruno@clisp.org>
63666
63667         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
63668         strerror returned the empty string. Needed on HP-UX 11.00.
63669
63670 2007-10-24  Micah Cowan  <micah@cowan.name>
63671
63672         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
63673         * build-aux/bootstrap: Remove support for now-unnecessary option,
63674         --cvs-user, and envvars CVS_USER, CVS_RSH.
63675
63676 2007-10-24  Jim Meyering  <meyering@redhat.com>
63677
63678         Avoid diagnostics from sha1sum when there is no cached checksum.
63679         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
63680         if the po.s1 file hasn't been created yet.
63681
63682         * build-aux/bootstrap: Sync from coreutils:
63683         2007-10-24  Jim Meyering  <meyering@redhat.com>
63684         Get gnulib from the git repository, not from an obsolete cvs one.
63685         * build-aux/bootstrap: Suggestion from Micah Cowan.
63686         2007-10-04  Jim Meyering  <jim@meyering.net>
63687         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
63688         (update_po_files): Work also when there are no .po files in po/.
63689
63690 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63691
63692         * README: Append ".git" to git and cg examples.
63693         Problem reported by Benoit Sigoure.
63694
63695 2007-10-23  Micah Cowan  <micah@cowan.name>
63696
63697         * users.txt: Add wget.
63698
63699 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63700
63701         Fix linking of some unistdio tests on FreeBSD.
63702         * modules/unistdio/u16-vsnprintf-tests
63703         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
63704         * modules/unistdio/u16-vsprintf-tests
63705         (test_u16_vsnprintf1_LDADD): Likewise.
63706         * modules/unistdio/u32-vsnprintf-tests
63707         (test_u32_vsnprintf1_LDADD): Likewise.
63708         * modules/unistdio/u32-vsprintf-tests
63709         (test_u32_vsprintf1_LDADD): Likewise.
63710         * modules/unistdio/u8-vsnprintf-tests
63711         (test_u8_vsnprintf1_LDADD): Likewise.
63712         * modules/unistdio/u8-vsprintf-tests
63713         (test_u8_vsprintf1_LDADD): Likewise.
63714         * modules/unistdio/ulc-vsnprintf-tests
63715         (test_ulc_vsnprintf1_LDADD): Likewise.
63716         * modules/unistdio/ulc-vsprintf-tests
63717         (test_ulc_vsprintf1_LDADD): Likewise.
63718
63719         Fix linking of some uniconv tests on FreeBSD.
63720         * modules/uniconv/u16-conv-from-enc-tests
63721         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
63722         * modules/uniconv/u16-conv-to-enc-tests
63723         (test_u16_conv_to_enc_LDADD): Likewise.
63724         * modules/uniconv/u16-strconv-from-enc-tests
63725         (test_u16_strconv_from_enc_LDADD): Likewise.
63726         * modules/uniconv/u16-strconv-to-enc-tests
63727         (test_u16_strconv_to_enc_LDADD): Likewise.
63728         * modules/uniconv/u32-conv-from-enc-tests
63729         (test_u32_conv_from_enc_LDADD): Likewise.
63730         * modules/uniconv/u32-conv-to-enc-tests
63731         (test_u32_conv_to_enc_LDADD): Likewise.
63732         * modules/uniconv/u32-strconv-from-enc-tests
63733         (test_u32_strconv_from_enc_LDADD): Likewise.
63734         * modules/uniconv/u32-strconv-to-enc-tests
63735         (test_u32_strconv_to_enc_LDADD): Likewise.
63736         * modules/uniconv/u8-conv-from-enc-tests
63737         (test_u8_conv_from_enc_LDADD): Likewise.
63738         * modules/uniconv/u8-conv-to-enc-tests
63739         (test_u8_conv_to_enc_LDADD): Likewise.
63740         * modules/uniconv/u8-strconv-from-enc-tests
63741         (test_u8_strconv_from_enc_LDADD): Likewise.
63742         * modules/uniconv/u8-strconv-to-enc-tests
63743         (test_u8_strconv_to_enc_LDADD): Likewise.
63744
63745 2007-10-22  Bruno Haible  <bruno@clisp.org>
63746
63747         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
63748         size.
63749
63750 2007-10-22  Eric Blake  <ebb9@byu.net>
63751
63752         Tweak x*printf documentation.
63753         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
63754         variable name and comments.
63755         Suggested by Bruno Haible.
63756
63757 2007-10-22  Bruno Haible  <bruno@clisp.org>
63758
63759         * lib/acl.c (copy_acl): Fix file name in comment.
63760
63761 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63762
63763         Fix Tru64 problem with stdbool.h.
63764         * lib/stdbool.in.h (false, true):
63765         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
63766         Don't declare as an enum in this situation; it runs afoul of Tru64.
63767         Problem reported by Steven M. Schweda in
63768         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
63769
63770 2007-10-22  Eric Blake  <ebb9@byu.net>
63771
63772         Also wrap vf?printf.
63773         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
63774         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
63775         (xvprintf, xvfprintf): New functions.
63776
63777 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63778
63779         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
63780         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
63781
63782         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
63783         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
63784
63785 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63786
63787         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
63788         by Bruno Haible.
63789
63790 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63791
63792         * lib/getloadavg.c
63793         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
63794         Undef `sys' after including sys/table.h, for Tru64 4.0D.
63795
63796         * tests/test-i-ring.c: Work for C89.
63797
63798 2007-10-22  Bruno Haible  <bruno@clisp.org>
63799
63800         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
63801         -1u, in preprocessor expression, so that we don't test for the bug
63802         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
63803         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
63804
63805 2007-10-22  Eric Blake  <ebb9@byu.net>
63806
63807         * tests/test-yesno.sh: Silence stderr during test.
63808
63809 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63810
63811         * modules/crypto/gc-camellia: New file.
63812
63813         * m4/gc-camellia.m4: New file.
63814
63815         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
63816
63817         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
63818
63819 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63820
63821         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
63822         --help to stdout.  Reported by sms@antinode.org (Steven
63823         M. Schweda).
63824
63825 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63826
63827         * users.txt: Fix link to libksba.
63828
63829 2007-10-21  Ben Pfaff  <blp@gnu.org>
63830
63831         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
63832         round.c roundf implementation that depends on floorf and ceilf to
63833         be tested unconditionally.
63834
63835 2007-10-21  Ben Pfaff  <blp@gnu.org>
63836
63837         * m4/check-libm-func.m4: Removed.
63838         * m4/check-math-lib.m4: New file.
63839         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
63840         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
63841         definition and lack of AC_LIBOBJ([roundf]).
63842         * m4/roundl.m4: Ditto, and similarly for roundl.
63843         * modules/round: Reference new m4 file.
63844         * modules/roundf: Ditto.
63845         * modules/roundl: Ditto.
63846         * tests/test-round2.c (main): Use ROUND instead of round.
63847         Bug report from Bruno Haible.
63848
63849 2007-10-21  Bruno Haible  <bruno@clisp.org>
63850
63851         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
63852         context.
63853
63854 2007-10-21  Bruno Haible  <bruno@clisp.org>
63855
63856         * tests/test-wcwidth.c (main): Allow negative result for some control
63857         characters.
63858
63859         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
63860         Needed on OSF/1 5.1.
63861
63862 2007-10-21  Bruno Haible  <bruno@clisp.org>
63863
63864         * tests/test-floorf1.c: Include isnanf.h.
63865         (main): Use isnanf() instead of isnan().
63866         * tests/test-ceilf1.c: Include isnanf.h.
63867         (main): Use isnanf() instead of isnan().
63868         * tests/test-truncf1.c: Include isnanf.h.
63869         (main): Use isnanf() instead of isnan().
63870         * tests/test-roundf1.c: Include isnanf.h.
63871         (main): Use isnanf() instead of isnan().
63872
63873 2007-10-21  Eric Blake  <ebb9@byu.net>
63874
63875         * users.txt: Update URL for m4.
63876
63877 2007-10-21  Bruno Haible  <bruno@clisp.org>
63878
63879         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
63880
63881 2007-10-21  Bruno Haible  <bruno@clisp.org>
63882
63883         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
63884         Git's management files if the CVS files are not present.
63885
63886 2007-10-20  Bruno Haible  <bruno@clisp.org>
63887
63888         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
63889         gcc-3.4.x.
63890
63891 2007-10-20  Ben Pfaff  <blp@gnu.org>
63892
63893         * lib/math.in.h: Declare round, roundf, roundl if we are providing
63894         implementations.
63895         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
63896         * lib/round.c: New file.
63897         * lib/roundf.c: New file.
63898         * lib/roundl.c: New file.
63899         * m4/round.m4: New file.
63900         * m4/roundf.m4: New file.
63901         * m4/roundl.m4: New file.
63902         * m4/check-libm-func-m4: New file.
63903         * modules/math: Replace round, roundf, roundl related @VARS@ in
63904         math.in.h.
63905         * modules/round: New file.
63906         * modules/round-tests: New file.
63907         * modules/roundf: New file.
63908         * modules/roundf-tests: New file.
63909         * modules/roundl: New file.
63910         * modules/roundl-tests: New file.
63911         * tests/test-round1.c: New file.
63912         * tests/test-round2.c: New file.
63913         * tests/test-roundf1.c: New file.
63914         * tests/test-roundf2.c: New file.
63915         * tests/test-roundl.c: New file.
63916         * doc/functions/round.texi: Mention round module.
63917         * doc/functions/roundf.texi: Mention roundf module.
63918         * doc/functions/roundl.texi: Mention roundl module.
63919         * MODULES.html.sh: Mention new modules.
63920         Thanks to Bruno Haible for suggestions.
63921
63922 2007-10-20  Jim Meyering  <meyering@redhat.com>
63923
63924         * lib/xprintf.c: Include <config.h> unconditionally.
63925
63926         Change xprintf's license to GPL.
63927         * modules/xprintf (License): s/LGPL/GPL/, since this module
63928         depends on modules (exit and exitfail) which are GPL.
63929         Suggestion from Bruno Haible.
63930
63931         xprintf fixes.
63932         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
63933         Use a clearer diagnostic.
63934         Patch from Bruno Haible.
63935
63936 2007-10-20  Bruno Haible  <bruno@clisp.org>
63937
63938         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
63939         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
63940         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63941
63942 2007-10-20  Bruno Haible  <bruno@clisp.org>
63943
63944         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
63945         precision in the comparison result > x - 1 or similar.
63946         * tests/test-ceilf2.c (correct_result_p): Likewise.
63947         * tests/test-truncf2.c (correct_result_p): Likewise.
63948         * tests/test-trunc2.c (correct_result_p): Likewise.
63949         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63950
63951 2007-10-20  Bruno Haible  <bruno@clisp.org>
63952
63953         * modules/ceil: New file.
63954         * m4/ceil.m4: New file.
63955         * doc/functions/ceil.texi: Mention the 'ceil' module.
63956
63957 2007-10-20  Bruno Haible  <bruno@clisp.org>
63958
63959         * modules/floor: New file.
63960         * m4/floor.m4: New file.
63961         * doc/functions/floor.texi: Mention the 'floor' module.
63962
63963 2007-10-20  Bruno Haible  <bruno@clisp.org>
63964
63965         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
63966         of %a.
63967         * modules/floorf-tests (Depends-on): Likewise.
63968         * modules/truncf-tests (Depends-on): Likewise.
63969         * modules/trunc-tests (Depends-on): Likewise.
63970         Reported by Ben Pfaff.
63971
63972 2007-10-19  Jim Meyering  <meyering@redhat.com>
63973
63974         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
63975         Don't bother testing specific errno values.  Just test ferror.
63976
63977         New module: xprintf
63978         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
63979
63980 2007-10-19  Bruno Haible  <bruno@clisp.org>
63981
63982         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
63983         syntax.
63984         * modules/javaexec (Makefile.am): Likewise.
63985         * modules/relocatable-prog (Makefile.am): Likewise.
63986         Suggested by Jim Meyering.
63987
63988 2007-10-18  Bruno Haible  <bruno@clisp.org>
63989
63990         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
63991         Reported by Jim Meyering.
63992
63993 2007-10-18  Eric Blake  <ebb9@byu.net>
63994
63995         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
63996
63997 2007-10-18  Bruno Haible  <bruno@clisp.org>
63998
63999         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
64000         the format string into writable memory. Needed in Fortify conditions.
64001
64002 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
64003             Bruno Haible  <bruno@clisp.org>
64004
64005         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
64006         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
64007         * modules/trim (Depends-on): Add mbchar.
64008         (configure.ac): Add gl_FUNC_MBRTOWC.
64009         (Makefile.am): Augment lib_SOURCES.
64010
64011 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64012
64013         Modify glob.c to use fstatat and dirfd, to simplify it.
64014         Suggested by Eric Blake.
64015         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
64016         Don't include <stdbool.h>; not used.
64017         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
64018         (link_exists_p): Simplify implementation, since we can now assume
64019         dirfd and fstatat.
64020         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
64021
64022 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64023
64024         * gnulib-tool (func_get_dependencies): Fix sed script to
64025         match only tests.
64026
64027 2007-10-17  Bruno Haible  <bruno@clisp.org>
64028
64029         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
64030         allow locale names without encoding suffix.
64031         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
64032         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64033
64034 2007-10-16  Bruno Haible  <bruno@clisp.org>
64035
64036         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
64037         * lib/getgroups.c (getgroups): Likewise.
64038         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
64039
64040 2007-10-16  Bruno Haible  <bruno@clisp.org>
64041
64042         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
64043         * modules/malloc-posix (License): Likewise.
64044         * modules/realloc-posix (License): Likewise.
64045         * modules/calloc-posix (License): Likewise.
64046         * modules/intprops (License): Change from GPL to LGPL, with
64047         Paul Eggert's approval.
64048
64049 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64050
64051         Merge glibc changes into lib/glob.c.
64052
64053         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
64054         2007-10-15 04:59:03 UTC.  Here are the changes:
64055
64056         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
64057
64058         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
64059
64060         * lib/glob.c: Add some branch prediction throughout.
64061
64062         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
64063
64064         [BZ #5103]
64065         * lib/glob.c (glob): Recognize patterns starting \/.
64066
64067         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
64068
64069         [BZ #3996]
64070         * lib/glob.c (attribute_hidden): Define if not defined.
64071         (glob): Unescape dirname, filename or username when needed and not
64072         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
64073         is NULL.  Handle unescaped [ in pattern without closing ].
64074         Don't pass GLOB_CHECK down to recursive glob for directories.
64075         (__glob_pattern_type): New function.
64076         (__glob_pattern_p): Implement using __glob_pattern_type.
64077         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
64078         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
64079         Remove unreachable code.
64080
64081         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
64082
64083         * lib/glob.c (glob_in_dir): Add some comments and asserts to
64084         explain why there are no leaks.
64085
64086         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
64087
64088         [BZ #3253]
64089         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
64090         time, rather allocate increasingly bigger arrays of pointers, if
64091         possible with alloca, if too large with malloc.
64092
64093 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64094
64095         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
64096         Problem reported by H.Merijn Brand in
64097         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
64098         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
64099         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64100
64101 2007-10-15  Bruno Haible  <bruno@clisp.org>
64102
64103         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
64104         with explicit rpl_ prefix.
64105         * lib/fopen.c (fopen): Likewise.
64106         * lib/freopen.c (freopen): Likewise.
64107         * lib/iconv.c (iconv): Likewise.
64108         * lib/iconv_close.c (iconv_close): Likewise.
64109
64110 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64111
64112         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
64113
64114 2007-10-15  Bruno Haible  <bruno@clisp.org>
64115
64116         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
64117         <stddef.h> instead of <stdlib.h> since we only need NULL.
64118         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64119
64120 2007-10-15  Bruno Haible  <bruno@clisp.org>
64121
64122         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
64123         Replace paragraph talking about LIBOBJS.
64124         Reported by Colin Watson <cjwatson@debian.org>.
64125
64126 2007-10-15  Bruno Haible  <bruno@clisp.org>
64127
64128         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
64129         <stdlib.h> before using NULL.
64130
64131 2007-10-15  Simon Josefsson  <simon@josefsson.org>
64132
64133         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
64134         Reported by Albert Chin <china@thewrittenword.com>.
64135
64136 2007-10-14  Bruno Haible  <bruno@clisp.org>
64137
64138         * modules/iconv_open-utf-tests: New file.
64139         * tests/test-iconv-utf.c: New file.
64140
64141         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
64142         * modules/iconv_open-utf: New file.
64143         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
64144         (iconv, iconv_close): New declarations.
64145         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
64146         be defined.
64147         (iconv_open): Add special handling of conversion between UTF-8 and
64148         UTF-{16,32}{BE,LE}.
64149         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
64150         * lib/iconv_close.c: New file.
64151         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
64152         gl_FUNC_ICONV_OPEN.
64153         (gl_FUNC_ICONV_OPEN): Use it.
64154         (gl_FUNC_ICONV_OPEN_UTF): New macro.
64155         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
64156         and REPLACE_ICONV_UTF.
64157         * modules/iconv_open (Depends-on): Add c-strcase.
64158         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
64159         ICONV_CONST.
64160         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
64161
64162 2007-10-13  Albert Chin  <china@thewrittenword.com>
64163             Bruno Haible  <bruno@clisp.org>
64164
64165         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
64166         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
64167
64168 2007-10-13  Bruno Haible  <bruno@clisp.org>
64169
64170         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
64171         defined, use the ISO C99 inline semantics.
64172         * lib/argp.h (ARGP_EI): Likewise.
64173
64174 2007-10-13  Bruno Haible  <bruno@clisp.org>
64175
64176         Handle 'inline' change in gcc 4.3.0.
64177         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
64178         argp_fmtstream_write, argp_fmtstream_set_lmargin,
64179         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
64180         argp_fmtstream_point): Disable 'extern' declaration if the function
64181         definition is going to be provided inline.
64182         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
64183         semantics, not the ISO C99 inline semantics.
64184         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
64185         'extern' declaration if the function definition is going to be provided
64186         inline.
64187         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
64188         the GNU C inline semantics, not the ISO C99 inline semantics. With
64189         GCC 4.2, avoid a warning.
64190
64191 2007-10-13  Bruno Haible  <bruno@clisp.org>
64192
64193         * lib/freading.h (freading): Enable the use of __freading for
64194         glibc >= 2.7.
64195         * lib/freading.c (freading): Likewise.
64196
64197 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64198
64199         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
64200         "warning: C99 inline functions are not supported; using GNU89".
64201
64202 2007-10-12  Bruno Haible  <bruno@clisp.org>
64203
64204         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
64205         of 2.
64206         * tests/test-ceilf2.c: New file.
64207         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
64208
64209         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
64210         * modules/ceilf-tests: Update.
64211
64212 2007-10-12  Bruno Haible  <bruno@clisp.org>
64213
64214         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
64215         of 2.
64216         * tests/test-floorf2.c: New file.
64217         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
64218
64219         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
64220         * modules/floorf-tests: Update.
64221
64222 2007-10-12  Bruno Haible  <bruno@clisp.org>
64223
64224         * tests/test-trunc2.c: New file.
64225         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
64226
64227         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
64228         * modules/trunc-tests: Update.
64229
64230 2007-10-12  Bruno Haible  <bruno@clisp.org>
64231
64232         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
64233         of 2.
64234         * tests/test-truncf2.c: New file.
64235         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
64236
64237         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
64238         * modules/truncf-tests: Update.
64239
64240 2007-10-11  Eric Blake  <ebb9@byu.net>
64241
64242         Don't claim strerror is broken on Interix.
64243         * doc/functions/strerror.texi (strerror): Known broken systems are
64244         now Solaris 8, and not Interix.
64245         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
64246         Interix on cross-compile.
64247         Reported by Martin Koeppe in
64248         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
64249
64250 2007-10-11  Bruno Haible  <bruno@clisp.org>
64251
64252         * modules/i-ring-tests: New file.
64253         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
64254         instead of assert.
64255
64256 2007-10-11  Bruno Haible  <bruno@clisp.org>
64257
64258         * modules/filenamecat-tests: New file.
64259         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
64260         * lib/filenamecat.c: Remove test code.
64261
64262 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64263
64264         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
64265
64266         * lib/strerror.c: Include <string.h> always, to test interface,
64267         and to remove the need for the dummy.
64268         Include intprops.h to compute width instead of doing it ourselves
64269         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
64270         (strerror): Define it to return NULL if there's no system strerror.
64271         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
64272         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
64273         ancient pre-strerror Unix systems well any more.  Saying "unknown
64274         system error" is enough.
64275         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
64276         simpler strerror.c implementation.
64277         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
64278         Simplify the tests to reflect the simpler strerror implementation.
64279         * modules/strerror (Depends-on): Add intprops.
64280
64281 2007-10-09  Eric Blake  <ebb9@byu.net>
64282
64283         Silence test-fpending.
64284         * modules/fpending-tests (Files): Add wrapper script.
64285         * tests/test-fpending.sh: New file.
64286
64287 2007-10-09  Bruno Haible  <bruno@clisp.org>
64288
64289         * MODULES.html.sh (func_module): Don't create a hyperlink for
64290         function names like 'printf_frexp'.
64291         (Misc): Add crc, memxor.
64292         (Characteristics of floating types): New section.
64293         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
64294         isnanf-nolibm, signbit, trunc, truncf, truncl.
64295         (Enhancements for ISO C 99 functions): New subsection Input/output.
64296         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
64297         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
64298         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
64299         (Compatibility checks for POSIX:2001 functions): Add clock-time.
64300         (Enhancements for POSIX:2001 functions): Add chdir-long.
64301         (File system functions): Add areadlink, chdir-safer, read-file.
64302         Remove cycle-check.
64303         (File system as inode set): New section.
64304         (Date and time): Add gethrxtime.
64305         (Multithreading): Add openmp.
64306         (Internationalization functions): Add localename.
64307         (Unicode string functions): Add unistr/u*-mbsnlen.
64308         (Support for maintaining and releasing projects): Add git-version-gen.
64309         (Lone files): Remove directories.
64310
64311 2007-10-08  Ben Pfaff  <blp@gnu.org>
64312
64313         * lib/xmalloca.h: Fix typo in comment.
64314
64315 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64316
64317         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
64318         when avoiding problems with integer overflow.  Use a portable test
64319         instead.
64320
64321 2007-10-08  Simon Josefsson  <simon@josefsson.org>
64322
64323         * modules/dummy (License): Change to LGPLv2+.
64324         * modules/float (License): Likewise
64325         * modules/realloc (License): Likewise
64326         * modules/stdlib (License): Likewise
64327
64328 2007-10-07  Bruno Haible  <bruno@clisp.org>
64329
64330         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
64331         * floor.c (TWO_MANT_DIG): Likewise.
64332         * ceil.c (TWO_MANT_DIG): Likewise.
64333         Reported by Ben Pfaff.
64334
64335 2007-10-07  Bruno Haible  <bruno@clisp.org>
64336
64337         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
64338         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
64339         * lib/frexp.c (FUNC): Likewise.
64340         * lib/printf-frexp.h (printf_frexp): Likewise.
64341         * lib/printf-frexpl.h (printf_frexpl): Likewise.
64342         * lib/printf-frexp.c (FUNC): Likewise.
64343         Suggested by Jim Meyering.
64344
64345 2007-10-07  Jim Meyering  <meyering@redhat.com>
64346
64347         Make xnanosleep's integer overflow test more robust.
64348         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
64349         so that gcc-4.3.0 doesn't optimize away this test for overflow.
64350
64351 2007-10-07  Bruno Haible  <bruno@clisp.org>
64352
64353         * NEWS: Mention the license change.
64354
64355         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
64356         abbreviations in the modules files.
64357
64358         Change copyright notice from GPLv2+ to GPLv3+.
64359         * README: Change copyright notice.
64360         * MODULES.html.sh: Likewise.
64361         * build-aux/bootstrap.conf: Likewise.
64362         * build-aux/config.libpath: Likewise.
64363         * build-aux/csharpcomp.sh.in: Likewise.
64364         * build-aux/csharpexec.sh.in: Likewise.
64365         * build-aux/install-reloc: Likewise.
64366         * build-aux/javacomp.sh.in: Likewise.
64367         * build-aux/javaexec.sh.in: Likewise.
64368         * build-aux/ldd.sh.in: Likewise.
64369         * build-aux/reloc-ldflags: Likewise.
64370         * build-aux/relocatable.sh.in: Likewise.
64371         * build-aux/x-to-1.in: Likewise.
64372         * check-module: Likewise.
64373         * config/srclistvars.sh: Likewise.
64374         * gnulib-tool: Likewise.
64375         * lib/acl-internal.h: Likewise.
64376         * lib/acl.c: Likewise.
64377         * lib/acl.h: Likewise.
64378         * lib/acl_entries.c: Likewise.
64379         * lib/areadlink-with-size.c: Likewise.
64380         * lib/areadlink.c: Likewise.
64381         * lib/areadlink.h: Likewise.
64382         * lib/argmatch.c: Likewise.
64383         * lib/argmatch.h: Likewise.
64384         * lib/argp-ba.c: Likewise.
64385         * lib/argp-eexst.c: Likewise.
64386         * lib/argp-fmtstream.c: Likewise.
64387         * lib/argp-fmtstream.h: Likewise.
64388         * lib/argp-fs-xinl.c: Likewise.
64389         * lib/argp-help.c: Likewise.
64390         * lib/argp-namefrob.h: Likewise.
64391         * lib/argp-parse.c: Likewise.
64392         * lib/argp-pin.c: Likewise.
64393         * lib/argp-pv.c: Likewise.
64394         * lib/argp-pvh.c: Likewise.
64395         * lib/argp-xinl.c: Likewise.
64396         * lib/argp.h: Likewise.
64397         * lib/at-func.c: Likewise.
64398         * lib/atanl.c: Likewise.
64399         * lib/backupfile.c: Likewise.
64400         * lib/backupfile.h: Likewise.
64401         * lib/basename.c: Likewise.
64402         * lib/binary-io.h: Likewise.
64403         * lib/byteswap.in.h: Likewise.
64404         * lib/c-stack.c: Likewise.
64405         * lib/c-stack.h: Likewise.
64406         * lib/c-strcasestr.c: Likewise.
64407         * lib/c-strcasestr.h: Likewise.
64408         * lib/c-strstr.c: Likewise.
64409         * lib/c-strstr.h: Likewise.
64410         * lib/c-strtod.c: Likewise.
64411         * lib/calloc.c: Likewise.
64412         * lib/canon-host.c: Likewise.
64413         * lib/canon-host.h: Likewise.
64414         * lib/canonicalize-lgpl.c: Likewise.
64415         * lib/canonicalize.c: Likewise.
64416         * lib/canonicalize.h: Likewise.
64417         * lib/ceil.c: Likewise.
64418         * lib/ceilf.c: Likewise.
64419         * lib/ceill.c: Likewise.
64420         * lib/chdir-long.c: Likewise.
64421         * lib/chdir-long.h: Likewise.
64422         * lib/chdir-safer.c: Likewise.
64423         * lib/chdir-safer.h: Likewise.
64424         * lib/chown.c: Likewise.
64425         * lib/classpath.c: Likewise.
64426         * lib/classpath.h: Likewise.
64427         * lib/clean-temp.c: Likewise.
64428         * lib/clean-temp.h: Likewise.
64429         * lib/cloexec.c: Likewise.
64430         * lib/close-stream.c: Likewise.
64431         * lib/closein.c: Likewise.
64432         * lib/closein.h: Likewise.
64433         * lib/closeout.c: Likewise.
64434         * lib/closeout.h: Likewise.
64435         * lib/concat-filename.c: Likewise.
64436         * lib/copy-file.c: Likewise.
64437         * lib/copy-file.h: Likewise.
64438         * lib/count-one-bits.h: Likewise.
64439         * lib/crc.c: Likewise.
64440         * lib/crc.h: Likewise.
64441         * lib/creat-safer.c: Likewise.
64442         * lib/csharpcomp.c: Likewise.
64443         * lib/csharpcomp.h: Likewise.
64444         * lib/csharpexec.c: Likewise.
64445         * lib/csharpexec.h: Likewise.
64446         * lib/cycle-check.c: Likewise.
64447         * lib/cycle-check.h: Likewise.
64448         * lib/diacrit.c: Likewise.
64449         * lib/diacrit.h: Likewise.
64450         * lib/diffseq.h: Likewise.
64451         * lib/dirchownmod.c: Likewise.
64452         * lib/dirent.in.h: Likewise.
64453         * lib/dirfd.c: Likewise.
64454         * lib/dirfd.h: Likewise.
64455         * lib/dirname.c: Likewise.
64456         * lib/dirname.h: Likewise.
64457         * lib/dummy.c: Likewise.
64458         * lib/dup-safer.c: Likewise.
64459         * lib/dup2.c: Likewise.
64460         * lib/eealloc.h: Likewise.
64461         * lib/error.c: Likewise.
64462         * lib/error.h: Likewise.
64463         * lib/euidaccess.c: Likewise.
64464         * lib/exclude.c: Likewise.
64465         * lib/exclude.h: Likewise.
64466         * lib/execute.c: Likewise.
64467         * lib/execute.h: Likewise.
64468         * lib/exitfail.c: Likewise.
64469         * lib/exitfail.h: Likewise.
64470         * lib/expl.c: Likewise.
64471         * lib/fatal-signal.c: Likewise.
64472         * lib/fatal-signal.h: Likewise.
64473         * lib/fbufmode.c: Likewise.
64474         * lib/fbufmode.h: Likewise.
64475         * lib/fchdir.c: Likewise.
64476         * lib/fchmodat.c: Likewise.
64477         * lib/fchownat.c: Likewise.
64478         * lib/fcntl--.h: Likewise.
64479         * lib/fcntl-safer.h: Likewise.
64480         * lib/fcntl.in.h: Likewise.
64481         * lib/fd-safer.c: Likewise.
64482         * lib/fflush.c: Likewise.
64483         * lib/file-has-acl.c: Likewise.
64484         * lib/file-set.c: Likewise.
64485         * lib/file-type.c: Likewise.
64486         * lib/file-type.h: Likewise.
64487         * lib/fileblocks.c: Likewise.
64488         * lib/filemode.c: Likewise.
64489         * lib/filemode.h: Likewise.
64490         * lib/filename.h: Likewise.
64491         * lib/filenamecat.c: Likewise.
64492         * lib/filenamecat.h: Likewise.
64493         * lib/findprog.c: Likewise.
64494         * lib/findprog.h: Likewise.
64495         * lib/float.in.h: Likewise.
64496         * lib/floor.c: Likewise.
64497         * lib/floorf.c: Likewise.
64498         * lib/floorl.c: Likewise.
64499         * lib/fopen-safer.c: Likewise.
64500         * lib/fopen.c: Likewise.
64501         * lib/fpending.c: Likewise.
64502         * lib/fpending.h: Likewise.
64503         * lib/fprintf.c: Likewise.
64504         * lib/fprintftime.h: Likewise.
64505         * lib/fpucw.h: Likewise.
64506         * lib/fpurge.c: Likewise.
64507         * lib/fpurge.h: Likewise.
64508         * lib/freadable.c: Likewise.
64509         * lib/freadable.h: Likewise.
64510         * lib/freadahead.c: Likewise.
64511         * lib/freadahead.h: Likewise.
64512         * lib/freading.c: Likewise.
64513         * lib/freading.h: Likewise.
64514         * lib/free.c: Likewise.
64515         * lib/freopen.c: Likewise.
64516         * lib/frexp.c: Likewise.
64517         * lib/frexpl.c: Likewise.
64518         * lib/fseek.c: Likewise.
64519         * lib/fseterr.c: Likewise.
64520         * lib/fseterr.h: Likewise.
64521         * lib/fstatat.c: Likewise.
64522         * lib/fstrcmp.c: Likewise.
64523         * lib/fstrcmp.h: Likewise.
64524         * lib/fsusage.c: Likewise.
64525         * lib/fsusage.h: Likewise.
64526         * lib/ftell.c: Likewise.
64527         * lib/ftello.c: Likewise.
64528         * lib/fts-cycle.c: Likewise.
64529         * lib/fts.c: Likewise.
64530         * lib/fts_.h: Likewise.
64531         * lib/full-read.c: Likewise.
64532         * lib/full-read.h: Likewise.
64533         * lib/full-write.c: Likewise.
64534         * lib/full-write.h: Likewise.
64535         * lib/fwritable.c: Likewise.
64536         * lib/fwritable.h: Likewise.
64537         * lib/fwriteerror.c: Likewise.
64538         * lib/fwriteerror.h: Likewise.
64539         * lib/fwriting.c: Likewise.
64540         * lib/fwriting.h: Likewise.
64541         * lib/gcd.c: Likewise.
64542         * lib/gcd.h: Likewise.
64543         * lib/getcwd.c: Likewise.
64544         * lib/getdate.h: Likewise.
64545         * lib/getdate.y: Likewise.
64546         * lib/getdomainname.c: Likewise.
64547         * lib/getdomainname.h: Likewise.
64548         * lib/getgroups.c: Likewise.
64549         * lib/gethostname.c: Likewise.
64550         * lib/gethrxtime.c: Likewise.
64551         * lib/gethrxtime.h: Likewise.
64552         * lib/getloadavg.c: Likewise.
64553         * lib/getndelim2.c: Likewise.
64554         * lib/getndelim2.h: Likewise.
64555         * lib/getnline.c: Likewise.
64556         * lib/getnline.h: Likewise.
64557         * lib/getopt.c: Likewise.
64558         * lib/getopt.in.h: Likewise.
64559         * lib/getopt1.c: Likewise.
64560         * lib/getopt_int.h: Likewise.
64561         * lib/getpagesize.h: Likewise.
64562         * lib/getsubopt.c: Likewise.
64563         * lib/gettime.c: Likewise.
64564         * lib/getugroups.c: Likewise.
64565         * lib/getugroups.h: Likewise.
64566         * lib/getusershell.c: Likewise.
64567         * lib/gl_anyavltree_list1.h: Likewise.
64568         * lib/gl_anyavltree_list2.h: Likewise.
64569         * lib/gl_anyhash_list1.h: Likewise.
64570         * lib/gl_anyhash_list2.h: Likewise.
64571         * lib/gl_anylinked_list1.h: Likewise.
64572         * lib/gl_anylinked_list2.h: Likewise.
64573         * lib/gl_anyrbtree_list1.h: Likewise.
64574         * lib/gl_anyrbtree_list2.h: Likewise.
64575         * lib/gl_anytree_list1.h: Likewise.
64576         * lib/gl_anytree_list2.h: Likewise.
64577         * lib/gl_anytree_oset.h: Likewise.
64578         * lib/gl_anytreehash_list1.h: Likewise.
64579         * lib/gl_anytreehash_list2.h: Likewise.
64580         * lib/gl_array_list.c: Likewise.
64581         * lib/gl_array_list.h: Likewise.
64582         * lib/gl_array_oset.c: Likewise.
64583         * lib/gl_array_oset.h: Likewise.
64584         * lib/gl_avltree_list.c: Likewise.
64585         * lib/gl_avltree_list.h: Likewise.
64586         * lib/gl_avltree_oset.c: Likewise.
64587         * lib/gl_avltree_oset.h: Likewise.
64588         * lib/gl_avltreehash_list.c: Likewise.
64589         * lib/gl_avltreehash_list.h: Likewise.
64590         * lib/gl_carray_list.c: Likewise.
64591         * lib/gl_carray_list.h: Likewise.
64592         * lib/gl_linked_list.c: Likewise.
64593         * lib/gl_linked_list.h: Likewise.
64594         * lib/gl_linkedhash_list.c: Likewise.
64595         * lib/gl_linkedhash_list.h: Likewise.
64596         * lib/gl_list.c: Likewise.
64597         * lib/gl_list.h: Likewise.
64598         * lib/gl_oset.c: Likewise.
64599         * lib/gl_oset.h: Likewise.
64600         * lib/gl_rbtree_list.c: Likewise.
64601         * lib/gl_rbtree_list.h: Likewise.
64602         * lib/gl_rbtree_oset.c: Likewise.
64603         * lib/gl_rbtree_oset.h: Likewise.
64604         * lib/gl_rbtreehash_list.c: Likewise.
64605         * lib/gl_rbtreehash_list.h: Likewise.
64606         * lib/gl_sublist.c: Likewise.
64607         * lib/gl_sublist.h: Likewise.
64608         * lib/group-member.c: Likewise.
64609         * lib/group-member.h: Likewise.
64610         * lib/hard-locale.c: Likewise.
64611         * lib/hard-locale.h: Likewise.
64612         * lib/hash-pjw.c: Likewise.
64613         * lib/hash-pjw.h: Likewise.
64614         * lib/hash-triple.c: Likewise.
64615         * lib/hash.c: Likewise.
64616         * lib/hash.h: Likewise.
64617         * lib/human.c: Likewise.
64618         * lib/human.h: Likewise.
64619         * lib/i-ring.c: Likewise.
64620         * lib/i-ring.h: Likewise.
64621         * lib/idcache.c: Likewise.
64622         * lib/imaxabs.c: Likewise.
64623         * lib/imaxdiv.c: Likewise.
64624         * lib/inet_pton.c: Likewise.
64625         * lib/inet_pton.h: Likewise.
64626         * lib/intprops.h: Likewise.
64627         * lib/inttostr.c: Likewise.
64628         * lib/inttostr.h: Likewise.
64629         * lib/inttypes.in.h: Likewise.
64630         * lib/isapipe.c: Likewise.
64631         * lib/isdir.c: Likewise.
64632         * lib/isnan.c: Likewise.
64633         * lib/isnan.h: Likewise.
64634         * lib/isnanf.c: Likewise.
64635         * lib/isnanf.h: Likewise.
64636         * lib/isnanl-nolibm.h: Likewise.
64637         * lib/isnanl.c: Likewise.
64638         * lib/isnanl.h: Likewise.
64639         * lib/javacomp.c: Likewise.
64640         * lib/javacomp.h: Likewise.
64641         * lib/javaexec.c: Likewise.
64642         * lib/javaexec.h: Likewise.
64643         * lib/javaversion.c: Likewise.
64644         * lib/javaversion.h: Likewise.
64645         * lib/javaversion.java: Likewise.
64646         * lib/lbrkprop.h: Likewise.
64647         * lib/lchmod.h: Likewise.
64648         * lib/lchown.c: Likewise.
64649         * lib/ldexpl.c: Likewise.
64650         * lib/linebreak.c: Likewise.
64651         * lib/linebreak.h: Likewise.
64652         * lib/linebuffer.c: Likewise.
64653         * lib/linebuffer.h: Likewise.
64654         * lib/locale.in.h: Likewise.
64655         * lib/logl.c: Likewise.
64656         * lib/long-options.c: Likewise.
64657         * lib/long-options.h: Likewise.
64658         * lib/lstat.c: Likewise.
64659         * lib/lstat.h: Likewise.
64660         * lib/math.in.h: Likewise.
64661         * lib/mbchar.c: Likewise.
64662         * lib/mbchar.h: Likewise.
64663         * lib/mbfile.h: Likewise.
64664         * lib/mbiter.h: Likewise.
64665         * lib/mbscasecmp.c: Likewise.
64666         * lib/mbscasestr.c: Likewise.
64667         * lib/mbschr.c: Likewise.
64668         * lib/mbscspn.c: Likewise.
64669         * lib/mbslen.c: Likewise.
64670         * lib/mbsncasecmp.c: Likewise.
64671         * lib/mbsnlen.c: Likewise.
64672         * lib/mbspbrk.c: Likewise.
64673         * lib/mbspcasecmp.c: Likewise.
64674         * lib/mbsrchr.c: Likewise.
64675         * lib/mbssep.c: Likewise.
64676         * lib/mbsspn.c: Likewise.
64677         * lib/mbsstr.c: Likewise.
64678         * lib/mbstok_r.c: Likewise.
64679         * lib/mbswidth.c: Likewise.
64680         * lib/mbswidth.h: Likewise.
64681         * lib/mbuiter.h: Likewise.
64682         * lib/memcasecmp.c: Likewise.
64683         * lib/memcasecmp.h: Likewise.
64684         * lib/memchr.c: Likewise.
64685         * lib/memcmp.c: Likewise.
64686         * lib/memcoll.c: Likewise.
64687         * lib/memcoll.h: Likewise.
64688         * lib/memcpy.c: Likewise.
64689         * lib/memrchr.c: Likewise.
64690         * lib/mkancesdirs.c: Likewise.
64691         * lib/mkdir-p.c: Likewise.
64692         * lib/mkdir-p.h: Likewise.
64693         * lib/mkdir.c: Likewise.
64694         * lib/mkdirat.c: Likewise.
64695         * lib/mkdtemp.c: Likewise.
64696         * lib/mkstemp-safer.c: Likewise.
64697         * lib/mkstemp.c: Likewise.
64698         * lib/modechange.c: Likewise.
64699         * lib/modechange.h: Likewise.
64700         * lib/mountlist.c: Likewise.
64701         * lib/mountlist.h: Likewise.
64702         * lib/mpsort.c: Likewise.
64703         * lib/nanosleep.c: Likewise.
64704         * lib/obstack.c: Likewise.
64705         * lib/obstack.h: Likewise.
64706         * lib/open-safer.c: Likewise.
64707         * lib/open.c: Likewise.
64708         * lib/openat-die.c: Likewise.
64709         * lib/openat-priv.h: Likewise.
64710         * lib/openat-proc.c: Likewise.
64711         * lib/openat.c: Likewise.
64712         * lib/openat.h: Likewise.
64713         * lib/pagealign_alloc.c: Likewise.
64714         * lib/pagealign_alloc.h: Likewise.
64715         * lib/physmem.c: Likewise.
64716         * lib/physmem.h: Likewise.
64717         * lib/pipe-safer.c: Likewise.
64718         * lib/pipe.c: Likewise.
64719         * lib/pipe.h: Likewise.
64720         * lib/posixtm.c: Likewise.
64721         * lib/posixtm.h: Likewise.
64722         * lib/posixver.c: Likewise.
64723         * lib/printf-frexp.c: Likewise.
64724         * lib/printf-frexp.h: Likewise.
64725         * lib/printf-frexpl.c: Likewise.
64726         * lib/printf-frexpl.h: Likewise.
64727         * lib/printf.c: Likewise.
64728         * lib/progname.c: Likewise.
64729         * lib/progname.h: Likewise.
64730         * lib/progreloc.c: Likewise.
64731         * lib/putenv.c: Likewise.
64732         * lib/quote.c: Likewise.
64733         * lib/quote.h: Likewise.
64734         * lib/quotearg.c: Likewise.
64735         * lib/quotearg.h: Likewise.
64736         * lib/raise.c: Likewise.
64737         * lib/readline.c: Likewise.
64738         * lib/readline.h: Likewise.
64739         * lib/readlink.c: Likewise.
64740         * lib/readtokens.c: Likewise.
64741         * lib/readtokens.h: Likewise.
64742         * lib/readtokens0.c: Likewise.
64743         * lib/readtokens0.h: Likewise.
64744         * lib/readutmp.c: Likewise.
64745         * lib/readutmp.h: Likewise.
64746         * lib/realloc.c: Likewise.
64747         * lib/relocwrapper.c: Likewise.
64748         * lib/rename-dest-slash.c: Likewise.
64749         * lib/rename.c: Likewise.
64750         * lib/rmdir.c: Likewise.
64751         * lib/rpmatch.c: Likewise.
64752         * lib/safe-read.c: Likewise.
64753         * lib/safe-read.h: Likewise.
64754         * lib/safe-write.c: Likewise.
64755         * lib/safe-write.h: Likewise.
64756         * lib/same-inode.h: Likewise.
64757         * lib/same.c: Likewise.
64758         * lib/same.h: Likewise.
64759         * lib/save-cwd.c: Likewise.
64760         * lib/save-cwd.h: Likewise.
64761         * lib/savedir.c: Likewise.
64762         * lib/savedir.h: Likewise.
64763         * lib/savewd.c: Likewise.
64764         * lib/savewd.h: Likewise.
64765         * lib/search.in.h: Likewise.
64766         * lib/setenv.c: Likewise.
64767         * lib/setenv.h: Likewise.
64768         * lib/settime.c: Likewise.
64769         * lib/sh-quote.c: Likewise.
64770         * lib/sh-quote.h: Likewise.
64771         * lib/sig2str.c: Likewise.
64772         * lib/sig2str.h: Likewise.
64773         * lib/signal.in.h: Likewise.
64774         * lib/signbitd.c: Likewise.
64775         * lib/signbitf.c: Likewise.
64776         * lib/signbitl.c: Likewise.
64777         * lib/sigprocmask.c: Likewise.
64778         * lib/sincosl.c: Likewise.
64779         * lib/sleep.c: Likewise.
64780         * lib/sprintf.c: Likewise.
64781         * lib/sqrtl.c: Likewise.
64782         * lib/stat-time.h: Likewise.
64783         * lib/stdio--.h: Likewise.
64784         * lib/stdio-safer.h: Likewise.
64785         * lib/stdlib--.h: Likewise.
64786         * lib/stdlib-safer.h: Likewise.
64787         * lib/stdlib.in.h: Likewise.
64788         * lib/stpcpy.c: Likewise.
64789         * lib/stpncpy.c: Likewise.
64790         * lib/strchrnul.c: Likewise.
64791         * lib/strcspn.c: Likewise.
64792         * lib/strerror.c: Likewise.
64793         * lib/strftime.c: Likewise.
64794         * lib/strftime.h: Likewise.
64795         * lib/striconveh.c: Likewise.
64796         * lib/striconveh.h: Likewise.
64797         * lib/striconveha.c: Likewise.
64798         * lib/striconveha.h: Likewise.
64799         * lib/stripslash.c: Likewise.
64800         * lib/strnlen1.c: Likewise.
64801         * lib/strnlen1.h: Likewise.
64802         * lib/strtod.c: Likewise.
64803         * lib/strtoimax.c: Likewise.
64804         * lib/strtok_r.c: Likewise.
64805         * lib/strtol.c: Likewise.
64806         * lib/strtoll.c: Likewise.
64807         * lib/strtoul.c: Likewise.
64808         * lib/strtoull.c: Likewise.
64809         * lib/sysexits.in.h: Likewise.
64810         * lib/tempname.c: Likewise.
64811         * lib/tempname.h: Likewise.
64812         * lib/timespec.h: Likewise.
64813         * lib/tls.c: Likewise.
64814         * lib/tls.h: Likewise.
64815         * lib/tmpdir.c: Likewise.
64816         * lib/tmpdir.h: Likewise.
64817         * lib/tmpfile-safer.c: Likewise.
64818         * lib/tmpfile.c: Likewise.
64819         * lib/trigl.c: Likewise.
64820         * lib/trigl.h: Likewise.
64821         * lib/trim.c: Likewise.
64822         * lib/trim.h: Likewise.
64823         * lib/trunc.c: Likewise.
64824         * lib/truncf.c: Likewise.
64825         * lib/truncl.c: Likewise.
64826         * lib/tsearch.c: Likewise.
64827         * lib/unicodeio.c: Likewise.
64828         * lib/unicodeio.h: Likewise.
64829         * lib/unistd--.h: Likewise.
64830         * lib/unistd-safer.h: Likewise.
64831         * lib/unistdio/ulc-fprintf.c: Likewise.
64832         * lib/unistdio/ulc-vfprintf.c: Likewise.
64833         * lib/unlinkdir.c: Likewise.
64834         * lib/unlinkdir.h: Likewise.
64835         * lib/unlocked-io.h: Likewise.
64836         * lib/unsetenv.c: Likewise.
64837         * lib/userspec.c: Likewise.
64838         * lib/utime.c: Likewise.
64839         * lib/utimecmp.c: Likewise.
64840         * lib/utimecmp.h: Likewise.
64841         * lib/utimens.c: Likewise.
64842         * lib/verify.h: Likewise.
64843         * lib/verror.c: Likewise.
64844         * lib/verror.h: Likewise.
64845         * lib/version-etc-fsf.c: Likewise.
64846         * lib/version-etc.c: Likewise.
64847         * lib/version-etc.h: Likewise.
64848         * lib/vfprintf.c: Likewise.
64849         * lib/vprintf.c: Likewise.
64850         * lib/vsprintf.c: Likewise.
64851         * lib/w32spawn.h: Likewise.
64852         * lib/wait-process.c: Likewise.
64853         * lib/wait-process.h: Likewise.
64854         * lib/wcwidth.c: Likewise.
64855         * lib/write-any-file.c: Likewise.
64856         * lib/xalloc-die.c: Likewise.
64857         * lib/xalloc.h: Likewise.
64858         * lib/xasprintf.c: Likewise.
64859         * lib/xgetcwd.c: Likewise.
64860         * lib/xgetcwd.h: Likewise.
64861         * lib/xgetdomainname.c: Likewise.
64862         * lib/xgetdomainname.h: Likewise.
64863         * lib/xgethostname.c: Likewise.
64864         * lib/xmalloc.c: Likewise.
64865         * lib/xmalloca.c: Likewise.
64866         * lib/xmalloca.h: Likewise.
64867         * lib/xmemcoll.c: Likewise.
64868         * lib/xnanosleep.c: Likewise.
64869         * lib/xreadlink.c: Likewise.
64870         * lib/xreadlink.h: Likewise.
64871         * lib/xsetenv.c: Likewise.
64872         * lib/xsetenv.h: Likewise.
64873         * lib/xstriconv.c: Likewise.
64874         * lib/xstriconv.h: Likewise.
64875         * lib/xstrndup.c: Likewise.
64876         * lib/xstrndup.h: Likewise.
64877         * lib/xstrtod.c: Likewise.
64878         * lib/xstrtod.h: Likewise.
64879         * lib/xstrtol-error.c: Likewise.
64880         * lib/xstrtol.c: Likewise.
64881         * lib/xstrtol.h: Likewise.
64882         * lib/xtime.h: Likewise.
64883         * lib/xvasprintf.c: Likewise.
64884         * lib/xvasprintf.h: Likewise.
64885         * lib/yesno.c: Likewise.
64886         * lib/yesno.h: Likewise.
64887         * posix-modules: Likewise.
64888         * tests/test-alloca-opt.c: Likewise.
64889         * tests/test-arcfour.c: Likewise.
64890         * tests/test-arctwo.c: Likewise.
64891         * tests/test-argmatch.c: Likewise.
64892         * tests/test-argp-2.sh: Likewise.
64893         * tests/test-argp.c: Likewise.
64894         * tests/test-arpa_inet.c: Likewise.
64895         * tests/test-array_list.c: Likewise.
64896         * tests/test-array_oset.c: Likewise.
64897         * tests/test-atexit.c: Likewise.
64898         * tests/test-avltree_list.c: Likewise.
64899         * tests/test-avltree_oset.c: Likewise.
64900         * tests/test-avltreehash_list.c: Likewise.
64901         * tests/test-base64.c: Likewise.
64902         * tests/test-binary-io.c: Likewise.
64903         * tests/test-byteswap.c: Likewise.
64904         * tests/test-c-ctype.c: Likewise.
64905         * tests/test-c-strcasecmp.c: Likewise.
64906         * tests/test-c-strcasestr.c: Likewise.
64907         * tests/test-c-strncasecmp.c: Likewise.
64908         * tests/test-c-strstr.c: Likewise.
64909         * tests/test-canonicalize-lgpl.c: Likewise.
64910         * tests/test-canonicalize.c: Likewise.
64911         * tests/test-carray_list.c: Likewise.
64912         * tests/test-ceilf.c: Likewise.
64913         * tests/test-ceill.c: Likewise.
64914         * tests/test-count-one-bits.c: Likewise.
64915         * tests/test-crc.c: Likewise.
64916         * tests/test-dirname.c: Likewise.
64917         * tests/test-fbufmode.c: Likewise.
64918         * tests/test-fcntl.c: Likewise.
64919         * tests/test-fflush.c: Likewise.
64920         * tests/test-floorf.c: Likewise.
64921         * tests/test-floorl.c: Likewise.
64922         * tests/test-fopen.c: Likewise.
64923         * tests/test-fprintf-posix.c: Likewise.
64924         * tests/test-fprintf-posix.h: Likewise.
64925         * tests/test-fpurge.c: Likewise.
64926         * tests/test-freadable.c: Likewise.
64927         * tests/test-freadahead.c: Likewise.
64928         * tests/test-freading.c: Likewise.
64929         * tests/test-freopen.c: Likewise.
64930         * tests/test-frexp.c: Likewise.
64931         * tests/test-frexpl.c: Likewise.
64932         * tests/test-fseek.c: Likewise.
64933         * tests/test-fseeko.c: Likewise.
64934         * tests/test-fseterr.c: Likewise.
64935         * tests/test-fstrcmp.c: Likewise.
64936         * tests/test-ftell.c: Likewise.
64937         * tests/test-ftello.c: Likewise.
64938         * tests/test-fwritable.c: Likewise.
64939         * tests/test-fwriting.c: Likewise.
64940         * tests/test-getaddrinfo.c: Likewise.
64941         * tests/test-getpass.c: Likewise.
64942         * tests/test-gettimeofday.c: Likewise.
64943         * tests/test-hmac-md5.c: Likewise.
64944         * tests/test-hmac-sha1.c: Likewise.
64945         * tests/test-iconv.c: Likewise.
64946         * tests/test-iconvme.c: Likewise.
64947         * tests/test-inttypes.c: Likewise.
64948         * tests/test-isnan.c: Likewise.
64949         * tests/test-isnanf.c: Likewise.
64950         * tests/test-isnanl-nolibm.c: Likewise.
64951         * tests/test-isnanl.c: Likewise.
64952         * tests/test-isnanl.h: Likewise.
64953         * tests/test-ldexpl.c: Likewise.
64954         * tests/test-linked_list.c: Likewise.
64955         * tests/test-linkedhash_list.c: Likewise.
64956         * tests/test-locale.c: Likewise.
64957         * tests/test-localename.c: Likewise.
64958         * tests/test-lock.c: Likewise.
64959         * tests/test-lseek.c: Likewise.
64960         * tests/test-malloca.c: Likewise.
64961         * tests/test-math.c: Likewise.
64962         * tests/test-mbscasecmp.c: Likewise.
64963         * tests/test-mbscasestr1.c: Likewise.
64964         * tests/test-mbscasestr2.c: Likewise.
64965         * tests/test-mbscasestr3.c: Likewise.
64966         * tests/test-mbscasestr4.c: Likewise.
64967         * tests/test-mbschr.c: Likewise.
64968         * tests/test-mbscspn.c: Likewise.
64969         * tests/test-mbsncasecmp.c: Likewise.
64970         * tests/test-mbspbrk.c: Likewise.
64971         * tests/test-mbspcasecmp.c: Likewise.
64972         * tests/test-mbsrchr.c: Likewise.
64973         * tests/test-mbsspn.c: Likewise.
64974         * tests/test-mbsstr1.c: Likewise.
64975         * tests/test-mbsstr2.c: Likewise.
64976         * tests/test-mbsstr3.c: Likewise.
64977         * tests/test-md5.c: Likewise.
64978         * tests/test-memmem.c: Likewise.
64979         * tests/test-netinet_in.c: Likewise.
64980         * tests/test-open.c: Likewise.
64981         * tests/test-printf-frexp.c: Likewise.
64982         * tests/test-printf-frexpl.c: Likewise.
64983         * tests/test-printf-posix.c: Likewise.
64984         * tests/test-printf-posix.h: Likewise.
64985         * tests/test-rbtree_list.c: Likewise.
64986         * tests/test-rbtree_oset.c: Likewise.
64987         * tests/test-rbtreehash_list.c: Likewise.
64988         * tests/test-read-file.c: Likewise.
64989         * tests/test-rijndael.c: Likewise.
64990         * tests/test-search.c: Likewise.
64991         * tests/test-signbit.c: Likewise.
64992         * tests/test-sleep.c: Likewise.
64993         * tests/test-snprintf-posix.c: Likewise.
64994         * tests/test-snprintf-posix.h: Likewise.
64995         * tests/test-snprintf.c: Likewise.
64996         * tests/test-sprintf-posix.c: Likewise.
64997         * tests/test-sprintf-posix.h: Likewise.
64998         * tests/test-stat-time.c: Likewise.
64999         * tests/test-stdbool.c: Likewise.
65000         * tests/test-stdint.c: Likewise.
65001         * tests/test-stdio.c: Likewise.
65002         * tests/test-stdlib.c: Likewise.
65003         * tests/test-stpncpy.c: Likewise.
65004         * tests/test-strcasestr.c: Likewise.
65005         * tests/test-striconv.c: Likewise.
65006         * tests/test-striconveh.c: Likewise.
65007         * tests/test-striconveha.c: Likewise.
65008         * tests/test-string.c: Likewise.
65009         * tests/test-sys_select.c: Likewise.
65010         * tests/test-sys_socket.c: Likewise.
65011         * tests/test-sys_stat.c: Likewise.
65012         * tests/test-sys_time.c: Likewise.
65013         * tests/test-sysexits.c: Likewise.
65014         * tests/test-time.c: Likewise.
65015         * tests/test-tls.c: Likewise.
65016         * tests/test-trunc.c: Likewise.
65017         * tests/test-truncf.c: Likewise.
65018         * tests/test-truncl.c: Likewise.
65019         * tests/test-unistd.c: Likewise.
65020         * tests/test-vasnprintf-posix.c: Likewise.
65021         * tests/test-vasnprintf-posix2.c: Likewise.
65022         * tests/test-vasnprintf.c: Likewise.
65023         * tests/test-vasprintf-posix.c: Likewise.
65024         * tests/test-vasprintf.c: Likewise.
65025         * tests/test-verify.c: Likewise.
65026         * tests/test-vfprintf-posix.c: Likewise.
65027         * tests/test-vprintf-posix.c: Likewise.
65028         * tests/test-vsnprintf-posix.c: Likewise.
65029         * tests/test-vsnprintf.c: Likewise.
65030         * tests/test-vsprintf-posix.c: Likewise.
65031         * tests/test-wchar.c: Likewise.
65032         * tests/test-wctype.c: Likewise.
65033         * tests/test-wcwidth.c: Likewise.
65034         * tests/test-xstrtol.c: Likewise.
65035         * tests/test-xvasprintf.c: Likewise.
65036         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
65037         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
65038         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65039         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65040         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65041         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
65042         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65043         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65044         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65045         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
65046         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65047         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65048         * tests/uniname/test-uninames.c: Likewise.
65049         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
65050         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
65051         * tests/unistdio/test-u16-printf1.h: Likewise.
65052         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
65053         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
65054         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
65055         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
65056         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
65057         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
65058         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
65059         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
65060         * tests/unistdio/test-u32-printf1.h: Likewise.
65061         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
65062         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
65063         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
65064         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
65065         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
65066         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
65067         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
65068         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
65069         * tests/unistdio/test-u8-printf1.h: Likewise.
65070         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
65071         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
65072         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
65073         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
65074         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
65075         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
65076         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
65077         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
65078         * tests/unistdio/test-ulc-printf1.h: Likewise.
65079         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
65080         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
65081         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
65082         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
65083         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
65084         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
65085         * tests/uniwidth/test-u16-strwidth.c: Likewise.
65086         * tests/uniwidth/test-u16-width.c: Likewise.
65087         * tests/uniwidth/test-u32-strwidth.c: Likewise.
65088         * tests/uniwidth/test-u32-width.c: Likewise.
65089         * tests/uniwidth/test-u8-strwidth.c: Likewise.
65090         * tests/uniwidth/test-u8-width.c: Likewise.
65091         * tests/uniwidth/test-uc_width.c: Likewise.
65092         * config/srclist-update: Likewise.
65093         (fixlicense): Update to GPLv3+.
65094
65095         Change copyright notice from LGPLv2.1+ to LGPLv3+.
65096         * tests/test-tsearch.c: Change copyright notice.
65097
65098         Change copyright notice from LGPLv2.0+ to LGPLv3+.
65099         * lib/c-strcaseeq.h: Change copyright notice.
65100         * lib/streq.h: Likewise.
65101         * lib/uniconv.h: Likewise.
65102         * lib/uniconv/u-conv-from-enc.h: Likewise.
65103         * lib/uniconv/u-conv-to-enc.h: Likewise.
65104         * lib/uniconv/u-strconv-from-enc.h: Likewise.
65105         * lib/uniconv/u-strconv-to-enc.h: Likewise.
65106         * lib/uniconv/u16-conv-from-enc.c: Likewise.
65107         * lib/uniconv/u16-conv-to-enc.c: Likewise.
65108         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
65109         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
65110         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
65111         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
65112         * lib/uniconv/u32-conv-from-enc.c: Likewise.
65113         * lib/uniconv/u32-conv-to-enc.c: Likewise.
65114         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
65115         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
65116         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
65117         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
65118         * lib/uniconv/u8-conv-from-enc.c: Likewise.
65119         * lib/uniconv/u8-conv-to-enc.c: Likewise.
65120         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
65121         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
65122         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
65123         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
65124         * lib/uniname.h: Likewise.
65125         * lib/uniname/uniname.c: Likewise.
65126         * lib/unistdio.h: Likewise.
65127         * lib/unistdio/u-asnprintf.h: Likewise.
65128         * lib/unistdio/u-asprintf.h: Likewise.
65129         * lib/unistdio/u-printf-args.c: Likewise.
65130         * lib/unistdio/u-printf-args.h: Likewise.
65131         * lib/unistdio/u-printf-parse.h: Likewise.
65132         * lib/unistdio/u-snprintf.h: Likewise.
65133         * lib/unistdio/u-sprintf.h: Likewise.
65134         * lib/unistdio/u-vasprintf.h: Likewise.
65135         * lib/unistdio/u-vsnprintf.h: Likewise.
65136         * lib/unistdio/u-vsprintf.h: Likewise.
65137         * lib/unistdio/u16-asnprintf.c: Likewise.
65138         * lib/unistdio/u16-asprintf.c: Likewise.
65139         * lib/unistdio/u16-printf-parse.c: Likewise.
65140         * lib/unistdio/u16-snprintf.c: Likewise.
65141         * lib/unistdio/u16-sprintf.c: Likewise.
65142         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
65143         * lib/unistdio/u16-u16-asprintf.c: Likewise.
65144         * lib/unistdio/u16-u16-snprintf.c: Likewise.
65145         * lib/unistdio/u16-u16-sprintf.c: Likewise.
65146         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
65147         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
65148         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
65149         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
65150         * lib/unistdio/u16-vasnprintf.c: Likewise.
65151         * lib/unistdio/u16-vasprintf.c: Likewise.
65152         * lib/unistdio/u16-vsnprintf.c: Likewise.
65153         * lib/unistdio/u16-vsprintf.c: Likewise.
65154         * lib/unistdio/u32-asnprintf.c: Likewise.
65155         * lib/unistdio/u32-asprintf.c: Likewise.
65156         * lib/unistdio/u32-printf-parse.c: Likewise.
65157         * lib/unistdio/u32-snprintf.c: Likewise.
65158         * lib/unistdio/u32-sprintf.c: Likewise.
65159         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
65160         * lib/unistdio/u32-u32-asprintf.c: Likewise.
65161         * lib/unistdio/u32-u32-snprintf.c: Likewise.
65162         * lib/unistdio/u32-u32-sprintf.c: Likewise.
65163         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
65164         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
65165         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
65166         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
65167         * lib/unistdio/u32-vasnprintf.c: Likewise.
65168         * lib/unistdio/u32-vasprintf.c: Likewise.
65169         * lib/unistdio/u32-vsnprintf.c: Likewise.
65170         * lib/unistdio/u32-vsprintf.c: Likewise.
65171         * lib/unistdio/u8-asnprintf.c: Likewise.
65172         * lib/unistdio/u8-asprintf.c: Likewise.
65173         * lib/unistdio/u8-printf-parse.c: Likewise.
65174         * lib/unistdio/u8-snprintf.c: Likewise.
65175         * lib/unistdio/u8-sprintf.c: Likewise.
65176         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
65177         * lib/unistdio/u8-u8-asprintf.c: Likewise.
65178         * lib/unistdio/u8-u8-snprintf.c: Likewise.
65179         * lib/unistdio/u8-u8-sprintf.c: Likewise.
65180         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
65181         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
65182         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
65183         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
65184         * lib/unistdio/u8-vasnprintf.c: Likewise.
65185         * lib/unistdio/u8-vasprintf.c: Likewise.
65186         * lib/unistdio/u8-vsnprintf.c: Likewise.
65187         * lib/unistdio/u8-vsprintf.c: Likewise.
65188         * lib/unistdio/ulc-asnprintf.c: Likewise.
65189         * lib/unistdio/ulc-asprintf.c: Likewise.
65190         * lib/unistdio/ulc-printf-parse.c: Likewise.
65191         * lib/unistdio/ulc-snprintf.c: Likewise.
65192         * lib/unistdio/ulc-sprintf.c: Likewise.
65193         * lib/unistdio/ulc-vasnprintf.c: Likewise.
65194         * lib/unistdio/ulc-vasprintf.c: Likewise.
65195         * lib/unistdio/ulc-vsnprintf.c: Likewise.
65196         * lib/unistdio/ulc-vsprintf.c: Likewise.
65197         * lib/unistr.h: Likewise.
65198         * lib/unistr/u-cpy-alloc.h: Likewise.
65199         * lib/unistr/u-cpy.h: Likewise.
65200         * lib/unistr/u-endswith.h: Likewise.
65201         * lib/unistr/u-move.h: Likewise.
65202         * lib/unistr/u-set.h: Likewise.
65203         * lib/unistr/u-startswith.h: Likewise.
65204         * lib/unistr/u-stpcpy.h: Likewise.
65205         * lib/unistr/u-stpncpy.h: Likewise.
65206         * lib/unistr/u-strcat.h: Likewise.
65207         * lib/unistr/u-strcpy.h: Likewise.
65208         * lib/unistr/u-strcspn.h: Likewise.
65209         * lib/unistr/u-strdup.h: Likewise.
65210         * lib/unistr/u-strlen.h: Likewise.
65211         * lib/unistr/u-strncat.h: Likewise.
65212         * lib/unistr/u-strncpy.h: Likewise.
65213         * lib/unistr/u-strnlen.h: Likewise.
65214         * lib/unistr/u-strpbrk.h: Likewise.
65215         * lib/unistr/u-strspn.h: Likewise.
65216         * lib/unistr/u-strstr.h: Likewise.
65217         * lib/unistr/u-strtok.h: Likewise.
65218         * lib/unistr/u16-check.c: Likewise.
65219         * lib/unistr/u16-chr.c: Likewise.
65220         * lib/unistr/u16-cmp.c: Likewise.
65221         * lib/unistr/u16-cpy-alloc.c: Likewise.
65222         * lib/unistr/u16-cpy.c: Likewise.
65223         * lib/unistr/u16-endswith.c: Likewise.
65224         * lib/unistr/u16-mblen.c: Likewise.
65225         * lib/unistr/u16-mbsnlen.c: Likewise.
65226         * lib/unistr/u16-mbtouc-aux.c: Likewise.
65227         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
65228         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
65229         * lib/unistr/u16-mbtouc.c: Likewise.
65230         * lib/unistr/u16-mbtoucr.c: Likewise.
65231         * lib/unistr/u16-move.c: Likewise.
65232         * lib/unistr/u16-next.c: Likewise.
65233         * lib/unistr/u16-prev.c: Likewise.
65234         * lib/unistr/u16-set.c: Likewise.
65235         * lib/unistr/u16-startswith.c: Likewise.
65236         * lib/unistr/u16-stpcpy.c: Likewise.
65237         * lib/unistr/u16-stpncpy.c: Likewise.
65238         * lib/unistr/u16-strcat.c: Likewise.
65239         * lib/unistr/u16-strchr.c: Likewise.
65240         * lib/unistr/u16-strcmp.c: Likewise.
65241         * lib/unistr/u16-strcpy.c: Likewise.
65242         * lib/unistr/u16-strcspn.c: Likewise.
65243         * lib/unistr/u16-strdup.c: Likewise.
65244         * lib/unistr/u16-strlen.c: Likewise.
65245         * lib/unistr/u16-strmblen.c: Likewise.
65246         * lib/unistr/u16-strmbtouc.c: Likewise.
65247         * lib/unistr/u16-strncat.c: Likewise.
65248         * lib/unistr/u16-strncmp.c: Likewise.
65249         * lib/unistr/u16-strncpy.c: Likewise.
65250         * lib/unistr/u16-strnlen.c: Likewise.
65251         * lib/unistr/u16-strpbrk.c: Likewise.
65252         * lib/unistr/u16-strrchr.c: Likewise.
65253         * lib/unistr/u16-strspn.c: Likewise.
65254         * lib/unistr/u16-strstr.c: Likewise.
65255         * lib/unistr/u16-strtok.c: Likewise.
65256         * lib/unistr/u16-to-u32.c: Likewise.
65257         * lib/unistr/u16-to-u8.c: Likewise.
65258         * lib/unistr/u16-uctomb-aux.c: Likewise.
65259         * lib/unistr/u16-uctomb.c: Likewise.
65260         * lib/unistr/u32-check.c: Likewise.
65261         * lib/unistr/u32-chr.c: Likewise.
65262         * lib/unistr/u32-cmp.c: Likewise.
65263         * lib/unistr/u32-cpy-alloc.c: Likewise.
65264         * lib/unistr/u32-cpy.c: Likewise.
65265         * lib/unistr/u32-endswith.c: Likewise.
65266         * lib/unistr/u32-mblen.c: Likewise.
65267         * lib/unistr/u32-mbsnlen.c: Likewise.
65268         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
65269         * lib/unistr/u32-mbtouc.c: Likewise.
65270         * lib/unistr/u32-mbtoucr.c: Likewise.
65271         * lib/unistr/u32-move.c: Likewise.
65272         * lib/unistr/u32-next.c: Likewise.
65273         * lib/unistr/u32-prev.c: Likewise.
65274         * lib/unistr/u32-set.c: Likewise.
65275         * lib/unistr/u32-startswith.c: Likewise.
65276         * lib/unistr/u32-stpcpy.c: Likewise.
65277         * lib/unistr/u32-stpncpy.c: Likewise.
65278         * lib/unistr/u32-strcat.c: Likewise.
65279         * lib/unistr/u32-strchr.c: Likewise.
65280         * lib/unistr/u32-strcmp.c: Likewise.
65281         * lib/unistr/u32-strcpy.c: Likewise.
65282         * lib/unistr/u32-strcspn.c: Likewise.
65283         * lib/unistr/u32-strdup.c: Likewise.
65284         * lib/unistr/u32-strlen.c: Likewise.
65285         * lib/unistr/u32-strmblen.c: Likewise.
65286         * lib/unistr/u32-strmbtouc.c: Likewise.
65287         * lib/unistr/u32-strncat.c: Likewise.
65288         * lib/unistr/u32-strncmp.c: Likewise.
65289         * lib/unistr/u32-strncpy.c: Likewise.
65290         * lib/unistr/u32-strnlen.c: Likewise.
65291         * lib/unistr/u32-strpbrk.c: Likewise.
65292         * lib/unistr/u32-strrchr.c: Likewise.
65293         * lib/unistr/u32-strspn.c: Likewise.
65294         * lib/unistr/u32-strstr.c: Likewise.
65295         * lib/unistr/u32-strtok.c: Likewise.
65296         * lib/unistr/u32-to-u16.c: Likewise.
65297         * lib/unistr/u32-to-u8.c: Likewise.
65298         * lib/unistr/u32-uctomb.c: Likewise.
65299         * lib/unistr/u8-check.c: Likewise.
65300         * lib/unistr/u8-chr.c: Likewise.
65301         * lib/unistr/u8-cmp.c: Likewise.
65302         * lib/unistr/u8-cpy-alloc.c: Likewise.
65303         * lib/unistr/u8-cpy.c: Likewise.
65304         * lib/unistr/u8-endswith.c: Likewise.
65305         * lib/unistr/u8-mblen.c: Likewise.
65306         * lib/unistr/u8-mbsnlen.c: Likewise.
65307         * lib/unistr/u8-mbtouc-aux.c: Likewise.
65308         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
65309         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
65310         * lib/unistr/u8-mbtouc.c: Likewise.
65311         * lib/unistr/u8-mbtoucr.c: Likewise.
65312         * lib/unistr/u8-move.c: Likewise.
65313         * lib/unistr/u8-next.c: Likewise.
65314         * lib/unistr/u8-prev.c: Likewise.
65315         * lib/unistr/u8-set.c: Likewise.
65316         * lib/unistr/u8-startswith.c: Likewise.
65317         * lib/unistr/u8-stpcpy.c: Likewise.
65318         * lib/unistr/u8-stpncpy.c: Likewise.
65319         * lib/unistr/u8-strcat.c: Likewise.
65320         * lib/unistr/u8-strchr.c: Likewise.
65321         * lib/unistr/u8-strcmp.c: Likewise.
65322         * lib/unistr/u8-strcpy.c: Likewise.
65323         * lib/unistr/u8-strcspn.c: Likewise.
65324         * lib/unistr/u8-strdup.c: Likewise.
65325         * lib/unistr/u8-strlen.c: Likewise.
65326         * lib/unistr/u8-strmblen.c: Likewise.
65327         * lib/unistr/u8-strmbtouc.c: Likewise.
65328         * lib/unistr/u8-strncat.c: Likewise.
65329         * lib/unistr/u8-strncmp.c: Likewise.
65330         * lib/unistr/u8-strncpy.c: Likewise.
65331         * lib/unistr/u8-strnlen.c: Likewise.
65332         * lib/unistr/u8-strpbrk.c: Likewise.
65333         * lib/unistr/u8-strrchr.c: Likewise.
65334         * lib/unistr/u8-strspn.c: Likewise.
65335         * lib/unistr/u8-strstr.c: Likewise.
65336         * lib/unistr/u8-strtok.c: Likewise.
65337         * lib/unistr/u8-to-u16.c: Likewise.
65338         * lib/unistr/u8-to-u32.c: Likewise.
65339         * lib/unistr/u8-uctomb-aux.c: Likewise.
65340         * lib/unistr/u8-uctomb.c: Likewise.
65341         * lib/unitypes.h: Likewise.
65342         * lib/uniwidth.h: Likewise.
65343         * lib/uniwidth/cjk.h: Likewise.
65344         * lib/uniwidth/u16-strwidth.c: Likewise.
65345         * lib/uniwidth/u16-width.c: Likewise.
65346         * lib/uniwidth/u32-strwidth.c: Likewise.
65347         * lib/uniwidth/u32-width.c: Likewise.
65348         * lib/uniwidth/u8-strwidth.c: Likewise.
65349         * lib/uniwidth/u8-width.c: Likewise.
65350         * lib/uniwidth/width.c: Likewise.
65351
65352 2007-10-07  Bruno Haible  <bruno@clisp.org>
65353
65354         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
65355         The file is still under LGPL (see modules/inttypes).
65356
65357 2007-10-06  Bruno Haible  <bruno@clisp.org>
65358
65359         * modules/trunc (Dependencies): Add 'extensions'.
65360         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
65361         Reported by Ben Pfaff <blp@gnu.org>.
65362
65363 2007-10-06  Bruno Haible  <bruno@clisp.org>
65364
65365         * modules/freopen-tests: New file.
65366         * tests/test-freopen.c: New file.
65367
65368         * modules/fopen-tests: New file.
65369         * tests/test-fopen.c: New file.
65370
65371         * modules/fopen: New file.
65372         * lib/fopen.c: New file.
65373         * m4/fopen.m4: New file.
65374         * modules/freopen: New file.
65375         * lib/freopen.c: New file.
65376         * m4/freopen.m4: New file.
65377         * lib/stdio.in.h (fopen, freopen): New declarations.
65378         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
65379         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65380         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
65381         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65382         * doc/functions/fopen.texi: Mention the 'fopen' module.
65383         * doc/functions/freopen.texi: Mention the 'freopen' module.
65384
65385 2007-10-06  Bruno Haible  <bruno@clisp.org>
65386
65387         * modules/open-tests: New file.
65388         * tests/test-open.c: New file.
65389
65390         * modules/open: New file.
65391         * lib/open.c: New file.
65392         * m4/open.m4: New file.
65393         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
65394         lib/open.c does.
65395         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
65396         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
65397         macros.
65398         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
65399         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
65400         REPLACE_OPEN.
65401         * doc/functions/open.texi: Mention the 'open' module.
65402
65403 2007-10-04  Bruno Haible  <bruno@clisp.org>
65404
65405         * modules/ceill-tests: New file.
65406         * tests/test-ceill.c: New file.
65407
65408         * modules/ceill: New file.
65409         * lib/ceill.c: Replace entire file.
65410         * m4/ceill.m4: New file.
65411         * lib/math.in.h (ceill): Replace declaration.
65412         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
65413         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
65414         * doc/functions/ceill.texi: Mention the 'ceill' module.
65415         * modules/mathl (Files): Remove lib/ceill.c.
65416         (Depends-on): Add ceill.
65417
65418 2007-10-04  Bruno Haible  <bruno@clisp.org>
65419
65420         * modules/ceilf-tests: New file.
65421         * tests/test-ceilf.c: New file.
65422
65423         * modules/ceilf: New file.
65424         * lib/ceil.c: New file.
65425         * lib/ceilf.c: New file.
65426         * m4/ceilf.m4: New file.
65427         * lib/math.in.h (ceilf): New declaration.
65428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
65429         HAVE_DECL_CEILF.
65430         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
65431         HAVE_DECL_CEILF.
65432         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
65433
65434 2007-10-04  Bruno Haible  <bruno@clisp.org>
65435
65436         * modules/floorl-tests: New file.
65437         * tests/test-floorl.c: New file.
65438
65439         * modules/floorl: New file.
65440         * lib/floorl.c: Replace entire file.
65441         * m4/floorl.m4: New file.
65442         * lib/math.in.h (floorl): Replace declaration.
65443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
65444         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
65445         * doc/functions/floorl.texi: Mention the 'floorl' module.
65446         * modules/mathl (Files): Remove lib/floorl.c.
65447         (Depends-on): Add floorl.
65448
65449 2007-10-04  Bruno Haible  <bruno@clisp.org>
65450
65451         * modules/floorf-tests: New file.
65452         * tests/test-floorf.c: New file.
65453
65454         * modules/floorf: New file.
65455         * lib/floor.c: New file.
65456         * lib/floorf.c: New file.
65457         * m4/floorf.m4: New file.
65458         * lib/math.in.h (floorf): New declaration.
65459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
65460         HAVE_DECL_FLOORF.
65461         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
65462         HAVE_DECL_FLOORF.
65463         * doc/functions/floorf.texi: Mention the 'floorf' module.
65464
65465 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
65466             Bruno Haible  <bruno@clisp.org>
65467
65468         Advertise for the Git server instead of the CVS server.
65469         * doc/gnulib-intro.texi (Steady Development): Mention the Git
65470         repository instead of the CVS one.
65471         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
65472         about all VCS systems generically.
65473         * doc/gnulib.texi (Introduction): Capitalize `Git'.
65474
65475 2007-10-04  Bruno Haible  <bruno@clisp.org>
65476
65477         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
65478         means.
65479         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
65480
65481 2007-10-04  Bruno Haible  <bruno@clisp.org>
65482
65483         * modules/truncl-tests: New file.
65484         * tests/test-truncl.c: New file.
65485
65486         * modules/truncl: New file.
65487         * lib/truncl.c: New file.
65488         * m4/truncl.m4: New file.
65489         * lib/math.in.h (truncl): New declaration.
65490         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
65491         HAVE_DECL_TRUNCL.
65492         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
65493         HAVE_DECL_TRUNCL.
65494         * doc/functions/truncl.texi: Mention the 'truncl' module.
65495
65496 2007-10-04  Bruno Haible  <bruno@clisp.org>
65497
65498         * modules/truncf-tests: New file.
65499         * tests/test-truncf.c: New file.
65500
65501         * modules/truncf: New file.
65502         * lib/trunc.c: Make paramerizable through USE_* macros.
65503         * lib/truncf.c: New file.
65504         * m4/truncf.m4: New file.
65505         * lib/math.in.h (truncf): New declaration.
65506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
65507         HAVE_DECL_TRUNCF.
65508         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
65509         HAVE_DECL_TRUNCF.
65510         * doc/functions/truncf.texi: Mention the 'truncf' module.
65511
65512 2007-10-03  Bruno Haible  <bruno@clisp.org>
65513
65514         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
65515         augmentation also for tests modules.
65516         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
65517         * modules/atexit-tests (Makefile.am): Likewise.
65518         * modules/binary-io-tests (Makefile.am): Likewise.
65519         * modules/c-strcase-tests (Makefile.am): Likewise.
65520         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
65521         * modules/canonicalize-tests (Makefile.am): Likewise.
65522         * modules/closein-tests (Makefile.am): Likewise.
65523         * modules/fprintf-posix-tests (Makefile.am): Likewise.
65524         * modules/freadahead-tests (Makefile.am): Likewise.
65525         * modules/fseek-tests (Makefile.am): Likewise.
65526         * modules/fseeko-tests (Makefile.am): Likewise.
65527         * modules/ftell-tests (Makefile.am): Likewise.
65528         * modules/ftello-tests (Makefile.am): Likewise.
65529         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
65530         * modules/isnanl-tests (Makefile.am): Likewise.
65531         * modules/lseek-tests (Makefile.am): Likewise.
65532         * modules/mbscasecmp-tests (Makefile.am): Likewise.
65533         * modules/mbscasestr-tests (Makefile.am): Likewise.
65534         * modules/mbschr-tests (Makefile.am): Likewise.
65535         * modules/mbscspn-tests (Makefile.am): Likewise.
65536         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
65537         * modules/mbspbrk-tests (Makefile.am): Likewise.
65538         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
65539         * modules/mbsrchr-tests (Makefile.am): Likewise.
65540         * modules/mbsspn-tests (Makefile.am): Likewise.
65541         * modules/mbsstr-tests (Makefile.am): Likewise.
65542         * modules/printf-posix-tests (Makefile.am): Likewise.
65543         * modules/snprintf-posix-tests (Makefile.am): Likewise.
65544         * modules/sprintf-posix-tests (Makefile.am): Likewise.
65545         * modules/tsearch-tests (Makefile.am): Likewise.
65546         * modules/uniname/uniname-tests (Makefile.am): Likewise.
65547         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
65548         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
65549         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
65550         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
65551         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
65552         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
65553         * modules/vprintf-posix-tests (Makefile.am): Likewise.
65554         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
65555         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
65556         * modules/xstrtoimax-tests (Makefile.am): Likewise.
65557         * modules/xstrtol-tests (Makefile.am): Likewise.
65558         * modules/xstrtoumax-tests (Makefile.am): Likewise.
65559         * modules/yesno-tests (Makefile.am): Likewise.
65560
65561 2007-10-03  Bruno Haible  <bruno@clisp.org>
65562
65563         * modules/trunc-tests: New file.
65564         * tests/test-trunc.c: New file.
65565
65566         * modules/trunc: New file.
65567         * lib/trunc.c: New file.
65568         * m4/trunc.m4: New file.
65569         * lib/math.in.h (trunc): New declaration.
65570         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
65571         HAVE_DECL_TRUNC.
65572         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
65573         HAVE_DECL_TRUNC.
65574         * doc/functions/trunc.texi: Mention the 'trunc' module.
65575
65576 2007-10-03  Bruno Haible  <bruno@clisp.org>
65577
65578         * tests/test-fpending.c: New file, mostly copied
65579         from coreutils/lib/t-fpending.c.
65580         * modules/fpending-tests: New file.
65581
65582 2007-10-03  Bruno Haible  <bruno@clisp.org>
65583
65584         Port the stdio extensions to QNX (untested).
65585         * lib/fseterr.c (fseterr): Add support for QNX.
65586         * lib/fbufmode.c (fbufmode): Likewise.
65587         * lib/freadable.c (freadable): Likewise.
65588         * lib/fwritable.c (fwritable): Likewise.
65589         * lib/freading.c (freading): Likewise.
65590         * lib/fwriting.c (fwriting): Likewise.
65591         * lib/freadahead.c (freadahed): Likewise.
65592         * lib/fpurge.c (fpurge): Likewise.
65593         * lib/fseeko.c (rpl_fseeko): Likewise.
65594
65595 2007-10-03  Bruno Haible  <bruno@clisp.org>
65596             Jim Meyering  <jim@meyering.net>
65597             Eric Blake  <ebb9@byu.net>
65598
65599         * doc/relocatable.texi: Use @command instead of @program.
65600
65601 2007-10-02  Jim Meyering  <jim@meyering.net>
65602
65603         Perform one more "_.h" -> ".in.h" substitution.
65604         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
65605         instead of unistd_.h here, too.
65606
65607 2007-10-01  Bruno Haible  <bruno@clisp.org>
65608
65609         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
65610         Needed for the alloca-opt module.
65611
65612 2007-09-30  Bruno Haible  <bruno@clisp.org>
65613
65614         * lib/alloca.in.h: Renamed from lib/alloca_.h.
65615         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
65616         alloca_.h.
65617         * lib/argz.in.h: Renamed from lib/argz_.h.
65618         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
65619         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
65620         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
65621         byteswap_.h.
65622         * lib/dirent.in.h: Renamed from lib/dirent_.h.
65623         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
65624         dirent_.h.
65625         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
65626         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
65627         fcntl_.h.
65628         * lib/float.in.h: Renamed from lib/float_.h.
65629         * modules/float (Files, Makefile.am): Use float.in.h instead of
65630         float_.h.
65631         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
65632         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
65633         fnmatch_.h.
65634         * lib/getopt.in.h: Renamed from lib/getopt_.h.
65635         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
65636         getopt_.h.
65637         * lib/glob.in.h: Renamed from lib/glob_.h.
65638         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
65639         * lib/iconv.in.h: Renamed from lib/iconv_.h.
65640         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
65641         iconv_.h.
65642         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
65643         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
65644         inttypes_.h.
65645         * lib/locale.in.h: Renamed from lib/locale_.h.
65646         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
65647         locale_.h.
65648         * lib/math.in.h: Renamed from lib/math_.h.
65649         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
65650         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
65651         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
65652         of netinet_in_.h. Add dependency.
65653         * lib/poll.in.h: Renamed from lib/poll_.h.
65654         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
65655         * lib/search.in.h: Renamed from lib/search_.h.
65656         * modules/search (Files, Makefile.am): Use search.in.h instead of
65657         search_.h.
65658         * lib/signal.in.h: Renamed from lib/signal_.h.
65659         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
65660         _signal.h.
65661         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
65662         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
65663         stdbool_.h.
65664         * lib/stdint.in.h: Renamed from lib/stdint_.h.
65665         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
65666         stdint_.h.
65667         * lib/stdio.in.h: Renamed from lib/stdio_.h.
65668         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
65669         stdio_.h.
65670         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
65671         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
65672         stdlib_.h.
65673         * lib/string.in.h: Renamed from lib/string_.h.
65674         * modules/string (Files, Makefile.am): Use string.in.h instead of
65675         string_.h.
65676         * doc/gnulib-tool.texi (Initial import): Update.
65677         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
65678         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
65679         of sys_select_.h. Add dependency.
65680         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
65681         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
65682         of sys_socket_.h.
65683         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
65684         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
65685         sys_stat_.h.
65686         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
65687         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
65688         sys_time_.h.
65689         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
65690         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
65691         sysexits_.h.
65692         * lib/time.in.h: Renamed from lib/time_.h.
65693         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
65694         * lib/unistd.in.h: Renamed from lib/unistd_.h.
65695         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
65696         unistd_.h.
65697         * lib/wchar.in.h: Renamed from lib/wchar_.h.
65698         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
65699         wchar_.h.
65700         * lib/wctype.in.h: Renamed from lib/wctype_.h.
65701         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
65702         wctype_.h.
65703         * build-aux/bootstrap (slurp): Update.
65704         * lib/.cppi-disable: Update.
65705
65706 2007-09-30  Bruno Haible  <bruno@clisp.org>
65707
65708         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
65709         Needed on BeOS.
65710
65711 2007-09-30  Bruno Haible  <bruno@clisp.org>
65712
65713         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
65714
65715 2007-09-29  Bruno Haible  <bruno@clisp.org>
65716
65717         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
65718
65719 2007-09-29  Bruno Haible  <bruno@clisp.org>
65720
65721         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
65722         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
65723         * build-aux/install-reloc: Compile also areadlink.c.
65724         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
65725
65726 2007-09-29  Bruno Haible  <bruno@clisp.org>
65727
65728         * gnulib-tool (func_emit_initmacro_done): Indentation.
65729
65730 2007-09-29  Bruno Haible  <bruno@clisp.org>
65731
65732         * README: Add CVS checkout update instructions.
65733         Info from Bob Proulx <bob@proulx.com>.
65734
65735 2007-09-28  Eric Blake  <ebb9@byu.net>
65736
65737         Provide move-if-change.
65738         * build-aux/move-if-change: New file, based on best practice
65739         rather than any canonical upstream location.
65740
65741 2007-09-28  Jim Meyering  <jim@meyering.net>
65742
65743         Fix canonicalize loop-detection corner case.
65744         Do not attempt to stat the symlink values stored via seen_triple.
65745         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
65746         on linux-2.6.18, (but not 2.6.22).
65747         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
65748         triple_compare.  The former compares dev,ino,filename, while the latter
65749         would actually stat dirname(filename) when dev and ino were equal.
65750         * lib/hash-triple.c: Install <string.h>.
65751         (STREQ): Define.
65752         (triple_compare_ino_str): New function.
65753         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
65754
65755 2007-09-28  Eric Blake  <ebb9@byu.net>
65756
65757         Enforce that AC_REPLACE_FUNCS files exist.
65758         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
65759         override check for typos.
65760
65761         Fix test-closein on Solaris 10.
65762         * tests/test-closein.c (main): Don't assume stdin can be inherited
65763         closed on all systems.
65764         * tests/test-closein.sh: Likewise.
65765         Reported by Piotr Tarnowski.
65766
65767 2007-09-28  Jim Meyering  <jim@meyering.net>
65768
65769         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
65770
65771 2007-09-27  Jim Meyering  <jim@meyering.net>
65772
65773         canonicalize: Avoid a false-positive cycle failure.
65774         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
65775         Sort.  Remove cycle-check.
65776         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
65777         not cycle-check.h.
65778         (seen_triple): New function.
65779         (canonicalize_filename_mode): Use it instead of cycle-check.
65780         * tests/test-canonicalize.c: Add a test for this bug.
65781         * tests/test-canonicalize.sh: Set up and run the test.
65782
65783         New module, file-set, from coreutils.
65784         * modules/file-set: Define it.
65785         * lib/file-set.c, lib/file-set.h: Implement.
65786
65787         New module, hash-triple, from coreutils.
65788         * modules/hash-triple: Define it.
65789         * lib/hash-triple.c, lib/hash-triple.h: Implement.
65790
65791 2007-09-25  Eric Blake  <ebb9@byu.net>
65792
65793         Fix strerror on Interix.
65794         * lib/string_.h (strerror): Declare replacement.
65795         * doc/functions/strerror.texi (strerror): Document the Interix
65796         shortcoming.
65797         * modules/string (Makefile.am): Support new hooks.
65798         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
65799         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
65800         gl_FUNC_STRERROR_SEPARATE.
65801         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
65802         * lib/strerror.c (rpl_strerror): Provide replacement.
65803         * modules/strerror (Depends-on): Add string.
65804         (configure.ac): Detect use of module.
65805         * tests/test-strerror.c: New file.
65806         * modules/strerror-tests: New test module.
65807         * modules/argp (Depends-on): Add strerror.
65808         * modules/error (Depends-on): Likewise.
65809         Reported by Martin Koeppe.
65810
65811 2007-09-24  Bruno Haible  <bruno@clisp.org>
65812
65813         * README: Update git instructions.
65814
65815 2007-09-24  Eric Blake  <ebb9@byu.net>
65816
65817         Revert fpending breakage from 2007-09-08.
65818         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
65819         __fpending.c.
65820
65821 2007-09-24  Jim Meyering  <jim@meyering.net>
65822
65823         filenamecat.c: Add a test.
65824         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
65825         showing how the function works when DIR is the empty string.
65826
65827 2007-09-21  Simon Josefsson  <simon@josefsson.org>
65828
65829         * tests/test-canonicalize.sh: Turn on executable bit.
65830
65831 2007-09-19  Eric Blake  <ebb9@byu.net>
65832
65833         * README: Update CVS instructions.
65834
65835 2007-09-18  Bruno Haible  <bruno@clisp.org>
65836
65837         * modules/areadlink: New file.
65838         * lib/areadlink.h (areadlink): New declaration.
65839         * lib/areadlink.c: New file, based on lib/xreadlink.c.
65840
65841 2007-09-17  Jim Meyering  <jim@meyering.net>
65842
65843         * lib/savewd.c (ESTALE) [!defined]: Define.
65844         Reported to be required on Interix by Martin Koeppe.
65845
65846 2007-09-17  Bruno Haible  <bruno@clisp.org>
65847
65848         * gnulib-tool (func_version): Use $version.
65849
65850 2007-09-16  Bruno Haible  <bruno@clisp.org>
65851
65852         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
65853         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
65854         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
65855         Reported by Greg Schafer <gschafer@zip.com.au>.
65856
65857 2007-09-15  Bruno Haible  <bruno@clisp.org>
65858
65859         * gnulib-tool (sed): Try a little harder to make bash understand the
65860         alias.
65861         Reported by Bruce Korb <bruce.korb@gmail.com>.
65862
65863 2007-09-13  Eric Blake  <ebb9@byu.net>
65864
65865         * ChangeLog: Remove conflict markers.
65866
65867 2007-09-13  Simon Josefsson  <simon@josefsson.org>
65868
65869         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
65870         Reported by Bruno Haible <bruno@clisp.org>.
65871
65872 2007-09-12  Bruno Haible  <bruno@clisp.org>
65873
65874         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
65875         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
65876         is not defined.
65877
65878 2007-09-12  Eric Blake  <ebb9@byu.net>
65879
65880         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
65881         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
65882         Autoconf definition.
65883         * modules/euidaccess (Depends-on): Add extensions, for
65884         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
65885         * modules/fnmatch (Depends-on): Likewise.
65886         * modules/getaddrinfo (Depends-on): Likewise.
65887         * modules/getdelim (Depends-on): Likewise.
65888         * modules/getline (Depends-on): Likewise.
65889         * modules/getsubopt (Depends-on): Likewise.
65890         * modules/gettext (Depends-on): Likewise.
65891         * modules/group-member (Depends-on): Likewise.
65892         * modules/mbchar (Depends-on): Likewise.
65893         * modules/memmem (Depends-on): Likewise.
65894         * modules/mempcpy (Depends-on): Likewise.
65895         * modules/memrchr (Depends-on): Likewise.
65896         * modules/pagealign_alloc (Depends-on): Likewise.
65897         * modules/readutmp (Depends-on): Likewise.
65898         * modules/stpcpy (Depends-on): Likewise.
65899         * modules/stpncpy (Depends-on): Likewise.
65900         * modules/strchrnul (Depends-on): Likewise.
65901         * modules/strndup (Depends-on): Likewise.
65902         * modules/strsep (Depends-on): Likewise.
65903         * modules/strverscmp (Depends-on): Likewise.
65904         * modules/vasprintf (Depends-on): Likewise.
65905         * modules/wcwidth (Depends-on): Likewise.
65906         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
65907         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
65908         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
65909         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
65910         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
65911         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65912         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
65913         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65914         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
65915         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
65916         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65917         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65918         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65919         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
65920         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
65921         * m4/readutmp.m4 (gl_READUTMP): Likewise.
65922         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65923         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65924         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65925         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65926         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65927         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65928         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65929         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
65930         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
65931         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65932         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
65933         so that lock.m4 can be used in gettext without extensions module.
65934
65935 2007-09-11  Bruno Haible  <bruno@clisp.org>
65936
65937         * m4/isc-posix.m4: Remove file.
65938         Suggested by Eric Blake.
65939
65940 2007-09-11  Eric Blake  <ebb9@byu.net>
65941
65942         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
65943
65944 2007-09-10  Bruno Haible  <bruno@clisp.org>
65945
65946         * posix-modules: Fix typo in error message.
65947         Reported by Matt <mkraai@beckman.com>.
65948
65949 2007-09-09  Bruno Haible  <bruno@clisp.org>
65950
65951         * doc/functions/getdelim.texi: Update list of platforms lacking the
65952         function.
65953         * doc/functions/getline.texi: Likewise.
65954
65955 2007-09-09  Jim Meyering  <jim@meyering.net>
65956
65957         * lib/hash.c (hash_initialize): Detect calloc failure.
65958         Reported by Bruno Haible.
65959
65960 2007-09-09  Bruno Haible  <bruno@clisp.org>
65961
65962         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
65963         malloc or realloc fails.
65964
65965 2007-09-09  Bruno Haible  <bruno@clisp.org>
65966
65967         * modules/getcwd (Depends-on): Add malloc-posix.
65968         * modules/glob (Depends-on): Likewise.
65969         * modules/putenv (Depends-on): Likewise.
65970         * modules/strdup (Depends-on): Likewise.
65971         * modules/getdelim (Depends-on): Add realloc-posix.
65972         * modules/read-file (Depends-on): Likewise.
65973
65974 2007-09-09  Bruno Haible  <bruno@clisp.org>
65975
65976         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
65977         (gl_FUNC_MALLOC_POSIX): Require it.
65978         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
65979         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
65980         * modules/realloc (Files): Add m4/malloc.m4.
65981         * modules/calloc (Files): Likewise.
65982
65983 2007-09-09  Bruno Haible  <bruno@clisp.org>
65984
65985         * modules/malloc-posix: New file.
65986         * modules/malloc (Depends-on): Add malloc-posix.
65987         * lib/malloc.c: Include errno.h.
65988         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
65989         and a POSIX-compatible malloc into a single function. Set ENOMEM
65990         when returning NULL.
65991         * m4/malloc.m4: New file.
65992         * doc/functions/malloc.texi: Mention the malloc-posix module.
65993         * lib/stdlib_.h (malloc): New declaration.
65994         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65995         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
65996         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
65997         and HAVE_MALLOC_POSIX.
65998
65999 2007-09-09  Bruno Haible  <bruno@clisp.org>
66000
66001         * modules/realloc-posix: New file.
66002         * modules/realloc (Depends-on): Add realloc-posix.
66003         * lib/realloc.c: Include errno.h.
66004         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
66005         and a POSIX-compatible realloc into a single function. Set ENOMEM
66006         when returning NULL.
66007         * m4/realloc.m4: New file.
66008         * doc/functions/realloc.texi: Mention the realloc-posix module.
66009         * lib/stdlib_.h (realloc): New declaration.
66010         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66011         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
66012         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
66013         and HAVE_REALLOC_POSIX.
66014
66015 2007-09-09  Bruno Haible  <bruno@clisp.org>
66016
66017         * modules/calloc-posix: New file.
66018         * modules/calloc (Depends-on): Add calloc-posix.
66019         * lib/calloc.c: Include errno.h.
66020         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
66021         and a POSIX-compatible calloc into a single function. Set ENOMEM
66022         when returning NULL.
66023         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
66024         * doc/functions/calloc.texi: Mention the calloc-posix module.
66025         * lib/stdlib_.h (calloc): New declaration.
66026         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66027         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
66028         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
66029         and HAVE_CALLOC_POSIX.
66030
66031 2007-09-09  Bruno Haible  <bruno@clisp.org>
66032
66033         Allow for modules to show an arbitrary notice.
66034         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
66035         * gnulib-tool: New option --extract-notice.
66036         (func_usage): Document it.
66037         (sed_extract_prog): Update.
66038         (func_get_notice): New function.
66039         (func_modules_notice): New function.
66040         (func_import, func_create_testdir): Invoke it.
66041         Suggested by Jim Meyering.
66042
66043 2007-09-09  Bruno Haible  <bruno@clisp.org>
66044
66045         * gnulib-tool: New options --verbose, --quiet.
66046         (func_usage): Document them.
66047         (verbose): New variable.
66048         (func_execute_command): New function.
66049         (func_import): Don't show the module list and the file list if
66050         $verbose < 0.
66051         (func_create_testdir): Likewise. Use func_execute_command.
66052         (func_create_megatestdir): Use func_execute_command.
66053
66054 2007-09-08  Bruno Haible  <bruno@clisp.org>
66055
66056         * gnulib-tool (func_import): Prefer rsync over wget when available,
66057         for fetching the PO files.
66058
66059 2007-09-08  Bruno Haible  <bruno@clisp.org>
66060
66061         * posix-modules: New file. Portions copied from gnulib-tool.
66062         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
66063
66064 2007-09-08  Jim Meyering  <jim@meyering.net>
66065
66066         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
66067         * lib/fpending.h: Rename from __fpending.h.
66068         * lib/fpending.c: Rename from __fpending.c.
66069         Include "fpending.h", not "__fpending.h".
66070         * lib/__fpending.h, lib/__fpending.c: Remove files.
66071         * modules/fpending (Files): Reflect new file names.
66072         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
66073
66074 2007-09-08  Bruno Haible  <bruno@clisp.org>
66075
66076         * m4/inttypes-h.m4: Remove stub file.
66077
66078 2007-09-07  Simon Josefsson  <simon@josefsson.org>
66079
66080         * doc/headers/stdint.texi: Discuss #include_next issue.
66081
66082 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66083
66084         * build-aux/bootstrap: Remove obsolete comment about wget --help.
66085
66086 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66087
66088         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
66089         in variable name.
66090
66091 2007-09-03  Jim Meyering  <jim@meyering.net>
66092
66093         New module: git-version-gen.
66094         * modules/git-version-gen: New file.
66095
66096         Import changes from coreutils for bootstrap script.
66097
66098         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
66099
66100         bootstrap: uses rsync to download the .po files
66101         * build-aux/bootstrap (po_download_command_format): New global.
66102         (download_po_files): Use rsync.
66103         (update_po_files): Don't remove .po files after download,
66104         so future rsync runs can take advantage of the copies.
66105
66106         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
66107
66108         Solve the unnecessary-.po-file-regeneration problem once and for all.
66109         * build-aux/bootstrap (download_po_files): New function, renamed from
66110         get_translations.  Now, downloads, but doesn't update LINGUAS.
66111         (update_po_files): New function.
66112
66113         bootstrap: Ignore more.
66114         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
66115         uniwidth to e.g., lib/.gitignore.
66116         (slurp): Handle the sys_stat_.h -> sys mapping, too.
66117
66118         * build-aux/bootstrap: New setting: vc_ignore.
66119         (insert_sorted_if_absent): Create $file if absent.
66120         Adapt to new, possibly empty, list: $vc_ignore.
66121
66122         bootstrap: generate more ignorable names
66123         * build-aux/bootstrap (slurp): When generating ignorable names,
66124         also map .sin to .sed, .gperf to .c, and .y to .c.
66125
66126 2007-09-03  Jim Meyering  <jim@meyering.net>
66127
66128         * build-aux/git-version-gen: New file, from coreutils.  For details, see
66129         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
66130
66131 2007-09-02  Bruno Haible  <bruno@clisp.org>
66132
66133         Fix mis-recognition of 'mcs' on QNX 6.
66134         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
66135         output contains the string "Mono".
66136         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
66137         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
66138
66139 2007-09-01  Bruno Haible  <bruno@clisp.org>
66140
66141         Fix collision between uniwidth/* and linebreak modules.
66142         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
66143         u32_width): Remove declarations.
66144         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
66145         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
66146         streq3, streq2, streq1, streq0): Remove functions.
66147         (STREQ): Remove macro.
66148         (is_cjk_encoding): Remove function.
66149         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
66150         (uc_width, u8_width, u16_width, u32_width): Remove functions.
66151         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
66152         * NEWS: Document the change.
66153
66154 2007-09-01  Bruno Haible  <bruno@clisp.org>
66155
66156         * lib/streq.h: Add double-inclusion guard.
66157
66158 2007-09-01  Karl Berry  <karl@gnu.org>
66159
66160         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
66161
66162 2007-08-28  Jim Meyering  <jim@meyering.net>
66163
66164         Rename mreadlink_with_size to areadlink_with_size.
66165         * NEWS: Document the change.
66166         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
66167         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
66168         * lib/mreadlink.h: Rename this to...
66169         * lib/areadlink.h: ...this.
66170         * modules/mreadlink-with-size: Rename this to...
66171         * modules/areadlink-with-size: ...this.
66172         * lib/canonicalize.c: Reflect the renaming.
66173         * modules/canonicalize: Likewise.
66174
66175 2007-08-26  Bruno Haible  <bruno@clisp.org>
66176
66177         * gnulib-tool (func_import): When deciding which files to remove,
66178         consider also dangling symbolic links.
66179         Reported by Eric Blake.
66180
66181 2007-08-26  Bruno Haible  <bruno@clisp.org>
66182
66183         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
66184
66185 2007-08-23  Simon Josefsson  <simon@josefsson.org>
66186
66187         * lib/readline.c: Don't include getline.h, the prototype is now
66188         found in stdio.h.
66189
66190 2007-08-23  Jim Meyering  <jim@meyering.net>
66191
66192         Getdelim touchup.
66193         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
66194         around the funlockfile call, since funlockfile never sets errno.
66195         Don't set errno upon failed realloc.
66196
66197 2007-08-22  Eric Blake  <ebb9@byu.net>
66198
66199         Getline touchups.
66200         * lib/getdelim.c (getdelim): Revert regression that required *n to
66201         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
66202         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
66203         getdelim, rather than whether implementation is missing.
66204         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
66205         * lib/stdio_.h (getline): Also declare if replacement is
66206         required.
66207         * doc/functions/getdelim.texi: New file.
66208         * doc/functions/getline.texi: Likewise.
66209         * doc/gnulib.texi (Function Substitutes): Add new files.
66210         Reported by Bruno Haible.
66211
66212 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
66213
66214         * users.txt: Add Guile.
66215
66216 2007-08-22  Eric Blake  <ebb9@byu.net>
66217
66218         * tests/test-getdelim.c (main): Use remove, not unlink.
66219         * tests/test-getline.c (main): Likewise.
66220
66221         Move getline and getdelim into stdio.h, per POSIX 200x.
66222         * modules/getline (Files): Remove getline.h.
66223         (Depends-on): Add stdio.
66224         (configure.ac): Add module indicator.
66225         * modules/getdelim (Files): Remove getdelim.h.
66226         (Depends-on): Add stdio.
66227         (configure.ac): Add module indicator.
66228         * modules/stdio (Makefile.am): Work with new indicators.
66229         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
66230         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
66231         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66232         * lib/getdelim.h: Delete.
66233         * lib/getline.h: Delete.
66234         * lib/stdio_.h (getdelim, getline): Declare.
66235         * modules/getdelim-tests: New module.
66236         * modules/getline-tests: Likewise.
66237         * tests/test-getdelim.c: New file.
66238         * tests/test-getline.c: Likewise.
66239         * NEWS: Document the change.
66240         * lib/getline.c: Update choice of header.
66241         * lib/csharpcomp.c: Likewise.
66242         * lib/getpass.c: Likewise.
66243         * lib/javacomp.c: Likewise.
66244         * lib/javaversion.c: Likewise.
66245         * lib/yesno.c: Likewise.
66246         * lib/getdelim.c: Likewise.
66247         (getdelim): Set errno on failure, and avoid memory leak.
66248
66249 2007-08-19  Bruno Haible  <bruno@clisp.org>
66250
66251         * modules/closein (Depends-on): Add freadahead.
66252         * lib/closein.c: Include freadahead.h.
66253         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
66254         is zero.
66255
66256 2007-08-19  Bruno Haible  <bruno@clisp.org>
66257
66258         * modules/freadahead-tests: New file.
66259         * tests/test-freadahead.sh: New file.
66260         * tests/test-freadahead.c: New file.
66261
66262         * modules/freadahead: New file.
66263         * lib/freadahead.h: New file.
66264         * lib/freadahead.c: New file.
66265         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
66266         fbufmode, fpurge, freadable, fwritable.
66267
66268 2007-08-19  Eric Blake  <ebb9@byu.net>
66269
66270         Test yesno in combination with closein.
66271         * lib/yesno.c (yesno): Document use of stdin.
66272         * modules/yesno-tests (Files): New module.
66273         * tests/test-yesno.c (main): New file.
66274         * tests/test-yesno.sh: Likewise.
66275
66276 2007-08-19  Bruno Haible  <bruno@clisp.org>
66277
66278         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
66279         * lib/fseeko.c (rpl_fseeko): Likewise.
66280         * lib/fseterr.c (fseterr): Likewise.
66281
66282 2007-08-19  Bruno Haible  <bruno@clisp.org>
66283
66284         * tests/test-lseek.c (main): Disable a test for BeOS.
66285         * doc/functions/lseek.texi: Document the BeOS bug.
66286
66287 2007-08-19  Bruno Haible  <bruno@clisp.org>
66288             Eric Blake  <ebb9@byu.net>
66289
66290         * lib/lseek.c: Include <sys/stat.h>.
66291         (rpl_lseek): Add workaround code also for Unix platforms.
66292         Needed for BeOS.
66293         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
66294         * doc/functions/lseek.texi: Document BeOS definiency.
66295
66296 2007-08-18  Bruno Haible  <bruno@clisp.org>
66297
66298         * modules/fstrcmp-tests: New file.
66299         * tests/test-fstrcmp.c: New file.
66300
66301 2007-08-18  Bruno Haible  <bruno@clisp.org>
66302
66303         * modules/fstrcmp: New file, from GNU gettext with modifications.
66304         * lib/fstrcmp.h: New file, from GNU gettext.
66305         * lib/fstrcmp.c: New file, from GNU gettext.
66306         * MODULES.html.sh (String handling): Add fstrcmp.
66307
66308 2007-08-18  Bruno Haible  <bruno@clisp.org>
66309
66310         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
66311         'bool'.
66312         (diag, compareseq): Remove const from the ctxt argument.
66313         (USE_HEURISTIC): Undefine at the end.
66314
66315 2007-08-18  Jim Meyering  <jim@meyering.net>
66316
66317         New file: lib/idcache.h
66318         * NEWS: Mention the addition.
66319         * modules/idcache (Files): Add lib/idcache.h
66320         * lib/idcache.c: Include "idcache.h".
66321         Don't include <sys/types.h>.
66322         Add a FIXME comment.
66323         Move file-scoped "static" declarations to the top.
66324         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
66325
66326 2007-08-17  Bruno Haible  <bruno@clisp.org>
66327         and Paul Eggert  <eggert@cs.ucla.edu>
66328
66329         * MODULES.html.sh: Add diffseq.
66330         * modules/diffseq: New file.
66331         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
66332         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
66333
66334 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66335
66336         Import changes from coreutils for bootstrap script.
66337
66338         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
66339
66340         * build-aux/bootstrap (slurp): Work even in environments where
66341         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
66342         current code does not slurp files whose names start with ".", and
66343         this looks like it might be a troublesome area.
66344
66345         2007-07-11  Jim Meyering  <jim@meyering.net>
66346
66347         If there's a GPL vN copyright comment, require that N == 3.
66348
66349         2007-07-08  Jim Meyering  <jim@meyering.net>
66350
66351         Run the coreutils-specific code only if tests/Makefile.am.in exists.
66352         * build-aux/bootstrap (mam_template): Move definition out of loop.
66353
66354         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
66355
66356         * build-aux/bootstrap (symlink_to_dir): Rename function from
66357         symlink_to_gnulib.  Add a directory parameter.  Update all
66358         callers.
66359         (cp_mark_as_generated): Also check for -- and link to -- files in
66360         gl/.
66361
66362         2007-07-08  Jim Meyering  <jim@meyering.net>
66363
66364         Adapt to deeper hierarchy in gnulib.
66365         * build-aux/bootstrap (symlink_to_dir): If the destination
66366         directory doesn't exist, create it. This is required at least for
66367         "lib/uniwidth/cjk.h".
66368
66369         2007-05-15  Jim Meyering  <jim@meyering.net>
66370
66371         * build-aux/bootstrap: Now that generated Makefile.am files
66372         are no longer under version control, they must be created at
66373         bootstrap time.
66374
66375 2007-08-14  Ben Pfaff  <blp@gnu.org>
66376
66377         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
66378
66379 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66380
66381         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
66382         given the changes below.
66383         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
66384         even on hosts that have padding bits beyond the supported 64.
66385
66386 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66387
66388         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
66389         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
66390         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
66391         depends on it.
66392         (xstrtol_error): Remove.
66393         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
66394         but with a different signature.
66395         (ATTRIBUTE_NORETURN, __attribute__): New macros.
66396         * lib/xstrtol-error.c: Include exitfail.h.
66397         (xstrtol_fatal): New function, with a different signature from the
66398         old xstrtol_error, so that the caller need not worry about passing
66399         in an exit status, or about storage management of the option argument.
66400         (xstrtol_error): Now a static function.  Redo signature to
66401         implement xstrtol_fatal.  Output the correct number of hyphens in
66402         front of the option so that the caller need not worry about
66403         storage management.
66404         (N_): New macro.
66405         (_): Remove; not used now.
66406         * modules/xstrtol: Depend on getopt.
66407         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
66408         of old STRTOL_FATAL_ERROR macro.
66409         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
66410         of test program.
66411         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
66412         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
66413
66414 2007-08-08  Eric Blake  <ebb9@byu.net>
66415
66416         * lib/xstrtol-error.c: Add missing include.
66417
66418         Move xstrtol messages into gnulib domain, when --pobase is used.
66419         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
66420         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
66421         * modules/xstrtol (Files): Distribute new file.
66422         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
66423         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
66424         * tests/test-xstrtol.c: ...into new file.
66425         * tests/test-xstrtoul.c: Also test xstrtoul.
66426         * tests/test-xstrtoimax.c: Also test xstrtoimax.
66427         * tests/test-xstrtoumax.c: Also test xstrtoumax.
66428         * tests/test-xstrtol.sh: Drive the tests.
66429         * tests/test-xstrtoimax.sh: Likewise.
66430         * tests/test-xstrtoumax.sh: Likewise.
66431         * modules/xstrtol-tests: New module.
66432         * modules/xstrtoimax-tests: Likewise.
66433         * modules/xstrtoumax-tests: Likewise.
66434
66435 2007-08-08  Jim Meyering  <jim@meyering.net>
66436
66437         New function: mfile_name_concat.
66438         * lib/filenamecat.c (mfile_name_concat): New function, just like
66439         file_name_concat, but return NULL upon failure rather than exiting
66440         with a diagnostic.
66441         * lib/filenamecat.h: Declare it.
66442
66443 2007-08-07  Bruno Haible  <bruno@clisp.org>
66444
66445         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
66446         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
66447         warning from gcc.
66448         Reported by Eric Blake.
66449
66450 2007-08-07  Simon Josefsson  <simon@josefsson.org>
66451
66452         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
66453         * modules/crypto/arcfour (License): Likewise.
66454         * modules/crypto/des-tests (License): Likewise.
66455         * modules/crypto/gc-arctwo-tests (License): Likewise.
66456         * modules/crypto/gc-des-tests (License): Likewise.
66457         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
66458         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
66459         * modules/crypto/gc-md2-tests (License): Likewise.
66460         * modules/crypto/gc-md4-tests (License): Likewise.
66461         * modules/crypto/gc-md5-tests (License): Likewise.
66462         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
66463         * modules/crypto/gc-rijndael-tests (License): Likewise.
66464         * modules/crypto/gc-sha1-tests (License): Likewise.
66465         * modules/crypto/gc-tests (License): Likewise.
66466         * modules/crypto/hmac-md5 (License): Likewise.
66467         * modules/crypto/hmac-sha1 (License): Likewise.
66468         * modules/crypto/md2-tests (License): Likewise.
66469         * modules/crypto/md4-tests (License): Likewise.
66470         * modules/crypto/md5 (License): Likewise.
66471         * modules/crypto/rijndael (License): Likewise.
66472         * modules/crypto/sha1 (License): Likewise.
66473         * modules/memxor (License): Likewise.
66474
66475 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66476         and Bruno Haible  <bruno@clisp.org>
66477
66478         * NEWS: Describe interface changes to human, xstrtol.
66479         * lib/human.h: Include <xstrtol.h>.
66480         (human_options): Return enum strtol_error, not int.  Remove
66481         bool arg; take int * instead.
66482         * lib/human.c: Don't include "gettext.h".
66483         (_): Remove; no longer used.
66484         Don't include <xstrtol.h>, since human.h does it.
66485         (human_options): Adjust to abovementioned interface changes.
66486         Do not report error to stderr; that's now the caller's
66487         responsibility.
66488         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
66489         interface change.
66490         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
66491         Str, Argument_type_string.  All uses changed.  Put " argument"
66492         in diagnostics to make them clearer.  Change wording of suffix
66493         message for clarity.
66494         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
66495         Argument_type_string.
66496         (STRTOL_FATAL_WARN): Remove; no longer used.
66497         * modules/human (Depends-on): Remove gettext-h.
66498
66499 2007-08-06  Simon Josefsson  <simon@josefsson.org>
66500
66501         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
66502
66503 2007-07-31  Bruno Haible  <bruno@clisp.org>
66504
66505         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
66506         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
66507         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
66508
66509 2007-07-31  Bruno Haible  <bruno@clisp.org>
66510
66511         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
66512         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
66513
66514 2007-07-30  Bruno Haible  <bruno@clisp.org>
66515
66516         * modules/base64 (License): Use the synonymous term "LGPLv2+".
66517         * modules/c-ctype (License): Likewise.
66518         * modules/c-strcase (License): Likewise.
66519         * modules/check-version (License): Likewise.
66520         * modules/iconv (License): Likewise.
66521         * modules/iconv_open (License): Likewise.
66522         * modules/read-file (License): Likewise.
66523         * modules/striconv (License): Likewise.
66524         * modules/strverscmp (License): Likewise.
66525         * modules/vasprintf (License): Likewise.
66526         * modules/crypto/des (License): Likewise.
66527         * modules/crypto/gc (License): Likewise.
66528         * modules/crypto/gc-arcfour (License): Likewise.
66529         * modules/crypto/gc-arctwo (License): Likewise.
66530         * modules/crypto/gc-des (License): Likewise.
66531         * modules/crypto/gc-hmac-md5 (License): Likewise.
66532         * modules/crypto/gc-hmac-sha1 (License): Likewise.
66533         * modules/crypto/gc-md2 (License): Likewise.
66534         * modules/crypto/gc-md4 (License): Likewise.
66535         * modules/crypto/gc-md5 (License): Likewise.
66536         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
66537         * modules/crypto/gc-random (License): Likewise.
66538         * modules/crypto/gc-rijndael (License): Likewise.
66539         * modules/crypto/gc-sha1 (License): Likewise.
66540         * modules/crypto/md2 (License): Likewise.
66541         * modules/crypto/md4 (License): Likewise.
66542
66543 2007-07-30  Jim Meyering  <jim@meyering.net>
66544
66545         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
66546         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
66547         it has valid stat data.  This bug would cause du not to count the
66548         sizes of inaccessible directories.
66549         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
66550         in <http://bugzilla.redhat.com/250077>.
66551
66552 2007-07-25  Peter O'Gorman  <peter@pogma.com>
66553             Bruno Haible  <bruno@clisp.org>
66554
66555         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
66556         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
66557         #include_next, gives a diagnostic about it, but reports no error in
66558         the exit code.
66559         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
66560
66561 2007-07-24  Ben Pfaff  <blp@gnu.org>
66562
66563         Improve name: "count-one-bits" is better than "popcount".
66564         * MODULES.html.sh: Update name.
66565         * lib/popcount.h: Renamed lib/count-one-bits.h.
66566         (popcount): Renamed count_one_bits.
66567         (popcountl): Renamed count_one_bits_l.
66568         (popcountll): Renamed count_one_bits_ll.
66569         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
66570         * modules/popcount: Renamed module/count-one-bits.
66571         * modules/popcount-tests: Renamed module/count-one-bits-tests.
66572         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
66573
66574 2007-07-23  Ben Pfaff  <blp@gnu.org>
66575
66576         * lib/popcount.h (popcount32): Reduce size of constants, to allow
66577         better code generation, and add U to large constants to avoid
66578         warnings, in non-GCC case.
66579         Suggested by Bruno Haible.
66580
66581 2007-07-23  Ben Pfaff  <blp@gnu.org>
66582
66583         * lib/popcount.h: Use verify_true instead of if...abort.
66584         * modules/popcount: Depend on verify module.
66585         Suggested by Jim Meyering.
66586
66587 2007-07-23  Bruno Haible  <bruno@clisp.org>
66588
66589         * gnulib-tool (func_import): Create a .cvsignore file also when the
66590         directory is not yet in CVS but the toplevel directory is. When
66591         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
66592         Reported by Karl Berry.
66593
66594 2007-07-22  Ben Pfaff  <blp@gnu.org>
66595
66596         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
66597         case.
66598         Suggested by Eric Blake.
66599
66600 2007-07-22  Ben Pfaff  <blp@gnu.org>
66601
66602         New module: popcount.
66603         * MODULES.html.sh: Add popcount.
66604         * modules/popcount: New file.
66605         * modules/popcount-tests: New file.
66606         * tests/test-popcount.c: New file.
66607         * lib/popcount.h: New file.
66608         * m4/popcount.m4: New file.
66609
66610 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66611
66612         * build-aux/announce-gen: Update to GPLv3.
66613
66614         * build-aux/config.guess: Update from config.
66615
66616 2007-07-21  Bruno Haible  <bruno@clisp.org>
66617
66618         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
66619         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
66620
66621 2007-07-20  Jim Meyering  <jim@meyering.net>
66622
66623         * check-module: Diagnose a self-dependency.
66624
66625 2007-07-19  Bruno Haible  <bruno@clisp.org>
66626
66627         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
66628         empty.
66629         Reported by Eric Blake.
66630
66631 2007-07-18  Bruno Haible  <bruno@clisp.org>
66632
66633         * gnulib-tool: New options --po-base, --po-domain.
66634         (func_usage): Document them.
66635         (pobase, po_domain): New variables.
66636         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
66637         DEFAULT_TEXT_DOMAIN.
66638         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
66639         (func_import): Consider pobase and po_domain. Create a po/ directory.
66640         (func_create_testdir): Set pobase and po_domain to empty.
66641         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
66642         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
66643
66644 2007-07-18  Bruno Haible  <bruno@clisp.org>
66645
66646         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66647         EXTRA_DIST augmentation for files in build-aux/.
66648
66649 2007-07-16  Bruno Haible  <bruno@clisp.org>
66650
66651         * modules/lseek (License): Use the synonymous term "LGPLv2+".
66652         * modules/getdelim (License): Likewise.
66653
66654 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66655
66656         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
66657         * modules/d-type (License): Likewise.
66658         * modules/extensions (License): Likewise.
66659         * modules/fnmatch (License): Likewise.
66660         * modules/fseeko (License): Likewise.
66661         * modules/getaddrinfo (License): Likewise.
66662         * modules/getline (License): Likewise.
66663         * modules/getlogin_r (License): Likewise.
66664         * modules/getpass (License): Likewise.
66665         * modules/gettimeofday (License): Likewise.
66666         * modules/glob (License): Likewise.
66667         * modules/inet_ntop (License): Likewise.
66668         * modules/malloc (License): Likewise.
66669         * modules/malloca (License): Likewise.
66670         * modules/memmem (License): Likewise.
66671         * modules/mempcpy (License): Likewise.
66672         * modules/memset (License): Likewise.
66673         * modules/minmax (License): Likewise.
66674         * modules/mktime (License): Likewise.
66675         * modules/netinet_in (License): Likewise.
66676         * modules/pathmax (License): Likewise.
66677         * modules/poll (License): Likewise.
66678         * modules/regex (License): Likewise.
66679         * modules/snprintf (License): Likewise.
66680         * modules/stdbool (License): Likewise.
66681         * modules/stdint (License): Likewise.
66682         * modules/stdio (License): Likewise.
66683         * modules/strcase (License): Likewise.
66684         * modules/strcasestr (License): Likewise.
66685         * modules/strdup (License): Likewise.
66686         * modules/string (License): Likewise.
66687         * modules/strndup (License): Likewise.
66688         * modules/strnlen (License): Likewise.
66689         * modules/strpbrk (License): Likewise.
66690         * modules/strptime (License): Likewise.
66691         * modules/strsep (License): Likewise.
66692         * modules/sys_select (License): Likewise.
66693         * modules/sys_socket (License): Likewise.
66694         * modules/sys_stat (License): Likewise.
66695         * modules/sys_time (License): Likewise.
66696         * modules/time (License): Likewise.
66697         * modules/time_r (License): Likewise.
66698         * modules/timegm (License): Likewise.
66699         * modules/unistd (License): Likewise.
66700         * modules/vsnprintf (License): Likewise.
66701         * modules/wctype (License): Likewise.
66702
66703 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66704
66705         * modules/argz (License): LGPLv2+.
66706
66707 2007-07-15  Karl Berry  <karl@gnu.org>
66708
66709         * doc/gnulib.texi: revise node structure per new fdl.texi.
66710
66711 2007-07-14  Bruno Haible  <bruno@clisp.org>
66712
66713         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
66714         the output file.
66715         * lib/uniname/uninames.h: Regenerated.
66716
66717 2007-07-14  Karl Berry  <karl@gnu.org>
66718
66719         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
66720         omitting sectioning and index commands.
66721
66722 2007-07-13  Bruno Haible  <bruno@clisp.org>
66723
66724         New gnulib-tool option --more-symlinks.
66725         * gnulib-tool (func_usage): Document --more-symlinks.
66726         (do_copyrights): New variable.
66727         Recognize option --more-symlinks.
66728         (func_import): Don't add a copyright notice transform to
66729         sed_transform_lib_file if do_copyrights is empty.
66730
66731 2007-07-13  Bruno Haible  <bruno@clisp.org>
66732
66733         * lib/vasnprintf.c (decimal_point_char): Define also if
66734         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
66735         && !NEED_PRINTF_DIRECTIVE_A.
66736         Reported by Clemens Koller <clemens.koller@anagramm.de> via
66737         Gary V. Vaughan <gary@gnu.org>.
66738
66739 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
66740
66741         * lib/inttypes_.h: Undo previous change, since it was fixed
66742         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
66743
66744 2007-07-13  Bruno Haible  <bruno@clisp.org>
66745
66746         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
66747         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
66748
66749 2007-07-13  Jim Meyering  <jim@meyering.net>
66750
66751         df: Don't fail for Tru64's "file-on-file mount".
66752         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
66753         so we fall through and use statfs instead.  Details here:
66754         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
66755         Reported by Albert Chin.
66756
66757 2007-07-13  Bruno Haible  <bruno@clisp.org>
66758
66759         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
66760         * modules/configmake (License): Likewise.
66761         * modules/gettext (License): Likewise.
66762         * modules/gettext-h (License): Likewise.
66763         * modules/include_next (License): Likewise.
66764         * modules/link-warning (License): Likewise.
66765         * modules/localcharset (License): Likewise.
66766         * modules/localename (License): Likewise.
66767         * modules/lock (License): Likewise.
66768         * modules/relocatable-lib-lgpl (License): Likewise.
66769         * modules/size_max (License): Likewise.
66770         * modules/vasnprintf (License): Likewise.
66771         * modules/wchar (License): Likewise.
66772         * modules/xsize (License): Likewise.
66773
66774 2007-07-13  Bruno Haible  <bruno@clisp.org>
66775
66776         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
66777         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
66778
66779 2007-07-12  Bruno Haible  <bruno@clisp.org>
66780
66781         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
66782         in the modules files.
66783
66784 2007-07-11  Karl Berry  <karl@gnu.org>
66785
66786         * MODULES.html.sh (func_module): use
66787          sed -e '\|^'"${includefile}"'$|d'
66788          instead of /.../d, to avoid errors on $includefile's containing /.
66789
66790 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66791
66792         * gnulib-tool (func_import): Avoid duplication of --avoid
66793         statements
66794         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
66795         names to `_' in variable names.
66796
66797 2007-07-10  Eric Blake  <ebb9@byu.net>
66798
66799         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
66800         * NEWS: Document this change.
66801
66802 2007-07-08  Bruno Haible  <bruno@clisp.org>
66803
66804         Update to Unicode 5.0.
66805         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
66806         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
66807         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
66808         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
66809         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
66810         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
66811         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
66812         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
66813         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
66814         U+10A3F, U+1D242..U+1D244.
66815         (nonspacing_table_ind): Update.
66816         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
66817         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
66818
66819 2007-07-08  Bruno Haible  <bruno@clisp.org>
66820
66821         Update to Unicode 5.0.
66822         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
66823         code transform. Extend the name index field of unicode_name_to_code and
66824         unicode_code_to_name from 16 to 24 bits.
66825         * lib/uniname/uniname.c (unicode_character_name,
66826         unicode_name_character): Add the range 0x12xxx to the code transform.
66827         * lib/uniname/uninames.h: Regenerated.
66828         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
66829
66830 2007-07-07  Bruno Haible  <bruno@clisp.org>
66831
66832         * modules/wcwidth-tests: New file.
66833         * tests/test-wcwidth.c: New file.
66834
66835         Work around MacOS X wcwidth() bug.
66836         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
66837         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
66838         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
66839         original wcwidth in non-UTF-8 locales.
66840         * modules/wcwidth (Depends-on): Add localcharset, streq,
66841         uniwidth/width.
66842         * doc/functions/wcwidth.texi: Update.
66843
66844 2007-07-07  Bruno Haible  <bruno@clisp.org>
66845
66846         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
66847         (wcwidth): New declaration.
66848         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
66849         macros.
66850         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
66851         here. Prepare for creating <wchar.h> unconditionally.
66852         * modules/wchar (Depends-on): Add link-warning.
66853         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
66854         REPLACE_WCWIDTH, and GL_LINK_WARNING.
66855         * lib/wcwidth.h: Remove file.
66856         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
66857         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
66858         * modules/wcwidth (Files): Remove lib/wcwidth.h.
66859         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
66860         (Include): Replace wcwidth.h with <wchar.h>.
66861         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
66862         * lib/mbchar.h: Don't include wcwidth.h.
66863         * lib/mbswidth.c: Likewise.
66864         * NEWS: Mention the change.
66865
66866 2007-07-07  Bruno Haible  <bruno@clisp.org>
66867
66868         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
66869         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
66870         definition with an external declaration.
66871         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
66872         defined as a function. Remove AC_C_INLINE requirement.
66873         * modules/wcwidth (Files): Add lib/wcwidth.c.
66874         (Makefile.am): Remove redundant statement.
66875
66876 2007-07-07  Bruno Haible  <bruno@clisp.org>
66877
66878         * MODULES.html.sh (Unicode string functions): Add the new modules.
66879
66880         * tests/uniwidth/test-u32-strwidth.c: New file.
66881         * modules/uniwidth/u32-strwidth-tests: New file.
66882
66883         * lib/uniwidth/u32-strwidth.c: New file.
66884         * modules/uniwidth/u32-strwidth: New file.
66885
66886         * tests/uniwidth/test-u16-strwidth.c: New file.
66887         * modules/uniwidth/u16-strwidth-tests: New file.
66888
66889         * lib/uniwidth/u16-strwidth.c: New file.
66890         * modules/uniwidth/u16-strwidth: New file.
66891
66892         * tests/uniwidth/test-u8-strwidth.c: New file.
66893         * modules/uniwidth/u8-strwidth-tests: New file.
66894
66895         * lib/uniwidth/u8-strwidth.c: New file.
66896         * modules/uniwidth/u8-strwidth: New file.
66897
66898         * tests/uniwidth/test-u32-width.c: New file.
66899         * modules/uniwidth/u32-width-tests: New file.
66900
66901         * lib/uniwidth/u32-width.c: New file.
66902         * modules/uniwidth/u32-width: New file.
66903
66904         * tests/uniwidth/test-u16-width.c: New file.
66905         * modules/uniwidth/u16-width-tests: New file.
66906
66907         * lib/uniwidth/u16-width.c: New file.
66908         * modules/uniwidth/u16-width: New file.
66909
66910         * tests/uniwidth/test-u8-width.c: New file.
66911         * modules/uniwidth/u8-width-tests: New file.
66912
66913         * lib/uniwidth/u8-width.c: New file.
66914         * modules/uniwidth/u8-width: New file.
66915
66916         * tests/uniwidth/test-uc_width.c: New file.
66917         * modules/uniwidth/width-tests: New file.
66918
66919         * lib/uniwidth/width.c: New file, from GNU libiconv.
66920         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
66921         * modules/uniwidth/width: New file.
66922
66923         * lib/uniwidth.h: New file, from GNU libiconv.
66924         * modules/uniwidth/base: New file.
66925
66926 2007-07-07  Bruno Haible  <bruno@clisp.org>
66927
66928         * lib/uniname.h: New file, from GNU gettext.
66929         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
66930         * lib/uniname/uninames.h: New file, from GNU gettext.
66931         * lib/uniname/uniname.c: New file, from GNU gettext.
66932         * tests/uniname/test-uninames.sh: New file.
66933         * tests/uniname/test-uninames.c: New file, from GNU gettext.
66934         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
66935         * modules/uniname/base: New file.
66936         * modules/uniname/uniname: New file.
66937         * modules/uniname/uniname-tests: New file.
66938         * MODULES.html.sh (Unicode string functions): Add the new modules.
66939
66940 2007-07-06  Bruno Haible  <bruno@clisp.org>
66941
66942         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
66943
66944 2007-07-06  Bruno Haible  <bruno@clisp.org>
66945
66946         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
66947         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
66948         includes <cygwin/sys_time.h> which includes <sys/select.h> which
66949         include <sys/time.h>.
66950         Reported by Eric Blake.
66951
66952 2007-07-06  Eric Blake  <ebb9@byu.net>
66953
66954         Fix testing canonicalize on cygwin.
66955         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66956         Revert patch from 2007-06-19.
66957         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
66958         canonicalize module is also in use.
66959         * tests/test-canonicalize.c: New file.
66960         * tests/test-canonicalize.sh: Likewise.
66961         * modules/canonicalize-tests: Likewise.
66962
66963 2007-07-06  Jim Meyering  <jim@meyering.net>
66964
66965         * lib/getugroups.c (getugroups): Detect getgrent failure.
66966         Adjust comment to reflect reality: this function may return -1.
66967
66968 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
66969
66970         * build-aux/bootstrap (TP_URL,get_translations): Update to use
66971         the new TP address.
66972         (usage): Fix typo
66973         (gnulib_mk): New variable.
66974
66975 2007-07-05  Jim Meyering  <jim@meyering.net>
66976
66977         Don't let endgrent clobber errno, no matter how improbable.
66978         * lib/getugroups.c (getugroups): Save and restore errno around
66979         endgrent call.
66980
66981         Close the group DB even when failing with 2^31 or more members.
66982         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
66983
66984 2007-07-04  Jim Meyering  <jim@meyering.net>
66985
66986         * lib/getugroups.h: New file.
66987         * lib/getugroups.c: Include "getugroups.h".
66988         Remove uses of "register" keyword.
66989         Move local variable, "cp", down into scope where used.
66990         Give "username" parameter the "const" attribute.
66991         * modules/getugroups (Files): Add lib/getugroups.h
66992
66993 2007-07-04  Karl Berry  <karl@gnu.org>
66994
66995         * MODULES.html.sh (func_all_modules): Complete rename of
66996         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
66997
66998 2007-07-02  Bruno Haible  <bruno@clisp.org>
66999
67000         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
67001         mode, when inttypes.h comes from gnulib.
67002         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67003
67004 2007-07-02  Simon Josefsson  <simon@josefsson.org>
67005
67006         * NEWS: Mention lgpl module name change.
67007
67008         * modules/lgpl-2.1: Renamed from lgpl.
67009
67010         * NEWS: Mention gpl module name change.
67011
67012         * modules/gpl-3.0: New file, based on gpl-2.0.
67013
67014         * modules/gpl-2.0: Renamed from gpl.
67015
67016         * modules/gpl: Fix filename, doc/gpl.texi is now found at
67017         doc/gpl-2.0.texi.
67018
67019 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67020
67021         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
67022         #define __STDC_LIMIT_MACROS temporarily while including
67023         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
67024         Problem reported by Joel E. Denny in
67025         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
67026
67027 2007-07-01  Bruno Haible  <bruno@clisp.org>
67028
67029         * lib/unistdio.h: New file.
67030         * lib/unistdio/u-asnprintf.h: New file.
67031         * lib/unistdio/u-asprintf.h: New file.
67032         * lib/unistdio/u-printf-args.c: New file.
67033         * lib/unistdio/u-printf-args.h: New file.
67034         * lib/unistdio/u-printf-parse.h: New file.
67035         * lib/unistdio/u-snprintf.h: New file.
67036         * lib/unistdio/u-sprintf.h: New file.
67037         * lib/unistdio/u-vasprintf.h: New file.
67038         * lib/unistdio/u-vsnprintf.h: New file.
67039         * lib/unistdio/u-vsprintf.h: New file.
67040         * lib/unistdio/ulc-asnprintf.c: New file.
67041         * lib/unistdio/ulc-asprintf.c: New file.
67042         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
67043         * lib/unistdio/ulc-printf-parse.c: New file.
67044         * lib/unistdio/ulc-snprintf.c: New file.
67045         * lib/unistdio/ulc-sprintf.c: New file.
67046         * lib/unistdio/ulc-vasnprintf.c: New file.
67047         * lib/unistdio/ulc-vasprintf.c: New file.
67048         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
67049         * lib/unistdio/ulc-vsnprintf.c: New file.
67050         * lib/unistdio/ulc-vsprintf.c: New file.
67051         * lib/unistdio/u8-asnprintf.c: New file.
67052         * lib/unistdio/u8-asprintf.c: New file.
67053         * lib/unistdio/u8-printf-parse.c: New file.
67054         * lib/unistdio/u8-snprintf.c: New file.
67055         * lib/unistdio/u8-sprintf.c: New file.
67056         * lib/unistdio/u8-vasnprintf.c: New file.
67057         * lib/unistdio/u8-vasprintf.c: New file.
67058         * lib/unistdio/u8-vsnprintf.c: New file.
67059         * lib/unistdio/u8-vsprintf.c: New file.
67060         * lib/unistdio/u8-u8-asnprintf.c: New file.
67061         * lib/unistdio/u8-u8-asprintf.c: New file.
67062         * lib/unistdio/u8-u8-snprintf.c: New file.
67063         * lib/unistdio/u8-u8-sprintf.c: New file.
67064         * lib/unistdio/u8-u8-vasnprintf.c: New file.
67065         * lib/unistdio/u8-u8-vasprintf.c: New file.
67066         * lib/unistdio/u8-u8-vsnprintf.c: New file.
67067         * lib/unistdio/u8-u8-vsprintf.c: New file.
67068         * lib/unistdio/u16-asnprintf.c: New file.
67069         * lib/unistdio/u16-asprintf.c: New file.
67070         * lib/unistdio/u16-printf-parse.c: New file.
67071         * lib/unistdio/u16-snprintf.c: New file.
67072         * lib/unistdio/u16-sprintf.c: New file.
67073         * lib/unistdio/u16-vasnprintf.c: New file.
67074         * lib/unistdio/u16-vasprintf.c: New file.
67075         * lib/unistdio/u16-vsnprintf.c: New file.
67076         * lib/unistdio/u16-vsprintf.c: New file.
67077         * lib/unistdio/u16-u16-asnprintf.c: New file.
67078         * lib/unistdio/u16-u16-asprintf.c: New file.
67079         * lib/unistdio/u16-u16-snprintf.c: New file.
67080         * lib/unistdio/u16-u16-sprintf.c: New file.
67081         * lib/unistdio/u16-u16-vasnprintf.c: New file.
67082         * lib/unistdio/u16-u16-vasprintf.c: New file.
67083         * lib/unistdio/u16-u16-vsnprintf.c: New file.
67084         * lib/unistdio/u16-u16-vsprintf.c: New file.
67085         * lib/unistdio/u32-asnprintf.c: New file.
67086         * lib/unistdio/u32-asprintf.c: New file.
67087         * lib/unistdio/u32-printf-parse.c: New file.
67088         * lib/unistdio/u32-snprintf.c: New file.
67089         * lib/unistdio/u32-sprintf.c: New file.
67090         * lib/unistdio/u32-vasnprintf.c: New file.
67091         * lib/unistdio/u32-vasprintf.c: New file.
67092         * lib/unistdio/u32-vsnprintf.c: New file.
67093         * lib/unistdio/u32-vsprintf.c: New file.
67094         * lib/unistdio/u32-u32-asnprintf.c: New file.
67095         * lib/unistdio/u32-u32-asprintf.c: New file.
67096         * lib/unistdio/u32-u32-snprintf.c: New file.
67097         * lib/unistdio/u32-u32-sprintf.c: New file.
67098         * lib/unistdio/u32-u32-vasnprintf.c: New file.
67099         * lib/unistdio/u32-u32-vasprintf.c: New file.
67100         * lib/unistdio/u32-u32-vsnprintf.c: New file.
67101         * lib/unistdio/u32-u32-vsprintf.c: New file.
67102         * tests/unistdio/test-ulc-asnprintf1.c: New file.
67103         * tests/unistdio/test-ulc-asnprintf1.h: New file.
67104         * tests/unistdio/test-ulc-printf1.h: New file.
67105         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
67106         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
67107         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
67108         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
67109         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
67110         * tests/unistdio/test-ulc-vasprintf1.c: New file.
67111         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
67112         * tests/unistdio/test-ulc-vsprintf1.c: New file.
67113         * tests/unistdio/test-u8-asnprintf1.c: New file.
67114         * tests/unistdio/test-u8-asnprintf1.h: New file.
67115         * tests/unistdio/test-u8-printf1.h: New file.
67116         * tests/unistdio/test-u8-vasnprintf1.c: New file.
67117         * tests/unistdio/test-u8-vasnprintf2.c: New file.
67118         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
67119         * tests/unistdio/test-u8-vasnprintf3.c: New file.
67120         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
67121         * tests/unistdio/test-u8-vasprintf1.c: New file.
67122         * tests/unistdio/test-u8-vsnprintf1.c: New file.
67123         * tests/unistdio/test-u8-vsprintf1.c: New file.
67124         * tests/unistdio/test-u16-asnprintf1.c: New file.
67125         * tests/unistdio/test-u16-asnprintf1.h: New file.
67126         * tests/unistdio/test-u16-printf1.h: New file.
67127         * tests/unistdio/test-u16-vasnprintf1.c: New file.
67128         * tests/unistdio/test-u16-vasnprintf2.c: New file.
67129         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
67130         * tests/unistdio/test-u16-vasnprintf3.c: New file.
67131         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
67132         * tests/unistdio/test-u16-vasprintf1.c: New file.
67133         * tests/unistdio/test-u16-vsnprintf1.c: New file.
67134         * tests/unistdio/test-u16-vsprintf1.c: New file.
67135         * tests/unistdio/test-u32-asnprintf1.c: New file.
67136         * tests/unistdio/test-u32-asnprintf1.h: New file.
67137         * tests/unistdio/test-u32-printf1.h: New file.
67138         * tests/unistdio/test-u32-vasnprintf1.c: New file.
67139         * tests/unistdio/test-u32-vasnprintf2.c: New file.
67140         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
67141         * tests/unistdio/test-u32-vasnprintf3.c: New file.
67142         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
67143         * tests/unistdio/test-u32-vasprintf1.c: New file.
67144         * tests/unistdio/test-u32-vsnprintf1.c: New file.
67145         * tests/unistdio/test-u32-vsprintf1.c: New file.
67146         * modules/unistdio/base: New file.
67147         * modules/unistdio/u-printf-args: New file.
67148         * modules/unistdio/ulc-asnprintf: New file.
67149         * modules/unistdio/ulc-asprintf: New file.
67150         * modules/unistdio/ulc-fprintf: New file.
67151         * modules/unistdio/ulc-printf-parse: New file.
67152         * modules/unistdio/ulc-snprintf: New file.
67153         * modules/unistdio/ulc-sprintf: New file.
67154         * modules/unistdio/ulc-vasnprintf: New file.
67155         * modules/unistdio/ulc-vasprintf: New file.
67156         * modules/unistdio/ulc-vfprintf: New file.
67157         * modules/unistdio/ulc-vsnprintf: New file.
67158         * modules/unistdio/ulc-vsprintf: New file.
67159         * modules/unistdio/u8-asnprintf: New file.
67160         * modules/unistdio/u8-asprintf: New file.
67161         * modules/unistdio/u8-printf-parse: New file.
67162         * modules/unistdio/u8-snprintf: New file.
67163         * modules/unistdio/u8-sprintf: New file.
67164         * modules/unistdio/u8-vasnprintf: New file.
67165         * modules/unistdio/u8-vasprintf: New file.
67166         * modules/unistdio/u8-vsnprintf: New file.
67167         * modules/unistdio/u8-vsprintf: New file.
67168         * modules/unistdio/u8-u8-asnprintf: New file.
67169         * modules/unistdio/u8-u8-asprintf: New file.
67170         * modules/unistdio/u8-u8-snprintf: New file.
67171         * modules/unistdio/u8-u8-sprintf: New file.
67172         * modules/unistdio/u8-u8-vasnprintf: New file.
67173         * modules/unistdio/u8-u8-vasprintf: New file.
67174         * modules/unistdio/u8-u8-vsnprintf: New file.
67175         * modules/unistdio/u8-u8-vsprintf: New file.
67176         * modules/unistdio/u16-asnprintf: New file.
67177         * modules/unistdio/u16-asprintf: New file.
67178         * modules/unistdio/u16-printf-parse: New file.
67179         * modules/unistdio/u16-snprintf: New file.
67180         * modules/unistdio/u16-sprintf: New file.
67181         * modules/unistdio/u16-vasnprintf: New file.
67182         * modules/unistdio/u16-vasprintf: New file.
67183         * modules/unistdio/u16-vsnprintf: New file.
67184         * modules/unistdio/u16-vsprintf: New file.
67185         * modules/unistdio/u16-u16-asnprintf: New file.
67186         * modules/unistdio/u16-u16-asprintf: New file.
67187         * modules/unistdio/u16-u16-snprintf: New file.
67188         * modules/unistdio/u16-u16-sprintf: New file.
67189         * modules/unistdio/u16-u16-vasnprintf: New file.
67190         * modules/unistdio/u16-u16-vasprintf: New file.
67191         * modules/unistdio/u16-u16-vsnprintf: New file.
67192         * modules/unistdio/u16-u16-vsprintf: New file.
67193         * modules/unistdio/u32-asnprintf: New file.
67194         * modules/unistdio/u32-asprintf: New file.
67195         * modules/unistdio/u32-printf-parse: New file.
67196         * modules/unistdio/u32-snprintf: New file.
67197         * modules/unistdio/u32-sprintf: New file.
67198         * modules/unistdio/u32-vasnprintf: New file.
67199         * modules/unistdio/u32-vasprintf: New file.
67200         * modules/unistdio/u32-vsnprintf: New file.
67201         * modules/unistdio/u32-vsprintf: New file.
67202         * modules/unistdio/u32-u32-asnprintf: New file.
67203         * modules/unistdio/u32-u32-asprintf: New file.
67204         * modules/unistdio/u32-u32-snprintf: New file.
67205         * modules/unistdio/u32-u32-sprintf: New file.
67206         * modules/unistdio/u32-u32-vasnprintf: New file.
67207         * modules/unistdio/u32-u32-vasprintf: New file.
67208         * modules/unistdio/u32-u32-vsnprintf: New file.
67209         * modules/unistdio/u32-u32-vsprintf: New file.
67210         * modules/unistdio/ulc-asnprintf-tests: New file.
67211         * modules/unistdio/ulc-vasnprintf-tests: New file.
67212         * modules/unistdio/ulc-vasprintf-tests: New file.
67213         * modules/unistdio/ulc-vsnprintf-tests: New file.
67214         * modules/unistdio/ulc-vsprintf-tests: New file.
67215         * modules/unistdio/u8-asnprintf-tests: New file.
67216         * modules/unistdio/u8-vasnprintf-tests: New file.
67217         * modules/unistdio/u8-vasprintf-tests: New file.
67218         * modules/unistdio/u8-vsnprintf-tests: New file.
67219         * modules/unistdio/u8-vsprintf-tests: New file.
67220         * modules/unistdio/u16-asnprintf-tests: New file.
67221         * modules/unistdio/u16-vasnprintf-tests: New file.
67222         * modules/unistdio/u16-vasprintf-tests: New file.
67223         * modules/unistdio/u16-vsnprintf-tests: New file.
67224         * modules/unistdio/u16-vsprintf-tests: New file.
67225         * modules/unistdio/u32-asnprintf-tests: New file.
67226         * modules/unistdio/u32-vasnprintf-tests: New file.
67227         * modules/unistdio/u32-vasprintf-tests: New file.
67228         * modules/unistdio/u32-vsnprintf-tests: New file.
67229         * modules/unistdio/u32-vsprintf-tests: New file.
67230         * MODULES.html.sh (Unicode string functions): Add the new modules.
67231
67232 2007-07-01  Bruno Haible  <bruno@clisp.org>
67233
67234         * lib/sprintf.c (sprintf): Limit the available length estimation,
67235         to avoid address wraparound.
67236         * lib/vsprintf.c (vsprintf): Likewise.
67237         * modules/sprintf-posix (Dependencies): Add stdint.
67238         * modules/vsprintf-posix (Dependencies): Likewise.
67239
67240 2007-07-01  Bruno Haible  <bruno@clisp.org>
67241
67242         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
67243         Windows PATH as well. Conservative double-quoting. Comments.
67244
67245 2007-07-01  Bruno Haible  <bruno@clisp.org>
67246             Eric Blake  <ebb9@byu.net>
67247             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67248
67249         * gnulib-tool (self_abspathname): Fix algorithm to cope with
67250         empty components in $PATH, denoting '.'.
67251
67252 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67253
67254         * gnulib-tool: Fix indentation.
67255         (func_create_megatestdir): Likewise.
67256         Report by Bruno Haible.
67257
67258 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67259
67260         Sync from Automake.
67261         * build-aux/gnupload: Fix shell portability issues with for loops.
67262         Report by Karl Berry.
67263
67264 2007-06-29  Simon Josefsson  <simon@josefsson.org>
67265
67266         * build-aux/maint.mk (POURL): Use translationproject.org.
67267
67268 2007-06-27  Simon Josefsson  <simon@josefsson.org>
67269             Bruno Haible  <bruno@clisp.org>
67270
67271         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
67272         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
67273         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
67274         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
67275         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
67276
67277 2007-06-27  Bruno Haible  <bruno@clisp.org>
67278
67279         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
67280         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
67281
67282 2007-06-26  Karl Berry  <karl@gnu.org>
67283
67284         * MODULES.html.sh: remove xreadlink-with-size.
67285
67286 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67287
67288         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
67289         method that I hope also handles the double-include problem noted
67290         by Bruno Haible in
67291         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
67292
67293 2007-06-23  Bruno Haible  <bruno@clisp.org>
67294
67295         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67296         Don't let the 'mostlyclean' target fail if the last subdirectory could
67297         not be removed.
67298         Reported by Karl Berry.
67299
67300 2007-06-23  Bruno Haible  <bruno@clisp.org>
67301
67302         * gnulib-tool (echo): Add a speedier workaround for ksh.
67303         * tests/test-echo.sh: Likewise.
67304
67305 2007-06-23  Bruno Haible  <bruno@clisp.org>
67306
67307         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
67308         * tests/test-echo.sh: Likewise.
67309
67310 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67311
67312         * gnulib-tool (IFS): Initialize early, so we don't set it to
67313         empty later.
67314         (self_abspathname): Rewrite algorithm to set it, reindent.
67315         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
67316         (func_create_megatestdir): Merge some sed scripts.
67317
67318 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67319
67320         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
67321         exposed by Sun Studio 11 cc on Solaris 8.
67322
67323 2007-06-22  Bruno Haible  <bruno@clisp.org>
67324
67325         * gnulib-tool (echo): Ensure the echo primitive does not interpret
67326         backslashes.
67327         * tests/test-echo.sh: New file.
67328
67329 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67330
67331         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
67332         simplify `sed_replace_build_aux' scripts, they are portable but
67333         echoing them with `echo' is not.
67334         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
67335
67336 2007-06-21  Karl Berry  <karl@gnu.org>
67337
67338         * config/srclist.txt: guess we can't handle the licenses via
67339         srclist at the moment.
67340
67341 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67342
67343         * MODULES.html.sh: Add include_next.
67344         * modules/include_next: New file.
67345
67346 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67347
67348         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
67349         INCLUDE_NEXT.
67350         (gl_CHECK_NEXT_HEADERS): New macro.
67351         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
67352         the obsolescent gl_ABSOLUTE_HEADER.
67353         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
67354         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
67355         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
67356         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
67357         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
67358         * m4/math_h.m4 (gl_MATH_H): Likewise.
67359         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
67360         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
67361         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
67362         * m4/stdint.m4 (gl_STDINT_H): Likewise.
67363         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
67364         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
67365         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
67366         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
67367         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
67368         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
67369         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
67370         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
67371         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
67372         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
67373         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
67374         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67375         * m4/inttypes.m4 (gl_INTTYPES_H): Define
67376         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
67377         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
67378         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
67379         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
67380         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
67381         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
67382         * lib/float_.h: Likewise.
67383         * lib/inttypes_.h: Likewise.
67384         * lib/math_.h: Likewise.
67385         * lib/search_.h: Likewise.
67386         * lib/signal_.h: Likewise.
67387         * lib/stdint_.h: Likewise.
67388         * lib/stdio_.h: Likewise.
67389         * lib/stdlib_.h: Likewise.
67390         * lib/string_.h: Likewise.
67391         * lib/sys_stat_.h: Likewise.
67392         * lib/sys_time_.h: Likewise.
67393         * lib/time_.h: Likewise.
67394         * lib/unistd_.h: Likewise.
67395         * lib/wchar_.h: Likewise.
67396         * lib/wctype_.h: Likewise.
67397         * lib/dirent_.h: Likewise.
67398         * lib/iconv_.h: Likewise.
67399         * lib/locale_.h: Likewise.
67400         * lib/netinet_in_.h: Likewise.
67401         * lib/sys_select_.h: Likewise.
67402         * lib/sys_socket_.h: Likewise.
67403         * lib/sysexits_.h: Likewise.
67404         * modules/fcntl (Depends-on): Depend on include_next, not
67405         absolute_header.
67406         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
67407         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
67408         * modules/fchdir: Likewise.
67409         * modules/float: Likewise.
67410         * modules/iconv_open: Likewise.
67411         * modules/inttypes: Likewise.
67412         * modules/locale: Likewise.
67413         * modules/math: Likewise.
67414         * modules/netinet_in: Likewise.
67415         * modules/search: Likewise.
67416         * modules/signal: Likewise.
67417         * modules/stdint: Likewise.
67418         * modules/stdio: Likewise.
67419         * modules/stdlib: Likewise.
67420         * modules/string: Likewise.
67421         * modules/sys_select: Likewise.
67422         * modules/sys_socket: Likewise.
67423         * modules/sys_stat: Likewise.
67424         * modules/sys_time: Likewise.
67425         * modules/sysexits: Likewise.
67426         * modules/time: Likewise.
67427         * modules/unistd: Likewise.
67428         * modules/wchar: Likewise.
67429         * modules/wctype: Likewise.
67430         * modules/sys_stat: Change maintainer to "all".
67431         * modules/unistd: Likewise.
67432
67433 2007-06-20  Karl Berry  <karl@gnu.org>
67434
67435         * config/srclist.txt: track www changes in license files.
67436
67437 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
67438
67439         * build-aux/bootstrap: Remove stray dot.
67440         Make sure build_aux settings are honored when linking
67441         gnulib_extra_files.
67442
67443 2007-06-19  Eric Blake  <ebb9@byu.net>
67444
67445         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67446         Allow compilation on cygwin.
67447
67448 2007-06-19  Jim Meyering  <jim@meyering.net>
67449
67450         xreadlink-with-size: Remove module.  No longer used.
67451         Ex-callers now use xreadlink or mreadlink-with-size.
67452         * modules/xreadlink-with-size: Remove module.
67453         * lib/xreadlink-with-size.c: Remove file.
67454         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
67455         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
67456         just before the function definition *is* accurate.
67457
67458         Eliminate one way canonicalize_filename_mode could exit.
67459         * lib/canonicalize.c (canonicalize_filename_mode):
67460         Use mreadlink_with_size, not xreadlink_with_size.
67461
67462 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
67463
67464         Detect porting problems to FreeBSD/arm, which has time_t wider than
67465         long int.  Original problem reported for GNU diff by Xin Li in
67466         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
67467         * modules/getdate (Depends-on): Add intprops, verify.
67468         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
67469         is an integer type no wider than long int.
67470
67471 2007-06-18  Jim Meyering  <jim@meyering.net>
67472
67473         New module: mreadlink-with-size.
67474         * MODULES.html.sh: Add mreadlink-with-size.
67475         * modules/mreadlink-with-size: New module
67476         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
67477         not xreadlink-with-size.
67478         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
67479
67480 2007-06-16  Bruno Haible  <bruno@clisp.org>
67481
67482         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
67483         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
67484         Reported by Gary V. Vaughan <gary@gnu.org>.
67485
67486 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
67487
67488         Revamp lchown so that it lives in unistd.h where it belongs.
67489         * lib/lchown.h: Remove.
67490         * lib/dirchownmod.c: Don't include lib/lchown.h.
67491         * lib/fchownat.c: Likewise.
67492         * lib/openat.c: Likewise.
67493         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
67494         does not follow symlinks.
67495         (EOPNOTSUPP): Define if not defined.
67496         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
67497         is defined to 0.
67498         (lchown): New decl.
67499         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
67500         Do not check for lchown decl.
67501         Set REPLACE_LCHOWN.
67502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
67503         REPLACE_LCHOWN.
67504         * modules/chown: Make it clear it follows symlinks.
67505         * modules/lchown: Make it clear it doesn't follow symlinks.
67506         (Files): Remove lib/lchown.h
67507         (Depends-on): Add unistd.
67508         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
67509         (Include): Include <unistd.h>, not "lchown.h".
67510         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
67511         REPLACE_LCHOWN.
67512
67513 2007-06-15  Jim Meyering  <jim@meyering.net>
67514
67515         Change license (GPL to LGPL) of fsusage and dependents.
67516         * modules/fsusage (License): Change to LGPL.
67517         * modules/full-read (License): Likewise.
67518         * modules/full-write (License): Likewise.
67519         * modules/safe-read (License): Likewise.
67520         * modules/safe-write (License): Likewise.
67521
67522 2007-06-14  Ben Pfaff  <blp@gnu.org>
67523
67524         Missing part of allocsa -> malloca transition.
67525         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
67526         gl_MALLOCA.
67527
67528 2007-06-12  Bruno Haible  <bruno@clisp.org>
67529
67530         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
67531         to ia64, x86_64, i386.
67532         Reported by Eric Blake.
67533
67534 2007-06-12  Bruno Haible  <bruno@clisp.org>
67535
67536         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
67537         cross-compiling to x86_64.
67538
67539 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
67540
67541         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
67542         glitch reported by Ralf Wildenhues in
67543         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
67544
67545         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
67546         Vin Shelton.
67547
67548 2007-06-11  Bruno Haible  <bruno@clisp.org>
67549
67550         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
67551         replacement string.
67552         Reported by Eric Blake.
67553
67554 2007-06-10  Bruno Haible  <bruno@clisp.org>
67555
67556         Prepare vasnprintf code for use with Unicode strings.
67557         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
67558         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
67559         TYPE_U32_STRING.
67560         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
67561         a_u32_string variants.
67562         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67563         * lib/printf-args.c: Don't include config.h and the specification
67564         header if PRINTF_FETCHARGS is already defined.
67565         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67566         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
67567         TYPE_U16_STRING, TYPE_U32_STRING.
67568         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
67569         u16_directive, u16_directives, u32_directive, u32_directives): New
67570         types.
67571         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
67572         New declarations.
67573         * lib/printf-parse.c: Don't include config.h and the specification
67574         header if PRINTF_PARSE is already defined. Eliminate the set of
67575         parameters for WIDE_CHAR_VERSION; the user of this file must provide
67576         them now. Include c-ctype.h.
67577         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
67578         directive and CHAR_T_ONLY_ASCII.
67579         * lib/vasnprintf.c: Don't include config.h and the specification header
67580         if VASNPRINTF is already defined.
67581         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
67582         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
67583         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
67584         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
67585         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
67586         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
67587         code accordingly.
67588         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
67589         pad_ourselves also in this case, with the 'c' and 's' directives, and
67590         with a different notion of "width".
67591         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
67592
67593 2007-06-10  Bruno Haible  <bruno@clisp.org>
67594
67595         * modules/unistr/u32-mbsnlen: New file.
67596         * lib/unistr/u32-mbsnlen.c: New file.
67597
67598         * modules/unistr/u16-mbsnlen: New file.
67599         * lib/unistr/u16-mbsnlen.c: New file.
67600
67601         * modules/unistr/u8-mbsnlen: New file.
67602         * lib/unistr/u8-mbsnlen.c: New file.
67603
67604         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
67605         declarations.
67606
67607 2007-06-10  Bruno Haible  <bruno@clisp.org>
67608
67609         * lib/string_.h (mbsnlen): New declaration.
67610         * lib/mbsnlen.c: New file.
67611         * m4/mbsnlen.m4: New file.
67612         * modules/mbsnlen: New file.
67613         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
67614         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
67615         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
67616
67617 2007-06-10  Bruno Haible  <bruno@clisp.org>
67618
67619         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
67620
67621 2007-06-10  Bruno Haible  <bruno@clisp.org>
67622
67623         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
67624         * lib/mbuiter.h: Likewise.
67625
67626 2007-06-10  Bruno Haible  <bruno@clisp.org>
67627
67628         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
67629         declaration.
67630
67631 2007-06-10  Karl Berry  <karl@gnu.org>
67632
67633         * config/srclist.txt: remove gettext entries, Bruno prefers
67634         to update individually.
67635
67636 2007-06-10  Bruno Haible  <bruno@clisp.org>
67637
67638         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
67639         'maxlen'. Ensure only length + width bytes are allocated, not
67640         length + 1 + width.
67641
67642 2007-06-09  Bruno Haible  <bruno@clisp.org>
67643
67644         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
67645         (CHAR_T): Remove macro.
67646         (VASNPRINTF): Update.
67647
67648 2007-06-09  Bruno Haible  <bruno@clisp.org>
67649
67650         * MODULES.html.sh (Unicode string functions): Add the new modules.
67651
67652         * modules/uniconv/u32-conv-to-enc: New file.
67653         * lib/uniconv/u32-conv-to-enc.c: New file.
67654         * modules/uniconv/u32-conv-to-enc-tests: New file.
67655         * tests/uniconv/test-u32-conv-to-enc.c: New file.
67656
67657         * modules/uniconv/u16-conv-to-enc: New file.
67658         * lib/uniconv/u16-conv-to-enc.c: New file.
67659         * lib/uniconv/u-conv-to-enc.h: New file.
67660         * modules/uniconv/u16-conv-to-enc-tests: New file.
67661         * tests/uniconv/test-u16-conv-to-enc.c: New file.
67662
67663         * modules/uniconv/u8-conv-to-enc: New file.
67664         * lib/uniconv/u8-conv-to-enc.c: New file.
67665         * modules/uniconv/u8-conv-to-enc-tests: New file.
67666         * tests/uniconv/test-u8-conv-to-enc.c: New file.
67667
67668         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
67669         u32_conv_to_encoding): New declarations.
67670
67671 2007-06-09  Bruno Haible  <bruno@clisp.org>
67672
67673         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
67674
67675 2007-06-09  Bruno Haible  <bruno@clisp.org>
67676
67677         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
67678         * modules/malloca: Renamed from modules/allocsa, updated.
67679         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
67680         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
67681         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
67682         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
67683         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
67684         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
67685         * modules/xmalloca: Renamed from modules/xallocsa, updated.
67686         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
67687         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
67688         * modules/c-strcasestr (Depends-on): Update.
67689         * lib/c-strcasestr.c: Update.
67690         * modules/c-strstr (Depends-on): Update.
67691         * lib/c-strstr.c: Update.
67692         * modules/canonicalize-lgpl (Depends-on): Update.
67693         * lib/canonicalize-lgpl.c: Update.
67694         * modules/clean-temp (Depends-on): Update.
67695         * lib/clean-temp.c: Update.
67696         * modules/csharpcomp (Depends-on): Update.
67697         * lib/csharpcomp.c: Update.
67698         * modules/csharpexec (Depends-on): Update.
67699         * lib/csharpexec.c: Update.
67700         * modules/javacomp (Depends-on): Update.
67701         * lib/javacomp.c: Update.
67702         * modules/javaexec (Depends-on): Update.
67703         * lib/javaexec.c: Update.
67704         * modules/mbscasestr (Depends-on): Update.
67705         * lib/mbscasestr.c: Update.
67706         * modules/mbsstr (Depends-on): Update.
67707         * lib/mbsstr.c: Update.
67708         * modules/setenv (Depends-on): Update.
67709         * lib/setenv.c: Update.
67710         * modules/strcasestr (Depends-on): Update.
67711         * lib/strcasestr.c: Update.
67712         * modules/striconveha (Depends-on): Update.
67713         * lib/striconveha.c: Update.
67714         * modules/relocatable-prog-wrapper (Files): Update.
67715         * lib/relocwrapper.c: Update.
67716         * build-aux/install-reloc: Update.
67717         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
67718
67719 2007-06-08  Bruno Haible  <bruno@clisp.org>
67720
67721         Port to uClibc.
67722         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
67723         * lib/fpurge.c (fpurge): Likewise.
67724         * lib/freading.c (freading): Likewise.
67725         * lib/fseeko.c (rpl_fseeko): Likewise.
67726         * lib/fseterr.c (fseterr): Likewise.
67727         * lib/fwriting.c (fwriting): Likewise.
67728         * tests/test-fflush.c (main): Avoid a failure on uClibc.
67729
67730 2007-06-08  Bruno Haible  <bruno@clisp.org>
67731
67732         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
67733         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
67734         * modules/gettext (Files): Add m4/intlmacosx.m4.
67735
67736 2007-06-07  Bruno Haible  <bruno@clisp.org>
67737
67738         * modules/localename-tests: New file.
67739         * tests/test-localename.c: New file.
67740
67741         New module 'localename'.
67742         * lib/localename.h: New file.
67743         * lib/localename.c: New file, from GNU gettext.
67744         * m4/localename.m4: New file.
67745         * modules/localename: New file.
67746
67747 2007-06-07  Bruno Haible  <bruno@clisp.org>
67748
67749         Work around the lack of <wchar.h> on some builds of uClibc.
67750         * doc/headers/wchar.texi: Update.
67751         * lib/wchar_.h: Include <wchar.h> only if it exists.
67752         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
67753         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
67754         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
67755         doesn't exist.
67756         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
67757         * modules/mbfile (Depends-on): Add wchar.
67758         * modules/mbiter (Depends-on): Likewise.
67759         * modules/mbuiter (Depends-on): Likewise.
67760         Reported by Simon Josefsson.
67761
67762 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67763
67764         Work around problem reported by Steven M. Schweda in
67765         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
67766         Tru64 5.1B with the Compaq compiler environment installed declares
67767         an 'isblank' function but does not define it in the C library.
67768         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
67769         * lib/regex_internal.h (isblank): Likewise.
67770         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
67771         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67772
67773 2007-06-05  Bruno Haible  <bruno@clisp.org>
67774
67775         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
67776         ia64.
67777         * modules/printf-safe: New file.
67778         * modules/fprintf-posix (Depends-on): Add printf-safe.
67779         * modules/printf-posix (Depends-on): Likewise.
67780         * modules/snprintf-posix (Depends-on): Likewise.
67781         * modules/sprintf-posix (Depends-on): Likewise.
67782         * modules/vasnprintf-posix (Depends-on): Likewise.
67783         * modules/vasprintf-posix (Depends-on): Likewise.
67784         * modules/vfprintf-posix (Depends-on): Likewise.
67785         * modules/vprintf-posix (Depends-on): Likewise.
67786         * modules/vsnprintf-posix (Depends-on): Likewise.
67787         * modules/vsprintf-posix (Depends-on): Likewise.
67788         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
67789         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
67790         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
67791         "no" on i386, x86_64, ia64.
67792         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
67793         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67794         on i386, x86_64, ia64.
67795         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
67796         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67797         on i386, x86_64, ia64.
67798         * tests/test-vasnprintf-posix.c: Include float.h.
67799         (LDBL80_WORDS): New macro.
67800         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67801         on i386, x86_64, ia64.
67802         * tests/test-vasprintf-posix.c: Include float.h.
67803         (LDBL80_WORDS): New macro.
67804         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67805         on i386, x86_64, ia64.
67806         * tests/test-snprintf-posix.c: Include float.h.
67807         * tests/test-sprintf-posix.c: Likewise.
67808         * tests/test-vsnprintf-posix.c: Likewise.
67809         * tests/test-vsprintf-posix.c: Likewise.
67810
67811 2007-06-05  Bruno Haible  <bruno@clisp.org>
67812
67813         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
67814         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
67815         non-IEEE numbers on i386, x86_64, ia64.
67816         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
67817         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
67818         * tests/test-isnanl.h: Include float.h.
67819         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
67820
67821 2007-06-05  Bruno Haible  <bruno@clisp.org>
67822
67823         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
67824         also the %a / %A. Handle the %a / %A code before this extra handling.
67825
67826 2007-06-05  Bruno Haible  <bruno@clisp.org>
67827
67828         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
67829         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
67830
67831 2007-06-05  Bruno Haible  <bruno@clisp.org>
67832
67833         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
67834         typo in variable name.
67835
67836 2007-06-05  Eric Blake  <ebb9@byu.net>
67837
67838         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
67839         Reported by Simon Josefsson.
67840
67841 2007-06-04  Bruno Haible  <bruno@clisp.org>
67842
67843         Avoid test failures on some PowerPC platforms.
67844         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
67845         Define differently for PowerPC.
67846         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
67847         Reported by Gary V. Vaughan <gary@gnu.org>.
67848
67849 2007-06-02  Bruno Haible  <bruno@clisp.org>
67850
67851         Fix test-stdint failure on FreeBSD/ia64.
67852         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
67853         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
67854         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
67855         * doc/headers/stdint.texi: Update.
67856
67857 2007-06-01  Bruno Haible  <bruno@clisp.org>
67858
67859         * tests/test-binary-io.c (main): Pass a third argument to open().
67860         Reported by Gary V. Vaughan <gary@gnu.org>.
67861
67862 2007-06-01  Bruno Haible  <bruno@clisp.org>
67863
67864         * doc/functions/frexpl.texi: Update for mingw.
67865
67866 2007-06-01  Bruno Haible  <bruno@clisp.org>
67867
67868         * tests/test-lseek.c (main): Disable test of errno for invalid third
67869         argument.
67870         * doc/functions/lseek.texi: Update.
67871         Reported by Gary V. Vaughan <gary@gnu.org>.
67872
67873 2007-05-28  Bruno Haible  <bruno@clisp.org>
67874
67875         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
67876
67877 2007-05-31  Eric Blake  <ebb9@byu.net>
67878
67879         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
67880         cross compiling.
67881
67882 2007-05-30  Eric Blake  <ebb9@byu.net>
67883         and Bruno Haible  <bruno@clisp.org>
67884
67885         Work around mingw test failures exposed by m4-1.4.9b.
67886         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
67887         * tests/test-unistd.c: Disable uid_t and git_t tests for the
67888         moment.
67889
67890 2007-05-30  Bruno Haible  <bruno@clisp.org>
67891
67892         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
67893         assuming that they are closed. Needed on HP-UX 11.
67894
67895 2007-05-29  Bruno Haible  <bruno@clisp.org>
67896
67897         Fix a problem with #include_next.
67898         * lib/dirent_.h: Split the double-inclusion guard.
67899         * lib/fcntl_.h: Likewise.
67900         * lib/float_.h: Likewise.
67901         * lib/iconv_.h: Likewise.
67902         * lib/inttypes_.h: Likewise.
67903         * lib/locale_.h: Likewise.
67904         * lib/math_.h: Likewise.
67905         * lib/netinet_in_.h: Likewise.
67906         * lib/search_.h: Likewise.
67907         * lib/signal_.h: Likewise.
67908         * lib/stdint_.h: Likewise.
67909         * lib/stdio_.h: Likewise.
67910         * lib/stdlib_.h: Likewise.
67911         * lib/string_.h: Likewise.
67912         * lib/sys_select_.h: Likewise.
67913         * lib/sys_socket_.h: Likewise.
67914         * lib/sys_stat_.h: Likewise.
67915         * lib/sys_time_.h: Likewise.
67916         * lib/sysexits_.h: Likewise.
67917         * lib/time_.h: Likewise.
67918         * lib/unistd_.h: Likewise.
67919         * lib/wchar_.h: Likewise.
67920         * lib/wctype_.h: Likewise.
67921
67922 2007-05-29  Bruno Haible  <bruno@clisp.org>
67923
67924         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
67925         for the moment.
67926
67927 2007-05-29  Bruno Haible  <bruno@clisp.org>
67928
67929         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
67930         invocation.
67931         Reported by Eric Blake.
67932
67933 2007-05-29  Bruno Haible  <bruno@clisp.org>
67934
67935         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
67936         compiling case.
67937
67938 2007-05-29  Eric Blake  <ebb9@byu.net>
67939             Bruno Haible  <bruno@clisp.org>
67940
67941         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
67942         cross compiles.
67943
67944 2007-05-28  Eric Blake  <ebb9@byu.net>
67945
67946         * modules/closein-tests (test_closein_LDADD): Support test on
67947         cygwin with libtool.
67948
67949 2007-05-28  Bruno Haible  <bruno@clisp.org>
67950
67951         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
67952         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67953         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67954         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67955         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67956         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67957         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67958         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67959         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67960
67961 2007-05-28  Eric Blake  <ebb9@byu.net>
67962
67963         Unconditionally include <config.h> in unit tests.
67964         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
67965         * tests/test-allocsa.c, tests/test-arcfour.c,
67966         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
67967         tests/test-array_list.c, tests/test-array_oset.c,
67968         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
67969         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
67970         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
67971         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
67972         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
67973         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
67974         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
67975         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
67976         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
67977         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
67978         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
67979         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
67980         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
67981         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
67982         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
67983         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
67984         test-md5.c, test-memmem.c, test-printf-posix.c,
67985         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
67986         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
67987         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
67988         test-strcasestr.c, test-striconv.c, test-striconveh.c,
67989         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
67990         test-vasnprintf-posix2.c, test-vasnprintf.c,
67991         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
67992         test-vfprintf-posix.c, test-vprintf-posix.c,
67993         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
67994         test-xvasprintf.c: Likewise.
67995
67996 2007-05-28  Bruno Haible  <bruno@clisp.org>
67997
67998         * gnulib-tool (func_import): Remember the --with-tests command-line
67999         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
68000         Reported by Eric Blake.
68001
68002 2007-05-28  Bruno Haible  <bruno@clisp.org>
68003
68004         * modules/ftell-tests: New file.
68005         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
68006         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
68007
68008         * lib/ftell.c: New file.
68009         * modules/ftell: New file.
68010         * m4/ftell.m4: New file.
68011         * doc/functions/ftell.texi: Update.
68012         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
68013         REPLACE_FTELL.
68014         * lib/stdio_.h (rpl_ftell): New declaration.
68015         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
68016         REPLACE_FTELL.
68017
68018 2007-05-28  Eric Blake  <ebb9@byu.net>
68019
68020         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
68021
68022 2007-05-28  Bruno Haible  <bruno@clisp.org>
68023
68024         * modules/fseek-tests: New file.
68025         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
68026         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
68027
68028         * lib/fseek.c: New file.
68029         * modules/fseek: New file.
68030         * m4/fseek.m4: New file.
68031         * doc/functions/fseek.texi: Update.
68032         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
68033         REPLACE_FSEEK.
68034         * lib/stdio_.h (rpl_fseek): New declaration.
68035         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
68036         REPLACE_FSEEK.
68037
68038 2007-05-28  Bruno Haible  <bruno@clisp.org>
68039
68040         * lib/stdio_.h (fflush): More comments.
68041
68042 2007-05-28  Bruno Haible  <bruno@clisp.org>
68043
68044         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
68045         runtime test.
68046
68047 2007-05-28  Eric Blake  <ebb9@byu.net>
68048
68049         Improve lseek module.
68050         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
68051         * lib/unistd_.h (lseek): Scale back link warning message.
68052         * tests/test-lseek.c: Beef up test.
68053         * tests/test-lseek.sh: Exercise more facets of lseek.
68054         Reported by Bruno Haible.
68055
68056 2007-05-28  Bruno Haible  <bruno@clisp.org>
68057
68058         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
68059         to define.
68060
68061 2007-05-27  Bruno Haible  <bruno@clisp.org>
68062
68063         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
68064
68065 2007-05-27  Bruno Haible  <bruno@clisp.org>
68066
68067         * modules/openmp: New file.
68068         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
68069         Noah Misch.
68070
68071 2007-05-26  Bruno Haible  <bruno@clisp.org>
68072
68073         * modules/chdir-long (Depends-on): Add fchdir.
68074         * modules/chdir-safer (Depends-on): Likewise.
68075         * modules/fts (Depends-on): Likewise.
68076         * modules/fts-lgpl (Depends-on): Likewise.
68077         * modules/openat (Depends-on): Likewise.
68078         * modules/savewd (Depends-on): Likewise.
68079
68080 2007-05-24  Eric Blake  <ebb9@byu.net>
68081
68082         Fix lseek on mingw.
68083         * modules/lseek: New module.
68084         * m4/lseek.m4: New file.
68085         * lib/lseek.c: New file.
68086         * modules/lseek-tests: New file.
68087         * tests/test-lseek.c: New file.
68088         * tests/test-lseek.sh: New file.
68089         * MODULES.html.sh: Document lseek module.
68090         * modules/fflush (Depends-on): Add lseek, fseeko.
68091         * modules/fseeko (Depends-on): Likewise.
68092         * modules/ftello (Depends-on): Likewise.
68093         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
68094         broken.
68095         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
68096         broken.
68097         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
68098         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
68099         * lib/ftello.c (rpl_ftello): Likewise.
68100         * tests/test-fseeko.c (main): Test this.
68101         * tests/test-fseeko.sh: Likewise.
68102         * tests/test-ftello.c (main): Likewise.
68103         * tests/test-ftello.sh: Likewise.
68104         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
68105         implies replacing fseek.
68106         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
68107         HAVE_FTELLO.
68108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
68109         * modules/unistd (Makefile.am): Likewise.
68110         * lib/unistd_.h (lseek): Declare a replacement.
68111         * doc/functions/lseek.texi (lseek): Document this fix.
68112         * doc/functions/fseek.texi (fseek): Likewise.
68113         * doc/functions/ftell.texi (ftell): Likewise.
68114
68115 2007-05-24  Bruno Haible  <bruno@clisp.org>
68116
68117         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
68118         in the printed representation of a NaN.
68119         * tests/test-vasprintf-posix.c (test_function): Likewise.
68120         * tests/test-snprintf-posix.h (test_function): Likewise.
68121         * tests/test-sprintf-posix.h (test_function): Likewise.
68122         Reported by Eric Blake.
68123
68124 2007-05-23  Eric Blake  <ebb9@byu.net>
68125
68126         Fix fseeko/ftello on cygwin 1.5.24.
68127         * doc/functions/fseeko.texi (fseeko): Document the fix.
68128         * doc/functions/ftello.texi (ftello): Document the fix.
68129         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
68130         * doc/functions/stdout.text (stdout): New file.
68131         * doc/functions/stderr.text (stderr): New file.
68132         * doc/gnulib.texi (Function Substitutes): Use new files.
68133         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
68134         prior to 1.7.0.
68135         * tests/test-ftello.c (main): Likewise for ftello.
68136         * tests/test-fseeko.sh: New file.
68137         * tests/test-ftello.sh: New file.
68138         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
68139         with seekable stdin.
68140         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
68141         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
68142         (gl_REPLACE_FSEEKO): New macro.
68143         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
68144         * modules/fseeko (Files): Distribute fseeko.c.
68145         * modules/ftello (Files): Distribute ftello.c.
68146         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
68147         mode.
68148         * lib/ftello.c (rpl_ftello): New file.
68149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
68150         fseeko, ftello.
68151         (gl_STDIN_LARGE_OFFSET): New macro.
68152         * modules/stdio (Makefile.am): Perform the replacement.
68153         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
68154
68155 2007-05-23  Bruno Haible  <bruno@clisp.org>
68156
68157         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
68158         GNULIB_POSIXCHECK is defined.
68159
68160 2007-05-21  Bruno Haible  <bruno@clisp.org>
68161
68162         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
68163         Check also the output for NaN arguments. When cross-compiling, guess
68164         no on IRIX.
68165         * lib/vasnprintf.c: Update comments.
68166         * tests/test-vasnprintf-posix.c (strisnan): New function.
68167         (test_function): Use it.
68168         * tests/test-vasprintf-posix.c (strisnan): New function.
68169         (test_function): Use it.
68170         * tests/test-snprintf-posix.h (strisnan): New function.
68171         (test_function): Use it.
68172         * tests/test-sprintf-posix.h (strisnan): New function.
68173         (test_function): Use it.
68174         Reported by Eric Blake.
68175
68176 2007-05-20  Bruno Haible  <bruno@clisp.org>
68177
68178         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
68179         numbers that fails on BeOS.
68180         * doc/functions/frexpl.texi: Update.
68181
68182 2007-05-20  Jim Meyering  <jim@meyering.net>
68183
68184         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
68185         forced upon us by glibc-2.6.
68186
68187 2007-05-20  Bruno Haible  <bruno@clisp.org>
68188
68189         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
68190         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
68191         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
68192         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
68193         NEED_PRINTF_INFINITE.
68194         (is_infinitel): New function.
68195         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
68196         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
68197         gl_PREREQ_VASNPRINTF_INFINITE.
68198         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
68199         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68200         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
68201         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
68202         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
68203         gl_PREREQ_VASNPRINTF_INFINITE.
68204         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68205         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68206         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68207         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68208         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68209         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68210         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68211         * doc/functions/fprintf.texi: Update.
68212         * doc/functions/printf.texi: Update.
68213         * doc/functions/snprintf.texi: Update.
68214         * doc/functions/sprintf.texi: Update.
68215         * doc/functions/vfprintf.texi: Update.
68216         * doc/functions/vprintf.texi: Update.
68217         * doc/functions/vsnprintf.texi: Update.
68218         * doc/functions/vsprintf.texi: Update.
68219
68220 2007-05-20  Bruno Haible  <bruno@clisp.org>
68221
68222         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
68223         was not found in libc.
68224         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
68225
68226 2007-05-20  Bruno Haible  <bruno@clisp.org>
68227
68228         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68229         printed as "-nan" instead of "nan".
68230         * tests/test-vasprintf-posix.c (test_function): Likewise.
68231         * tests/test-snprintf-posix.h (test_function): Likewise.
68232         * tests/test-sprintf-posix.h (test_function): Likewise.
68233         Needed for HP-UX 11.
68234
68235 2007-05-20  Jim Meyering  <jim@meyering.net>
68236
68237         Fix buggy test for the fchownat-deref bug.
68238         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
68239         symlink required for the run-test.  Without it, this test would
68240         always declare that fchownat doesn't work, and client code would
68241         unnecessarily use the replacement function with fixed libc.
68242         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
68243         Reported by Greg Schafer.
68244
68245 2007-05-19  Bruno Haible  <bruno@clisp.org>
68246
68247         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
68248         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
68249         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
68250         Needed for IRIX 6.5 and Solaris 2.5.1.
68251
68252 2007-05-19  Bruno Haible  <bruno@clisp.org>
68253
68254         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
68255         (test_function): Skip tests involving -0.0 on platforms where
68256         -0.0 = 0.0.
68257         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
68258         (test_function): Skip tests involving -0.0 on platforms where
68259         -0.0 = 0.0.
68260         * tests/test-snprintf-posix.h (have_minus_zero): New function.
68261         (test_function): Skip tests involving -0.0 on platforms where
68262         -0.0 = 0.0.
68263         * tests/test-sprintf-posix.h (have_minus_zero): New function.
68264         (test_function): Skip tests involving -0.0 on platforms where
68265         -0.0 = 0.0.
68266         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
68267         tests.
68268         * tests/test-printf-posix.h (test_function): Likewise.
68269         * tests/test-printf-posix.output: Remove all -0.0 related results.
68270         Needed for IRIX 6.5.
68271
68272 2007-05-19  Bruno Haible  <bruno@clisp.org>
68273
68274         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68275         printed as "nan0x7fffffff" instead of "nan".
68276         * tests/test-vasprintf-posix.c (test_function): Likewise.
68277         * tests/test-snprintf-posix.h (test_function): Likewise.
68278         * tests/test-sprintf-posix.h (test_function): Likewise.
68279         * tests/test-fprintf-posix.h (NaN): Remove macro.
68280         (test_function): Remove all NaN related tests.
68281         * tests/test-printf-posix.h (NaN): Remove macro.
68282         (test_function): Remove all NaN related tests.
68283         * tests/test-printf-posix.output: Remove all NaN related results.
68284         Needed for IRIX 6.5.
68285
68286 2007-05-19  Bruno Haible  <bruno@clisp.org>
68287
68288         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
68289         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
68290
68291 2007-05-19  Bruno Haible  <bruno@clisp.org>
68292
68293         * lib/float_.h: New file.
68294         * m4/float_h.m4: New file.
68295         * modules/float: New file.
68296         * modules/isnanl (Dependencies): Add float.
68297         * modules/isnanl-nolibm (Dependencies): Likewise.
68298         * modules/mathl (Dependencies): Likewise.
68299         * modules/printf-frexpl (Dependencies): Likewise.
68300         * modules/signbit (Dependencies): Likewise.
68301         * modules/vasnprintf (Dependencies): Likewise.
68302         * doc/headers/float.texi: Update.
68303
68304 2007-05-19  Jim Meyering  <jim@meyering.net>
68305
68306         * lib/utimens.c (gl_futimens): Rename from futimens,
68307         now that glibc-2.6 declares futimens.
68308         * lib/utimens.h: Likewise.
68309
68310 2007-05-19  Bruno Haible  <bruno@clisp.org>
68311
68312         Avoid test failures on mingw.
68313         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
68314         * tests/test-printf-posix.sh: Likewise.
68315         * tests/test-vfprintf-posix.sh: Likewise.
68316         * tests/test-vprintf-posix.sh: Likewise.
68317
68318 2007-05-19  Bruno Haible  <bruno@clisp.org>
68319
68320         Fix *printf result for NaN, Inf, -0.0 on mingw.
68321         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
68322         * lib/vasnprintf.c: Include math.h and isnan.h.
68323         (is_infinite_or_zero): New function.
68324         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
68325         values in the %f, %F, %e, %E, %g, %G directives.
68326         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
68327         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68328         gl_PRINTF_INFINITE and test its result. Invoke
68329         gl_PREREQ_VASNPRINTF_INFINITE.
68330         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68331         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68332         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68333         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68334         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68335         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68336         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68337         * doc/functions/fprintf.texi: Update.
68338         * doc/functions/printf.texi: Update.
68339         * doc/functions/snprintf.texi: Update.
68340         * doc/functions/sprintf.texi: Update.
68341         * doc/functions/vfprintf.texi: Update.
68342         * doc/functions/vprintf.texi: Update.
68343         * doc/functions/vsnprintf.texi: Update.
68344         * doc/functions/vsprintf.texi: Update.
68345
68346 2007-05-19  Bruno Haible  <bruno@clisp.org>
68347
68348         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
68349         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
68350         Instead of multiplying with 10^k, set extra_zeroes to k.
68351         (scale10_round_long_double): Remove function.
68352
68353 2007-05-18  Bruno Haible  <bruno@clisp.org>
68354
68355         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
68356         introduced on 2007-05-06.
68357
68358 2007-05-18  Bruno Haible  <bruno@clisp.org>
68359
68360         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
68361         %g directives.
68362         * tests/test-vasprintf-posix.c (test_function): Likewise.
68363         * tests/test-snprintf-posix.h (test_function): Likewise.
68364         * tests/test-sprintf-posix.h (test_function): Likewise.
68365
68366 2007-05-18  Bruno Haible  <bruno@clisp.org>
68367
68368         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
68369         (strmatch): New function.
68370         (test_function): Test the %f directive on numbers of various exponents.
68371         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
68372         (strmatch): New function.
68373         (test_function): Test the %f directive on numbers of various exponents.
68374         * tests/test-snprintf-posix.h (strmatch): New function.
68375         (test_function): Test the %f directive on numbers of various exponents.
68376         * tests/test-sprintf-posix.h (strmatch): New function.
68377         (test_function): Test the %f directive on numbers of various exponents.
68378         * tests/test-snprintf-posix.c (SIZEOF): New macro.
68379         * tests/test-sprintf-posix.c (SIZEOF): New macro.
68380         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
68381         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
68382
68383 2007-05-18  Bruno Haible  <bruno@clisp.org>
68384
68385         Add support for 'long double' number output.
68386         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
68387         * lib/vasnprintf.c: Include math.h and float+.h.
68388         (mp_limb_t): New type.
68389         (GMP_LIMB_BITS): New macro.
68390         (mp_twolimb_t): New type.
68391         (GMP_TWOLIMB_BITS): New macro.
68392         (mpn_t): New type.
68393         (multiply, divide, convert_to_decimal, decode_long_double,
68394         scale10_round_long_double, scale10_round_decimal_long_double,
68395         floorlog10l): New functions.
68396         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
68397         for the %f, %F, %e, %E, %g, %G directives.
68398         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
68399         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68400         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
68401         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
68402         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68403         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68404         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68405         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68406         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68407         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68408         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68409         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
68410         * modules/snprintf-posix (Depends-on): Likewise.
68411         * modules/sprintf-posix (Depends-on): Likewise.
68412         * modules/vasnprintf-posix (Depends-on): Likewise.
68413         * modules/vasprintf-posix (Depends-on): Likewise.
68414         * modules/vfprintf-posix (Depends-on): Likewise.
68415         * modules/vsnprintf-posix (Depends-on): Likewise.
68416         * modules/vsprintf-posix (Depends-on): Likewise.
68417         * modules/vasnprintf (Files): Add lib/float+.h.
68418         * doc/functions/fprintf.texi: Update.
68419         * doc/functions/printf.texi: Update.
68420         * doc/functions/snprintf.texi: Update.
68421         * doc/functions/sprintf.texi: Update.
68422         * doc/functions/vfprintf.texi: Update.
68423         * doc/functions/vprintf.texi: Update.
68424         * doc/functions/vsnprintf.texi: Update.
68425         * doc/functions/vsprintf.texi: Update.
68426
68427 2007-05-18  Bruno Haible  <bruno@clisp.org>
68428
68429         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
68430
68431 2007-05-18  Bruno Haible  <bruno@clisp.org>
68432
68433         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
68434         for printing 64-bit integers. Needed for mingw.
68435
68436 2007-05-18  Bruno Haible  <bruno@clisp.org>
68437
68438         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68439         gl_FUNC_FREXPL_WORKS.
68440         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
68441
68442 2007-05-18  Bruno Haible  <bruno@clisp.org>
68443
68444         * modules/frexpl-nolibm-tests: New file.
68445
68446         * modules/frexpl-nolibm: New file.
68447         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
68448
68449 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68450
68451         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
68452         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68453         GCC 4.2, which otherwise issues a lot of warnings.
68454         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
68455         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
68456         Likewise.
68457         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
68458         * modules/iconv_open (iconv.h): Likewise.
68459         * modules/locale (locale.h): Likewise.
68460         * modules/netinet_in (netinet/in.h): Likewise.
68461         * modules/sys_select (sys_select.h): Likewise.
68462         * modules/sys_socket (sys/socket.h): Likewise.
68463         * modules/sys_stat (sys/stat.h): Likewise.
68464         * modules/sysexits (sysexits.h): Likewise.
68465         * modules/unistd (unistd.h): Likewise.
68466
68467 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68468
68469         * modules/closein-tests (Makefile.am): Distribute
68470         `test-closein.sh'.
68471
68472 2007-05-17  Bruno Haible  <bruno@clisp.org>
68473
68474         * tests/test-printf-posix.output: Renamed from
68475         tests/test-fprintf-posix.out.
68476         * modules/fprintf-posix-tests: Update.
68477         * modules/printf-posix-tests: Update.
68478         * modules/vfprintf-posix-tests: Update.
68479         * modules/vprintf-posix-tests: Update.
68480         * tests/test-fprintf-posix.sh: Update.
68481         * tests/test-printf-posix.sh: Update.
68482         * tests/test-vfprintf-posix.sh: Update.
68483         * tests/test-vprintf-posix.sh: Update.
68484         Reported by Ralf Wildenhues.
68485
68486 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68487
68488         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
68489         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68490         GCC 4.2, which otherwise issues a lot of warnings.
68491         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
68492         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
68493         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
68494         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
68495         it should no longer be needed.
68496         * lib/string_.h: Likewise.
68497         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
68498         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
68499         * modules/inttypes (inttypes.h): Likewise.
68500         * modules/math (math.h): Likewise.
68501         * modules/search (search.h): Likewise.
68502         * modules/signal (signal.h): Likewise.
68503         * modules/stdint (stdint.h): Likewise.
68504         * modules/stdio (stdio.h): Likewise.
68505         * modules/stdlib (stdlib.h): Likewise.
68506         * modules/string (string.h): Likewise.
68507         * modules/sys_time (sys/time.h): Likewise.
68508         * modules/time (time.h): Likewise.
68509         * modules/wchar (wchar.h): Likewise.
68510         * modules/wctype (wtype.h): Likewise.
68511
68512 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
68513
68514         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
68515
68516 2007-05-13  Bruno Haible  <bruno@clisp.org>
68517
68518         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
68519         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68520         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
68521         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68522         (gl_PREREQ_STRTOK_R): Don't require it here.
68523
68524 2007-05-13  Bruno Haible  <bruno@clisp.org>
68525
68526         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
68527         when used in C++ mode.
68528
68529 2007-05-12  Bruno Haible  <bruno@clisp.org>
68530
68531         * lib/linebuffer.h: Tweak doc.
68532         * lib/linebuffer.c: Likewise.
68533
68534 2007-05-12  James Youngman  <jay@gnu.org>
68535
68536         * lib/linebuffer.c (readlinebuffer_delim): New function,
68537         like readlinebuffer, but use a caller-specified delimiter.
68538         (readlinebuffer): Just call readlinebuffer_delim with '\n'
68539         as the delimiter.
68540         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
68541
68542 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68543
68544         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
68545         * modules/openat (Files): Remove openat-die.c.
68546         (Depends-on): Add openat-die.
68547         * modules/openat-die: New module.
68548
68549 2007-05-06  Bruno Haible  <bruno@clisp.org>
68550
68551         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
68552         Update with info about Cygwin.
68553         * doc/functions/fprintf.texi: Update.
68554         * doc/functions/printf.texi: Update.
68555         * doc/functions/snprintf.texi: Update.
68556         * doc/functions/sprintf.texi: Update.
68557         * doc/functions/vfprintf.texi: Update.
68558         * doc/functions/vprintf.texi: Update.
68559         * doc/functions/vsnprintf.texi: Update.
68560         * doc/functions/vsprintf.texi: Update.
68561         Reported by Eric Blake.
68562
68563 2007-05-06  Bruno Haible  <bruno@clisp.org>
68564
68565         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
68566         padding ourselves for the floating-point directives.
68567         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
68568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
68569         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68570         gl_PRINTF_FLAG_ZERO and test its result. Invoke
68571         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
68572         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68573         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68574         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68575         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68576         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68577         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68578         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68579         * tests/test-snprintf-posix.h (test_function): Also check the width
68580         and some flags in the %f directive.
68581         * tests/test-sprintf-posix.h (test_function): Likewise.
68582         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68583         * tests/test-vasprintf-posix.c (test_function): Likewise.
68584         * doc/functions/fprintf.texi: Update.
68585         * doc/functions/printf.texi: Update.
68586         * doc/functions/snprintf.texi: Update.
68587         * doc/functions/sprintf.texi: Update.
68588         * doc/functions/vfprintf.texi: Update.
68589         * doc/functions/vprintf.texi: Update.
68590         * doc/functions/vsnprintf.texi: Update.
68591         * doc/functions/vsprintf.texi: Update.
68592
68593 2007-05-06  Bruno Haible  <bruno@clisp.org>
68594
68595         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
68596         pass the ' flag character to sprintf or snprintf.
68597         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
68598         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
68599         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68600         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
68601         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
68602         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68603         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68604         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68605         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68606         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68607         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68608         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68609         * tests/test-snprintf-posix.h (test_function): Also check the grouping
68610         flag.
68611         * tests/test-sprintf-posix.h (test_function): Likewise.
68612         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68613         * tests/test-vasprintf-posix.c (test_function): Likewise.
68614         * doc/functions/fprintf.texi: Update.
68615         * doc/functions/printf.texi: Update.
68616         * doc/functions/snprintf.texi: Update.
68617         * doc/functions/sprintf.texi: Update.
68618         * doc/functions/vfprintf.texi: Update.
68619         * doc/functions/vprintf.texi: Update.
68620         * doc/functions/vsnprintf.texi: Update.
68621         * doc/functions/vsprintf.texi: Update.
68622
68623 2007-05-01  Bruno Haible  <bruno@clisp.org>
68624
68625         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
68626
68627 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
68628
68629         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
68630         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
68631
68632 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68633
68634         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
68635         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
68636         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
68637
68638 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
68639
68640         * lib/argp-help.c (struct hol_entry): New member `ord'.
68641         (HOL_ENTRY_PTRCMP): Use ord for comparison
68642         (hol_sort): Initialize ord.
68643
68644 2007-05-01  Bruno Haible  <bruno@clisp.org>
68645
68646         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
68647         Reported by Eric Blake.
68648         * doc/gnulib.texi (Function Substitutes): Update.
68649
68650 2007-05-01  Bruno Haible  <bruno@clisp.org>
68651
68652         * doc/functions.texi: Remove file, now redundant through
68653         doc/functions/*.texi.
68654
68655 2007-05-01  Bruno Haible  <bruno@clisp.org>
68656
68657         * modules/argp (Depends-on): Add sleep.
68658
68659 2007-05-01  Bruno Haible  <bruno@clisp.org>
68660
68661         * modules/sleep-tests: New file.
68662         * tests/test-sleep.c: New file.
68663
68664         * modules/sleep: New file.
68665         * lib/sleep.c: New file.
68666         * m4/sleep.m4: New file.
68667         * lib/unistd_.h (sleep): New declaration.
68668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
68669         HAVE_SLEEP.
68670         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
68671         * doc/functions/sleep.texi: Document the sleep module.
68672
68673 2007-05-01  Bruno Haible  <bruno@clisp.org>
68674
68675         * lib/sigprocmask.h: Remove file.
68676         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
68677         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
68678         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
68679         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
68680         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
68681         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
68682         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
68683         HAVE_SIGSET_T as a shell variable.
68684         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
68685         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
68686         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
68687         (Depends-on): Add signal. Remove verify.
68688         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
68689         (Include): Mention <signal.h> instead of sigprocmask.h.
68690         * NEWS: Mention the change.
68691         * lib/fatal-signal.c: Don't include sigprocmask.h.
68692
68693 2007-05-01  Bruno Haible  <bruno@clisp.org>
68694
68695         * modules/signal: New file.
68696         * lib/signal_.h: New file.
68697         * m4/signal_h.m4: New file.
68698
68699 2007-05-01  Bruno Haible  <bruno@clisp.org>
68700
68701         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
68702         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
68703         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
68704         HAVE_WCTYPE_CTMP_BUG into wctype.h.
68705
68706 2007-05-01  Bruno Haible  <bruno@clisp.org>
68707
68708         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
68709         configure time.
68710         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
68711         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
68712         * modules/sys_stat (Makefile.am): Substitute their values into
68713         sys/stat.h.
68714
68715 2007-05-01  Bruno Haible  <bruno@clisp.org>
68716
68717         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
68718         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
68719         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
68720
68721 2007-05-01  Bruno Haible  <bruno@clisp.org>
68722
68723         * doc/header/assert.texi: Undo last change: don't mention the gnulib
68724         'assert' module here.
68725
68726 2007-05-01  Bruno Haible  <bruno@clisp.org>
68727
68728         * doc/functions/*.texi: New files.
68729         * doc/functions/google-ranking.txt: New file.
68730         * doc/gnulib.texi (Function Substitutes): New chapter.
68731         (ctime, inet_ntoa): Remove sections.
68732         * doc/ctime.texi: Remove file.
68733         * doc/inet_ntoa.texi: Remove file.
68734         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
68735         dependencies.
68736         (%.info): New rule, specifying a --reference-limit.
68737
68738 2007-05-01  Bruno Haible  <bruno@clisp.org>
68739
68740         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
68741
68742 2007-05-01  Bruno Haible  <bruno@clisp.org>
68743
68744         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
68745         the portability of 'mkdir' to mingw systems.
68746
68747 2007-05-01  Bruno Haible  <bruno@clisp.org>
68748
68749         * doc/headers/google-ranking.txt: New file.
68750
68751 2007-04-30  Eric Blake  <ebb9@byu.net>
68752
68753         Prefer fseeko to fseek.
68754         * modules/getpass (Depends-on): Add fseeko.
68755         * lib/getpass.c (getpass): Use fseeko, not fseek.
68756
68757 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
68758
68759         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
68760         assumes the sorting is stable, while most qsort implementations
68761         are not.  Use argument addresses to ensure they never compare as
68762         equal.
68763
68764         * tests/test-argp-2.sh (usage-indent test): Fix output
68765         (func_compare): Restore diff options
68766         * tests/test-argp.c: Restore #include "progname.h"
68767
68768 2007-04-29  Bruno Haible  <bruno@clisp.org>
68769
68770         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
68771         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68772         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
68773         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68774         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
68775         (configure.ac): Define CHECK_SNPRINTF_POSIX.
68776         (TESTS, check_PROGRAMS): Add test-snprintf.
68777         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
68778         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
68779         (TESTS, check_PROGRAMS): Add test-vsnprintf.
68780         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
68781         assertions that fail on HP-UX, OSF/1, or IRIX.
68782         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
68783
68784 2007-04-29  Bruno Haible  <bruno@clisp.org>
68785
68786         * MODULES.html.sh (posix_functions): Remove 'contents'.
68787
68788 2007-04-29  Karl Berry  <karl@gnu.org>
68789
68790         * config/srclist.txt (gendocs_template_min): new entry.
68791
68792 2007-04-29  Bruno Haible  <bruno@clisp.org>
68793
68794         Work around fpurge bug on BSD systems.
68795         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
68796         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
68797         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
68798         fpurge to rpl_fpurge if the system already has this function.
68799         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
68800         the case where the system already has this function. Correct invariants
68801         on BSD systems.
68802         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
68803         BSD systems.
68804
68805 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
68806
68807         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
68808         proposed by Sven Verdoolaege.
68809
68810         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
68811         options.
68812         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
68813         (usage and help tests): Update
68814
68815 2007-04-29  Bruno Haible  <bruno@clisp.org>
68816
68817         * tests/test-fflush.c (main): Use a file of size 17, not 10.
68818         Print more information in case of failure. Disable a test on BeOS.
68819
68820 2007-04-29  Bruno Haible  <bruno@clisp.org>
68821
68822         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
68823         This helps debugging on systems on which no gdb is available.
68824
68825 2007-04-29  Bruno Haible  <bruno@clisp.org>
68826
68827         * lib/freading.h: Improve comments.
68828         * lib/fwriting.h: Likewise.
68829         * tests/test-freading.c (main): Don't check freading immediately after
68830         repositioning. Needed for glibc.
68831
68832 2007-04-29  Bruno Haible  <bruno@clisp.org>
68833
68834         * lib/freading.c (freading): Trivial simplification.
68835
68836 2007-04-28  Bruno Haible  <bruno@clisp.org>
68837
68838         * tests/test-fwriting.c (main): Also test the interaction between
68839         fflush and fwriting.
68840         * modules/fwriting-tests (Depends-on): Add fflush.
68841
68842         * tests/test-freading.c (main): Also test the interaction between
68843         fflush and freading.
68844         * modules/freading-tests (Depends-on): Add fflush.
68845
68846 2007-04-28  Bruno Haible  <bruno@clisp.org>
68847
68848         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
68849         fseeko and ftello.
68850         Suggested by Eric Blake.
68851
68852 2007-04-28  Jim Meyering  <jim@meyering.net>
68853
68854         Avoid false-negative in gl_STDINT_H's C99 conformance test.
68855         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
68856         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
68857
68858 2007-04-27  Eric Blake  <ebb9@byu.net>
68859
68860         * doc/headers/assert.texi (assert.h): Document assert module use.
68861
68862 2007-04-27  Bruno Haible  <bruno@clisp.org>
68863
68864         * doc/headers/*.texi: New files.
68865         * doc/gnulib.texi (Header File Substitutes): New chapter.
68866         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
68867         dependencies.
68868         (standards.info ,standards.html, standards.dvi): Update dependencies.
68869         (mostlyclean, clean): New targets.
68870
68871 2007-04-27  Bruno Haible  <bruno@clisp.org>
68872
68873         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
68874         * modules/sysexits (Files, Makefile.am): Update.
68875
68876         * lib/sys_socket_.h: Renamed from lib/socket_.h.
68877         * modules/sys_socket (Files, Makefile.am): Update.
68878
68879         * lib/sys_stat_.h: Renamed from lib/stat_.h.
68880         * modules/sys_stat (Files, Makefile.am): Update.
68881
68882 2007-04-27  Eric Blake  <ebb9@byu.net>
68883
68884         * lib/freading.h: Improve comments.
68885         * lib/fwriting.h: Likewise.
68886         * lib/fflush.c: Likewise.
68887
68888         Fix closein for mingw.
68889         * modules/closein-tests: Add tests for closein.
68890         * tests/test-closein.c: New file.
68891         * tests/test-closein.sh: Likewise.
68892         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
68893         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
68894
68895 2007-04-27  Bruno Haible  <bruno@clisp.org>
68896
68897         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
68898         version is < 6.
68899         * lib/math_.h [__DECC]: Likewise.
68900         * lib/stdio_.h [__DECC]: Likewise.
68901         * lib/stdlib_.h [__DECC]: Likewise.
68902         * lib/string_.h [__DECC]: Likewise.
68903         * lib/time_.h [__DECC]: Likewise.
68904         * lib/wchar_.h [__DECC]: Likewise.
68905         * lib/wctype_.h [__DECC]: Likewise.
68906
68907 2007-04-27  Bruno Haible  <bruno@clisp.org>
68908
68909         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
68910
68911 2007-04-27  Bruno Haible  <bruno@clisp.org>
68912
68913         * lib/fflush.c: Add comments.
68914         * modules/fpurge-tests (Depends-on): Add fflush.
68915         * modules/freadable-tests (Depends-on): Likewise.
68916         * modules/fwritable-tests (Depends-on): Likewise.
68917
68918 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
68919
68920         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
68921         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
68922         Report by Bruno Haible <bruno@clisp.org>.
68923
68924 2007-04-26  Eric Blake  <ebb9@byu.net>
68925
68926         Fix fflush on mingw.
68927         * modules/fflush (Depends-on): Add freading.
68928         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
68929         but unread data.
68930
68931 2007-04-26  Eric Blake  <ebb9@byu.net>
68932         and Bruno Haible  <bruno@clisp.org>
68933
68934         Implement freading and fwriting.
68935         * lib/freading.c: New file.
68936         * lib/freading.h: Likewise.
68937         * m4/freading.m4: Likewise.
68938         * modules/freading: Likewise.
68939         * modules/freading-tests: Likewise.
68940         * tests/test-freading.c: Likewise.
68941         * lib/fwriting.c: New file.
68942         * lib/fwriting.h: Likewise.
68943         * m4/fwriting.m4: Likewise.
68944         * modules/fwriting: Likewise.
68945         * modules/fwriting-tests: Likewise.
68946         * tests/test-fwriting.c: Likewise.
68947         * MODULES.html.sh (File stream based Input/Output): Mention them.
68948
68949 2007-04-26  Bruno Haible  <bruno@clisp.org>
68950
68951         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
68952         'long' when we assume it.
68953         Suggested by Eric Blake.
68954
68955 2007-04-26  Bruno Haible  <bruno@clisp.org>
68956
68957         Ensure fseeko, ftello are declared on glibc systems.
68958         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
68959         * modules/fseeko (configure.ac-early): Likewise.
68960         * modules/ftello (configure.ac-early): Likewise.
68961         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
68962         AC_FUNC_FSEEKO for this.
68963         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
68964         (gl_CHECK_FSEEKO): Remove macro.
68965
68966 2007-04-26  Bruno Haible  <bruno@clisp.org>
68967
68968         * tests/test-fflush.c (main): Also check the ftell result after
68969         fflush and fseek/fseeko.
68970         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
68971         file descriptor position cache in the stream.
68972         * lib/fseeko.c (rpl_fseeko): Likewise.
68973
68974 2007-04-26  Bruno Haible  <bruno@clisp.org>
68975
68976         * modules/fflush-tests (Depends-on): Add fseeko.
68977
68978 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
68979             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68980
68981         * lib/argz_.h: ensure error_t definition is obtained in same
68982         mechanism system argz.h would have.
68983         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
68984         argz facilities are known bad.  Err on the side of caution if
68985         cross-compiling.
68986
68987 2007-04-25  Eric Blake  <ebb9@byu.net>
68988
68989         * lib/fpurge.c (includes): Use stdlib.h for free.
68990         * tests/test-fflush.c (main): Also test fflush-fseeko.
68991
68992 2007-04-25  Bruno Haible  <bruno@clisp.org>
68993
68994         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
68995         * lib/fseeko.c: New file.
68996         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
68997         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
68998         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
68999         gl_FUNC_FSEEKO.
69000         (gl_FUNC_FSEEKO): Invoke it.
69001         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
69002         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
69003         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
69004
69005 2007-04-25  Bruno Haible  <bruno@clisp.org>
69006
69007         * modules/fflush (Depends-on): Add ftello.
69008
69009 2007-04-25  Bruno Haible  <bruno@clisp.org>
69010
69011         * modules/ftello-tests: New file.
69012         * tests/test-ftello.c: New file.
69013
69014         * modules/ftello: New file.
69015         * m4/ftello.m4: New file.
69016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
69017         HAVE_FTELLO.
69018         * lib/stdio_.h (ftello): New declaration.
69019         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
69020         HAVE_FTELLO.
69021
69022 2007-04-25  Bruno Haible  <bruno@clisp.org>
69023
69024         * modules/fseeko-tests: New file.
69025         * tests/test-fseeko.c: New file.
69026
69027         * modules/fseeko: New file.
69028         * m4/fseeko.m4: New file.
69029         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
69030         HAVE_FSEEKO.
69031         * lib/stdio_.h (fseeko): New declaration.
69032         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
69033         HAVE_FSEEKO.
69034
69035 2007-04-25  Bruno Haible  <bruno@clisp.org>
69036
69037         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
69038
69039 2007-04-25  Bruno Haible  <bruno@clisp.org>
69040
69041         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
69042         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
69043         * tests/test-unistd.c: Likewise.
69044         * tests/test-fcntl.c: Likewise.
69045
69046 2007-04-23  Eric Blake  <ebb9@byu.net>
69047
69048         * lib/fflush.c: Fix missing include.
69049         Reported by Bruno Haible.
69050
69051 2007-04-23  Bruno Haible  <bruno@clisp.org>
69052
69053         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
69054         Reported by Eric Blake.
69055
69056 2007-04-23  Bruno Haible  <bruno@clisp.org>
69057
69058         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
69059
69060 2007-04-23  Bruno Haible  <bruno@clisp.org>
69061
69062         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
69063
69064 2007-04-23  Bruno Haible  <bruno@clisp.org>
69065
69066         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
69067         Needed on HP-UX 11.
69068
69069 2007-04-16  Eric Blake  <ebb9@byu.net>
69070
69071         Make fflush rely on fpurge.
69072         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
69073         open coding all variants.
69074         * modules/fflush (Depends-on): Add fpurge and unistd.
69075         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
69076         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
69077
69078         Fix --with-tests compilation on cygwin.
69079         * modules/argmatch-tests (Makefile.am): List gnulib library first
69080         in LDADD.
69081         * modules/argp-tests (Makefile.am): Likewise.
69082         * modules/array-list-tests (Makefile.am): Likewise.
69083         * modules/array-oset-tests (Makefile.am): Likewise.
69084         * modules/avltree-list-tests (Makefile.am): Likewise.
69085         * modules/avltree-oset-tests (Makefile.am): Likewise.
69086         * modules/avltreehash-list-tests (Makefile.am): Likewise.
69087         * modules/carray-list-tests (Makefile.am): Likewise.
69088         * modules/dirname-tests (Makefile.am): Likewise.
69089         * modules/frexp-tests (Makefile.am): Likewise.
69090         * modules/isnanl-tests (Makefile.am): Likewise.
69091         * modules/linked-list-tests (Makefile.am): Likewise.
69092         * modules/linkedhash-list-tests (Makefile.am): Likewise.
69093         * modules/lock-tests (Makefile.am): Likewise.
69094         * modules/rbtree-list-tests (Makefile.am): Likewise.
69095         * modules/rbtree-oset-tests (Makefile.am): Likewise.
69096         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
69097         * modules/tls-tests (Makefile.am): Likewise.
69098         * modules/tsearch-tests (Makefile.am): Likewise.
69099         * modules/xvasprintf-tests (Makefile.am): Likewise.
69100
69101         Fix fpurge for cygwin.
69102         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
69103         value.
69104         * modules/fpurge-tests (Depends-on): Clean up trash.
69105
69106 2007-04-16  Simon Josefsson  <simon@josefsson.org>
69107
69108         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
69109
69110         * m4/autobuild.m4: Re-indent.
69111
69112 2007-04-13  Bruno Haible  <bruno@clisp.org>
69113
69114         * modules/fpurge-tests: New file.
69115         * tests/test-fpurge.c: New file.
69116
69117         * modules/fpurge: New file.
69118         * lib/fpurge.h: New file.
69119         * lib/fpurge.c: New file.
69120         * m4/fpurge.m4: New file.
69121
69122 2007-04-13  Bruno Haible  <bruno@clisp.org>
69123
69124         * modules/fbufmode-tests: New file.
69125         * tests/test-fbufmode.c: New file.
69126
69127         * modules/fbufmode: New file.
69128         * lib/fbufmode.h: New file.
69129         * lib/fbufmode.c: New file.
69130         * m4/fbufmode.m4: New file.
69131
69132 2007-04-13  Bruno Haible  <bruno@clisp.org>
69133
69134         * modules/fwritable-tests: New file.
69135         * tests/test-fwritable.c: New file.
69136
69137         * modules/fwritable: New file.
69138         * lib/fwritable.h: New file.
69139         * lib/fwritable.c: New file.
69140         * m4/fwritable.m4: New file.
69141
69142 2007-04-13  Bruno Haible  <bruno@clisp.org>
69143
69144         * modules/freadable-tests: New file.
69145         * tests/test-freadable.c: New file.
69146
69147         * modules/freadable: New file.
69148         * lib/freadable.h: New file.
69149         * lib/freadable.c: New file.
69150         * m4/freadable.m4: New file.
69151
69152 2007-04-13  Bruno Haible  <bruno@clisp.org>
69153
69154         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
69155         MOSTLYCLEANFILES.
69156
69157 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69158
69159         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
69160         gzip bootstrap.conf to avoid dragging in i18n machinery.
69161         (gnulib_tool_option): Use it.
69162
69163 2007-04-13  Bruno Haible  <bruno@clisp.org>
69164
69165         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
69166         %F directives.
69167         * tests/test-vasprintf-posix.c (test_function): Likewise.
69168         * tests/test-snprintf-posix.h (test_function): Likewise.
69169         * tests/test-sprintf-posix.h (test_function): Likewise.
69170         * tests/test-fprintf-posix.h (test_function): Likewise.
69171         * tests/test-printf-posix.h (test_function): Likewise.
69172         * tests/test-fprintf-posix.out: Likewise.
69173
69174 2007-04-13  Bruno Haible  <bruno@clisp.org>
69175
69176         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
69177         * modules/tls-tests (configure.ac): Likewise.
69178         Reported by Arto C. Nirkko <anirkko@insel.ch>.
69179
69180 2007-04-13  Bruno Haible  <bruno@clisp.org>
69181
69182         * lib/tls.c (glthread_tls_get): Fix return type.
69183         Patch by Arto C. Nirkko <anirkko@insel.ch>.
69184
69185 2007-04-12  Eric Blake  <ebb9@byu.net>
69186
69187         * modules/gettime (Depends-on): Remove gettime.
69188         Reported by Dmitry V. Levin.
69189
69190 2007-04-12  Bruno Haible  <bruno@clisp.org>
69191
69192         * modules/fflush (Include): Mention <stdio.h>.
69193         * modules/strtoimax (Include): Mention <inttypes.h>.
69194         * modules/strtoumax (Include): Likewise.
69195
69196 2007-04-12  Eric Blake  <ebb9@byu.net>
69197
69198         * .cvsignore: New file.
69199         * .gitignore: Likewise.
69200
69201 2007-04-12  Bruno Haible  <bruno@clisp.org>
69202
69203         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
69204         not before, since $(LDADD) often contains libgnu.a.
69205         * modules/striconv-tests (test_striconv_LDADD): Likewise.
69206         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
69207         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
69208         Needed on Cygwin.
69209
69210 2007-04-12  Eric Blake  <ebb9@byu.net>
69211
69212         Work around glibc's failure to flush stdin on fclose.
69213         * lib/closein.c (close_stdin): Flush stdin before closing.
69214
69215         Work around glibc's failure to reset seekable stdin on exit.
69216         * modules/closein: New module.
69217         * lib/closein.c: New file.
69218         * lib/closein.h: Likewise.
69219         * m4/closein.m4: Likewise.
69220         * MODULES.html.sh (File stream based Input/Output): Document it.
69221
69222 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69223
69224         * gnulib-tool: Rename generated 'autobuild' script to
69225         'do-autobuild' in --create-megatestdir output.
69226
69227         * doc/gnulib.texi (Build robot for gnulib): Fix.
69228
69229 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69230
69231         * modules/sysexits (Depends-on): Add absolute-header.
69232
69233 2007-04-12  Eric Blake  <ebb9@byu.net>
69234
69235         No need to preserve errno on success.
69236         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
69237         Reported by Bruno Haible.
69238
69239 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69240
69241         * MODULES.html.sh (Support for maintaining and releasing
69242         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
69243
69244 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69245
69246         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
69247
69248 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69249
69250         * modules/autobuild: New module.
69251
69252         * m4/autobuild.m4: New file.
69253
69254 2007-04-11  Bruno Haible  <bruno@clisp.org>
69255
69256         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
69257         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
69258         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
69259         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
69260         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69261         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69262         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69263         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69264         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69265         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69266         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
69267         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69268         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69269         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
69270         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69271         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69272         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
69273         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69274         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69275         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
69276         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69277         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69278         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
69279         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69280         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69281         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
69282         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69283         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69284         Reported by Eric Blake.
69285
69286 2007-04-11  Bruno Haible  <bruno@clisp.org>
69287
69288         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
69289
69290 2007-04-10  Bruno Haible  <bruno@clisp.org>
69291
69292         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
69293         for NaN and Infinity. Needed on FreeBSD 6.1.
69294         * tests/test-vasnprintf-posix.c (test_function): Undo last change
69295         regarding results for "%010a" of Infinity and NaN.
69296         * tests/test-vasprintf-posix.c (test_function): Likewise.
69297         * tests/test-snprintf-posix.h (test_function): Likewise.
69298         * tests/test-sprintf-posix.h (test_function): Likewise.
69299         * tests/test-fprintf-posix.h (test_function): Likewise.
69300         * tests/test-printf-posix.h (test_function): Likewise.
69301         * tests/test-fprintf-posix.out: Likewise.
69302
69303 2007-04-10  Bruno Haible  <bruno@clisp.org>
69304
69305         * modules/locale-tests: New file.
69306         * tests/test-locale.c: New file.
69307
69308         * modules/locale: New file.
69309         * lib/locale_.h: New file.
69310         * m4/locale_h.m4: New file.
69311
69312 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
69313             Bruno Haible  <bruno@clisp.org>
69314
69315         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
69316         be determined, test for availability of the copysignf, copysign,
69317         copysignl functions.
69318         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
69319         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
69320         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
69321
69322 2007-04-09  Eric Blake  <ebb9@byu.net>
69323
69324         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
69325         * modules/stdio (Makefile.am): Support fflush.
69326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
69327         * modules/fflush: New file.
69328         * lib/fflush.c: Likewise.
69329         * m4/fflush.m4: Likewise.
69330         * modules/fflush-tests: New test.
69331         * tests/test-fflush.c: Likewise.
69332         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
69333
69334 2007-04-06  Bruno Haible  <bruno@clisp.org>
69335
69336         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
69337         (VASNPRINTF): Use signbit for faster determination whether to print a
69338         minus sign.
69339         * modules/vasnprintf (Files): Remove lib/float+.h.
69340         * modules/fprintf-posix (Depends-on): Add signbit.
69341         * modules/snprintf-posix (Depends-on): Likewise.
69342         * modules/sprintf-posix (Depends-on): Likewise.
69343         * modules/vasnprintf-posix (Depends-on): Likewise.
69344         * modules/vasprintf-posix (Depends-on): Likewise.
69345         * modules/vfprintf-posix (Depends-on): Likewise.
69346         * modules/vsnprintf-posix (Depends-on): Likewise.
69347         * modules/vsprintf-posix (Depends-on): Likewise.
69348
69349 2007-04-06  Bruno Haible  <bruno@clisp.org>
69350
69351         * tests/test-frexp.c (main): Test also the sign bit of zero results.
69352         * tests/test-frexpl.c (main): Likewise.
69353         * tests/test-ldexpl.c (main): Likewise.
69354         * modules/frexp-tests (Depends-on): Add signbit.
69355         * modules/frexpl-tests (Depdends-on): Likewise.
69356         * modules/ldexpl-tests (Depdends-on): Likewise.
69357
69358 2007-04-06  Bruno Haible  <bruno@clisp.org>
69359
69360         * modules/signbit-tests: New file.
69361         * tests/test-signbit.c: New file.
69362
69363         * modules/signbit: New file.
69364         * lib/signbitf.c: New file.
69365         * lib/signbitd.c: New file.
69366         * lib/signbitl.c: New file.
69367         * m4/signbit.m4: New file.
69368         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
69369         (signbit): New macro.
69370         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
69371         REPLACE_SIGNBIT.
69372         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
69373         REPLACE_FREXPL into math.h.
69374
69375 2007-04-06  Bruno Haible  <bruno@clisp.org>
69376
69377         * modules/isnanf-nolibm-tests: New file.
69378         * tests/test-isnanf.c: New file.
69379
69380         * modules/isnanf-nolibm: New file.
69381         * lib/isnanf.h: New file.
69382         * lib/isnanf.c: New file.
69383         * lib/isnan.c: Consider the USE_FLOAT macro.
69384         * m4/isnanf.m4: New file.
69385
69386 2007-04-06  Bruno Haible  <bruno@clisp.org>
69387
69388         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
69389         (Link): New section.
69390
69391         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
69392
69393 2007-04-06  Bruno Haible  <bruno@clisp.org>
69394
69395         Assume the 'long double' type.
69396         * m4/longdouble.m4: Remove file.
69397         * config/srclist.txt: Don't mention longdouble.m4.
69398         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
69399         * lib/float+.h: Likewise.
69400         * lib/frexp.c: Likewise.
69401         * lib/printf-args.h: Likewise.
69402         * lib/printf-args.c: Likewise.
69403         * lib/printf-frexp.c: Likewise.
69404         * lib/printf-parse.c: Likewise.
69405         * lib/vasnprintf.c: Likewise.
69406         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
69407         * m4/intl.m4: Likewise.
69408         * m4/isnanl.m4: Likewise.
69409         * m4/printf.m4: Likewise.
69410         * m4/printf-frexpl.m4: Likewise.
69411         * m4/vasnprintf.m4: Likewise.
69412         * modules/allocsa (Files): Remove m4/longdouble.m4.
69413         * modules/gettext (Files): Likewise.
69414         * modules/relocatable-prog-wrapper (Files): Likewise.
69415         * modules/vasnprintf (Files): Likewise.
69416         * modules/isnanl (Files): Likewise.
69417         (Include): Simplify.
69418         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
69419         (Include): Simplify.
69420         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
69421         (Include): Simplify.
69422         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
69423         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69424         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
69425         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69426         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69427         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69428         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
69429         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69430         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69431         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69432         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
69433         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69434         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
69435         * tests/test-isnanl.c: Likewise.
69436         * tests/test-snprintf-posix.h: Likewise.
69437         * tests/test-sprintf-posix.h: Likewise.
69438         * tests/test-vasnprintf-posix.c: Likewise.
69439         * tests/test-vasnprintf-posix2.c: Likewise.
69440         * tests/test-vasprintf-posix.c: Likewise.
69441
69442 2007-04-06  Bruno Haible  <bruno@clisp.org>
69443
69444         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
69445         * lib/math_.h [__DECC]: Include the overridden include file through
69446         #include_next, outside the double-inclusion guard.
69447         * lib/stdio_.h [__DECC]: Likewise.
69448         * lib/stdlib_.h [__DECC]: Likewise.
69449         * lib/string_.h [__DECC]: Likewise.
69450         * lib/time_.h [__DECC]: Likewise.
69451         * lib/wchar_.h [__DECC]: Likewise.
69452         * lib/wctype_.h [__DECC]: Likewise.
69453         * lib/inttypes_.h [__DECC]: Likewise.
69454         Reported by Albert Chin <china@thewrittenword.com> in
69455         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
69456
69457 2007-04-04  Eric Blake  <ebb9@byu.net>
69458
69459         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
69460         1.5.x.
69461
69462 2007-04-04  Bruno Haible  <bruno@clisp.org>
69463
69464         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
69465         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
69466
69467 2007-04-04  Bruno Haible  <bruno@clisp.org>
69468
69469         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
69470         results for "%010a" of Infinity and NaN.
69471         * tests/test-vasprintf-posix.c (test_function): Likewise.
69472         * tests/test-snprintf-posix.h (test_function): Likewise.
69473         * tests/test-sprintf-posix.h (test_function): Likewise.
69474         * tests/test-fprintf-posix.h (test_function): Remove these tests.
69475         * tests/test-printf-posix.h (test_function): Likewise.
69476         * tests/test-fprintf-posix.out: Update.
69477         Needed for FreeBSD 6.1.
69478
69479 2007-04-04  Bruno Haible  <bruno@clisp.org>
69480
69481         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
69482         directly used by the gnulib modules nor by gnulib-tool.
69483
69484 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69485
69486         * DEPENDENCIES: Give overall description of version dependency
69487         desirability.  Use more-typical names for apps.
69488         Add shell, coreutils, diffutils, grep, tar, gzip.
69489
69490 2007-04-04  Simon Josefsson  <simon@josefsson.org>
69491
69492         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
69493
69494 2007-04-04  Karl Berry  <karl@gnu.org>
69495
69496         * MODULES.html.sh (func_module): missing '.
69497
69498 2007-04-03  Bruno Haible  <bruno@clisp.org>
69499
69500         * modules/argmatch-tests (Makefile.am): New variable
69501         test_argmatch_LDADD.
69502         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
69503         * modules/array-list-tests (Makefile.am): New variable
69504         test_array_list_LDADD.
69505         * modules/array-oset-tests (Makefile.am): New variable
69506         test_array_oset_LDADD.
69507         * modules/avltree-list-tests (Makefile.am): New variable
69508         test_avltree_list_LDADD.
69509         * modules/avltree-oset-tests (Makefile.am): New variable
69510         test_avltree_oset_LDADD.
69511         * modules/avltreehash-list-tests (Makefile.am): New variable
69512         test_avltreehash_list_LDADD.
69513         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
69514         test_canonicalize_lgpl_LDADD.
69515         * modules/carray-list-tests (Makefile.am): New variable
69516         test_carray_list_LDADD.
69517         * modules/dirname-tests (Makefile.am): New variable
69518         test_dirname_LDADD.
69519         * modules/linked-list-tests (Makefile.am): New variable
69520         test_linked_list_LDADD.
69521         * modules/linkedhash-list-tests (Makefile.am): New variable
69522         test_linkedhash_list_LDADD.
69523         * modules/rbtree-list-tests (Makefile.am): New variable
69524         test_rbtree_list_LDADD.
69525         * modules/rbtree-oset-tests (Makefile.am): New variable
69526         test_rbtree_oset_LDADD.
69527         * modules/rbtreehash-list-tests (Makefile.am): New variable
69528         test_rbtreehash_list_LDADD.
69529         * modules/xvasprintf-tests (Makefile.am): New variable
69530         test_xvasprintf_LDADD.
69531         Reported by Eric Blake.
69532
69533 2007-04-03  Eric Blake  <ebb9@byu.net>
69534
69535         * DEPENDENCIES: Weaken m4 requirements.
69536
69537 2007-04-03  Bruno Haible  <bruno@clisp.org>
69538
69539         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
69540         * modules/isnanl-tests (configure.ac): Likewise.
69541
69542 2007-04-03  Ben Pfaff  <blp@gnu.org>
69543
69544         * modules/iconv_open: Add $(srcdir)/ to source directory
69545         references in Makefile fragments that call gperf, to fix VPATH
69546         builds.
69547
69548 2007-04-03  Bruno Haible  <bruno@clisp.org>
69549
69550         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
69551         * lib/ldexpl.c: Undo last change.
69552
69553 2007-04-03  Bruno Haible  <bruno@clisp.org>
69554
69555         * modules/printf-frexpl (Depends-on): Undo last change.
69556         (Files): Add m4/ldexpl.m4.
69557
69558 2007-04-03  Bruno Haible  <bruno@clisp.org>
69559
69560         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
69561         * modules/isnanl (Link): New section.
69562
69563         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
69564         * modules/frexp (Link): New section.
69565
69566         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
69567         * modules/frexpl (Link): New section.
69568
69569         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
69570         * modules/ldexpl (Link): New section.
69571
69572 2007-04-03  Bruno Haible  <bruno@clisp.org>
69573
69574         * modules/TEMPLATE-EXTENDED: New file.
69575         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
69576
69577 2007-04-03  Bruno Haible  <bruno@clisp.org>
69578
69579         * DEPENDENCIES: New file.
69580         Suggested by Simon Josefsson.
69581
69582 2007-04-03  Bruno Haible  <bruno@clisp.org>
69583
69584         * doc/gnulib.texi: Escape @.
69585
69586 2007-04-03  James Youngman  <jay@gnu.org>
69587         and Paul Eggert  <eggert@cs.ucla.edu>
69588
69589         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
69590         birthtime on all systems that have birthtime, not just those which
69591         use st_birthtimensec rather than st_birthtim.  Putting zero in
69592         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
69593         that the birth time is not available for files on an NFS mount.
69594
69595 2007-04-03  Simon Josefsson  <simon@josefsson.org>
69596
69597         * modules/memxor: Move back from crypto/, suggested by Bruno.
69598         * modules/crypto/hmac-sha1: Fix memxor dependency.
69599
69600         * modules/crypto/gc: Moved from ../.
69601
69602 2007-04-02  Eric Blake  <ebb9@byu.net>
69603
69604         * lib/ldexpl.c (includes): Avoid libm.
69605
69606         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
69607
69608 2007-04-02  Bruno Haible  <bruno@clisp.org>
69609
69610         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
69611         on IRIX.
69612
69613 2007-04-02  Bruno Haible  <bruno@clisp.org>
69614
69615         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
69616         x86 or x86_64 platforms running MacOS X.
69617         Reported by Ryan Schmidt <@ryandesign.com>.
69618
69619 2007-04-02  Bruno Haible  <bruno@clisp.org>
69620
69621         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
69622         i386.
69623
69624 2007-04-01  Simon Josefsson  <simon@josefsson.org>
69625
69626         * modules/crypto/arcfour: Moved from ../.
69627         * modules/crypto/arcfour-tests: Moved from ../.
69628         * modules/crypto/arctwo: Moved from ../.
69629         * modules/crypto/arctwo-tests: Moved from ../.
69630         * modules/crypto/des: Moved from ../.
69631         * modules/crypto/des-tests: Moved from ../.
69632         * modules/crypto/gc-arcfour: Moved from ../.
69633         * modules/crypto/gc-arcfour-tests: Moved from ../.
69634         * modules/crypto/gc-arctwo: Moved from ../.
69635         * modules/crypto/gc-arctwo-tests: Moved from ../.
69636         * modules/crypto/gc-des: Moved from ../.
69637         * modules/crypto/gc-des-tests: Moved from ../.
69638         * modules/crypto/gc-hmac-md5: Moved from ../.
69639         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
69640         * modules/crypto/gc-hmac-sha1: Moved from ../.
69641         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
69642         * modules/crypto/gc-md2: Moved from ../.
69643         * modules/crypto/gc-md2-tests: Moved from ../.
69644         * modules/crypto/gc-md4: Moved from ../.
69645         * modules/crypto/gc-md4-tests: Moved from ../.
69646         * modules/crypto/gc-md5: Moved from ../.
69647         * modules/crypto/gc-md5-tests: Moved from ../.
69648         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
69649         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
69650         * modules/crypto/gc-random: Moved from ../.
69651         * modules/crypto/gc-rijndael: Moved from ../.
69652         * modules/crypto/gc-rijndael-tests: Moved from ../.
69653         * modules/crypto/gc-sha1: Moved from ../.
69654         * modules/crypto/gc-sha1-tests: Moved from ../.
69655         * modules/crypto/gc-tests: Moved from ../.
69656         * modules/crypto/hmac-md5: Moved from ../.
69657         * modules/crypto/hmac-md5-tests: Moved from ../.
69658         * modules/crypto/hmac-sha1: Moved from ../.
69659         * modules/crypto/hmac-sha1-tests: Moved from ../.
69660         * modules/crypto/md2: Moved from ../.
69661         * modules/crypto/md2-tests: Moved from ../.
69662         * modules/crypto/md4: Moved from ../.
69663         * modules/crypto/md4-tests: Moved from ../.
69664         * modules/crypto/md5: Moved from ../.
69665         * modules/crypto/md5-tests: Moved from ../.
69666         * modules/crypto/memxor: Moved from ../.
69667         * modules/crypto/rijndael: Moved from ../.
69668         * modules/crypto/rijndael-tests: Moved from ../.
69669         * modules/crypto/sha1: Moved from ../.
69670
69671 2007-03-30  James Youngman  <jay@gnu.org>
69672
69673         * tests/test-stat-time.c (prepare_test): use chmod() rather than
69674         rename() to change the ctime of a file (because ctime is unaffected
69675         by rename on jfs2 on AIX 5.1).
69676         (main): Start by doing cleanup, in case a previous run failed leaving
69677         test files behind.
69678
69679 2007-03-31  Bruno Haible  <bruno@clisp.org>
69680
69681         Support old proprietary implementations of iconv.
69682         * modules/iconv_open: New file.
69683         * lib/iconv_.h: New file.
69684         * m4/iconv_h.m4: New file.
69685         * lib/iconv_open.c: New file.
69686         * lib/iconv_open-aix.gperf: New file.
69687         * lib/iconv_open-hpux.gperf: New file.
69688         * lib/iconv_open-irix.gperf: New file.
69689         * lib/iconv_open-osf.gperf: New file.
69690         * m4/iconv_open.m4: New file.
69691         * modules/linebreak (Depends-on): Add iconv_open.
69692         * modules/striconv (Depends-on): Likewise.
69693         * modules/striconveh (Depends-on): Likewise.
69694         * modules/unicodeio (Depends-on): Likewise.
69695         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
69696         (iconv_t)(-1).
69697         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
69698         conversion if cd is (iconv_t)(-1).
69699         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
69700         is not possible.
69701
69702 2007-03-31  Bruno Haible  <bruno@clisp.org>
69703
69704         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69705         work on Solaris either. Protect also second use of "autodetect_jp".
69706
69707 2007-03-31  Bruno Haible  <bruno@clisp.org>
69708
69709         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
69710         the function is not present.
69711
69712 2007-03-31  Bruno Haible  <bruno@clisp.org>
69713
69714         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
69715         the function is not present.
69716
69717 2007-03-31  Bruno Haible  <bruno@clisp.org>
69718
69719         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
69720         a bug in HP-UX iconv_open().
69721
69722 2007-03-31  Bruno Haible  <bruno@clisp.org>
69723
69724         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
69725         (Mathematics <math.h>): New section, add fpieee.
69726         (Input/output <stdio.h>): Add fseterr.
69727         (Mathematics <math.h>): New section, add printf-frexp.
69728         (Container data structures): Add sublist.
69729         (Core language properties): Add fpucw, inline.
69730         (Functions for greatest-width integer types <inttypes.h>): Add
69731         imaxabs, imaxdiv, inttypes.
69732         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
69733         isnanl-nolibm, ldexp.
69734         (Mathematics <math.h>): New section, add printf-frexpl.
69735         (Support for systems lacking POSIX:2001): Add fprintf-posix,
69736         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
69737         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
69738         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
69739         (Unicode string functions): Add unistr/u*-mbtoucr.
69740         (Java): Add javacomp-script, javaexec-script.
69741         (C#): Add csharpcomp-script, csharpexec-script.
69742         (Support for building libraries and executables): Add havelib,
69743         relocatable-*.
69744         (Support for maintaining and releasing projects): Renamed from
69745         'Support for maintaining and release projects'. Add announce-gen.
69746
69747 2007-03-31  Bruno Haible  <bruno@clisp.org>
69748
69749         * README: Talk primarily about git.
69750         (git and CVS): Renamed from CVS.
69751         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
69752         gnulib is available through git.
69753         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
69754
69755 2007-03-30  Bruno Haible  <bruno@clisp.org>
69756
69757         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
69758         * lib/poll_.h: Likewise.
69759         * lib/stat_.h: Likewise.
69760         * lib/sys_time_.h: Likewise.
69761         * lib/sysexit_.h: Likewise.
69762         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
69763         * lib/stdbool_.h: Likewise.
69764         * lib/byteswap_.h: Add double-inclusion guard.
69765
69766 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
69767
69768         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
69769
69770 2007-03-30  Karl Berry  <karl@gnu.org>
69771
69772         * config/srclist-update: double space after USA in the license
69773         substitution, since that's how it's usually (?) written.
69774
69775 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
69776
69777         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
69778         reported by Bruno Haible.
69779
69780 2007-03-29  Bruno Haible  <bruno@clisp.org>
69781
69782         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
69783         a bug in AIX iconv().
69784
69785 2007-03-29  Bruno Haible  <bruno@clisp.org>
69786
69787         * modules/ldexpl-tests: New file.
69788         * tests/test-ldexpl.c: New file.
69789
69790 2007-03-29  Bruno Haible  <bruno@clisp.org>
69791
69792         * lib/ldexpl.c: Include fpucw.h.
69793         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
69794         multiplication.
69795         * modules/ldexpl (Depends-on): Add fpucw.
69796
69797 2007-03-29  Bruno Haible  <bruno@clisp.org>
69798
69799         * modules/ldexpl: New file.
69800         * m4/ldexpl.m4: New file.
69801         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
69802         set.
69803         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
69804         REPLACE_LDEXPL.
69805         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
69806         REPLACE_LDEXPL.
69807         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69808         gl_FUNC_LDEXPL_WORKS.
69809         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
69810         * modules/mathl (Files): Remove lib/ldexpl.c.
69811         (Depends-on): Add ldexpl.
69812
69813 2007-03-29  Bruno Haible  <bruno@clisp.org>
69814
69815         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
69816
69817 2007-03-29  Bruno Haible  <bruno@clisp.org>
69818
69819         * tests/test-striconveh.c (main): Don't assume that a direct conversion
69820         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
69821         and possibly also HP-UX.
69822         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69823         work on AIX, IRIX, HP-UX, OSF/1.
69824         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
69825         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
69826         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
69827         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
69828         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
69829         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
69830
69831 2007-03-29  Bruno Haible  <bruno@clisp.org>
69832
69833         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
69834
69835 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69836
69837         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
69838         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
69839
69840 2007-03-29  Eric Blake  <ebb9@byu.net>
69841
69842         * lib/acl-internal.h: Remove redundant include.
69843         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
69844         Cygwin when a file is locked.
69845
69846 2007-03-29  Bruno Haible  <bruno@clisp.org>
69847
69848         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
69849         file.
69850         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
69851
69852 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69853
69854         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
69855         try to remove a parent directory if the child couldn't be removed
69856         (except for the first rmdir, which could fail because the child
69857         doesn't exist).  Problem reported by Jeff Blaine in
69858         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
69859
69860 2007-03-28  Bruno Haible  <bruno@clisp.org>
69861
69862         * lib/striconveh.c (utf8conv_carefully): New function.
69863         (mem_cd_iconveh_internal): Invoke it.
69864
69865 2007-03-28  Bruno Haible  <bruno@clisp.org>
69866
69867         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
69868         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
69869         input.
69870         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
69871         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
69872         unistr/u8-uctomb.
69873
69874 2007-03-28  Bruno Haible  <bruno@clisp.org>
69875
69876         * modules/unistr/u8-mbtoucr: New file.
69877         * lib/unistr/u8-mbtoucr.c: New file.
69878         * modules/unistr/u16-mbtoucr: New file.
69879         * lib/unistr/u16-mbtoucr.c: New file.
69880         * modules/unistr/u16-mbtoucr: New file.
69881         * lib/unistr/u16-mbtoucr.c: New file.
69882         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
69883
69884 2007-03-27  Simon Josefsson  <simon@josefsson.org>
69885             Bruno Haible  <bruno@clisp.org>
69886
69887         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
69888         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
69889         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
69890
69891         * m4/stdio_h.m4: Add stubs for vasprintf too.
69892
69893         * modules/stdio: Support vasprintf in sed command.
69894
69895         * modules/vasprintf: Depend on stdio for prototypes.  Remove
69896         vasprintf.h.  Add stdio module indicator.
69897
69898         * lib/stdio_.h: Declare asprintf and vasprintf, based on
69899         vasprintf.h.
69900
69901         * lib/vasprintf.h: File removed.
69902
69903         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
69904         * lib/vasprintf.c: Ditto.
69905         * lib/xvasprintf.c: Ditto.
69906         * tests/test-vasprintf-posix.c: Ditto.
69907         * tests/test-vasprintf.c: Ditto.
69908
69909 2007-03-27  Bruno Haible  <bruno@clisp.org>
69910
69911         Make vasnprintf multithread-safe.
69912         * lib/vasnprintf.c (decimal_point_char): New function.
69913         (VASNPRINTF): Use it.
69914         Suggested by Simon Josefsson.
69915
69916 2007-03-27  Eric Blake  <ebb9@byu.net>
69917
69918         Support sub-second birthtime on cygwin.
69919         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
69920         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
69921         (get_stat_birthtime): Also work with st_birthtim.
69922
69923 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
69924
69925         * lib/stat-time.h (USE_BIRTHTIME): Remove.
69926         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
69927         (get_stat_birthtime_ns): Do not try to use "spare" fields.
69928         (get_stat_birthtime_ns): Simplify compile-time tests.
69929         (get_stat_birthtime): Change the API to look like
69930         get_stat_mtime etc., except return a negative tv_nsec on error.
69931         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
69932         Don't check for "spare" fields.
69933         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
69934         or for struct stat.st_birthtime, as these tests aren't used.
69935         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
69936
69937 2007-03-27  Bruno Haible  <bruno@clisp.org>
69938
69939         * lib/stat-time.h: Include <sys/stat.h>.
69940
69941 2007-03-27  James Youngman  <jay@gnu.org>
69942
69943         * lib/stat-time.h (get_stat_birthtime): New function for
69944           retrieving st_birthtime as provided by UFS2 (hence *BSD).
69945         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
69946           and its variants.
69947         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
69948         * modules/stat-time-test: New file.
69949         * tests/test-stat-time.c: New test, devised by Bruno Haible.
69950
69951 2007-03-26  Bruno Haible  <bruno@clisp.org>
69952
69953         Better support of signalling NaNs.
69954         * lib/atanl.c: Include isnanl.h.
69955         (atanl): Perform test for NaN at the beginning of the function and
69956         through a call to isnanl.
69957         * lib/cosl.c: Include isnanl.h.
69958         (cosl): Perform test for NaN at the beginning of the function and
69959         through a call to isnanl.
69960         * lib/ldexpl.c: Include isnanl.h.
69961         (ldexpl): Perform test for NaN through a call to isnanl.
69962         * lib/logl.c: Include isnanl.h.
69963         (logl): Perform test for NaN at the beginning of the function and
69964         through a call to isnanl.
69965         * lib/sinl.c: Include isnanl.h.
69966         (sinl): Perform test for NaN at the beginning of the function and
69967         through a call to isnanl.
69968         * lib/sqrtl.c: Include isnanl.h.
69969         (sqrtl): Perform test for NaN at the beginning of the function and
69970         through a call to isnanl.
69971         * lib/tanl.c: Include isnanl.h.
69972         (tanl): Perform test for NaN at the beginning of the function and
69973         through a call to isnanl.
69974         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
69975         * modules/mathl (Depends-on): Add isnanl.
69976
69977 2007-03-26  Eric Blake  <ebb9@byu.net>
69978
69979         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
69980         regression in logic sense of previous patch.
69981
69982 2007-03-26  Bruno Haible  <bruno@clisp.org>
69983
69984         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
69985         unportable shell command "if ! ...".
69986         Reported by Ralf Wildenhues.
69987
69988 2007-03-25  Bruno Haible  <bruno@clisp.org>
69989
69990         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
69991         <sysexits.h> file, and only add EX_CONFIG.
69992         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
69993         absolute file name and whether it is sufficient. Substitute also
69994         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
69995         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
69996         ABSOLUTE_SYSEXITS_H into sysexits.h.
69997
69998 2007-03-25  Bruno Haible  <bruno@clisp.org>
69999
70000         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
70001         hints is NULL.
70002
70003 2007-03-25  Bruno Haible  <bruno@clisp.org>
70004
70005         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
70006         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
70007
70008 2007-03-25  Bruno Haible  <bruno@clisp.org>
70009
70010         * lib/vasnprintf.c: Include langinfo.h.
70011         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
70012         multithread-safe.
70013         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
70014         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
70015         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70016         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70017         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70018         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70019         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70020         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
70021         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70022         Reported by Simon Josefsson.
70023
70024 2007-03-25  Bruno Haible  <bruno@clisp.org>
70025
70026         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
70027         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
70028         * modules/vasnprintf (Depends-on): Add stdint.
70029
70030 2007-03-25  Bruno Haible  <bruno@clisp.org>
70031
70032         * modules/fpieee: New file.
70033         * m4/fpieee.m4: New file.
70034         * modules/isnan-nolibm (Depends-on): Add fpieee.
70035         * modules/isnanl-nolibm (Depends-on): Add fpieee.
70036         * modules/isnanl (Depends-on): Add fpieee.
70037
70038 2007-03-25  Bruno Haible  <bruno@clisp.org>
70039
70040         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
70041
70042 2007-03-25  Bruno Haible  <bruno@clisp.org>
70043
70044         Avoid test failures on IRIX 6.5.
70045         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
70046         (main): Use it.
70047         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
70048         macros.
70049         (main): Use them.
70050
70051 2007-03-25  Bruno Haible  <bruno@clisp.org>
70052
70053         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
70054         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
70055         exists but doesn't work.
70056         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
70057         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
70058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
70059         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
70060         math.h.
70061
70062 2007-03-25  Bruno Haible  <bruno@clisp.org>
70063
70064         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
70065         returns inf. Needed on IRIX 6.5.
70066
70067 2007-03-25  Bruno Haible  <bruno@clisp.org>
70068
70069         * tests/test-frexpl.c: Include isnanl-nolibm.h.
70070         (main): Use isnanl instead of x != x idiom.
70071         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
70072
70073         * tests/test-frexp.c: Include isnan.h.
70074         (main): Use isnan instead of x != x idiom.
70075         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
70076
70077 2007-03-25  Bruno Haible  <bruno@clisp.org>
70078
70079         * tests/test-frexp.c (NaN): New function/macro.
70080         (main): Use it instead of 0.0 / 0.0.
70081         * tests/test-isnan.c (NaN): New function/macro.
70082         (main): Use it instead of 0.0 / 0.0.
70083         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
70084         (test_function): Use it instead of 0.0 / 0.0.
70085         * tests/test-vasprintf-posix.c (NaN): New function/macro.
70086         (test_function): Use it instead of 0.0 / 0.0.
70087         * tests/test-snprintf-posix.h (NaN): New function/macro.
70088         (test_function): Use it instead of 0.0 / 0.0.
70089         * tests/test-sprintf-posix.h (NaN): New function/macro.
70090         (test_function): Use it instead of 0.0 / 0.0.
70091         * tests/test-fprintf-posix.h (NaN): New function/macro.
70092         (test_function): Use it instead of 0.0 / 0.0.
70093         * tests/test-printf-posix.h (NaN): New function/macro.
70094         (test_function): Use it instead of 0.0 / 0.0.
70095
70096         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
70097
70098 2007-03-25  Bruno Haible  <bruno@clisp.org>
70099
70100         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
70101
70102 2007-03-25  Bruno Haible  <bruno@clisp.org>
70103
70104         * lib/regexec.c (merge_state_with_log): Make static.
70105
70106 2007-03-25  Bruno Haible  <bruno@clisp.org>
70107
70108         * lib/trigl.c (kernel_rem_pio2): Make static.
70109
70110 2007-03-25  Bruno Haible  <bruno@clisp.org>
70111
70112         * lib/sincosl.c (sincosl_table): Make static.
70113
70114 2007-03-25  Bruno Haible  <bruno@clisp.org>
70115
70116         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
70117         if the compiler does not support C99.
70118
70119 2007-03-25  Bruno Haible  <bruno@clisp.org>
70120
70121         * modules/time (Makefile.am): Ensure all rule action lines start with a
70122         tab.
70123
70124 2007-03-24  Bruno Haible  <bruno@clisp.org>
70125
70126         * modules/tsearch-tests: New file.
70127         * tests/test-tsearch.sh: New file.
70128         * tests/test-tsearch.c: New file, mostly copied from glibc.
70129
70130         * modules/search-tests: New file.
70131         * tests/test-search.c: New file.
70132
70133         * modules/search: New file.
70134         * lib/search_.h: New file, incorporating lib/tsearch.h.
70135         * m4/search_h.m4: New file.
70136         * lib/tsearch.h: Remove file.
70137         * lib/tsearch.c: Include search.h instead of tsearch.h.
70138         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
70139         HAVE_TSEARCH.
70140         * modules/tsearch (Files): Remove lib/tsearch.h.
70141         (Depends-on): Add search.
70142         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
70143         (Include): Change tsearch.h into search.h.
70144
70145 2007-03-24  Bruno Haible  <bruno@clisp.org>
70146
70147         * modules/fpucw: New file.
70148         * lib/fpucw.h: New file.
70149         * lib/frexp.c: Include fpucw.h.
70150         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70151         (FUNC): Use them.
70152         * lib/printf-frexp.c: Include fpucw.h.
70153         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70154         (FUNC): Use them.
70155         * lib/vasnprintf.c: Include fpucw.h.
70156         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
70157         'long double' calculations.
70158         * tests/test-frexpl.c: Include fpucw.h.
70159         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70160         * tests/test-printf-frexpl.c: Include fpucw.h.
70161         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70162         * modules/frexpl (Depends-on): Add fpucw.
70163         * modules/printf-frexpl (Depends-on): Likewise.
70164         * modules/fprintf-posix (Depends-on): Likewise.
70165         * modules/snprintf-posix (Depends-on): Likewise.
70166         * modules/sprintf-posix (Depends-on): Likewise.
70167         * modules/vasnprintf-posix (Depends-on): Likewise.
70168         * modules/vasprintf-posix (Depends-on): Likewise.
70169         * modules/vfprintf-posix (Depends-on): Likewise.
70170         * modules/vsnprintf-posix (Depends-on): Likewise.
70171         * modules/vsprintf-posix (Depends-on): Likewise.
70172         * modules/frexpl-tests (Depends-on): Likewise.
70173         * modules/printf-frexpl-tests (Depends-on): Likewise.
70174
70175 2007-03-24  Bruno Haible  <bruno@clisp.org>
70176
70177         * lib/float+.h: New file.
70178         * lib/isnan.c: Include float+.h.
70179         (SIZE): New macro.
70180         (FUNC): Compare only SIZE bytes of the value.
70181         * lib/vasnprintf.c: Include float+.h.
70182         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
70183         SIZEOF_LDBL or SIZEOF_DBL bytes.
70184         * modules/isnan-nolibm (Files): Add lib/float+.h.
70185         * modules/isnanl-nolibm (Files): Add lib/float+.h.
70186         * modules/isnanl (Files): Add lib/float+.h.
70187         * modules/vasnprintf (Files): Add lib/float+.h.
70188
70189 2007-03-24  Bruno Haible  <bruno@clisp.org>
70190
70191         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
70192         include isnanl-nolibm.h.
70193
70194 2007-03-24  Bruno Haible  <bruno@clisp.org>
70195
70196         * tests/test-read-file.c (main): Don't produce spurious output for
70197         expected situations. Make the test fail if it encountered unexpected
70198         results.
70199
70200 2007-03-24  Bruno Haible  <bruno@clisp.org>
70201
70202         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
70203         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
70204
70205 2007-03-24  Bruno Haible  <bruno@clisp.org>
70206
70207         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
70208
70209 2007-03-24  Bruno Haible  <bruno@clisp.org>
70210
70211         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
70212         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
70213
70214         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
70215         * modules/utf8-ucs4: Turn into a symbolic link to module
70216         unistr/u8-mbtouc.
70217
70218         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
70219         utf8-ucs4-unsafe.
70220         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
70221         unistr/u8-mbtouc-unsafe.
70222
70223         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
70224         * modules/utf16-ucs4: Turn into a symbolic link to module
70225         unistr/u16-mbtouc.
70226
70227         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
70228         utf16-ucs4-unsafe.
70229         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
70230         unistr/u16-mbtouc-unsafe.
70231
70232         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
70233         * modules/ucs4-utf8: Turn into a symbolic link to module
70234         unistr/u8-ubtomb.
70235
70236         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
70237         * modules/ucs4-utf16: Turn into a symbolic link to module
70238         unistr/u16-ubtomb.
70239
70240 2007-03-24  Bruno Haible  <bruno@clisp.org>
70241
70242         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
70243         Enable the function only if HAVE_INLINE.
70244         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
70245         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70246         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
70247         Enable the function only if HAVE_INLINE.
70248         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
70249         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70250         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
70251         Enable the function only if HAVE_INLINE.
70252         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
70253         Enable the function only if HAVE_INLINE.
70254         * modules/utf8-ucs4: Update.
70255         * modules/utf8-ucs4-unsafe: Update.
70256         * modules/utf16-ucs4: Update.
70257         * modules/utf16-ucs4-unsafe: Update.
70258         * modules/ucs4-utf8: Update.
70259         * modules/ucs4-utf16: Update.
70260
70261 2007-03-24  Bruno Haible  <bruno@clisp.org>
70262
70263         * lib/utf8-ucs4.h: Remove file.
70264         * lib/utf8-ucs4-unsafe.h: Remove file.
70265         * lib/utf16-ucs4.h: Remove file.
70266         * lib/utf16-ucs4-unsafe.h: Remove file.
70267         * lib/ucs4-utf8.h: Remove file.
70268         * lib/ucs4-utf16.h: Remove file.
70269         * lib/unistr.h: Include their previous contents.
70270         * m4/utf-ucs4.m4: Remove file.
70271         * m4/ucs4-utf.m4: Remove file.
70272         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
70273         (Depends-on): Add unistr/base.
70274         (configure.ac): Remove gl_UTF_UCS4.
70275         (Makefile.am): Update.
70276         (Include): Change to unistr.h.
70277         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
70278         (Depends-on): Add unistr/base.
70279         (configure.ac): Remove gl_UTF_UCS4.
70280         (Makefile.am): Update.
70281         (Include): Change to unistr.h.
70282         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
70283         (Depends-on): Add unistr/base.
70284         (configure.ac): Remove gl_UTF_UCS4.
70285         (Makefile.am): Update.
70286         (Include): Change to unistr.h.
70287         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
70288         (Depends-on): Add unistr/base.
70289         (configure.ac): Remove gl_UTF_UCS4.
70290         (Makefile.am): Update.
70291         (Include): Change to unistr.h.
70292         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
70293         (Depends-on): Add unistr/base.
70294         (configure.ac): Remove gl_UCS4_UTF.
70295         (Makefile.am): Update.
70296         (Include): Change to unistr.h.
70297         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
70298         (Depends-on): Add unistr/base.
70299         (configure.ac): Remove gl_UCS4_UTF.
70300         (Makefile.am): Update.
70301         (Include): Change to unistr.h.
70302         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
70303         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
70304         utf8-ucs4-unsafe.h.
70305         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
70306         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
70307         utf16-ucs4-unsafe.h.
70308         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
70309         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
70310         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
70311         * lib/unistr/u8-strchr.c: Likewise.
70312         * lib/unistr/u8-strrchr.c: Likewise.
70313         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
70314         * lib/unistr/u16-strchr.c: Likewise.
70315         * lib/unistr/u16-strrchr.c: Likewise.
70316         * lib/striconveh.c: Update.
70317         * lib/linebreak.c: Update.
70318
70319 2007-03-24  Bruno Haible  <bruno@clisp.org>
70320
70321         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
70322         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
70323
70324 2007-03-22  Bruno Haible  <bruno@clisp.org>
70325
70326         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
70327
70328 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70329
70330         * MODULES.html.sh (File system functions): New module write-any-file.
70331         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
70332         * m4/write-any-file.m4: New files.
70333
70334 2007-03-23  Eric Blake  <ebb9@byu.net>
70335
70336         * gnulib-tool: Rearrange space-tab sequences, since some editors
70337         like to eat them.
70338
70339 2007-03-23  Eric Blake  <ebb9@byu.net>
70340
70341         * lib/version-etc.c (version_etc_va): Update license wording to
70342         be more concise.  Recommended by Richard Stallman.
70343
70344 2007-03-22  Bruno Haible  <bruno@clisp.org>
70345
70346         * lib/poll.c (MSG_PEEK): New fallback definition.
70347
70348 2007-03-22  Bruno Haible  <bruno@clisp.org>
70349
70350         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
70351         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
70352         (main): Update.
70353         Fixes a compilation error on BeOS.
70354
70355 2007-03-22  Bruno Haible  <bruno@clisp.org>
70356
70357         * modules/frexpl-tests: New file.
70358         * tests/test-frexpl.c: New file.
70359
70360         * modules/frexpl: New file.
70361         * m4/frexpl.m4: New file.
70362         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
70363         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
70364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
70365         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
70366         (Depends-on): Add frexpl. Remove isnanl-nolibm.
70367         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
70368
70369 2007-03-22  Bruno Haible  <bruno@clisp.org>
70370
70371         * lib/frexpl.c: Share code with lib/frexp.c.
70372         * modules/mathl (Files): Add lib/frexp.c.
70373         (Depends-on): Add isnanl-nolibm.
70374
70375 2007-03-22  Bruno Haible  <bruno@clisp.org>
70376
70377         * modules/printf-frexp (Files): Add m4/frexp.m4.
70378         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
70379         only if the found frexp function actually works.
70380
70381 2007-03-22  Bruno Haible  <bruno@clisp.org>
70382
70383         * lib/frexp.c: Remove older implementation that uses divisions.
70384
70385 2007-03-21  Bruno Haible  <bruno@clisp.org>
70386
70387         * modules/frexp-tests: New file.
70388         * tests/test-frexp.c: New file.
70389
70390         * modules/frexp: New file.
70391         * lib/frexp.c: New file.
70392         * m4/frexp.m4: New file.
70393         * lib/math_.h (frexp): New declaration.
70394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
70395         REPLACE_FREXP.
70396         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
70397
70398 2007-03-21  Bruno Haible  <bruno@clisp.org>
70399
70400         * modules/isnanl-tests: New file.
70401         * tests/test-isnanl.c: New file.
70402
70403         * modules/isnanl: New file.
70404         * lib/isnanl.h: New file.
70405         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
70406         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
70407         gl_FUNC_ISNANL_WORKS.
70408         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
70409         New macros.
70410
70411 2007-03-21  Bruno Haible  <bruno@clisp.org>
70412
70413         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
70414         lib/isnanl.h.
70415         (Include): Update.
70416         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
70417         * lib/vasnprintf.c: Update.
70418         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
70419         tests/test-isnanl.h, remove tests/test-isnanl.c.
70420         (Makefile.am): Update.
70421         * tests/test-isnanl-nolibm.c: New file.
70422         * tests/test-isnanl.h: New file.
70423         * tests/test-isnanl.c: Remove file.
70424
70425 2007-03-21  Jim Meyering  <jim@meyering.net>
70426
70427         When trying to open ".", treat ESTALE like EACCES.
70428         * lib/savewd.c (savewd_save): Resort to forking not just upon
70429         failure with EACCES, but also when errno is ESTALE.
70430
70431 2007-03-20  Bruno Haible  <bruno@clisp.org>
70432
70433         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
70434         Needed on AIX 5.1. Reported by Matthew Woehlke.
70435
70436 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70437
70438         Suggestions by Bruno Haible:
70439         * lib/acl-internal.h: Include "gettext.h" rather than rolling
70440         our own.
70441         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
70442         * modules/acl (Depends-on): Add gettext.
70443
70444 2007-03-19  Bruno Haible  <bruno@clisp.org>
70445
70446         * modules/iconvme: Remove file.
70447         * lib/iconvme.h: Remove file.
70448         * lib/iconvme.c: Remove file.
70449         * m4/iconvme.m4: Remove file.
70450
70451 2007-03-19  Bruno Haible  <bruno@clisp.org>
70452
70453         * doc/relocatable-maint.texi: Break long shell script line.
70454         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70455
70456 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70457
70458         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
70459         handle file_has_acl.
70460         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
70461         * lib/acl.c: Move header inclusions and related macro defns into
70462         lib/acl-internal.h.
70463         (S_ISLNK): Remove defn, since that's now done for us.
70464         (file_has_acl): Move to lib/file-has-acl.c.
70465         Call acl_trivial if available.  This is the crucial part of the fix.
70466         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
70467         shared within the library.  Rewrite a bit, partly to make it compatible
70468         with the GNU coding style.
70469         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
70470         Remove unnecessary double-quotes.
70471         Don't test for acl_to_text; the build will catch that.
70472         Replace acl_entries if it doesn't exist and it is needed.
70473         Check for -lsec and acl_trivial (as used on Solaris 10).
70474         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
70475         lib/file-has-acl.c.
70476         (Depends-on): Add sys_stat, for S_ISLNK.
70477
70478 2007-03-19  Ben Pfaff  <blp@gnu.org>
70479
70480         * doc/gnulib.texi: Fix typos.
70481         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70482
70483 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70484
70485         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
70486         If size is zero here, buf must be zero.
70487
70488 2007-03-19  Simon Josefsson  <simon@josefsson.org>
70489
70490         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
70491         <bruno@clisp.org>.
70492
70493 2007-03-18  Bruno Haible  <bruno@clisp.org>
70494
70495         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
70496         Suggested by Eric Blake.
70497
70498 2007-03-18  Ben Pfaff  <blp@gnu.org>
70499
70500         * doc/relocatable.texi: Recommend using as prefix a directory
70501         that does not exist and will never be created.  Based on
70502         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
70503         and others.
70504
70505 2007-03-17  Bruno Haible  <bruno@clisp.org>
70506
70507         * lib/fchownat.c: Include lchown.h.
70508
70509 2007-03-17  Bruno Haible  <bruno@clisp.org>
70510
70511         Fix endless loop when the given allocated size was > INT_MAX.
70512         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
70513         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
70514         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
70515         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
70516         * lib/sprintf.c (sprintf): Likewise.
70517
70518 2007-03-17  Bruno Haible  <bruno@clisp.org>
70519
70520         * tests/test-argp-2.sh (func_compare): Output a context diff.
70521
70522 2007-03-17  Bruno Haible  <bruno@clisp.org>
70523
70524         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
70525         locale's decimal-point character.
70526
70527 2007-03-17  Bruno Haible  <bruno@clisp.org>
70528
70529         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
70530         before comparing it. Needed because on some platforms (e.g. x86) a
70531         'long double' occupies less bytes than sizeof (long double).
70532
70533 2007-03-17  Bruno Haible  <bruno@clisp.org>
70534
70535         * tests/test-crc.c (main): Make printf statements 64-bit clean.
70536         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
70537         * tests/test-getaddrinfo.c (simple): Likewise.
70538         * tests/test-read-file.c (main): Likewise.
70539
70540 2007-03-17  Bruno Haible  <bruno@clisp.org>
70541
70542         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
70543
70544 2007-03-17  Bruno Haible  <bruno@clisp.org>
70545
70546         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
70547         unused variable.
70548
70549 2007-03-17  Bruno Haible  <bruno@clisp.org>
70550
70551         * tests/test-c-strcasecmp.c: Include c-strcase.h.
70552         * tests/test-c-strncasecmp.c: Likewise.
70553
70554 2007-03-17  Bruno Haible  <bruno@clisp.org>
70555
70556         * modules/stdlib (Depends-on): Add unistd.
70557         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
70558         Needed for MacOS X 10.3.
70559
70560 2007-03-17  Bruno Haible  <bruno@clisp.org>
70561
70562         * lib/unistr/u-strdup.h: Include <stdlib.h>.
70563
70564 2007-03-17  Bruno Haible  <bruno@clisp.org>
70565
70566         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
70567
70568 2007-03-17  Bruno Haible  <bruno@clisp.org>
70569
70570         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
70571         to reflect files copied from gnulib (with or without modifications).
70572         Suggested by Jim Meyering.
70573
70574 2007-03-17  Eric Blake  <ebb9@byu.net>
70575
70576         * NEWS: Document stdlib change from 2007-02-18.
70577
70578 2007-03-17  Jim Meyering  <jim@meyering.net>
70579
70580         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
70581         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
70582         someone uses a name containing shell meta-characters.
70583         Reported by Alfred M. Szmidt.
70584
70585         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
70586
70587 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70588
70589         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
70590         and copy gettext configuration files only if configure.ac contains
70591         a use of AM_GNU_GETTEXT_VERSION.
70592
70593 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70594
70595         * build-aux/bootstrap (gnulib_name): New variable.
70596         (gnulib_tool_options): Use it.
70597
70598 2007-03-13  Simon Josefsson  <simon@josefsson.org>
70599
70600         * tests/test-des.c: Use new namespace.
70601
70602 2007-03-15  Bruno Haible  <bruno@clisp.org>
70603
70604         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
70605         Reported by James Youngman <jay@gnu.org>.
70606
70607 2007-03-15  Bruno Haible  <bruno@clisp.org>
70608
70609         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
70610         declared prototype. Needed with cc on OSF/1 5.1.
70611
70612 2007-03-15  Bruno Haible  <bruno@clisp.org>
70613
70614         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
70615         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
70616         (struct gl_list_implementation): Add dispose_fn argument to the
70617         'create_empty', 'create' methods.
70618         (struct gl_list_impl_base): Add field 'dispose_fn'.
70619         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
70620         argument.
70621         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
70622         dispose_fn argument.
70623         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
70624         dispose_fn on the dropped values.
70625         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
70626         dispose_fn argument.
70627         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
70628         dropped values.
70629         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
70630         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70631         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
70632         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70633         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
70634         argument.
70635         (gl_tree_list_free): Call dispose_fn on the dropped values.
70636         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
70637         the dropped values.
70638         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70639         Add dispose_fn argument.
70640         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
70641         Call dispose_fn on the dropped values.
70642         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
70643         Add dispose_fn argument.
70644         (gl_sublist_create): Initialize the 'dispose_fn' field.
70645         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
70646         * tests/test-array_list.c (main): Update.
70647         * tests/test-carray_list.c (main): Update.
70648         * tests/test-avltree_list.c (main): Update.
70649         * tests/test-rbtree_list.c (main): Update.
70650         * tests/test-avltreehash_list.c (main): Update.
70651         * tests/test-rbtreehash_list.c (main): Update.
70652         * tests/test-linked_list.c (main): Update.
70653         * tests/test-linkedhash_list.c (main): Update.
70654         * tests/test-array_oset.c (main): Update.
70655
70656 2007-03-15  Bruno Haible  <bruno@clisp.org>
70657
70658         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
70659         (gl_oset_create_empty): Add dispose_fn argument.
70660         (struct gl_oset_implementation): Add dispose_fn argument to
70661         'create_empty' method.
70662         (struct gl_oset_impl_base): Add dispose_fn field.
70663         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
70664         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
70665         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
70666         values.
70667         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
70668         (gl_tree_oset_free): Call dispose_fn on the dropped values.
70669         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70670         dropped value.
70671         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70672         dropped value.
70673         * tests/test-array_oset.c (main): Update.
70674         * tests/test-avltree_oset.c (main): Update.
70675         * tests/test-rbtree_oset.c (main): Update.
70676         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
70677
70678 2007-03-13  Bruno Haible  <bruno@clisp.org>
70679
70680         * tests/test-stdbool.c (i): Update after last patch.
70681
70682 2007-03-12  Bruno Haible  <bruno@clisp.org>
70683
70684         * lib/quotearg.c: Include <wctype.h> early, before the definition of
70685         the iswprint macro. Needed on Solaris 2.5.1.
70686
70687 2007-03-12  Bruno Haible  <bruno@clisp.org>
70688
70689         * tests/test-printf-frexp.c (main): Declare x as volatile.
70690
70691 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70692
70693         * doc/gnulib.texi (Build robot for gnulib): New section.
70694
70695 2007-03-12  Jim Meyering  <jim@meyering.net>
70696
70697         * build-aux/bootstrap: New file.
70698         * build-aux/bootstrap.conf: New file, from coreutils.
70699
70700 2007-03-11  Bruno Haible  <bruno@clisp.org>
70701
70702         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
70703
70704 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70705
70706         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
70707         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
70708         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
70709
70710 2007-03-11  Bruno Haible  <bruno@clisp.org>
70711
70712         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
70713         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
70714
70715 2007-03-11  Bruno Haible  <bruno@clisp.org>
70716
70717         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
70718         formula. Needed for SunPRO C 5.0.
70719
70720 2007-03-11  Bruno Haible  <bruno@clisp.org>
70721
70722         * modules/long-options (Depends-on): Add getopt.
70723
70724 2007-03-11  Bruno Haible  <bruno@clisp.org>
70725
70726         * modules/modechange (Depends-on): Add stdbool.
70727
70728 2007-03-11  Bruno Haible  <bruno@clisp.org>
70729
70730         * modules/i-ring (Depends-on): Add stdbool.
70731
70732 2007-03-11  Bruno Haible  <bruno@clisp.org>
70733
70734         * modules/gc-des (Depends-on): Add stdbool.
70735
70736 2007-03-11  Bruno Haible  <bruno@clisp.org>
70737
70738         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
70739
70740 2007-03-11  Bruno Haible  <bruno@clisp.org>
70741
70742         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
70743
70744 2007-03-11  Bruno Haible  <bruno@clisp.org>
70745
70746         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
70747
70748 2007-03-11  Bruno Haible  <bruno@clisp.org>
70749
70750         * lib/vasnprintf.c (sprintf): Undefine.
70751
70752 2007-03-11  Bruno Haible  <bruno@clisp.org>
70753
70754         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
70755         initializers in SunPRO C and Compaq C compilers.
70756
70757 2007-03-11  Bruno Haible  <bruno@clisp.org>
70758
70759         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
70760         decrementing code ANSI C compliant.
70761
70762 2007-03-11  Bruno Haible  <bruno@clisp.org>
70763
70764         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
70765         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
70766
70767 2007-03-11  Bruno Haible  <bruno@clisp.org>
70768
70769         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
70770         <stdbool.h> substitute doesn't pass.
70771
70772 2007-03-11  Bruno Haible  <bruno@clisp.org>
70773
70774         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
70775
70776 2007-03-11  Bruno Haible  <bruno@clisp.org>
70777
70778         * gnulib-tool (func_create_megatestdir): Create also an autobuild
70779         script, for submission to autobuild.josefsson.org.
70780
70781 2007-03-10  Bruno Haible  <bruno@clisp.org>
70782
70783         * modules/canonicalize-lgpl-tests: New file.
70784         * tests/test-canonicalize-lgpl.sh: New file.
70785         * tests/test-canonicalize-lgpl.c: New file.
70786
70787         * modules/c-strcase-tests: New file.
70788         * tests/test-c-strcase.sh: New file.
70789         * tests/test-c-strcasecmp.c: New file.
70790         * tests/test-c-strncasecmp.c: New file.
70791
70792         * modules/atexit-tests: New file.
70793         * tests/test-atexit.sh: New file.
70794         * tests/test-atexit.c: New file.
70795
70796 2007-03-10  Bruno Haible  <bruno@clisp.org>
70797
70798         * tests/test-binary-io.sh: Use temporary filenames that are not so
70799         likely to clash with those of other tests (in a parallel make).
70800         * tests/test-binary-io.c: Likewise.
70801
70802 2007-03-10  Bruno Haible  <bruno@clisp.org>
70803
70804         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
70805         fallback; use #error instead.
70806         Suggested by Simon Josefsson.
70807
70808 2007-03-10  Bruno Haible  <bruno@clisp.org>
70809
70810         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
70811         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
70812         first and the last.
70813
70814 2007-03-10  Bruno Haible  <bruno@clisp.org>
70815
70816         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
70817
70818 2007-03-10  Bruno Haible  <bruno@clisp.org>
70819
70820         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
70821         "make distcheck".
70822         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
70823         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
70824         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
70825
70826 2007-03-10  Bruno Haible  <bruno@clisp.org>
70827
70828         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
70829         variable.
70830         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
70831         variable.
70832
70833 2007-03-09  Eric Blake  <ebb9@byu.net>
70834         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
70835
70836         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
70837         types are not being provided by gnulib.
70838         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
70839         types are supported.
70840
70841 2007-03-10  Bruno Haible  <bruno@clisp.org>
70842
70843         * lib/stdio_.h (__attribute__): New macro.
70844         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
70845         vsprintf): Specify __attribute__ __format__ for GCC.
70846         Suggested by Eric Blake.
70847
70848 2007-03-09  Bruno Haible  <bruno@clisp.org>
70849
70850         * modules/printf-posix-tests: New file.
70851         * tests/test-printf-posix.sh: New file.
70852         * tests/test-printf-posix.c: New file.
70853
70854         * modules/printf-posix: New file.
70855         * lib/printf.c: New file.
70856         * m4/printf-posix-rpl.m4: New file.
70857         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
70858         REPLACE_PRINTF.
70859         * lib/stdio_.h (printf): New declaration.
70860         (format, __format__, ____printf____, ____scanf____, ____strftime____,
70861         ____strfmon____): New macros.
70862         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
70863         REPLACE_PRINTF.
70864
70865 2007-03-09  Bruno Haible  <bruno@clisp.org>
70866
70867         * tests/test-vasnprintf-posix2.sh: New file.
70868         * tests/test-vasnprintf-posix2.c: New file.
70869         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
70870         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70871         (Makefile.am): Activate test-vasnprintf-posix2.sh.
70872
70873         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
70874         a locale dependent decimal point, rather than always '.'.
70875
70876 2007-03-09  Eric Blake  <ebb9@byu.net>
70877
70878         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
70879         spite of platforms like Tandem/NSK that define it to -1.
70880
70881 2007-03-08  Bruno Haible  <bruno@clisp.org>
70882
70883         * modules/vprintf-posix-tests: New file.
70884         * tests/test-vprintf-posix.sh: New file.
70885         * tests/test-vprintf-posix.c: New file.
70886         * tests/test-printf-posix.h: New file.
70887
70888         * modules/vprintf-posix: New file.
70889         * lib/vprintf.c: New file.
70890         * m4/vprintf-posix.m4: New file.
70891         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
70892         REPLACE_VPRINTF.
70893         * lib/stdio_.h (vprintf): New declaration.
70894         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
70895         REPLACE_VPRINTF.
70896
70897 2007-03-08  Bruno Haible  <bruno@clisp.org>
70898
70899         * modules/fprintf-posix-tests: New file.
70900         * tests/test-fprintf-posix.sh: New file.
70901         * tests/test-fprintf-posix.c: New file.
70902
70903         * modules/fprintf-posix: New file.
70904         * lib/fprintf.c: New file.
70905         * m4/fprintf-posix.m4: New file.
70906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
70907         REPLACE_FPRINTF.
70908         * lib/stdio_.h (fprintf): New declaration.
70909         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
70910         REPLACE_FPRINTF.
70911
70912 2007-03-08  Bruno Haible  <bruno@clisp.org>
70913
70914         * modules/vfprintf-posix-tests: New file.
70915         * tests/test-vfprintf-posix.sh: New file.
70916         * tests/test-vfprintf-posix.c: New file.
70917         * tests/test-fprintf-posix.h: New file.
70918         * tests/test-fprintf-posix.out: New file.
70919
70920         * modules/vfprintf-posix: New file.
70921         * lib/vfprintf.c: New file.
70922         * m4/vfprintf-posix.m4: New file.
70923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
70924         REPLACE_VFPRINTF.
70925         * lib/stdio_.h (vfprintf): New declaration.
70926         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
70927         REPLACE_VFPRINTF.
70928
70929 2007-03-08  Bruno Haible  <bruno@clisp.org>
70930
70931         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
70932
70933 2007-03-08  Bruno Haible  <bruno@clisp.org>
70934
70935         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
70936         instead of 'expr' invocations.
70937         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70938         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70939         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70940         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70941         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70942         Suggested by Paul Eggert.
70943
70944 2007-03-08  Bruno Haible  <bruno@clisp.org>
70945
70946         * modules/fseterr-tests: New file.
70947         * tests/test-fseterr.c: New file.
70948
70949         * modules/fseterr: New file.
70950         * lib/fseterr.h: New file.
70951         * lib/fseterr.c: New file.
70952
70953 2007-03-08  Bruno Haible  <bruno@clisp.org>
70954
70955         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
70956         * lib/getopt_.h: Likewise.
70957         * lib/mbswidth.h: Likewise.
70958         * lib/setenv.h: Likewise.
70959         * lib/vasnprintf.h: Likewise.
70960         * lib/vasprintf.h: Likewise.
70961         * lib/verror.h: Likewise.
70962         * lib/xsetenv.h: Likewise.
70963         * lib/xvasprintf.h: Likewise.
70964
70965 2007-03-08  Jim Meyering  <jim@meyering.net>
70966
70967         * users.txt: Add parted.
70968
70969         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
70970
70971 2007-03-07  Bruno Haible  <bruno@clisp.org>
70972
70973         * m4/printf.m4: Make the shell script snippets copy&pastable.
70974
70975 2007-03-02  Bruno Haible  <bruno@clisp.org>
70976
70977         * lib/netinet_in_.h: New file.
70978         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
70979         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
70980         * modules/netinet_in (Files): Add lib/netinet_in_.h.
70981         (Depends-on): Add absolute-header.
70982         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
70983         into netinet/in.h.
70984
70985 2007-03-03  Bruno Haible  <bruno@clisp.org>
70986
70987         * lib/sys_select_.h: New file.
70988         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
70989         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
70990         * modules/sys_select (Files): Add lib/sys_select_.h.
70991         (Depends-on): Add absolute-header.
70992         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
70993         into sys/select.h.
70994
70995 2007-03-02  Bruno Haible  <bruno@clisp.org>
70996
70997         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
70998         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
70999         values.
71000         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
71001         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
71002         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
71003         * modules/sys_socket (Depends-on): Add absolute-header.
71004         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
71005         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
71006         (Include): Remove requirement of inclusion of <sys/types.h>.
71007
71008 2007-03-02  Bruno Haible  <bruno@clisp.org>
71009
71010         * lib/byteswap_.h (bswap_32): Fix formula.
71011
71012 2007-03-06  Bruno Haible  <bruno@clisp.org>
71013
71014         * modules/sprintf-posix-tests: New file.
71015         * tests/test-sprintf-posix.c: New file.
71016
71017         * modules/sprintf-posix: New file.
71018         * lib/sprintf.c: New file.
71019         * m4/sprintf-posix.m4: New file.
71020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
71021         REPLACE_SPRINTF.
71022         * lib/stdio_.h (sprintf): New declaration.
71023         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
71024         REPLACE_SPRINTF.
71025
71026 2007-03-06  Bruno Haible  <bruno@clisp.org>
71027
71028         * modules/vsprintf-posix-tests: New file.
71029         * tests/test-vsprintf-posix.c: New file.
71030         * tests/test-sprintf-posix.h: New file.
71031
71032         * modules/vsprintf-posix: New file.
71033         * lib/vsprintf.c: New file.
71034         * m4/vsprintf-posix.m4: New file.
71035         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
71036         REPLACE_VSPRINTF.
71037         * lib/stdio_.h (vsprintf): New declaration.
71038         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
71039         REPLACE_VSPRINTF.
71040
71041 2007-03-06  Bruno Haible  <bruno@clisp.org>
71042
71043         * modules/vsnprintf (Depend-on): Remove minmax.
71044
71045 2007-03-06  Bruno Haible  <bruno@clisp.org>
71046
71047         * modules/snprintf-posix-tests: New file.
71048         * tests/test-snprintf-posix.c: New file.
71049
71050         * modules/snprintf-posix: New file.
71051         * m4/snprintf-posix.m4: New file.
71052         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
71053         gl_FUNC_SNPRINTF.
71054         (gl_FUNC_SNPRINTF): Invoke it.
71055         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
71056         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
71057         is set.
71058         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
71059
71060 2007-03-06  Bruno Haible  <bruno@clisp.org>
71061
71062         * modules/vsnprintf-posix-tests: New file.
71063         * tests/test-vsnprintf-posix.c: New file.
71064         * tests/test-snprintf-posix.h: New file.
71065
71066         * modules/vsnprintf-posix: New file.
71067         * m4/vsnprintf-posix.m4: New file.
71068         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
71069         gl_FUNC_VSNPRINTF.
71070         (gl_FUNC_VSNPRINTF): Invoke it.
71071         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
71072         * lib/stdio_.h (vsnprintf): Define as a replacement if
71073         REPLACE_VSNPRINTF is set.
71074         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
71075
71076 2007-03-06  Bruno Haible  <bruno@clisp.org>
71077
71078         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
71079         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
71080
71081 2007-03-06  Bruno Haible  <bruno@clisp.org>
71082
71083         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
71084         (asinl): Declare also if HAVE_DECL_ASINL is set.
71085         (atanl): Declare also if HAVE_DECL_ATANL is set.
71086         (ceill): Declare also if HAVE_DECL_CEILL is set.
71087         (cosl): Declare also if HAVE_DECL_COSL is set.
71088         (expl): Declare also if HAVE_DECL_EXPL is set.
71089         (floorl): Declare also if HAVE_DECL_FLOORL is set.
71090         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
71091         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
71092         (logl): Declare also if HAVE_DECL_LOGL is set.
71093         (sinl): Declare also if HAVE_DECL_SINL is set.
71094         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
71095         (tanl): Declare also if HAVE_DECL_TANL is set.
71096         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
71097         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
71098         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
71099         declaration of frexpl, ldexpl.
71100         * modules/printf-frexpl (Depends-on): Add math.
71101         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
71102
71103 2007-03-05  Bruno Haible  <bruno@clisp.org>
71104
71105         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
71106         frexpl and ldexpl are declared.
71107         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
71108
71109 2007-03-05  Bruno Haible  <bruno@clisp.org>
71110
71111         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
71112         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
71113
71114 2007-03-05  Bruno Haible  <bruno@clisp.org>
71115
71116         * lib/stdio_.h: Include <stddef.h>.
71117
71118 2007-03-05  Bruno Haible  <bruno@clisp.org>
71119
71120         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
71121
71122 2007-03-05  Bruno Haible  <bruno@clisp.org>
71123
71124         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
71125         NetBSD 4, from Ralf Wildenhues.
71126
71127 2007-03-04  Bruno Haible  <bruno@clisp.org>
71128
71129         * lib/vasprintf.h: Update #if logic for the case when the functions
71130         exist but are overridden.
71131
71132 2007-03-04  Bruno Haible  <bruno@clisp.org>
71133
71134         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
71135         implementations: glibc-2.4 and MacOS X 10.3.
71136         * tests/test-vasnprintf-posix.c (test_function): Test also the case
71137         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
71138         * tests/test-vasprintf-posix.c (test_function): Likewise.
71139
71140 2007-03-04  Bruno Haible  <bruno@clisp.org>
71141
71142         * modules/vasprintf-posix-tests: New file.
71143         * tests/test-vasprintf-posix.c: New file.
71144
71145         * modules/vasprintf-posix: New file.
71146         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
71147         defined.
71148         * m4/vasprintf-posix.m4: New file.
71149         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
71150         gl_FUNC_VASPRINTF.
71151         (gl_FUNC_VASPRINTF): Invoke it.
71152         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
71153         here.
71154         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
71155
71156 2007-03-04  Bruno Haible  <bruno@clisp.org>
71157
71158         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
71159         REPLACE_GETTIMEOFDAY.
71160         * modules/sys_time (Makefile.am): Likewise.
71161         * m4/sys_time_h.m4: Likewise.
71162         * m4/gettimeofday.m4: Likewise.
71163
71164 2007-03-04  Bruno Haible  <bruno@clisp.org>
71165
71166         * modules/vasnprintf-posix-tests: New file.
71167         * tests/test-vasnprintf-posix.c: New file.
71168
71169         * modules/vasnprintf-posix: New file.
71170         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
71171         printf-frexpl.h.
71172         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
71173         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
71174         REPLACE_VASNPRINTF is defined.
71175         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
71176         gl_FUNC_VASNPRINTF.
71177         (gl_FUNC_VASNPRINTF): Invoke it.
71178         * m4/vasnprintf-posix.m4: New file.
71179         * m4/printf.m4: New file.
71180
71181 2007-03-04  Bruno Haible  <bruno@clisp.org>
71182
71183         Compile progreloc.c only if --enable-relocatable is specified.
71184         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
71185         if --enable-relocatable was specified.
71186         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
71187         lib_SOURCES.
71188
71189 2007-03-04  Jim Meyering  <jim@meyering.net>
71190
71191         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
71192         Use it consistently, rather than enumerating errno constants.
71193
71194 2007-03-04  Bruno Haible  <bruno@clisp.org>
71195
71196         * modules/xvasprintf-tests: New file.
71197         * tests/test-xvasprintf.c: New file.
71198
71199         * modules/vasprintf-tests: New file.
71200         * tests/test-vasprintf.c: New file.
71201
71202         * modules/vasnprintf-tests: New file.
71203         * tests/test-vasnprintf.c: New file.
71204
71205         * modules/vsnprintf-tests: New file.
71206         * tests/test-vsnprintf.c: New file.
71207
71208         * modules/snprintf-tests: New file.
71209         * tests/test-snprintf.c: New file.
71210
71211 2007-03-04  Bruno Haible  <bruno@clisp.org>
71212
71213         Compile relocatable.c only if --enable-relocatable is specified.
71214         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
71215         gl_RELOCATABLE_LIBRARY.
71216         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
71217         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
71218         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
71219         gl_RELOCATABLE_LIBRARY.
71220         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
71221         (Makefile.am): Remove lib_SOURCES.
71222         * modules/relocatable-lib-lgpl (configure.ac): Invoke
71223         gl_RELOCATABLE_LIBRARY.
71224         (Makefile.am): Remove lib_SOURCES.
71225         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
71226         always.
71227         * modules/relocatable-prog-wrapper (configure.ac): Invoke
71228         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
71229
71230 2007-03-04  Bruno Haible  <bruno@clisp.org>
71231
71232         * modules/argmatch-tests: New file.
71233         * tests/test-argmatch.c: New file.
71234
71235         * tests/test-allocsa.c (main): Halve the number of loop runs.
71236
71237         * modules/alloca-opt-tests: New file.
71238         * tests/test-alloca-opt.c: New file.
71239
71240 2007-03-04  Jim Meyering  <jim@meyering.net>
71241
71242         Work around difference between Linux ACLs and Solaris 10 ZFS.
71243         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
71244         for EINVAL.
71245
71246 2007-03-03  Bruno Haible  <bruno@clisp.org>
71247
71248         * modules/relocatable-prog (Depends-on): Add back progreloc's
71249         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
71250
71251 2007-03-03  Bruno Haible  <bruno@clisp.org>
71252
71253         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
71254         * modules/relocatable-lib: New file.
71255
71256 2007-03-03  Bruno Haible  <bruno@clisp.org>
71257
71258         * modules/relocatable-prog: Renamed from modules/relocatable.
71259         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
71260
71261 2007-03-03  Bruno Haible  <bruno@clisp.org>
71262
71263         * modules/relocatable-script (Files): Add doc/relocatable.texi,
71264         m4/relocatable-lib.m4.
71265         (Depends-on): Remove 'relocatable'.
71266         (configure.ac): Add gl_RELOCATABLE_NOP.
71267
71268 2007-03-03  Bruno Haible  <bruno@clisp.org>
71269
71270         * modules/relocatable-prog-wrapper: New file.
71271         * modules/relocatable (Depends-on): Add it. Remove all other
71272         dependencies except progname.
71273         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
71274
71275         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
71276         (gl_FUNC_STRERROR): Nop.
71277         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
71278
71279         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
71280         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
71281
71282         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
71283         (gl_FUNC_READLINK): Update.
71284
71285         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
71286
71287 2007-03-03  Bruno Haible  <bruno@clisp.org>
71288
71289         * lib/xreadlink.c: Include <unistd.h> unconditionally.
71290         * modules/xreadlink (Depends-on): Add unistd.
71291         * modules/xreadlink-with-size (Depends-on): Likewise.
71292
71293 2007-03-03  Bruno Haible  <bruno@clisp.org>
71294
71295         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
71296         extracted from gt_FUNC_SETENV.
71297         (gt_FUNC_SETENV): Remove macro.
71298         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
71299         remove gt_FUNC_SETENV.
71300
71301 2007-03-03  Bruno Haible  <bruno@clisp.org>
71302
71303         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
71304         ENABLE_RELOCATABLE here.
71305         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
71306
71307 2007-03-03  Bruno Haible  <bruno@clisp.org>
71308
71309         * modules/rbtreehash-list-tests (Depends-on): Add progname.
71310         * tests/test-rbtreehash_list.c: Include progname.h.
71311         (main): Call set_program_name.
71312
71313         * modules/rbtree-oset-tests (Depends-on): Add progname.
71314         * tests/test-rbtree_oset.c: Include progname.h.
71315         (main): Call set_program_name.
71316
71317         * modules/rbtree-list-tests (Depends-on): Add progname.
71318         * tests/test-rbtree_list.c: Include progname.h.
71319         (main): Call set_program_name.
71320
71321         * modules/linked-list-tests (Depends-on): Add progname.
71322         * tests/test-linked_list.c: Include progname.h.
71323         (main): Call set_program_name.
71324
71325 2007-03-03  Bruno Haible  <bruno@clisp.org>
71326
71327         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
71328         All uses of __restrict changed to _Restrict_.
71329         * lib/glob_.h (__restrict): Remove macro.
71330
71331 2007-03-02  Bruno Haible  <bruno@clisp.org>
71332
71333         * modules/gettext (configure.ac): Require gettext infrastructure
71334         from version 0.16.1.
71335
71336 2007-03-02  Bruno Haible  <bruno@clisp.org>
71337
71338         * modules/linkedhash-list-tests (Depends-on): Add progname.
71339         * tests/test-linkedhash_list.c: Include progname.h.
71340         (main): Call set_program_name.
71341
71342         * modules/carray-list-tests (Depends-on): Add progname.
71343         * tests/test-carray_list.c: Include progname.h.
71344         (main): Call set_program_name.
71345
71346         * modules/avltreehash-list-tests (Depends-on): Add progname.
71347         * tests/test-avltreehash_list.c: Include progname.h.
71348         (main): Call set_program_name.
71349
71350         * modules/avltree-oset-tests (Depends-on): Add progname.
71351         * tests/test-avltree_oset.c: Include progname.h.
71352         (main): Call set_program_name.
71353
71354         * modules/avltree-list-tests (Depends-on): Add progname.
71355         * tests/test-avltree_list.c: Include progname.h.
71356         (main): Call set_program_name.
71357
71358         * modules/array-oset-tests (Depends-on): Add progname.
71359         * tests/test-array_oset.c: Include progname.h.
71360         (main): Call set_program_name.
71361
71362         * modules/array-list-tests (Depends-on): Add progname.
71363         * tests/test-array_list.c: Include progname.h.
71364         (main): Call set_program_name.
71365
71366         * modules/argp-tests (Depends-on): Add progname.
71367         * tests/test-argp.c: Include argp.h first. Include progname.h.
71368         (main): Call set_program_name.
71369
71370 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
71371
71372         * doc/gnulib-tool.texi (Initial import): Reword description of
71373         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
71374         limited effect even if defined after the first system include.
71375
71376 2007-03-01  Bruno Haible  <bruno@clisp.org>
71377
71378         * build-aux/config.libpath: Update to libtool-1.5.22.
71379         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71380
71381 2007-03-01  Bruno Haible  <bruno@clisp.org>
71382
71383         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
71384         foo_CFLAGS.
71385         Reported by Ralf Wildenhues.
71386
71387 2007-03-01  Bruno Haible  <bruno@clisp.org>
71388
71389         * build-aux/install-reloc: Remove object files left over by some
71390         compilers.
71391         Reported by Ralf Wildenhues.
71392
71393 2007-03-01  Bruno Haible  <bruno@clisp.org>
71394
71395         * build-aux/install-reloc: Break long lines.
71396
71397 2007-03-01  Bruno Haible  <bruno@clisp.org>
71398
71399         * doc/relocatable.texi: Document that it may not work on OpenBSD.
71400         Reported by Ralf Wildenhues.
71401
71402 2007-03-01  Bruno Haible  <bruno@clisp.org>
71403
71404         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
71405         include ordering constraints.
71406
71407 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71408
71409         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
71410         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
71411         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
71412         as another example.
71413         * lib/time_.h: Fix misspelling.
71414         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71415         Require gl_HEADER_TIME_H_DEFAULTS.
71416         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
71417         * m4/time_r.m4 (gl_TIME_R): Likewise.
71418         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
71419
71420 2007-03-01  Bruno Haible  <bruno@clisp.org>
71421
71422         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
71423         * m4/utimens.m4 (gl_UTIMENS): Likewise.
71424
71425 2007-03-01  Jim Meyering  <jim@meyering.net>
71426
71427         * modules/xreadlink (Maintainer): Add my name.
71428         * modules/xreadlink-with-size (Depends-on): Alphabetize.
71429
71430 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
71431             Bruno Haible  <bruno@clisp.org>
71432
71433         * build-aux/install-reloc: Compile also c-ctype.c.
71434         * build-aux/relocatable.sh.in: New file.
71435         * doc/relocatable.texi: New file.
71436         * doc/relocatable-maint.texi: New file.
71437         * doc/gnulib.texi: Include relocatable-maint.texi.
71438         * lib/progreloc.c: Include unistd.h unconditionally.
71439         * lib/relocwrapper.c: Include unistd.h unconditionally.
71440         Include c-ctype.h.
71441         (add_dotbin): Use c_tolower.
71442         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
71443         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
71444         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
71445         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
71446         to m4/relocatable-lib.m4.
71447         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
71448         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
71449         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
71450         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
71451         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
71452         * modules/relocatable: New file.
71453         * modules/relocatable-lib: New file.
71454         * modules/relocatable-script: New file.
71455
71456 2007-02-28  Bruno Haible  <bruno@clisp.org>
71457
71458         Import --enable-relocatable infrastructure.
71459         * build-aux/config.libpath: New file, from GNU gettext.
71460         * build-aux/install-reloc: New file, from GNU gettext.
71461         * build-aux/reloc-ldflags: New file, from GNU gettext.
71462         * lib/relocatable.h: New file, from GNU gettext.
71463         * lib/relocatable.c: New file, from GNU gettext.
71464         * lib/relocwrapper.c: New file, from GNU gettext.
71465         * m4/relocatable.m4: New file, from GNU gettext.
71466
71467 2007-02-28  Bruno Haible  <bruno@clisp.org>
71468
71469         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
71470
71471         * modules/xreadlink: New file, from GNU gettext with modifications.
71472         * lib/xreadlink.c: New file, from GNU gettext.
71473         * lib/xreadlink.h: Add comments.
71474         (xreadlink): New declaration.
71475
71476         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
71477         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
71478         lib/xreadlink-with-size.c.
71479         (configure.ac): Remove gl_XREADLINK invocation.
71480         (Makefile.am): Augment lib_SOURCES.
71481         * m4/xreadlink.m4: Remove file.
71482         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
71483         (xreadlink_with_size): Renamed from xreadink.
71484         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
71485         * modules/canonicalize (Depends-on): Replace xreadlink with
71486         xreadlink-with-size.
71487         * lib/canonicalize.c (canonicalize_filename_mode): Update.
71488
71489 2007-02-25  Jim Meyering  <jim@meyering.net>
71490
71491         * build-aux/announce-gen: When complaining about excess arguments,
71492         list them.
71493
71494 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71495
71496         * README: Document signed integer overflow situation more
71497         accurately.
71498
71499 2007-02-25  Bruno Haible  <bruno@clisp.org>
71500
71501         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
71502         'a' or 'A' conversion.
71503
71504 2007-02-25  Bruno Haible  <bruno@clisp.org>
71505
71506         * modules/filename: Renamed from modules/pathname.
71507         (Files): Replace lib/pathname.h with lib/filename.h. Replace
71508         lib/concatpath.c with lib/concat-filename.c.
71509         (Makefile.am): Update.
71510         (Include): Replace pathname.h with filename.h.
71511         * lib/filename.h: Renamed from lib/pathname.h.
71512         (concatenated_filename): Renamed from concatenated_pathname.
71513         * lib/concat-filename.c: Renamed from lib/concatpath.c.
71514         (concatenated_filename): Renamed from concatenated_pathname.
71515         * lib/findprog.c: Include filename.h instead of pathname.h.
71516         (find_in_path): Update.
71517         * lib/javacomp.c: Include filename.h instead of pathname.h.
71518         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
71519         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
71520         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
71521         is_oldgcj_14_13_usable, is_javac_usable): Update.
71522         * lib/javaexec.c: Include filename.h instead of pathname.h.
71523         (execute_java_class): Update.
71524         * modules/findprog: Update.
71525         * modules/javacomp: Update.
71526         * modules/javaexec: Update.
71527         * MODULES.html.sh (File system functions): Add 'filename', remove
71528         'pathname'.
71529
71530 2007-02-25  Bruno Haible  <bruno@clisp.org>
71531
71532         * modules/printf-frexpl-tests: New file.
71533         * tests/test-printf-frexpl.c: New file.
71534
71535         * modules/printf-frexpl: New file.
71536         * lib/printf-frexpl.h: New file.
71537         * lib/printf-frexpl.c: New file.
71538         * m4/printf-frexpl.m4: New file.
71539
71540 2007-02-25  Bruno Haible  <bruno@clisp.org>
71541
71542         * modules/printf-frexp-tests: New file.
71543         * tests/test-printf-frexp.c: New file.
71544
71545         * modules/printf-frexp: New file.
71546         * lib/printf-frexp.h: New file.
71547         * lib/printf-frexp.c: New file.
71548         * m4/printf-frexp.m4: New file.
71549
71550 2007-02-25  Bruno Haible  <bruno@clisp.org>
71551
71552         Assume automake >= 1.10 for the tests.
71553         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
71554         * modules/arctwo-tests: Likewise.
71555         * modules/argp-tests: Likewise.
71556         * modules/avltree-list-tests: Likewise.
71557         * modules/avltree-oset-tests: Likewise.
71558         * modules/avltreehash-list-tests: Likewise.
71559         * modules/carray-list-tests: Likewise.
71560         * modules/crc-tests: Likewise.
71561         * modules/des-tests: Likewise.
71562         * modules/gc-arcfour-tests: Likewise.
71563         * modules/gc-arctwo-tests: Likewise.
71564         * modules/gc-des-tests: Likewise.
71565         * modules/gc-hmac-md5-tests: Likewise.
71566         * modules/gc-hmac-sha1-tests: Likewise.
71567         * modules/gc-md2-tests: Likewise.
71568         * modules/gc-md4-tests: Likewise.
71569         * modules/gc-md5-tests: Likewise.
71570         * modules/gc-pbkdf2-sha1-tests: Likewise.
71571         * modules/gc-rijndael-tests: Likewise.
71572         * modules/gc-sha1-tests: Likewise.
71573         * modules/gc-tests: Likewise.
71574         * modules/getaddrinfo-tests: Likewise.
71575         * modules/hmac-md5-tests: Likewise.
71576         * modules/hmac-sha1-tests: Likewise.
71577         * modules/linked-list-tests: Likewise.
71578         * modules/linkedhash-list-tests: Likewise.
71579         * modules/lock-tests: Likewise.
71580         * modules/md2-tests: Likewise.
71581         * modules/md4-tests: Likewise.
71582         * modules/md5-tests: Likewise.
71583         * modules/rbtree-list-tests: Likewise.
71584         * modules/rbtree-oset-tests: Likewise.
71585         * modules/rbtreehash-list-tests: Likewise.
71586         * modules/read-file-tests: Likewise.
71587         * modules/rijndael-tests: Likewise.
71588         * modules/stdint-tests: Likewise.
71589         * modules/tls-tests: Likewise.
71590
71591 2007-02-24  Bruno Haible  <bruno@clisp.org>
71592
71593         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
71594         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
71595         function; instead check whether isnan with a double argument links.
71596         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
71597         function; instead check whether isnan with a 'long double' argument
71598         links.
71599         Reported by Eric Blake <ebb9@byu.net>.
71600
71601 2007-02-24  Bruno Haible  <bruno@clisp.org>
71602
71603         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
71604         defined.
71605         * lib/isnanl.c: Remove all code. Just include isnan.c.
71606         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
71607
71608 2007-02-25  Jim Meyering  <jim@meyering.net>
71609
71610         Avoid conflicting types for 'unsetenv' on FreeBSD.
71611         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
71612         conflicting with FreeBSD's (5.0 and 6.1) function declaration
71613         in stdlib.h.
71614
71615 2007-02-24  Bruno Haible  <bruno@clisp.org>
71616
71617         * modules/isnanl-nolibm-tests: New file.
71618         * tests/test-isnanl.c: New file.
71619
71620         * modules/isnanl-nolibm: New file.
71621         * lib/isnanl.h: New file.
71622         * lib/isnanl.c: New file.
71623         * m4/isnanl.m4: New file.
71624
71625 2007-02-24  Bruno Haible  <bruno@clisp.org>
71626
71627         * modules/isnan-nolibm-tests: New file.
71628         * tests/test-isnan.c: New file.
71629
71630         * modules/isnan-nolibm: New file.
71631         * lib/isnan.h: New file.
71632         * lib/isnan.c: New file.
71633         * m4/isnan.m4: New file.
71634
71635 2007-02-24  Bruno Haible  <bruno@clisp.org>
71636
71637         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
71638         assume that an exponent fits in 20 bits.
71639
71640 2007-02-24  Jim Meyering  <jim@meyering.net>
71641
71642         * m4/regex.m4: Update the description of the configure-time option,
71643         --without-included-regex, to state accurately what the defaults are,
71644         and perhaps to give people an idea why using this option is risky.
71645
71646 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71647
71648         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
71649         loops on small arguments.  This attempts to avoid the problem
71650         Bruno Haible reported for AIX 4.3.2 in
71651         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
71652
71653 2007-02-23  Bruno Haible  <bruno@clisp.org>
71654
71655         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
71656         Needed for help2man.
71657
71658 2007-02-23  Karl Berry  <karl@gnu.org>
71659
71660         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
71661         exists, foo.h should be cvs-ignored, not committed.
71662
71663 2007-02-23  Eric Blake  <ebb9@byu.net>
71664
71665         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
71666         * lib/stat-time.h (includes): Likewise.
71667         * lib/utimecmp.c (includes): Likewise.
71668         * lib/utimens.h (includes): Likewise.
71669         * lib/getdate.y (includes): Also include "timespec.h" for use
71670         internal to the module.
71671         * modules/utimens (Depends-on): Revert yesterday's patch.
71672         * modules/nanosleep (Depends-on): Add missing dependency.
71673
71674 2007-02-22  Bruno Haible  <bruno@clisp.org>
71675
71676         * lib/glob.c: Don't include getlogin_r.h.
71677
71678 2007-02-22  Jim Meyering  <jim@meyering.net>
71679
71680         * modules/utimens (Depends-on): Add timespec, required for
71681         utimens.h's inclusion of timespec.h.
71682
71683 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
71684
71685         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
71686         long unreadable paths in GNU/Linux.  Problem reported by Andreas
71687         Schwab in
71688         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
71689         I'll try to think of a better way to fix the Solaris problem.
71690
71691         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
71692         like glibc; on Solaris 10, it fails with errno == EINVAL.
71693         POSIX says the behavior is unspecified if the first argument is NULL,
71694         so play it safe and never pass NULL to the system getcwd.
71695
71696 2007-02-21  Jim Meyering  <jim@meyering.net>
71697
71698         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
71699         of gettimeofday.  It would conflict with the one now always
71700         provided via sys_time_.h.  Reported by Matthew Woehlke, as
71701         an IRIX 6.5 build failure.
71702
71703 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71704
71705         Minor fixups to port to Solaris 10 with Sun C 5.8.
71706         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
71707         * modules/getcwd (Depends-on): Add dirfd.
71708         * lib/putenv.c (putenv): #undef it.
71709         (rpl_putenv): New decl.
71710         (malloc, free): Include <stdlib.h> rather than prototyping separately.
71711
71712 2007-02-20  Bruno Haible  <bruno@clisp.org>
71713
71714         * modules/stdio-tests: New file.
71715         * tests/test-stdio.c: New file.
71716
71717         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
71718         (Depends-on): Add stdio.
71719         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71720         (Include): Use <stdio.h> instead of vsnprintf.h.
71721         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71722         HAVE_DECL_VSNPRINTF.
71723         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
71724
71725         * modules/snprintf (Files): Remove lib/snprintf.h.
71726         (Depends-on): Add stdio.
71727         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71728         (Include): Use <stdio.h> instead of snprintf.h.
71729         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71730         HAVE_DECL_SNPRINTF.
71731         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
71732         * lib/getaddrinfo.c: Likewise.
71733
71734         * modules/stdio: New file.
71735         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
71736         * lib/snprintf.h: Remove file.
71737         * lib/vsnprintf.h: Remove file.
71738         * lib/.cppi-disable: Remove snprintf.h.
71739         * m4/stdio_h.m4: New file.
71740         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
71741
71742 2007-02-20  Jim Meyering  <jim@meyering.net>
71743
71744         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
71745         used by e.g., mingw.  From Bruno Haible.
71746
71747 2007-02-19  Bruno Haible  <bruno@clisp.org>
71748
71749         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
71750         warnings.
71751         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71752
71753 2007-02-19  Bruno Haible  <bruno@clisp.org>
71754
71755         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
71756         from mingw users.
71757
71758 2007-02-19  Bruno Haible  <bruno@clisp.org>
71759
71760         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
71761         warnings.
71762         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
71763
71764 2007-02-19  Jim Meyering  <jim@meyering.net>
71765
71766         Don't use FD after a successful "fdopendir (fd)".
71767         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
71768         Reset it by calling dirfd on the just-obtained DIR*.
71769
71770         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
71771         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
71772
71773 2007-02-18  Bruno Haible  <bruno@clisp.org>
71774
71775         * lib/readlink.c: Include <unistd.h>.
71776         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
71777         HAVE_READLINK.
71778         * modules/readlink (Depends-on): Add unistd.
71779         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71780         (Include): Add <unistd.h>.
71781
71782         * lib/getlogin_r.h: Remove file.
71783         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
71784         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
71785         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
71786         HAVE_DECL_GETLOGIN_R.
71787         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
71788         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71789         (Include): Use <unistd.h> instead of getlogin_r.h.
71790
71791         * lib/getcwd.h: Remove file.
71792         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
71793         * lib/xgetcwd.c: Likewise.
71794         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
71795         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
71796         * modules/getcwd (Files): Remove lib/getcwd.h.
71797         (Depends-on): Add unistd.
71798         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71799         (Include): Use <unistd.h> instad of getcwd.h.
71800
71801         * lib/ftruncate.c: Include <unistd.h> first.
71802         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
71803         Set HAVE_FTRUNCATE.
71804         * modules/ftruncate (Depends-on): Add unistd.
71805         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71806
71807         * lib/fchdir.c: Include <unistd.h> first.
71808         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
71809         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
71810         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
71811         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71812         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
71813
71814         * lib/dup2.c: Include <unistd.h> first.
71815         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
71816         HAVE_DUP2.
71817         * modules/dup2 (Depends-on): Add unistd.
71818         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71819
71820         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
71821         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
71822         REPLACE_CHOWN. Don't define chown as a macro here.
71823         * modules/chown (Depends-on): Add unistd.
71824         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71825
71826         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
71827         Add definition for GL_LINK_WARNING.
71828         (chown, dup2): New declarations.
71829         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
71830         link warning.
71831         (ftruncate): New declaration.
71832         (getcwd): New declaration, taken from old getcwd.h.
71833         (getlogin_r): New declaration, taken from old getlogin_r.h.
71834         (readlink): New declaration.
71835         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
71836         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
71837         (gl_PREREQ_UNISTD): Remove macro.
71838         (gl_UNISTD_MODULE_INDICATOR): New macro.
71839         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
71840         many new variables. Don't set UNISTD_H.
71841         * modules/unistd (Description): Change.
71842         (Depends-on): Add link-warning.
71843         (configure.ac): Update.
71844         (Makefile.am): Create unistd.h always. Substitute many new variables
71845         into it.
71846
71847 2007-02-18  Bruno Haible  <bruno@clisp.org>
71848
71849         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
71850         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
71851         HAVE_GETSUBOPT.
71852         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
71853         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
71854         * lib/getsubopt.h: Remove file.
71855         * modules/getsubopt (Files): Remove lib/getsubopt.h.
71856         (Depends-on): Add stdlib.
71857         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71858         (Includes): Use <stdlib.h> instead of getsubopt.h.
71859         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
71860         Set HAVE_GETSUBOPT.
71861         * lib/getsubopt.c: Don't include getsubopt.h.
71862
71863 2007-02-18  Bruno Haible  <bruno@clisp.org>
71864
71865         * modules/fchdir (Depends-on): Add dup2.
71866
71867 2007-02-18  Bruno Haible  <bruno@clisp.org>
71868
71869         * lib/stdlib_.h: Handle glibc's special invocation convention
71870         specially.
71871
71872 2007-02-18  Bruno Haible  <bruno@clisp.org>
71873
71874         * modules/stdlib-tests: New file.
71875         * tests/test-stdlib.c: New file.
71876
71877         * modules/mkstemp (Files): Remove lib/mkstemp.h.
71878         (Depends-on): Add stdlib.
71879         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71880         (Includes): Use <stdlib.h> instead of mkstemp.h.
71881         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71882         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
71883         * lib/mkstemp.c: Don't include mkstemp.h.
71884         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
71885         * lib/stdlib--.h: Don't include mkstemp.h.
71886
71887         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
71888         (Depends-on): Add stdlib.
71889         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71890         (Includes): Use <stdlib.h> instead of mkdtemp.h.
71891         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71892         HAVE_MKDTEMP.
71893         * lib/mkdtemp.c: Don't include mkdtemp.h.
71894         * lib/clean-temp.c: Don't include mkdtemp.h.
71895
71896         * modules/exit (Files): Remove lib/exit.h.
71897         (Depends-on): Add stdlib.
71898         (Makefile.am): Remove lib_SOURCES.
71899         (Include): Use <stdlib.h> instead of exit.h.
71900         * lib/argmatch.c: Don't include exit.h.
71901         * lib/execute.c: Likewise.
71902         * lib/pagealign_alloc.c: Likewise.
71903         * lib/pipe.c: Likewise.
71904         * lib/wait-process.c: Likewise.
71905         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
71906         * lib/exitfail.c: Likewise.
71907         * lib/savewd.c: Likewise.
71908         * lib/xsetenv.c: Likewise.
71909
71910         * modules/stdlib: New file.
71911         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
71912         and extra comments about mkstemp().
71913         * lib/exit.h: Remove file.
71914         * lib/mkdtemp.h: Remove file.
71915         * lib/mkstemp.h: Remove file.
71916         * m4/stdlib_h.m4: New file.
71917         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
71918
71919 2007-02-18  Bruno Haible  <bruno@clisp.org>
71920
71921         * modules/math-tests: New file.
71922         * tests/test-math.c: New file.
71923
71924         * modules/math: New file.
71925         * modules/mathl (Files): Remove lib/mathl.h.
71926         (Depends-on): Add math.
71927         (Makefile.am): Don't mention mathl.h.
71928         (Include): Use <math.h> instead of mathl.h.
71929         * lib/math_.h: New file.
71930         * lib/mathl.h: Remove file.
71931         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
71932         mathl.h.
71933         * lib/asinl.c: Likewise.
71934         * lib/atanl.c: Likewise.
71935         * lib/ceill.c: Likewise.
71936         * lib/cosl.c: Likewise.
71937         * lib/expl.c: Likewise.
71938         * lib/floorl.c: Likewise.
71939         * lib/frexpl.c: Likewise.
71940         * lib/ldexpl.c: Likewise.
71941         * lib/logl.c: Likewise.
71942         * lib/sincosl.c: Likewise.
71943         * lib/sinl.c: Likewise.
71944         * lib/sqrtl.c: Likewise.
71945         * lib/tanl.c: Likewise.
71946         * lib/trigl.c: Likewise.
71947         * m4/math_h.m4: New file.
71948         * MODULES.html.sh (Mathematics): Add math.
71949
71950 2007-02-17  Bruno Haible  <bruno@clisp.org>
71951
71952         * modules/wctype-tests: New file.
71953         * tests/test-wctype.c: New file.
71954
71955         * modules/wchar-tests: New file.
71956         * tests/test-wchar.c: New file.
71957
71958         * modules/unistd-tests: New file.
71959         * tests/test-unistd.c: New file.
71960
71961         * modules/time-tests: New file.
71962         * tests/test-time.c: New file.
71963
71964         * modules/sysexits-tests: New file.
71965         * tests/test-sysexits.c: New file.
71966
71967         * modules/sys_time-tests: New file.
71968         * tests/test-sys_time.c: New file.
71969
71970         * modules/sys_stat-tests: New file.
71971         * tests/test-sys_stat.c: New file.
71972
71973         * modules/sys_socket-tests: New file.
71974         * tests/test-sys_socket.c: New file.
71975
71976         * modules/sys_select-tests: New file.
71977         * tests/test-sys_select.c: New file.
71978
71979         * modules/string-tests: New file.
71980         * tests/test-string.c: New file.
71981
71982         * modules/stdbool-tests: New file.
71983         * tests/test-stdbool.c: New file.
71984
71985         * modules/netinet_in-tests: New file.
71986         * tests/test-netinet_in.c: New file.
71987
71988         * modules/inttypes-tests: New file.
71989         * tests/test-inttypes.c: New file.
71990
71991         * modules/fcntl-tests: New file.
71992         * tests/test-fcntl.c: New file.
71993
71994         * modules/byteswap-tests: New file.
71995         * tests/test-byteswap.c: New file.
71996
71997         * modules/arpa_inet-tests: New file.
71998         * tests/test-arpa_inet.c: New file.
71999
72000 2007-02-17  Bruno Haible  <bruno@clisp.org>
72001
72002         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
72003         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
72004         if the corresponding module is not enabled. Emit link warnings if
72005         the function is used nevertheless.
72006         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
72007         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
72008         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
72009         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
72010         * modules/inttypes (Depends-on): Add link-warning.
72011         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72012         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
72013         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
72014         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
72015         * modules/imaxdiv (configure.ac): Likewise.
72016         * modules/strtoimax (configure.ac): Likewise.
72017         * modules/strtoumax (configure.ac): Likewise.
72018
72019 2007-02-17  Bruno Haible  <bruno@clisp.org>
72020
72021         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
72022         gl_STRING_MODULE_INDICATOR_DEFAULTS.
72023         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
72024         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
72025
72026 2007-02-17  Bruno Haible  <bruno@clisp.org>
72027
72028         * modules/link-warning: New file.
72029         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
72030         * lib/string_.h (GL_LINK_WARNING): Remove definition.
72031         * modules/string (Depends-on): Add link-warning.
72032         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72033         string.h.
72034         * MODULES.html.sh (Support for building libraries and executables): Add
72035         link-warning.
72036
72037 2007-02-17  Bruno Haible  <bruno@clisp.org>
72038
72039         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
72040         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
72041         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
72042         long lines.
72043
72044 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
72045             Bruno Haible  <bruno@clisp.org>
72046
72047         * modules/tmpfile: New file.
72048         * lib/tmpfile.c: New file.
72049         * m4/tmpfile.m4: New file.
72050         * MODULES.html.sh (func_all_modules): New section "Input/output".
72051
72052 2007-02-15  Bruno Haible  <bruno@clisp.org>
72053
72054         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
72055         (supports_delete_on_close): New function.
72056         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
72057
72058 2007-02-14  Bruno Haible  <bruno@clisp.org>
72059
72060         * modules/mbspcasecmp-tests: New file.
72061         * tests/test-mbspcasecmp.sh: New file.
72062         * tests/test-mbspcasecmp.c: New file.
72063
72064         New module mbspcasecmp.
72065         * modules/mbspcasecmp: New file.
72066         * lib/mbspcasecmp.c: New file.
72067         * lib/string_.h (strncasecmp): Change warning message.
72068         (mbspcasecmp): New declaration.
72069         * m4/mbspcasecmp.m4: New file.
72070         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72071         GNULIB_MBSPCASECMP.
72072         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
72073         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
72074
72075 2007-02-14  Bruno Haible  <bruno@clisp.org>
72076
72077         * modules/mbsncasecmp-tests: New file.
72078         * tests/test-mbsncasecmp.sh: New file.
72079         * tests/test-mbsncasecmp.c: New file.
72080
72081         New module mbsncasecmp.
72082         * modules/mbsncasecmp: New file.
72083         * lib/mbsncasecmp.c: New file.
72084         * lib/string_.h (mbsncasecmp): New declaration.
72085         * m4/mbsncasecmp.m4: New file.
72086         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72087         GNULIB_MBSNCASECMP.
72088         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
72089         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
72090
72091 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72092
72093         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
72094         Verify that it doesn't overlap with our flags.
72095         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
72096         do not have the desired effect in multibyte locales; instead, use
72097         mbscasecmp.
72098         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
72099         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
72100         we don't require GNU fnmatch ourselves (if our users require it, they
72101         should do so explicitly).
72102
72103         Fix regex code so it doesn't rely on strcasecmp.
72104         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
72105         Otherwise, include gnulib's langinfo.h.
72106         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
72107         undesirable behavior in non-C locales.  Instead, rely on localecharset.
72108         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
72109         * modules/regex (FILES): Remove m4/codeset.m4.
72110         (Depends-on): Add localcharset.  Remove strcase.
72111
72112 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72113
72114         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
72115         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
72116
72117 2007-02-13  Bruno Haible  <bruno@clisp.org>
72118
72119         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
72120         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72121
72122 2007-02-12  Bruno Haible  <bruno@clisp.org>
72123
72124         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72125         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
72126         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
72127         time warning rather than a link error.
72128
72129 2007-02-12  Bruno Haible  <bruno@clisp.org>
72130
72131         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
72132         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
72133         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72134
72135 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72136
72137         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
72138         args, not 2.
72139
72140 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72141
72142         New module 'time', so that apps can include <time.h> as per
72143         POSIX and GNU instead of separate include files like time_r.h
72144         and timegm.h.  This implementation tries out a simpler approach
72145         for replacing decls in standard include files (as compared to
72146         the string module), somewhat as an experiment.
72147
72148         * config/srclist.txt: Comment out mktime.c for now.
72149         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
72150         since it doesn't apply any more.  Use generic wording instead.
72151         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
72152         'time'.
72153         * lib/time_.h, m4/time_h.m4, modules/time: New files.
72154         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
72155         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
72156         Don't include <sys/types.h>; no longer needed since we assume C89.
72157         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
72158         * lib/strftime.c: Likewise.
72159         * lib/time_r.c: Likewise.
72160         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
72161         * lib/nanosleep.c: Include <time.h> first, to check interface.
72162         * lib/strptime.c: Likewise.
72163         * lib/time_r.c: Likewise.
72164         * lib/timegm.c: Likewise.
72165         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
72166         needed.
72167         * lib/timegm.c: Don't include timegm.h; no longer needed.
72168         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
72169         time.h now handles any problems in that area.
72170         (struct timespec, nanosleep): Remove; time.h now arranges for these.
72171         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
72172         that time.h defines struct timespec.
72173         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
72174         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
72175         handles that.
72176         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
72177         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
72178         needed.  Set REPLACE_LOCALTIME.
72179         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
72180         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
72181         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
72182         nanosleep; time_h.m4 now does that.  Don't require
72183         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
72184         module handles this now.
72185         * modules/getdate (Depends-on): Remove timespec.  Add time.
72186         * modules/nanosleep (Depends-on): Likewise.
72187         * modules/stat-time (Depends-on): Likewise.
72188         * modules/nanosleep (Include): Include time.h, not timespec.h.
72189         * modules/strptime (Files): Remove lib/strptime.h.
72190         (Depends-on): Add extensions, time.
72191         (Include): Include time.h, not strptime.h.
72192         * modules/time_r (Files): Remove lib/time_r.h.
72193         (Depends-on): Add time.
72194         (Include): Include time.h, not time_r.h.
72195         * modules/timegm: Likewise.
72196         * modules/timespec (Description): Now does timespec-related decls
72197         of our own, instead of struct timespec itself.
72198         (Depends-on): Add time; remove extensions.
72199         (Maintainer): Add self.
72200         * modules/utimecmp (Depends-on): Add time; remove timespec.
72201         * modules/utimens (Depends-on): Likewise.
72202         * modules/xnanosleep (Depends-on): Likewise.
72203
72204 2007-02-11  Bruno Haible  <bruno@clisp.org>
72205
72206         * lib/c-strstr.c: Include allocsa.h.
72207         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72208         * lib/c-strcasestr.c: Include allocsa.h.
72209         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72210         * lib/strcasestr.c: Include allocsa.h.
72211         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72212         * lib/mbsstr.c: Include allocsa.h.
72213         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72214         allocsa/freesa instead of malloc/free.
72215         * lib/mbscasestr.c: Include allocsa.h.
72216         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72217         allocsa/freesa instead of malloc/free.
72218         * modules/c-strstr (Depends-on): Add allocsa.
72219         * modules/c-strcasestr (Depends-on): Likewise.
72220         * modules/strcasestr (Depends-on): Likewise.
72221         * modules/mbsstr (Depends-on): Likewise.
72222         * modules/mbscasestr (Depends-on): Likewise.
72223
72224 2007-02-11  Bruno Haible  <bruno@clisp.org>
72225
72226         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
72227
72228         * modules/mbsspn-tests: New file.
72229         * tests/test-mbsspn.sh: New file.
72230         * tests/test-mbsspn.c: New file.
72231
72232 2007-02-11  Bruno Haible  <bruno@clisp.org>
72233
72234         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
72235
72236         * modules/mbspbrk-tests: New file.
72237         * tests/test-mbspbrk.sh: New file.
72238         * tests/test-mbspbrk.c: New file.
72239
72240 2007-02-11  Bruno Haible  <bruno@clisp.org>
72241
72242         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
72243         unneeded cast.
72244
72245         * modules/mbscspn-tests: New file.
72246         * tests/test-mbscspn.sh: New file.
72247         * tests/test-mbscspn.c: New file.
72248
72249 2007-02-11  Bruno Haible  <bruno@clisp.org>
72250
72251         * modules/mbscasecmp-tests: New file.
72252         * tests/test-mbscasecmp.sh: New file.
72253         * tests/test-mbscasecmp.c: New file.
72254
72255 2007-02-11  Bruno Haible  <bruno@clisp.org>
72256
72257         Ensure O(n) worst-case complexity of mbscasestr.
72258         * lib/mbscasestr.c: Include stdbool.h.
72259         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72260         functions.
72261         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
72262         the bookkeeping indicates that it's worth it.
72263         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
72264
72265         * modules/mbscasestr-tests: New file.
72266         * tests/test-mbscasestr1.c: New file.
72267         * tests/test-mbscasestr2.sh: New file.
72268         * tests/test-mbscasestr2.c: New file.
72269         * tests/test-mbscasestr3.sh: New file.
72270         * tests/test-mbscasestr3.c: New file.
72271         * tests/test-mbscasestr4.sh: New file.
72272         * tests/test-mbscasestr4.c: New file.
72273         * m4/locale-tr.m4: New file.
72274
72275 2007-02-11  Bruno Haible  <bruno@clisp.org>
72276
72277         Ensure O(n) worst-case complexity of mbsstr.
72278         * lib/mbsstr.c: Include stdbool.h.
72279         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72280         functions.
72281         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
72282         bookkeeping indicates that it's worth it.
72283         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
72284
72285         * modules/mbsstr-tests: New file.
72286         * tests/test-mbsstr1.c: New file.
72287         * tests/test-mbsstr2.sh: New file.
72288         * tests/test-mbsstr2.c: New file.
72289         * tests/test-mbsstr3.sh: New file.
72290         * tests/test-mbsstr3.c: New file.
72291         * m4/locale-fr.m4: New file.
72292
72293 2007-02-11  Bruno Haible  <bruno@clisp.org>
72294
72295         * lib/mbsrchr.c (mbsrchr): Fix bug.
72296
72297         * modules/mbsrchr-tests: New file.
72298         * tests/test-mbsrchr.sh: New file.
72299         * tests/test-mbsrchr.c: New file.
72300
72301 2007-02-11  Bruno Haible  <bruno@clisp.org>
72302
72303         * lib/mbschr.c (mbschr): Fix bug.
72304
72305         * modules/mbschr-tests: New file.
72306         * tests/test-mbschr.sh: New file.
72307         * tests/test-mbschr.c: New file.
72308         * m4/locale-zh.m4: New file.
72309
72310 2007-02-11  Bruno Haible  <bruno@clisp.org>
72311
72312         Support for copying multibyte string iterators.
72313         * lib/mbiter.h: Include <string.h>.
72314         (mbiter_multi_copy): New function.
72315         (mbi_copy): New macro.
72316         * lib/mbuiter.h: Include <string.h>.
72317         (mbuiter_multi_copy): New function.
72318         (mbui_copy): New macro.
72319
72320 2007-02-11  Bruno Haible  <bruno@clisp.org>
72321
72322         New module mbslen.
72323         * modules/mbslen: New file.
72324         * lib/mbslen.c: New file.
72325         * lib/string_.h (mbslen): New declaration.
72326         * m4/mbslen.m4: New file.
72327         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72328         GNULIB_MBSLEN.
72329         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
72330         * MODULES.html.sh (Internationalization functions): Add mbslen.
72331
72332 2007-02-11  Bruno Haible  <bruno@clisp.org>
72333
72334         Ensure O(n) worst-case complexity of strcasestr substitute.
72335         * lib/strcasestr.c: Include stdbool.h.
72336         (knuth_morris_pratt): New function.
72337         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72338         bookkeeping indicates that it's worth it.
72339         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
72340
72341         * modules/strcasestr-tests: New file.
72342         * tests/test-strcasestr.c: New file.
72343
72344 2007-02-11  Bruno Haible  <bruno@clisp.org>
72345
72346         Ensure O(n) worst-case complexity of c_strcasestr.
72347         * lib/c-strcasestr.c: Include stdbool.h, string.h.
72348         (knuth_morris_pratt): New function.
72349         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
72350         the bookkeeping indicates that it's worth it.
72351         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
72352
72353         * modules/c-strcasestr-tests: New file.
72354         * tests/test-c-strcasestr.c: New file.
72355
72356 2007-02-11  Bruno Haible  <bruno@clisp.org>
72357
72358         Ensure O(n) worst-case complexity of c_strstr.
72359         * lib/c-strstr.c: Include stdbool.h, string.h.
72360         (knuth_morris_pratt): New function.
72361         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72362         bookkeeping indicates that it's worth it.
72363         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
72364
72365         * lib/c-strstr.c: Complete rewrite for maintainability.
72366
72367         * modules/c-strstr-tests: New file.
72368         * tests/test-c-strstr.c: New file.
72369
72370 2007-02-11  Bruno Haible  <bruno@clisp.org>
72371
72372         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
72373         5.2.1 and earlier, whereby \055 was treated just like the range
72374         delimiter '-'.
72375         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
72376
72377 2007-02-08  Bruno Haible  <bruno@clisp.org>
72378
72379         * modules/regex (Depends-on): Add stdbool.
72380         Reported by Dalibor Topic <robilad@kaffe.org>.
72381
72382 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72383
72384         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
72385         Prefer returning from main to exiting from it.
72386         Remove unnecessary parens after sizeof.
72387
72388 2007-02-05  Bruno Haible  <bruno@clisp.org>
72389
72390         New module mbssep.
72391         * modules/mbssep: New file.
72392         * lib/mbssep.c: New file.
72393         * lib/string_.h (strsep): Add a conditional link warning.
72394         (mbssep): New declaration.
72395         * m4/mbssep.m4: New file.
72396         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72397         GNULIB_MBSSEP.
72398         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
72399         * MODULES.html.sh (Internationalization functions): Add mbssep.
72400
72401 2007-02-05  Bruno Haible  <bruno@clisp.org>
72402
72403         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
72404         Optimize search in case of 1 delimiter.
72405
72406 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72407
72408         * lib/acl.h: Include sys/types.h before sys/acl.h.
72409
72410 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72411
72412         Merge upstream fix for glibc bugzilla #3957:
72413
72414         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
72415
72416         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
72417         bit for RE_HAT_LISTS_NOT_NEWLINE.
72418         (build_charclass_op): Remove bogus comment.
72419
72420 2007-02-05  Simon Josefsson  <simon@josefsson.org>
72421
72422         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
72423
72424 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72425
72426         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
72427         * lib/memmem.c [!defined _LIBC]: Include config.h.
72428
72429 2007-02-04  Bruno Haible  <bruno@clisp.org>
72430
72431         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
72432         warning message.
72433
72434 2007-02-04  Bruno Haible  <bruno@clisp.org>
72435
72436         New module mbstok_r.
72437         * modules/mbstok_r: New file.
72438         * lib/mbstok_r.c: New file.
72439         * lib/string_.h (strtok_r): Change argument names to match the
72440         comments. Add a conditional link warning.
72441         (mbstok_r): New declaration.
72442         * m4/mbstok_r.m4: New file.
72443         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72444         GNULIB_MBSTOK_R.
72445         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
72446         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
72447
72448 2007-02-04  Bruno Haible  <bruno@clisp.org>
72449
72450         New module mbsspn.
72451         * modules/mbsspn: New file.
72452         * lib/mbsspn.c: New file.
72453         * lib/string_.h (strspn): Add a conditional link warning.
72454         (mbsspn): New declaration.
72455         * m4/mbsspn.m4: New file.
72456         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72457         GNULIB_MBSSPN.
72458         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
72459         * MODULES.html.sh (Internationalization functions): Add mbsspn.
72460
72461 2007-02-04  Bruno Haible  <bruno@clisp.org>
72462
72463         New module mbspbrk.
72464         * modules/mbspbrk: New file.
72465         * lib/mbspbrk.c: New file.
72466         * lib/string_.h (strpbrk): Add a conditional link warning.
72467         (mbspbrk): New declaration.
72468         * m4/mbspbrk.m4: New file.
72469         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72470         GNULIB_MBSPBRK.
72471         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
72472         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
72473
72474 2007-02-04  Bruno Haible  <bruno@clisp.org>
72475
72476         New module mbscspn.
72477         * modules/mbscspn: New file.
72478         * lib/mbscspn.c: New file.
72479         * lib/string_.h (strcspn): Add a conditional link warning.
72480         (mbscspn): New declaration.
72481         * m4/mbscspn.m4: New file.
72482         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72483         GNULIB_MBSCSPN.
72484         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
72485         * MODULES.html.sh (Internationalization functions): Add mbscspn.
72486
72487 2007-02-04  Bruno Haible  <bruno@clisp.org>
72488
72489         New module mbscasestr, reduced goal of strcasestr.
72490         * modules/mbscasestr: New file.
72491         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
72492         (mbscasestr): Renamed from strcasestr.
72493         * lib/strcasestr.c: Don't include mbuiter.h.
72494         (strcasestr): Remove support for multibyte locales.
72495         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
72496         Change the conditional link warning.
72497         (mbscasestr): New declaration.
72498         * m4/mbscasestr.m4: New file.
72499         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
72500         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
72501         REPLACE_STRCASESTR.
72502         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
72503         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72504         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72505         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
72506         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
72507         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72508         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
72509         (Depends-on): Remove mbuiter.
72510         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
72511
72512 2007-02-04  Bruno Haible  <bruno@clisp.org>
72513
72514         Simplify handling of strncasecmp.
72515         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
72516         the conditional link warning.
72517         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72518         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
72519         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
72520         * modules/strcase (configure.ac): Don't invoke
72521         gl_STRING_MODULE_INDICATOR.
72522         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
72523
72524 2007-02-04  Bruno Haible  <bruno@clisp.org>
72525
72526         New module mbscasecmp, reduced goal of strcasecmp.
72527         * modules/mbscasecmp: New file.
72528         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
72529         (mbscasecmp): Renamed from strcasecmp.
72530         * lib/strcasecmp.c: Don't include mbuiter.h.
72531         (strcasecmp): Remove support for multibyte locales.
72532         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
72533         Change the conditional link warning.
72534         (mbscasecmp): New declaration.
72535         * m4/mbscasecmp.m4: New file.
72536         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
72537         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
72538         REPLACE_STRCASECMP.
72539         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
72540         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72541         GNULIB_MBSCASECMP.
72542         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
72543         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
72544         * modules/strcase (Files): Remove m4/mbrtowc.m4.
72545         (Depends-on): Remove mbuiter.
72546         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
72547
72548 2007-02-04  Bruno Haible  <bruno@clisp.org>
72549
72550         New module mbsstr. Remove module strstr.
72551         * modules/mbsstr: New file.
72552         * modules/strstr: Remove file.
72553         * lib/mbsstr.c: Renamed from lib/strstr.c.
72554         (mbsstr): Renamed from strstr.
72555         * lib/string_.h (strstr): Remove declaration. Change the conditional
72556         link warning.
72557         (mbsstr): New declaration.
72558         * m4/mbsstr.m4: New file.
72559         * m4/strstr.m4: Remove file.
72560         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
72561         REPLACE_STRSTR.
72562         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
72563         Don't initialize GNULIB_STRSTR.
72564         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
72565         substitute GNULIB_STRSTR and REPLACE_STRSTR.
72566         * MODULES.html.sh (Internationalization functions): Add mbsstr.
72567         (Support for systems lacking ANSI C 89): Remove strstr.
72568
72569 2007-02-04  Bruno Haible  <bruno@clisp.org>
72570
72571         New module mbsrchr.
72572         * modules/mbsrchr: New file.
72573         * lib/mbsrchr.c: New file.
72574         * lib/string_.h (strrchr): Add a conditional link warning.
72575         (mbsrchr): New declaration.
72576         * m4/mbsrchr.m4: New file.
72577         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72578         GNULIB_MBSRCHR.
72579         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
72580         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
72581
72582 2007-02-04  Bruno Haible  <bruno@clisp.org>
72583
72584         New module mbschr.
72585         * modules/mbschr: New file.
72586         * lib/mbschr.c: New file.
72587         * lib/string_.h (strchr): Add a conditional link warning.
72588         (mbschr): New declaration.
72589         * m4/mbschr.m4: New file.
72590         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72591         GNULIB_MBSCHR.
72592         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
72593         * MODULES.html.sh (Internationalization functions): Add mbschr.
72594
72595 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72596
72597         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
72598
72599         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
72600
72601 2007-02-04  Bruno Haible  <bruno@clisp.org>
72602
72603         New module description section 'configure.ac-early'.
72604         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
72605         (func_get_autoconf_early_snippet): New function.
72606         (func_import, func_create_testdir): Use it. Remove special cases for
72607         modules 'extensions' and 'lock'.
72608         * modules/extensions (configure.ac-early): Require
72609         gl_USE_SYSTEM_EXTENSIONS.
72610         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
72611
72612 2007-02-04  Bruno Haible  <bruno@clisp.org>
72613
72614         Make use of gcj-4.3's -fsource and -ftarget option.
72615         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
72616         and if so try the options -fsource and -ftarget.
72617         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
72618         source_version, ftarget_option, target_version arguments.
72619         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
72620         (is_envjavac_oldgcj_14_14_usable): Renamed from
72621         is_envjavac_gcj_14_14_usable.
72622         (is_envjavac_oldgcj_14_13_usable): Renamed from
72623         is_envjavac_gcj_14_13_usable.
72624         (is_gcj_present): Update.
72625         (is_gcj_43, is_gcj43_usable): New functions.
72626         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
72627         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
72628         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
72629         try the options -fsource and -ftarget.
72630
72631 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72632
72633         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
72634         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
72635         larger value.
72636
72637 2007-02-03  Jim Meyering  <jim@meyering.net>
72638
72639         Give tools a better chance to allocate space for very large buffers.
72640         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
72641
72642         Make pwd and readlink work also when run with an unreadable parent dir
72643         on systems with openat support.
72644         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
72645         provided getcwd function, even when we have openat support.
72646         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
72647
72648 2007-02-02  Bruno Haible  <bruno@clisp.org>
72649
72650         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72651         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
72652         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
72653         portability problems if one of these functions is only used on specific
72654         platforms.
72655         Reported by Paul Eggert.
72656
72657 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
72658
72659         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
72660         is causing more trouble than it's curing.
72661         * lib/regex_internal.h (__mempcpy): Remove.
72662         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
72663         (and make the code a tad smaller to boot).
72664         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
72665
72666 2007-02-02  Jim Meyering  <jim@meyering.net>
72667
72668         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
72669         section, not in the Makefile.am: one.
72670
72671 2007-02-02  Eric Blake  <ebb9@byu.net>
72672
72673         * lib/strchrnul.c: Always include config.h first.
72674
72675         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
72676         gnulib strstr is not necessary here.
72677
72678 2007-02-02  Simon Josefsson  <simon@josefsson.org>
72679
72680         * m4/socklen.m4: Fix typo.
72681
72682 2007-02-02  Eric Blake  <ebb9@byu.net>
72683
72684         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
72685         * modules/netinet_in (Makefile.am): Likewise.
72686
72687 2007-02-01  Bruno Haible  <bruno@clisp.org>
72688
72689         * lib/string_.h (GL_LINK_WARNING): New macro.
72690         (strcasecmp, strstr, strcasestr): If provided by the system,
72691         conditionally define as a macro that leads to a warning instead of to
72692         an error.
72693         (strncasecmp): Conditionally define as a macro that leads to a warning.
72694
72695 2007-02-01  Karl Berry  <karl@gnu.org>
72696
72697         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
72698
72699 2007-02-01  Bruno Haible  <bruno@clisp.org>
72700
72701         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
72702         renamings.
72703
72704 2007-02-01  Eric Blake  <ebb9@byu.net>
72705
72706         * modules/regex (Depends-on): Revert dependence on mempcpy.
72707         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
72708         module's definition of mempcpy.
72709         Reported by Paul Eggert.
72710
72711 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72712
72713         * lib/string_.h: If the gnulib module XYZ is not present, undefine
72714         the symbol XYZ before redefining it.  This fixes a problem with
72715         programs that don't use XYZ, when compiled on systems that define
72716         XYZ to something else.
72717
72718 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
72719
72720         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
72721         occurs when "mkdir -m foo" creates a setgid directory that is (1)
72722         writeable to group or other and (2) is intended to have a special
72723         mode bit that is set or cleared.  In such a case, the directory
72724         should be neither group- nor other-writeable until the special
72725         mode bits are right.
72726
72727 2007-01-31  Eric Blake  <ebb9@byu.net>
72728
72729         * modules/mountlist (Depends-on): Add strstr.
72730
72731         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
72732         bug.
72733         * modules/string (Makefile.am): Remove redundant replacement.
72734         * modules/regex (Depends-on): Add mempcpy.
72735
72736 2007-01-31  Bruno Haible  <bruno@clisp.org>
72737
72738         New module description field 'Link'.
72739         * gnulib-tool (func_usage): Document --extract-link-directive.
72740         (sed_extract_prog): Recognize 'Link' directive.
72741         (func_get_link_directive): New function.
72742         (func_import): Show summary of link directives.
72743         Handle --extract-link-directive option.
72744         * modules/acl (Link): New section.
72745         * modules/clock-time (Link): New section.
72746         * modules/euidaccess (Link): New section.
72747         * modules/gettext (Link): New section.
72748         * modules/iconv (Link): New section.
72749         * modules/lock (Link): New section.
72750         * modules/nanosleep (Link): New section.
72751         * modules/readline (Link): New section.
72752
72753 2007-01-27  Bruno Haible  <bruno@clisp.org>
72754
72755         Enforce the use of gnulib modules for unportable <string.h> functions.
72756         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
72757         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
72758         (gl_HEADER_STRING_H_BODY): Require it.
72759         * lib/string_.h: If the gnulib module XYZ is not present, redefine
72760         the symbol XYZ to one that gives a link error.
72761         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
72762         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
72763         * modules/mempcpy (configure.ac): Likewise.
72764         * modules/memrchr (configure.ac): Likewise.
72765         * modules/stpcpy (configure.ac): Likewise.
72766         * modules/stpncpy (configure.ac): Likewise.
72767         * modules/strcase (configure.ac): Likewise.
72768         * modules/strcasestr (configure.ac): Likewise.
72769         * modules/strchrnul (configure.ac): Likewise.
72770         * modules/strdup (configure.ac): Likewise.
72771         * modules/strndup (configure.ac): Likewise.
72772         * modules/strnlen (configure.ac): Likewise.
72773         * modules/strpbrk (configure.ac): Likewise.
72774         * modules/strsep (configure.ac): Likewise.
72775         * modules/strstr (configure.ac): Likewise.
72776         * modules/strtok_r (configure.ac): Likewise.
72777
72778 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
72779
72780         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
72781
72782 2007-01-30  Jim Meyering  <jim@meyering.net>
72783
72784         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
72785
72786 2007-01-29  Bruno Haible  <bruno@clisp.org>
72787
72788         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
72789         * lib/execute.c: Likewise.
72790         * lib/pipe.c: Likewise.
72791         * lib/printf-args.h: Likewise.
72792         * lib/printf-args.c: Likewise.
72793         * lib/printf-parse.c: Likewise.
72794         * lib/vasnprintf.c: Likewise.
72795
72796 2007-01-29  Eric Blake  <ebb9@byu.net>
72797
72798         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
72799         declaration.
72800
72801 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
72802
72803         * lib/strptime.h (strptime): Use 'restrict' for args where
72804         POSIX requires this.
72805         * lib/strptime.c (strptime): Likewise.
72806         Change license notice from LGPL to GPL, since gnulib-tool will
72807         change this as needed.
72808         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
72809         defined.
72810         Include "strptime.h" first, to check interface.
72811         Do not #undef _LIBC and _NL_CURRENT.
72812         Do not include <stdlib.h>; no longer needed.
72813         Include "time_r.h" and declare ptime_locale_status
72814         only if _LIBC is not defined.
72815         (__P): Remove unused macro.
72816         (match_string): Bring back glibc version, but use it only if _LIBC
72817         is defined.
72818         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
72819         Remove unnecessary assertion and abort() call.
72820         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
72821         * m4/strptime.m4: Fix serial number comment.
72822         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
72823         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
72824         (Depends-on): Add time_r.
72825
72826 2007-01-29  Bruno Haible  <bruno@clisp.org>
72827
72828         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72829         strptime.
72830         * modules/strptime (Depends-on): Add stdbool.
72831         * lib/strptime.h: Include <time.h> always. Add comments.
72832
72833 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72834
72835         * modules/strptime: New file.
72836         * lib/strptime.h: New file.
72837         * lib/strptime.c: New file.
72838         * m4/strptime.m4: New file.
72839
72840 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72841
72842         * MODULES.html.sh: New module mpsort.
72843         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
72844
72845         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
72846         a circularity problem with HP-UX ia64 reported by Bob Proulx in
72847         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
72848         All uses changed.
72849         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
72850         All uses changed.
72851         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
72852         to _Restrict_.
72853         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
72854         the parameter matches the prototype.
72855
72856 2007-01-28  Jim Meyering  <jim@meyering.net>
72857
72858         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
72859         sys/time.h here, reverting that part of the previous patch:
72860         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
72861
72862 2007-01-28  Bruno Haible  <bruno@clisp.org>
72863
72864         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
72865         value of $(SYS_TIME_H).
72866         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
72867         remove it conditionally, too. [added by Jim Meyering]
72868         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
72869         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72870         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
72871         GETTIMEOFDAY_REPLACEMENT to 1.
72872
72873 2007-01-28  Bruno Haible  <bruno@clisp.org>
72874
72875         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
72876         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
72877         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
72878         Set UNISTD_H instead of UNISTD_H2.
72879         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
72880
72881 2007-01-28  Bruno Haible  <bruno@clisp.org>
72882
72883         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
72884         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
72885
72886 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72887
72888         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
72889         (func_create_testdir): Ensure C locale for `grep' and `tr'
72890         character ranges.
72891         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
72892         ACLOCAL_AMFLAGS parsing state machine.
72893
72894 2007-01-27  Bruno Haible  <bruno@clisp.org>
72895
72896         * modules/unistr/base: Update.
72897
72898 2007-01-27  Bruno Haible  <bruno@clisp.org>
72899
72900         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
72901         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
72902         * modules/unistr/u32-mbtouc-unsafe: Renamed from
72903         modules/unistr/u32-mbtouc.
72904         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
72905         * lib/unistr.h: Update.
72906         * lib/linebreak.c: Update.
72907         * modules/unistr/u32-mbtouc: Renamed from
72908         modules/unistr/u32-mbtouc-safe.
72909         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
72910         * lib/unistr.h: Update.
72911         * lib/unistr/u32-to-u8.c: Update.
72912         * lib/unistr/u32-to-u16.c: Update.
72913
72914 2007-01-27  Bruno Haible  <bruno@clisp.org>
72915
72916         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
72917         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
72918         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
72919         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
72920         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
72921         * modules/unistr/u16-mbtouc-unsafe: Renamed from
72922         modules/unistr/u16-mbtouc.
72923         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
72924         * lib/unistr.h: Update.
72925         * lib/linebreak.c: Update.
72926         * modules/linebreak: Update.
72927         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
72928         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
72929         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
72930         * modules/unistr/u16-mbtouc: Renamed from
72931         modules/unistr/u16-mbtouc-safe.
72932         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
72933         * lib/unistr.h: Update.
72934         * lib/unistr/u16-to-u8.c: Update.
72935         * modules/unistr/u16-to-u8: Update.
72936         * lib/unistr/u16-to-u32.c: Update.
72937         * modules/unistr/u16-to-u32: Update.
72938
72939 2007-01-27  Bruno Haible  <bruno@clisp.org>
72940
72941         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
72942         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
72943         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
72944         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
72945         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
72946         * modules/unistr/u8-mbtouc-unsafe: Renamed from
72947         modules/unistr/u8-mbtouc.
72948         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
72949         * lib/unistr.h: Update.
72950         * lib/striconveh.c: Update.
72951         * modules/striconveh: Update.
72952         * lib/linebreak.c: Update.
72953         * modules/linebreak: Update.
72954         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
72955         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
72956         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
72957         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
72958         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
72959         * lib/unistr.h: Update.
72960         * lib/striconveh.c: Update.
72961         * modules/striconveh: Update.
72962         * lib/unistr/u8-to-u16.c: Update.
72963         * modules/unistr/u8-to-u16: Update.
72964         * lib/unistr/u8-to-u32.c: Update.
72965         * modules/unistr/u8-to-u32: Update.
72966
72967 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72968
72969         Sync from Libtool.
72970         * lib/argz.c: Do not include strings.h nor memory.h, include
72971         string.h unconditionally.  Patch by Simon Josefsson.
72972
72973 2007-01-27  Bruno Haible  <bruno@clisp.org>
72974
72975         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
72976         from gl_HEADER_STRING_H_BODY.
72977         (gl_HEADER_STRING_H_BODY): Require it.
72978         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
72979         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
72980         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
72981         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
72982         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
72983         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
72984         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72985         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
72986         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
72987         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
72988         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
72989         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
72990         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
72991         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72992         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72993
72994 2007-01-27  Bruno Haible  <bruno@clisp.org>
72995
72996         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
72997         check_PROGRAMS into noinst_PROGRAMS.
72998         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
72999         check_PROGRAMS in this case.
73000         (func_import): Set for_test to false.
73001         (func_create_testdir): Set for_test to true.
73002
73003 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73004             Bruno Haible  <bruno@clisp.org>
73005
73006         * modules/strcasestr (Files): Remove lib/strcasestr.h.
73007         (Depends-on): Add string.
73008         (Includes): Use <string.h> instead of strcasestr.h.
73009         * modules/string (Makefile.am): Also substitute the value of
73010         REPLACE_STRCASESTR.
73011         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
73012         assume strcasestr is declared in <string.h> not <strings.h>. Also
73013         set REPLACE_STRCASESTR.
73014         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
73015         REPLACE_STRCASESTR.
73016         * lib/strcasestr.h: Remove file.
73017         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
73018         * lib/string_.h (strcasestr): New declaration.
73019
73020 2007-01-27  Bruno Haible  <bruno@clisp.org>
73021
73022         * lib/string_.h: Use 'extern'.
73023
73024 2007-01-27  Jim Meyering  <jim@meyering.net>
73025
73026         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
73027         of set-but-not-used local, "q".
73028
73029         * lib/mempcpy.c: Include <config.h> before <string.h>.
73030         This fixes a compilation error on HP-UX, due to the system's
73031         "restrict"-using mempcpy prototype.
73032
73033 2007-01-26  Bruno Haible  <bruno@clisp.org>
73034
73035         Small optimization.
73036         * lib/javacomp.c: Include c-strstr.h.
73037          (is_envjavac_gcj): Use c_strstr instead of strstr.
73038         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
73039
73040 2007-01-26  Bruno Haible  <bruno@clisp.org>
73041
73042         * MODULES.html.sh (Unicode string functions): Add the new modules.
73043
73044         * modules/uniconv/u32-strconv-to-locale: New file.
73045         * lib/uniconv/u32-strconv-to-locale.c: New file.
73046
73047         * modules/uniconv/u16-strconv-to-locale: New file.
73048         * lib/uniconv/u16-strconv-to-locale.c: New file.
73049
73050         * modules/uniconv/u8-strconv-to-locale: New file.
73051         * lib/uniconv/u8-strconv-to-locale.c: New file.
73052
73053         * modules/uniconv/u32-strconv-from-locale: New file.
73054         * lib/uniconv/u32-strconv-from-locale.c: New file.
73055
73056         * modules/uniconv/u16-strconv-from-locale: New file.
73057         * lib/uniconv/u16-strconv-from-locale.c: New file.
73058
73059         * modules/uniconv/u8-strconv-from-locale: New file.
73060         * lib/uniconv/u8-strconv-from-locale.c: New file.
73061
73062         * modules/uniconv/u32-strconv-to-enc: New file.
73063         * lib/uniconv/u32-strconv-to-enc.c: New file.
73064         * modules/uniconv/u32-strconv-to-enc-tests: New file.
73065         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
73066
73067         * modules/uniconv/u16-strconv-to-enc: New file.
73068         * lib/uniconv/u16-strconv-to-enc.c: New file.
73069         * lib/uniconv/u-strconv-to-enc.h: New file.
73070         * modules/uniconv/u16-strconv-to-enc-tests: New file.
73071         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
73072
73073         * modules/uniconv/u8-strconv-to-enc: New file.
73074         * lib/uniconv/u8-strconv-to-enc.c: New file.
73075         * modules/uniconv/u8-strconv-to-enc-tests: New file.
73076         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
73077
73078         * modules/uniconv/u32-strconv-from-enc: New file.
73079         * lib/uniconv/u32-strconv-from-enc.c: New file.
73080         * modules/uniconv/u32-strconv-from-enc-tests: New file.
73081         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
73082
73083         * modules/uniconv/u16-strconv-from-enc: New file.
73084         * lib/uniconv/u16-strconv-from-enc.c: New file.
73085         * modules/uniconv/u16-strconv-from-enc-tests: New file.
73086         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
73087
73088         * modules/uniconv/u8-strconv-from-enc: New file.
73089         * lib/uniconv/u8-strconv-from-enc.c: New file.
73090         * lib/uniconv/u-strconv-from-enc.h: New file.
73091         * modules/uniconv/u8-strconv-from-enc-tests: New file.
73092         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
73093
73094         * modules/uniconv/u32-conv-from-enc: New file.
73095         * lib/uniconv/u32-conv-from-enc.c: New file.
73096         * modules/uniconv/u32-conv-from-enc-tests: New file.
73097         * tests/uniconv/test-u32-conv-from-enc.c: New file.
73098
73099         * modules/uniconv/u16-conv-from-enc: New file.
73100         * lib/uniconv/u16-conv-from-enc.c: New file.
73101         * lib/uniconv/u-conv-from-enc.h: New file.
73102         * modules/uniconv/u16-conv-from-enc-tests: New file.
73103         * tests/uniconv/test-u16-conv-from-enc.c: New file.
73104
73105         * modules/uniconv/u8-conv-from-enc: New file.
73106         * lib/uniconv/u8-conv-from-enc.c: New file.
73107         * modules/uniconv/u8-conv-from-enc-tests: New file.
73108         * tests/uniconv/test-u8-conv-from-enc.c: New file.
73109
73110         * modules/uniconv/base: New file.
73111         * lib/uniconv.h: New file.
73112
73113 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73114
73115         * doc/gnulib-tool.texi (Initial import): Update to match current
73116         behavior with strdup module.
73117         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
73118         * lib/memmem.h: Remove; all uses removed.  This is now done
73119         by <string.h>.
73120         * lib/mempcpy.h: Likewise.
73121         * lib/memrchr.h: Likewise.
73122         * lib/stpcpy.h: Likewise.
73123         * lib/stpncpy.h: Likewise.
73124         * lib/strcase.h: Likewise.
73125         * lib/strchrnul.h: Likewise.
73126         * lib/strdup.h: Likewise.
73127         * lib/strndup.h: Likewise.
73128         * lib/strnlen.h: Likewise.
73129         * lib/strpbrk.h: Likewise.
73130         * lib/strsep.h: Likewise.
73131         * lib/strstr.h: Likewise.
73132         * lib/strtok_r.h: Likewise.
73133         * lib/string_.h: New file.
73134         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
73135         Rely on <string.h> instead.
73136         * lib/canon-host.c: Likewise.
73137         * lib/chdir-long.c: Likewise.
73138         * lib/concatpath.c: Likewise.
73139         * lib/exclude.c: Likewise.
73140         * lib/fchdir.c: Likewise.
73141         * lib/getaddrinfo.c: Likewise.
73142         * lib/getcwd.c: Likewise.
73143         * lib/getsubopt.c: Likewise.
73144         * lib/glob.c: Likewise.
73145         * lib/hard-locale.c: Likewise.
73146         * lib/iconvme.c: Likewise.
73147         * lib/javacomp.c: Likewise.
73148         * lib/mempcpy.c: Likewise.
73149         * lib/memrchr.c: Likewise.
73150         * lib/regex_internal.h: Likewise.
73151         * lib/stpncpy.c: Likewise.
73152         * lib/strcasecmp.c: Likewise.
73153         * lib/strchrnul.c: Likewise.
73154         * lib/strdup.c: Likewise.
73155         * lib/striconv.c: Likewise.
73156         * lib/striconveh.c: Likewise.
73157         * lib/striconveha.c: Likewise.
73158         * lib/strncasecmp.c: Likewise.
73159         * lib/strndup.c: Likewise.
73160         * lib/strnlen.c: Likewise.
73161         * lib/strsep.c: Likewise.
73162         * lib/strstr.c: Likewise.
73163         * lib/strtok_r.c: Likewise.
73164         * lib/userspec.c: Likewise.
73165         * lib/w32spawn.h: Likewise.
73166         * lib/xstrndup.c: Likewise.
73167         * lib/mountlist.c (strstr): Remove decl.
73168         * m4/string_h.m4: New file.
73169         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
73170         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
73171         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
73172         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
73173         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
73174         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
73175         Set REPLACE_STRCASECMP if necessary.
73176         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
73177         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
73178         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
73179         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
73180         HAVE_DECL_STRDUP if necessary.
73181         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
73182         since gl_FUNC_STRNDUP does that now.
73183         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
73184         Check for decl here...
73185         (gl_PREREQ_STRNLEN): ... not here.
73186         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
73187         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
73188         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
73189         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
73190         necessary.
73191         * modules/string: New file.
73192         * modules/memmem (Files): Remove special-purpose include file.
73193         (Depends-on): Add string.
73194         (Include): Include <string.h>, not the removed file.
73195         * modules/mempcpy: Likewise.
73196         * modules/memrchr: Likewise.
73197         * modules/stpcpy: Likewise.
73198         * modules/stpncpy: Likewise.
73199         * modules/strcase: Likewise.
73200         * modules/strchrnul: Likewise.
73201         * modules/strdup: Likewise.
73202         * modules/strndup: Likewise.
73203         * modules/strnlen: Likewise.
73204         * modules/strpbrk: Likewise.
73205         * modules/strsep: Likewise.
73206         * modules/strstr: Likewise.
73207         * modules/strtok_r: Likewise.
73208         * tests/test-dirname.c: Don't include "strdup.h", since
73209         <string.h> now suffices.
73210         * tests/test-memmem.c: Don't include "memmem.h", since
73211         <string.h> now suffices.
73212
73213 2007-01-25  Bruno Haible  <bruno@clisp.org>
73214
73215         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
73216         *resultp is 0.
73217
73218         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
73219         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
73220         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
73221         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
73222
73223         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
73224         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
73225         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
73226         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
73227         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
73228         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
73229
73230 2007-01-24  Bruno Haible  <bruno@clisp.org>
73231
73232         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
73233         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
73234         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
73235         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
73236         gl_FUNC_FTS_CORE.
73237         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
73238         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
73239         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73240         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
73241         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
73242         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
73243         gl_FUNC_FCHOWNAT.
73244         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
73245         gl_FUNC_STRFTIME.
73246         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
73247         Reported by Ralf Wildenhues.
73248
73249 2007-01-24  Bruno Haible  <bruno@clisp.org>
73250
73251         Drop AC_REQUIRE calls that are redundant with the module dependencies.
73252         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
73253         gl_GETADDRINFO.
73254         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
73255         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
73256         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
73257
73258 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
73259
73260         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
73261         Don't use 'exit'; just return from 'main'.
73262         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
73263
73264         * lib/fnmatch_.h: Readjust white space and comments to match
73265         glibc, to avoid spurious diffs.
73266
73267 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73268
73269         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
73270         2004-12-01 change by Jakub Jelinek, since this code won't compile
73271         if !LIBC.  Problem reported by Bob Proulx.
73272
73273 2007-01-23  Bruno Haible  <bruno@clisp.org>
73274
73275         * lib/striconveh.c: Include c-strcaseeq.h.
73276         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
73277         * modules/striconveh (Depends-on): Add c-strcaseeq.
73278
73279 2007-01-23  Bruno Haible  <bruno@clisp.org>
73280
73281         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
73282
73283         * modules/c-strcaseeq: New file.
73284         * lib/c-strcaseeq.h: New file.
73285
73286         * modules/streq: New file.
73287         * lib/streq.h: New file.
73288
73289 2007-01-23  Bruno Haible  <bruno@clisp.org>
73290
73291         * modules/striconveha-tests: New file.
73292         * tests/test-striconveha.c: New file.
73293
73294         * lib/striconveha.h: Include <stdbool.h>.
73295         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
73296         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
73297         (mem_iconveha_notranslit): Renamed from mem_iconveha.
73298         (mem_iconveha): New function.
73299         (str_iconveha_notranslit): Renamed from str_iconveha.
73300         (str_iconveha): New function.
73301         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
73302         c-strcase.
73303
73304 2007-01-23  Bruno Haible  <bruno@clisp.org>
73305
73306         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
73307         encodings without forgiving before trying any encoding with handler.
73308         (str_iconveha): Try all encodings without forgiving before trying any
73309         encoding with handler.
73310
73311 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73312
73313         Import the following changes from libc.
73314
73315         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73316
73317         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
73318
73319         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73320
73321         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
73322         normal_bracket label.
73323
73324         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
73325
73326         [BZ #361]
73327         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
73328         to normal_bracket after fetching the next character.
73329
73330 2007-01-22  Bruno Haible  <bruno@clisp.org>
73331
73332         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
73333         argument.
73334         * lib/striconveh.c (iconv_carefully_1): New function.
73335         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
73336         argument.
73337         (str_cd_iconveh): Update.
73338         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
73339         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
73340         * tests/test-striconveh.c (MAGIC): New macro.
73341         (new_offsets): New function.
73342         (main): Test call with and without offsets.
73343
73344 2007-01-22  Bruno Haible  <bruno@clisp.org>
73345
73346         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
73347         * modules/sys_select (Makefile.am): Likewise.
73348         * modules/sys_socket (Makefile.am): Likewise.
73349         * modules/sys_time (Makefile.am): Likewise.
73350
73351 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73352
73353         * modules/gettimeofday (License): Change from GPL to LGPL, since
73354         gettimeofday is a library function.
73355
73356 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73357
73358         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
73359
73360 2007-01-21  Bruno Haible  <bruno@clisp.org>
73361
73362         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
73363
73364 2007-01-21  Bruno Haible  <bruno@clisp.org>
73365
73366         * modules/striconveha: New file.
73367         * lib/striconveha.h: New file.
73368         * lib/striconveha.c: New file.
73369         * MODULES.html.sh (Internationalization functions): Add striconveha.
73370         * lib/striconv.c (str_iconv): Optimize the case of an empty input
73371         string.
73372         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
73373
73374 2007-01-21  Bruno Haible  <bruno@clisp.org>
73375
73376         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
73377         * lib/striconveh.c (str_iconveh): Likewise.
73378
73379 2007-01-21  Bruno Haible  <bruno@clisp.org>
73380
73381         * lib/striconveh.h (mem_iconveh): New declaration.
73382         * lib/striconveh.c (mem_iconveh): New function.
73383         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
73384
73385 2007-01-21  Bruno Haible  <bruno@clisp.org>
73386
73387         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
73388
73389         * lib/striconveh.h (mem_cd_iconveh): Change specification.
73390         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
73391         original result buffer.
73392         (str_cd_iconveh): Update.
73393         * tests/test-striconveh.c (main): Update.
73394
73395         * lib/striconv.h (mem_cd_iconv): Change specification.
73396         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
73397         result buffer.
73398         (str_cd_iconv): Update.
73399         * tests/test-striconv.c (main): Update.
73400
73401 2007-01-21  Bruno Haible  <bruno@clisp.org>
73402
73403         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
73404
73405 2007-01-20  Jim Meyering  <jim@meyering.net>
73406
73407         * lib/userspec.c (parse_with_separator): If a user or group string
73408         starts with "+", skip the corresponding name-to-ID look-up, since
73409         such a look-up must fail: user and group names may not include "+".
73410
73411 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73412
73413         * lib/poll.c: Include sys/time.h and time.h unconditionally,
73414         since we now assume the sys_time module.
73415         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
73416         check for sys/time.h; no longer needed.
73417         * modules/poll (Depends-on): Depend on sys_time.
73418
73419 2007-01-18  Bruno Haible  <bruno@clisp.org>
73420
73421         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
73422         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73423
73424         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
73425         gettimeofday.
73426
73427         * tests/test-gettimeofday.c: Include <time.h>.
73428         (dummy): Remove variable.
73429
73430         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
73431         gl_HEADER_SYS_TIME_H.
73432         (gl_HEADER_SYS_TIME_H): New macro.
73433
73434         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
73435         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73436         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
73437         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
73438         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73439         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
73440         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
73441         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73442         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
73443         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
73444         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73445
73446         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
73447         last change; it caused a compilation error when cross-compiling to
73448         Cygwin.
73449
73450 2007-01-18  Jim Meyering  <jim@meyering.net>
73451
73452         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
73453         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
73454         than the race-prone "test -d sys || mkdir sys".
73455         (configure.ac): Use AC_PROG_MKDIR_P.
73456         * modules/sys_select: Likewise.
73457         * modules/sys_socket: Likewise.
73458         * modules/sys_time: Likewise.
73459
73460 2007-01-18  Eric Blake  <ebb9@byu.net>
73461
73462         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
73463         replace gettimeofday.
73464         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
73465         name, to avoid infinite recursion.
73466
73467 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
73468
73469         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
73470         module sys_time.
73471         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
73472         assume timespec.h defines struct timeval.
73473         * lib/settime.c: Likewise.
73474         * lib/utimens.c: Likewise.
73475         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
73476         since we now assume the gettimeofday module.
73477         * lib/tempname.c (__gen_tempname): Likewise.
73478         * lib/gettimeofday.h: Remove.
73479         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
73480         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
73481         Include <time.h>, for 'time()'.
73482         (localtime_buffer_addr): Also use this workaround if
73483         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
73484         to simplify the uses.  All uses changed.
73485         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
73486         that #undef is inside {}, and 'const' follows type name consistently.
73487         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
73488         (gettimeofday): Do not use the maximum possible value for
73489         tv->tv_usec, since that might break usages other than ls.c.
73490         Instead, we'll leave ls.c alone.  This undoes today's patch
73491         by Bruno.  Add a compile-time warning for 1s-clock resolution;
73492         we've never observed the problem but might as well keep the
73493         canary.
73494         * lib/nanosleep.c: Include timespec.h first, for interface check.
73495         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
73496         now assume the sys_time module.
73497         * lib/tempname.c: Likewise.
73498         * lib/timespec.h: Likewise.
73499         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
73500         needed.
73501         * lib/strftime.c: Likewise.
73502         * lib/timespec.h: Likewise.
73503         * lib/posixtm.c: Include posixtm.h first, for interface check.
73504         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
73505         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
73506         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
73507         * lib/sys_time_.h: New file.
73508         * lib/timespec.h (struct timespec): Use long int, not long.
73509         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73510         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
73511         Remove obsolescent call to AC_HEADER_TIME.
73512         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
73513         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73514         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73515         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
73516         Likewise.
73517         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
73518         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
73519         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
73520         into the sys_time module.  Check for gettimeofday just once.
73521         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
73522         for gettimeofday signature to just check the signature.  Merely
73523         compile it, since linking doesn't test signature.  Improve test for
73524         whether gettimeofday.o is actually needed.
73525         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
73526         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
73527         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
73528         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73529         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
73530         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
73531         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
73532         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
73533         than worrying about sys/time.h.
73534         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73535         Don't bother worrying about TIME_WITH_SYS_TIME.
73536         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
73537         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
73538         * m4/sys_time_h.m4: New file.
73539         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
73540         Don't include sys/time.h.  Return from main rather than exiting.
73541         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
73542         all uses changed.
73543         * modules/gethrxtime (Depends-on): Add sys_time.
73544         * modules/gettime (Depends-on): Likewise.
73545         * modules/gettimeofday (Depends-on): Likewise.
73546         * modules/nanosleep (Depends-on): Likewise.
73547         * modules/settime (Depends-on): Likewise.
73548         * modules/tempname (Depends-on): Likewise.
73549         * modules/utimens (Depends-on): Likewise.
73550         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
73551         (Include): Change back to <sys/time.h>.
73552         (Maintainer): Add self.
73553         * modules/sys_time: New file.
73554         * modules/tempname (Depends-on): Add gettimeofday.
73555         * tests/test-gettimeofday.c: Include <sys/time.h>
73556         rather than gettimeofday.h.
73557
73558 2007-01-17  Bruno Haible  <bruno@clisp.org>
73559
73560         * gnulib-tool (func_get_license): Revert last patch. Instead, let
73561         the license default to GPL.
73562         (func_create_testdir): Don't complain if a module is LGPL and its
73563         tests module depends on GPLed modules.
73564
73565 2007-01-17  Bruno Haible  <bruno@clisp.org>
73566
73567         * lib/gettimeofday.c (gettimeofday): Add code for the case
73568         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
73569         maximum possible value for tv->tv_usec, rather than the minimum one.
73570
73571 2005-10-08  Martin Lambers  <marlam@marlam.de>
73572 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73573 2007-01-16  Bruno Haible  <bruno@clisp.org>
73574
73575         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
73576         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
73577         gl_FUNC_GETTIMEOFDAY.
73578         (Include): Add gettimeofday.h.
73579         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
73580         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
73581         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
73582         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
73583         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
73584         * lib/gettimeofday.h: New file.
73585         * lib/gettimeofday.c: Include <sys/timeb.h>.
73586         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
73587         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73588         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
73589         fall back on time().
73590
73591         * tests/test-gettimeofday.c: New file.
73592         * modules/gettimeofday-tests: New file.
73593
73594 2007-01-16  Eric Blake  <ebb9@byu.net>
73595
73596         * modules/fnmatch (Depends-on): Depend on wchar.
73597         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
73598         * m4/fnmatch.m4: Likewise.
73599         * modules/mbchar (Makefile.am): Assume <wchar.h>.
73600         * m4/mbchar.m4: Likewise.
73601         * modules/mbswidth (Depends-on): Depend on wchar.
73602         * lib/mbswidth.c: Assume <wchar.h>.
73603         * m4/mbswidth.m4: Likewise.
73604         * modules/quotearg (Depends-on): Depend on wchar.
73605         * lib/quotearg.c: Assume <wchar.h>.
73606         * m4/quotearg.m4: Likewise.
73607         * modules/regex (Depends-on): Depend on wchar.
73608         * lib/regex_internal.h: Assume <wchar.h>.
73609         * m4/regex.m4: Likewise.
73610         * modules/stdint (Depends-on): Depend on wchar.
73611         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
73612         * m4/stdint.m4: Likewise.
73613         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
73614         * modules/strftime (Depends-on): Depend on wchar.
73615         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
73616         * modules/strtol (Depends-on): Depend on wchar.
73617         * lib/strtol.c: Assume <wchar.h>.
73618         * modules/wcwidth (Depends-on): Depend on wchar.
73619         * lib/wcwidth.h: Assume <wchar.h>.
73620         * m4/wcwidth.m4: Likewise.
73621
73622 2007-01-16  Bruno Haible  <bruno@clisp.org>
73623
73624         * modules/csharpexec-script: New, created from...
73625         * modules/csharpexec: ... this.
73626
73627 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
73628
73629         * modules/javaexec-script: New, created from...
73630         * modules/javaexec: ... this.
73631
73632 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73633
73634         * modules/poll (Dependencies): Add sys_select.
73635
73636 2007-01-15  Jim Meyering  <jim@meyering.net>
73637
73638         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
73639         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
73640         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
73641         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
73642
73643 2007-01-15  Bruno Haible  <bruno@clisp.org>
73644
73645         * modules/striconveh: New file.
73646         * lib/striconveh.h: New file.
73647         * lib/striconveh.c: New file.
73648         * MODULES.html.sh (Internationalization functions): Add striconveh.
73649
73650         * modules/striconveh-tests: New file.
73651         * tests/test-striconveh.c: New file.
73652
73653 2007-01-15  Bruno Haible  <bruno@clisp.org>
73654
73655         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
73656         not from GNU libiconv or GNU libc.
73657
73658 2007-01-15  Bruno Haible  <bruno@clisp.org>
73659
73660         * doc/gnulib-intro.texi (Copyright): Explain the different license
73661         terms for module descriptions, autoconf macros, tests, documentation.
73662
73663 2007-01-14  Bruno Haible  <bruno@clisp.org>
73664
73665         * modules/striconv-tests: New file.
73666         * tests/test-striconv.c: New file.
73667
73668 2007-01-14  Bruno Haible  <bruno@clisp.org>
73669
73670         * modules/iconv-tests: New file.
73671         * tests/test-iconv.c: New file.
73672
73673 2007-01-14  Bruno Haible  <bruno@clisp.org>
73674
73675         * gnulib-tool (func_get_license): For test modules, use the license of
73676         the main module.
73677
73678 2007-01-14  Bruno Haible  <bruno@clisp.org>
73679
73680         * modules/iconv (Include): Clarify that <iconv.h> can only be included
73681         if iconv is found to exist.
73682
73683 2007-01-14  Bruno Haible  <bruno@clisp.org>
73684
73685         * modules/c-ctype-tests: New file.
73686         * tests/test-c-ctype.c: New file.
73687
73688 2007-01-14  Bruno Haible  <bruno@clisp.org>
73689
73690         * modules/binary-io-tests: New file.
73691         * tests/test-binary-io.sh: New file.
73692         * tests/test-binary-io.c: New file.
73693
73694 2007-01-14  Bruno Haible  <bruno@clisp.org>
73695
73696         * modules/array-oset-tests: New file.
73697         * tests/test-array_oset.c: New file.
73698
73699 2007-01-14  Bruno Haible  <bruno@clisp.org>
73700
73701         * modules/array-list-tests: New file.
73702         * tests/test-array_list.c: New file.
73703
73704 2007-01-14  Bruno Haible  <bruno@clisp.org>
73705
73706         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
73707         and make.
73708         Reported by Simon Josefsson in
73709         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
73710
73711 2007-01-14  Bruno Haible  <bruno@clisp.org>
73712
73713         * modules/allocsa-tests: New file.
73714         * tests/test-allocsa.c: New file.
73715
73716 2007-01-14  Bruno Haible  <bruno@clisp.org>
73717
73718         * modules/fchdir (Depends-on): Add absolute-header.
73719         * modules/unistd (Depends-on): Likewise.
73720
73721 2006-12-30  Bruno Haible  <bruno@clisp.org>
73722
73723         * modules/fchdir: New file.
73724         * modules/unistd (Files): Add lib/unistd_.h.
73725         (Makefile.am): Generate unistd.h from unistd_.h.
73726         * lib/fchdir.c: New file.
73727         * lib/dirent_.h: New file.
73728         * lib/unistd_.h: New file.
73729         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
73730         * m4/fchdir.m4: New file.
73731         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
73732         (gl_HEADER_UNISTD): Invoke it.
73733         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
73734         function.
73735         * lib/backupfile.c (opendir, closedir): Undefine.
73736         * lib/chown.c (open, close): Undefine.
73737         * lib/clean-temp.c (open, close): Undefine.
73738         * lib/copy-file.c (open, close): Undefine.
73739         * lib/execute.c (open, close): Undefine.
73740         * lib/fsusage.c (open, close): Undefine.
73741         * lib/gc-gnulib.c (open, close): Undefine.
73742         * lib/getcwd.c (opendir, closedir): Undefine.
73743         * lib/glob.c (opendir, closedir): Undefine.
73744         * lib/javacomp.c (open, close): Undefine.
73745         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
73746         * lib/openat-proc.c (open, close): Undefine.
73747         * lib/pagealign_alloc.c (open, close): Undefine.
73748         * lib/pipe.c (open, close): Undefine.
73749         * lib/progreloc.c (open, close): Undefine.
73750         * lib/savedir.c (opendir, closedir): Undefine.
73751         * lib/utime.c (open, close): Undefine.
73752         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
73753
73754 2007-01-10  Bruno Haible  <bruno@clisp.org>
73755
73756         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
73757
73758 2007-01-12  Eric Blake  <ebb9@byu.net>
73759
73760         Provide a robust <wchar.h>.  Further simplifications are now
73761         possible in other modules, but not included here.
73762         * modules/wchar: New module.
73763         * m4/wchar.m4: New file.
73764         * lib/wchar_.h: Likewise.
73765         * modules/mbchar (Depends-on): Depend on wchar, as the first use
73766         of the new module.
73767         * MODULES.html.sh (Extended multibyte and wide character utilities):
73768         New section.
73769
73770 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
73771
73772         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
73773         to a reasonable default for memory allocation.
73774         (xreadlink): Don't allocate a huge buffer, to work around a buggy
73775         file system that reports garbage st_size values for symlinks.
73776         Problem reported by Liyang Hu.
73777
73778 2007-01-11  Simon Josefsson  <simon@josefsson.org>
73779
73780         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
73781         Emacs .#* auto-save files).
73782
73783 2007-01-11  Bruno Haible  <bruno@clisp.org>
73784
73785         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
73786         directory.
73787
73788 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73789
73790         Use @...@ consistently in lib/wctype_.h.
73791         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
73792         on it being set to 1 or 0.
73793         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
73794         go back to AC_SUBSTing it.
73795         * modules/wctype (Makefile.am): Undo previous change.
73796
73797 2007-01-10  Eric Blake  <ebb9@byu.net>
73798
73799         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
73800         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
73801         * modules/wctype (Makefile.am): Likewise.
73802         Reported by Chris McGuire.
73803
73804 2007-01-10  Jim Meyering  <jim@meyering.net>
73805
73806         fts.c: a small readability/maintainability improvement
73807         * lib/fts.c (fts_read): Make this code slightly more readable and
73808         maintainable by hoisting the "sp->fts_cur = p" assignments to
73809         immediately follow the statements that set P.  Derived from
73810         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
73811
73812 2007-01-10  Eric Blake  <ebb9@byu.net>
73813
73814         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
73815         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
73816         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73817         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
73818         Reported by Chris McGuire.
73819
73820 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73821
73822         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
73823         in sed script.
73824
73825 2007-01-09  Bruno Haible  <bruno@clisp.org>
73826
73827         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
73828         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
73829         variables.
73830         (func_module): Use them.
73831
73832 2007-01-09  Bruno Haible  <bruno@clisp.org>
73833
73834         * modules/unistr/base: New file.
73835         * lib/unistr.h: New file.
73836
73837         * modules/unistr/u8-to-u16: New file.
73838         * lib/unistr/u8-to-u16.c: New file.
73839
73840         * modules/unistr/u8-to-u32: New file.
73841         * lib/unistr/u8-to-u32.c: New file.
73842
73843         * modules/unistr/u16-to-u8: New file.
73844         * lib/unistr/u16-to-u8.c: New file.
73845
73846         * modules/unistr/u16-to-u32: New file.
73847         * lib/unistr/u16-to-u32.c: New file.
73848
73849         * modules/unistr/u32-to-u8: New file.
73850         * lib/unistr/u32-to-u8.c: New file.
73851
73852         * modules/unistr/u32-to-u16: New file.
73853         * lib/unistr/u32-to-u16.c: New file.
73854
73855         * modules/unistr/u8-check: New file.
73856         * modules/unistr/u16-check: New file.
73857         * modules/unistr/u32-check: New file.
73858         * lib/unistr/u8-check.c: New file.
73859         * lib/unistr/u16-check.c: New file.
73860         * lib/unistr/u32-check.c: New file.
73861
73862         * modules/unistr/u8-chr: New file.
73863         * modules/unistr/u16-chr: New file.
73864         * modules/unistr/u32-chr: New file.
73865         * lib/unistr/u8-chr.c: New file.
73866         * lib/unistr/u16-chr.c: New file.
73867         * lib/unistr/u32-chr.c: New file.
73868
73869         * modules/unistr/u8-cmp: New file.
73870         * modules/unistr/u16-cmp: New file.
73871         * modules/unistr/u32-cmp: New file.
73872         * lib/unistr/u8-cmp.c: New file.
73873         * lib/unistr/u16-cmp.c: New file.
73874         * lib/unistr/u32-cmp.c: New file.
73875
73876         * modules/unistr/u8-cpy: New file.
73877         * modules/unistr/u16-cpy: New file.
73878         * modules/unistr/u32-cpy: New file.
73879         * lib/unistr/u8-cpy.c: New file.
73880         * lib/unistr/u16-cpy.c: New file.
73881         * lib/unistr/u32-cpy.c: New file.
73882         * lib/unistr/u-cpy.h: New file.
73883
73884         * modules/unistr/u8-cpy-alloc: New file.
73885         * modules/unistr/u16-cpy-alloc: New file.
73886         * modules/unistr/u32-cpy-alloc: New file.
73887         * lib/unistr/u8-cpy-alloc.c: New file.
73888         * lib/unistr/u16-cpy-alloc.c: New file.
73889         * lib/unistr/u32-cpy-alloc.c: New file.
73890         * lib/unistr/u-cpy-alloc.h: New file.
73891
73892         * modules/unistr/u8-endswith: New file.
73893         * modules/unistr/u16-endswith: New file.
73894         * modules/unistr/u32-endswith: New file.
73895         * lib/unistr/u8-endswith.c: New file.
73896         * lib/unistr/u16-endswith.c: New file.
73897         * lib/unistr/u32-endswith.c: New file.
73898         * lib/unistr/u-endswith.h: New file.
73899
73900         * modules/unistr/u8-mblen: New file.
73901         * modules/unistr/u16-mblen: New file.
73902         * modules/unistr/u32-mblen: New file.
73903         * lib/unistr/u8-mblen.c: New file.
73904         * lib/unistr/u16-mblen.c: New file.
73905         * lib/unistr/u32-mblen.c: New file.
73906
73907         * modules/unistr/u8-mbtouc: New file.
73908         * modules/unistr/u16-mbtouc: New file.
73909         * modules/unistr/u32-mbtouc: New file.
73910         * lib/unistr/u8-mbtouc.c: New file.
73911         * lib/unistr/u16-mbtouc.c: New file.
73912         * lib/unistr/u32-mbtouc.c: New file.
73913
73914         * modules/unistr/u8-mbtouc-safe: New file.
73915         * modules/unistr/u16-mbtouc-safe: New file.
73916         * modules/unistr/u32-mbtouc-safe: New file.
73917         * lib/unistr/u8-mbtouc-safe.c: New file.
73918         * lib/unistr/u16-mbtouc-safe.c: New file.
73919         * lib/unistr/u32-mbtouc-safe.c: New file.
73920
73921         * modules/unistr/u8-move: New file.
73922         * modules/unistr/u16-move: New file.
73923         * modules/unistr/u32-move: New file.
73924         * lib/unistr/u8-move.c: New file.
73925         * lib/unistr/u16-move.c: New file.
73926         * lib/unistr/u32-move.c: New file.
73927         * lib/unistr/u-move.h: New file.
73928
73929         * modules/unistr/u8-next: New file.
73930         * modules/unistr/u16-next: New file.
73931         * modules/unistr/u32-next: New file.
73932         * lib/unistr/u8-next.c: New file.
73933         * lib/unistr/u16-next.c: New file.
73934         * lib/unistr/u32-next.c: New file.
73935
73936         * modules/unistr/u8-prev: New file.
73937         * modules/unistr/u16-prev: New file.
73938         * modules/unistr/u32-prev: New file.
73939         * lib/unistr/u8-prev.c: New file.
73940         * lib/unistr/u16-prev.c: New file.
73941         * lib/unistr/u32-prev.c: New file.
73942
73943         * modules/unistr/u8-set: New file.
73944         * modules/unistr/u16-set: New file.
73945         * modules/unistr/u32-set: New file.
73946         * lib/unistr/u8-set.c: New file.
73947         * lib/unistr/u16-set.c: New file.
73948         * lib/unistr/u32-set.c: New file.
73949         * lib/unistr/u-set.h: New file.
73950
73951         * modules/unistr/u8-startswith: New file.
73952         * modules/unistr/u16-startswith: New file.
73953         * modules/unistr/u32-startswith: New file.
73954         * lib/unistr/u8-startswith.c: New file.
73955         * lib/unistr/u16-startswith.c: New file.
73956         * lib/unistr/u32-startswith.c: New file.
73957         * lib/unistr/u-startswith.h: New file.
73958
73959         * modules/unistr/u8-stpcpy: New file.
73960         * modules/unistr/u16-stpcpy: New file.
73961         * modules/unistr/u32-stpcpy: New file.
73962         * lib/unistr/u8-stpcpy.c: New file.
73963         * lib/unistr/u16-stpcpy.c: New file.
73964         * lib/unistr/u32-stpcpy.c: New file.
73965         * lib/unistr/u-stpcpy.h: New file.
73966
73967         * modules/unistr/u8-stpncpy: New file.
73968         * modules/unistr/u16-stpncpy: New file.
73969         * modules/unistr/u32-stpncpy: New file.
73970         * lib/unistr/u8-stpncpy.c: New file.
73971         * lib/unistr/u16-stpncpy.c: New file.
73972         * lib/unistr/u32-stpncpy.c: New file.
73973         * lib/unistr/u-stpncpy.h: New file.
73974
73975         * modules/unistr/u8-strcat: New file.
73976         * modules/unistr/u16-strcat: New file.
73977         * modules/unistr/u32-strcat: New file.
73978         * lib/unistr/u8-strcat.c: New file.
73979         * lib/unistr/u16-strcat.c: New file.
73980         * lib/unistr/u32-strcat.c: New file.
73981         * lib/unistr/u-strcat.h: New file.
73982
73983         * modules/unistr/u8-strchr: New file.
73984         * modules/unistr/u16-strchr: New file.
73985         * modules/unistr/u32-strchr: New file.
73986         * lib/unistr/u8-strchr.c: New file.
73987         * lib/unistr/u16-strchr.c: New file.
73988         * lib/unistr/u32-strchr.c: New file.
73989
73990         * modules/unistr/u8-strcmp: New file.
73991         * modules/unistr/u16-strcmp: New file.
73992         * modules/unistr/u32-strcmp: New file.
73993         * lib/unistr/u8-strcmp.c: New file.
73994         * lib/unistr/u16-strcmp.c: New file.
73995         * lib/unistr/u32-strcmp.c: New file.
73996
73997         * modules/unistr/u8-strcpy: New file.
73998         * modules/unistr/u16-strcpy: New file.
73999         * modules/unistr/u32-strcpy: New file.
74000         * lib/unistr/u8-strcpy.c: New file.
74001         * lib/unistr/u16-strcpy.c: New file.
74002         * lib/unistr/u32-strcpy.c: New file.
74003         * lib/unistr/u-strcpy.h: New file.
74004
74005         * modules/unistr/u8-strcspn: New file.
74006         * modules/unistr/u16-strcspn: New file.
74007         * modules/unistr/u32-strcspn: New file.
74008         * lib/unistr/u8-strcspn.c: New file.
74009         * lib/unistr/u16-strcspn.c: New file.
74010         * lib/unistr/u32-strcspn.c: New file.
74011         * lib/unistr/u-strcspn.h: New file.
74012
74013         * modules/unistr/u8-strdup: New file.
74014         * modules/unistr/u16-strdup: New file.
74015         * modules/unistr/u32-strdup: New file.
74016         * lib/unistr/u8-strdup.c: New file.
74017         * lib/unistr/u16-strdup.c: New file.
74018         * lib/unistr/u32-strdup.c: New file.
74019         * lib/unistr/u-strdup.h: New file.
74020
74021         * modules/unistr/u8-strlen: New file.
74022         * modules/unistr/u16-strlen: New file.
74023         * modules/unistr/u32-strlen: New file.
74024         * lib/unistr/u8-strlen.c: New file.
74025         * lib/unistr/u16-strlen.c: New file.
74026         * lib/unistr/u32-strlen.c: New file.
74027         * lib/unistr/u-strlen.h: New file.
74028
74029         * modules/unistr/u8-strmblen: New file.
74030         * modules/unistr/u16-strmblen: New file.
74031         * modules/unistr/u32-strmblen: New file.
74032         * lib/unistr/u8-strmblen.c: New file.
74033         * lib/unistr/u16-strmblen.c: New file.
74034         * lib/unistr/u32-strmblen.c: New file.
74035
74036         * modules/unistr/u8-strmbtouc: New file.
74037         * modules/unistr/u16-strmbtouc: New file.
74038         * modules/unistr/u32-strmbtouc: New file.
74039         * lib/unistr/u8-strmbtouc.c: New file.
74040         * lib/unistr/u16-strmbtouc.c: New file.
74041         * lib/unistr/u32-strmbtouc.c: New file.
74042
74043         * modules/unistr/u8-strncat: New file.
74044         * modules/unistr/u16-strncat: New file.
74045         * modules/unistr/u32-strncat: New file.
74046         * lib/unistr/u8-strncat.c: New file.
74047         * lib/unistr/u16-strncat.c: New file.
74048         * lib/unistr/u32-strncat.c: New file.
74049         * lib/unistr/u-strncat.h: New file.
74050
74051         * modules/unistr/u8-strncmp: New file.
74052         * modules/unistr/u16-strncmp: New file.
74053         * modules/unistr/u32-strncmp: New file.
74054         * lib/unistr/u8-strncmp.c: New file.
74055         * lib/unistr/u16-strncmp.c: New file.
74056         * lib/unistr/u32-strncmp.c: New file.
74057
74058         * modules/unistr/u8-strncpy: New file.
74059         * modules/unistr/u16-strncpy: New file.
74060         * modules/unistr/u32-strncpy: New file.
74061         * lib/unistr/u8-strncpy.c: New file.
74062         * lib/unistr/u16-strncpy.c: New file.
74063         * lib/unistr/u32-strncpy.c: New file.
74064         * lib/unistr/u-strncpy.h: New file.
74065
74066         * modules/unistr/u8-strnlen: New file.
74067         * modules/unistr/u16-strnlen: New file.
74068         * modules/unistr/u32-strnlen: New file.
74069         * lib/unistr/u8-strnlen.c: New file.
74070         * lib/unistr/u16-strnlen.c: New file.
74071         * lib/unistr/u32-strnlen.c: New file.
74072         * lib/unistr/u-strnlen.h: New file.
74073
74074         * modules/unistr/u8-strpbrk: New file.
74075         * modules/unistr/u16-strpbrk: New file.
74076         * modules/unistr/u32-strpbrk: New file.
74077         * lib/unistr/u8-strpbrk.c: New file.
74078         * lib/unistr/u16-strpbrk.c: New file.
74079         * lib/unistr/u32-strpbrk.c: New file.
74080         * lib/unistr/u-strpbrk.h: New file.
74081
74082         * modules/unistr/u8-strrchr: New file.
74083         * modules/unistr/u16-strrchr: New file.
74084         * modules/unistr/u32-strrchr: New file.
74085         * lib/unistr/u8-strrchr.c: New file.
74086         * lib/unistr/u16-strrchr.c: New file.
74087         * lib/unistr/u32-strrchr.c: New file.
74088
74089         * modules/unistr/u8-strspn: New file.
74090         * modules/unistr/u16-strspn: New file.
74091         * modules/unistr/u32-strspn: New file.
74092         * lib/unistr/u8-strspn.c: New file.
74093         * lib/unistr/u16-strspn.c: New file.
74094         * lib/unistr/u32-strspn.c: New file.
74095         * lib/unistr/u-strspn.h: New file.
74096
74097         * modules/unistr/u8-strstr: New file.
74098         * modules/unistr/u16-strstr: New file.
74099         * modules/unistr/u32-strstr: New file.
74100         * lib/unistr/u8-strstr.c: New file.
74101         * lib/unistr/u16-strstr.c: New file.
74102         * lib/unistr/u32-strstr.c: New file.
74103         * lib/unistr/u-strstr.h: New file.
74104
74105         * modules/unistr/u8-strtok: New file.
74106         * modules/unistr/u16-strtok: New file.
74107         * modules/unistr/u32-strtok: New file.
74108         * lib/unistr/u8-strtok.c: New file.
74109         * lib/unistr/u16-strtok.c: New file.
74110         * lib/unistr/u32-strtok.c: New file.
74111         * lib/unistr/u-strtok.h: New file.
74112
74113         * modules/unistr/u8-uctomb: New file.
74114         * modules/unistr/u16-uctomb: New file.
74115         * modules/unistr/u32-uctomb: New file.
74116         * lib/unistr/u8-uctomb.c: New file.
74117         * lib/unistr/u16-uctomb.c: New file.
74118         * lib/unistr/u32-uctomb.c: New file.
74119
74120         * MODULES.html.sh (Unicode string functions): Add the new modules.
74121
74122 2007-01-08  Bruno Haible  <bruno@clisp.org>
74123
74124         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
74125         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
74126         subdirectories.
74127
74128 2007-01-08  Karl Berry  <karl@gnu.org>
74129
74130         * doc/error.texi: mention that main() fns must set program_name
74131         when progname is used.
74132
74133 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
74134
74135         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
74136         WCTYPE_H is empty, for the benefit of builds from non-distclean
74137         directories.  Problem reported by Eric Blake in
74138         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
74139
74140 2007-01-08  Bruno Haible  <bruno@clisp.org>
74141
74142         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
74143         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
74144         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
74145         PROVIDE_CANONICALIZE_FILENAME_MODE.
74146         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
74147
74148 2007-01-08  Bruno Haible  <bruno@clisp.org>
74149
74150         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
74151         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
74152         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
74153         * lib/fts.c: Likewise.
74154         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
74155
74156 2006-12-25  Bruno Haible  <bruno@clisp.org>
74157
74158         * modules/utf8-ucs4-safe: New file.
74159         * lib/utf8-ucs4-safe.h: New file.
74160         * lib/unistr/utf8-ucs4-safe.c: New file.
74161
74162         * modules/utf16-ucs4-safe: New file.
74163         * lib/utf16-ucs4-safe.h: New file.
74164         * lib/unistr/utf16-ucs4-safe.c: New file.
74165
74166         * MODULES.html.sh (Unicode string functions): Add the new modules.
74167
74168 2007-01-08  Bruno Haible  <bruno@clisp.org>
74169
74170         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
74171         (Depends-on): Add unitypes.
74172         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74173         (u8_mbtouc_aux): Move out to separate file.
74174         (u8_mbtouc): Use ucs4_t, uint8_t types.
74175         * lib/unistr/utf8-ucs4.c: New file.
74176
74177         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
74178         (Depends-on): Add unitypes.
74179         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74180         (u16_mbtouc_aux): Move out to separate file.
74181         (u16_mbtouc): Use ucs4_t, uint16_t types.
74182         * lib/unistr/utf16-ucs4.c: New file.
74183
74184         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
74185         (Depends-on): Add unitypes.
74186         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
74187         (u8_uctomb_aux): Move out to separate file.
74188         (u8_uctomb): Use ucs4_t, uint8_t types.
74189         * lib/unistr/ucs4-utf8.c: New file.
74190
74191         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
74192         (Depends-on): Add unitypes.
74193         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
74194         (u16_uctomb_aux): Move out to separate file.
74195         (u16_uctomb): Use ucs4_t, uint16_t types.
74196         * lib/unistr/ucs4-utf16.c: New file.
74197
74198 2006-12-25  Bruno Haible  <bruno@clisp.org>
74199
74200         * modules/unitypes: New file.
74201         * lib/unitypes.h: New file.
74202         * MODULES.html.sh (func_all_modules): New section "Unicode string
74203         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
74204         this section. Add unitypes.
74205
74206 2007-01-08  Bruno Haible  <bruno@clisp.org>
74207
74208         Avoid variable names that conflict with those from libtool.
74209         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
74210         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
74211         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
74212         library_names_spec to acl_library_names_spec, hardcode_* to
74213         acl_hardcode_*.
74214         Reported by Ralf Wildenhues.
74215
74216 2007-01-08  Bruno Haible  <bruno@clisp.org>
74217
74218         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
74219         definition.
74220         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
74221         definition.
74222         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
74223         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
74224         definition.
74225         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
74226         definition.
74227         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
74228         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
74229         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
74230         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
74231         definition.
74232         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
74233         definition.
74234         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
74235         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
74236         GC_USE_<algorithm>.
74237         * lib/gc-libgcrypt.c: Likewise.
74238         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
74239         * modules/gc-arctwo (configure.ac): Likewise.
74240         * modules/gc-des (configure.ac): Likewise.
74241         * modules/gc-hmac-md5 (configure.ac): Likewise.
74242         * modules/gc-hmac-sha1 (configure.ac): Likewise.
74243         * modules/gc-md2 (configure.ac): Likewise.
74244         * modules/gc-md4 (configure.ac): Likewise.
74245         * modules/gc-md5 (configure.ac): Likewise.
74246         * modules/gc-random (configure.ac): Likewise.
74247         * modules/gc-rijndael (configure.ac): Likewise.
74248         * modules/gc-sha1 (configure.ac): Likewise.
74249
74250 2007-01-08  Bruno Haible  <bruno@clisp.org>
74251
74252         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
74253         macro definition.
74254         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
74255         definition.
74256         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
74257         definition.
74258         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
74259         * modules/fcntl-safer (configure.ac): Likewise.
74260         * modules/fopen-safer (configure.ac): Likewise.
74261         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
74262         GNULIB_FWRITEERROR macro definition.
74263
74264 2007-01-08  Bruno Haible  <bruno@clisp.org>
74265
74266         * m4/gnulib-common.m4: New file.
74267         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
74268         (func_get_filelist): Add m4/gnulib-common.m4.
74269
74270 2007-01-08  Bruno Haible  <bruno@clisp.org>
74271
74272         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
74273         command.
74274
74275 2007-01-08  Jim Meyering  <jim@meyering.net>
74276
74277         Use a more robust test for a "can't happen" condition.
74278         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
74279         narrowed the st_size value.  Presuming the "can't happen" condition
74280         is true, that narrowing could conceivably convert an invalid st_size
74281         value into a valid one.  Instead, use a change based on Matthew
74282         Woehlke's original patch.
74283
74284         Slight readability improvement: use an assert-like macro
74285         in place of literal "abort ()" uses.
74286         * lib/fts.c (fts_assert): Define.
74287         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
74288         Use this macro instead of a bare 'abort'.
74289
74290 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
74291
74292         Don't worry about using IRIX 5.3's wctype.h broken definitions;
74293         simply work around them.
74294         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
74295         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
74296         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
74297         declaring.
74298         Don't bother to define as macros, since the standard doesn't require it.
74299         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
74300         longer worry about IRIX 5.3.
74301         (HAVE_WCTYPE_CTMP_BUG): Remove.
74302
74303 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74304
74305         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
74306         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
74307         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
74308         Problems reported by Georg Schwarz for IRIX 5.3.
74309
74310         * gnulib-tool (autoconf_minversion): Take the maximum version number
74311         found, not the minimum.  Problem reported by James Youngman.
74312
74313 2007-01-03  Karl Berry  <karl@gnu.org>
74314
74315         * doc/error.texi: new file, explaining interaction with progname.
74316         * doc/gnulib.texi: include it.  Update copyright.
74317
74318 2007-01-03  Simon Josefsson  <simon@josefsson.org>
74319
74320         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
74321         AC_CANONICAL_HOST, to improve autobuild outputs.
74322
74323 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
74324             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74325
74326         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
74327         sockets, server sockets, and other file descriptors.  Count errors
74328         to compute the return value.  Reorder the code a bit to be easier
74329         to follow.  Don't set event bits that were not requested (except
74330         POLLERR and POLLHUP).
74331
74332 2007-01-01  Bruno Haible  <bruno@clisp.org>
74333
74334         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
74335
74336 2007-01-03  Jim Meyering  <jim@meyering.net>
74337
74338         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
74339
74340 2007-01-02  Bruno Haible  <bruno@clisp.org>
74341
74342         * modules/settime (Include): Require timespec.h.
74343         * modules/nanosleep (Include): Likewise.
74344
74345 2007-01-01  Bruno Haible  <bruno@clisp.org>
74346
74347         * gnulib-tool (func_emit_copyright_notice): Bump year.
74348         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
74349
74350 2007-01-01  Bruno Haible  <bruno@clisp.org>
74351
74352         Improve support for OpenBSD.
74353         * build-aux/config.rpath (libname_spec): Export.
74354         (library_names_spec): New variable. Export.
74355         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
74356         library_names_spec from the config.rpath output. Locate shared library
74357         through the name pattern in library_names_spec.
74358
74359 2007-01-01  Eric Blake  <ebb9@byu.net>
74360
74361         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
74362
74363 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
74364
74365         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
74366         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
74367         assume the C locale, and avoid an "eval" that could cause trouble.
74368         Problem with SORT reported by Bob Proulx.
74369
74370         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
74371         Define.  Trivial patch from Henning Nielsen Lund, originally
74372         sent to bug-grep@gnu.org today.
74373
74374 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
74375
74376         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
74377         struct stat.  Problem reported by Henning Nielsen Lund.
74378         * lib/acl.c: Include acl.h first, to check interface.  Don't
74379         bother to include sys/types.h and sys/stat.h again.
74380
74381 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74382
74383         Import the following change from libc; problem reported by
74384         Sven Verdoolaege.
74385
74386         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
74387
74388         [BZ #1373]
74389         * lib/argp.h: Remove __NTH for __argp_usage inline function.
74390
74391 2006-12-28  Jim Meyering  <jim@meyering.net>
74392
74393         * build-aux/announce-gen: Do not assume that the package
74394         builds any of tar.gz, tar.bz2, and .xdelta files.
74395         Suggestion from Simon Josefsson.
74396
74397 2006-12-28  Simon Josefsson  <simon@josefsson.org>
74398
74399         * modules/announce-gen: New file.
74400
74401 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
74402
74403         * lib/mbchar.h: Just include <wctype.h>; the wctype module
74404         handles its gotchas now.
74405         * lib/mbswidth.c: Likewise.
74406         * lib/wcwidth.h: Likewise.
74407         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
74408         and iswcntrl; the wctype module does this stuff now.
74409         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74410         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74411         * modules/mbchar (Depends-on): Add wctype.
74412         * modules/mbswidth (Depends-on): Likewise.
74413         * modules/wcwidth (Depends-on): Likewise.
74414
74415 2006-12-27  Eric Blake  <ebb9@byu.net>
74416
74417         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
74418         module uses more than what <wctype.h> is required to provide.
74419
74420 2006-12-26  Eric Blake  <ebb9@byu.net>
74421
74422         * gnulib-tool (sed_extract_prog): Avoid space-tab.
74423
74424 2006-12-26  Eric Blake  <ebb9@byu.net>
74425
74426         * modules/absolute-header: New module.
74427         * modules/fcntl (Depends-on): Depend on it.
74428         * modules/inttypes (Depends-on): Likewise.
74429         * modules/stdint (Depends-on): Likewise.
74430         * modules/sys_stat (Depends-on): Likewise.
74431         * modules/wctype (Depends-on): Likewise.
74432         * MODULES.html.sh (Support for building libraries and
74433         executables): Document it.
74434
74435 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
74436
74437         * gnulib-tool (SED): Remove, undoing previous change.
74438         The problem was that it broke coreutils on Solaris, because
74439         "sed --posix" leaked into a makefile.
74440         (sed): New alias, if 'alias' and GNU sed.
74441
74442 2006-12-24  Jim Meyering  <jim@meyering.net>
74443
74444         Work around an fchownat bug in glibc-2.4:
74445         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
74446         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
74447         in spite of the -P option.
74448         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
74449         New macros.
74450         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
74451         * modules/openat (Files): Add lib/fchownat.c.
74452         * lib/openat.c (fchownat): Don't define here.  Move to...
74453         * lib/fchownat.c: ...this new file.
74454
74455 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74456
74457         Fix bug reported by Bruno Haible in
74458         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
74459         where quotearg.c didn't compile on Mac OS X 10.2 because it
74460         lacks <wchar.h> and wint_t.
74461         * lib/wctype_.h (__wctype_wint_t): New type.
74462         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
74463         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
74464         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
74465         Arg is now of type __wctype_wint_t, not wint_t.
74466         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
74467         substitute HAVE_WINT_T.
74468         * modules/wctype (Files): Add m4/wint_t.m4.
74469         (wctype.h): Substitute HAVE_WINT_T.
74470
74471 2006-12-23  Bruno Haible  <bruno@clisp.org>
74472
74473         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
74474
74475 2006-12-23  Bruno Haible  <bruno@clisp.org>
74476
74477         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
74478         S_ISLNK.
74479         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
74480         mingw.
74481
74482 2006-12-22  Bruno Haible  <bruno@clisp.org>
74483
74484         * lib/copy-file.c: Include acl.h.
74485         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
74486         Close the file descriptors only after being done with copy_acl.
74487         * modules/copy-file (Depends-on): Add acl.
74488
74489 2006-12-22  Bruno Haible  <bruno@clisp.org>
74490
74491         * gnulib-tool (SED): New variable.
74492         Use $SED instead of sed everywhere.
74493
74494 2006-12-22  Bruno Haible  <bruno@clisp.org>
74495
74496         * modules/no-c++: New file.
74497         * m4/no-c++.m4: New file.
74498         * MODULES.html.sh (Support for building libraries and executables):
74499         Add no-c++.
74500
74501 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
74502
74503         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74504         Include <limits.h>, and use its INT_MAX to rewrite the
74505         j loop so that it does not overflow 'int'.  Problem reported by
74506         Ralf Wildenhues in
74507         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
74508         Play it safe by shifting left by 1 rather than multiplying by 2,
74509         as GCC is less likely to optimize this away when the value
74510         is signed (when it assumes overflow leads to undefined behavior).
74511         Also, don't assume time_t uses two's complement.
74512
74513 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
74514
74515         * MODULES.html.sh: New module wctype.
74516         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
74517         * lib/fnmatch.c: Don't bother to include <wchar.h> before
74518         <wctype.h>, since the new wctype module should fix this.
74519         * lib/quotearg.c: Include <wctype.h> unconditionally, since
74520         the wctype module should arrange for it.
74521         * lib/regex_internal.h: Likewise.
74522         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
74523         since the wctype module should handle this now.
74524         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
74525         * modules/fnmatch (Depends-on): Add wctype.
74526         * modules/quotearg (Depends-on): Likewise.
74527         * modules/regex (Depends-on): Likewise.
74528
74529 2006-12-19  Bruno Haible  <bruno@clisp.org>
74530
74531         * lib/strdup.h [C++]: Wrap definitions in extern "C".
74532         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
74533
74534 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74535
74536         * modules/savewd (Depends-on): Fix dependency on fcntl.
74537
74538 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74539
74540         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
74541         conforms to C99, rather than relying on the user's environment
74542         setting of STDINT_H.
74543
74544 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74545         and Eric Blake  <ebb9@byu.net>
74546
74547         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
74548         This is more consistent with the other defines here.
74549         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
74550         Port to z/OS.  Problem reported by Paul Gilmartin.
74551         Change local vars to use gl_ prefix rather than ac_.
74552         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
74553         with other defines.
74554         * modules/double-slash-root: New module.
74555         * modules/dirname (Files): Remove m4/double-slash-root.m4.
74556         (Depends-on): Add double-slash-root.
74557         * MODULES.html.sh (File system functions): Mention new module.
74558
74559 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
74560
74561         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
74562         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
74563         This is for the benefit of gzip, which doesn't do i18n.
74564
74565 2006-12-12  Jim Meyering  <jim@meyering.net>
74566
74567         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
74568         Reported by Andreas Schwab <schwab@suse.de>.
74569
74570 2006-12-12  Bruno Haible  <bruno@clisp.org>
74571
74572         Merge these changes.
74573         2006-09-05  Bruno Haible  <bruno@clisp.org>
74574         * lib/iconvme.c (iconv_string): No need to save and restore errno when
74575         iconv_alloc succeeded.
74576         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
74577         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
74578         test for " && dest " at the end - dest is always != NULL there. Call
74579         iconv with 4xNULL arguments initially, to reset the state. Call iconv
74580         with 2xNULL arguments, also to flush the state storage. Handle the
74581         IRIX iconv behaviour. Realloc the final result, to throw away unused
74582         memory.
74583
74584 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
74585
74586         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
74587         and fchmodat unconditionally, since glibc 2.4 has them.
74588         Problem reported by Arkadiusz Miskiewicz.
74589
74590 2006-12-10  Bruno Haible  <bruno@clisp.org>
74591
74592         * gnulib-tool (func_import): Show the include files only for those
74593         modules that are copied and specified.
74594         Reported by Karl Berry.
74595
74596 2006-12-08  Jim Meyering  <jim@meyering.net>
74597
74598         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
74599         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
74600
74601         * build-aux/announce-gen: Add two new options, both optional:
74602         --bootstrap-tools=TOOL_LIST
74603               a comma-separated list of tools, e.g.,
74604               autoconf,automake,bison,gnulib
74605         --gnulib-snapshot-date=DATE
74606               if gnulib is in the bootstrap tool list,
74607               then report this as the snapshot date.
74608               If not specified, use the current date/time.
74609               If you specify a date here, be sure it's UTC.
74610
74611 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74612
74613         * tests/test-argp-2.sh: Fix test to match actual output.
74614         (func_compare): Fix sed script to be portable.
74615
74616 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
74617
74618         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
74619         workaround for this case.  It is not autoconfigured now; offhand
74620         it's hard to see how to autoconfigure it.
74621
74622 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
74623
74624         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
74625         a directory that is about to be chowned.  Such a directory's
74626         initial file permissions should permit the owner only and this
74627         should not be changed until after the chown, since the group and
74628         other bits would be incorrect if they granted permission before
74629         the chown.
74630
74631         Fix porting problem for iswctype reported by Georg Schwarz in:
74632         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
74633         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
74634         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
74635         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
74636         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
74637
74638 2006-12-03  Jim Meyering  <jim@meyering.net>
74639
74640         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
74641         p->fts_statp may not yet be defined.
74642         (fts_read): Instead, set it in the caller, once p->fts_statp is
74643         sure to be defined, and corresponds to a top-level directory.
74644         This bug made du -x fail.  Here's the coreutils test case:
74645         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
74646         Reported by Mike Frysinger.
74647
74648 2006-12-01  Jim Meyering  <jim@meyering.net>
74649
74650         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
74651         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
74652         Reported by Simon Josefsson.
74653
74654 2006-11-30  Jim Meyering  <jim@meyering.net>
74655
74656         * m4/warning.m4: Use the all-permissive copyright notice
74657         recommended by RMS (rather than LGPL).
74658         * m4/vararrays.m4: Likewise.
74659         * m4/flexmember.m4: Likewise.
74660
74661 2006-11-29  Bruno Haible  <bruno@clisp.org>
74662
74663         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74664         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
74665         using +=.
74666         Reported by Simon Josefsson <simon@josefsson.org>.
74667
74668 2006-11-28  James Youngman <jay@gnu.org>
74669
74670         * README: Advise users that they might find the bug-gnulib@gnu.org
74671         and autotools-announce@gnu.org mailing lists useful.
74672
74673 2006-11-28  Bruno Haible  <bruno@clisp.org>
74674
74675         * m4/ptrdiff_max.m4: Remove file.
74676
74677 2006-11-21  Bruno Haible  <bruno@clisp.org>
74678
74679         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
74680         _AC_COMPUTE_INT.
74681         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74682         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
74683         _AC_COMPUTE_INT.
74684         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74685         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
74686         _AC_COMPUTE_INT.
74687         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74688
74689 2006-11-28  Jim Meyering  <jim@meyering.net>
74690
74691         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
74692         warning from "gcc -Wshadow" about shadowing the builtin.
74693
74694 2006-11-27  Bruno Haible  <bruno@clisp.org>
74695
74696         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
74697         _AC_COMPUTE_INT.
74698         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74699
74700 2006-11-27  Bruno Haible  <bruno@clisp.org>
74701             Paul Eggert  <eggert@cs.ucla.edu>
74702
74703         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
74704
74705 2006-11-26  Bruno Haible  <bruno@clisp.org>
74706
74707         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74708         noinst_LTLIBRARIES.
74709
74710 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74711             Bruno Haible  <bruno@clisp.org>
74712
74713         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
74714         if compiling with "gcc -ansi".
74715
74716 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74717
74718         Fix some incompatibilities with gcc -ansi -pedantic.
74719         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
74720         if compiling pedantically with GCC, unless it's C99 or later.
74721         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
74722         it mishandles gcc -ansi -pedantic as well.
74723         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
74724         if gcc -pedantic.
74725         * lib/regexec.c (check_node_accept_bytes): Don't use auto
74726         initializers for struct if -pedantic, unless it's C99 or later.
74727
74728 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
74729
74730         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
74731         Don't close an fd more than once. Identical atimes indicate
74732         success, not failure.
74733
74734 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
74735
74736         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
74737
74738 2006-11-23  Jim Meyering  <jim@meyering.net>
74739
74740         * build-aux/announce-gen: New file.  From coreutils.
74741
74742 2006-11-22  Jim Meyering  <jim@meyering.net>
74743
74744         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
74745         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
74746         (fts_read): Use a temporary to narrow the overused st_size member
74747         before using it in a switch statement.  Reported by Matthew Woehlke.
74748
74749         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
74750         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74751
74752 2006-11-20  Bruno Haible  <bruno@clisp.org>
74753
74754         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
74755         changequote instead of pairs of brackets.
74756         Reported by Andreas Schwab <schwab@suse.de>.
74757
74758 2006-11-21  Jim Meyering  <jim@meyering.net>
74759
74760         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
74761         so as to remain compatible with older compilers.
74762         Patch from Michael Deutschmann.
74763
74764 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74765
74766         * MODULES.html.sh (File system functions): Add openat.
74767
74768         * lib/openat.h (rpl_fstatat): New macro, if
74769         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
74770         (fstatat): Define to rpl_fstatat under the same conditions,
74771         unless COMPILING_FSTATAT.
74772         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
74773         seems to have the bug.
74774         * lib/fstatat.c: New file.
74775         * modules/openat (Files): Add it.
74776
74777 2006-11-20  Bruno Haible  <bruno@clisp.org>
74778
74779         * Makefile: New file.
74780
74781 2006-11-20  Jim Meyering  <jim@meyering.net>
74782
74783         The beginnings of syntax-related checks for gnulib.
74784         * lib/Makefile: New file.
74785         * lib/t-idcache: New script.  Ensure that the two halves of
74786         idcache.c stay in sync.
74787
74788         * lib/idcache.c: Adjust comments in user- and group- portions to
74789         be more accurate, and to be consistent with one another.
74790
74791 2006-11-20  Jim Meyering  <jim@meyering.net>
74792
74793         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
74794         continue using the flexible array member (thus, this module performs
74795         half as many malloc calls), with the addition that...
74796         (getgroup, getuser): Consistently record a non-match via an empty
74797         "name" string, and map an empty string match to a NULL return value.
74798         * modules/idcache (Depends-on): Re-add flexmember.
74799
74800         * lib/idcache.c (getuser): Remove all uses of the register keyword.
74801         (getuidbyname, getgroup, getgidbyname): Likewise.
74802
74803         Use cleaner syntax: NULL rather than 0.
74804         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
74805
74806 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74807
74808         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
74809         It mishandled the case where the group was missing.
74810         Problem reported by Greg Schafer.
74811         * modules/idcache: Likewise.
74812
74813 2006-11-18  Jim Meyering  <jim@meyering.net>
74814
74815         * check-module (%exempt_header): Add exception for some
74816         conditionally-included headers.
74817
74818         * modules/i-ring (Depends-on): Add verify.
74819         (License): Change to LGPL.
74820
74821 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74822
74823         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
74824         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
74825         and inttostr.h.  Use snprintf rather than uinttostr, so that
74826         LGPLed code doesn't depend on GPLed.
74827
74828 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74829
74830         * modules/inline (License): Change from GPL to LGPL.
74831
74832 2006-11-17  Jim Meyering  <jim@meyering.net>
74833
74834         * modules/d-type (License): Switch to LGPL.
74835
74836 2006-11-15  Bruno Haible  <bruno@clisp.org>
74837
74838         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
74839
74840 2006-11-15  Eric Blake  <ebb9@byu.net>
74841
74842         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
74843         the module dependency.
74844
74845 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74846             Bruno Haible  <bruno@clisp.org>
74847
74848         * gnulib-tool (func_create_testdir): Add license consistency check.
74849
74850 2006-11-15  Eric Blake  <ebb9@byu.net>
74851
74852         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
74853         random "(cached)" in configure output.
74854
74855 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74856
74857         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
74858         test for conforming inttypes.h is both announced and cached.
74859
74860         * MODULES.html.sh (seen_modules, seen_files): New variables.
74861         (func_module): Rewrite to use a few less gnulib-tool and sed
74862         invocations.  Avoid a couple of quadratic algorithms for ...
74863         (missed_modules, missed_files): ... these, with ...
74864         (func_append, func_tmpdir): ... these new functions, from
74865         gnulib-tool.  Analogously, install traps for cleanup.
74866
74867         * tests/test-gc.c (main): Remove unused variables.
74868         * tests/test-read-file.c: Include stdlib.h, for 'free'.
74869
74870 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
74871
74872         * modules/inttostr (License): Change to LGPL.
74873
74874 2006-11-14  Eric Blake  <ebb9@byu.net>
74875
74876         * modules/tempname (License): Change to LGPL.
74877
74878 2006-11-14  Eric Blake  <ebb9@byu.net>
74879
74880         * doc/functions.texi (Function Portability): *printf functions on
74881         Cygwin now understand all POSIX size specifiers.
74882
74883 2006-11-14  Bruno Haible  <bruno@clisp.org>
74884
74885         * modules/c-ctype (License): Change to LGPL.
74886
74887 2006-11-12  Bruno Haible  <bruno@clisp.org>
74888
74889         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
74890         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
74891         for GNOME libraries, for which the include files are installed in
74892         subdirectories of $prefix/include.
74893
74894 2006-11-12  Bruno Haible  <bruno@clisp.org>
74895
74896         * m4/lib-link.m4: Require at least autoconf-2.54.
74897         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
74898         name to underscores for the --with option.
74899
74900 2006-11-13  Bruno Haible  <bruno@clisp.org>
74901
74902         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
74903         the tests directory.
74904         Reported by Ralf Wildenhues.
74905
74906 2006-11-13  Bruno Haible  <bruno@clisp.org>
74907
74908         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
74909         (func_emit_initmacro_end): Undo the override here.
74910         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
74911         Works around the famous automake error in coreutils.
74912
74913 2006-11-13  Eric Blake  <ebb9@byu.net>
74914
74915         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
74916         element, not its node.
74917
74918 2006-11-12  Bruno Haible  <bruno@clisp.org>
74919
74920         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
74921         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
74922
74923 2006-11-12  Bruno Haible  <bruno@clisp.org>
74924
74925         * gnulib-tool: New option --local-symlink.
74926         (func_usage): Document it.
74927         (lsymbolic): New variable.
74928         (func_import, func_create_testdir): If --symlink was not specified,
74929         test whether --local-symlink was specified and the file comes from
74930         the local_gnulib_dir.
74931
74932 2006-11-12  Bruno Haible  <bruno@clisp.org>
74933
74934         * gnulib-tool (func_ln): New function.
74935         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
74936
74937 2006-11-12  Bruno Haible  <bruno@clisp.org>
74938
74939         Finish support for source files in subdirectories.
74940         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
74941         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
74942         AUTOMAKE_OPTIONS.
74943         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
74944
74945 2006-11-12  Bruno Haible  <bruno@clisp.org>
74946
74947         * gnulib-tool (func_get_automake_snippet): Synthesize also an
74948         EXTRA_lib_SOURCES augmentation.
74949         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
74950
74951 2006-11-12  Jim Meyering  <jim@meyering.net>
74952
74953         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
74954         file descriptors.  This also averts a failure on systems with
74955         native openat support when a traversed directory lacks "x" access.
74956         * lib/fts_.h: Include "i-ring.h"
74957         (struct FTS) [fts_fd_ring]: New member.
74958         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
74959         (FCHDIR): Add parentheses.
74960         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
74961         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
74962         When descending, rather than simply closing the previous
74963         fts_cwd_fd value, push that file descriptor onto the ring.
74964         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
74965         (fts_open): Initialize the new fd_ring member.
74966         (fts_close): Clear the ring.
74967         (fts_safe_changedir): When possible, use our new fd_ring to skip
74968         the diropen and fstat and dev/ino comparison that would normally
74969         accompany a virtual `chdir ("..")'.
74970
74971         * modules/fts (Depends-on): Add i-ring.
74972         * modules/i-ring: New module.
74973         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
74974         * m4/i-ring.m4: New file.
74975
74976 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74977
74978         * gnulib-tool (func_create_testdir): Fix replacement of
74979         `build-aux' in configure.ac.  Run autotools in gltests
74980         subdirectory.
74981         (func_create_testdir, func_create_megatestdir, test): There is
74982         no need for '--force' in most autotool invocations in a new
74983         tree.  Actually fail the whole test if any of the tools, or the
74984         configure or make stages fail.
74985
74986         Sync from Automake.
74987         * build-aux/gnupload: Revert last change.  Add pointer to upload
74988         instructions of the GNU Maintenance Instructions.
74989         Suggestion by Karl Berry.
74990
74991 2006-11-10  Jim Meyering  <jim@meyering.net>
74992
74993         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
74994
74995 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74996
74997         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
74998         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
74999         (bind_textdomain_codeset) [! ENABLE_NLS]:
75000         Evaluate all the arguments.  That way, callers get compatible behavior
75001         if the arguments have side effects.  Also, it avoids some GCC
75002         diagnostics in some cases; Joel E. Denny reported problems when Bison
75003         was configured with --enable-gcc-warnigs.
75004
75005 2006-11-10  Jim Meyering  <jim@meyering.net>
75006
75007         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
75008         relevant options in CFLAGS (like -O, -fno-inline) are taken into
75009         account.
75010
75011 2006-11-10  Jim Meyering  <jim@meyering.net>
75012
75013         * modules/inline: New file/module.
75014         * modules/xalloc (Files): Remove m4/inline.m4.
75015         (Depends-on): Add inline, instead.
75016         * modules/oset: Likewise.
75017         * modules/list: Likewise.
75018
75019 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75020
75021         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
75022         Problem reported by Matthew Woehlke.
75023
75024 2006-11-09  Bruno Haible  <bruno@clisp.org>
75025
75026         * lib/tempname.c (gen_tempname): Remove variant that invokes
75027         __gen_tempname.
75028         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
75029         __gen_tempname.
75030
75031 2006-11-08  Bruno Haible  <bruno@clisp.org>
75032
75033         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
75034         to 'yes' instead of 'cross-compiling'.
75035
75036 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
75037
75038         * lib/quotearg.h (quotearg_free): New decl.
75039         * lib/quotearg.c (quotearg_free): New function.
75040         (slot0, nslots, slotvec0, slotvec):
75041         Now file-scope so that quotearg_free can get at them.
75042
75043 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75044
75045         Sync from Automake.
75046         * build-aux/gnupload: Add missing 'gnu' to example URL.
75047         Report by Karl Berry.
75048
75049 2006-11-08  Bruno Haible  <bruno@clisp.org>
75050
75051         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
75052         Suggested by Paul Eggert.
75053
75054 2006-11-08  Jim Meyering  <jim@meyering.net>
75055
75056         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
75057         It's already included if !_LIBC.
75058         (fts_safe_changedir): Add a comment.
75059
75060 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75061
75062         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
75063         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
75064         Matthew Woehlke.
75065
75066         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
75067         definitions up, to avoid colliding with change below.
75068         (static_inline) [HAVE_INLINE]: New macro.
75069         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
75070         Provide extern decls when !HAVE_INLINE.  Do not define unless
75071         static_inline is defined, either by us or by xmalloc.c.  Use
75072         static_inline rather than static inline.
75073         (XCALLOC): Optimize sizeof(T) = 1 case.
75074         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
75075
75076 2006-11-07  Bruno Haible  <bruno@clisp.org>
75077
75078         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
75079         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
75080         AC_C_INLINE.
75081         * modules/xalloc (Files): Add m4/inline.m4.
75082
75083 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75084
75085         * README: Fix typo.
75086         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
75087         (Miscellanous Notes): ...from this.
75088
75089 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75090
75091         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
75092         Mention that offsetof should be used instead of sizeof.
75093         From Bruno Haible.
75094
75095 2006-11-07  Bruno Haible  <bruno@clisp.org>
75096
75097         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
75098
75099 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75100
75101         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75102         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
75103         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75104         (gl_tree_add_before, gl_tree_add_after):
75105         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
75106         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
75107         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
75108         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
75109         (gl_linked_add_after, gl_linked_add_at): Likewise.
75110         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
75111         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75112         (gl_tree_add_before, gl_tree_add_after): Likewise.
75113         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
75114         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
75115         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75116
75117 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75118
75119         * lib/gl_oset.h: Use C comment style, not C++ comment style.
75120
75121 2006-11-06  Bruno Haible  <bruno@clisp.org>
75122
75123         * m4/inline.m4: New file.
75124         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
75125         * modules/list (Files): Add m4/inline.m4.
75126         * modules/oset (Files): Likewise.
75127
75128 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75129
75130         * lib/idcache.c: Include <stddef.h>, for offsetof.
75131         (struct userid.name): Change from char * to a flexible array member.
75132         All uses changed.
75133         * modules/idcache (Depends-on): Add flexmember.
75134
75135         * MODULES.html.sh (Core language properties): New module flexmember.
75136         * modules/flexmember, m4/flexmember.m4: New files.
75137
75138         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
75139         inline functions that are identical with the old xnmalloc_inline,
75140         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
75141         that we can avoid some unnecessary integer multiplications and
75142         divisions in the common case where the element size is known at
75143         compile time.
75144         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
75145         needed.
75146         (xnboundedmalloc): Remove.
75147         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
75148         arguments, for consistency with rest of this header.
75149         (xcharalloc): Rewrite using XNMALLOC.
75150         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
75151         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
75152         versions have been moved to lib/xalloc.h and renamed to be the
75153         non-*_inline versions.
75154         (xmalloc, xrealloc): Implement without reference to the xnmalloc
75155         and xnrealloc functions, since those functions are now inline and
75156         now call us.
75157         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
75158         renaming described above.
75159         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
75160         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
75161         captures the dependency in AC_C_INLINE.
75162
75163         New module canonicalize-lgpl, proposed by Charles Wilson in
75164         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
75165         with a few small changes afterwards.
75166         * MODULES.html.sh (File system functions): New module
75167         canonicalize-lgpl.
75168         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
75169         and canonicalize_file_name.
75170         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
75171         * modules/canonicalize-lgpl: New files.
75172
75173 2006-11-05  Bruno Haible  <bruno@clisp.org>
75174
75175         * gnulib-tool (func_import, func_create_testdir): Create directories
75176         also for files in subdirectories of lib/.
75177
75178 2006-11-05  Bruno Haible  <bruno@clisp.org>
75179
75180         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
75181         ANSI C compliant.
75182
75183 2006-11-03  Bruno Haible  <bruno@clisp.org>
75184
75185         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75186         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
75187         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
75188         (xnboundedmalloc): New inline function.
75189         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
75190         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
75191         xmalloc.
75192         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
75193         xmalloc.
75194         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
75195         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
75196         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
75197         xmalloc.
75198         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75199         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
75200         xmalloc.
75201         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
75202         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75203         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
75204         xmalloc.
75205         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75206         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
75207         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75208         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
75209         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
75210         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
75211         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
75212
75213 2006-11-03  Bruno Haible  <bruno@clisp.org>
75214
75215         * lib/c-ctype.h [C++]: Define functions without name mangling.
75216         * lib/fwriteerror.h [C++]: Likewise.
75217         * lib/gcd.h [C++]: Likewise.
75218         * lib/linebreak.h [C++]: Likewise.
75219
75220 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75221
75222         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
75223         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
75224         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
75225         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75226         Check for functions and headers just once.
75227         Check for declaration of canonicalize_file_name.
75228         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
75229
75230 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75231
75232         * gnulib-tool (func_import): Fix typo in actioncmd.
75233
75234 2006-11-02  Bruno Haible  <bruno@clisp.org>
75235
75236         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
75237         newline sequence in the Makefile.am snippet as a space, like "make"
75238         does.
75239         Reported by Roger Persson <perrog@gmail.com>.
75240
75241 2006-11-01  Bruno Haible  <bruno@clisp.org>
75242
75243         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
75244         already declared in <string.h>.
75245         * lib/strcase.h (strncasecmp): Don't declare it if yes.
75246
75247 2006-11-01  Bruno Haible  <bruno@clisp.org>
75248
75249         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
75250         * lib/strcase.h: Include <string.h>.
75251         (strcasecmp): Define to rpl_strcasecmp here.
75252
75253 2006-11-01  Bruno Haible  <bruno@clisp.org>
75254
75255         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
75256
75257 2006-11-01  Eric Blake  <ebb9@byu.net>
75258
75259         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
75260
75261         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
75262
75263 2006-10-29  Bruno Haible  <bruno@clisp.org>
75264
75265         Make it compile in C++ mode.
75266         * lib/full-write.c (full_rw): Add a cast.
75267
75268 2006-11-01  Bruno Haible  <bruno@clisp.org>
75269
75270         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
75271         be POSIX compliant.
75272         Reported by Roger Persson <perrog@gmail.com>.
75273
75274 2006-11-01  Eric Blake  <ebb9@byu.net>
75275
75276         * lib/getopt_.h: Fix comments.
75277
75278 2006-10-31  Eric Blake  <ebb9@byu.net>
75279
75280         * modules/tmpdir (Depends-on): Add sys_stat.
75281         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
75282         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
75283         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
75284         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
75285         tempname.
75286
75287 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
75288
75289         Avoid some C++ diagnostics reported by Bruno Haible.
75290         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
75291         xmalloc.
75292         (quotearg_alloc): Use xcharalloc rather than xmalloc.
75293         (struct slotvec): Move to top level.
75294         (quotearg_n_options): Rewrite to avoid xmalloc.
75295         * lib/xalloc.h (xcharalloc): New function.
75296         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
75297         [defined __cplusplus]: Add function template that provides result
75298         type propagation.  This part of the change is from Bruno Haible.
75299
75300 2006-10-29  Bruno Haible  <bruno@clisp.org>
75301
75302         Make it compile in C++ mode.
75303         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
75304         * lib/strnlen1.c (strnlen1): Cast memchr result.
75305         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
75306         * lib/clean-temp.c (string_equals, string_hash): Add casts.
75307         (create_temp_dir): Rename local variable 'template'.
75308         (compile_csharp_using_sscli): Add cast.
75309         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
75310         * lib/findprog.c (find_in_path): Likewise.
75311         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
75312         * lib/wait-process.c (register_slave_subprocess): Likewise.
75313
75314 2006-10-22  Bruno Haible  <bruno@clisp.org>
75315
75316         * modules/tsearch: New file.
75317         * lib/tsearch.h: New file.
75318         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
75319         * m4/tsearch.m4: New file.
75320         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
75321
75322 2006-10-29  Eric Blake  <ebb9@byu.net>
75323
75324         * lib/arcfour.c: Assume config.h.
75325         * lib/arctwo.c: Likewise.
75326         * lib/base64.c: Likewise.
75327         * lib/check-version.c: Likewise.
75328         * lib/crc.c: Likewise.
75329         * lib/des.c: Likewise.
75330         * lib/gc-gnulib.c: Likewise.
75331         * lib/gc-libgcrypt.c: Likewise.
75332         * lib/gc-pbkdf2-sha1.c: Likewise.
75333         * lib/getaddrinfo.c: Likewise.
75334         * lib/getdelim.c: Likewise.
75335         * lib/getline.c: Likewise.
75336         * lib/hmac-md5.c: Likewise.
75337         * lib/hmac-sha1.c: Likewise.
75338         * lib/iconvme.c: Likewise.
75339         * lib/md2.c: Likewise.
75340         * lib/md4.c: Likewise.
75341         * lib/memxor.c: Likewise.
75342         * lib/read-file.c: Likewise.
75343         * lib/readline.c: Likewise.
75344         * lib/rijndael-alg-fst.c: Likewise.
75345         * lib/rijndael-api-fst.c: Likewise.
75346         * lib/xgetdomainname.c: Likewise.
75347
75348 2006-10-28  Eric Blake  <ebb9@byu.net>
75349
75350         * lib/xstrndup.c: Assume config.h.
75351
75352 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75353
75354         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
75355         stat-macros.h is now for our own macros, whereas stat_h is for
75356         macros in the <sys/stat.h> name space.
75357         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
75358         (STAT_MACROS_H): Remove.
75359         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
75360         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
75361         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
75362         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
75363         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
75364         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
75365         Move these macros to ...
75366         * lib/stat_.h: here.  Don't include stat-macros.h.
75367         * lib/canonicalize.c: Don't include stat-macros.h.
75368         * lib/chown.c: Likewise.
75369         * lib/euidaccess.c: Likewise.
75370         * lib/file-type.c: Likewise.
75371         * lib/filemode.c: Likewise.
75372         * lib/glob.c: Likewise.
75373         * lib/isapipe.c: Likewise.
75374         * lib/lchown.c: Likewise.
75375         * lib/lstat.c: Likewise.
75376         * lib/mkdir-p.c: Likewise.
75377         * lib/rmdir.c: Likewise.
75378         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
75379         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
75380         unless mkdir isn't declared, to speed up 'configure'.
75381         Always create sys/stat.h, since it's unlikely any real sys/stat.h
75382         would define all the S_* symbols.
75383         * modules/canonicalize (Depends-on):
75384         Depend on sys_stat, not stat-macros.
75385         * modules/chown: Likewise.
75386         * modules/euidaccess: Likewise.
75387         * modules/filemode: Likewise.
75388         * modules/file-type: Likewise.
75389         * modules/glob: Likewise.
75390         * modules/isapipe: Likewise.
75391         * modules/lchown: Likewise.
75392         * modules/lstat: Likewise.
75393         * modules/mkancesdirs: Likewise.
75394         * modules/rmdir: Likewise.
75395         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
75396         * modules/modechange: Likewise.
75397         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
75398         (configure.ac): Remove gl_STAT_MACROS.
75399         * modules/sys_stat (Depends-on): Remove stat-macros.
75400
75401 2006-10-27  Bruno Haible  <bruno@clisp.org>
75402
75403         * m4/signed.m4: Remove file.
75404         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
75405         invocation.
75406         * modules/vasnprintf (Files): Remove m4/signed.m4.
75407
75408 2006-10-27  Bruno Haible  <bruno@clisp.org>
75409
75410         Update to GNU gettext 0.16.
75411         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
75412         m4/inttypes-h.m4, m4/signed.m4.
75413         * m4/gettext.m4: Update to GNU gettext 0.16.
75414         * m4/intl.m4: New file, from GNU gettext.
75415         * m4/intldir.m4: New file, from GNU gettext.
75416         * config/srclist.txt: Update
75417
75418 2006-10-27  Eric Blake  <ebb9@byu.net>
75419
75420         * MODULES.html.sh: Document tempname.
75421         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
75422         dependencies.
75423         (Files): Move lib/tempname.c...
75424         * modules/tempname: ...to this new module.
75425         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
75426         (gl_PREREQ_TEMPNAME): Move...
75427         * m4/tempname.m4: ...to this new file.
75428         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
75429         * modules/sys_stat (Depends-on): Add stat-macros.
75430         * lib/stat_.h (includes): Pick up stat macros.
75431         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
75432         if stat macros are broken.
75433         * lib/tempname.c (includes): No need to include "stat-macros.h".
75434         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
75435         (direxists, __path_search) [!_LIBC]: Don't compile these in
75436         gnulib; the tmpdir module covers that.
75437         * lib/tempname.h: New file.
75438
75439 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
75440
75441         * COPYING: Explain how gnulib-tool converts licence headers.
75442         Almost all wording by Eric Blake.
75443
75444 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
75445
75446         * lib/mbchar.h (is_basic_table): Make read-only.
75447         * lib/mbchar.c (is_basic_table): Likewise.
75448         Reported by John Darrington.
75449
75450 2006-10-25  Bruno Haible  <bruno@clisp.org>
75451
75452         * lib/progname.h (set_program_name): Undefine before defining.
75453
75454 2006-10-25  Bruno Haible  <bruno@clisp.org>
75455
75456         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
75457         false for non-gcc C++ compilers.
75458         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75459
75460 2006-10-24  Bruno Haible  <bruno@clisp.org>
75461
75462         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
75463         iconv implementations like Irix iconv.
75464
75465 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75466
75467         * modules/vararrays: New file.
75468         * m4/vararrays.m4: New file, taken from diffutils.
75469         * MODULES.html.sh: New module vararrays.
75470
75471 2006-10-24  Karl Berry  <karl@gnu.org>
75472
75473         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
75474         Don't call GNU Unix.
75475
75476 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75477
75478         * users.txt: Add Libtool.
75479
75480         Sync from Libtool:
75481
75482         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75483
75484         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
75485         to gnulib's policy of including config.h unconditionally.
75486
75487 2006-10-24  Bruno Haible  <bruno@clisp.org>
75488
75489         * modules/wcwidth (Files): Add m4/wint_t.m4.
75490         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
75491         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
75492
75493 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75494
75495         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
75496         to pacify GCC with some -W flags enabled.  Problem reported by
75497         Bruno Haible.
75498
75499 2006-10-24  Jim Meyering  <jim@meyering.net>
75500
75501         * MODULES.html.sh: Remove uinttostr.  It's not a module.
75502         Reported by Karl Berry.
75503
75504 2006-10-23  Bruno Haible  <bruno@clisp.org>
75505
75506         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
75507
75508 2006-10-24  Bruno Haible  <bruno@clisp.org>
75509
75510         * lib/gl_list.h: Use C comment style, not C++ comment style.
75511
75512 2006-10-23  Eric Blake  <ebb9@byu.net>
75513
75514         * lib/getaddrinfo.c (includes): Add missing include.
75515
75516 2006-10-23  Bruno Haible  <bruno@clisp.org>
75517             Paul Eggert  <eggert@cs.ucla.edu>
75518
75519         Ability to rename obstack_free.
75520         * lib/obstack.h (__obstack_free): New macro. Declare instead of
75521         obstack_free.
75522         (obstack_free): Invoke the __obstack_free macro.
75523         * lib/obstack.c (obstack_free): Use __obstack_free macro.
75524
75525 2006-10-23  Bruno Haible  <bruno@clisp.org>
75526             Paul Eggert  <eggert@cs.ucla.edu>
75527
75528         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
75529         __argc, __argv from the declaration. (They are defined as macros on
75530         mingw.)
75531
75532 2006-10-22  Bruno Haible  <bruno@clisp.org>
75533
75534         * doc/gnulib-intro.texi: New file.
75535         * doc/gnulib.texi: Include it.
75536
75537 2006-10-21  Bruno Haible  <bruno@clisp.org>
75538
75539         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
75540         "Introduction", "Miscellanous Notes", "Particular Modules".
75541
75542 2006-10-21  Bruno Haible  <bruno@clisp.org>
75543
75544         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75545         Change mostlyclean-local rule to avoid sh syntax error from bash
75546         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
75547
75548 2006-10-23  Jim Meyering  <jim@meyering.net>
75549
75550         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
75551         in place of snprintf.
75552
75553         * modules/inttostr (Files): Add lib/uinttostr.c.
75554         * lib/uinttostr.c (inttostr): New file/function.
75555         * lib/inttostr.h (uinttostr): Declare.
75556         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
75557         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75558         Add uinttostr.
75559         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
75560
75561 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75562
75563         * lib/canonicalize.c (ELOOP): Define if not already defined.
75564         Problem reported by Bruno Haible in
75565         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
75566
75567 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75568
75569         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
75570         Problem reported by Perry Smith and Ville Laurikari.
75571
75572         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
75573         uses.
75574
75575 2006-10-19  Bruno Haible  <bruno@clisp.org>
75576
75577         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
75578         for mingw.
75579
75580 2006-10-19  Bruno Haible  <bruno@clisp.org>
75581
75582         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
75583         Needed for mingw.
75584
75585 2006-10-19  Bruno Haible  <bruno@clisp.org>
75586
75587         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
75588
75589 2006-10-19  Bruno Haible  <bruno@clisp.org>
75590
75591         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
75592         it.
75593
75594 2006-10-19  Bruno Haible  <bruno@clisp.org>
75595
75596         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
75597         invocation.
75598
75599 2006-10-19  Bruno Haible  <bruno@clisp.org>
75600
75601         * gnulib-tool (func_create_testdir): Don't include ftruncate and
75602         mountlist by default.
75603
75604 2006-10-16  Bruno Haible  <bruno@clisp.org>
75605
75606         * lib/c-strstr.c: Include c-strstr.h.
75607
75608 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75609
75610         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
75611         in a slash.
75612
75613 2006-10-18  Bruno Haible  <bruno@clisp.org>
75614
75615         * lib/lock.h [C++]: Wrap definitions in extern "C".
75616
75617 2006-10-18  Bruno Haible  <bruno@clisp.org>
75618
75619         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
75620         gl_LIBOBJS list.
75621
75622 2006-10-18  Bruno Haible  <bruno@clisp.org>
75623
75624         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
75625
75626 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
75627
75628         * lib/xstrtol.h: Include gettext.h.
75629         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
75630         Problem reported by Eric Blake.
75631         * modules/xstrtol (Depends-on): Add gettext-h.
75632
75633 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
75634
75635         * lib/strftime.c (advance): New macro.
75636         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
75637         incomplete type, so you can't add 0 to it.  Problem and patch
75638         reported by Eelco Dolstra for dietlibc.
75639
75640 2006-10-18  Jim Meyering  <jim@meyering.net>
75641
75642         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
75643         type for a local, and rename it: s/up/user_proc/.
75644
75645 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
75646
75647         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
75648         READ_UTMP_USER_PROCESS.
75649         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
75650
75651 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75652
75653         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
75654         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
75655
75656 2006-10-17  Eric Blake  <ebb9@byu.net>
75657
75658         * lib/sigprocmask.c (sigprocmask): Fix typo.
75659
75660         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
75661
75662         * modules/clean-temp (Makefile.am): Don't add to make output...
75663         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
75664         config.h.
75665
75666 2006-10-17  Bruno Haible  <bruno@clisp.org>
75667
75668         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
75669         differently if DEFAULT_TEXT_DOMAIN is set.
75670
75671 2006-10-16  Bruno Haible  <bruno@clisp.org>
75672
75673         * lib/clean-temp.c: Include fwriteerror.h.
75674
75675 2006-10-16  Bruno Haible  <bruno@clisp.org>
75676
75677         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
75678
75679 2006-10-16  Bruno Haible  <bruno@clisp.org>
75680
75681         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
75682         * lib/sigprocmask.h: Include <sys/types.h>.
75683         (sigset_t): Use the system's definition if present.
75684
75685 2006-10-17  Eric Blake  <ebb9@byu.net>
75686
75687         * lib/xvasprintf.c (includes): Assume config.h.
75688         * lib/xasprintf.c (includes): Likewise.
75689
75690 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
75691
75692         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
75693         at least as wide as intmax_t.
75694
75695 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
75696
75697         (Imported from Automake.)
75698         * build-aux/gnupload: Update to version 1.1 of directive file.
75699
75700 2006-10-16  Eric Blake  <ebb9@byu.net>
75701
75702         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
75703         match Automake 1.10a.
75704
75705 2006-10-14  Bruno Haible  <bruno@clisp.org>
75706
75707         * modules/sigprocmask: New file.
75708         * lib/sigprocmask.h: New file.
75709         * lib/sigprocmask.c: New file.
75710         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
75711         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
75712         request sigprocmask.o.
75713         (gl_PREREQ_SIGPROCMASK): New macro.
75714         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
75715         (Depends-on): Add sigprocmask.
75716         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
75717         gt_SIGNALBLOCKING. Test for 'raise' only once.
75718         * lib/fatal-signal.c: Include sigprocmask.h.
75719         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
75720         unblock_fatal_signals): Define always.
75721         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75722         sigprocmask.
75723
75724 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75725
75726         Sync from Automake.
75727         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
75728         which incorrectly sets the mode of an existing destination
75729         directory.  In some cases the unpatched install-sh could do the
75730         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
75731         system.  We hope this is rare in practice, but it's clearly worth
75732         fixing.  Problem reported by Alex Unleashed in
75733         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
75734         Also, don't bother to check for -m bugs unless we're using -m;
75735         suggested by Stepan Kasal.
75736
75737 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75738
75739         Sync from Automake.
75740         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
75741         `-c' flag, so they appear at the same position as in %FASTDEP%
75742         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
75743         which ignores unknown options only after the first non-option.
75744         Bug report against M4 by Nelson H. F. Beebe.
75745
75746 2006-10-13  Jim Meyering  <jim@meyering.net>
75747
75748         Fix a bug in yesterday's change.
75749         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
75750         p->fts_statp->st_dev would be used uninitialized.
75751         Ensures that we always call fts_stat on the very first entry.
75752         Miklos Szeredi reported that find -xdev stopped working.
75753
75754 2006-10-12  Bruno Haible  <bruno@clisp.org>
75755
75756         * gnulib-tool (func_get_automake_snippet): Append an automatically
75757         computed EXTRA_DIST augmentation.
75758         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
75759         * modules/alloca-opt (Makefile.am): Likewise.
75760         * modules/allocsa (Makefile.am): Likewise.
75761         * modules/arcfour (Makefile.am): Likewise.
75762         * modules/arctwo (Makefile.am): Likewise.
75763         * modules/argmatch (Makefile.am): Likewise.
75764         * modules/argz (Makefile.am): Likewise.
75765         * modules/atexit (Makefile.am): Likewise.
75766         * modules/backupfile (Makefile.am): Likewise.
75767         * modules/byteswap (Makefile.am): Likewise.
75768         * modules/c-strtod (Makefile.am): Likewise.
75769         * modules/c-strtold (Makefile.am): Likewise.
75770         * modules/calloc (Makefile.am): Likewise.
75771         * modules/canon-host (Makefile.am): Likewise.
75772         * modules/canonicalize (Makefile.am): Likewise.
75773         * modules/chdir-long (Makefile.am): Likewise.
75774         * modules/chdir-safer (Makefile.am): Likewise.
75775         * modules/check-version (Makefile.am): Likewise.
75776         * modules/chown (Makefile.am): Likewise.
75777         * modules/cloexec (Makefile.am): Likewise.
75778         * modules/close-stream (Makefile.am): Likewise.
75779         * modules/closeout (Makefile.am): Likewise.
75780         * modules/crc (Makefile.am): Likewise.
75781         * modules/csharpexec (Makefile.am): Likewise.
75782         * modules/cycle-check (Makefile.am): Likewise.
75783         * modules/des (Makefile.am): Likewise.
75784         * modules/dev-ino (Makefile.am): Likewise.
75785         * modules/dirfd (Makefile.am): Likewise.
75786         * modules/dirname (Makefile.am): Likewise.
75787         * modules/dup2 (Makefile.am): Likewise.
75788         * modules/eealloc (Makefile.am): Likewise.
75789         * modules/error (Makefile.am): Likewise.
75790         * modules/euidaccess (Makefile.am): Likewise.
75791         * modules/exclude (Makefile.am): Likewise.
75792         * modules/exitfail (Makefile.am): Likewise.
75793         * modules/fcntl-safer (Makefile.am): Likewise.
75794         * modules/fcntl (Makefile.am): Likewise.
75795         * modules/file-type (Makefile.am): Likewise.
75796         * modules/fileblocks (Makefile.am): Likewise.
75797         * modules/filemode (Makefile.am): Likewise.
75798         * modules/filenamecat (Makefile.am): Likewise.
75799         * modules/fnmatch (Makefile.am): Likewise.
75800         * modules/fopen-safer (Makefile.am): Likewise.
75801         * modules/fpending (Makefile.am): Likewise.
75802         * modules/fprintftime (Makefile.am): Likewise.
75803         * modules/free (Makefile.am): Likewise.
75804         * modules/fsusage (Makefile.am): Likewise.
75805         * modules/ftruncate (Makefile.am): Likewise.
75806         * modules/fts (Makefile.am): Likewise.
75807         * modules/gc-arcfour (Makefile.am): Likewise.
75808         * modules/gc-des (Makefile.am): Likewise.
75809         * modules/gc-hmac-md5 (Makefile.am): Likewise.
75810         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
75811         * modules/gc-md4 (Makefile.am): Likewise.
75812         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75813         * modules/gc-sha1 (Makefile.am): Likewise.
75814         * modules/gc (Makefile.am): Likewise.
75815         * modules/getaddrinfo (Makefile.am): Likewise.
75816         * modules/getcwd (Makefile.am): Likewise.
75817         * modules/getdelim (Makefile.am): Likewise.
75818         * modules/getdomainname (Makefile.am): Likewise.
75819         * modules/getgroups (Makefile.am): Likewise.
75820         * modules/gethostname (Makefile.am): Likewise.
75821         * modules/gethrxtime (Makefile.am): Likewise.
75822         * modules/getline (Makefile.am): Likewise.
75823         * modules/getloadavg (Makefile.am): Likewise.
75824         * modules/getlogin_r (Makefile.am): Likewise.
75825         * modules/getndelim2 (Makefile.am): Likewise.
75826         * modules/getopt (Makefile.am): Likewise.
75827         * modules/getpagesize (Makefile.am): Likewise.
75828         * modules/getpass-gnu (Makefile.am): Likewise.
75829         * modules/getpass (Makefile.am): Likewise.
75830         * modules/getsubopt (Makefile.am): Likewise.
75831         * modules/gettime (Makefile.am): Likewise.
75832         * modules/gettimeofday (Makefile.am): Likewise.
75833         * modules/getugroups (Makefile.am): Likewise.
75834         * modules/getusershell (Makefile.am): Likewise.
75835         * modules/glob (Makefile.am): Likewise.
75836         * modules/group-member (Makefile.am): Likewise.
75837         * modules/hard-locale (Makefile.am): Likewise.
75838         * modules/hash (Makefile.am): Likewise.
75839         * modules/hmac-md5 (Makefile.am): Likewise.
75840         * modules/hmac-sha1 (Makefile.am): Likewise.
75841         * modules/human (Makefile.am): Likewise.
75842         * modules/idcache (Makefile.am): Likewise.
75843         * modules/imaxabs (Makefile.am): Likewise.
75844         * modules/imaxdiv (Makefile.am): Likewise.
75845         * modules/inet_ntop (Makefile.am): Likewise.
75846         * modules/inet_pton (Makefile.am): Likewise.
75847         * modules/intprops (Makefile.am): Likewise.
75848         * modules/inttostr (Makefile.am): Likewise.
75849         * modules/inttypes (Makefile.am): Likewise.
75850         * modules/isapipe (Makefile.am): Likewise.
75851         * modules/javaversion (Makefile.am): Likewise.
75852         * modules/lchmod (Makefile.am): Likewise.
75853         * modules/lchown (Makefile.am): Likewise.
75854         * modules/localcharset (Makefile.am): Likewise.
75855         * modules/long-options (Makefile.am): Likewise.
75856         * modules/lstat (Makefile.am): Likewise.
75857         * modules/malloc (Makefile.am): Likewise.
75858         * modules/mathl (Makefile.am): Likewise.
75859         * modules/mbchar (Makefile.am): Likewise.
75860         * modules/md2 (Makefile.am): Likewise.
75861         * modules/md4 (Makefile.am): Likewise.
75862         * modules/md5 (Makefile.am): Likewise.
75863         * modules/memcasecmp (Makefile.am): Likewise.
75864         * modules/memchr (Makefile.am): Likewise.
75865         * modules/memcmp (Makefile.am): Likewise.
75866         * modules/memcoll (Makefile.am): Likewise.
75867         * modules/memcpy (Makefile.am): Likewise.
75868         * modules/memmem (Makefile.am): Likewise.
75869         * modules/memmove (Makefile.am): Likewise.
75870         * modules/mempcpy (Makefile.am): Likewise.
75871         * modules/memrchr (Makefile.am): Likewise.
75872         * modules/memset (Makefile.am): Likewise.
75873         * modules/memxor (Makefile.am): Likewise.
75874         * modules/mkancesdirs (Makefile.am): Likewise.
75875         * modules/mkdir-p (Makefile.am): Likewise.
75876         * modules/mkdir (Makefile.am): Likewise.
75877         * modules/mkdtemp (Makefile.am): Likewise.
75878         * modules/mkstemp (Makefile.am): Likewise.
75879         * modules/mktime (Makefile.am): Likewise.
75880         * modules/modechange (Makefile.am): Likewise.
75881         * modules/mountlist (Makefile.am): Likewise.
75882         * modules/nanosleep (Makefile.am): Likewise.
75883         * modules/obstack (Makefile.am): Likewise.
75884         * modules/openat (Makefile.am): Likewise.
75885         * modules/pagealign_alloc (Makefile.am): Likewise.
75886         * modules/pathmax (Makefile.am): Likewise.
75887         * modules/physmem (Makefile.am): Likewise.
75888         * modules/poll (Makefile.am): Likewise.
75889         * modules/posixtm (Makefile.am): Likewise.
75890         * modules/posixver (Makefile.am): Likewise.
75891         * modules/putenv (Makefile.am): Likewise.
75892         * modules/quote (Makefile.am): Likewise.
75893         * modules/quotearg (Makefile.am): Likewise.
75894         * modules/raise (Makefile.am): Likewise.
75895         * modules/read-file (Makefile.am): Likewise.
75896         * modules/readline (Makefile.am): Likewise.
75897         * modules/readlink (Makefile.am): Likewise.
75898         * modules/readtokens (Makefile.am): Likewise.
75899         * modules/readutmp (Makefile.am): Likewise.
75900         * modules/realloc (Makefile.am): Likewise.
75901         * modules/regex (Makefile.am): Likewise.
75902         * modules/rename-dest-slash (Makefile.am): Likewise.
75903         * modules/rename (Makefile.am): Likewise.
75904         * modules/rijndael (Makefile.am): Likewise.
75905         * modules/rmdir (Makefile.am): Likewise.
75906         * modules/rpmatch (Makefile.am): Likewise.
75907         * modules/safe-read (Makefile.am): Likewise.
75908         * modules/safe-write (Makefile.am): Likewise.
75909         * modules/same-inode (Makefile.am): Likewise.
75910         * modules/same (Makefile.am): Likewise.
75911         * modules/save-cwd (Makefile.am): Likewise.
75912         * modules/savedir (Makefile.am): Likewise.
75913         * modules/setenv (Makefile.am): Likewise.
75914         * modules/settime (Makefile.am): Likewise.
75915         * modules/sha1 (Makefile.am): Likewise.
75916         * modules/sig2str (Makefile.am): Likewise.
75917         * modules/snprintf (Makefile.am): Likewise.
75918         * modules/stat-macros (Makefile.am): Likewise.
75919         * modules/stat-time (Makefile.am): Likewise.
75920         * modules/stdbool (Makefile.am): Likewise.
75921         * modules/stdint (Makefile.am): Likewise.
75922         * modules/stdlib-safer (Makefile.am): Likewise.
75923         * modules/stpcpy (Makefile.am): Likewise.
75924         * modules/stpncpy (Makefile.am): Likewise.
75925         * modules/strcase (Makefile.am): Likewise.
75926         * modules/strcasestr (Makefile.am): Likewise.
75927         * modules/strchrnul (Makefile.am): Likewise.
75928         * modules/strcspn (Makefile.am): Likewise.
75929         * modules/strdup (Makefile.am): Likewise.
75930         * modules/strerror (Makefile.am): Likewise.
75931         * modules/strftime (Makefile.am): Likewise.
75932         * modules/strndup (Makefile.am): Likewise.
75933         * modules/strnlen (Makefile.am): Likewise.
75934         * modules/strpbrk (Makefile.am): Likewise.
75935         * modules/strsep (Makefile.am): Likewise.
75936         * modules/strstr (Makefile.am): Likewise.
75937         * modules/strtod (Makefile.am): Likewise.
75938         * modules/strtoimax (Makefile.am): Likewise.
75939         * modules/strtok_r (Makefile.am): Likewise.
75940         * modules/strtol (Makefile.am): Likewise.
75941         * modules/strtoll (Makefile.am): Likewise.
75942         * modules/strtoul (Makefile.am): Likewise.
75943         * modules/strtoull (Makefile.am): Likewise.
75944         * modules/strtoumax (Makefile.am): Likewise.
75945         * modules/strverscmp (Makefile.am): Likewise.
75946         * modules/sys_socket (Makefile.am): Likewise.
75947         * modules/sys_stat (Makefile.am): Likewise.
75948         * modules/sysexits (Makefile.am): Likewise.
75949         * modules/time_r (Makefile.am): Likewise.
75950         * modules/timegm (Makefile.am): Likewise.
75951         * modules/timespec (Makefile.am): Likewise.
75952         * modules/tmpfile-safer (Makefile.am): Likewise.
75953         * modules/trim (Makefile.am): Likewise.
75954         * modules/unistd-safer (Makefile.am): Likewise.
75955         * modules/unlinkdir (Makefile.am): Likewise.
75956         * modules/unlocked-io (Makefile.am): Likewise.
75957         * modules/userspec (Makefile.am): Likewise.
75958         * modules/utime (Makefile.am): Likewise.
75959         * modules/utimecmp (Makefile.am): Likewise.
75960         * modules/utimens (Makefile.am): Likewise.
75961         * modules/vasnprintf (Makefile.am): Likewise.
75962         * modules/vasprintf (Makefile.am): Likewise.
75963         * modules/vsnprintf (Makefile.am): Likewise.
75964         * modules/xalloc (Makefile.am): Likewise.
75965         * modules/xgetcwd (Makefile.am): Likewise.
75966         * modules/xnanosleep (Makefile.am): Likewise.
75967         * modules/xreadlink (Makefile.am): Likewise.
75968         * modules/xstrtod (Makefile.am): Likewise.
75969         * modules/xstrtol (Makefile.am): Likewise.
75970         * modules/xstrtold (Makefile.am): Likewise.
75971         * modules/yesno (Makefile.am): Likewise.
75972         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
75973
75974 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75975
75976         * modules/error (Makefile.am): Distribute files through
75977         EXTRA_DIST, not lib_SOURCES.
75978
75979 2006-10-12  Eric Blake  <ebb9@byu.net>
75980
75981         * modules/error (Makefile.am): Distribute files in /lib.
75982         * modules/obstack (Makefile.am): Likewise.
75983
75984 2006-10-12  Bruno Haible  <bruno@clisp.org>
75985
75986         * modules/acl (Makefile.am): Distribute all files in lib/ through
75987         EXTRA_DIST.
75988         * modules/arcfour (Makefile.am): Likewise.
75989         * modules/arctwo (Makefile.am): Likewise.
75990         * modules/argmatch (Makefile.am): Likewise.
75991         * modules/argz (Makefile.am): Likewise.
75992         * modules/atexit (Makefile.am): Likewise.
75993         * modules/backupfile (Makefile.am): Likewise.
75994         * modules/c-strtod (Makefile.am): Likewise.
75995         * modules/c-strtold (Makefile.am): Likewise.
75996         * modules/calloc (Makefile.am): Likewise.
75997         * modules/canon-host (Makefile.am): Likewise.
75998         * modules/canonicalize (Makefile.am): Likewise.
75999         * modules/chdir-long (Makefile.am): Likewise.
76000         * modules/chdir-safer (Makefile.am): Likewise.
76001         * modules/check-version (Makefile.am): Likewise.
76002         * modules/chown (Makefile.am): Likewise.
76003         * modules/cloexec (Makefile.am): Likewise.
76004         * modules/close-stream (Makefile.am): Likewise.
76005         * modules/closeout (Makefile.am): Likewise.
76006         * modules/crc (Makefile.am): Likewise.
76007         * modules/cycle-check (Makefile.am): Likewise.
76008         * modules/des (Makefile.am): Likewise.
76009         * modules/dirfd (Makefile.am): Likewise.
76010         * modules/dirname (Makefile.am): Likewise.
76011         * modules/dup2 (Makefile.am): Likewise.
76012         * modules/euidaccess (Makefile.am): Likewise.
76013         * modules/exclude (Makefile.am): Likewise.
76014         * modules/exitfail (Makefile.am): Likewise.
76015         * modules/fcntl-safer (Makefile.am): Likewise.
76016         * modules/file-type (Makefile.am): Likewise.
76017         * modules/fileblocks (Makefile.am): Likewise.
76018         * modules/filemode (Makefile.am): Likewise.
76019         * modules/filenamecat (Makefile.am): Likewise.
76020         * modules/fnmatch (Makefile.am): Likewise.
76021         * modules/fopen-safer (Makefile.am): Likewise.
76022         * modules/fpending (Makefile.am): Likewise.
76023         * modules/fprintftime (Makefile.am): Likewise.
76024         * modules/free (Makefile.am): Likewise.
76025         * modules/fsusage (Makefile.am): Likewise.
76026         * modules/ftruncate (Makefile.am): Likewise.
76027         * modules/fts (Makefile.am): Likewise.
76028         * modules/gc (Makefile.am): Likewise.
76029         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76030         * modules/getaddrinfo (Makefile.am): Likewise.
76031         * modules/getcwd (Makefile.am): Likewise.
76032         * modules/getdelim (Makefile.am): Likewise.
76033         * modules/getdomainname (Makefile.am): Likewise.
76034         * modules/getgroups (Makefile.am): Likewise.
76035         * modules/gethostname (Makefile.am): Likewise.
76036         * modules/gethrxtime (Makefile.am): Likewise.
76037         * modules/getline (Makefile.am): Likewise.
76038         * modules/getloadavg (Makefile.am): Likewise.
76039         * modules/getlogin_r (Makefile.am): Likewise.
76040         * modules/getopt (Makefile.am): Likewise.
76041         * modules/getpass (Makefile.am): Likewise.
76042         * modules/getpass-gnu (Makefile.am): Likewise.
76043         * modules/getsubopt (Makefile.am): Likewise.
76044         * modules/gettime (Makefile.am): Likewise.
76045         * modules/gettimeofday (Makefile.am): Likewise.
76046         * modules/getugroups (Makefile.am): Likewise.
76047         * modules/getusershell (Makefile.am): Likewise.
76048         * modules/glob (Makefile.am): Likewise.
76049         * modules/group-member (Makefile.am): Likewise.
76050         * modules/hard-locale (Makefile.am): Likewise.
76051         * modules/hash (Makefile.am): Likewise.
76052         * modules/hmac-md5 (Makefile.am): Likewise.
76053         * modules/hmac-sha1 (Makefile.am): Likewise.
76054         * modules/human (Makefile.am): Likewise.
76055         * modules/idcache (Makefile.am): Likewise.
76056         * modules/imaxabs (Makefile.am): Likewise.
76057         * modules/imaxdiv (Makefile.am): Likewise.
76058         * modules/inet_ntop (Makefile.am): Likewise.
76059         * modules/inet_pton (Makefile.am): Likewise.
76060         * modules/inttostr (Makefile.am): Likewise.
76061         * modules/isapipe (Makefile.am): Likewise.
76062         * modules/lchown (Makefile.am): Likewise.
76063         * modules/long-options (Makefile.am): Likewise.
76064         * modules/lstat (Makefile.am): Likewise.
76065         * modules/malloc (Makefile.am): Likewise.
76066         * modules/mathl (Makefile.am): Likewise.
76067         * modules/mbchar (Makefile.am): Likewise.
76068         * modules/md2 (Makefile.am): Likewise.
76069         * modules/md4 (Makefile.am): Likewise.
76070         * modules/md5 (Makefile.am): Likewise.
76071         * modules/memcasecmp (Makefile.am): Likewise.
76072         * modules/memchr (Makefile.am): Likewise.
76073         * modules/memcmp (Makefile.am): Likewise.
76074         * modules/memcoll (Makefile.am): Likewise.
76075         * modules/memcpy (Makefile.am): Likewise.
76076         * modules/memmem (Makefile.am): Likewise.
76077         * modules/memmove (Makefile.am): Likewise.
76078         * modules/mempcpy (Makefile.am): Likewise.
76079         * modules/memrchr (Makefile.am): Likewise.
76080         * modules/memset (Makefile.am): Likewise.
76081         * modules/memxor (Makefile.am): Likewise.
76082         * modules/mkancesdirs (Makefile.am): Likewise.
76083         * modules/mkdir (Makefile.am): Likewise.
76084         * modules/mkdir-p (Makefile.am): Likewise.
76085         * modules/mkdtemp (Makefile.am): Likewise.
76086         * modules/mkstemp (Makefile.am): Likewise.
76087         * modules/mktime (Makefile.am): Likewise.
76088         * modules/modechange (Makefile.am): Likewise.
76089         * modules/mountlist (Makefile.am): Likewise.
76090         * modules/nanosleep (Makefile.am): Likewise.
76091         * modules/openat (Makefile.am): Likewise.
76092         * modules/pagealign_alloc (Makefile.am): Likewise.
76093         * modules/physmem (Makefile.am): Likewise.
76094         * modules/poll (Makefile.am): Likewise.
76095         * modules/posixtm (Makefile.am): Likewise.
76096         * modules/posixver (Makefile.am): Likewise.
76097         * modules/putenv (Makefile.am): Likewise.
76098         * modules/quote (Makefile.am): Likewise.
76099         * modules/quotearg (Makefile.am): Likewise.
76100         * modules/raise (Makefile.am): Likewise.
76101         * modules/read-file (Makefile.am): Likewise.
76102         * modules/readline (Makefile.am): Likewise.
76103         * modules/readlink (Makefile.am): Likewise.
76104         * modules/readtokens (Makefile.am): Likewise.
76105         * modules/readutmp (Makefile.am): Likewise.
76106         * modules/realloc (Makefile.am): Likewise.
76107         * modules/regex (Makefile.am): Likewise.
76108         * modules/rename (Makefile.am): Likewise.
76109         * modules/rename-dest-slash (Makefile.am): Likewise.
76110         * modules/rijndael (Makefile.am): Likewise.
76111         * modules/rmdir (Makefile.am): Likewise.
76112         * modules/rpmatch (Makefile.am): Likewise.
76113         * modules/safe-read (Makefile.am): Likewise.
76114         * modules/safe-write (Makefile.am): Likewise.
76115         * modules/same (Makefile.am): Likewise.
76116         * modules/save-cwd (Makefile.am): Likewise.
76117         * modules/savedir (Makefile.am): Likewise.
76118         * modules/setenv (Makefile.am): Likewise.
76119         * modules/settime (Makefile.am): Likewise.
76120         * modules/sha1 (Makefile.am): Likewise.
76121         * modules/sig2str (Makefile.am): Likewise.
76122         * modules/snprintf (Makefile.am): Likewise.
76123         * modules/stdlib-safer (Makefile.am): Likewise.
76124         * modules/stpcpy (Makefile.am): Likewise.
76125         * modules/stpncpy (Makefile.am): Likewise.
76126         * modules/strcase (Makefile.am): Likewise.
76127         * modules/strcasestr (Makefile.am): Likewise.
76128         * modules/strchrnul (Makefile.am): Likewise.
76129         * modules/strcspn (Makefile.am): Likewise.
76130         * modules/strdup (Makefile.am): Likewise.
76131         * modules/strerror (Makefile.am): Likewise.
76132         * modules/strftime (Makefile.am): Likewise.
76133         * modules/strndup (Makefile.am): Likewise.
76134         * modules/strnlen (Makefile.am): Likewise.
76135         * modules/strpbrk (Makefile.am): Likewise.
76136         * modules/strsep (Makefile.am): Likewise.
76137         * modules/strstr (Makefile.am): Likewise.
76138         * modules/strtod (Makefile.am): Likewise.
76139         * modules/strtoimax (Makefile.am): Likewise.
76140         * modules/strtok_r (Makefile.am): Likewise.
76141         * modules/strtol (Makefile.am): Likewise.
76142         * modules/strtoll (Makefile.am): Likewise.
76143         * modules/strtoul (Makefile.am): Likewise.
76144         * modules/strtoull (Makefile.am): Likewise.
76145         * modules/strtoumax (Makefile.am): Likewise.
76146         * modules/strverscmp (Makefile.am): Likewise.
76147         * modules/time_r (Makefile.am): Likewise.
76148         * modules/timegm (Makefile.am): Likewise.
76149         * modules/tmpfile-safer (Makefile.am): Likewise.
76150         * modules/unistd-safer (Makefile.am): Likewise.
76151         * modules/unlinkdir (Makefile.am): Likewise.
76152         * modules/userspec (Makefile.am): Likewise.
76153         * modules/utime (Makefile.am): Likewise.
76154         * modules/utimecmp (Makefile.am): Likewise.
76155         * modules/utimens (Makefile.am): Likewise.
76156         * modules/vasnprintf (Makefile.am): Likewise.
76157         * modules/vasprintf (Makefile.am): Likewise.
76158         * modules/vsnprintf (Makefile.am): Likewise.
76159         * modules/xalloc (Makefile.am): Likewise.
76160         * modules/xgetcwd (Makefile.am): Likewise.
76161         * modules/xnanosleep (Makefile.am): Likewise.
76162         * modules/xreadlink (Makefile.am): Likewise.
76163         * modules/xstrtod (Makefile.am): Likewise.
76164         * modules/xstrtol (Makefile.am): Likewise.
76165         * modules/xstrtold (Makefile.am): Likewise.
76166         * modules/yesno (Makefile.am): Likewise.
76167
76168 2006-10-12  Jim Meyering  <jim@meyering.net>
76169
76170         * m4/getloadavg.m4: Revert the change below.
76171
76172         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
76173         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
76174         fail with a symlink, which is what coreutils' ./bootstrap now
76175         creates by default.
76176
76177 2006-10-12  Bruno Haible  <bruno@clisp.org>
76178
76179         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
76180         mingw.
76181         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
76182         MSVC and mingw explicitly.
76183
76184 2006-10-11  Simon Josefsson  <jas@extundo.com>
76185             Bruno Haible  <bruno@clisp.org>
76186
76187         Add support for multiple gnulib-tool invocations in the scope of a
76188         single configure.ac file.
76189         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
76190         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
76191         with the same contents as the _LIBADD variable.
76192         (func_emit_initmacro_start, func_emit_initmacro_end,
76193         func_emit_initmacro_done): New functions.
76194         (func_import, func_create_testdir): Invoke them. Allow the identifiers
76195         gl_LIBOBJS and gl_LTLIBOBJS.
76196
76197 2006-10-11  Bruno Haible  <bruno@clisp.org>
76198
76199         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
76200         (func_create_testdir): Don't create po/Makefile.am, don't invoke
76201         autoreconf. Instead, invoke autopoint explicitly but move back the
76202         *.m4 files from gnulib.
76203
76204 2006-10-11  Bruno Haible  <bruno@clisp.org>
76205
76206         * gnulib-tool (func_usage): Make module names after --create-testdir
76207         optional.
76208         (func_create_testdir): If no module was specified, use nearly all
76209         modules.
76210
76211 2006-10-12  Jim Meyering  <jim@meyering.net>
76212
76213         Big performance improvement for fts-based tools that use FTS_NOSTAT.
76214         Avoid spurious inode-mismatch problems on non-POSIX file systems.
76215         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
76216         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
76217         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
76218         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
76219         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
76220         (fts_set_stat_required): New function.
76221         (fts_open): Defer the calls to fts_stat, if possible or requested.
76222         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
76223         into fts_stat itself.
76224         (fts_read): Perform any required (deferred) fts_stat call.
76225         (fts_build): Likewise, for the directory we're about to open and read.
76226         In the readdir loop, carefully decide whether each entry will require
76227         an eventual call to fts_stat, using dirent.d_type info if available.
76228         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
76229         a command line argument into this function.  Update all callers.
76230         Map a return value of FTS_DOT to FTS_D for a command line argument.
76231         * modules/fts (Depends-on): Add d-type.  Alphabetize.
76232         Thanks to Miklos Szeredi for his tenacity and for the initial
76233         bug report about "find" failing on a FUSE-based file system.
76234
76235         * lib/fts.c (fts_open): Use consistent indentation.
76236
76237 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76238
76239         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
76240         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
76241         reported by Jim Meyering.  All uses of cache variables renamed
76242         to match Autoconf's.
76243         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
76244         the other one.
76245
76246         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
76247         Fix misspelling in diagnostic.
76248
76249 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76250
76251         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
76252         defined.  Problem reported by Matthew Woehlke.
76253
76254         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
76255         Add support for Tandem NonStop R series.
76256         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
76257         Use new macro.
76258
76259         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
76260         (has_trailing_slash): Omit size arg; all callers changed.
76261         Omit 'inline', since it doesn't help performance and we'd
76262         need to configure it.
76263         Don't count //, ///, etc. as having a trailing slash.
76264         As a side effect, this removes a C99ism reported by Matthew Woehlke.
76265         (rpl_rename_dest_slash): On failure, use rename's errno rather
76266         than (in some cases) an incorrect or junk errno.
76267         Simplify code by removing need to compute length; this does
76268         cause it to make two passes instead of one over the file name,
76269         but it's worth it.
76270
76271         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
76272         change, since Autoconf's version may no longer be appropriate now
76273         that we are using CVS Autoconf's version.  Add support for Tandem.
76274
76275 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76276             Bruno Haible  <bruno@clisp.org>
76277
76278         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
76279         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
76280         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
76281         gl_AC_TYPE_LONG_LONG.
76282
76283         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
76284         instead of HAVE_LONG_LONG.
76285         * lib/printf-args.c (printf_fetchargs): Likewise.
76286         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
76287         * lib/vasnprintf.c (VASNPRINTF): Likewise.
76288         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
76289         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
76290         gl_AC_TYPE_LONG_LONG.
76291
76292 2006-10-11  Bruno Haible  <bruno@clisp.org>
76293
76294         * m4/longlong.m4: Add comments.
76295         * m4/ulonglong.m4: Likewise.
76296
76297 2006-10-10  Bruno Haible  <bruno@clisp.org>
76298
76299         Make it possible to #define stpcpy, strdup to aliases.
76300         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
76301         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
76302
76303 2006-10-10  Bruno Haible  <bruno@clisp.org>
76304
76305         Make it possible to #define gcd to an alias.
76306         * lib/gcd.c: Include config.h.
76307
76308 2006-10-10  Bruno Haible  <bruno@clisp.org>
76309
76310         Make it possible to #define c_isascii to an alias.
76311         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
76312         defined. Undefine the macros before defining them, to avoid gcc
76313         warnings.
76314         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
76315         define NO_C_CTYPE_MACROS early.
76316
76317 2006-10-10  Bruno Haible  <bruno@clisp.org>
76318
76319         Make it possible to #define set_program_name to an alias.
76320         * lib/progname.c: Don't undefine set_program_name; instead, undefine
76321         ENABLE_RELOCATABLE early.
76322
76323 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76324
76325         Port to Tandem NSK OSS, which has 64-bit signed int but at most
76326         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
76327         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
76328         More generally, don't assume that 64-bit signed int is available
76329         if unsigned int is, and vice versa.
76330         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
76331         unsigned symbols, not on their signed counterparts.
76332         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
76333         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
76334         (UINT64_C, UINTMAX_C):
76335         Likewise.
76336         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
76337         unsigned counterparts.
76338         (Have_long_long, Unsigned): New macros.
76339         (Int): Renamed from INT.
76340         (strtoimax): Use the new macros.
76341         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
76342         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
76343         * modules/inttypes (inttypes.h): Substitute
76344         HAVE_UNSIGNED_LONG_LONG_INT.
76345         * modules/stdint (stdint.h): Likewise.
76346         (Files): Add m4/ulonglong.m4.
76347
76348 2006-10-10  Bruno Haible  <bruno@clisp.org>
76349
76350         Fix a gcc -Wshadow warning.
76351         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
76352         to 'bucket'.
76353         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
76354         gl_linked_indexof_from_to): Likewise.
76355         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
76356         Likewise.
76357         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
76358         Likewise.
76359         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
76360         Reported by Eric Blake.
76361
76362 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
76363
76364         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
76365         for NetBSD.  Problem reported by Bruno Haible.
76366
76367 2006-10-09  Jim Meyering  <jim@meyering.net>
76368
76369         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
76370         Patch from Bruno Haible.
76371
76372 2006-10-09  Jim Meyering  <jim@meyering.net>
76373
76374         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
76375         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
76376         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
76377
76378 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
76379
76380         Don't include <config.h> twice; this doesn't work in some cases,
76381         e.g., when config.h has "#define intmax_t long long int" and
76382         we include <config.h>, <inttypes.h>, <config.h> in that order.
76383         Problem reported by Matthew Woehlke in:
76384         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
76385         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
76386         * lib/fts-cycle.c: Don't include config.h.
76387         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
76388         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
76389         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
76390         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
76391         inttypes.h.
76392         * lib/xstrtoumax.c: Likewise.
76393         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
76394         __strtol and the like, so that this module is more like its siblings.
76395         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
76396         Remove; no longer needed now that we assume gnulib inttypes.h.
76397
76398 2006-10-08  Bruno Haible  <bruno@clisp.org>
76399
76400         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
76401         option.
76402
76403 2006-10-07  Jim Meyering  <jim@meyering.net>
76404
76405         * modules/inttypes (inttypes.h): Revert what seems to have been
76406         an inadvertent part of today's change: use "|", not "/" in the
76407         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
76408
76409 2006-10-07  Bruno Haible  <bruno@clisp.org>
76410
76411         * modules/sublist: New file.
76412
76413 2006-10-07  Bruno Haible  <bruno@clisp.org>
76414
76415         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
76416         * modules/argz (argz.h): Likewise.
76417         * modules/arpa_inet (arpa/inet.h): Likewise.
76418         * modules/byteswap (byteswap.h): Likewise.
76419         * modules/configmake (configmake.h): Likewise.
76420         * modules/fcntl (fcntl.h): Likewise.
76421         * modules/fnmatch (fnmatch.h): Likewise.
76422         * modules/getopt (getopt.h): Likewise.
76423         * modules/glob (glob.h): Likewise.
76424         * modules/inttypes (inttypes.h): Likewise.
76425         * modules/netinet_in (netinet/in.h): Likewise.
76426         * modules/poll (poll.h): Likewise.
76427         * modules/stdbool (stdbool.h): Likewise.
76428         * modules/stdint (stdint.h): Likewise.
76429         * modules/sys_select (sys/select.h): Likewise.
76430         * modules/sys_socket (sys/socket.h): Likewise.
76431         * modules/sys_stat (sys/stat.h): Likewise.
76432         * modules/sysexits (sysexits.h): Likewise.
76433         * modules/unistd (unistd.h): Likewise.
76434         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76435         Add a "DO NOT EDIT" comment to the generated file.
76436         (func_import): Likewise for gnulib-comp.m4.
76437
76438 2006-10-07  Bruno Haible  <bruno@clisp.org>
76439
76440         * lib/gl_sublist.h: New file.
76441         * lib/gl_sublist.c: New file.
76442
76443 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76444
76445         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
76446         name (relative to the original working directory) and the file
76447         name component (relative to the temporary working directory).  All
76448         callers changed.
76449         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
76450         * lib/mkdir-p.c (make_dir_parents): Likewise.
76451         * lib/mkdir-p.h (make_dir_parents): Likewise.
76452
76453 2006-10-06  Eric Blake  <ebb9@byu.net>
76454
76455         Define several macros for use by the clean-temp module.
76456         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
76457         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
76458         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
76459
76460         * lib/clean-temp.h (close_stream_temp): New declaration.
76461         * lib/clean-temp.c (includes): Pull in headers according to what
76462         other modules are in use.
76463         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
76464
76465 2006-10-06  Bruno Haible  <bruno@clisp.org>
76466
76467         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
76468         instead of fopen, fwriteerror.
76469
76470 2006-10-06  Bruno Haible  <bruno@clisp.org>
76471
76472         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
76473         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
76474         int.
76475         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
76476         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
76477         Return an error indicator.
76478         Suggested by Eric Blake.
76479
76480 2006-10-06  Bruno Haible  <bruno@clisp.org>
76481
76482         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
76483         Reported by Eric Blake.
76484
76485 2006-10-06  Bruno Haible  <bruno@clisp.org>
76486
76487         * modules/closeout (Description): Mention stderr too.
76488
76489 2006-10-06  Bruno Haible  <bruno@clisp.org>
76490         and Paul Eggert  <eggert@cs.ucla.edu>
76491
76492         * lib/closeout.c (close_stdout): Also close stderr.
76493         * lib/closeout.h: Update comment.
76494
76495 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76496
76497         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
76498         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
76499         * lib/dirchownmod.c: Include lchown.h.
76500         * lib/lchown.c: Don't include files that lchown.h now includes.
76501         Don't declare chown, since lchown.h now does that.
76502         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
76503         (lchown): Define to rpl_chown if lchown is declared but
76504         does not exist.  Declare using a prototype if lchown is not
76505         declared.  Add a copyright notice.
76506         * lib/mkstemp.h: Include <unistd.h>.
76507         * lib/openat.c: Include lchown.h.
76508
76509         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
76510         we now test for that separately.
76511         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
76512         rather than O_NOFOLLOW, when testing whether it's possible to
76513         avoid a race condition reliably.
76514         * lib/savewd.c (savewd_chdir): Likewise.
76515
76516         Remove macros that are no longer needed now that stdint.h is
76517         reliable.
76518         * lib/fsusage.c (UINTMAX_MAX): Remove.
76519         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
76520         * lib/utimecmp.c (SIZE_MAX): Remove.
76521
76522         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
76523
76524         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
76525         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
76526         O_NOATIME works.
76527
76528 2006-10-05  Bruno Haible  <bruno@clisp.org>
76529
76530         * lib/gl_list.h (gl_sortedlist_search_from_to,
76531         gl_sortedlist_indexof_from_to): New declarations.
76532         (gl_list_implementation): New fields sortedlist_search_from_to,
76533         sortedlist_indexof_from_to.
76534         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
76535         inline functions.
76536         * lib/gl_list.c (gl_sortedlist_search_from_to,
76537         gl_sortedlist_indexof_from_to): New functions.
76538         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
76539         function.
76540         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
76541         (gl_array_sortedlist_search_from_to): New function.
76542         (gl_array_list_implementation): Update.
76543         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
76544         function.
76545         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
76546         (gl_carray_sortedlist_search_from_to): New function.
76547         (gl_carray_list_implementation): Update.
76548         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
76549         gl_linked_sortedlist_indexof_from_to): New functions.
76550         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76551         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76552         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
76553         gl_tree_sortedlist_indexof_from_to): New functions.
76554         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76555         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76556         Update.
76557         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76558         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
76559         Update.
76560
76561 2006-10-05  Bruno Haible  <bruno@clisp.org>
76562
76563         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
76564         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
76565         (struct gl_list_implementation): Add fields search_from_to,
76566         indexof_from_to. Remove fields search, indexof.
76567         (gl_list_search): Use the search_from_to method.
76568         (gl_list_search_from, gl_list_search_from_to): New functions.
76569         (gl_list_indexof): Use the indexof_from_to method.
76570         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76571         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
76572         (gl_list_search_from, gl_list_search_from_to): New functions.
76573         (gl_list_indexof): Use the indexof_from_to method.
76574         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76575         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
76576         gl_array_indexof. Add start_index, end_index arguments.
76577         (gl_array_search_from_to): Renamed from gl_array_search. Add
76578         start_index, end_index arguments.
76579         (gl_array_remove, gl_array_list_implementation): Update.
76580         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
76581         gl_carray_indexof. Add start_index, end_index arguments.
76582         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
76583         start_index, end_index arguments.
76584         (gl_carray_remove, gl_carray_list_implementation): Update.
76585         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
76586         gl_linked_search. Add start_index, end_index arguments.
76587         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
76588         start_index, end_index arguments.
76589         (gl_linked_remove): Update.
76590         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76591         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76592         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
76593         field to 'size_t'.
76594         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
76595         gl_tree_search. Add start_index, end_index arguments.
76596         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76597         start_index, end_index arguments.
76598         (gl_tree_remove): Update.
76599         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76600         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76601         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
76602         function.
76603         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
76604         gl_tree_search. Add start_index, end_index arguments.
76605         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76606         start_index, end_index arguments.
76607         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76608         Update.
76609         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
76610
76611 2006-10-05  Bruno Haible  <bruno@clisp.org>
76612
76613         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
76614
76615         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
76616         fwriteerror_temp): New declarations.
76617         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
76618         (descriptors): New variable.
76619         (cleanup): First, close the descriptors.
76620         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
76621         fclose_temp, fwriteerror_temp): New functions.
76622
76623 2006-10-04  Jim Meyering  <jim@meyering.net>
76624
76625         * lib/fts.c (fts_open): Tiny comment change.
76626
76627 2006-10-04  Bruno Haible  <bruno@clisp.org>
76628
76629         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
76630         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
76631         gl_LOCK_BODY.
76632         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
76633         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
76634         gl_LOCK_EARLY_BODY.
76635         (gl_LOCK): Require gl_LOCK_BODY.
76636
76637 2006-10-04  Bruno Haible  <bruno@clisp.org>
76638
76639         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
76640         (gl_oset_search_atleast): New declaration.
76641         (struct gl_oset_implementation): Add field 'search_atleast'.
76642         (gl_oset_search_atleast): New inline function.
76643         * lib/gl_oset.c (gl_oset_search_atleast): New function.
76644         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
76645         (gl_array_oset_implementation): Update.
76646         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
76647         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
76648         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
76649
76650 2006-10-04  Bruno Haible  <bruno@clisp.org>
76651
76652         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
76653
76654 2006-10-03  Bruno Haible  <bruno@clisp.org>
76655
76656         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
76657         from gl_avltreehash_list_implementation.
76658
76659 2006-10-03  Bruno Haible  <bruno@clisp.org>
76660
76661         * lib/gl_oset.c (gl_oset_add): Fix return type.
76662
76663 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
76664
76665         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
76666
76667 2006-10-02  Eric Blake  <ebb9@byu.net>
76668
76669         * modules/strnlen (Depends-on): Add extensions.
76670
76671 2006-10-02  Eric Blake  <ebb9@byu.net>
76672
76673         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
76674         definition in 2.60+.
76675
76676 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
76677
76678         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
76679         checks.
76680
76681 2006-10-02  Bruno Haible  <bruno@clisp.org>
76682
76683         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
76684         to the AUTOMAKE_OPTIONS.
76685         Reported by Jim Meyering.
76686
76687 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76688
76689         Work around bug in Solaris 10 /proc file system:
76690         /proc/self/fd/NNN/.. isn't the parent directory of
76691         the directory whose file descriptor is NNN.  This needs to
76692         be worked around at run time, not compile time, since a
76693         program might be built on Solaris 8, where things work, and
76694         run on Solaris 10.
76695         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
76696         to use the following interface instead:
76697         (OPENAT_BUFFER_SIZE): New macro.
76698         (openat_proc_name): New function.
76699         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
76700         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
76701         Likewise.
76702         * lib/openat-proc.c: New file.
76703         * modules/openat (Files): Add lib/openat-proc.c.
76704         (Depends-on): Add same-inode, stdbool.
76705         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
76706
76707 2006-09-29  Bruno Haible  <bruno@clisp.org>
76708
76709         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
76710         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
76711         argument. Set stdout_closed before testing for ferror, not after.
76712         (fwriteerror, fwriteerror_no_ebadf): New functions.
76713
76714 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76715
76716         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
76717
76718 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
76719
76720         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
76721         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
76722
76723 2006-09-28  Jim Meyering  <jim@meyering.net>
76724
76725         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
76726         Include <unistd.h>.
76727
76728 2006-09-28  Bruno Haible  <bruno@clisp.org>
76729
76730         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
76731         * modules/linkedhash-list (Depends-on): Likewise.
76732         * modules/rbtreehash-list (Depends-on): Likewise.
76733
76734 2006-09-28  Bruno Haible  <bruno@clisp.org>
76735
76736         * lib/strndup.h: Simplify the redefinition of strndup.
76737         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
76738         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
76739
76740 2006-09-28  Bruno Haible  <bruno@clisp.org>
76741
76742         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
76743         * lib/gl_linkedhash_list.c: Likewise.
76744         * lib/gl_rbtreehash_list.c: Likewise.
76745
76746 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76747
76748         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
76749         getaddrinfo.
76750
76751         * lib/__fpending.h: Don't include <stdio_ext.h> unless
76752         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
76753         it causes <stdio_ext.h> to cause a compile-time error.
76754         Problem reported by Nelson H. F. Beebe.
76755         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
76756         of HAVE_DECL___PENDING.
76757
76758         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
76759         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
76760         declaration.
76761
76762 2006-09-27  Jim Meyering  <jim@meyering.net>
76763
76764         This file could end up with a definition for a function
76765         named __strndup, rather than rpl_strndup on a system with
76766         incomplete weak_alias support.
76767         * lib/strndup.c (strndup): Rename from __strndup.
76768         Remove #defines that used to map __strndup to strndup.
76769         Don't use K&R prototypes.
76770         Remove LIBC-related code, since this file is not sync'd with glibc.
76771         * lib/strndup.h: Revamp, accordingly.
76772         * m4/strndup.m4: Modernize.
76773
76774 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76775
76776         * modules/savewd (Depends-on): Add 'raise'.
76777         * lib/savewd.c: Include <signal.h>, for 'raise'.
76778
76779 2006-09-26  Jim Meyering  <jim@meyering.net>
76780
76781         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
76782         when we detect Darwin 8.7.0's acl_get_file bug.
76783         Rearrange to perform the new (below) run-test while $LIBS
76784         contains any acl-related library.  Set USE_ACL at the end.
76785         (gl_ACL_GET_FILE): New function.
76786
76787 2006-09-26  Eric Blake  <ebb9@byu.net>
76788
76789         * lib/verror.c: Include <config.h> unconditionally.
76790
76791 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
76792
76793         * modules/clock-time (Maintainer): Add self.
76794         * modules/getlogin_r (Depends-on): Add extensions.
76795
76796 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76797
76798         * modules/clock-time: New module.
76799         * modules/nanosleep (Depends-on): Add clock-time.
76800         * modules/gethrxtime (Depends-on): Likewise.
76801         * modules/gettime (Depends-on): Likewise.
76802         * modules/settime (Depends-on): Likewise.
76803
76804         * modules/fts-lgpl: Depend on openat.
76805         * modules/mkancesdirs: Depend on savewd.
76806         * modules/mkdir-p: Likewise.
76807
76808 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76809
76810         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
76811
76812         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
76813         `gl_have_arbitrary_file_name_length_limit' to
76814         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
76815         actually works between configure runs.
76816
76817 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76818             Bruno Haible  <bruno@clisp.org>
76819
76820         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
76821
76822 2006-09-25  Jim Meyering  <jim@meyering.net>
76823
76824         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
76825         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
76826
76827 2006-09-25  Eric Blake  <ebb9@byu.net>
76828
76829         * gnulib-tool (func_import, func_create_testdir): Fix typos in
76830         exec's in 2006-09-18 patch when shuffling fds.
76831
76832 2006-09-25  Bruno Haible  <bruno@clisp.org>
76833
76834         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
76835         Reported by Jim Meyering.
76836
76837 2006-09-24  Jim Meyering  <jim@meyering.net>
76838
76839         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
76840         compare a pointer against a literal "0".  That caused failures with
76841         at least HP-UX's hpcc.
76842
76843 2006-09-22  Simon Josefsson  <jas@extundo.com>
76844
76845         * modules/gc-sha1:
76846         * modules/gc-md4:
76847         * modules/gc-hmac-sha1:
76848         * modules/gc-hmac-md5:
76849         * modules/gc-des:
76850         * modules/gc-arcfour: Distribute more files.
76851
76852 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76853
76854         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
76855         (gl_linked_iterator_from_to): Initialize struct completely.
76856         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
76857         (gl_tree_iterator_from_to): Likewise
76858         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
76859         * lib/gl_array_list.c [lint] (gl_array_iterator)
76860         (gl_array_iterator_from_to): Likewise.
76861         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
76862         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
76863         (gl_carray_iterator_from_to): Likewise.
76864
76865         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
76866         * lib/md4.c (md4_process_block): Remove unused variable.
76867         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
76868         parentheses for clarity.
76869
76870 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76871
76872         * modules/bison-i18n (Depends-on): Add gettext.
76873
76874 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76875
76876         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
76877         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76878         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
76879         also add missing comma that caused broken test.
76880         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
76881         stdlib.h, for `abort'.
76882         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
76883         variables.
76884         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
76885         include unistd.h if present, for `rmdir'.
76886         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
76887         variables.
76888         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
76889         in the process include standard headers for prototypes.
76890         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
76891         gets declared on GNU/Linux.
76892         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
76893         unistd.h, for `rmdir'.
76894         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
76895
76896         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
76897         always true.
76898         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
76899
76900         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
76901
76902 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76903
76904         * gnulib-tool (func_version): Create output all at once.  This
76905         may help avoid triggering unnecessary SIGPIPEs, and at any
76906         rate it doesn't hurt.
76907
76908 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76909             Bruno Haible  <bruno@clisp.org>
76910
76911         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
76912         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76913         * m4/signed.m4 (bh_C_SIGNED): Likewise.
76914
76915         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
76916         (gl_FUNC_VASPRINTF): Invoke it.
76917
76918 2006-09-22  Bruno Haible  <bruno@clisp.org>
76919
76920         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
76921         getloadavg.c as first argument.
76922
76923 2006-09-22  Bruno Haible  <bruno@clisp.org>
76924
76925         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
76926         at the beginning of the gl_INIT macro.
76927         * modules/getloadavg (configure.ac): Pass $gl_source_base to
76928         gl_GETLOADAVG.
76929
76930 2006-09-22  Bruno Haible  <bruno@clisp.org>
76931
76932         * gnulib-tool (func_create_megatestdir): Don't include the config-h
76933         module.
76934         Suggested by Ralf Wildenhues.
76935
76936 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76937
76938         Import this patch from libc:
76939
76940         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
76941
76942         * lib/regex_internal.c (re_string_reconstruct): Handle
76943         offset < pstr->valid_raw_len && pstr->offsets_needed case.
76944         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
76945         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
76946         re_string_context_at.
76947
76948         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
76949         now requires it.
76950         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
76951         gl_REGEX now does it for us.
76952         (gl_REGEX): Add test taken from
76953         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
76954
76955         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
76956         Check that large offsets work.  Modernize Autoconf usages.
76957         Prefer "yes" to mean a good thing rather than a bad.
76958         Don't put "#define mkstemp" in config.h, as this might interfere
76959         with standard system headers that "#define mkstemp mkstemp64".
76960
76961         * modules/mkstemp (Depends-on): Add extensions, so that
76962         mkstemp is visible on some platforms.
76963         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
76964         (Include): Change to "mkstemp.h" from <stdlib.h>.
76965         (Files): Add mkstemp.h.
76966
76967         * lib/mkstemp.h: New file, since some standard headers
76968         #define mkstemp.
76969         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
76970         Include "mkstemp.h".
76971         Make the _LIBC code resemble glibc original more,
76972         e.g., use K&R style.
76973         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
76974         (mkstemp): Remove, since mkstemp.h does this for us.
76975         * lib/stdlib--.h: Include mkstemp.h.
76976
76977         Import this patch from libc:
76978
76979         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76980
76981         * lib/tempname.c (__gen_tempname): Change attempts_min
76982         into a macro.  Use preprocessor to decide how to initialize
76983         attempts [Coverity CID 67].
76984
76985 2006-09-20  Bruno Haible  <bruno@clisp.org>
76986
76987         * lib/mkdtemp.c: Import from libc.
76988         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76989                 * sysdeps/posix/tempname.c (__gen_tempname): Change
76990                 attempts_min into a macro.  Use preprocessor to decide how to
76991                 initialize attempts [Coverity CID 67].
76992         2001-11-27  Paul Eggert  <eggert@twinsun.com>
76993                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
76994                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
76995
76996 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76997
76998         * gnulib-tool (func_exit): New function, to allow to pass the
76999         exit status portably through the trap.  Use everywhere.
77000         (--help, --version): Signal a write error.
77001         (trap): catch SIGPIPE, for write errors.
77002         Exit at the end of the trap, with the correct exit status.
77003
77004 2006-09-19  Karl Berry  <karl@gnu.org>
77005
77006         * doc/gnulib.texi: note about the license texinfo files.
77007
77008 2006-09-19  Eric Blake  <ebb9@byu.net>
77009
77010         * gnulib-tool: Avoid space-tab.
77011
77012 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77013
77014         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
77015         that prevented coreutils 6.1 from building.  Problem reported
77016         by Petter Reinholdtsen.
77017
77018 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77019
77020         * gnulib-tool (avoidlist): Fix typo that broke options like
77021         --avoid=lock that are used by coreutils bootstrap.
77022
77023 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
77024
77025         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
77026         more systematically.
77027
77028 2006-09-18  Jim Meyering  <jim@meyering.net>
77029
77030         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
77031
77032 2006-09-18  Bruno Haible  <bruno@clisp.org>
77033
77034         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
77035
77036 2006-09-18  Bruno Haible  <bruno@clisp.org>
77037
77038         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
77039         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
77040         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
77041         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
77042         * m4/gettext.m4: Require autoconf >= 2.52.
77043         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
77044         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
77045         of gl_cv_header_inttypes_h.
77046
77047 2006-09-18  Bruno Haible  <bruno@clisp.org>
77048
77049         * lib/javaversion.c: Include configmake.h.
77050
77051 2006-09-18  Bruno Haible  <bruno@clisp.org>
77052
77053         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
77054         avoid that the while loops be executed in a subshell.
77055
77056 2006-09-18  Bruno Haible  <bruno@clisp.org>
77057
77058         * MODULES.html.sh (func_module): Break long lines.
77059         Suggested by Bruce Korb <bkorb@gnu.org>.
77060
77061 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77062
77063         Speed up by a factor of 1.12.
77064         * gnulib-tool (nl): New variable.
77065         (func_import): Rewrite include directive extraction to only read each
77066         directive once.
77067
77068 2006-09-17  Bruno Haible  <bruno@clisp.org>
77069
77070         * modules/javaversion (Makefile.am): Remove DEFS setting.
77071         (Depends-on): Add configmake, for PKGDATADIR definition.
77072
77073 2006-09-17  Bruno Haible  <bruno@clisp.org>
77074
77075         * gnulib-tool (func_create_testdir): Rewrite all files at once.
77076
77077 2006-09-17  Bruno Haible  <bruno@clisp.org>
77078
77079         * gnulib-tool (func_append): New function, stolen from libtool.m4.
77080         (func_modules_transitive_closure, func_modules_add_dummy,
77081         func_modules_to_filelist, func_import, func_create_testdir,
77082         func_create_megatestdir, ...): Use it wherever possible.
77083         Suggested by Ralf Wildenhues.
77084
77085 2006-09-16  Karl Berry  <karl@gnu.org>
77086
77087         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
77088         to avoid sectioning errors.
77089         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
77090         [ifinfo]: blank line after @center-ed titles.
77091         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
77092         Spell FSF address consistently with others.
77093         (These changes approved by rms.)
77094
77095 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77096
77097         Speed up by a factor of 1.61.
77098         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
77099         already checked module names again.
77100
77101 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77102
77103         Speed up by a factor of 1.13.
77104         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
77105         for new_files, and the input to func_add_or_update.
77106
77107 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77108
77109         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
77110         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
77111
77112 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77113
77114         * modules/mkancesdirs (Depends-on): Add fcntl.
77115         * modules/savewd: New file.
77116         * MODULES.html.sh (File system functions): Add savewd.
77117
77118         * modules/configmake (Makefile.am): Add support for the
77119         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
77120
77121 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77122
77123         * m4/savewd.m4: New file.
77124
77125 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77126
77127         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
77128         (dirchownmod): New arg FD.  All callers changed.
77129         Use FD rather than opening the directory ourself, as opening is
77130         now the caller's responsibility.
77131         * lib/dirchownmod.h: Likewise.
77132         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
77133         hosts that require <sys/types.h> before <sys/stat.h>.  Include
77134         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
77135         (test_dir): Remove.
77136         (mkancesdirs): Return length of prefix of FILE that has already
77137         been made, or -2 if there is a child doing the work.  Redo
77138         algorithm so that it is O(N) rather than O(N**2).  Optimize away
77139         ".", and treat ".." specially since it might stray back into
77140         already-created areas.  Use a subprocess if necessary.  New arg
77141         WD; all users changed.  MAKE_DIR function should now return 1
77142         if it creates a directory that is not readable.  Return -2 if
77143         a child process is spun off.
77144         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
77145         Adjust signature to match code.
77146         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
77147         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
77148         all users changed.
77149         * lib/savewd.c, lib/savewd.h: New files.
77150
77151 2006-09-15  Jim Meyering  <jim@meyering.net>
77152
77153         * modules/rename-dest-slash: New module.
77154         * MODULES.html.sh (posix_compat): Add it here.
77155
77156         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
77157
77158 2006-09-15  Jim Meyering  <jim@meyering.net>
77159
77160         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
77161         file.
77162
77163         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
77164
77165 2006-09-15  Jim Meyering  <jim@meyering.net>
77166
77167         * lib/rename-dest-slash.c (has_trailing_slash): Use
77168         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
77169         (rpl_rename_dest_slash): Perform the cheaper trailing slash
77170         test before testing whether SRC is a directory.
77171         Suggestions from Bruno Haible.
77172
77173         Avoid a warning about an unused variable.
77174         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
77175         into the #ifdef block where it's used.
77176
77177         * lib/rename-dest-slash.c: New file.
77178
77179 2006-09-14  Bruno Haible  <bruno@clisp.org>
77180
77181         * lib/allocsa.c: Include <config.h> unconditionally.
77182         * lib/asnprintf.c: Likewise.
77183         * lib/asprintf.c: Likewise.
77184         * lib/c-strcasecmp.c: Likewise.
77185         * lib/c-strcasestr.c: Likewise.
77186         * lib/c-strncasecmp.c: Likewise.
77187         * lib/c-strstr.c: Likewise.
77188         * lib/classpath.c: Likewise.
77189         * lib/clean-temp.c: Likewise.
77190         * lib/concatpath.c: Likewise.
77191         * lib/copy-file.c: Likewise.
77192         * lib/csharpcomp.c: Likewise.
77193         * lib/csharpexec.c: Likewise.
77194         * lib/execute.c: Likewise.
77195         * lib/fatal-signal.c: Likewise.
77196         * lib/findprog.c: Likewise.
77197         * lib/fwriteerror.c: Likewise.
77198         * lib/gl_array_list.c: Likewise.
77199         * lib/gl_array_oset.c: Likewise.
77200         * lib/gl_avltree_list.c: Likewise.
77201         * lib/gl_avltree_oset.c: Likewise.
77202         * lib/gl_avltreehash_list.c: Likewise.
77203         * lib/gl_carray_list.c: Likewise.
77204         * lib/gl_linked_list.c: Likewise.
77205         * lib/gl_linkedhash_list.c: Likewise.
77206         * lib/gl_list.c: Likewise.
77207         * lib/gl_oset.c: Likewise.
77208         * lib/gl_rbtree_list.c: Likewise.
77209         * lib/gl_rbtree_oset.c: Likewise.
77210         * lib/gl_rbtreehash_list.c: Likewise.
77211         * lib/imaxabs.c: Likewise.
77212         * lib/imaxdiv.c: Likewise.
77213         * lib/javacomp.c: Likewise.
77214         * lib/javaexec.c: Likewise.
77215         * lib/javaversion.c: Likewise.
77216         * lib/linebreak.c: Likewise.
77217         * lib/localcharset.c: Likewise.
77218         * lib/lock.c: Likewise.
77219         * lib/mbchar.c: Likewise.
77220         * lib/mbswidth.c: Likewise.
77221         * lib/mkdtemp.c: Likewise.
77222         * lib/pipe.c: Likewise.
77223         * lib/printf-args.c: Likewise.
77224         * lib/printf-parse.c: Likewise.
77225         * lib/progname.c: Likewise.
77226         * lib/progreloc.c: Likewise.
77227         * lib/readlink.c: Likewise.
77228         * lib/sh-quote.c: Likewise.
77229         * lib/stpcpy.c: Likewise.
77230         * lib/stpncpy.c: Likewise.
77231         * lib/strcasecmp.c: Likewise.
77232         * lib/strcasestr.c: Likewise.
77233         * lib/strcspn.c: Likewise.
77234         * lib/striconv.c: Likewise.
77235         * lib/strncasecmp.c: Likewise.
77236         * lib/strnlen1.c: Likewise.
77237         * lib/strstr.c: Likewise.
77238         * lib/strtok_r.c: Likewise.
77239         * lib/tls.c: Likewise.
77240         * lib/tmpdir.c: Likewise.
77241         * lib/unicodeio.c: Likewise.
77242         * lib/unsetenv.c: Likewise.
77243         * lib/vasnprintf.c: Likewise.
77244         * lib/vasprintf.c: Likewise.
77245         * lib/wait-process.c: Likewise.
77246         * lib/xallocsa.c: Likewise.
77247         * lib/xsetenv.c: Likewise.
77248         * lib/xstriconv.c: Likewise.
77249
77250 2006-09-13  Simon Josefsson  <jas@extundo.com>
77251
77252         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
77253         that internally, suggested by Ralf Wildenhues
77254         <Ralf.Wildenhues@gmx.de>.
77255
77256 2006-09-13  Simon Josefsson  <jas@extundo.com>
77257
77258         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
77259         @LIBOBJS@.
77260         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77261
77262 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77263
77264         * lib/_fpending.c: Include <config.h> unconditionally, since we no
77265         longer worry about uses that don't define HAVE_CONFIG_H.
77266         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
77267         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
77268         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
77269         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
77270         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
77271         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
77272         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
77273         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
77274         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
77275         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
77276         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
77277         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
77278         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
77279         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
77280         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
77281         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
77282         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
77283         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
77284         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
77285         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
77286         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
77287         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
77288         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
77289         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
77290         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
77291         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
77292         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
77293         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
77294         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
77295         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
77296         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
77297         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
77298         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
77299         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
77300         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
77301         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
77302         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
77303         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
77304         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
77305         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
77306         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
77307         Likewise.
77308
77309 2006-09-13  Eric Blake  <ebb9@byu.net>
77310
77311         * lib/getopt.c: Fix typo in last commit.
77312
77313 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77314
77315         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
77316         dgettext.
77317
77318 2006-09-12  Jim Meyering  <jim@meyering.net>
77319
77320         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
77321         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
77322         Reported by Nelson H. F. Beebe.
77323
77324 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77325
77326         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
77327         program_invocation_name and program_invocation_short_name are
77328         initialized.
77329         * lib/argp-namefrob.h: Move declarations of program_invocation_name
77330         and program_invocation_short_name to argp.h, so they are visible
77331         to user programs.
77332         * lib/argp.h: Likewise
77333
77334 2006-09-10  Bruno Haible  <bruno@clisp.org>
77335
77336         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77337         m4/inttypes_h.m4, m4/uintmax_t.m4.
77338
77339 2006-09-10  Bruno Haible  <bruno@clisp.org>
77340
77341         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
77342         gl_AC_TYPE_UINTMAX_T.
77343
77344 2006-09-10  Bruno Haible  <bruno@clisp.org>
77345
77346         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
77347
77348 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77349
77350         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
77351         convention.  Text proposed by Bruno Haible.
77352         (struct argp_option): Document the use of N_() wrappers.
77353
77354         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
77355         '\v', and translate the two parts separately, instead of feeding
77356         the whole string to gettext.  This allows to exclude
77357         '\v' from the strings visible to the translator by writing doc
77358         strings as N_("..") "\v" N_("..").
77359
77360 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
77361
77362         * config/srclist.txt: Undo latest change; the bug was fixed.
77363
77364 2006-09-09  Bruno Haible  <bruno@clisp.org>
77365
77366         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
77367         assignments if building a library without libtool.
77368         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
77369         in func_emit_lib_Makefile_am.
77370         (func_import): When building a static library libfoo.a, arrange to
77371         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
77372         (func_create_testdir): Likewise.
77373         * modules/gc (configure.ac, Makefile.am): If building statically,
77374         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
77375         * modules/iconvme (configure.ac, Makefile.am): Likewise.
77376         * modules/striconv (configure.ac, Makefile.am): Likewise.
77377         Based on a suggestion by Ralf Wildenhues.
77378
77379 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77380
77381         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
77382         Check for unistd.h too, since Autoconf doesn't assume POSIX.
77383         Also:
77384
77385         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77386         Add year_2050_test to catch glibc bug 2821
77387         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77388
77389         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77390         Prefer #ifdef to #if.
77391
77392         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
77393         Return from 'main' instead of calling 'exit'.
77394
77395 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77396
77397         * lib/mktime.c (guess_time_tm): Fix bug where mktime
77398         returned the maximum time_t value rather than (time_t) -1.
77399         Problem originally reported by William Bardwell
77400         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77401
77402         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77403         Moved to here ...
77404         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77405         ... from here.
77406
77407 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77408
77409         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
77410         2821 is fixed.
77411
77412 2006-09-08  Jim Meyering  <jim@meyering.net>
77413
77414         Don't make generated files read-only.  That would bother too many
77415         people.  However, do retain the ability to work when targets are
77416         read-only: remove the destination and temporary files before writing
77417         them (when generated via sed or echo), or by using the -f option for
77418         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
77419         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77420         * modules/byteswap, modules/configmake, modules/fcntl:
77421         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77422         * modules/localcharset, modules/netinet_in, modules/poll:
77423         * modules/stdbool, modules/stdint, modules/sys_select:
77424         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77425
77426 2006-09-08  Jim Meyering  <jim@meyering.net>
77427
77428         Avoid new build failure on FreeBSD 6.0.
77429         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
77430         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
77431         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
77432
77433 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77434
77435         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
77436
77437 2006-09-07  Jim Meyering  <jim@meyering.net>
77438
77439         Fix global typo in last change: use chmod u-w, not chmod u-x.
77440         Spotted by Paul Eggert and Bruce Korb.
77441         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77442         * modules/byteswap, modules/configmake, modules/fcntl:
77443         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77444         * modules/localcharset, modules/netinet_in, modules/poll:
77445         * modules/stdbool, modules/stdint, modules/sys_select:
77446         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77447
77448 2006-09-06  Jim Meyering  <jim@meyering.net>
77449
77450         Make generated files be read-only.
77451         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
77452         Ensure that each generated file is now read-only.
77453         * modules/argz: Likewise.
77454         * modules/arpa_inet: Likewise.
77455         * modules/byteswap: Likewise.
77456         * modules/configmake: Likewise.
77457         * modules/fcntl: Likewise.
77458         * modules/fnmatch: Likewise.
77459         * modules/getopt: Likewise.
77460         * modules/glob: Likewise.
77461         * modules/inttypes: Likewise.
77462         * modules/netinet_in: Likewise.
77463         * modules/poll: Likewise.
77464         * modules/stdbool: Likewise.
77465         * modules/stdint: Likewise.
77466         * modules/sys_select: Likewise.
77467         * modules/sys_socket: Likewise.
77468         * modules/sys_stat: Likewise.
77469         * modules/sysexits: Likewise.
77470         * modules/localcharset: Same as above, but continue using temporary
77471         file named "t-$@" (why different?) rather than the "$@-t" used
77472         everywhere else.
77473
77474         * modules/sysexits (Makefile.am): Replace literal occurrences
77475         of "sysexit.h" more readable, and more consistent, "$@".
77476
77477 2006-09-06  Bruno Haible  <bruno@clisp.org>
77478
77479         * modules/striconv: New file.
77480         * modules/xstriconv: New file.
77481         * MODULES.html.sh (Internationalization functions): Add striconv,
77482         xstriconv.
77483
77484 2006-09-06  Bruno Haible  <bruno@clisp.org>
77485
77486         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
77487         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
77488         not using libtool correctly.
77489
77490 2006-09-06  Bruno Haible  <bruno@clisp.org>
77491
77492         * lib/striconv.h: New file.
77493         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
77494         iconvstring.c.
77495         * lib/xstriconv.h: New file.
77496         * lib/xstriconv.c: New file.
77497
77498 2006-09-06  Bruno Haible  <bruno@clisp.org>
77499
77500         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
77501         lib_..._LDFLAGS.
77502
77503 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77504
77505         * lib/argz_.h: Sync from Libtool.
77506
77507         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
77508                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77509
77510         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
77511
77512 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77513
77514         * modules/trim: New file.
77515
77516 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77517
77518         * lib/trim.h: New file.
77519         * lib/trim.c: New file.
77520
77521 2006-09-05  Bruno Haible  <bruno@clisp.org>
77522
77523         * MODULES.html.sh (String handling): Add trim.
77524
77525 2006-09-04  Karl Berry  <karl@gnu.org>
77526
77527         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
77528         until next release.
77529
77530 2006-09-03  Bruno Haible  <bruno@clisp.org>
77531
77532         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
77533         correctly.
77534
77535 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77536
77537         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
77538         not gl_GETLOADAVG.  Omit unneeded semicolons.
77539         Problems reported by Ralf Wildenhues in
77540         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77541         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
77542         at the end, which is the usual gnulib style.
77543
77544         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
77545         of doing all the work ourselves.
77546         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
77547         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
77548
77549 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77550
77551         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
77552         Problem reported by Ralf Wildenhues in
77553         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77554
77555         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
77556         HAVE_STRUCT_STATFS_F_FSTYPENAME.
77557
77558 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77559
77560         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
77561         yesterday's patch by changing test -n to test -z.
77562
77563 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77564
77565         * modules/getloadavg (Files): Add m4/getloadavg.m4.
77566         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
77567         the former is now obsolescent.
77568
77569         * modules/chdir-long (Depends-on): Add fcntl.
77570
77571 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77572
77573         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
77574         obsolescent, and programs should use gnulib instead.
77575         * m4/getloadavg.m4: New file, with contents taken from Autoconf
77576         but with prefixes changed.
77577
77578 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77579
77580         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
77581         or stdbool.h, because they might not exist while configuring.
77582
77583         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
77584         Don't include unistd.h or limits.h; not needed, since chdir-long.h
77585         does that for us.
77586         (O_DIRECTORY): Remove.
77587
77588 2006-08-31  Eric Blake  <ebb9@byu.net>
77589
77590         * gnulib-tool: Don't let emacs change spaces to TAB.
77591
77592 2006-08-31  Bruno Haible  <bruno@clisp.org>
77593
77594         * gnulib-tool: When calling func_import more than once, do it in a
77595         subshell.
77596         Reported by Eric Blake <ebb9@byu.net>.
77597
77598 2006-08-31  Bruno Haible  <bruno@clisp.org>
77599
77600         * gnulib-tool (nl): Remove variable.
77601         (sed_transform_lib_file): Use more robust test for config-h module.
77602         (func_import): Fix typo in 2006-08-25 patch.
77603
77604 2006-08-31  Bruno Haible  <bruno@clisp.org>
77605
77606         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
77607         specified, augment Makefile.am variables instead of assigning them.
77608
77609 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77610
77611         Work around a bug in both the Linux and SunOS 64-bit kernels:
77612         nanosleep mishandles sleeps for longer than 2**31 seconds.
77613         Problem reported by Frank v Waveren in
77614         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77615         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
77616         Check for nanosleep bug.
77617         (LIB_NANOSLEEP): Append clock_gettime library if needed.
77618
77619 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77620
77621         Work around a bug in both the Linux and SunOS 64-bit kernels:
77622         nanosleep mishandles sleeps for longer than 2**31 seconds.
77623         Problem reported by Frank v Waveren in
77624         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77625         * lib/nanosleep.c (BILLION): New constant.
77626         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
77627         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
77628         implementation.
77629
77630 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77631
77632         * modules/nanosleep (Depends-on): Add gettime.
77633
77634 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77635         and Simon Josefsson  <jas@extundo.com>
77636         and Oskar Liljeblad  <oskar@osk.mine.nu>
77637
77638         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
77639         * gnulib-tool (func_import): New license type 'unmodifiable license
77640         text'.
77641         * modules/fdl: Use it.  Longer description.
77642         * module/gpl, module/lgpl: New files.
77643
77644 2006-08-30  Jim Meyering  <jim@meyering.net>
77645
77646         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
77647         shadowing the parameter.
77648
77649 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77650
77651         Sync from Libtool:
77652
77653         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77654
77655         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
77656         sharing with gnulib.  Report by Eric Blake.
77657
77658 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77659
77660         * modules/isapipe: New file.
77661         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
77662
77663 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77664
77665         * modules/configmake (Makefile.am): Add a comment, and omit
77666         the CONFIGMAKE_ prefix from generated macro names.  Suggested
77667         by Bruno Haible.
77668
77669 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77670
77671         * m4/isapipe.m4: New file.
77672
77673 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77674
77675         * lib/isapipe.c, lib/isapipe.h: New files.
77676
77677 2006-08-29  Jim Meyering  <jim@meyering.net>
77678
77679         * modules/configmake (Makefile.am): Make configmake.h depend on
77680         Makefile.  Otherwise, a stale configmake.h could hang around.
77681
77682 2006-08-29  Eric Blake  <ebb9@byu.net>
77683
77684         * lib/error.c (error_at_line, print_errno_message): Match libc, after
77685         resolution of upstream bug 3044.
77686
77687 2006-08-29  Bruno Haible  <bruno@clisp.org>
77688
77689         * modules/localcharset (Depends-on): Add configmake.
77690         (Makefile.am): Remove setting of LIBDIR through DEFS.
77691
77692 2006-08-29  Bruno Haible  <bruno@clisp.org>
77693
77694         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
77695         defined.
77696
77697 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77698
77699         * modules/fcntl: New file.
77700         * modules/chdir-safer (Depends-on): Add fcntl.
77701         * modules/fts: Likewise.
77702         * modules/mkdir-p: Likewise.
77703
77704         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
77705         This undoes the most recent change, since we're now addressing the
77706         problem in a different way.
77707
77708         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
77709         into output, since the output might be called Makefile.am even
77710         if $makefile_name is something different.
77711         (func_import): Use $makefile_am rather than
77712         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
77713         empty.
77714
77715         * modules/inttypes (Files): Add m4/inttypes-h.m4.
77716
77717 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77718
77719         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
77720         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
77721         recent change to stdint.m4, since we're now addressing the problem in a
77722         different way.
77723
77724 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77725
77726         * m4/fcntl_h.m4: New file.
77727
77728 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77729
77730         * lib/fcntl_.h: New file.
77731         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
77732         the fcntl module.
77733         * lib/dirchownmod.c: Likewise.
77734         * lib/fts.c: Likewise.
77735
77736         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
77737         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
77738         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
77739         just before including <inttypes.h>, to avoid circular inclusion.
77740
77741 2006-08-28  Jim Meyering  <jim@meyering.net>
77742
77743         * doc/visibility.texi: Actually read and correct the grammar of the
77744         sentence affected by yesterday's change.
77745
77746 2006-08-28  Eric Blake  <ebb9@byu.net>
77747
77748         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
77749         needs wrapper.
77750
77751 2006-08-28  Eric Blake  <ebb9@byu.net>
77752
77753         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
77754
77755 2006-08-28  Eric Blake  <ebb9@byu.net>
77756
77757         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
77758
77759 2006-08-28  Bruno Haible  <bruno@clisp.org>
77760
77761         * modules/c-strstr: New file, from GNU gettext.
77762         * MODULES.html.sh (String handling): Add c-strstr.
77763
77764 2006-08-28  Bruno Haible  <bruno@clisp.org>
77765
77766         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
77767         macros.
77768         Reported by Eric Blake.
77769
77770 2006-08-28  Bruno Haible  <bruno@clisp.org>
77771
77772         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
77773         (VASNPRINTF): Return a string of length > INT_MAX without failing.
77774         * lib/vasprintf.c: Include errno.h, limits.h.
77775         (EOVERFLOW): New fallback definition.
77776         (vasprintf): Test here whether the string length is > INT_MAX.
77777         * lib/vsnprintf.c: Include errno.h, limits.h.
77778         (EOVERFLOW): New fallback definition.
77779         (vsnprintf): Fix bug when generated string was too long for the buffer.
77780         Test here whether the string length is > INT_MAX.
77781
77782 2006-08-28  Bruno Haible  <bruno@clisp.org>
77783
77784         * lib/inttypes_.h (SCNX*): Remove definitions.
77785         Reported by Eric Blake.
77786
77787 2006-08-28  Bruno Haible  <bruno@clisp.org>
77788
77789         * lib/c-strstr.h: New file, from GNU gettext.
77790         * lib/c-strstr.c: New file, from GNU gettext.
77791
77792 2006-08-28  Bruno Haible  <bruno@clisp.org>
77793
77794         * gnulib-tool: Reorder some statements.
77795
77796 2006-08-28  Bruno Haible  <bruno@clisp.org>
77797
77798         * gnulib-tool: New option --makefile-name.
77799         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
77800         $makefile_name.
77801         (func_import): Write $makefile_name to the cache file, and read it from
77802         there unless explicitly specified. Use $makefile_name as file name
77803         instead of Makefile.am. Adjust the recommendations accordingly.
77804
77805 2006-08-28  Bruno Haible  <bruno@clisp.org>
77806
77807         * gnulib-tool (func_verify_module): Check against misapplying patch.
77808
77809 2006-08-28  Bruno Haible  <bruno@clisp.org>
77810
77811         * gnulib-tool (func_relativize, func_relconcat): New functions.
77812         Give an error if --local-dir is given with --update.
77813         Remove trailing slashes from $local_gnulib_dir.
77814         (func_import): Store the relativized $local_gnulib_dir in
77815         gnulib-cache.m4, and read it from there if not specified explicitly.
77816
77817 2006-08-28  Bruno Haible  <bruno@clisp.org>
77818
77819         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
77820         is the current directory. Respect also $local_gnulib_dir.
77821
77822 2006-08-28  Bruno Haible  <bruno@clisp.org>
77823             Simon Josefsson  <jas@extundo.com>
77824
77825         BeOS portability.
77826         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
77827
77828 2006-08-27  Jim Meyering  <jim@meyering.net>
77829
77830         * doc/visibility.texi: Remove duplicate word: "pointer".
77831
77832 2006-08-26  Bruno Haible  <bruno@clisp.org>
77833
77834         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
77835         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
77836         (Makefile.am): Create inttypes.h from inttypes_.h.
77837         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
77838
77839         * modules/imaxabs: New file.
77840
77841         * modules/imaxdiv: New file.
77842
77843 2006-08-26  Bruno Haible  <bruno@clisp.org>
77844
77845         * m4/inttypes.m4: New file.
77846         * m4/_inttypes_h.m4: Remove file.
77847         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
77848         PRI_MACROS_BROKEN.
77849         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
77850
77851         * m4/imaxabs.m4: New file.
77852
77853         * m4/imaxdiv.m4: New file.
77854
77855 2006-08-26  Bruno Haible  <bruno@clisp.org>
77856
77857         * lib/inttypes_.h: New file.
77858         * lib/inttypes.h: Remove file.
77859         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
77860
77861         * lib/imaxabs.c: New file.
77862
77863         * lib/imaxdiv.c: New file.
77864
77865 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77866
77867         New config-h module, so that "make" output needn't be cluttered
77868         by -DHAVE_CONFIG_H.
77869         * MODULES.html.sh (Support for building libraries and executables):
77870         Add config-h.
77871         * modules/config-h: New file.
77872         * gnulib-tool (nl, sed_transform_lib_file): New vars.
77873         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
77874         the config-h module is used.
77875
77876         New configmake module, so that "make" output needn't be cluttered
77877         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
77878         * MODULES.html.sh (Support for building libraries and executables):
77879         Add configmake.
77880         * modules/configmake: New file.
77881
77882 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77883
77884         * m4/config-h.m4: New file.
77885
77886 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77887
77888         * config/srclist.txt: Add elisp-comp.
77889
77890 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77891
77892         * MODULES.html.sh (Support for building libraries and executables):
77893         Add elisp-comp.
77894         * build-aux/elisp-comp: New file.
77895         * modules/elisp-comp: New file.
77896
77897 2006-08-24  Bruno Haible  <bruno@clisp.org>
77898
77899         * gnulib-tool (func_create_testdir): Use non-default values of
77900         sourcebase and m4base.
77901
77902 2006-08-24  Bruno Haible  <bruno@clisp.org>
77903
77904         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
77905         HTML structure.
77906
77907 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77908
77909         * modules/openat (Depends-on): Add lchown.
77910
77911 2006-08-23  Bruno Haible  <bruno@clisp.org>
77912
77913         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
77914         of gl_LOCK_EARLY instead of gl_LOCK.
77915
77916 2006-08-23  Bruno Haible  <bruno@clisp.org>
77917
77918         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
77919         on OSF/1 to no.
77920         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
77921
77922 2006-08-23  Bruno Haible  <bruno@clisp.org>
77923
77924         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
77925         as unusable.
77926
77927         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
77928         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
77929         (gl_LOCK): New macro.
77930
77931 2006-08-22  Simon Josefsson  <jas@extundo.com>
77932
77933         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
77934         to md5 module.
77935
77936 2006-08-22  Simon Josefsson  <jas@extundo.com>
77937
77938         * MODULES.html.sh: Add "Support for maintaining and release
77939         projects".
77940
77941         * build-aux/gnupload: New file, from coreutils.
77942
77943 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77944
77945         Avoid the need for AC_LIBSOURCES in m4 macros.
77946         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
77947         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
77948         * modules/check-version (EXTRA_DIST): Add check-version.h.
77949         * modules/crc (EXTRA_DIST): Add crc.h.
77950         * modules/des (EXTRA_DIST): Add des.h.
77951         * modules/gc (EXTRA_DIST): Add gc.h.
77952         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
77953         * modules/getline (EXTRA_DIST): Add getline.h.
77954         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
77955         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
77956         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
77957         * modules/md2 (EXTRA_DIST): Add md2.h.
77958         * modules/md4 (EXTRA_DIST): Add md4.h.
77959         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
77960         * modules/read-file (EXTRA_DIST): Add read-file.h.
77961         * modules/readline (EXTRA_DIST): Add readline.h.
77962         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
77963         rijndael-api-fst.h.
77964
77965 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77966
77967         * m4/rijndael.m4 (gl_ARCFOUR):
77968         * m4/arctwo.m4 (gl_ARCTWO):
77969         * m4/check-version.m4 (gl_CHECK_VERSION):
77970         * m4/crc.m4 (gl_CRC):
77971         * m4/des.m4 (gl_DES):
77972         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
77973         * m4/gc.m4 (gl_GC):
77974         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
77975         * m4/getline.m4 (gl_FUNC_GETLINE):
77976         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
77977         * m4/hmac-md5.m4 (gl_HMAC_MD5):
77978         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
77979         * m4/md2.m4 (gl_MD2):
77980         * m4/md4.m4 (gl_MD4):
77981         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
77982         * m4/read-file.m4 (gl_FUNC_READ_FILE):
77983         * m4/readline.m4 (gl_FUNC_READLINE):
77984         * m4/rijndael.m4 (gl_RIJNDAEL):
77985         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77986         to get the necessary .h files and whatnot.
77987
77988 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77989
77990         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
77991         gnulib rather than the other way around.
77992         * config/srclistvars.sh (COREUTILS): Remove.
77993
77994 2006-08-22  Jim Meyering  <jim@meyering.net>
77995
77996         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
77997
77998         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
77999
78000 2006-08-22  Eric Blake  <ebb9@byu.net>
78001
78002         * modules/regexprops-generic: New file.
78003         * MODULES.html.sh (Support for building documentation): List it.
78004
78005 2006-08-22  Eric Blake  <ebb9@byu.net>
78006
78007         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
78008         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
78009         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
78010         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
78011
78012 2006-08-22  Bruno Haible  <bruno@clisp.org>
78013
78014         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
78015         and lib_LTLIBRARIES like the other lib_* variables.
78016
78017 2006-08-22  Bruno Haible  <bruno@clisp.org>
78018
78019         * build-aux/x-to-1.in: New file, from GNU gettext.
78020
78021 2006-08-22  Bruno Haible  <bruno@clisp.org>
78022
78023         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
78024         <utmpx.h> exists.
78025
78026 2006-08-22  Bruno Haible  <bruno@clisp.org>
78027
78028         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
78029         <utmpx.h> exists.
78030
78031 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78032
78033         BeOS portability.
78034         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
78035         exist.
78036         Problem reported by Bruno Haible.
78037
78038 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78039
78040         Avoid the need for AC_LIBSOURCES in m4 macros.
78041         * modules/acl (EXTRA_DIST): Add acl.h.
78042         * modules/argmatch (Files): Add m4/argmatch.m4.
78043         (configure.ac): Add gl_ARGMATCH.
78044         (EXTRA_DIST): Renamed from lib_SOURCES, for
78045         consistency with the other modules.  Remove argmatch.c.
78046         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
78047         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
78048         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
78049         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
78050         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
78051         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
78052         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
78053         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
78054         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
78055         * modules/closeout (EXTRA_DIST): Add closeout.h.
78056         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
78057         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
78058         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
78059         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
78060         dirname.h; remove basename.c and stripslash.c.
78061         * modules/exclude (EXTRA_DIST): Add exclude.h.
78062         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
78063         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
78064         * modules/file-type (EXTRA_DIST): Add file-type.h.
78065         * modules/filemode (EXTRA_DIST): Add filemode.h.
78066         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
78067         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78068         * modules/fpending (EXTRA_DIST): Add __fpending.h.
78069         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
78070         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
78071         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
78072         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
78073         * modules/getdate (EXTRA_DIST): Add getdate.c.
78074         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
78075         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
78076         * modules/getpass (EXTRA_DIST): Add getpass.h.
78077         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
78078         * modules/group-member (EXTRA_DIST): Add group-member.h.
78079         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
78080         * modules/hash (EXTRA_DIST): Add hash.h.
78081         * modules/human (EXTRA_DIST): Add human.h.
78082         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
78083         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
78084         * modules/lchown (EXTRA_DIST): Add lchown.h.
78085         * modules/long-options (EXTRA_DIST): Add long-options.h.
78086         * modules/lstat (EXTRA_DIST): Add lstat.h.
78087         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
78088         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
78089         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
78090         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
78091         * modules/memxor (EXTRA_DIST): Add memxor.h.
78092         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
78093         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
78094         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
78095         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
78096         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
78097         * modules/physmem (EXTRA_DIST): Add physmem.h.
78098         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
78099         * modules/posixver (EXTRA_DIST): Add posixver.h.
78100         * modules/quote (EXTRA_DIST): Add quote.h.
78101         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
78102         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
78103         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
78104         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
78105         regex_internal.h regexec.c.
78106         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
78107         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
78108         * modules/same (EXTRA_DIST): Add same.h.
78109         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
78110         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
78111         * modules/savedir (EXTRA_DIST): Add savedir.h.
78112         * modules/sha1 (EXTRA_DIST): Add sha1.h.
78113         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
78114         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
78115         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
78116         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
78117         * modules/strdup (EXTRA_DIST): Add strdup.h.
78118         * modules/strftime (EXTRA_DIST): Add strftime.h.
78119         * modules/strndup (EXTRA_DIST): Add strndup.h.
78120         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
78121         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
78122         * modules/time_r (EXTRA_DIST): Add time_r.h.
78123         * modules/timespec (EXTRA_DIST): Add timespec.h.
78124         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78125         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
78126         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
78127         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
78128         * modules/userspec (EXTRA_DIST): Add userspec.h.
78129         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
78130         * modules/utimens (EXTRA_DIST): Add utimens.h.
78131         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
78132         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
78133         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
78134         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
78135         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
78136         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
78137         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
78138         * modules/yesno (EXTRA_DIST): Add yesno.h.
78139
78140 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78141
78142         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
78143
78144         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
78145         * m4/dev-ino.m4, same-inode.m4: Remove.
78146
78147         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
78148         * m4/acl.m4 (AC_FUNC_ACL):
78149         * m4/backupfile.m4 (gl_BACKUPFILE):
78150         * m4/c-strtod.m4 (gl_C99_STRTOLD):
78151         * m4/canon-host.m4 (gl_CANON_HOST):
78152         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
78153         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
78154         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
78155         * m4/cloexec.m4 (gl_CLOEXEC):
78156         * m4/close-stream.m4 (gl_CLOSE_STREAM):
78157         * m4/closeout.m4 (gl_CLOSEOUT):
78158         * m4/dirfd.m4 (gl_FUNC_DIRFD):
78159         * m4/dirname.m4 (gl_DIRNAME):
78160         * m4/exclude.m4 (gl_EXCLUDE):
78161         * m4/exitfail.m4 (gl_EXITFAIL):
78162         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
78163         * m4/file-type.m4 (gl_FILE_TYPE):
78164         * m4/filemode.m4 (gl_FILEMODE):
78165         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
78166         * m4/fpending.m4 (gl_FUNC_FPENDING):
78167         * m4/fprintftime.m4 (gl_FPRINTFTIME):
78168         * m4/fts.m4 (gl_FUNC_FTS):
78169         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
78170         * m4/getdate.m4 (gl_GETDATE):
78171         * m4/gethrxtime.m4 (gl_GETHRXTIME):
78172         * m4/getpagesize.m4 (gl_GETPAGESIZE):
78173         * m4/getpass.m4 (gl_FUNC_GETPASS):
78174         * m4/gettime.m4 (gl_GETTIME):
78175         * m4/getugroups.m4 (gl_GETUGROUPS):
78176         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
78177         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
78178         * m4/hard-locale.m4 (gl_HARD_LOCALE):
78179         * m4/hash.m4 (gl_HASH):
78180         * m4/idcache.m4 (gl_IDCACHE):
78181         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
78182         * m4/lchown.m4 (gl_FUNC_LCHOWN):
78183         * m4/long-options.m4 (gl_LONG_OPTIONS):
78184         * m4/lstat.m4 (gl_FUNC_LSTAT):
78185         * m4/md5.m4 (gl_MD5):
78186         * m4/memcasecmp.m4 (gl_MEMCASECMP):
78187         * m4/memcoll.m4 (gl_MEMCOLL):
78188         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
78189         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
78190         * m4/memxor.m4 (gl_MEMXOR):
78191         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
78192         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
78193         * m4/modechange.m4 (gl_MODECHANGE):
78194         * m4/mountlist.m4 (gl_MOUNTLIST):
78195         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
78196         * m4/openat.m4 (gl_FUNC_OPENAT):
78197         * m4/pathmax.m4 (gl_PATHMAX):
78198         * m4/physmem.m4 (gl_PHYSMEM):
78199         * m4/posixtm.m4 (gl_POSIXTM):
78200         * m4/posixver.m4 (gl_POSIXVER):
78201         * m4/quote.m4 (gl_QUOTE):
78202         * m4/quotearg.m4 (gl_QUOTEARG):
78203         * m4/readtokens.m4 (gl_READTOKENS):
78204         * m4/readutmp.m4 (gl_READUTMP):
78205         * m4/regex.m4 (gl_REGEX):
78206         * m4/safe-read.m4 (gl_SAFE_READ):
78207         * m4/safe-write.m4 (gl_SAFE_WRITE):
78208         * m4/same.m4 (gl_SAME):
78209         * m4/save-cwd.m4 (gl_SAVE_CWD):
78210         * m4/savedir.m4 (gl_SAVEDIR):
78211         * m4/settime.m4 (gl_SETTIME):
78212         * m4/sha1.m4 (gl_SHA1):
78213         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
78214         * m4/stat-macros.m4 (gl_STAT_MACROS):
78215         * m4/stat-time.m4 (gl_STAT_TIME):
78216         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
78217         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
78218         * m4/strdup.m4 (gl_FUNC_STRDUP):
78219         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
78220         * m4/strndup.m4 (gl_FUNC_STRNDUP):
78221         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
78222         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
78223         * m4/time_r.m4 (gl_TIME_R):
78224         * m4/timespec.m4 (gl_TIMESPEC):
78225         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
78226         * m4/unlinkdir.m4 (gl_UNLINKDIR):
78227         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
78228         * m4/userspec.m4 (gl_USERSPEC):
78229         * m4/utimecmp.m4 (gl_UTIMECMP):
78230         * m4/utimens.m4 (gl_UTIMENS):
78231         * m4/xalloc.m4 (gl_XALLOC):
78232         * m4/xgetcwd.m4 (gl_XGETCWD):
78233         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
78234         * m4/xreadlink.m4 (gl_XREADLINK):
78235         * m4/xstrtod.m4 (gl_XSTRTOD):
78236         * m4/yesno.m4 (gl_YESNO):
78237         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78238         to get the necessary .h files and whatnot.
78239
78240 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
78241             Bruno Haible  <bruno@clisp.org>
78242
78243         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
78244         /bin/sh understanding of '!' conditional negation.
78245
78246 2006-08-21  Jim Meyering  <jim@meyering.net>
78247
78248         * modules/openat (Depends-on): Really alphabetize.
78249
78250         * modules/acl (Depends-on): Add error and quote.
78251
78252         * check-module (find_included_lib_files): Add at-func.c to the
78253         ok-to-include-more-than-once white list.
78254
78255         * modules/openat (Depends-on): Add lstat.  Alphabetize.
78256
78257 2006-08-21  Bruno Haible  <bruno@clisp.org>
78258
78259         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78260         Emit a pkgdata_DATA variable only if some snippets add contents to it.
78261         Reported by Martin Lambers <marlam@marlam.de>.
78262
78263 2006-08-21  Bruno Haible  <bruno@clisp.org>
78264
78265         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
78266         specify an installation location, don't emit a noinst_LIBRARIES or
78267         noinst_LTLIBRARIES assignment.
78268
78269 2006-08-21  Bruno Haible  <bruno@clisp.org>
78270
78271         BeOS portability.
78272         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
78273         BeOS has mbrtowc() but no <wctype.h>.
78274
78275 2006-08-21  Bruno Haible  <bruno@clisp.org>
78276
78277         BeOS portability.
78278         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
78279         exist.
78280
78281 2006-08-21  Bruno Haible  <bruno@clisp.org>
78282
78283         BeOS portability.
78284         * lib/mbchar.h: Include <wctype.h> only if it exists.
78285
78286 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78287
78288         Remove files that are no longer needed by their respective modules.
78289         * m4/obstack.m4: Remove.
78290         * m4/strerror_r.m4: Remove.
78291         * m4/uint32_t.m4: Remove.
78292         * m4/uintptr_t.m4: Remove.
78293         * m4/ullong_max.m4: Remove.
78294         * m4/xstrtoimax.m4: Remove.
78295         * m4/xstrtoumax.m4: Remove.
78296
78297         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
78298         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
78299         dependencies now capture this.
78300
78301         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
78302         Do not use AC_LIBSOURCES, since gnulib modules now do this.
78303         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
78304         * m4/human.m4 (gl_HUMAN): Likewise.
78305         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
78306         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
78307
78308         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
78309
78310         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
78311         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
78312         stdint.
78313         * m4/human.m4 (gl_HUMAN): Likewise.
78314         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
78315         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
78316         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78317         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78318         * m4/xstrtol (gl_XSTRTOL): Likewise.
78319
78320         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
78321         AC_TYPE_LONG_LONG_INT.
78322         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78323         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
78324         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
78325         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78326
78327         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
78328         on stdbool.
78329
78330         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
78331         (gl_PREREQ_XSTRTOUL): Remove.
78332
78333         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
78334
78335         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
78336         mode.
78337
78338 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78339
78340         Add and change modules to make it easier for coreutils to use
78341         gnulib-tool.
78342         * modules/backupfile (Files): Remove m4/d-ino.m4.
78343         (Depends-on): Add d-ino.
78344         * modules/cycle-check (Depends-on): Add stdint.
78345         (lib_SOURCES): Add cycle-check.h.
78346         * modules/d-ino: New module.
78347         * modules/d-type: New module.
78348         * modules/error (Files): Remove m4/strerror_r.m4.
78349         * modules/filemode (Files): Add m4/st_dm_mode.m4.
78350         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78351         m4/inttypes_h.m4, m4/uintmax_t.m4.
78352         (Depends-on): Add stdint.
78353         (lib_SOURCES): Add fsusage.h.
78354         * modules/getcwd (Files): Remove d-ino.m4.
78355         (Depends-on): Add d-ino.
78356         * modules/getndelim2 (Depends-on): Add stdint.
78357         * modules/glob (Files): Remove m4/d-type.m4.
78358         (Depends-on): Add d-type.
78359         * modules/host-os: New module.
78360         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
78361         m4/inttypes_h.m4, m4/uintmax_t.m4.
78362         * Depends-on: Add stdint.
78363         (lib_SOURCES): Add human.h.
78364         * modules/inttostr (Files): Remove m4/intmax_t.m4,
78365         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
78366         m4/uintmax_t.m4, m4/ulonglong.m4.
78367         (Depends-on): Add stdint.
78368         (EXTRA_DIST): Add inttostr.h.
78369         * modules/lchmod: New module.
78370         * modules/link-follow: New module.
78371         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
78372         (Depends-on): Add lchmod.
78373         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
78374         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
78375         (Depends-on): Add stdint.
78376         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
78377         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
78378         (Depends-on): Add stdint.
78379         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
78380         * modules/perl: New module.
78381         * modules/regex (Depends-on): Add stdint.
78382         * modules/rmdir-errno: New module.
78383         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78384         m4/intmax_t.m4.
78385         (Depends-on): Add stdint.
78386         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78387         m4/uintmax_t.m4.
78388         (Depends-on): Add stdint.
78389         * modules/unlink-busy: New module.
78390         * modules/utimecmp (Depends-on): Add stdint.
78391         * modules/uptime: New module.
78392         * modules/winsz-ioctl: New module.
78393         * modules/winsz-termios: New module.
78394         * modules/xnanosleep (Depends-on): Add nanosleep.
78395         * modules/ullong_max: Remove.
78396         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
78397         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
78398         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
78399         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
78400         (Depends-on): Add inttypes.
78401         (lib_SOURCES): Add xstrtol.h.
78402         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
78403         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
78404         * MODULES.html.sh: Move 'assert' into the assert section.
78405         Move 'dummy' into the linking section.
78406         Remove ullong_max.
78407         Add section for compatibility checks for POSIX:2001 functions,
78408         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
78409         winsz-ioctl, and winsz-termios into it.
78410         Add lchmod.
78411         Add top-level Misc section and put host-os, perl, and uptime
78412         into it.
78413
78414 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78415
78416         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
78417         now assume the stdint module.  Do not include inttypes.h.
78418         * lib/fsusage.h: Likewise.
78419         * lib/getndelim2.c: Likewise.
78420         * lib/human.h: Likewise.
78421         * lib/inttostr.h: Likewise.
78422         * lib/obstack.c: Likewise.
78423         * lib/regex_internal.h: Likewise.
78424         * lib/tempname.c: Likewise.
78425         * lib/utimecmp.c: Likewise.
78426         * lib/xstrtol.h: Likewise.
78427
78428         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
78429
78430         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
78431         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
78432         * lib/xtime.h: Likewise.
78433
78434 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78435
78436         * modules/openat (Files): Add lib/fchmodat.c.
78437         Fixes problem reported by Jay Youngman.
78438
78439 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78440
78441         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
78442         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
78443
78444 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
78445             Bruno Haible  <bruno@clisp.org>
78446
78447         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
78448         and is a script that invokes bison. Tighten the code. Add comments.
78449
78450 2006-08-18  Jim Meyering  <jim@meyering.net>
78451
78452         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
78453         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
78454         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
78455         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
78456
78457 2006-08-18  Bruno Haible  <bruno@clisp.org>
78458
78459         * modules/bison-i18n: New file.
78460         * MODULES.html.sh (Internationalization functions): Add it.
78461
78462 2006-08-18  Bruno Haible  <bruno@clisp.org>
78463
78464         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
78465         sys/statvfs.h. When getmntinfo was found, check its declaration and
78466         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
78467
78468 2006-08-18  Bruno Haible  <bruno@clisp.org>
78469
78470         * m4/bison-i18n.m4: New file, from bison.
78471
78472 2006-08-18  Bruno Haible  <bruno@clisp.org>
78473
78474         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
78475         (ME_DUMMY): Treat "kernfs" as a dummy.
78476         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
78477
78478 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78479
78480         Update from coreutils.
78481
78482         2006-08-15  Jim Meyering  <jim@meyering.net>
78483
78484         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
78485
78486         2006-01-17  Jim Meyering  <jim@meyering.net>
78487
78488         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
78489
78490         2006-01-11  Jim Meyering  <jim@meyering.net>
78491
78492         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
78493         Check for the lchmod function.
78494
78495 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78496
78497         Update from coreutils.
78498
78499         * lib/__fpending.h: Add copyright notice.
78500         * lib/fprintftime.h: Likewise.
78501         * lib/savedir.c: Use (C) in copyright notice.
78502         * lib/savedir.h: Likewise.
78503
78504         2006-08-15  Jim Meyering  <jim@meyering.net>
78505
78506         * lib/at-func.c: New file, with the logic of all emulated at-functions.
78507         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
78508         in support of the EXPECTED_ERRNO macro.
78509         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
78510         definitions.  Instead, define the appropriate symbols and include
78511         "at-func.c".
78512         * lib/mkdirat.c (mkdirat): Likewise.
78513         * lib/fchmodat.c (fchmodat): Likewise.
78514         (ENOSYS): Remove definition.
78515         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
78516         it.  Don't include "unistd--.h" -- it wasn't ever used.
78517
78518         2006-01-17  Jim Meyering  <jim@meyering.net>
78519
78520         Rewrite fts.c not to change the current working directory,
78521         by using openat, fstatat, fdopendir, etc..
78522
78523         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
78524         (HAVE_OPENAT_SUPPORT): Define.
78525         [_LIBC] (fchdir): Don't undef or define; no longer used.
78526         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
78527         Now, this `function' always succeeds, and consumes its file descriptor
78528         parameter -- so callers must not close such FDs.  Update callers.
78529         (diropen_fd, opendirat, cwd_advance_fd): New functions.
78530         (diropen): Add parameter, SP.  Adjust all callers.
78531         Implement using diropen_fd, rather than open.
78532         (fts_open): Initialize new member, fts_cwd_fd.
78533         Remove fts_rft-setting code.
78534         (fts_close): Close fts_cwd_fd, if necessary.
78535         (__opendir2): Define in terms of opendir or opendirat,
78536         depending on whether the FST_NOCHDIR flag is set.
78537         (fts_build): Since fts_safe_changedir consumes its FD, and since
78538         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
78539         and close the dup'd file descriptor upon failure.
78540         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
78541         (fts_safe_changedir): Tweak semantics to reflect that this function
78542         now calls cwd_advance_fd and hence consumes its FD argument.
78543         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
78544         [struct FTS] (fts_rft): Remove now-unused member.
78545         [struct FTS] (fts_cycle.state): Improve comment.
78546
78547         * lib/openat.c (openat_needs_fchdir): New function.
78548         * lib/openat.h (openat_needs_fchdir): Declare it.
78549
78550 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78551
78552         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
78553         Problem and fix reported by Pádraig Brady in
78554         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
78555
78556 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78557
78558         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
78559
78560 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78561
78562         * lib/memcoll.c (memcoll): Optimize for the common case where the
78563         arguments are bytewise equal.
78564
78565 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78566
78567         * doc/regexprops-generic.texi: Add a copyright notice.
78568
78569 2006-08-15  Bruno Haible  <bruno@clisp.org>
78570
78571         * modules/tmpdir (License): Change to LGPL.
78572
78573 2006-08-15  Bruno Haible  <bruno@clisp.org>
78574
78575         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
78576         module.
78577
78578 2006-08-14  Simon Josefsson  <jas@extundo.com>
78579
78580         * config/srclist.txt: Add gnupload.
78581
78582 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78583
78584         Change copyright notice from LGPL 2 to GPL 2, since that's the
78585         standard form used in the gnulib repository.
78586         * tests/test-lock.c: Likewise.
78587         * tests/test-stdint.c: Likewise.
78588         * tests/test-tls.c: Likewise.
78589
78590         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
78591         prelude-manager.  User shorter URLs for GNU projects, without '?'.
78592         Add copyright notice.
78593
78594         * check-module: Add copyright notice.  Output a copyright
78595         notice if "--version" is specified.
78596         * modules/COPYING: New file.
78597         * tests/test-getaddrinfo.c: Add copyright notice.
78598         * tests/test-verify.c: Likewise.
78599
78600 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78601
78602         Change copyright notice from LGPL 2 to GPL 2, since that's the
78603         standard form used in the gnulib repository.
78604         * lib/lock.c: LGPL -> GPL.
78605         * lib/lock.h: Likewise.
78606         * lib/strnlen1.c: Likewise.
78607         * lib/strnlen1.h: Likewise.
78608         * lib/tls.c: Likewise.
78609         * lib/tls.h: Likewise.
78610         * lib/tmpdir.c: Likewise.
78611
78612         * lib/TODO: Remove; this belongs only in coreutils.
78613
78614 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78615
78616         Add copyright notices to long-enough files that lack them, since
78617         otherwise the files aren't clearly free.  Use the same notice that
78618         getdate.texi already uses.
78619         * doc/alloca-opt.texi: Add copyright notice.
78620         * doc/alloca.texi: Likewise.
78621         * doc/ctime.texi: Likewise.
78622         * doc/functions.texi: Likewise.
78623         * doc/gcd.texi: Likewise.
78624         * doc/gnulib-tool.texi: Likewise.
78625         * doc/inet_ntoa.texi: Likewise.
78626         * doc/visibility.texi: Likewise.
78627
78628         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
78629         * doc/quote.texi: Add copyright notice.
78630
78631         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
78632         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
78633         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
78634         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
78635         is now obsolete, and give a pointer to the Sun list.
78636         Add copyright notice.
78637
78638 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78639
78640         * config/srclistvars.sh: Add copyright notice.
78641
78642 2006-08-14  Eric Blake  <ebb9@byu.net>
78643
78644         Import the following change from libc:
78645
78646         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
78647
78648         Upstream bug 2997.
78649         * lib/misc/error.c: Add space between program name and message if file
78650         name is missing.
78651
78652 2006-08-12  Karl Berry  <karl@gnu.org>
78653
78654         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
78655         remove, these originate in gnulib now.
78656
78657 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78658
78659         * doc/Makefile (standards.info standards.html standards.dvi):
78660         Also depend on make-stds.texi.
78661
78662 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78663
78664         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
78665         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
78666
78667         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
78668         in wchar_t.  Problem reported by Eric Blake.
78669
78670         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
78671         LEN is smaller than SIZE.  Suggested by Bruno Haible.
78672         Also, help the compiler to keep LEN in a register.
78673
78674 2006-08-11  Eric Blake  <ebb9@byu.net>
78675
78676         * users.txt: Sort.  Add tar.
78677
78678 2006-08-11  Bruno Haible  <bruno@clisp.org>
78679
78680         * users.txt: New file.
78681
78682 2006-08-11  Bruno Haible  <bruno@clisp.org>
78683
78684         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
78685         before <wchar.h>. Needed for OSF/1 and BSD/OS.
78686
78687 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78688
78689         * modules/snprintf (Depends-on): Remove minmax.
78690         (Maintainer): Add self and Bruno.
78691
78692 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78693
78694         * lib/.cppi-disable: Add snprintf.h, socket_.h.
78695         * lib/snprintf.c: Include <errno.h> and <limits.h>.
78696         (EOVERFLOW): Define if the system does not.
78697         Do not include "minmax.h"; it wasn't used.
78698         (snprintf): Don't assume size_t promotes to an unsigned type.
78699         Fix bug when generated string was too long for the buffer: the
78700         buffer's contents are supposed to be the initial prefix of the
78701         output.  Don't assume vasnprintf returns EOVERFLOW if the size
78702         exceeds INT_MAX; do the check ourselves.
78703
78704         Import the following changes from libc:
78705
78706         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
78707
78708         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
78709         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
78710         set wc to the byte which couldn't be converted.
78711         (re_string_reconstruct): Don't clear valid_raw_len before calling
78712         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
78713         tip_context using re_string_context_at.
78714
78715         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
78716
78717         * lib/posix/regex.h: g++ still cannot handled [restrict].
78718
78719         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
78720
78721         * lib/posix/regex.h: Remove special handling for VMS.
78722
78723 2006-08-10  Jim Meyering  <jim@meyering.net>
78724
78725         * modules/same-inode: New module.
78726         * modules/dev-ino: New module.
78727         * modules/cycle-check: Depend on these modules, rather than simply
78728         including their .h files.
78729         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
78730         required via m4/cycle-check.m4.
78731         * modules/same: Depend on new same-inode module, rather than
78732         including same-inode.h.
78733         * modules/chdir-safer: New file.
78734
78735         * modules/chown (Depends-on): Add stat-macros.
78736
78737 2006-08-10  Jim Meyering  <jim@meyering.net>
78738
78739         * m4/cycle-check.m4: New file.
78740         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
78741         * m4/dev-ino.m4, m4/same-inode.m4: New files.
78742
78743 2006-08-10  Eric Blake  <ebb9@byu.net>
78744
78745         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
78746         in from original proposal.
78747
78748 2006-08-10  Eric Blake  <ebb9@byu.net>
78749         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78750
78751         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
78752         namespace.
78753
78754 2006-08-10  Bruno Haible  <bruno@clisp.org>
78755
78756         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
78757         as well.
78758
78759 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78760
78761         Sync from coreutils.
78762
78763         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
78764
78765         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
78766         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
78767
78768 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78769
78770         * modules/restrict: Remove; no longer needed now that we assume
78771         Autoconf 2.59 or later.
78772         * MODULES.html.sh: Remove 'restrict'.
78773         * modules/argp (Depends-on): Remove 'restrict'.
78774         * modules/base64 (Depends-on): Likewise.
78775         * modules/gc (Depends-on): Likewise.
78776         * modules/getaddrinfo (Depends-on): Likewise.
78777         * modules/glob (Depends-on): Likewise.
78778         * modules/inet_ntop (Depends-on): Likewise.
78779         * modules/inet_pton (Depends-on): Likewise.
78780         * modules/memxor (Depends-on): Likewise.
78781         * modules/regex (Depends-on): Likewise.
78782         * modules/strtok_r (Depends-on): Likewise.
78783         * modules/time_r (Depends-on): Likewise.
78784
78785 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78786
78787         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
78788         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
78789         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78790         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
78791         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
78792         * m4/memxor.m4 (gl_MEMXOR): Likewise.
78793         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
78794         gl_C_RESTRICT replaced by AC_C_RESTRICT.
78795
78796         Merge from coreutils.
78797         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
78798         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
78799         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
78800         * m4/time_r.m4 (gl_TIME_R): Likewise.
78801
78802 2006-08-09  Karl Berry  <karl@gnu.org>
78803
78804         * config/srclist.txt: no more gettext-tools, per Bruno.
78805
78806 2006-08-08  Eric Blake  <ebb9@byu.net>
78807
78808         * modules/verror: New module.
78809         * MODULES.html.sh: Document it.
78810
78811 2006-08-08  Eric Blake  <ebb9@byu.net>
78812
78813         * lib/verror.h, lib/verror.c: New files.
78814
78815 2006-08-08  Eric Blake  <ebb9@byu.net>
78816
78817         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
78818         verror_at_line output complies with GNU Coding Standards even when
78819         file is NULL.
78820
78821 2006-08-07  Bruno Haible  <bruno@clisp.org>
78822
78823         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
78824         versions of AIX.
78825         Reported by Ralf Wildenhues.
78826
78827 2006-08-07  Bruno Haible  <bruno@clisp.org>
78828
78829         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
78830         in an AC_DEFUN. Needed so that the autoconf snippets can use
78831         AC_REQUIRE.
78832
78833 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78834
78835         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78836         Initialize pkgdata_DATA.
78837         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
78838         overriding it.
78839
78840 2006-08-06  Eric Blake  <ebb9@byu.net>
78841
78842         * lib/error.h: Fold in some upstream changes from glibc.
78843         * lib/error.c: Likewise.
78844
78845 2006-08-04  Bruno Haible  <bruno@clisp.org>
78846
78847         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78848         Make the mostlyclean-local rule depend on mostlyclean-generic.
78849         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
78850
78851 2006-07-31  Bruno Haible  <bruno@clisp.org>
78852
78853         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
78854         <stdlib.h>, <string.h>.
78855
78856 2006-07-30  Bruno Haible  <bruno@clisp.org>
78857
78858         * modules/readlink (License): Change to LGPL.
78859
78860 2006-07-30  Bruno Haible  <bruno@clisp.org>
78861
78862         * modules/javaversion (Makefile.am): Distribute javaversion.java and
78863         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
78864         set PKGDATADIR to point to it.
78865
78866 2006-07-30  Bruno Haible  <bruno@clisp.org>
78867
78868         * modules/csharpexec (configure.ac): Comment out macro invocation.
78869         * modules/javaexec (configure.ac): Likewise.
78870         * modules/javacomp-script (configure.ac): Likewise.
78871
78872         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
78873
78874 2006-07-30  Bruno Haible  <bruno@clisp.org>
78875
78876         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
78877         linked-list.
78878
78879 2006-07-30  Bruno Haible  <bruno@clisp.org>
78880
78881         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
78882
78883 2006-07-30  Bruno Haible  <bruno@clisp.org>
78884
78885         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78886         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
78887         get removed.
78888
78889 2006-07-29  Bruno Haible  <bruno@clisp.org>
78890
78891         Make it possible for gnulib-tool to work with locally modified or
78892         augmented gnulib repositories.
78893         * gnulib-tool (func_usage): Document --local-dir option.
78894         (local_gnulib_dir): New variable.
78895         Handle --local-dir option.
78896         (func_lookup_file): New function.
78897         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
78898         (func_get_description, func_get_filelist, func_get_description,
78899         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
78900         func_get_automake_snippet, func_get_include_directive,
78901         func_get_license, func_get_maintainer): Use func_lookup_file.
78902         (func_import, func_create_testdir): Use func_lookup_file.
78903
78904 2006-07-29  Bruno Haible  <bruno@clisp.org>
78905
78906         * modules/setenv (Depends-on): Add unistd.
78907
78908 2006-07-29  Bruno Haible  <bruno@clisp.org>
78909
78910         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
78911
78912 2006-07-29  Bruno Haible  <bruno@clisp.org>
78913
78914         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
78915
78916 2006-07-29  Bruno Haible  <bruno@clisp.org>
78917
78918         * gnulib-tool (import, update): If there is no Makefile.am, look at
78919         aclocal.m4, instead of bailing out.
78920
78921 2006-07-29  Bruno Haible  <bruno@clisp.org>
78922
78923         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
78924         Categorize the options by when they are useful.
78925
78926 2006-07-29  Bruno Haible  <bruno@clisp.org>
78927
78928         * gnulib-tool (func_usage): Document option --no-libtool.
78929         Handle option --no-libtool.
78930         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
78931         for changed semantics of $libtool variable.
78932         (func_import): Likewise. If libtool is not used, show this through
78933         an option --no-libtool.
78934         (func_create_testdir): Update.
78935
78936 2006-07-29  Bruno Haible  <bruno@clisp.org>
78937
78938         * gnulib-tool (func_import): Extend error message about missing
78939         --doc-base.
78940
78941 2006-07-29  Bruno Haible  <bruno@clisp.org>
78942
78943         * gnulib-tool (func_import): Don't create the $docbase directory if
78944         there is no file to store there.
78945
78946 2006-07-29  Bruno Haible  <bruno@clisp.org>
78947
78948         * gnulib-tool (autoconf_minversion): If a --dir option is given and
78949         relevant, look for configure.ac there, not in the current directory.
78950         Also use a simple search for AC_PREREQ, not "autoconf --trace".
78951
78952 2006-07-29  Bruno Haible  <bruno@clisp.org>
78953
78954         * gnulib-tool (SORT): New variable.
78955         (func_usage): Undocument --assume-autoconf option.
78956         Remove --assume-autoconf option handling.
78957         (autoconf_minversion): Determine from the contents of configure.ac.
78958         (func_import): Remove autoconf_minversion handling.
78959         Suggested by Eric Blake.
78960
78961 2006-07-29  Bruno Haible  <bruno@clisp.org>
78962
78963         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
78964
78965 2006-07-29  Bruno Haible  <bruno@clisp.org>
78966
78967         * config/srclist.txt (*setenv.[ch]): Remove rules.
78968
78969 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78970
78971         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
78972
78973 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78974
78975         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
78976         arpa/inet.h.
78977
78978 2006-07-28  Simon Josefsson  <jas@extundo.com>
78979
78980         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
78981         * modules/inet_pton (Depends-on): Likewise.
78982
78983 2006-07-28  Simon Josefsson  <jas@extundo.com>
78984
78985         * m4/netinet_in_h.m4: New file.
78986
78987 2006-07-28  Simon Josefsson  <jas@extundo.com>
78988
78989         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
78990         #include's.
78991
78992 2006-07-28  Simon Josefsson  <jas@extundo.com>
78993
78994         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
78995         #include's.
78996
78997 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
78998
78999         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
79000         setgid on directories only if they set these bits.
79001         * lib/modechange.h: Remove obsolete comment about masks.
79002
79003 2006-07-28  Eric Blake  <ebb9@byu.net>
79004
79005         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
79006         macro expansion.
79007
79008 2006-07-28  Bruno Haible  <bruno@clisp.org>
79009
79010         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
79011
79012 2006-07-28  Bruno Haible  <bruno@clisp.org>
79013
79014         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
79015
79016 2006-07-28  Bruno Haible  <bruno@clisp.org>
79017
79018         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79019         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79020         Define fallbacks.
79021         Avoids link error on FreeBSD 4.x.
79022         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79023
79024         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
79025         encoding.
79026         * lib/mbswidth.c (iswcntrl): Likewise.
79027
79028 2006-07-27  Bruno Haible  <bruno@clisp.org>
79029
79030         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
79031         test.
79032
79033 2006-07-27  Bruno Haible  <bruno@clisp.org>
79034
79035         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
79036         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
79037         defined.
79038
79039 2006-07-26  Eric Blake  <ebb9@byu.net>
79040
79041         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
79042
79043 2006-07-26  Eric Blake  <ebb9@byu.net>
79044
79045         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
79046         like mingw that lack mkstemp.
79047         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
79048         avoid compilation warning on mingw.
79049
79050 2006-07-26  Bruno Haible  <bruno@clisp.org>
79051
79052         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
79053         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
79054         INT_FAST*_MIN, INTPTR_MIN.
79055
79056 2006-07-25  Bruno Haible  <bruno@clisp.org>
79057
79058         * modules/version-etc (Depends-on): Add stdarg.
79059
79060 2006-07-25  Bruno Haible  <bruno@clisp.org>
79061
79062         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
79063         complex commands.
79064
79065 2006-07-25  Bruno Haible  <bruno@clisp.org>
79066
79067         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
79068         defined in <stdarg.h> or config.h.
79069
79070 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79071
79072         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
79073         (gl_STDIO_SAFER): Remove.
79074
79075 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79076
79077         * MODULES.html.sh (File stream based Input/Output):
79078         Add fopen-safer, tmpfile-safer; remove stdio-safer.
79079         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
79080         * modules/fopen-safer, modules/tmpfile-safer: New files.
79081         * modules/stdio-safer: Remove.
79082
79083 2006-07-24  Bruno Haible  <bruno@clisp.org>
79084
79085         * modules/tmpdir: New file.
79086         * MODULES.html.sh (File system functions): Add it.
79087
79088 2006-07-24  Bruno Haible  <bruno@clisp.org>
79089
79090         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
79091         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
79092
79093 2006-07-24  Bruno Haible  <bruno@clisp.org>
79094
79095         * modules/clean-temp: New file.
79096
79097 2006-07-24  Bruno Haible  <bruno@clisp.org>
79098
79099         * m4/tmpdir.m4: New file, from GNU gettext.
79100
79101 2006-07-24  Bruno Haible  <bruno@clisp.org>
79102
79103         * lib/tmpdir.h: New file, from GNU gettext.
79104         * lib/tmpdir.c: New file, from GNU gettext.
79105
79106 2006-07-24  Bruno Haible  <bruno@clisp.org>
79107
79108         * lib/clean-temp.h: New file, from GNU gettext.
79109         * lib/clean-temp.c: New file, from GNU gettext.
79110
79111 2006-07-23  Eric Blake  <ebb9@byu.net>
79112
79113         * modules/stdio-safer (Files): Add tmpfile-safer.c.
79114         (Depends-on): Add binary-io.
79115
79116 2006-07-23  Eric Blake  <ebb9@byu.net>
79117
79118         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
79119
79120 2006-07-23  Eric Blake  <ebb9@byu.net>
79121
79122         * lib/tmpfile-safer.c: New file.
79123         * lib/stdio-safer.h (fopen_safer): Add prototype.
79124         * lib/stdio--.h (tmpfile): Make safer.
79125
79126 2006-07-23  Bruno Haible  <bruno@clisp.org>
79127
79128         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
79129         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
79130         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
79131         gl_linked_remove_at): Use it.
79132
79133 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79134         and Simon Josefsson <jas@extundo.com>
79135
79136         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
79137
79138         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
79139
79140 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79141
79142         * modules/close-stream: New file.
79143         * modules/closeout (Description): Make it clear that it exits
79144         with a diagnostic on error.
79145         (Depends-on): Add close-stream.  Remove fpending, stdbool.
79146         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
79147
79148 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79149
79150         * m4/close-stream.m4: New file.
79151
79152 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79153
79154         * lib/close-stream.c, lib/close-stream.h: New files.
79155
79156 2006-07-22  Bruno Haible  <bruno@clisp.org>
79157
79158         Merge from GNU gettext 0.15.
79159
79160         2006-05-01  Bruno Haible  <bruno@clisp.org>
79161
79162                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
79163
79164         2006-07-22  Bruno Haible  <bruno@clisp.org>
79165
79166                 * modules/javaversion: New file.
79167                 * MODULES.html.sh (Java): Add javaversion.
79168
79169         2006-03-12  Bruno Haible  <bruno@clisp.org>
79170
79171                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
79172
79173         2005-12-04  Bruno Haible  <bruno@clisp.org>
79174
79175                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
79176                 (untested).
79177
79178         2006-06-21  Bruno Haible  <bruno@clisp.org>
79179
79180                 Avoid warnings from recent versions of mcs.
79181                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
79182                 -o, -L, -r any more. Use options documented since mcs-1.0
79183                 instead. Similarly for -g.
79184
79185         2005-12-04  Bruno Haible  <bruno@clisp.org>
79186
79187                 * build-aux/csharpcomp.sh.in: Suffix for resources is
79188                 .resources, not .resource.
79189
79190         2005-07-09  Bruno Haible  <bruno@clisp.org>
79191
79192                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
79193                 add a .dll suffix.
79194                 Reported by Mark Junker <mjscod@gmx.de>.
79195
79196         2006-07-22  Bruno Haible  <bruno@clisp.org>
79197
79198                 * modules/gettext: Upgrade to gettext-0.15.
79199                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
79200                 m4/visibility.m4.
79201                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
79202
79203 2006-07-22  Bruno Haible  <bruno@clisp.org>
79204
79205         Merge from GNU gettext 0.15.
79206
79207         2006-03-25  Bruno Haible  <bruno@clisp.org>
79208
79209                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
79210
79211         2006-07-21  Bruno Haible  <bruno@clisp.org>
79212
79213                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
79214                 "1.1".
79215
79216         2006-05-09  Bruno Haible  <bruno@clisp.org>
79217
79218                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
79219                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
79220                 for the conftestver execution.
79221
79222         2006-05-01  Bruno Haible  <bruno@clisp.org>
79223
79224                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
79225                 optional target-version argument. Verify that the compiler
79226                 groks source of the specified source-version, or add -source
79227                 option as necessary. Verify that the compiler produces
79228                 bytecode in the specified target-version, or add -target and
79229                 -source options as necessary. Make the result of the test
79230                 available as variable CONF_JAVAC. Also log error output in
79231                 config.log.
79232
79233         2006-03-11  Bruno Haible  <bruno@clisp.org>
79234
79235                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
79236
79237         2006-05-09  Bruno Haible  <bruno@clisp.org>
79238
79239                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
79240                 CLASSPATH_SEPARATOR to a semicolon.
79241
79242         2006-03-12  Bruno Haible  <bruno@clisp.org>
79243
79244                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
79245                 available as variable CONF_JAVA, for subsequent autoconf
79246                 tests. Also log error output in config.log.
79247
79248         2006-07-19  Bruno Haible  <bruno@clisp.org>
79249
79250                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
79251                 that getline works on glibc2 systems. Needed to avoid trouble
79252                 in relocatable.c.
79253                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
79254
79255         2005-12-04  Bruno Haible  <bruno@clisp.org>
79256
79257                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
79258                 launcher (untested).
79259
79260         2005-12-04  Bruno Haible  <bruno@clisp.org>
79261
79262                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
79263
79264         2006-07-22  Bruno Haible  <bruno@clisp.org>
79265
79266                 * gettext.m4: Update from GNU gettext-0.15.
79267                 * nls.m4: Likewise.
79268                 * po.m4: Likewise.
79269                 * inttypes-pri.m4: Likewise.
79270                 * inttypes-h.m4: Renamed from inttypes.m4.
79271                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
79272
79273 2006-07-22  Bruno Haible  <bruno@clisp.org>
79274
79275         Merge from GNU gettext 0.15.
79276
79277         2005-07-05  Bruno Haible  <bruno@clisp.org>
79278
79279                 * printf-args.c (printf_fetchargs): Work around broken
79280                 definition of wint_t on mingw.
79281
79282         2005-02-12  Bruno Haible  <bruno@clisp.org>
79283
79284                 * xallocsa.h: Add extern "C" for C++.
79285
79286         2006-05-17  Bruno Haible  <bruno@clisp.org>
79287
79288                 Cygwin portability.
79289                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
79290
79291         2006-04-30  Bruno Haible  <bruno@clisp.org>
79292
79293                 * progreloc.c: Include <mach-o/dyld.h> if available.
79294                 (find_executable): Use _NSGetExecutablePath when possible.
79295
79296         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
79297
79298                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
79299                 function.
79300
79301         2005-12-29  Bruno Haible  <bruno@clisp.org>
79302
79303                 * progreloc.c (set_program_name_and_installdir): Fix
79304                 compilation error.
79305
79306         2005-12-04  Bruno Haible  <bruno@clisp.org>
79307
79308                 Cygwin portability.
79309                 * progreloc.c: Include <windows.h> also on Cygwin.
79310                 (find_executable): Add support for Cygwin.
79311                 (set_program_name_and_installdir): Handle also platforms with
79312                 nonempty EXEEXT.
79313
79314         2006-07-11  Bruno Haible  <bruno@clisp.org>
79315
79316                 * javacomp.c: Fix a comment.
79317                 Reported by Jim Meyering.
79318
79319         2006-04-30  Bruno Haible  <bruno@clisp.org>
79320
79321                 * javacomp.h (compile_java_class): Add source_version,
79322                 target_version arguments.
79323                 * javacomp.c: Rewritten to choose only a compiler that
79324                 respects the specified source_version and target_version.
79325
79326         2006-06-27  Bruno Haible  <bruno@clisp.org>
79327
79328                 Assume correct S_ISDIR macro.
79329                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
79330
79331         2006-07-22  Bruno Haible  <bruno@clisp.org>
79332
79333                 * javaversion.h: New file, from GNU gettext.
79334                 * javaversion.c: New file, from GNU gettext.
79335                 * javaversion.java: New file, from GNU gettext.
79336                 * javaversion.class: New file, from GNU gettext.
79337
79338         2006-05-17  Bruno Haible  <bruno@clisp.org>
79339
79340                 Cygwin portability.
79341                 * javaexec.c (execute_java_class): Test for jview program
79342                 also on Cygwin.
79343
79344         2006-04-09  Bruno Haible  <bruno@clisp.org>
79345
79346                 * fatal-signal.c: Don't include string.h.
79347                 (at_fatal_signal): Use a copying loop instead of memcpy.
79348
79349         2005-12-04  Bruno Haible  <bruno@clisp.org>
79350
79351                 * csharpexec.c: Add support for 'clix' launcher (untested).
79352                 (execute_csharp_using_sscli): New function.
79353                 (execute_csharp_program): Call it.
79354
79355         2006-06-21  Bruno Haible  <bruno@clisp.org>
79356
79357                 Avoid warnings from recent versions of mcs.
79358                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
79359                 -o, -L, -r any more. Use options documented since mcs-1.0
79360                 instead. Similarly for -g.
79361
79362         2005-07-09  Bruno Haible  <bruno@clisp.org>
79363
79364                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
79365                 add a .dll suffix.
79366                 Reported by Mark Junker <mjscod@gmx.de>.
79367
79368         2006-06-17  Bruno Haible  <bruno@clisp.org>
79369
79370                 * config.charset: Update for NetBSD 3.0.
79371
79372         2006-05-17  Bruno Haible  <bruno@clisp.org>
79373
79374                 Cygwin portability.
79375                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
79376
79377         2006-05-16  Bruno Haible  <bruno@clisp.org>
79378
79379                 * localcharset.c [CYGWIN]: Include <windows.h>.
79380                 (get_charset_aliases): For Cygwin, return the same CPxxx
79381                 aliases list as under WIN32.
79382                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
79383                 the environment variables. Fall back to GetACP().
79384
79385         2006-04-05  Bruno Haible  <bruno@clisp.org>
79386
79387                 * config.charset: Update Juan Manuel Guerrero's address.
79388
79389         2005-02-12  Bruno Haible  <bruno@clisp.org>
79390
79391                 * allocsa.h: Add extern "C" for C++.
79392
79393         2005-02-10  Bruno Haible  <bruno@clisp.org>
79394
79395                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
79396                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
79397
79398         2006-07-22  Bruno Haible  <bruno@clisp.org>
79399
79400                 * gettext.h: Update to GNU gettext-0.15.
79401
79402 2006-07-22  Bruno Haible  <bruno@clisp.org>
79403
79404         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
79405         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
79406         lib-prefix.m4, longdouble.m4, ssize_t.m4.
79407
79408 2006-07-21  Eric Blake  <ebb9@byu.net>
79409
79410         * modules/stdlib-safer: New file.
79411         * MODULES.html.sh (File stream based Input/Output): Add
79412         stdlib-safer.
79413
79414 2006-07-21  Eric Blake  <ebb9@byu.net>
79415
79416         * lib/stdlib-safer.h: New file from coreutils, required by
79417         stdlib--.h.
79418
79419 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
79420
79421         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
79422
79423 2006-07-20  Bruno Haible  <bruno@clisp.org>
79424
79425         * gnulib-tool: Recognize new option --assume-autoconf.
79426         (autoconf_minversion): New variable.
79427         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
79428
79429 2006-07-20  Bruno Haible  <bruno@clisp.org>
79430
79431         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
79432
79433 2006-07-19  Derek R. Price  <derek@ximbiot.com>
79434
79435         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
79436         Reindent and repaginate.
79437
79438 2006-07-19  Derek Price  <derek@ximbiot.com>
79439
79440         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
79441         Correct grammar.
79442
79443 2006-07-17  Bruno Haible  <bruno@clisp.org>
79444
79445         * modules/list: New file.
79446         * modules/array-list: New file.
79447         * modules/carray-list, modules/carray-list-tests: New files.
79448         * modules/linked-list, modules/linked-list-tests: New files.
79449         * modules/avltree-list, modules/avltree-list-tests: New files.
79450         * modules/rbtree-list, modules/rbtree-list-tests: New files.
79451         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
79452         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
79453         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
79454         * modules/oset: New file.
79455         * modules/array-oset: New file.
79456         * modules/avltree-oset, modules/avltree-oset-tests: New files.
79457         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
79458         * tests/test-carray_list.c: New file.
79459         * tests/test-linked_list.c: New file.
79460         * tests/test-avltree_list.c: New file.
79461         * tests/test-rbtree_list.c: New file.
79462         * tests/test-linkedhash_list.c: New file.
79463         * tests/test-avltreehash_list.c: New file.
79464         * tests/test-rbtreehash_list.c: New file.
79465         * tests/test-avltree_oset.c: New file.
79466         * tests/test-rbtree_oset.c: New file.
79467         * MODULES.html.sh (Container data structures): New section.
79468
79469 2006-07-17  Bruno Haible  <bruno@clisp.org>
79470
79471         * m4/gl_list.m4: New file.
79472
79473 2006-07-17  Bruno Haible  <bruno@clisp.org>
79474
79475         * lib/gl_list.h: New file.
79476         * lib/gl_list.c: New file.
79477         * lib/gl_array_list.h: New file.
79478         * lib/gl_array_list.c: New file.
79479         * lib/gl_carray_list.h: New file.
79480         * lib/gl_carray_list.c: New file.
79481         * lib/gl_linked_list.h: New file.
79482         * lib/gl_linked_list.c: New file.
79483         * lib/gl_anylinked_list1.h: New file.
79484         * lib/gl_anylinked_list2.h: New file.
79485         * lib/gl_avltree_list.h: New file.
79486         * lib/gl_avltree_list.c: New file.
79487         * lib/gl_anyavltree_list1.h: New file.
79488         * lib/gl_anyavltree_list2.h: New file.
79489         * lib/gl_rbtree_list.h: New file.
79490         * lib/gl_rbtree_list.c: New file.
79491         * lib/gl_anyrbtree_list1.h: New file.
79492         * lib/gl_anyrbtree_list2.h: New file.
79493         * lib/gl_anytree_list1.h: New file.
79494         * lib/gl_anytree_list2.h: New file.
79495         * lib/gl_linkedhash_list.h: New file.
79496         * lib/gl_linkedhash_list.c: New file.
79497         * lib/gl_anyhash_list1.h: New file.
79498         * lib/gl_anyhash_list2.h: New file.
79499         * lib/gl_avltreehash_list.h: New file.
79500         * lib/gl_avltreehash_list.c: New file.
79501         * lib/gl_rbtreehash_list.h: New file.
79502         * lib/gl_rbtreehash_list.c: New file.
79503         * lib/gl_anytreehash_list1.h: New file.
79504         * lib/gl_anytreehash_list2.h: New file.
79505
79506         * lib/gl_oset.h: New file.
79507         * lib/gl_oset.c: New file.
79508         * lib/gl_array_oset.h: New file.
79509         * lib/gl_array_oset.c: New file.
79510         * lib/gl_avltree_oset.h: New file.
79511         * lib/gl_avltree_oset.c: New file.
79512         * lib/gl_rbtree_oset.h: New file.
79513         * lib/gl_rbtree_oset.c: New file.
79514         * lib/gl_anytree_oset.h: New file.
79515
79516 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79517
79518         * m4/mkancesdirs.m4: New file.
79519         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
79520         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
79521         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
79522         it.
79523
79524 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79525
79526         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
79527         * lib/mkancesdirs.h: New files.
79528         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
79529         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
79530         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
79531         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
79532         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
79533         callers changed.  Revamp internals significantly, by not
79534         attempting to create directories that are temporarily more
79535         permissive than the final results.  Do not attempt to use
79536         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
79537         This removes some race conditions, fixes some bugs, and simplifies
79538         things.  Use new dirchownmod function to do owner and mode changes.
79539         * lib/mkdir-p.h: Likewise.
79540         * lib/modechange.c (octal_to_mode): New function.
79541         (struct mode_change): New member mentioned.
79542         (make_node_op_equals): New arg mentioned.  All callers changed.
79543         (mode_compile): Keep track of which mode bits the user has explicitly
79544         mentioned.
79545         (mode_adjust): New arg DIR, so that we implement the X op correctly.
79546         New arg PMODE_BITS, to keep track of which mode bits the user
79547         mentioned; it treats S_ISUID and S_ISGID speciall.
79548         All callers changed.
79549         * lib/modechange.h: Likewise.
79550
79551 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79552
79553         * MODULES.html.sh: Add mkancestors.
79554         * modules/mkancesdirs: New module.
79555         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
79556         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
79557         The chdir-safer and afs files are now orphans; I'll remove them
79558         unless someone speaks up.
79559         Add lib/dirchownmod.c, lib/dirchownmod.h.
79560         (Depends-on): Remove alloca, chown, save-cwd, dirname.
79561         Add lchown, mkancesdirs.
79562         (Maintainer): Add self.
79563
79564 2006-07-15  Karl Berry  <karl@gnu.org>
79565
79566         * gnulib-tool: help message wording/arrangement.
79567
79568 2006-07-14  Simon Josefsson  <jas@extundo.com>
79569
79570         * doc/gnulib.texi (Libtool and Windows): New section.
79571
79572 2006-07-12  Simon Josefsson  <jas@extundo.com>
79573
79574         * modules/gendocs (License): Fix license, approved by Karl.
79575
79576 2006-07-12  Eric Blake  <ebb9@byu.net>
79577
79578         * MODULES.html.sh: Add gendocs.
79579
79580 2006-07-11  Eric Blake  <ebb9@byu.net>
79581
79582         * modules/fdl: New module, to install doc/fdl.texi.
79583         * MODULES.html.sh: Add new section for documentation modules.
79584         * gnulib-tool: Avoid space-tab.
79585         (--doc-base): New option, to manage files from doc.
79586
79587 2006-07-11  Eric Blake  <ebb9@byu.net>
79588
79589         * m4/absolute-header.m4: Fix comments to match recent change.
79590
79591 2006-07-11  Eric Blake  <ebb9@byu.net>
79592
79593         * gnulib-tool: List --doc-base before --tests-base.
79594
79595 2006-07-11  Derek R. Price  <derek@ximbiot.com>
79596
79597         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
79598
79599 2006-07-11  Bruno Haible  <bruno@clisp.org>
79600
79601         * README: Mention where to put documentation.
79602
79603 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79604
79605         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
79606
79607 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79608
79609         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
79610         to stdint.m4.
79611
79612 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79613
79614         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
79615         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
79616         "no/such/file/stdint.h" when there is no such file, so that
79617         the resulting C code can be parsed by dodgy compilers.
79618         Problems reported by Bob Proulx.
79619
79620 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79621
79622         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
79623         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79624         macros into the GNU _D_EXACT_NAMLEN.
79625         * lib/savedir.c:  Likewise.
79626         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
79627
79628 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79629         and Paul Eggert  <eggert@cs.ucla.edu>
79630
79631         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
79632         * m4/savedir.m4:
79633         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79634         macros into the GNU _D_EXACT_NAMLEN.
79635
79636 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79637
79638         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
79639         around the absolute name, to work around a problem with the HP-UX
79640         11.23 native C compiler, reported by Bob Proulx.
79641
79642 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79643
79644         * doc/maintain.texi, make-stds.texi: Sync from
79645         <http://savannah.gnu.org/projects/gnustandards>.
79646
79647 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79648
79649         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
79650
79651 2006-07-09  Jim Meyering  <jim@meyering.net>
79652
79653         * m4/glob.m4: Remove a doubled word in a comment.
79654
79655 2006-07-09  Jim Meyering  <jim@meyering.net>
79656
79657         * lib/argp-pv.c: Remove a doubled word in a comment.
79658         * lib/check-version.c (check_version): Likewise.
79659         * lib/javacomp.c (compile_java_class): Likewise.
79660
79661 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79662
79663         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
79664         for the benefit of people using Autoconf 2.60.  If you want to
79665         support older Autoconf versions you can copy m4/onceonly_2_57.m4
79666         (or m4/onceonly.m4, if pre-2.57) manually.
79667
79668 2006-07-08  Jim Meyering  <jim@meyering.net>
79669
79670         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
79671         comment.
79672         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
79673         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
79674         comment.
79675
79676 2006-07-08  Jim Meyering  <jim@meyering.net>
79677
79678         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
79679
79680 2006-07-07  Simon Josefsson  <jas@extundo.com>
79681
79682         * tests/test-crc.c: Change expected crc value, the test vector
79683         were probably computed using the old broken crc.c?
79684
79685 2006-07-06  Simon Josefsson  <jas@extundo.com>
79686
79687         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
79688         now the canonical place for the M4 file).
79689
79690         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
79691         from the sys_socket dependency now.
79692
79693         * modules/inet_pton (Files): Ditto.
79694
79695         * modules/inet_ntop (Files): Ditto.
79696
79697 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79698
79699         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
79700         not gl_PREREQ_GETUSERSHELL.
79701
79702 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79703
79704         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
79705         with only one argument, for Autoconf 2.60.
79706         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
79707         expand to nothing, so add a shell command to avoid syntax error.
79708         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79709
79710 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79711
79712         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
79713
79714 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79715
79716         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
79717         no longer needed.  Check for isblank decl.
79718         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
79719         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
79720         of existence.
79721
79722 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79723
79724         * lib/getloadavg.c: Use __VMS, not VMS.
79725         * lib/getopt.c: Likewise.
79726         * lib/getpagesize.h: Likewise.
79727         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
79728         and probably does not work.
79729
79730 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79731
79732         * lib/.cppi-disable: Add wcwidth.
79733         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
79734         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
79735         (ISGRAPH): Remove.  All uses changed to isgraph.
79736         (FOLD) [!defined _LIBC]: Remove special case.
79737         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
79738         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
79739         HAVE_ISBLANK.
79740         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
79741         case.
79742
79743 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79744
79745         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
79746         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
79747         brackets.  Other minor changes to suppress some compiler
79748         warnings.
79749
79750 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79751         and Paul Eggert  <eggert@cs.ucla.edu>
79752
79753         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
79754         of invoking obsolescent AC_HEADER_DIRENT macro.
79755         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
79756         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
79757         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
79758         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
79759         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
79760         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79761         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
79762         * m4/readdir.m4: Remove; no longer needed.
79763
79764 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79765         and Paul Eggert  <eggert@cs.ucla.edu>
79766
79767         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
79768         Don't worry about this obsolete case any more.
79769         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
79770         directories.
79771         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
79772         worry about this obsolete case any more.
79773         * lib/fts.c: Likewise.
79774         * lib/getcwd.c: Likewise.
79775         * lib/glob.h: Likewise.
79776         * lib/savedir.c: Likewise.
79777
79778 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79779
79780         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
79781         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
79782         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
79783         needed.
79784         All uses removed.
79785         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79786         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79787         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
79788         needed.
79789         * m4/getdate.m4 (gl_GETDATE): Likewise.
79790         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79791         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79792         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79793         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79794         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79795         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79796         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
79797         needed.
79798
79799 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79800
79801         * lib/memcasecmp.c: Include <limits.h>.
79802         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
79803         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
79804         Don't assume isdigit succeeds only on '0' through '9'.
79805
79806 2006-07-05  Eric Blake  <ebb9@byu.net>
79807
79808         * modules/getaddrinfo (Depends-on): Add snprintf.
79809
79810 2006-07-05  Eric Blake  <ebb9@byu.net>
79811
79812         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
79813         to avoid 'header present but could not be compiled' on cygwin.
79814
79815 2006-07-05  Eric Blake  <ebb9@byu.net>
79816
79817         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
79818         missing from netdb.h.
79819         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
79820
79821 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79822
79823         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
79824         no longer needed.
79825         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
79826         * m4/getdate.m4 (gl_GETDATE): Likewise.
79827         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79828         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79829         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79830         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79831         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79832
79833 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79834
79835         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
79836         All uses of is_space replaced by isspace.
79837         * lib/exit.h: Don't talk about STDC_HEADERS.
79838         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
79839         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
79840         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
79841         replaced by isprint etc.
79842         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
79843         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79844         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
79845         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
79846         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
79847         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79848
79849 2006-07-05  Bruno Haible  <bruno@clisp.org>
79850
79851         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
79852         the function exists, before testing against AIX.
79853         Reported by Martin Lambers <marlam@marlam.de>.
79854
79855 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79856
79857         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
79858         From Mark D. Baushke.
79859
79860 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79861
79862         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
79863         to the absolute name, not just one, to bypass Sun C 5.8's
79864         "warning: #include of /usr/include/... may be non-portable".
79865
79866 2006-07-04  Eric Blake  <ebb9@byu.net>
79867
79868         * modules/dirname-tests: New test module.
79869         * tests/test-dirname.c: New file, replacing dirname.c
79870         TEST_DIRNAME section that was recently deleted.
79871
79872 2006-07-04  Bruno Haible  <bruno@clisp.org>
79873
79874         Assume ANSI C header files and <ctype.h> functions.
79875         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
79876         (mbsnwidth): Use isprint, iscntrl instead.
79877
79878 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79879
79880         Merge from coreutils.
79881         * MODULES.html.sh: Add xstrtold.
79882         * modules/xstrtold: New file.
79883         * modules/cycle-check (Files): Add lib/same-inode.h.
79884         * modules/dirname (Files): Add m4/double-slash-root.m4.
79885         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
79886         * modules/mkdir-p (Files): Add lib/same-inode.h.
79887         * modules/same (Files): Add lib/same-inode.h.
79888
79889 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79890
79891         * m4/absolute-header.m4: Renamed from full-header-path.m4.
79892         This is to keep the terminology clean; POSIX talks about
79893         "absolute pathnames", not "full pathnames", but the GNU
79894         Coding Standards say to use "path" for something else;
79895         so use "absolute" to keep both sides happy.
79896         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
79897         Set gl_absolute_header, not gl_full_header_path.
79898         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
79899         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
79900         All uses changed.
79901
79902         Merge from coreutils.
79903
79904         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79905
79906         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
79907         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
79908         want to require the building of c-strtod.o.
79909         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
79910         needs -lm directly.
79911         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
79912
79913         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79914
79915         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
79916         --as-needed option if available.  Problem reported by Albert Chin in
79917         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
79918         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
79919         cc merely issues a bunch of annoying warnings for --as-needed
79920         (this problem was reported by Bob Proulx).  Also, try linking with
79921         -lm to detect a bug in binutils 2.16 (this problem was reported
79922         by Ralf Wildenhues).
79923
79924         2006-06-18  Jim Meyering  <jim@meyering.net>
79925
79926         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
79927         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
79928         macro.
79929         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
79930         also check for glibc-2.4's abort-inducing bug.
79931
79932         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
79933         Low-probability clean-up should be to use rmdir to get rid of
79934         the just-created directory, not unlink.
79935
79936         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
79937         configure fail, and request a bug report to inform us about it.
79938         Add a comment that, barring reports to the contrary, in 2007 we'll
79939         assume ftruncate is universally available.
79940
79941         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79942
79943         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
79944
79945         2006-03-12  Jim Meyering  <jim@meyering.net>
79946
79947         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
79948         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
79949         * m4/same.m4 (gl_SAME): Likewise.
79950         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
79951
79952         2006-03-11  Eric Blake  <ebb9@byu.net>
79953
79954         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
79955         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
79956         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
79957         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
79958
79959 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79960
79961         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
79962         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
79963         reported by Mark D. Baushke, one in
79964         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
79965
79966         Merge from coreutils.
79967
79968         * lib/.cppi-disable: Add stdint_.h.
79969         * lib/.cvsignore: Add stdint.h.
79970
79971         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79972
79973         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
79974         both double and long double versions.
79975         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
79976         * lib/xstrtold.c: New file.
79977         * lib/xstrtod.h (xstrtold): New decl.
79978
79979         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79980
79981         * lib/filemode.c (setst): Remove.
79982         (strmode): Rewrite to avoid setst.  This makes the code shorter,
79983         (arguably) clearer, and the generated code is a bit smaller on my
79984         Debian GNU/Linux stable x86 host.
79985
79986         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79987
79988         * lib/filemode.c: Include "filemode.h" first, to test the interface.
79989         Assume that filemode.h includes sys/types.h and sys/stat.h.
79990         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
79991         (ftypelet): Reorder to put common cases first, for efficiency.
79992         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
79993         to do 'M'.
79994         (strmode): Renamed from mode_string, and now stores 12 bytes instead
79995         of 10, for compatibility with FreeBSD.  All callers changed.
79996         (filemodestring): Now stores 12 bytes instead of 10, and sets file
79997         types that can't be deduced solely from st_mode.  First arg is now a
79998         const pointer.
79999         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
80000         (strmode): Renamed from mode_string.
80001         (filemodestring): New decl.
80002         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
80003         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
80004         needed.
80005         (S_ISPORT, S_ISWHT): New macros, if not already defined.
80006
80007         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80008
80009         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
80010         fsusage.h now does that.  Include fsusage.h first, to test interface.
80011         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
80012         at most one method (the old code could have generated decls that
80013         didn't conform to C89, not that this was ever exercised).
80014         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
80015
80016         2006-03-19  Jim Meyering  <jim@meyering.net>
80017
80018         Work even in a chroot where d_ino values for entries in "/"
80019         don't match the stat.st_ino values for the same names.
80020         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
80021         number, iterate through all entries again, using lstat instead.
80022         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
80023         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
80024
80025         * lib/getcwd.c (__getcwd): Clarify a comment.
80026         Use memcpy in place of a call to strcpy.
80027
80028         2006-03-12  Jim Meyering  <jim@meyering.net>
80029
80030         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
80031         matches that of the current directory (which we're about to chdir ".."
80032         out of), then save the dev-ino of the parent, instead.
80033
80034         * lib/same-inode.h (SAME_INODE): New file/macro.
80035         * lib/chdir-safer.c (SAME_INODE): Remove definition.
80036         Include "same-inode.h", instead.
80037         * lib/same.c: Likewise.
80038         * lib/cycle-check.h: Include "same-inode.h".
80039         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
80040         * lib/cycle-check.c (SAME_INODE): Remove definition.
80041         * lib/root-dev-ino.h: Include "same-inode.h".
80042
80043         2006-03-11  Eric Blake  <ebb9@byu.net>
80044
80045         * lib/same.c (same_name): s/base_name/last_component/
80046         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
80047         * lib/filenamecat.c (file_name_concat): Likewise.
80048
80049         2006-03-11  Eric Blake  <ebb9@byu.net>,
80050                     Paul Eggert  <eggert@cs.ucla.edu>
80051
80052         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
80053         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
80054         drive prefix.
80055         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
80056         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
80057         (last_component): New method.
80058         * lib/dirname.c (dir_len): Determine when drive letters need a
80059         subsequent slash.  Preserve // when it is special.
80060         (dir_name): Don't append dot when drive letter is absolute.
80061         [TEST_DIRNAME]: Move into a full-blown gnulib test.
80062         * lib/basename.c (base_name): New semantics - malloc the result.
80063         Preserve // when it is special.  Preserve relative files that look
80064         like drive letters.
80065         (base_len): Preserve // when it is special.
80066         (last_component): New method, similar to old base_name semantics.
80067         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
80068         base_name.  Strip redundant slashes from ///.
80069
80070 2006-07-03  Jim Meyering  <jim@meyering.net>
80071
80072         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
80073         macro is used before the first cycle_check call.
80074
80075 2006-07-03  Eric Blake  <ebb9@byu.net>
80076
80077         * modules/dirname (Depends-on): Add xstrndup.
80078
80079 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80080
80081         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
80082         test cases, so that config.log is a bit easier to follow.
80083
80084 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80085
80086         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
80087         both are 64 bits, since this seems to be the tradition, and this
80088         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
80089         we ever run into a host that prefers long long to long in this
80090         case, we'll need another configure-time test.  Problem reported by
80091         Jim Meyering.
80092
80093 2006-07-02  Eric Blake  <ebb9@byu.net>
80094
80095         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
80096
80097 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80098
80099         * modules/inttypes (Depends-on): No longer depends on stdint.
80100         * modules/stdint (Description): Say more about assumptions.
80101         Say that the fast types might differ.  Say macros are used.
80102         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
80103         (Makefile.am): Revise list of substituted symbols to match
80104         new stdint.m4.
80105         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
80106         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
80107         * tests/test-stdint.c (verify_same_types)
80108         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
80109         the code conforms to C99/C89.
80110         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
80111         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
80112
80113 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80114
80115         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
80116         but fix a bug, by requiring at least 64 bits.
80117         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
80118         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
80119         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
80120         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80121
80122         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
80123         changes.  Make 2.59 a prerequisite.  Check and substitute for
80124         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
80125         inttypes.h.  Do not use special include files; just use the
80126         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
80127         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
80128         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
80129         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
80130         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
80131         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
80132         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
80133         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
80134         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
80135         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
80136         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
80137         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
80138         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
80139         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
80140         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
80141         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
80142         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
80143         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
80144         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
80145         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
80146         WINT_MAX.  Check for C99 conformance more strictly, by detecting
80147         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
80148         not check for things that C99 does not require, e.g., int8_t.  If
80149         a test isn't needed unless <stdint.h> isn't working, and is
80150         unlikely to be needed for any other reason, then don't do it
80151         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
80152         size_t, since we assume C89 freestanding at least.  Do not check
80153         for sig_atomic_t, wchar_t, or wint_t, since the code now does
80154         the right thing even if the types are not defined.  Instead use:
80155         (gl_STDINT_TYPE_PROPERTIES): New macro.
80156         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
80157         testing whether <sys/types.h> clashes, as Autoconf does this for
80158         us now.  All uses removed.
80159         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
80160         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
80161         (gl_CHECK_TYPE_SAME):
80162         Remove; no longer needed.
80163         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
80164         exists, since we'll return 0 anyway in that case.
80165         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
80166
80167 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80168
80169         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
80170         possible collision with system files.
80171         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
80172         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
80173         WCHAR_MIN and WCHAR_MAX in this case.
80174         (<stddef.h>): Do not include; no longer needed.
80175         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
80176         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
80177         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
80178         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
80179         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
80180         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
80181         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
80182         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
80183         !defined(__c99))]: Include in this case too, since it's harmless
80184         now.
80185         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
80186         dangerous to do so.
80187         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
80188         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
80189         (_STDINT_MIN, _STDINT_MAX): New macros.
80190         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
80191         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
80192         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
80193         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
80194         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
80195         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
80196         macros, not typedefs; this simplifies things quite a bit.
80197         Use long int for all types narrower than int64_t.
80198         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
80199         Define in terms of long long int or int64_t or long int,
80200         not int64_t or int32_t.  This saves some compile-time testing.
80201         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
80202         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
80203         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
80204         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
80205         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
80206         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
80207         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
80208         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
80209         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
80210         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
80211         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80212         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80213         undef any previous version and define our own version, for
80214         simplicity and consistency with the new macros for types.
80215         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80216         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80217         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
80218         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
80219         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
80220         @WINT_T_SUFFIX@ to keep things simple here.
80221         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
80222         Simplify by assuming typical 8/16/32/64 host, since we're
80223         already doing that elsewhere anyway.
80224         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
80225         and assume long long int is 64 bits if available.  This
80226         speeds up 'configure'.
80227
80228 2006-07-01  Eric Blake  <ebb9@byu.net>
80229
80230         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
80231         Reported by Andreas Buening.
80232
80233 2006-07-01  Eric Blake  <ebb9@byu.net>
80234
80235         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
80236
80237 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80238
80239         * lib/getaddrinfo.c: fixed typo
80240
80241 2006-06-29  Jim Meyering  <jim@meyering.net>
80242
80243         * modules/strftime (Maintainer): Add my name, since with the
80244         FPRINTFTIME changes strftime.c has forked from glibc.
80245
80246 2006-06-29  Eric Blake  <ebb9@byu.net>
80247
80248         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
80249
80250 2006-06-29  Eric Blake  <ebb9@byu.net>
80251
80252         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
80253
80254 2006-06-29  Eric Blake  <ebb9@byu.net>
80255
80256         * lib/stat_.h: New file.
80257
80258 2006-06-29  Eric Blake  <ebb9@byu.net>
80259
80260         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
80261         unused static function.
80262
80263 2006-06-29  Eric Blake  <ebb9@byu.net>
80264
80265         * doc/functions.texi (Function Portability): Document missing lstat
80266         on mingw.
80267
80268 2006-06-29  Eric Blake  <ebb9@byu.net>
80269
80270         * MODULES.html.sh: Add sys_stat.
80271         * modules/sys_stat: New module.
80272         * modules/mkstemp (Depends-on): Add sys_stat.
80273
80274 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80275
80276         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
80277
80278 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80279
80280         * m4/c-bs-a.m4: Removed.
80281
80282 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80283
80284         * lib/strftime.c: Assume strftime() exists.
80285
80286 2006-06-29  Derek Price  <derek@ximbiot.com>
80287
80288         * modules/c-bs-a: Removed - \a is C89.
80289         * MODULES.html.sh: Remove c-bs-a.
80290
80291 2006-06-29  Bruno Haible  <bruno@clisp.org>
80292
80293         * modules/wcwidth (License): Change to LGPL.
80294
80295 2006-06-28  Simon Josefsson  <jas@extundo.com>
80296
80297         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
80298         on _WIN32.
80299
80300         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
80301         getnameinfo.
80302
80303 2006-06-28  Simon Josefsson  <jas@extundo.com>
80304
80305         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
80306
80307 2006-06-28  Simon Josefsson  <jas@extundo.com>
80308
80309         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
80310         functions there.  It will succeed on Windows XP, but on Windows
80311         2000 and (presumably) earlier, it will fail, and use the internal
80312         re-implementation.
80313         (use_win32_p): New function.
80314         (getaddrinfo): Use strtoul on servname, to support numeric ports.
80315         Support AI_NUMERICSERV to disable getservbyname.
80316         (getnameinfo): New function, only supports
80317         NI_NUMERICHOST|NI_NUMERICSERV for now.
80318
80319         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
80320         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
80321         getnameinfo.
80322
80323 2006-06-28  Eric Blake  <ebb9@byu.net>
80324
80325         * modules/wcwidth: New file.
80326         * modules/mbchar (Depends-on): Add wcwidth.
80327         * modules/mbswidth (Depends-on): Add wcwidth.
80328         * MODULES.html.sh: Add wcwidth.
80329
80330 2006-06-28  Eric Blake  <ebb9@byu.net>
80331
80332         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
80333         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
80334
80335 2006-06-28  Eric Blake  <ebb9@byu.net>
80336
80337         * lib/xvasprintf.h: Fix comments.
80338
80339 2006-06-28  Eric Blake  <ebb9@byu.net>
80340
80341         * lib/mbchar.h (wcwidth): Include wcwidth.h.
80342         * lib/mbswidth.c (wcwidth): Move from here...
80343         * lib/wcwidth.h: ...to this new file.
80344
80345 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80346
80347         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
80348
80349         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
80350         it's obsolete.
80351         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
80352
80353 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80354
80355         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
80356         Autoconf 2.60 says this stuff was obsolete.
80357
80358 2006-06-28  Bruno Haible  <bruno@clisp.org>
80359
80360         * modules/wcwidth (Files): Add m4/wchar_t.m4.
80361
80362 2006-06-28  Bruno Haible  <bruno@clisp.org>
80363
80364         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
80365         gt_TYPE_WCHAR_T.
80366
80367 2006-06-28  Bruno Haible  <bruno@clisp.org>
80368
80369         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
80370         declaration for wcwidth.
80371         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
80372
80373 2006-06-28  Bruno Haible  <bruno@clisp.org>
80374
80375         * lib/mkdtemp.c [MINGW]: Include <io.h>.
80376         (mkdir): Define using _mkdir.
80377
80378 2006-06-28  Bruno Haible  <bruno@clisp.org>
80379
80380         * lib/getaddrinfo.h: Fix POSIX URL.
80381         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
80382         _WIN32.
80383         (use_win32_p): Make static.
80384         (getaddrinfo): Reject service name if it is empty or does not consist
80385         solely of decimal digits, or if its value is > 65535.
80386         (getnameinfo): Remove useless casts.
80387
80388 2006-06-27  Simon Josefsson  <jas@extundo.com>
80389
80390         * modules/sys_select: New file, suggested by Bruno Haible, Paul
80391         Eggert and Martin Lambers.
80392
80393 2006-06-27  Simon Josefsson  <jas@extundo.com>
80394
80395         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
80396         Eggert and Martin Lambers.
80397
80398 2006-06-27  Bruno Haible  <bruno@clisp.org>
80399
80400         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
80401         result to 0, not to empty.
80402         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
80403
80404 2006-06-27  Bruno Haible  <bruno@clisp.org>
80405
80406         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
80407
80408 2006-06-26  Simon Josefsson  <jas@extundo.com>
80409
80410         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
80411         present.
80412
80413 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
80414
80415         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
80416         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
80417         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
80418
80419 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
80420
80421         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
80422
80423 2006-06-26  Bruno Haible  <bruno@clisp.org>
80424
80425         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
80426
80427 2006-06-26  Bruno Haible  <bruno@clisp.org>
80428
80429         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
80430
80431 2006-06-26  Bruno Haible  <bruno@clisp.org>
80432
80433         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
80434         SGI C compiler in pre-C99 mode.
80435         Suggested by Mark D. Baushke and Larry Jones.
80436
80437 2006-06-26  Bruno Haible  <bruno@clisp.org>
80438
80439         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
80440         WCHAR_MAX.
80441         Reported by Mark D. Baushke and Larry Jones.
80442
80443 2006-06-26  Bruno Haible  <bruno@clisp.org>
80444
80445         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
80446         in pre-C99 mode.
80447         Suggested by Mark D. Baushke and Larry Jones.
80448
80449 2006-06-23  Simon Josefsson  <jas@extundo.com>
80450             Bruno Haible  <bruno@clisp.org>
80451
80452         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
80453         Emit mostlyclean-local rule.
80454         (func_emit_tests_Makefile_am): Likewise.
80455         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
80456
80457 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
80458
80459         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
80460
80461 2006-06-23  Bruno Haible  <bruno@clisp.org>
80462
80463         * tests/test-stdint.c: Update to match ISO C 99 Technical
80464         Corrigendum 1.
80465
80466 2006-06-23  Bruno Haible  <bruno@clisp.org>
80467
80468         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
80469
80470 2006-06-23  Bruno Haible  <bruno@clisp.org>
80471
80472         * lib/stdint_.h: Treat IRIX like OpenBSD.
80473
80474 2006-06-23  Bruno Haible  <bruno@clisp.org>
80475
80476         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
80477         ISO C 99 Technical Corrigendum 1.
80478
80479 2006-06-22  Simon Josefsson  <jas@extundo.com>
80480
80481         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
80482         MinGW.
80483
80484 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80485
80486         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
80487         needed.  Some compiler complained about some of them.  Problem reported
80488         by Larry Jones in
80489         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
80490
80491 2006-06-21  Simon Josefsson  <jas@extundo.com>
80492
80493         * tests/test-getaddrinfo.c: New file.
80494
80495         * modules/getaddrinfo-tests: New file.
80496
80497         * MODULES.html.sh: Add inet_pton.
80498
80499         * modules/inet_pton: New file.
80500
80501 2006-06-21  Simon Josefsson  <jas@extundo.com>
80502
80503         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
80504         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
80505         of using the (limited) gnulib implementation on Windows XP.
80506
80507         * m4/inet_pton.m4: New file.
80508
80509 2006-06-21  Simon Josefsson  <jas@extundo.com>
80510
80511         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
80512         variable.
80513
80514         * lib/socket_.h: Don't define WINVER.
80515
80516         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
80517         slightly modified to work in gnulib.
80518
80519 2006-06-21  Simon Josefsson  <jas@extundo.com>
80520
80521         * doc/gnulib.texi (Windows sockets): Add.
80522
80523 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
80524
80525         * lib/read-file.c (fread_file): Start with buffer allocation of
80526         0 bytes rather than 1 byte; this simplifies the code.
80527         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
80528         code to free buffer and save/restore errno.
80529         (internal_read_file): Remove unused local.
80530
80531 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
80532
80533         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
80534         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
80535         Problem reported by Denis Excoffier in
80536         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
80537
80538 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80539
80540         * modules/sys_socket, modules/socklen: Include sys/types since
80541         FreeBSD 4.x's sys/socket.h needs it.
80542
80543 2006-06-19  Simon Josefsson  <jas@extundo.com>
80544
80545         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
80546
80547 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80548
80549         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
80550
80551 2006-06-19  Bruno Haible  <bruno@clisp.org>
80552
80553         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
80554         and FULL_PATH_INTTYPES_H in angle brackets.
80555         Reported by Mark D. Baushke <mdb@gnu.org>.
80556
80557 2006-06-17  Eric Blake  <ebb9@byu.net>
80558
80559         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
80560         errno.
80561
80562 2006-06-17  Bruno Haible  <bruno@clisp.org>
80563
80564         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
80565         <sys/inttypes.h>.
80566
80567 2006-06-17  Bruno Haible  <bruno@clisp.org>
80568
80569         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
80570         whether errno is declared. Assume <errno.h> declares errno.
80571
80572 2006-06-17  Bruno Haible  <bruno@clisp.org>
80573
80574         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
80575
80576 2006-06-17  Bruno Haible  <bruno@clisp.org>
80577
80578         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
80579         problem on Solaris 2.5.1.
80580
80581 2006-06-16  Eric Blake  <ebb9@byu.net>
80582
80583         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
80584         * lib/unicodeio.c [!defined errno]: Likewise.
80585         * lib/strtol.c [!defined errno]: Likewise.
80586         * lib/strtod.c [!defined errno]: Likewise.
80587
80588 2006-06-15  Eric Blake  <ebb9@byu.net>
80589
80590         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
80591
80592 2006-06-15  Eric Blake  <ebb9@byu.net>
80593
80594         * config/srclist.txt (ssize_t.m4): Lose sync.
80595
80596 2006-06-15  Bruno Haible  <bruno@clisp.org>
80597
80598         * modules/stdint (Files): Include m4/full-header-path.m4,
80599         m4/size_max.m4, m4/wchar_t.m4.
80600         (Makefile.am): Many more substitutions.
80601         * modules/stdint-tests: New file.
80602         * tests/test-stdint.c: New file.
80603
80604 2006-06-15  Bruno Haible  <bruno@clisp.org>
80605
80606         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
80607         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
80608         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
80609         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
80610         gl_CHECK_TYPE_SAME): New macros.
80611
80612 2006-06-15  Bruno Haible  <bruno@clisp.org>
80613
80614         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
80615
80616 2006-06-15  Bruno Haible  <bruno@clisp.org>
80617
80618         * lib/stdint_.h: Rewritten to be fully auto-configured.
80619         Fixes bug on HP-UX/IA64.
80620
80621 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
80622
80623         * lib/getdate.y (__attribute__): Don't define if already defined.
80624         Problem reported by Larry Jones.
80625         * lib/utimens.c (__attribute__): Likewise.
80626
80627 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
80628
80629         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
80630         reported by Andreas Schwab.
80631
80632 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80633             Bruno Haible  <bruno@clisp.org>
80634
80635         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
80636         check for the declaration of strnlen and a run test that exposes the
80637         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
80638         rpl_strndup.
80639
80640 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80641             Bruno Haible  <bruno@clisp.org>
80642
80643         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
80644
80645 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80646
80647         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
80648         compile test, for Tru64 4.0D.
80649
80650 2006-05-28  Karl Berry  <karl@gnu.org>
80651
80652         * config/srclist.txt (printf-args.c): lose sync.
80653
80654 2006-05-26  Martin Lambers  <marlam@marlam.de>
80655
80656         * lib/getpass.c: Updates the test for the native W32 API, and adds
80657         missing includes, thus fixing compilation warnings.
80658
80659 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80660
80661         * lib/exclude.c (exclude_fnmatch): New function.
80662         (excluded_file_name): Call exclude_fnmatch.
80663         * lib/exclude.h (excluded_file_name): New prototype
80664
80665 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
80666
80667         * lib/tempname.c (small_open, large_open): New macros.
80668         (__open, __open64) [!_LIBC]: Remove.
80669         (__gen_tempname): Use small_open and large_open instead of __open
80670         and __open64.  This fixes a portability bug on HP-UX 11.11i
80671         reported by Simon Wing-Tang in
80672         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
80673
80674 2006-05-24  Bruno Haible  <bruno@clisp.org>
80675
80676         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
80677         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
80678         Reported by Thorsten Maerz <torte@netztorte.de> via
80679         Aaron Stone <aaron@serendipity.cx>.
80680
80681 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80682
80683         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
80684         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
80685         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
80686         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
80687         not really conditional on the cache.
80688         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
80689
80690 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80691
80692         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
80693         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
80694         (my_usleep): Don't mishandle maximum value.
80695
80696 2006-05-19  Jim Meyering  <jim@meyering.net>
80697
80698         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
80699
80700 2006-05-17  Bruno Haible  <bruno@clisp.org>
80701
80702         Cygwin portability.
80703         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
80704
80705 2006-05-17  Bruno Haible  <bruno@clisp.org>
80706
80707         * lib/stdint_.h: Fix recognition of Cygwin.
80708
80709 2006-05-15  Bruno Haible  <bruno@clisp.org>
80710
80711         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
80712         on libtool patch by Ralf Wildenhues.
80713
80714 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80715
80716         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
80717         test for C99 conformance; (bool) 0.5 is an integer constant
80718         expression, but (bool) -0.5 is not.  Problem reported by Fedor
80719         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
80720
80721 2006-05-11  Simon Josefsson  <jas@extundo.com>
80722
80723         * m4/xvasprintf.m4: Fix obvious typo.
80724
80725 2006-05-11  Jim Meyering  <jim@meyering.net>
80726
80727         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
80728         James Lemley.
80729
80730 2006-05-10  Simon Josefsson  <jas@extundo.com>
80731
80732         * lib/md4.c: Typo fix, update copyright years.
80733         (K1, K2): Don't use L because it turn computations into 64-bit on
80734         64-bit platforms.
80735
80736 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
80737
80738         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
80739         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
80740         unwanted sign propagation, e.g., on hosts with 64-bit int.
80741         There still are some problems with reeelly weird theoretical hosts
80742         (e.g., 33-bit int) but it's not worth worrying about now.
80743         * lib/sha1.c (rol): Likewise.
80744         (K1, K2, K3, K4): Remove unnecessary L suffix.
80745
80746 2006-05-10  Bruno Haible  <bruno@clisp.org>
80747
80748         * lib/des.c: Cast to avoid warnings.
80749
80750 2006-05-09  Bruno Haible  <bruno@clisp.org>
80751
80752         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
80753         (Depends-on): Depend also on xsize, stdarg.
80754         (configure.ac): Add gl_XVASPRINTF.
80755
80756 2006-05-09  Bruno Haible  <bruno@clisp.org>
80757
80758         * m4/xvasprintf.m4: New file.
80759
80760 2006-05-09  Bruno Haible  <bruno@clisp.org>
80761
80762         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
80763         (EOVERFLOW): Define fallback value.
80764         (xstrcat): New function.
80765         (xvasprintf): Recognize the special case of a string concatenation.
80766
80767 2006-05-08  Eric Blake  <ebb9@byu.net>
80768
80769         * gnulib-tool (func_version): Base copyright year on CVS date.
80770         (func_emit_copyright_notice): New function.
80771         (func_emit_lib_Makefile_am): Use it.
80772         (func_emit_tests_Makefile_am): Likewise.
80773         (func_import): Likewise.
80774
80775 2006-05-08  Bruno Haible  <bruno@clisp.org>
80776
80777         * modules/stdarg: New file.
80778         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
80779
80780 2006-05-08  Bruno Haible  <bruno@clisp.org>
80781
80782         * m4/stdarg.m4: New file, from GNU gettext.
80783
80784 2006-05-08  Bruno Haible  <bruno@clisp.org>
80785
80786         * config/srclist.txt (build-aux/config.rpath): different from latest
80787         release.
80788
80789 2006-05-08  Bruno Haible  <bruno@clisp.org>
80790
80791         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
80792
80793 2006-05-05  Jim Meyering  <jim@meyering.net>
80794
80795         * m4/warning.m4: New file, derived from bison's file by the same name.
80796
80797 2006-05-03  Bruno Haible  <bruno@clisp.org>
80798
80799         * lib/stdint_.h: Shorter URL.
80800         * lib/inttypes.h: Likewise.
80801
80802 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80803
80804         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
80805
80806 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80807
80808         * lib/verify.h: Document the internals better.  Most of this change
80809         was written by Bruno Haible.
80810
80811 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80812
80813         * doc/verify.texi: New file, partly based on a proposal by
80814         Bruno Haible.
80815
80816 2006-05-02  Bruno Haible  <bruno@clisp.org>
80817
80818         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
80819         test from here...
80820         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
80821
80822 2006-04-29  Bruno Haible  <bruno@clisp.org>
80823
80824         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
80825         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
80826
80827 2006-04-29  Bruno Haible  <bruno@clisp.org>
80828
80829         * gnulib-tool: Make --update option actually work.
80830
80831 2006-04-29  Bruno Haible  <bruno@clisp.org>
80832
80833         * doc/gcd.texi: New file.
80834         * doc/gnulib.texi: Include it.
80835
80836 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
80837
80838         * lib/getdate.y (get_date): When adding relative date, start with the
80839         initial time, not with the result of the first mktime call.
80840
80841 2006-04-25  Bruno Haible  <bruno@clisp.org>
80842
80843         * gnulib-tool (func_import): Output the include directives in three
80844         blocks, sorted separately.
80845         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80846
80847 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80848
80849         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
80850         to define main with arguments, for C++.  Reported by Eric Blake.
80851         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
80852         Prefer 'int main ()' to 'int main (void)', for C++.
80853         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
80854         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
80855         for 'main', for C99 and C++.
80856
80857 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80858
80859         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
80860         Don't assume that exit status -1 is valid.
80861         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80862         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
80863         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
80864         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
80865         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
80866         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
80867         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
80868         functions can be used without declaring them, or that you can
80869         exit with status -1.
80870         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
80871
80872 2006-04-24  Karl Berry  <karl@gnu.org>
80873
80874         * config/srclist.txt (longdouble.m4): sync lost.
80875
80876 2006-04-24  Eric Blake  <ebb9@byu.net>
80877
80878         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
80879
80880 2006-04-24  Bruno Haible  <bruno@clisp.org>
80881
80882         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
80883         poll() implementation in AIX.
80884         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80885
80886 2006-04-24  Bruno Haible  <bruno@clisp.org>
80887
80888         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
80889         assigned exactly once.
80890
80891 2006-04-23  Claudio Fontana  <claudio@gnu.org>
80892             Bruno Haible  <bruno@clisp.org>
80893
80894         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
80895         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
80896         for AM_CPPFLAGS.
80897
80898 2006-04-23  Bruno Haible  <bruno@clisp.org>
80899
80900         * modules/copy-file: Depend on unistd.
80901         * modules/execute: Likewise.
80902         * modules/fatal-signal: Likewise.
80903         * modules/findprog: Likewise.
80904         * modules/mkdtemp : Likewise.
80905         * modules/pipe: Likewise.
80906         * modules/wait-process: Likewise.
80907
80908 2006-04-23  Bruno Haible  <bruno@clisp.org>
80909
80910         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
80911         condition was already detected.
80912         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80913
80914 2006-04-23  Bruno Haible  <bruno@clisp.org>
80915
80916         * lib/copy-file.c: Include <unistd.h> unconditionally.
80917         * lib/execute.c: Likewise.
80918         * lib/fatal-signal.c: Likewise.
80919         * lib/findprog.c: Likewise.
80920         * lib/mkdtemp.c: Likewise.
80921         * lib/pipe.h: Likewise.
80922         * lib/pipe.c: Likewise.
80923         * lib/wait-process.h: Likewise.
80924
80925 2006-04-23  Bruno Haible  <bruno@clisp.org>
80926
80927         * gnulib-tool (func_usage): Fix --import description. Document
80928         --update.
80929         (func_import): Create temporary file in a temporary directory, if
80930         --dry-run is specified. Silence errors from 'grep' when there are no
80931         m4 files in $m4dir.
80932         (func_create_testdir): Silence errors from 'grep' when there are no
80933         m4 files in $m4dir.
80934         Reported by Karl Berry <karl@freefriends.org>.
80935
80936 2006-04-20  Bruno Haible  <bruno@clisp.org>
80937
80938         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
80939         one argument, so that the code will be portable to Autoconf 2.60.
80940         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
80941         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80942         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
80943
80944 2006-04-19  Derek Price  <derek@ximbiot.com>
80945             Eric Blake  <ebb9@byu.net>
80946
80947         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
80948         rather than "/full/path.h".  Update comment to match.  Shorten &
80949         generalize m4_translit call via AS_TR_CPP.
80950
80951 2006-04-19  Derek Price  <derek@ximbiot.com>
80952             Eric Blake  <ebb9@byu.net>
80953
80954         * lib/inttypes.h: Correct grammar in comment.
80955
80956 2006-04-18  Derek Price  <derek@ximbiot.com>
80957             Paul Eggert  <eggert@cs.ucla.edu>
80958
80959         * modules/inttypes: New file.
80960         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
80961
80962 2006-04-18  Derek Price  <derek@ximbiot.com>
80963             Paul Eggert  <eggert@cs.ucla.edu>
80964
80965         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
80966         New files.
80967
80968 2006-04-18  Derek Price  <derek@ximbiot.com>
80969             Paul Eggert  <eggert@cs.ucla.edu>
80970
80971         * lib/inttypes.h: New file.
80972         * lib/strtoimax.c: Assume <inttypes.h>.
80973
80974 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
80975
80976         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
80977         isn't mounted.  Problem reported by Kir Kolyshkin.
80978
80979 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80980
80981         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
80982         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
80983         Derek R. Price.
80984         * lib/regex.h (RE_DUP_MAX): Update comment to match current
80985         implementation.
80986
80987 2006-04-12  Eric Blake  <ebb9@byu.net>
80988
80989         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
80990         is now done automatically by the corresponding Autoconf macro.
80991
80992 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
80993
80994         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
80995         time_r.h.
80996
80997 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80998
80999         Merge regex changes from libc, removing some of our
81000         POSIX-conformance changes that were rejected and redoing them in a
81001         less-intrusive way.
81002
81003         * lib/regcomp.c (re_compile_internal, init_dfa):
81004         Length arg is now size_t, not Idx.  All uses changed.
81005         (peek_token): Forward decl now says internal_function.
81006         (__re_error_msgid, __re_error_msgid_idx):
81007         Now static rather than extern with attribute_hidden.
81008         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
81009         For some reason libc prefers K&R style defns for external functions.
81010         (regerror) [!defined _LIBC]: Likewise.
81011         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
81012         (seek_collating_symbol_entry, lookup_collation_sequence_value):
81013         (build_range_exp, build_collating_symbol):
81014         Use K&R-style defn.
81015         (re_compile_fastmap): Use '\0' to memset, not 0.
81016         (utf8_sb_map): Make the calculations more obvious.
81017         (init_dfa, parse_bracket_exp, build_charclass_op):
81018         Call calloc and cast result, as glibc does.
81019         (init_word_char, fetch_token, peek_token, peek_token_bracket):
81020         (build_range_exp, build_collating_symbol):
81021         Now internal functions.
81022
81023         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
81024
81025         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
81026         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
81027         Don't depend on VMS; depend on __VMS instead, for POSIX
81028         namespace cleanness.
81029         (regoff_t): Define to ssize_t, not long int.
81030
81031         Remove the REG_ macros named below.  Instead, make the old names
81032         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
81033         __USE_GNU_REGEX.
81034         (REG_BACKSLASH_ESCAPE_IN_LISTS):
81035         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
81036         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
81037         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
81038         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
81039         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
81040         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
81041         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
81042         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
81043         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
81044         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
81045         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
81046         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
81047         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
81048         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
81049         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
81050         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
81051         (REG_NREGS):
81052         Remove.  All uses replaced by the old RE_* names.
81053         (RE_BACKSLASH_ESCAPE_IN_LISTS):
81054         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
81055         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
81056         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
81057         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
81058         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
81059         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
81060         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
81061         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
81062         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
81063         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
81064         Don't bother having these macros be independent of each others'
81065         values, since they no longer exist in the POSIX name space.
81066
81067         Rename the following member names back to their old names,
81068         unless !__USE_GNU_REGEX.  All uses changed back.
81069         (buffer): Renamed from re_buffer.
81070         (allocated): Renamed from re_allocated.
81071         (used): Renamed from re_used.
81072         (syntax): Renamed from re_syntax.
81073         (fastmap): Renamed from re_fastmap.
81074         (translate): Renamed from re_translate.
81075         (can_be_null): Renamed from re_can_be_null.
81076         (regs_allocated): Renamed from re_regs_allocated.
81077         (fastmap_accurate): Renamed from re_fastmap_accurate.
81078         (no_sub): Renamed from re_no_sub.
81079         (not_bol): Renamed from re_not_bol.
81080         (not_eol): Renamed from re_not_eol.
81081         (newline_anchor): Renamed from re_newline_anchor.
81082         (num_regs): Renamed from rm_num_regs.
81083         (start): Renamed from rm_start.
81084         (end): Renamed from rm_end.
81085
81086         (free_state): Move up a bit.
81087
81088         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
81089         #define to be empty.
81090         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
81091         when that is what is intended.
81092         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
81093         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
81094         (MAX): New macro.
81095         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
81096         All uses changed back to re_malloc, etc.  It's now the caller's
81097         responsibility to check for overflow; all callers changed.
81098         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
81099         (re_x2nrealloc): Remove.
81100         (free_state): Remove decl.
81101
81102         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
81103         (re_set_registers, re_exec):
81104         Use K&R-style defn.
81105
81106         2006-01-31  Roland McGrath  <roland@redhat.com>
81107
81108         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
81109         Reported by Mike Frysinger <vapier@gentoo.org>.
81110
81111         2006-01-15  Andreas Jaeger  <aj@suse.de>
81112
81113         [BZ #1950]
81114         * lib/regex_internal.c (re_string_reconstruct): Adjust for
81115         build_wcs_upper_buffer change.
81116         (build_wcs_upper_buffer): Change return type.
81117
81118         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
81119
81120         * lib/regex_internal.h: Include <stdint.h> if available.
81121
81122         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
81123
81124         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
81125
81126         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
81127
81128         * lib/regcomp.c: Adjust for changed secondary hash function.
81129
81130         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
81131
81132         * lib/regex.h: Pretty printing.
81133         Clean up namespace a bit.
81134
81135         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
81136
81137         * lib/regexec.c (update_cur_sifted_state, check_arrival,
81138         check_arrival_add_next_nodes): Avoid using uninitialized variable.
81139
81140         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81141                     Ulrich Drepper  <drepper@redhat.com>
81142
81143         [BZ #1302]
81144         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
81145         changed.
81146         (bitset_word_t): Renamed from bitset_word.  All uses changed.
81147
81148         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
81149
81150         [BZ #281]
81151         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
81152         * lib/regcomp.c: Remove unnecessary uses of
81153         unsigned RE_TRANSLATE_TYPE.
81154         * lib/regex_internal.h: Likewise.
81155         * lib/regex_internal.c: Likewise.
81156         * lib/regexec.c: Likewise.
81157         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
81158
81159         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
81160
81161         * lib/regexec.c (find_recover_state): Remove unnecessary
81162         initialization.
81163         (transit_state_bkref): Make DFA a const pointer.
81164         (get_subexp): Likewise.
81165         (check_arrival): Likewise.
81166         (update_cur_sifted_state): Likewise.
81167         (re_search_internal): Likewise.
81168         (prune_impossible_nodes): Likewise.
81169         (acquire_init_state_context): Likewise.
81170         (proceed_next_node): Likewise.
81171         (set_regs): Likewise.
81172         (free_fail_stack_return): Likewise.
81173         (check_arrival_expand_ecl): Mark DFA parameter as const.
81174         (check_arrival_expand_ecl_sub): Likewise.
81175         (check_subexp_limits): Likewise.
81176         (sub_epsilon_src_nodes):  Likewise.
81177         (add_epsilon_src_nodes):  Likewise.
81178         (merge_state_array): Likewise.
81179         (update_regs): Likewise.
81180         (build_trtable): Likewise.
81181         (sift_states_backward): Mark MCTX parameter as const.
81182         (build_sifted_states): Likewise.
81183         (update_cur_sifted_state): Likewise.
81184         (sift_states_mkref): Likewise.
81185         (check_arrival_expand_ecl): Mark eclosure as const.
81186         (check_dst_limits_calc_pos_1): Likewise.
81187         * lib/regex_internal.h (re_match_context_t): Make dfa a const
81188         pointer.
81189
81190         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
81191
81192         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
81193         (transit_state_sb): Likewise.
81194         (transit_state_mb): Likewise.
81195         (sift_states_iter_mb): Likewise.
81196         (check_arrival_add_next_nodes): Likewise.
81197         (check_node_accept_bytes): Change first parameter to pointer-to-const.
81198         [_LIBC] (re_search_2_stub): Use mempcpy.
81199
81200         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
81201         mbrtowc for very simple UTF-8 case.
81202
81203         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
81204         a pointer-to-const.
81205         (re_acquire_state_context): Likewise.
81206         * lib/regex_internal.h: Adjust prototypes.
81207
81208         * lib/regex.c: Prevent using C++ compilers.
81209
81210         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
81211         (re_acquire_state_context): Likewise.
81212
81213 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81214
81215         * modules/regex (Depends-on): Add ssize_t.
81216
81217 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81218
81219         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
81220         translation table.
81221
81222 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81223
81224         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
81225
81226 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
81227             Bruno Haible  <bruno@clisp.org>
81228
81229         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
81230         <sys/types.h> and <inttypes.h>.
81231
81232 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81233
81234         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
81235         `__error_t_defined', so argp.h will not typedef the former.
81236
81237 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
81238
81239         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
81240         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
81241         glibc names.  Even if glibc is changed to conform to POSIX, the
81242         traditional names will be available anyway, since regex depends on
81243         the extensions module.  Also, fix a longstanding typo in the
81244         implementation of Spencer ERE test #75 from grep 2.3.  Problems
81245         reported by Emanuele Giaquinta.  Also, change sense of cached
81246         variable, so that the message makes sense.
81247
81248 2006-03-24  Simon Josefsson  <jas@extundo.com>
81249
81250         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
81251         including some doc fixes.
81252         (base64_encode_alloc): Fix +1 bug on allocation failures.
81253
81254 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81255
81256         * lib/base64.c (base64_encode): Do not read past end of array with
81257         unsanitized input on systems with CHAR_BIT > 8.
81258
81259 2006-03-24  Eric Blake  <ebb9@byu.net>
81260
81261         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
81262
81263 2006-03-22  Karl Berry  <karl@gnu.org>
81264
81265         * config/srclist.txt (*setenv.[ch]): get from coreutils.
81266         * config/srclistvars.sh (COREUTILS): new var.
81267
81268 2006-03-17  Jim Meyering  <jim@meyering.net>
81269
81270         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
81271         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
81272
81273 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81274
81275         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
81276         no longer needs it.  Instead, check that regoff_t is as least
81277         as wide as ptrdiff_t.
81278
81279         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
81280         so that our regex.h stays compatible with the installed regex.
81281         This is helpful for installers who configure --without-included-regex.
81282         Problem reported by Emanuele Giaquinta.
81283
81284 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81285
81286         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
81287         Typedef to long int, not to off_, as POSIX will likely change
81288         in that direction.
81289
81290 2006-03-15  Eric Blake  <ebb9@byu.net>
81291
81292         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
81293
81294 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81295
81296         * lib/argp-help.c (validate_uparams): Fix typo
81297         * lib/argp-parse.c (argp_default_options): Consistently begin help
81298         messages with a lowercase letter.
81299
81300 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
81301
81302         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
81303         overrun buffers and shouldn't be used (much as gets shouldn't be
81304         used).
81305         * lib/time_r.c (asctime_r, ctime_r): Likewise.
81306
81307 2006-03-08  Simon Josefsson  <jas@extundo.com>
81308
81309         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
81310         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81311
81312 2006-03-08  Simon Josefsson  <jas@extundo.com>
81313
81314         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
81315         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81316
81317 2006-03-08  Simon Josefsson  <jas@extundo.com>
81318
81319         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
81320         signal that configure disabled the device.
81321
81322 2006-03-08  Simon Josefsson  <jas@extundo.com>
81323
81324         * build-aux/maint.mk: Fix refresh-po, to handle no translated
81325         languages.
81326
81327 2006-03-07  Simon Josefsson  <jas@extundo.com>
81328
81329         * modules/getopt (Depends-on): Add unistd.
81330
81331         * modules/unistd: New file.
81332
81333 2006-03-07  Simon Josefsson  <jas@extundo.com>
81334
81335         * modules/gc-random: New file.
81336
81337 2006-03-07  Simon Josefsson  <jas@extundo.com>
81338
81339         * m4/unistd_h.m4: New file.
81340
81341 2006-03-07  Simon Josefsson  <jas@extundo.com>
81342
81343         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
81344         test to be side-effect free by storing the result in the cache
81345         variable gl_cv_lib_readline, and moving the assignment of
81346         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
81347         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81348
81349 2006-03-07  Simon Josefsson  <jas@extundo.com>
81350
81351         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
81352         error on missing devices (the functions will return an error).
81353
81354         * m4/gc.m4: Move random stuff to gc-random.m4
81355
81356 2006-03-07  Simon Josefsson  <jas@extundo.com>
81357
81358         * lib/unistd_.h: New file.
81359
81360 2006-03-07  Simon Josefsson  <jas@extundo.com>
81361
81362         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
81363
81364 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81365
81366         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
81367         Problem reported by Juan Manuel Guerrero.
81368
81369 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81370
81371         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
81372         the unistd module.
81373         * lib/getlogin_r.c: Likewise.
81374         * lib/getlogin_r.h: Likewise.
81375         * lib/glob.c: Likewise.
81376         * lib/pagealign_alloc.c: Likewise.
81377         * lib/unistd_.h: Remove; no longer needed.
81378
81379 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81380
81381         * MODULES.html.sh (Support for systems lacking POSIX:2001):
81382         Add unistd.
81383         * modules/c-stack (Depends-on): Add unistd.
81384         * modules/getlogin_r: Likewise.
81385         * modules/glob: Likewise.
81386         * modules/pagealign_alloc: Likewise.
81387         * modules/unistd (Files): Remove lib/unistd_.h.
81388         (EXTRA_DIST): Remove.
81389         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
81390         need unistd_.h.
81391         (MOSTLYCLEANFILES): Remove unistd.h-t.
81392
81393 2006-03-03  Simon Josefsson  <jas@extundo.com>
81394
81395         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
81396
81397 2006-03-03  Simon Josefsson  <jas@extundo.com>
81398
81399         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
81400         libidn and bison.
81401
81402 2006-03-03  Simon Josefsson  <jas@extundo.com>
81403
81404         * build-aux/maint.mk: Add indent target.
81405
81406 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
81407
81408         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
81409         our replacement poll.h in any case, to avoid a differing
81410         declaration from a system header.  Seen on AIX.
81411
81412 2006-03-01  Simon Josefsson  <jas@extundo.com>
81413
81414         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
81415         <kasal@ucw.cz>.
81416
81417 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81418
81419         * modules/gettime (Depends-on): Add extensions module.
81420         * modules/nanosleep (Depends-on): Likewise.
81421         * modules/settime (Depends-on): Likewise.
81422
81423 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81424
81425         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
81426         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
81427         pedantically.
81428         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81429         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
81430
81431         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
81432         not "==".  Reported by Ralf Wildenhues.
81433
81434 2006-03-01  Karl Berry  <karl@gnu.org>
81435
81436         * doc/Copyright/request-*: new files, synced from gnuorg.
81437
81438 2006-03-01  Karl Berry  <karl@gnu.org>
81439
81440         * config/srclist.txt (Copyright/*): new entries.
81441
81442 2006-02-28  Simon Josefsson  <jas@extundo.com>
81443
81444         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
81445
81446 2006-02-27  Simon Josefsson  <jas@extundo.com>
81447
81448         * lib/base64.h: Indent #define's.  From Jim Meyering
81449         <jim@meyering.net>.
81450
81451 2006-02-27  Jim Meyering  <jim@meyering.net>
81452
81453         Revert the change of 2006-02-24, so these files can continue
81454         to be sync'd from gettext.
81455         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
81456         of `config.h'.
81457
81458 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
81459
81460         * modules/intprops: New file.
81461         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
81462         Add intprops.
81463         * modules/getloadavg (Files): Remove lib/intprops.h.
81464         (Depends-on): Add intprops.
81465         * modules/human: Likewise.
81466         * modules/inttostr: Likewise.
81467         * modules/openat: Likewise.
81468         * modules/sig2str: Likewise.
81469         * modules/userspec: Likewise.
81470         * modules/utimecmp: Likewise.
81471         * modules/xnanosleep: Likewise.
81472         * modules/xstrtol: Likewise.
81473
81474 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
81475
81476         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
81477         * modules/lock-tests (TESTS): Use $(EXEEXT).
81478         * modules/tls-tests: Likewise.
81479         * modules/argp-tests: Likewise.
81480         (check_PROGRAMS): New var, replacing...
81481         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
81482
81483 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81484
81485         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
81486         `config.h'.
81487
81488 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
81489
81490         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
81491
81492 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81493
81494         Sync from coreutils.
81495         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
81496         gl_CHDIR_SAFER.
81497
81498 2006-02-22  Jim Meyering  <jim@meyering.net>
81499
81500         Sync from coreutils.
81501         * m4/chdir-safer.m4: New file.
81502
81503 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
81504
81505         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
81506         AT_FDCWD exceeds INT_MAX.
81507         * lib/openat.h (AT_FDCWD): Likewise.
81508
81509 2006-02-17  Eric Blake  <address@hidden>
81510
81511         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
81512
81513 2006-02-16  Simon Josefsson  <jas@extundo.com>
81514
81515         * modules/getaddrinfo (Depends-on): Add sys_socket.
81516
81517 2006-02-15  Simon Josefsson  <jas@extundo.com>
81518
81519         * build-aux/maint.mk: Add dsyntax-check rule.
81520
81521 2006-02-15  Eric Blake  <ebb9@byu.net>
81522
81523         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
81524         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
81525         'present but cannot compile' warnings on cygwin.
81526         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
81527         use ws2tcpip.h if sys/socket.h works.
81528         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
81529         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
81530
81531 2006-02-14  Simon Josefsson  <jas@extundo.com>
81532
81533         * modules/maintainer-makefile (Files): Rename.
81534
81535         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
81536         and (the local) Makefile.cfg to maint-cfg.mk.
81537
81538         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
81539         to the latter.
81540
81541         * modules/maintainer-makefile: New module.
81542
81543         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
81544         severaly stripped to make it possible to build it up from scratch
81545         with reliable tests.
81546
81547         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
81548         fixes to permit overriding the default actions when configure and
81549         makefile are not available.
81550
81551 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
81552
81553         Sync from coreutils.
81554         * modules/lstat (Depends-on): Don't depend on xalloc.
81555         (License): Change from GPL to LGPL, since this is now simply a
81556         replacement for a libc function.
81557
81558 2006-02-14  Jim Meyering  <jim@meyering.net>
81559
81560         Sync from coreutils.
81561
81562         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
81563         failure on deficient systems, and simplify gnulib lgpl dependencies.
81564         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
81565         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
81566
81567         * lib/xalloc-die.c: Remove unused definition of N_.
81568
81569 2006-02-14  Jim Meyering  <jim@meyering.net>
81570
81571         Sync from coreutils.
81572         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
81573         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
81574         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
81575         double-quote uses of that variable, to accommodate the rare case in
81576         which getmntent is available in none of the libraries checked.  This
81577         happens at least on FreeBSD 5.0.
81578
81579 2006-02-13  Simon Josefsson  <jas@extundo.com>
81580
81581         * gnulib-tool (Usage): Fix --import, from
81582         karl@freefriends.org (Karl Berry).
81583
81584 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81585
81586         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
81587
81588 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
81589
81590         * lib/argp-namefrob.h: Restore changes accidentally lost during the
81591         "autoupdate" on 2005-12-12.
81592
81593 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81594
81595         * modules/closeout (Depends-on): Remove atexit.
81596
81597 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81598
81599         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
81600         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
81601
81602 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
81603
81604         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
81605         __EXTENSIONS__ if this causes compilation to fail.  Problem
81606         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
81607         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
81608
81609 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
81610
81611         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
81612         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
81613         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
81614         All uses changed.
81615
81616 2006-01-26  Simon Josefsson  <jas@extundo.com>
81617
81618         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
81619         prototype is visible on mingw32.
81620
81621         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
81622         for mingw32.
81623
81624         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
81625         mingw32).
81626
81627 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
81628
81629         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
81630         attempt to open for write; this always fails, at least on POSIX
81631         hosts.  This reinstates the 2006-01-09 change, which was
81632         inadvertently removed.
81633
81634 2006-01-26  Bruno Haible  <bruno@clisp.org>
81635
81636         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
81637         Reported by Paul Eggert.
81638
81639 2006-01-26  Bruno Haible  <bruno@clisp.org>
81640             Paul Eggert  <eggert@cs.ucla.edu>
81641
81642         * lib/stdbool_.h (_Bool)
81643         [(! (defined __cplusplus || defined __BEOS__)
81644           && !defined __GNUC__
81645           && !(defined __HP_cc || defined __xlc__
81646                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
81647                || defined __sgi))]:
81648         #define to signed char in these cases too; this simplifies
81649         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
81650         etc., separately) and makes it more conservative.
81651
81652 2006-01-25  Simon Josefsson  <jas@extundo.com>
81653
81654         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
81655         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
81656         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
81657
81658 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81659
81660         * lib/argp-namefrob.h: Bugfix. Remove stray #
81661
81662 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81663
81664         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
81665         so that we test the test.
81666         Check for yet another HP-UX cc bug involving *bool |= bool.
81667
81668 2006-01-25  Karl Berry  <karl@gnu.org>
81669
81670         * config/srclist.txt (vasnprintf.c): sync lost.
81671
81672 2006-01-25  Jim Meyering  <jim@meyering.net>
81673
81674         Sync from the stable (b5) branch of coreutils:
81675
81676         * lib/fts.c (fts_children): Don't let close() clobber errno from
81677         failed fchdir().
81678
81679         * lib/fts.c (fts_stat): When following a symlink-to-directory,
81680         don't necessarily interpret stat-fails+lstat-succeeds as indicating
81681         a dangling symlink.  That can also happen at least for ELOOP.
81682         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
81683         FYI, this bug predates the inclusion of fts.c in coreutils.
81684
81685         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
81686         in their own block, so pre-c99 compilers don't object.
81687
81688         Avoid the double-free (first in fts_read, second in fts_close) that
81689         would occur when an `active' directory is made inaccessible (e.g.,
81690         via chmod a-x) during a traversal.
81691         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81692         before returning.  Reproduce this failure by
81693         mkdir -p a/b; cd a; chmod a-x . b
81694         Reported by Stavros Passas.
81695
81696 2006-01-25  Jim Meyering  <jim@meyering.net>
81697
81698         * lib/fileblocks.c: Remove more useless parentheses.
81699         * lib/readutmp.h: Likewise.
81700
81701 2006-01-25  Bruno Haible  <bruno@clisp.org>
81702
81703         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
81704         warnings.
81705         Reported by Paul Eggert.
81706
81707 2006-01-25  Bruno Haible  <bruno@clisp.org>
81708
81709         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
81710         rid of a trap command. For Solaris sh.
81711         Reported by Mark D. Baushke <mdb@gnu.org>.
81712
81713 2006-01-24  Simon Josefsson  <jas@extundo.com>
81714
81715         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
81716         Bruno.
81717
81718 2006-01-24  Karl Berry  <karl@gnu.org>
81719
81720         * config/srclist.txt (argp-namefrob.h): sync lost.
81721
81722 2006-01-24  Jim Meyering  <jim@meyering.net>
81723
81724         * modules/openat (Files): Add lib/intprops.h.
81725         From Mark D. Baushke.
81726
81727 2006-01-24  Jim Meyering  <jim@meyering.net>
81728
81729         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
81730         Reported by Mark D. Baushke.
81731
81732 2006-01-24  Jim Meyering  <jim@meyering.net>
81733
81734         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
81735
81736 2006-01-24  Bruno Haible  <bruno@clisp.org>
81737
81738         * modules/strnlen (Maintainer): Change from glibc to all.
81739
81740 2006-01-24  Bruno Haible  <bruno@clisp.org>
81741
81742         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
81743         Patch by Paul Eggert.
81744
81745 2006-01-24  Bruno Haible  <bruno@clisp.org>
81746
81747         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
81748         already has it.
81749         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
81750         2005-11-26.
81751
81752         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
81753         'signed char' to avoid problems with the built-in _Bool type.
81754         Reported by Paul Eggert on 2005-11-26.
81755
81756 2006-01-24  Bruno Haible  <bruno@clisp.org>
81757
81758         * gnulib-tool (func_import): Avoid constructing complicated sed
81759         expressions inside backquote.
81760         Report and solution by Mark D. Baushke <mdb@gnu.org>.
81761
81762 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
81763
81764         These changes imported from libc.
81765         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
81766         test and two separate function calls.
81767         * lib/strndup.c (__strndup): Add libc_hidden_def.
81768
81769 2006-01-23  Simon Josefsson  <jas@extundo.com>
81770
81771         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
81772         Remove the test_*_SOURCES variable: automake infers it by default.
81773         * modules/tls-tests: Likewise.
81774
81775 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81776
81777         Work around porting bugs reported by Dieter in
81778         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
81779         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
81780         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
81781         Include "getopt.h" first, to check interface.
81782         (getenv): Declare only if defined HAVE_DECL_GETENV &&
81783         !HAVE_DECL_GETENV.
81784         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
81785         (__strndup): Revert to K&R-style function dfns, the glibc style.
81786         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
81787         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
81788         Include strnlen.h first, to get prototype properly.
81789         (strnlen): Renamed from __strnlen.
81790         Remove weak alias.
81791
81792 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81793
81794         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
81795
81796 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81797
81798         * config/srclist.txt: Adjust to reflect glibc reorganization.
81799         This affects only comments.
81800
81801 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81802
81803          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
81804          Reported by Bruce Korb <bkorb@gnu.org>.
81805
81806 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
81807
81808         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
81809         to pacify gcc -Wswitch-default.
81810
81811 2006-01-22  Bruno Haible  <bruno@clisp.org>
81812
81813         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
81814         temporary buffer for sprintf, take into account the precision also
81815         for 'd', 'i', 'u', 'o', 'x', 'X'.
81816
81817 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81818
81819         * modules/argp-tests: New module
81820         * tests/test-argp.c: New file
81821         * tests/test-argp-2.sh: New file
81822
81823 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81824
81825         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
81826         (__argp_base_name): Removed
81827         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
81828         typo.
81829         (__argp_base_name): Provide macro definition or extern declaration
81830         depending on the configuration
81831
81832 2006-01-20  Simon Josefsson  <jas@extundo.com>
81833
81834         * modules/inet_ntop (Depends-on): Depend on sys_socket.
81835
81836 2006-01-20  Simon Josefsson  <jas@extundo.com>
81837
81838         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
81839
81840 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81841
81842         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
81843         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
81844         Suggested by Bruno Haible.
81845
81846 2006-01-20  Karl Berry  <karl@gnu.org>
81847
81848         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
81849         until changes propagate, I guess.
81850
81851 2006-01-19  Simon Josefsson  <jas@extundo.com>
81852
81853         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
81854
81855 2006-01-19  Simon Josefsson  <jas@extundo.com>
81856
81857         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
81858
81859 2006-01-19  Simon Josefsson  <jas@extundo.com>
81860
81861         * gnulib-tool: Set check_PROGRAMS.
81862
81863         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81864         modules/des-tests, modules/gc-arcfour-tests,
81865         modules/gc-arctwo-tests, modules/gc-des-tests,
81866         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81867         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81868         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81869         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81870         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81871         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
81872         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
81873         test_*_SOURCES.
81874
81875 2006-01-18  Simon Josefsson  <jas@extundo.com>
81876
81877         * modules/socklen (Depends-on): Depend on sys_socket.
81878
81879 2006-01-18  Simon Josefsson  <jas@extundo.com>
81880
81881         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81882         modules/des-tests, modules/gc-arcfour-tests,
81883         modules/gc-arctwo-tests, modules/gc-des-tests,
81884         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81885         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81886         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81887         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81888         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81889         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
81890         $(EXEEXT) to automake TESTS variable, for mingw32.
81891
81892 2006-01-17  Simon Josefsson  <jas@extundo.com>
81893
81894         * modules/socklen (Include): Need sys/socket.h.
81895
81896 2006-01-17  Bruno Haible  <bruno@clisp.org>
81897
81898         * modules/ssize_t (Include): Add <sys/types.h>.
81899
81900 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
81901
81902         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
81903         it's not portable and it doesn't work with cross-compiles.
81904         Problem reported by Bruno Haible.  Fix missing-$ typo in
81905         'test "gl_cv_ignore_unused_libraries" ...' that prevented
81906         -zignore from being used with Sun's C compiler.
81907
81908 2006-01-12  Simon Josefsson  <jas@extundo.com>
81909
81910         * lib/base64.c: Fix warning, reported by Bruno Haible
81911         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
81912
81913 2006-01-12  Bruno Haible  <bruno@clisp.org>
81914
81915         * modules/ldd: New file.
81916         * build-aux/ldd.sh.in: New file.
81917         * MODULES.html.sh (Support for building libraries and executables): Add
81918         ldd.
81919
81920 2006-01-12  Bruno Haible  <bruno@clisp.org>
81921
81922         * m4/ldd.m4: New file.
81923
81924 2006-01-12  Bruno Haible  <bruno@clisp.org>
81925
81926         * gnulib-tool (func_import, func_create_testdir): Don't go into an
81927         endless loop while replacing $auxdir with build-aux.
81928
81929 2006-01-11  Simon Josefsson  <jas@extundo.com>
81930
81931         * lib/stdint_.h (SIZE_MAX): Add missing (.
81932
81933 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
81934
81935         Sync from coreutils.
81936         * lib/md5.c: Fix commentary typos.
81937         (alignof, UNALIGNED_P): No need for a GCC-specific version.
81938         * lib/md5.h (__attribute__): Remove; unused.
81939         * lib/sha1.c: Fix commentary to match md5 better.
81940         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
81941         so that we don't need to worry about alignment.  All uses changed.
81942         This merges the 2005-10-28 md5 change into sha1.
81943
81944 2006-01-11  Jim Meyering  <jim@meyering.net>
81945
81946         Sync from coreutils.
81947         * lib/md5.c (OP): Fix spacing.
81948
81949 2006-01-11  Bruno Haible  <bruno@clisp.org>
81950
81951         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81952         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
81953         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
81954
81955 2006-01-11  Bruno Haible  <bruno@clisp.org>
81956
81957         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81958         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
81959         the "early" section as well.
81960
81961 2006-01-11  Bruno Haible  <bruno@clisp.org>
81962
81963         Avoid "ar: no archive members specified" error on MacOS X.
81964         * gnulib-tool (func_modules_add_dummy): New function.
81965         (func_import, func_create_testdir): Invoke it.
81966
81967 2006-01-11  Bruno Haible  <bruno@clisp.org>
81968
81969         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
81970         with $auxdir in AC_CONFIG_FILES statements.
81971
81972 2006-01-11  Bruno Haible  <bruno@clisp.org>
81973
81974         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81975         Initialize also noinst_HEADERS to empty.
81976
81977 2006-01-11  Bruno Haible  <bruno@clisp.org>
81978
81979         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
81980         variables.
81981         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
81982         autoreconf.
81983
81984 2006-01-11  Bruno Haible  <bruno@clisp.org>
81985
81986         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
81987         overridable by the user.
81988         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81989
81990 2006-01-10  Simon Josefsson  <jas@extundo.com>
81991
81992         * modules/sys_socket: New file.
81993
81994 2006-01-10  Simon Josefsson  <jas@extundo.com>
81995
81996         * m4/sys_socket_h.m4: New file.
81997
81998 2006-01-10  Simon Josefsson  <jas@extundo.com>
81999
82000         * lib/socket_.h: New file.
82001
82002 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82003
82004         * modules/readutmp (Maintainer): Add myself.
82005
82006 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82007
82008         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
82009         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
82010         People who are still concerned with buggy memcmp implementations
82011         can invoke gl_FUNC_MEMCMP themselves.
82012
82013 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82014
82015         * lib/regex_internal.h (BITSET_WORD_BITS):
82016         Work around a bug in 64-bit PGC (before version 6.1-2), where the
82017         preprocessor mishandles large unsigned values as if they were signed.
82018         Problem reported by Claudio Fontana in
82019         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
82020
82021 2006-01-10  Jim Meyering  <jim@meyering.net>
82022
82023         Avoid the double-free (first in fts_read, second in fts_close) that
82024         would occur when an `active' directory is made inaccessible (e.g.,
82025         via chmod a-x) during a traversal.
82026         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82027         before returning.  Reproduce this failure by
82028         mkdir -p a/b; cd a; chmod a-x . b
82029         Reported by Stavros Passas.
82030
82031         Sync from coreutils.
82032         * lib/sha1.c: Tweak grammar in a comment.
82033
82034 2006-01-10  Jim Meyering  <jim@meyering.net>
82035
82036         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
82037         Patch by Joerg Sonnenberger.
82038
82039 2006-01-10  Bruno Haible  <bruno@clisp.org>
82040
82041         * modules/readutmp: Depend on module free.
82042         * modules/strtok_r: Depend on module restrict.
82043
82044 2006-01-10  Bruno Haible  <bruno@clisp.org>
82045
82046         * modules/gettext (configure.ac): Add an invocation of
82047         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
82048
82049 2006-01-10  Bruno Haible  <bruno@clisp.org>
82050
82051         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
82052         Reported by Werner Lemberg <wl@gnu.org>.
82053
82054 2006-01-10  Bruno Haible  <bruno@clisp.org>
82055
82056         * lib/localcharset.c: Update from GNU gettext.
82057
82058 2006-01-10  Bruno Haible  <bruno@clisp.org>
82059
82060         * lib/argp.h (__const): Remove macro. Use const instead.
82061         * lib/argp-fmtstream.h (__const): Likewise.
82062         * lib/glob_.h (__const): Remove macro.
82063         * lib/glob-libc.h: Use const instead of __const.
82064
82065 2006-01-10  Bruno Haible  <bruno@clisp.org>
82066
82067         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
82068         variable.
82069         Needed to avoid an automake error regarding the 'gettext' module.
82070
82071 2006-01-09  Simon Josefsson  <jas@extundo.com>
82072
82073         * modules/inet_ntop (Depends-on): Add restrict.
82074
82075 2006-01-09  Simon Josefsson  <jas@extundo.com>
82076
82077         * modules/gc-rijndael-tests (License): Put under LGPL.
82078
82079         * modules/gc-des-tests (License): Likewise.
82080
82081         * modules/gc-arcfour-tests (License): Likewise.
82082
82083         * modules/gc-arctwo-tests (License): Likewise.
82084
82085         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
82086
82087         * modules/gc-hmac-sha1-tests (Files): Likewise.
82088
82089         * modules/gc-hmac-md5-tests (License): Likewise.
82090
82091         * modules/gc-sha1-tests (License): Likewise.
82092
82093         * modules/gc-md5-tests (License): Likewise.
82094
82095         * modules/gc-md4-tests (License): Likewise.
82096
82097         * modules/gc-md2-tests (License): Likewise.
82098
82099         * modules/gc-tests (License): Likewise.
82100
82101         * modules/des-tests (License): Likewise.
82102
82103         * modules/md4-tests (License): Likewise.
82104
82105         * modules/md2-tests (License): Likewise.
82106
82107 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82108
82109         Sync from coreutils:
82110
82111         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
82112         * modules/lib-ignore: New file.
82113         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
82114         chdir-safer.m4, lchmod.m4.
82115         * modules/openat: Add mkdirat.c, openat-priv.h.
82116
82117 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82118
82119         Sync from coreutils.
82120         * m4/lib-ignore.m4: New file.
82121         * m4/lchmod.m4: New file.
82122
82123 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82124
82125         Sync from coreutils.
82126         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
82127         for write access: POSIX says that must fail.
82128         * lib/fts.c (diropen): Likewise.
82129         * lib/save-cwd.c (save_cwd): Likewise.
82130         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
82131         well, for minor improvements on hosts that lack O_DIRECTORY.
82132         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
82133         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
82134         Fall back on chown if open failed with EACCES.
82135
82136         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
82137         Report an error at compile-time if only a 1-second nominal clock
82138         resolution is found.
82139
82140         * lib/lchmod.h: New file.
82141         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
82142         (make_dir_parents): Use lchown rather than chown, and
82143         lchmod rather than chmod.
82144
82145         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
82146         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
82147         "proc" reported by n0dalus.
82148
82149         * lib/mountlist.c: Include <limits.h>.
82150         (dev_from_mount_options)
82151         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
82152         New function.  It no longer assumes "dev=" has the System V meaning
82153         on Linux (since it doesn't).  It also parses "dev=" more carefully.
82154         (read_file_system_list)
82155         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
82156         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
82157         dev= in that case.
82158
82159         * lib/posixtm.h (PDS_PRE_2000): New macro.
82160         * lib/posixtm.c (year): Arg is now syntax_bits rather than
82161         allow_century.  All usages changed.  Reject dates outside the range
82162         1969-1999 if PDS_PRE_2000 is used.
82163
82164 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82165
82166         Sync from coreutils.
82167         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
82168         (Time of day items): Mention the possibility of leap seconds.
82169         Problem reported by Dr. David Alan Gilbert.
82170
82171 2006-01-09  Jim Meyering  <jim@meyering.net>
82172
82173         Sync from coreutils.
82174
82175         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
82176
82177         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
82178
82179         * lib/modechange.c (mode_compile): Reject an invalid mode string
82180         that starts with an octal digit.  From Andreas Gruenbacher.
82181
82182         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
82183         and dup to open_safer and dup_safer, respectively.
82184         (openat_permissive): Fix typo in comment.
82185
82186         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
82187         "gettext.h"; either no longer needed or are guaranteed by openat.h.
82188         (_): Remove; no longer needed.
82189         (openat): Renamed from rpl_openat; no need for rpl_openat
82190         since openat.h renames openat for us.
82191         Replace most of the body with a call to openat_permissive,
82192         to avoid duplicate code.
82193         Port to (probably hypothetical) environments were mode_t is
82194         wider than int.
82195         (openat_permissive): Require mode arg, so that we can check
82196         types better.  Put it just after flags.  Change cwd failure
82197         indicator from pointer-to-bool to pointer-to-errno-value.
82198         All callers changed.
82199         Invoke openat_save_fail and/or openat_restore_fail if
82200         cwd_errno is null, so that openat can call us.
82201         (openat_permissive, fdopendir, fstatat, unlinkat):
82202         Simplify errno handling to avoid some duplicate code,
82203         as it's OK to set errno on success.
82204         * lib/openat.h: Revamp code so that function macros depend on
82205         __OPENAT_PREFIX only, not also on AT_FDCWD.
82206         (openat_ro): Remove.  Caller changed to use openat_permissive.
82207         (openat_permissive): Now a macro, if not a function.
82208         (openat_restore_fail, openat_save_fail): Now always functions,
82209         since mkdirat needs them even if __OPENAT_PREFIX is defined.
82210
82211         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
82212         and openat.c.
82213         * lib/mkdirat.c: Include openat-priv.h.
82214         Remove definitions of macros defined therein.
82215         * lib/openat.c: Likewise.
82216
82217         * lib/mkdirat.c (mkdirat): New file and function.
82218         * lib/openat.h (mkdirat): Declare.
82219
82220         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
82221
82222         * lib/openat.h (openat_permissive): Declare.
82223         (openat_ro): Define.
82224
82225         * lib/openat.c (EXPECTED_ERRNO): New macro.
82226         (openat_permissive): New function -- used in remove.c rewrite.
82227         (all functions): Set errno just before returning, only if there
82228         was an actual failure.
82229         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
82230
82231         Emulate openat-family functions using Linux's procfs, if possible.
82232         Idea and some code based on Ulrich Drepper's glibc changes.
82233
82234         * lib/openat.c: (BUILD_PROC_NAME): New macro.
82235         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
82236         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
82237         before falling back on save_cwd and restore_cwd.
82238         (fdopendir, fstatat, unlinkat): Likewise.
82239
82240         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
82241         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
82242
82243         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
82244         as second argument to va_arg.  Otherwise, some versions of gcc
82245         warn that `if this code is reached, the program will abort'.
82246
82247 2006-01-09  Jim Meyering  <jim@meyering.net>
82248
82249         Sync from coreutils.
82250         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
82251         Require openat-priv.h.
82252
82253 2006-01-09  Bruno Haible  <bruno@clisp.org>
82254
82255         * modules/strnlen (Include): Use strnlen.h.
82256
82257 2006-01-09  Bruno Haible  <bruno@clisp.org>
82258
82259         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
82260
82261 2006-01-09  Bruno Haible  <bruno@clisp.org>
82262
82263         * lib/sysexit_.h (EX_OK): New macro.
82264         Suggested by Martin Lambers <marlam@marlam.de>.
82265
82266 2006-01-09  Bruno Haible  <bruno@clisp.org>
82267
82268         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
82269         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
82270
82271 2006-01-09  Bruno Haible  <bruno@clisp.org>
82272
82273         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
82274         numbers.
82275
82276 2006-01-09  Bruno Haible  <bruno@clisp.org>
82277
82278         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
82279         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
82280         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
82281         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
82282
82283 2006-01-09  Bruno Haible  <bruno@clisp.org>
82284
82285         * build-aux/javacomp.sh.in: New file, moved from lib/.
82286         * modules/javacomp-script (Files): Update.
82287         (configure.ac): Add AC_CONFIG_FILES invocation.
82288         (EXTRA_DIST): Remove variable.
82289
82290         * build-aux/javaexec.sh.in: New file, moved from lib/.
82291         * modules/javaexec (Files): Update.
82292         (configure.ac): Add AC_CONFIG_FILES invocation.
82293         (EXTRA_DIST): Remove javaexec.sh.in.
82294
82295         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
82296         * modules/csharpcomp-script (Files): Update.
82297         (configure.ac): Add AC_CONFIG_FILES invocation.
82298         (EXTRA_DIST): Remove variable.
82299
82300         * build-aux/csharpexec.sh.in: New file, moved from lib/.
82301         * modules/csharpexec (Files): Update.
82302         (configure.ac): Add AC_CONFIG_FILES invocation.
82303         (EXTRA_DIST): Remove csharpexec.sh.in.
82304
82305 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82306
82307         Sync from coreutils.
82308
82309         Add POSIX ACL support
82310         * lib/acl.h (copy_acl, set_acl): Add declarations.
82311         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
82312         systems other than Linux.
82313         (chmod_or_fchmod): New function: use fchmod when possible,
82314         and chmod otherwise.
82315         (file_has_acl): Add a POSIX ACL implementation, with a
82316         Linux-specific subcase.
82317         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
82318         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
82319         acls are unsupported.
82320         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
82321         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
82322         are unsupported.
82323
82324 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82325
82326         Sync from coreutils.
82327         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
82328
82329 2006-01-07  Bruno Haible  <bruno@clisp.org>
82330
82331         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
82332         gl_EARLY.
82333
82334 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82335
82336         * lib/strftime.c (tzname): Don't declare if it is already #defined.
82337         Problem reported for Mingw by Mark Junker.
82338
82339 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82340
82341         * README: Gnulib normally doesn't generate a tarball.
82342
82343 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
82344
82345         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
82346         long int, not int, for nanosecond counts, so that people who are
82347         used to POSIX struct timespec won't be surprised.  Reported by Jim
82348         Meyering.
82349
82350 2005-12-28  Bruno Haible  <bruno@clisp.org>
82351
82352         * build-aux/config.rpath: Update from GNU gettext.
82353
82354 2005-12-16  Jim Meyering  <jim@meyering.net>
82355
82356         * modules/fprintftime: New module.
82357         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
82358
82359 2005-12-16  Jim Meyering  <jim@meyering.net>
82360
82361         * m4/fprintftime.m4: New file.
82362
82363 2005-12-16  Jim Meyering  <jim@meyering.net>
82364
82365         * lib/fprintftime.c, lib/fprintftime.h: New files.
82366
82367 2005-12-15  Simon Josefsson  <jas@extundo.com>
82368
82369         * modules/socklen (configure.ac): Fix M4 macro name, to align with
82370         new m4/socklen.m4.
82371
82372 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82373
82374         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
82375         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
82376
82377 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82378
82379         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
82380         * lib/argp-help.c (fill_in_uparams): Check if the constructed
82381         struct uparams is valid. Fall back to the default values if it is
82382         not.
82383
82384 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82385
82386         * modules/argp (Files): Add argp-pin.c
82387         (Depends-on): dirname
82388         (lib_SOURCES): Add argp-pin.c
82389
82390 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82391
82392         * m4/argp.m4:  Check if program_invocation_name and
82393         program_invocation_short_name are declared and define appropriate
82394         macros if they are not.
82395
82396 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82397
82398         * lib/argp-help.c (__argp_base_name): New function
82399         (__argp_short_program_name): Rewrite using __argp_base_name
82400         * lib/argp-namefrob.h: Define program_invocation_name and
82401         program_invocation_short_name if requested
82402         (__argp_base_name): Add prototype
82403         * lib/argp-parse.c (argp_def): Use gettext wrappers
82404         (argp_default_parser): Use __argp_base_name
82405         * lib/argp-pin.c: New file. Defines program_invocation_name and
82406         program_invocation_short_name on systems that lack them.
82407
82408 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82409
82410         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
82411         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82412         porting problem reported by Georg Schwarz in
82413         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82414
82415 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82416
82417         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
82418         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82419         porting problem reported by Georg Schwarz in
82420         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82421
82422 2005-12-05  Bruno Haible  <bruno@clisp.org>
82423
82424         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
82425         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
82426         Reported by Mark Junker <mjscod@gmx.de>.
82427
82428 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
82429
82430         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
82431         Use implementation from Albert Chin, with some
82432         comments/corrections by Stepan Kasal and myself.
82433
82434 2005-12-02  Bruno Haible  <bruno@clisp.org>
82435
82436         * gnulib-tool (func_import): Accept GPLed build tool modules when
82437         --lgpl is given.
82438         * modules/csharpcomp-script: New file.
82439         * modules/csharpcomp: Depend on it.
82440         * modules/javacomp-script: New file.
82441         * modules/javacomp: Depend on it.
82442         Suggested by Simon Josefsson.
82443
82444 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
82445
82446         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
82447         statement, to work around an HP-UX 10.20 compiler bug reported by
82448         Peter O'Gorman.
82449
82450 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82451
82452         * modules/savedir (Depends-on): Add openat.
82453
82454 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82455
82456         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
82457         (uintmax_t) [defined uintmax_t]: Do not declare.
82458         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
82459         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
82460         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
82461         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
82462         sake of portability to weird hosts that C allows (though we don't
82463         know of any practical examples).
82464
82465         * lib/savedir.h (fdsavedir): New decl.
82466         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
82467         contains most of the former guts of savedir.
82468         (savedir): Use savedirstream.
82469         Include "openat.h".
82470
82471 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82472
82473         * modules/obstack (Files): Add m4/ulonglong.m4.
82474         Problem reported by Davide Angelocola.
82475
82476 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82477
82478         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
82479         coreutils no longer futzes with rounding modes.
82480
82481 2005-11-14  Jim Meyering  <jim@meyering.net>
82482
82483         * lib/mkstemp-safer.c: Include <config.h>, required for possible
82484         replacement of mkstemp.
82485
82486 2005-11-10  Simon Josefsson  <jas@extundo.com>
82487
82488         * lib/readline.c: Remove EOL.
82489
82490 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82491
82492         * modules/gethrxtime (Depends-on): Add gettime.
82493
82494 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82495
82496         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
82497         or gettimeofday; no longer needed.
82498
82499 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82500
82501         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
82502         time business.
82503         (gethrxtime) [! (HAVE_NANOUPTIME
82504         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
82505         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
82506         our own approximation.
82507
82508 2005-11-08  Eric Blake  <ebb9@byu.net>
82509
82510         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82511
82512 2005-11-08  Eric Blake  <ebb9@byu.net>
82513
82514         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82515
82516 2005-11-04  Bruno Haible  <bruno@clisp.org>
82517
82518         * gnulib-tool: Implement --update mode.
82519
82520 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82521
82522         Fix porting problem reported by Theodoros V. Kalamatianos.
82523         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
82524         Don't assume that futimes failing means we must fail.
82525
82526 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82527
82528         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
82529         variables to suggest the intended function of the PATH_MAX check.
82530
82531 2005-10-30  Kean Johnston  <jkj@sco.com>
82532
82533         Trivial changes to support SCO systems.
82534         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
82535         as PATH_MAX.
82536         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
82537         where __ptr is null when no I/O is pending.
82538
82539 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82540
82541         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
82542         leave errno alone.  Problem reported by Dmitry V. Levin.
82543
82544 2005-10-28  Simon Josefsson  <jas@extundo.com>
82545
82546         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
82547         Test more.
82548
82549         * tests/test-gc-md2.c, tests/test-md2.c: New files.
82550
82551         * modules/md2, modules/md2-tests: New files.
82552
82553 2005-10-28  Simon Josefsson  <jas@extundo.com>
82554
82555         * m4/inet_ntop.m4: More tests.
82556
82557         * m4/gc-md2.m4, md2.m4: New file.
82558
82559 2005-10-28  Simon Josefsson  <jas@extundo.com>
82560
82561         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
82562         "restrict" keywords, as per POSIX.  Protect the function
82563         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
82564         Don't use K&R prototypes.  Check the sprintf return values.
82565         Re-define EAFNOSUPPORT if not present.  Indent.
82566
82567         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
82568         suggested by Bruno Haible <bruno@clisp.org>.
82569
82570         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
82571
82572         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
82573
82574         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
82575         libgcrypt).
82576
82577         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
82578
82579         * lib/md2.h, lib/md2.c: New files.
82580
82581 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
82582
82583         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
82584         errno alone.  Problem reported by Frederic Jolliton.
82585
82586 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
82587
82588         * modules/verify (License): Change from GPL to LGPL.  This is a
82589         tiny module and there are apparently near-equivalents that are
82590         under the BSD license.
82591
82592 2005-10-24  Simon Josefsson  <jas@extundo.com>
82593
82594         * modules/sha1: Relicense to LGPL.
82595
82596 2005-10-24  Simon Josefsson  <jas@extundo.com>
82597
82598         * lib/md4.h: Shrink buffer size, now that we changed the type.
82599
82600 2005-10-23  Simon Josefsson  <jas@extundo.com>
82601
82602         * gnulib-tool (func_import): Fix --tests-base.
82603
82604 2005-10-22  Simon Josefsson  <jas@extundo.com>
82605
82606         * modules/arcfour (Depends-on): Need stdint.
82607
82608 2005-10-22  Simon Josefsson  <jas@extundo.com>
82609
82610         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
82611         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
82612
82613 2005-10-22  Simon Josefsson  <jas@extundo.com>
82614
82615         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
82616         suggested by Bruno Haible <bruno@clisp.org>.
82617
82618 2005-10-22  Simon Josefsson  <jas@extundo.com>
82619
82620         * lib/crc.h: Include stddef.h, for size_t.
82621
82622 2005-10-22  Simon Josefsson  <jas@extundo.com>
82623
82624         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
82625         arcfour_context struct (simplify test vector testing in GNU
82626         Shishi).
82627
82628 2005-10-21  Simon Josefsson  <jas@extundo.com>
82629
82630         * modules/des, modules/des-tests: New files.
82631
82632         * modules/gc-des, modules/gc-des-tests: New files.
82633
82634         * tests/test-des.c, tests/test-gc-des.c: New file.
82635
82636 2005-10-21  Simon Josefsson  <jas@extundo.com>
82637
82638         * modules/arctwo, modules/arctwo-tests: New files.
82639
82640         * tests/test-arctwo.c: New file.
82641
82642         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
82643
82644         * tests/test-gc-arctwo.c: New file.
82645
82646 2005-10-21  Simon Josefsson  <jas@extundo.com>
82647
82648         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
82649         Bruno Haible <bruno@clisp.org>.
82650
82651         * m4/gc-des.m4: New file.
82652
82653 2005-10-21  Simon Josefsson  <jas@extundo.com>
82654
82655         * m4/arctwo.m4: New file.
82656
82657         * m4/gc-arctwo.m4: New file.
82658
82659 2005-10-21  Simon Josefsson  <jas@extundo.com>
82660
82661         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
82662         block.
82663
82664 2005-10-21  Simon Josefsson  <jas@extundo.com>
82665
82666         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
82667         <bruno@clisp.org>.
82668
82669         * lib/hmac-sha1.c (hmac_sha1): Likewise.
82670
82671         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
82672         Bruno Haible <bruno@clisp.org>.
82673
82674         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
82675         <bruno@clisp.org>.
82676
82677 2005-10-21  Simon Josefsson  <jas@extundo.com>
82678
82679         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
82680
82681 2005-10-21  Simon Josefsson  <jas@extundo.com>
82682
82683         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
82684
82685 2005-10-21  Simon Josefsson  <jas@extundo.com>
82686
82687         * lib/des.h, lib/des.c: New files.
82688
82689         * lib/gc-gnulib.c: Support DES.c
82690
82691 2005-10-21  Simon Josefsson  <jas@extundo.com>
82692
82693         * lib/arctwo.h, lib/arctwo.c: New files.
82694
82695         * lib/gc-gnulib.c: Support ARCTWO.
82696
82697 2005-10-21  Simon Josefsson  <jas@extundo.com>
82698
82699         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
82700         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82701
82702 2005-10-21  Simon Josefsson  <jas@extundo.com>
82703
82704         * gnulib-tool (func_import, func_create_testdir): Define automake
82705         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
82706         Makefile.am snippet),
82707         suggested by Bruno Haible <bruno@clisp.org>.
82708
82709         * modules/gc (Makefile.am): Use it.
82710
82711 2005-10-21  Bruno Haible  <bruno@clisp.org>
82712
82713         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
82714         patch.
82715
82716 2005-10-19  Simon Josefsson  <jas@extundo.com>
82717
82718         * tests/test-gc-rijndael.c: New file.
82719
82720         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
82721
82722 2005-10-19  Simon Josefsson  <jas@extundo.com>
82723
82724         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
82725         interface too.
82726
82727 2005-10-19  Simon Josefsson  <jas@extundo.com>
82728
82729         * tests/test-gc-arcfour.c: New file.
82730
82731         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
82732
82733 2005-10-19  Simon Josefsson  <jas@extundo.com>
82734
82735         * modules/gc-md4, modules/gc-md4-tests: New file.
82736
82737         * tests/test-gc-md4.c: New file.
82738
82739 2005-10-19  Simon Josefsson  <jas@extundo.com>
82740
82741         * m4/gc-md4.m4: New file.
82742
82743 2005-10-19  Simon Josefsson  <jas@extundo.com>
82744
82745         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
82746         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
82747         <kasal@ucw.cz>.
82748
82749 2005-10-19  Simon Josefsson  <jas@extundo.com>
82750
82751         * m4/gc-arcfour.m4: New file.
82752
82753         * m4/gc-rijndael.m4: New file.
82754
82755 2005-10-19  Simon Josefsson  <jas@extundo.com>
82756
82757         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
82758
82759 2005-10-19  Simon Josefsson  <jas@extundo.com>
82760
82761         * lib/gc-gnulib.c: Support ARCFOUR.
82762
82763 2005-10-19  Simon Josefsson  <jas@extundo.com>
82764
82765         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
82766         support.
82767
82768         * lib/gc.h: Add ECB enum type.
82769
82770         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
82771
82772 2005-10-18  Simon Josefsson  <jas@extundo.com>
82773
82774         * tests/test-md5.c: New file.
82775
82776         * modules/md5-tests: New file.
82777
82778 2005-10-18  Simon Josefsson  <jas@extundo.com>
82779
82780         * tests/test-md4.c: New file.
82781
82782         * modules/md4, modules/md4-tests: New files.
82783
82784 2005-10-18  Simon Josefsson  <jas@extundo.com>
82785
82786         * m4/md4.m4: New file.
82787
82788 2005-10-18  Simon Josefsson  <jas@extundo.com>
82789
82790         * lib/md4.h, lib/md4.c: New files, based on md5.?.
82791
82792 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
82793
82794         * gnulib-tool (func_create_testdir): Omit the second check whether
82795         BUILT_SOURCES in nonempty.
82796
82797 2005-10-17  Simon Josefsson  <jas@extundo.com>
82798
82799         * tests/test-rijndael.c: New file.
82800
82801 2005-10-17  Simon Josefsson  <jas@extundo.com>
82802
82803         * modules/sha1: Depend on stdint instead of md5.
82804
82805         * modules/md5: Depend on stdint, remove uint32_t.
82806
82807 2005-10-17  Simon Josefsson  <jas@extundo.com>
82808
82809         * modules/gc-sha1-tests: New file.
82810
82811         * tests/test-gc-sha1.c: New file.
82812
82813 2005-10-17  Simon Josefsson  <jas@extundo.com>
82814
82815         * m4/md5.m4: Remove call to uint32_t.m4.
82816
82817 2005-10-17  Simon Josefsson  <jas@extundo.com>
82818
82819         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
82820
82821         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
82822         md5.h.
82823
82824         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
82825
82826         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
82827
82828 2005-10-17  Simon Josefsson  <jas@extundo.com>
82829
82830         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
82831
82832 2005-10-17  Simon Josefsson  <jas@extundo.com>
82833
82834         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
82835
82836 2005-10-17  Simon Josefsson  <jas@extundo.com>
82837
82838         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
82839
82840         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
82841
82842 2005-10-17  Bruno Haible  <bruno@clisp.org>
82843
82844         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
82845         that it can also be used in a test.
82846
82847 2005-10-16  Bruno Haible  <bruno@clisp.org>
82848
82849         * gnulib-tool (func_emit_tests_Makefile_am): Also define
82850         TESTS_ENVIRONMENT, so that individual tests can augment it.
82851
82852         * gnulib-tool (func_create_testdir): Use an intermediate target for
82853         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
82854         macros, like $(ALLOCA_H), which cannot be passed through the command
82855         line.
82856
82857 2005-10-15  Simon Josefsson  <jas@extundo.com>
82858
82859         * modules/rijndael-tests: New file.
82860
82861         * modules/rijndael: New file.
82862
82863 2005-10-15  Simon Josefsson  <jas@extundo.com>
82864
82865         * m4/rijndael.m4: New file.
82866
82867 2005-10-15  Simon Josefsson  <jas@extundo.com>
82868
82869         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
82870
82871         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
82872
82873 2005-10-14  Simon Josefsson  <jas@extundo.com>
82874
82875         * tests/test-arcfour.c: New file.
82876
82877         * modules/arcfour, modules/arcfour-tests: New files.
82878
82879 2005-10-14  Simon Josefsson  <jas@extundo.com>
82880
82881         * m4/arcfour.m4: New file.
82882
82883 2005-10-14  Simon Josefsson  <jas@extundo.com>
82884
82885         * lib/arcfour.h, lib/arcfour.c: New files.
82886
82887 2005-10-14  Roland McGrath  <roland@redhat.com>
82888
82889         Import from libc.  [BZ #1331]
82890         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
82891         macro argument.
82892         Reported by Matej Vela <vela@debian.org>.
82893
82894 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82895
82896         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
82897         include <wchar.h>; no longer needed.
82898
82899 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82900
82901         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
82902
82903 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
82904         and  Ulrich Drepper  <drepper@redhat.com>
82905
82906         Import from libc.
82907         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
82908         instead of inline stream orientation test and two separate
82909         function calls.  Pay no attention to USE_IN_LIBIO.
82910
82911 2005-10-13  Simon Josefsson  <jas@extundo.com>
82912
82913         * modules/gc-hmac-md5-tests: New file.
82914
82915         * tests/test-gc-hmac-sha1.c: New file.
82916
82917         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
82918
82919         * modules/gc-hmac-md5-tests: New file.
82920
82921         * tests/test-gc-md5.c: New file.
82922
82923         * modules/gc-md5-tests: New file.
82924
82925 2005-10-13  Simon Josefsson  <jas@extundo.com>
82926
82927         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
82928         Move memory allocation outside of loop.
82929
82930 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
82931
82932         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
82933         intermediate directory is in a read-only file system.  Problem
82934         reported by Eric Blake.
82935
82936 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
82937
82938         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
82939
82940 2005-10-12  Simon Josefsson  <jas@extundo.com>
82941
82942         * tests/test-hmac-sha1.c: New file.
82943
82944         * modules/hmac-sha1-tests: New file.
82945
82946         * modules/hmac-sha1: New file.
82947
82948 2005-10-12  Simon Josefsson  <jas@extundo.com>
82949
82950         * modules/gc-sha1: New file.
82951
82952 2005-10-12  Simon Josefsson  <jas@extundo.com>
82953
82954         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
82955
82956         * tests/test-gc-pbkdf2-sha1.c: New file.
82957
82958 2005-10-12  Simon Josefsson  <jas@extundo.com>
82959
82960         * modules/gc-md5, modules/gc-hmac-md5: New files.
82961
82962         * modules/gc (Files): Remove md5, memxor and hmac files.
82963
82964 2005-10-12  Simon Josefsson  <jas@extundo.com>
82965
82966         * m4/gc-pbkdf2-sha1.m4: New file.
82967
82968         * m4/gc-hmac-sha1.m4: New file.
82969
82970         * m4/gc-sha1: New file.
82971
82972         * m4/hmac-sha1.m4: New file.
82973
82974 2005-10-12  Simon Josefsson  <jas@extundo.com>
82975
82976         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
82977
82978         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
82979
82980 2005-10-12  Simon Josefsson  <jas@extundo.com>
82981
82982         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
82983         suggested by Bruno Haible <bruno@clisp.org>.
82984
82985 2005-10-12  Simon Josefsson  <jas@extundo.com>
82986
82987         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
82988
82989 2005-10-12  Simon Josefsson  <jas@extundo.com>
82990
82991         * lib/gc-pbkdf2-sha1.c: New file.
82992
82993         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
82994
82995 2005-10-12  Simon Josefsson  <jas@extundo.com>
82996
82997         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
82998
82999         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
83000
83001 2005-10-12  Simon Josefsson  <jas@extundo.com>
83002
83003         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
83004         GC_USE_HMAC_MD5, respectively.
83005
83006         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
83007         (gc_md5): Fix typo.
83008
83009         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
83010
83011         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
83012
83013         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
83014
83015 2005-10-12  Bruno Haible  <bruno@clisp.org>
83016
83017         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
83018         Reported by Stepan Kasal <kasal@ucw.cz>.
83019
83020 2005-10-11  Simon Josefsson  <jas@extundo.com>
83021
83022         * tests/test-crc.c: New file.
83023
83024         * modules/crc, modules/crc-tests: New files.
83025
83026 2005-10-11  Simon Josefsson  <jas@extundo.com>
83027
83028         * m4/crc.m4: New file.
83029
83030 2005-10-11  Simon Josefsson  <jas@extundo.com>
83031
83032         * lib/gc.h: Add gc_hash and gc_hash_buffer.
83033
83034         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
83035
83036         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
83037
83038 2005-10-11  Simon Josefsson  <jas@extundo.com>
83039
83040         * lib/crc.h, lib/crc.c: New files.
83041
83042         * lib/gc.h (gc_hash_buffer): Add doc.
83043
83044 2005-10-11  Bruno Haible  <bruno@clisp.org>
83045
83046         * modules/c-strcasestr: New file.
83047         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
83048
83049 2005-10-11  Bruno Haible  <bruno@clisp.org>
83050
83051         * modules/c-strcase: New file.
83052         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
83053
83054 2005-10-11  Bruno Haible  <bruno@clisp.org>
83055
83056         * lib/strcasecmp.c: Include limits.h.
83057         (strcasecmp): Avoid integer overflow on exotic platforms.
83058         * lib/strncasecmp.c: Include limits.h.
83059         (strncasecmp): Avoid integer overflow on exotic platforms.
83060         Reported by Paul Eggert.
83061
83062 2005-10-11  Bruno Haible  <bruno@clisp.org>
83063
83064         * lib/c-strcasestr.h: New file, from GNU gettext.
83065         * lib/c-strcasestr.c: New file, from GNU gettext.
83066
83067 2005-10-11  Bruno Haible  <bruno@clisp.org>
83068
83069         * lib/c-strcase.h: New file, from GNU gettext.
83070         * lib/c-strcasecmp.c: New file, from GNU gettext.
83071         * lib/c-strncasecmp.c: New file, from GNU gettext.
83072
83073 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83074
83075         * modules/mempcpy (License): GPL -> LGPL.
83076         * modules/strchrnul (License): Likewise.
83077         * modules/sysexits (License): Likewise.
83078
83079 2005-10-08  Simon Josefsson  <jas@extundo.com>
83080
83081         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
83082
83083 2005-10-07  Simon Josefsson  <jas@extundo.com>
83084
83085         * m4/memxor.m4: Remove gl_C_RESTRICT call.
83086
83087 2005-10-06  Simon Josefsson  <jas@extundo.com>
83088
83089         * tests/test-hmac-md5.c: New file.
83090
83091         * modules/hmac-md5-tests: New file.
83092
83093         * modules/hmac-md5: New file.
83094
83095 2005-10-06  Simon Josefsson  <jas@extundo.com>
83096
83097         * m4/hmac-md5.m4: New file.
83098
83099         * m4/memxor.m4: Require gl_C_RESTRICT.
83100
83101 2005-10-06  Simon Josefsson  <jas@extundo.com>
83102
83103         * lib/memxor.c (memxor): Avoid casts and warnings.
83104
83105 2005-10-06  Simon Josefsson  <jas@extundo.com>
83106
83107         * lib/hmac-md5.c: New file.
83108
83109         * lib/hmac.h: New file.
83110
83111 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83112
83113         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
83114         promotes to int, not unsigned int, to catch the AIX 5.3
83115         compiler bug.
83116
83117 2005-10-05  Simon Josefsson  <jas@extundo.com>
83118
83119         * modules/memxor: New file.
83120
83121         * modules/iconv (Files): Move config.rpath to havelib, it is used
83122         there.
83123
83124         * modules/havelib (Files): Add config.rpath.
83125
83126 2005-10-05  Simon Josefsson  <jas@extundo.com>
83127
83128         * m4/memxor.m4: New file.
83129
83130 2005-10-05  Simon Josefsson  <jas@extundo.com>
83131
83132         * lib/memxor.c (memxor): Fix compiler error.
83133
83134         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
83135         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
83136
83137         * lib/memxor.h, lib/memxor.c: New files.
83138
83139         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
83140         we assume all systems have it, suggested by Jim Meyering
83141         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
83142         any systems lack sys/socket.h; mingw32 is known to lack it, but we
83143         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
83144         same reasons.
83145
83146 2005-10-05  Simon Josefsson  <jas@extundo.com>
83147
83148         * config/srclist.txt: Add glibc bug 1423 for md5.h.
83149
83150 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
83151
83152         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
83153         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
83154         needed, since the source code now assumes these .h files.
83155
83156 2005-10-05  Derek Price  <derek@ximbiot.com>
83157
83158         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
83159
83160 2005-10-05  Bruno Haible  <bruno@clisp.org>
83161
83162         * modules/stdint (License): Change to LGPL.
83163
83164 2005-10-04  Simon Josefsson  <jas@extundo.com>
83165
83166         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
83167         D. Baushke" <mdb@gnu.org>.
83168
83169 2005-10-04  Bruno Haible  <bruno@clisp.org>
83170
83171         * lib/verify.h (verify_true): Provide alternative definition for C++.
83172
83173 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
83174
83175         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
83176         (SSIZE_MAX): New macro, if not already defined.
83177         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
83178         than 2 GiB.
83179
83180 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83181
83182         Sync from coreutils.
83183         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
83184         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
83185         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
83186         ULLONG_MAX doesn't work with 2.7.2.1.
83187
83188 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83189
83190         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
83191         From Ben Pfaff.
83192
83193         * modules/exclude (Depends-on): Depend on verify.
83194         * modules/strtoimax (Depends-on): Likewise.
83195         * modules/utimecmp (Depends-on): Likewise.
83196
83197 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83198
83199         * lib/exclude.c: Include verify.h.
83200         (verify): Remove.  All callers changed to use verify.h's version.
83201         * lib/strtoimax.c: Likewise.
83202         * lib/utimecmp.c: Likewis.e
83203
83204         Sync from coreutils.
83205         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
83206         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
83207         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
83208         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
83209         bother returning ENOSYS if settimeofday or stime fails; just let
83210         them return whatever errno they want to return.
83211         * lib/utimens.c: Include unistd.h, for dup2.
83212         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
83213         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
83214
83215 2005-10-02  Jim Meyering  <jim@meyering.net>
83216
83217         Sync from coreutils.
83218         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
83219         from glibc-2.2.5 that fails for read-only files.
83220
83221 2005-10-02  Jim Meyering  <jim@meyering.net>
83222
83223         Sync from coreutils.
83224         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
83225         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
83226         `#if HAVE_CONFIG_H'.
83227         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
83228         Remove AT_FDCWD test.
83229         Do not consume the fd unless successful.
83230         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
83231         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
83232         block, so that we don't even try to compile it if settimeofday is
83233         available.  This works around a compilation failure on OSF1 V5.1,
83234         due to stime requiring a `long int*' while tv_sec is `int'.
83235
83236 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
83237
83238         Sync from coreutils.
83239         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
83240         against `yes', rather than just testing for nonempty.
83241
83242 2005-10-01  Simon Josefsson  <jas@extundo.com>
83243
83244         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
83245         and Darwin.
83246
83247         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
83248         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
83249         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
83250         freeaddrinfo and gai_strerror are declared by the POSIX headers.
83251         Check if struct addrinfo is declared.
83252
83253 2005-10-01  Simon Josefsson  <jas@extundo.com>
83254
83255         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
83256         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
83257         AI_* and EAI_* definitions.  Protect function declarations.
83258
83259 2005-10-01  Jim Meyering  <jim@meyering.net>
83260
83261         Sync from coreutils.
83262
83263         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
83264         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
83265         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
83266         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83267         in the inet and nsl libraries.  Required on Solaris 5.7.
83268
83269 2005-10-01  Jim Meyering  <jim@meyering.net>
83270
83271         Sync from coreutils.
83272         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83273         in the inet and nsl libraries.  Required on Solaris 5.7.
83274
83275 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
83276
83277         * lib/getdelim.c (getdelim): Remove unused variables.
83278
83279 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
83280
83281         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
83282         so that the code works even with ancient cpp.  Portability problem
83283         with GCC 2.7.2.1 reported by Thomas M.Ott.
83284
83285 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
83286
83287         * modules/regex (Depends-on): Add strcase.
83288
83289         * modules/gethostname (Licence): Change from GPL to LGPL, since
83290         gethostname.c is a trivial implementation of a standard library
83291         function.
83292         * modules/poll (License): Change from GPL to LGPL, since it's
83293         derived from LGPL code.
83294
83295 2005-09-27  Jim Meyering  <jim@meyering.net>
83296
83297         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
83298         HAVE_CONFIG_H.
83299
83300         * lib/intprops.h (signed_type_or_expr__): Define.
83301         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
83302         for unsigned types.
83303
83304 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
83305
83306         * lib/verify.h (verify_expr): Remove, replacing with:
83307         (verify_true): New macro that returns true instead of void.
83308         (verify_type__): Remove.
83309         (verify): Use verify_true rather than verify_type__.
83310
83311 2005-09-26  Bruno Haible  <bruno@clisp.org>
83312
83313         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
83314         is necessary.
83315         (lib_SOURCES): Remove mbchar.c.
83316         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
83317         (Files): Add m4/mbrtowc.m4.
83318         * modules/mbiter: Likewise.
83319         * modules/mbuiter: Likewise.
83320
83321 2005-09-26  Bruno Haible  <bruno@clisp.org>
83322
83323         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
83324         compile mbchar.c if they are not both present.
83325         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
83326         * m4/mbiter.m4 (gl_MBITER): Likewise.
83327         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
83328         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
83329         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
83330
83331 2005-09-25  Jim Meyering  <jim@meyering.net>
83332
83333         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
83334         also uses socklen_t.
83335
83336 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
83337
83338         * lib/utimens.c (ENOSYS): Define if not already defined.
83339         (futimens): Support having a null PATH if the file descriptor
83340         is nonnegative.
83341
83342         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
83343         Remove.
83344         (__attribute): Define to empty unless GCC 3.1 or later.
83345         This works around a core dump on OpenBSD 3.4, which has GCC
83346         2.95.3, which dumps core when given __attribute__(()).  It also
83347         simplifies other tests, since we really don't want to bother with
83348         worrying about which ancient version of GCC supported what.
83349         Original problem reported by Yoann Vandoorselaere, with part of
83350         the fix suggested by Derek Price.
83351
83352 2005-09-24  Jim Meyering  <jim@meyering.net>
83353
83354         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
83355         so we can once again use a positive bitfield width of 1 -- now we
83356         don't have to explain why we were using a bitfield width of 2.
83357
83358 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83359
83360         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
83361         and similarly for the other external symbols.  Problem reported
83362         by James Gallager.
83363
83364         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
83365         bug reported by Jim Meyering.
83366
83367         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
83368         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
83369         not needed, since socklen is a prerequisite module.
83370
83371 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83372
83373         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
83374         Problem reported by Eric Blake.
83375         (getaddrinfo): Initialize se so that it's not garbage.
83376         Redo internal storage allocation so that it doesn't make unportable
83377         assumptions about alignment.
83378         Fix a memory leak.
83379
83380         * lib/utimens.c (futimens): Use futimesat if available.
83381         Prefer it to futimes since it doesn't have the futimes bug.
83382
83383         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
83384         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
83385         Instead, declare a function that returns a pointer to an array,
83386         and use verify_type__ to declare the size of the array.
83387         Problem and germ of a solution reported by Bruno Haible.
83388         (verify_type__): Use 2, not 1, for bitfield size, to avoid
83389         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
83390
83391 2005-09-23  Jim Meyering  <jim@meyering.net>
83392
83393         Sync from coreutils.
83394         Correct build failure (socklen_t not defined) on at least
83395         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
83396         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
83397
83398 2005-09-23  Jim Meyering  <jim@meyering.net>
83399
83400         * modules/getaddrinfo (Depends-on): Add socklen.
83401
83402 2005-09-23  Bruno Haible  <bruno@clisp.org>
83403
83404         * tests/test-verify.c: New file.
83405
83406 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83407
83408         Sync from coreutils.
83409
83410         * modules/argmatch (Depends-on): Add verify.
83411         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
83412         unistd-safer.
83413         * modules/save-cwd (Depends-on): Likewise.
83414
83415         * modules/openat (Files): Add lib/openat-die.c.
83416         (Depends-on): Remove error, exitfail.
83417         Add dirname.
83418
83419         * modules/verify: New file.
83420         * MODULES.html.sh (Diagnostics <assert.h>): New section,
83421         with "verify" module.
83422
83423 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83424
83425         Sync from coreutils.
83426
83427         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
83428         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
83429         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
83430         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
83431         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
83432         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
83433         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
83434         Don't bother checking for string.h, stdlib.h, unistd.h.
83435         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
83436         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
83437         module's job.
83438         * m4/jm-macros.m4 (gl_MACROS): Likewise.
83439         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
83440
83441         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
83442         (gl_GETDATE): Use it.
83443
83444         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
83445
83446 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83447
83448         Sync from coreutils.
83449
83450         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
83451         stat-time.h.
83452         * lib/argmatch.h: Include verify.h
83453         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
83454         (ARGMATCH_ASSERT): Remove; unused.
83455         * lib/canonicalize.c: Assume STDC_HEADERS.
83456         * lib/exclude.c: Include "strcase.h".
83457         * lib/regex_internal.h [!defined _LIBC]: Likewise.
83458         * lib/getusershell.c: Include stdio--.h rather than stdio.h
83459         and stdio-safer.h.
83460         (getusershell): Call fopen, not fopen_safer.
83461         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
83462         Do not include unistd-safer.h.
83463         (save_cwd): Don't call fd_safer; no longer needed
83464         now that we include fcntl--.h.
83465
83466         * lib/getdate.y (relative_time): New type.
83467         (RELATIVE_TIME_0): New constant.
83468         (parser_control): Use relative_time instead of doing it ourselves.
83469         (%union): Add new relative_time rel member.
83470         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
83471         Now typeless.
83472         (relunit, relunit_snumber): Now of type rel.
83473         (zone, rel, relunit, get_date): Adjust to above changes.
83474
83475         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
83476         Do not include unistd-safer.h.
83477         (getloadavg): Don't call fd_safer; no longer needed
83478         now that we include fcntl--.h.
83479
83480         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
83481         (make_dir_parents): Treat ENOSYS like EEXIST.
83482
83483         Improve quality of diagnostics on restore_cwd failure.
83484         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
83485         (make_dir_parents): Last arg is now int * (for errno), not bool *.
83486         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
83487         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
83488         each time through the loop.  Do not diagnose restore_cwd failure;
83489         that is the caller's job (and perhaps the caller does not care).
83490
83491         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
83492         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
83493         If the file already exists but is not a directory, don't bother
83494         to try to make its parents.
83495         Close potential file descriptor leak if we can't chdir("/") (!).
83496         Don't always return true if chdir($PWD) fails; return true only
83497         if the requested action was done successfully (except for the
83498         chdir($PWD)).
83499         Don't log final directory unless we actually made it.
83500         Refactor to avoid duplicate code to fix up permissions.
83501         Don't attempt to fix up parent permissions if chdir($PWD) fails.
83502
83503         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
83504         to make it a bit faster and (I hope) clearer.
83505         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
83506         Fix bug in formats like %2N.
83507
83508         * lib/verify.h: New file.
83509
83510 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83511
83512         Sync from coreutils.
83513         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
83514
83515 2005-09-22  Jim Meyering  <jim@meyering.net>
83516
83517         Sync from coreutils.
83518
83519         * m4/lstat.m4 (gl_FUNC_LSTAT):
83520         Use AC_LIBSOURCES to require lstat.c and lstat.h.
83521         Remove obsolete comment.
83522         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
83523         * m4/xstrtod.m4: Likewise.
83524
83525         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
83526
83527 2005-09-22  Jim Meyering  <jim@meyering.net>
83528
83529         Sync from coreutils.
83530
83531         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
83532
83533         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
83534         the .tm_year member, since otherwise gcc-4.0 would now warn about
83535         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
83536
83537         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
83538         order to avoid an unsuppressible warning from gcc on 64-bit systems.
83539
83540         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
83541         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
83542         when run in a time zone for which daylight savings time is in effect
83543         for the starting date.
83544
83545         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
83546         stop us from restricting permissions of just-created absolute-named
83547         directories.
83548         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
83549         to restore initial working directory.
83550         * lib/mkdir-p.c (make_dir_parents): New parameter:
83551         different_working_dir, to tell caller if/when we change the working
83552         directory and are unable to return to the initial one.
83553         * lib/mkdir-p.h (make_dir_parents): Update prototype.
83554         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
83555         `return false'.  This fixes a bug introduced on 2004-07-30.
83556
83557         * lib/openat.c (fdopendir): Be sure to close the supplied
83558         file descriptor before returning.  This makes our replacement
83559         implementation a little closer to Solaris's, where fdopendir
83560         ties the file descriptor to the returned DIR* pointer.
83561         * lib/openat.c (unlinkat): New function.
83562         * lib/openat.h (unlinkat): Add prototype.
83563         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
83564         (openat_restore_fail): Rename from openat_restore_die.
83565         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
83566
83567         Provide an alternative to exiting immediately upon save_cwd or
83568         restore_cwd failure.  Now, an application can arrange e.g.,
83569         to perform a longjump in that case.
83570         * lib/openat.c: Include dirname.h.
83571         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
83572         (rpl_openat, fdopendir, fstatat): Call openat_save_die
83573         and openat_restore_die rather than calling error directly.
83574         Don't include "error.h" or "exitfail.h"; they're no longer needed.
83575
83576         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
83577         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
83578         define.
83579
83580         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
83581         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
83582                             int utc, int nanoseconds);
83583         Background:
83584         date should not have to allocate a megabyte of virtual memory to
83585         handle a format argument like +%1048575T.  When implemented with
83586         strftime, it must allocate such a buffer, use strftime to fill it
83587         in, print it, then free it.
83588         With fprintftime, it simply prints everything and exits.
83589         With no need for memory allocation, that's one fewer way to fail.
83590         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
83591         optional field width, not before, so we accept %9:z, not %:9z.
83592         (my_strftime): Be sure to use L_('x') for literals.
83593
83594         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
83595         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
83596         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
83597         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
83598         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
83599         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
83600         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
83601         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
83602         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
83603         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
83604         * lib/xgethostname.c, lib/xreadlink.c:
83605         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
83606
83607         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
83608         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
83609         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
83610         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83611         and don't include <sys/file.h>).
83612
83613 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
83614
83615         Sync from coreutils.
83616
83617         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
83618         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
83619         [!LDAV_DONE]: Avoid unused variable warning.
83620
83621 2005-09-21  Bruno Haible  <bruno@clisp.org>
83622
83623         * lib/unicodeio.h (unicode_to_mb): New declaration.
83624
83625 2005-09-20  Derek Price  <derek@ximbiot.com>
83626
83627         * lib/getaddrinfo.c: Don't include <netdb.h> included from
83628         getaddrinfo.h.
83629
83630 2005-09-20  Bruno Haible  <bruno@clisp.org>
83631
83632         * gnulib-tool: Remove trailing slashes from the values specified for
83633         --source-base, --m4-base, --tests-base, --aux-dir.
83634         Suggested by Simon Josefsson <jas@extundo.com>.
83635
83636 2005-09-20  Bruno Haible  <bruno@clisp.org>
83637
83638         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
83639         func_modules_to_filelist, func_import, func_create_testdir): Make all
83640         sorting results locale-independent, so that gnulib-cache.m4 doesn't
83641         change when gnulib-tool is invoked in a different locale.
83642
83643 2005-09-19  Simon Josefsson  <jas@extundo.com>
83644
83645         * m4/socklen.m4: Fix typo.
83646
83647 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83648
83649         Use a consistent style for including <config.h>.
83650         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
83651         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
83652         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
83653         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
83654         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
83655         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
83656         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
83657         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
83658         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
83659         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
83660         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
83661         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
83662         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
83663         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
83664         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
83665         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
83666         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
83667         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
83668         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
83669         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
83670         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
83671         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
83672         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
83673         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
83674         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
83675         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
83676         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
83677         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
83678         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
83679         lib/xstrtoumax.c, lib/yesno.c:
83680         Standardize inclusion of config.h.
83681         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
83682         lib/inttostr.h:  Removed inclusion of config.h from header files.
83683         * lib/inttostr.c:  Adjusted in-tree users.
83684         * lib/timespec.h: Remove superfluous warning to include config.h.
83685         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
83686         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
83687         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
83688         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
83689         config.h with HAVE_CONFIG_H.
83690
83691 2005-09-19  Jim Meyering  <jim@meyering.net>
83692
83693         * modules/pathmax (License): Change to LGPL.
83694
83695 2005-09-19  Derek Price  <derek@ximbiot.com>
83696
83697         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
83698
83699 2005-09-19  Bruno Haible  <bruno@clisp.org>
83700
83701         * gnulib-tool (import): Provide default for --tests-base.
83702
83703 2005-09-19  Bruno Haible  <bruno@clisp.org>
83704
83705         * doc/quote.texi: New file, extracted from gnulib.texi.
83706         * doc/ctime.texi: New file, extracted from gnulib.texi.
83707         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
83708         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
83709         * doc/gnulib.texi: Include them.
83710
83711 2005-09-18  Bruno Haible  <bruno@clisp.org>
83712
83713         Portability fix.
83714         * gnulib-tool (func_readlink): New function.
83715         (func_ln_if_changed): Use it.
83716
83717 2005-09-18  Bruno Haible  <bruno@clisp.org>
83718
83719         * gnulib-tool: Support --with-tests also with --import.
83720         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
83721         (func_import): Use variables $testsbase and $inctests. Emit a
83722         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
83723         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
83724         SUBDIRS += $testsdir.
83725         (func_create_testdir): Update.
83726
83727 2005-09-18  Bruno Haible  <bruno@clisp.org>
83728
83729         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
83730         instead of $dry_run.
83731         (func_cp_if_changed, func_mv_if_changed): Remove functions.
83732         (func_ln_if_changed): Don't handle dry-run here.
83733         (func_import): In dry-run mode, detect more precisely which actions
83734         would be performed, and don't use "...ing" verbs.
83735
83736 2005-09-18  Bruno Haible  <bruno@clisp.org>
83737
83738         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
83739         (func_import): Use join on two temporary files instead of three nested
83740         loops, in order to determine which files are new or old.
83741
83742 2005-09-18  Bruno Haible  <bruno@clisp.org>
83743
83744         * gnulib-tool (func_import): Comment out code that spits out the
83745         new files with --dry-run.
83746
83747 2005-09-18  Bruno Haible  <bruno@clisp.org>
83748
83749         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
83750
83751 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83752
83753         * lib/stat-time.h: New file.
83754         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
83755         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
83756         in a different way.
83757         (timespec_cmp): New function.
83758         * lib/utimecmp.c: Include stat-time.h.
83759         (SYSCALL_RESOLUTION): Depend on whether various struct stat
83760         members exist, not on the obsolescent ST_MTIM_NSEC.
83761         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
83762
83763 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83764
83765         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
83766
83767 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83768
83769         * MODULES.html.sh (File system functions): Add stat-time.
83770         * modules/stat-time: New file.
83771         * modules/timespec (Files): Remove m4/st_mtim.m4; this
83772         is now done in a different way, by the stat-time module.
83773         * modules/utimecmp (Depends-on): Add stat-time.
83774
83775 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
83776
83777         * m4/st_mtim.m4: Remove.  Superseded by...
83778         * m4/stat-time.m4: New file.
83779         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
83780         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
83781
83782 2005-09-15  Derek Price  <derek@ximbiot.com>
83783
83784         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
83785
83786 2005-09-15  Derek Price  <derek@ximbiot.com>
83787
83788         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
83789         * lib/regex_internal.c: Ditto, using this...
83790         (__GNUC_PREREQ): ...new macro.
83791         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
83792         using...
83793         (__GNUC_PREREQ): ...this new macro.
83794
83795         * lib/strstr.h: Include string.h. Define strstr as a macro here.
83796
83797 2005-09-15  Derek Price  <derek@ximbiot.com>
83798             Paul Eggert  <eggert@cs.ucla.edu>
83799
83800         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
83801         changes, consolidating in...
83802         * lib/regex_internal.h: ...this file.
83803
83804 2005-09-13  Jim Meyering  <jim@meyering.net>
83805
83806         * lib/canon-host.c: Filter through gnu indent and reword comments
83807         slightly.
83808         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
83809
83810 2005-09-13  Derek Price  <derek@ximbiot.com>
83811
83812         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
83813         failure.
83814         Reported by Jim Meyering  <jim@meyering.net>.
83815
83816 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83817
83818         * lib/base64.c: Typo.
83819         (base64_encode): Put b64str in initialized data section.
83820
83821 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
83822
83823         Merge glibc and coreutils changes into gnulib, plus a few
83824         extra fixes.
83825         * lib/md5.c: Use #error rather than a string.
83826         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
83827         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
83828         (__attribute__): Define to empty for non recent-GCC.
83829         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
83830         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
83831         Renamed from their non-__ counterparts, with new macros replacing
83832         them if not _LIBC.  Add __THROW attribute.
83833         (rol): Remove.
83834         (struct md5_ctx): Align buffer if using GCC.
83835         * lib/sha1.h (struct sha1_ctx): Likewise.
83836         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
83837         The old name was backwards.
83838         (NOTSWAP): Remove; not used.
83839         (rol): New macro, moved here from md5.h.
83840         (sha1_process_block): Remove a FIXME that doesn't make sense.
83841
83842 2005-09-12  Derek Price  <derek@ximbiot.com>
83843
83844         Return usable errors from canon-host.
83845         * lib/canon-host.h: New file.
83846         * lib/canon-host.c (canon_host): Wrap...
83847         (canon_host_r): ...this new function, which now relies exclusively on
83848         getaddrinfo.
83849         (ch_strerror): New function.
83850         (last_cherror): New global.
83851         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
83852         interface.
83853         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
83854         void *.
83855         (freeaddrinfo): Free ai->ai_canonname when set.
83856
83857 2005-09-12  Derek Price  <derek@ximbiot.com>
83858
83859         Make canon-host require getaddrinfo.
83860         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
83861         AC_LIBSOURCE canon-host.h.  Call...
83862         (gl_PREREQ_CANON_HOST): ...this new function, which requires
83863         gl_GETADDRINFO.
83864         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
83865
83866 2005-09-12  Derek Price  <derek@ximbiot.com>
83867
83868         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
83869         LGPL.
83870         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
83871
83872 2005-09-12  Derek Price  <derek@ximbiot.com>
83873
83874         * lib/gai_strerror.c: Include config.h when available.  Include
83875         getaddrinfo.h before other headers to test interface.
83876         Reported by Larry Jones <lawrence.jones@ugs.com>.
83877
83878 2005-09-12  Derek Price  <derek@ximbiot.com>
83879             Paul Eggert  <eggert@cs.ucla.edu>
83880
83881         * modules/glob (Files): Add glob-libc.h.
83882
83883 2005-09-12  Derek Price  <derek@ximbiot.com>
83884             Paul Eggert  <eggert@cs.ucla.edu>
83885
83886         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
83887         glob_.h, glob-libc.h.
83888         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
83889
83890 2005-09-12  Derek Price  <derek@ximbiot.com>
83891             Paul Eggert  <eggert@cs.ucla.edu>
83892
83893         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
83894         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
83895         protecting things that should be done only in gnulib contexts.
83896         * lib/glob_.h: New file, containing only the glob things needed for
83897         gnulib.
83898         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
83899         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
83900         (glob, globfree, glob_pattern_p): Now defined simply in terms of
83901         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
83902         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
83903         and to respect the namespace rules better.
83904
83905 2005-09-08  Simon Josefsson  <jas@extundo.com>
83906
83907         * modules/socklen: New file.
83908
83909 2005-09-08  Simon Josefsson  <jas@extundo.com>
83910
83911         * m4/socklen.m4: New file.
83912
83913 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83914
83915         * modules/utimens (Files): Add m4/utimbuf.m4, since
83916         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
83917         Reported by Sergey Poznyakoff.
83918
83919 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83920
83921         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
83922         definitions, since that's the preferred style in glibc.
83923         Fix a minor spacing issue, and update copyright notice to match
83924         glibc's.
83925
83926 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83927
83928         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
83929
83930 2005-09-06  Simon Josefsson  <jas@extundo.com>
83931
83932         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
83933         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
83934
83935 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83936
83937         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
83938         warning.
83939
83940 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83941
83942         * config/srclist.txt: Add glibc bug 1302.
83943
83944 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
83945
83946         Change bitset word type from unsigned int to unsigned long int,
83947         as this has better performance on typical 64-bit hosts.
83948         Port bitset code to hosts with unusual word sizes.
83949         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
83950         (build_collating_symbol):
83951         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
83952         argument is a bitset.  This is merely a style issue, but it makes
83953         it clearer that an entire array is expected.
83954         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
83955         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
83956         Port to the case where bitset_word is not the same as unsigned int.
83957         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83958         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
83959         Likewise.
83960         * lib/regexec.c (check_dst_limits_calc_pos_1,
83961         check_subexp_matching_top):
83962         (build_trtable, group_nodes_into_DFAstates):
83963         Likewise.
83964         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
83965         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
83966         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
83967         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
83968         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
83969         * lib/regcomp.c (optimize_subexps, lower_subexp):
83970         Work even if bitset_word has holes in its bitwise representation.
83971         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
83972         * lib/regexec.c (check_dst_limits_calc_pos_1,
83973         check_subexp_matching_top):
83974         Likewise.
83975         * lib/regex_internal.c (re_string_reconstruct):
83976         Don't assume UCHAR_MAX == 255.
83977         * lib/regex_internal.h (bitset_set_all): Likewise.
83978         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
83979         All uses changed.
83980         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
83981         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
83982         All uses changed.
83983         (BITSET_WORD_MAX): New macro.
83984         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
83985         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
83986         (bitset_empty, bitset_copy):
83987         Prefer sizeof (bitset) to multiplying it out ourselves.
83988         (bitset_not_merge): Remove; unused.
83989         (bitset_contain): Return bool, not unsigned int with one bit on.
83990         All callers changed.
83991         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
83992         alignment than re_node_set; do this by defining a new internal
83993         type struct dests_alloc and using it to allocate memory.
83994
83995 2005-09-05  Bruno Haible  <bruno@clisp.org>
83996
83997         * gnulib-tool (func_import): Fix comparison in handling of symbolic
83998         links.
83999
84000 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
84001
84002         * modules/size_max (Makefile.am): Add size_max.h
84003
84004 2005-09-04  Derek Price  <derek@ximbiot.com>
84005
84006         * gnulib-tool (func_import): Fix reversed $symbolic logic.
84007
84008 2005-09-03  Simon Josefsson  <jas@extundo.com>
84009
84010         * gnulib-tool: Fix typo.
84011
84012 2005-09-03  Simon Josefsson  <jas@extundo.com>
84013
84014         * config/srclist.txt: Add glibc bug 1293.
84015
84016 2005-09-03  Derek Price  <derek@ximbiot.com>
84017
84018         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
84019         From Larry Jones <lawrence.jones@ugs.com>.
84020
84021 2005-09-02  Simon Josefsson  <jas@extundo.com>
84022
84023         * modules/socklen: New file.
84024
84025 2005-09-02  Simon Josefsson  <jas@extundo.com>
84026
84027         * modules/havelib: New module.
84028
84029         * modules/gettext, modules/iconv, modules/lock, modules/readline:
84030         Use havelib.
84031
84032 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84033
84034         Check for arithmetic overflow when calculating sizes, to prevent
84035         some buffer-overflow issues.  These patches are conservative, in the
84036         sense that when I couldn't determine whether an overflow was possible,
84037         I inserted a run-time check.
84038         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
84039         macros.
84040         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
84041         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
84042         (re_xnrealloc, re_x2nrealloc): New inline functions.
84043         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
84044         parse_bracket_exp):
84045         (build_equiv_class, build_charclass): Check for arithmetic overflow
84046         in size expression calculations.
84047         * lib/regex_internal.c (re_string_realloc_buffers):
84048         (build_wcs_upper_buffer, re_node_set_add_intersect):
84049         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
84050         (re_dfa_add_node, register_state): Likewise.
84051         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
84052         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
84053         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
84054         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
84055
84056 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84057
84058         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84059         m4/ulonglong.m4.  Problem reported by Martin Lambers.
84060
84061 2005-09-02  Bruno Haible  <bruno@clisp.org>
84062
84063         Support for lib vs. lib64 distinction on biarch platforms.
84064         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
84065         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
84066         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
84067
84068 2005-09-02  Bruno Haible  <bruno@clisp.org>
84069
84070         * gnulib-tool (import): In the other first-use case, provide defaults
84071         as well.
84072
84073 2005-09-02  Bruno Haible  <bruno@clisp.org>
84074
84075         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
84076         patches not yet found in the latest gettext release.
84077
84078 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84079
84080         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
84081         to avoid a collision with bits/local_lim.h in glibc.
84082         All uses changed.  Problem reported by Dmitry V. Levin in
84083         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
84084
84085         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
84086         bugs in int versus size_t comparisons.
84087         (re_string_context_at): Fix bug where the code assumed that
84088         Idx is signed.
84089
84090         Use bool where appropriate.
84091         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
84092         All callers changed.
84093         (calc_eclosure_iter): Likewise, for ROOT arg.
84094         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
84095         (build_charclass_op): Likewise, for NON_MATCH arg.
84096         * lib/regex_internal.c (re_string_allocate, re_string_construct):
84097         (re_string_construct_common): Likewise, for ICASE arg.
84098         * lib/regexec.c (re_search_2_stub, re_search_stub):
84099         Likewise, for RET_LEN arg.
84100         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
84101         (set_regs): Likewise, for FL_BACKTRACK arg.
84102         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
84103         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
84104         (calc_eclosure_iter, parse_bracket_exp):
84105         Use bool for internal variables that are booleans.
84106         * lib/regexec.c (re_search_internal, check_matching,
84107         proceed_next_node):
84108         (set_regs, build_sifted_states, sift_states_bkref):
84109         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
84110         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84111         (find_collation_sequence_value):
84112         Likewise.
84113         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
84114         (re_node_set_compare):
84115         Return bool, not int. All callers changed.
84116         * lib/regexec.c (check_halt_node_context, check_dst_limits):
84117         (build_trtable, check_node_accept): Likewise.
84118         * lib/regex_internal.h: Include stdbool.h.
84119
84120         Fix bugs uncovered when converting to bool.
84121         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
84122         failure instead of charging ahead blindly.
84123         * lib/regex_internal.c (register_state): Likewise.
84124         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
84125         for freeing internal storage.
84126         (group_nodes_into_DFA_states): Use unsigned int, not int, for
84127         bitset pieces used as boolean, to avoid undefined behavior
84128         on hosts that do int overflow checking.
84129
84130 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84131
84132         * config/srclist.txt: Add glibc bugs 1285-1287.
84133
84134 2005-09-01  Jim Meyering  <jim@meyering.net>
84135
84136         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
84137         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
84138         Require gl_STAT_MACROS, too.
84139
84140 2005-09-01  Bruno Haible  <bruno@clisp.org>
84141
84142         * gnulib-tool (import): In the first-use case, provide defaults.
84143
84144 2005-09-01  Bruno Haible  <bruno@clisp.org>
84145
84146         * gnulib-tool (func_import): Remove the .tmp files.
84147
84148 2005-09-01  Bruno Haible  <bruno@clisp.org>
84149
84150         * gnulib-tool (func_import): Fix handling of symbolic links.
84151
84152 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84153
84154         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
84155         old glibc regex code mishandles strings longer than 2**31 bytes.
84156         This patch fixes this when the regex code is used in gnulib
84157         (i.e., outside glibc).
84158
84159         This patch should not affect the use of the regex code inside
84160         glibc.  No doubt this problem also needs to be handled for glibc
84161         as well, but the result will be an incompatible change to the
84162         glibc ABI, and the old ABI will have to be supported too.  That
84163         can be the the subject for another patch.
84164
84165         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
84166         governing whether the rest of this patch is active.  By default,
84167         the macro is disabled and the patch has no effect.
84168         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
84169         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
84170         (struct re_pattern_buffer, re_search, re_search_2, re_match):
84171         (re_match_2, re_set_registers): Use the new types.
84172         * lib/regex_internal.h (Idx, re_hashval_t): New types.
84173         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
84174         New macros.
84175         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
84176         (re_string_context_at, bin_tree_t, re_dfastate_t):
84177         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
84178         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
84179         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
84180         (re_string_char_size_at, re_string_wchar_at):
84181         (re_string_elem_size_at):
84182         Use the new types and macros to port to 64-bit hosts.
84183         Use unsigned types for internal values, so that the code
84184         mostly works even for arrays larger than SSIZE_MAX.
84185         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
84186         (search_duplicated_node, calc_eclosure_iter, fetch_number):
84187         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
84188         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
84189         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
84190         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
84191         (calc_inveclosure, parse_dup_op, build_range_exp):
84192         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
84193         (fetch_number, create_token_tree, mark_opt_subexp):
84194         Likewise.
84195         * lib/regex_internal.c (re_string_construct_common,
84196         create_ci_newstate):
84197         (create_cd_newstate, re_string_allocate, re_string_construct):
84198         (re_string_realloc_buffers, build_wcs_upper_buffer):
84199         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84200         (re_string_reconstruct, re_string_peek_byte_case):
84201         (re_string_fetch_byte_case, re_string_context_at):
84202         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84203         (re_node_set_init_copy, re_node_set_add_intersect):
84204         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84205         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84206         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84207         (re_acquire_state, re_acquire_state_context, register_state):
84208         Likewise.
84209         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
84210         search_cur_bkref_entry):
84211         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
84212         (re_search_internal, re_search_2_stub, re_search_stub)
84213         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
84214         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
84215         (update_cur_sifted_state, check_dst_limits):
84216         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84217         (check_subexp_limits, sift_states_bkref, merge_state_array):
84218         (check_subexp_matching_top, get_subexp, get_subexp_sub):
84219         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
84220         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84221         (expand_bkref_cache, check_node_accept_bytes):
84222         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
84223         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
84224         (acquire_init_state_context, check_halt_node_context):
84225         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
84226         (sift_states_backward, clean_state_log_if_needed):
84227         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
84228         (find_recover_state, transit_state_sb, transit_state_mb):
84229         (transit_state_bkref, build_trtable, match_ctx_clean):
84230         Likewise.
84231         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
84232         to work around an assumption that REG_MISSING is negative.
84233
84234         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
84235         (seek_collating_symbol_entry) [defined _LIBC]:
84236         (lookup_collation_sequence_value) [defined _LIBC]:
84237         (build_range_exp, build_collating_symbol) [defined _LIBC]:
84238         Use prototypes rather than old-style function definitions.
84239         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
84240         (transit_state_sb) [0]:
84241         (find_collation_sequence_value) [defined _LIBC]: Likewise.
84242
84243         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
84244         rm_eo.
84245
84246         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
84247         (optimize_subexps, lower_subexp):
84248         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
84249         since the signed shift might overflow.  Use 1u<<31 instead.
84250         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84251         Likewise.
84252         * lib/regexec.c (check_dst_limits_calc_pos_1,
84253         check_subexp_matching_top): Likewise.
84254
84255         * lib/regcomp.c (optimize_subexps, lower_subexp):
84256         Use CHAR_BIT rather than 8, for clarity.
84257         * lib/regexec.c (check_dst_limits_calc_pos_1):
84258         (check_subexp_matching_top): Likewise.
84259         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
84260         have to worry about portability issues when shifting it left.
84261         Remove no-longer-needed test for table_size > 0.
84262         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
84263         in a word, as the resulting behavior is undefined.
84264         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
84265         in one case, a <= should have been an <, and in another case the
84266         whole test was missing.
84267         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
84268         the standard name CHAR_BIT.
84269         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
84270         this is not true on one's complement and signed-magnitude hosts.
84271
84272         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
84273         next_last_offset.
84274         (struct re_dfa_t): Remove unused member states_alloc.
84275         * lib/regcomp.c (init_dfa): Don't initialize unused members.
84276
84277 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84278
84279         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
84280         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
84281         and large-file glibc and in 32-bit large-file Solaris.
84282
84283 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84284
84285         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
84286         lengths fit in regoff_t; this isn't true if regoff_t is the same
84287         width as size_t.
84288         * lib/regex.c (re_search_internal): 5th arg is LAST_START
84289         (= START + RANGE) instead of RANGE.  This avoids overflow
84290         problems when regoff_t is the same width as size_t.
84291         All callers changed.
84292         (re_search_2_stub): Check for overflow when adding the
84293         sizes of the two strings.
84294         (re_search_stub): Check for overflow when adding START
84295         to RANGE; if it occurs, substitute the extreme value.
84296
84297 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84298
84299         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
84300
84301 2005-08-31  Jim Meyering  <jim@meyering.net>
84302
84303         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
84304         a pointer-to-const.
84305         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
84306         (register_state): Likewise.
84307         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
84308         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84309         (group_nodes_into_DFAstates): Likewise.
84310
84311 2005-08-31  Jim Meyering  <jim@meyering.net>
84312
84313         * check-module: Add a FIXME comment.
84314
84315 2005-08-31  Eric Blake  <ebb9@byu.net>
84316
84317         * modules/unistd-safer (Files): Add unistd--.h.
84318         * modules/stdio-safer (Files): Add stdio--.h.
84319
84320 2005-08-31  Derek Price  <derek@ximbiot.com>
84321
84322         * lib/getdelim.c (getdelim): Return EOF on EOF.
84323         Reported by Larry Jones <lawrence.jones@ugs.com>.
84324
84325 2005-08-31  Bruno Haible  <bruno@clisp.org>
84326
84327         Avoid unnecessary diffs in the generated lib/Makefile.am.
84328         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
84329         the generated files.
84330         (func_import): Don't set cmd.
84331
84332 2005-08-31  Bruno Haible  <bruno@clisp.org>
84333
84334         * lib/strstr.c: Include <stddef.h>, for NULL.
84335         * lib/strcasestr.c: Likewise.
84336         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84337
84338 2005-08-31  Bruno Haible  <bruno@clisp.org>
84339
84340         * gnulib-tool: New option --macro-prefix.
84341         (func_import): Use macro_prefix.
84342         (import): Handle option --macro-prefix.
84343
84344 2005-08-31  Bruno Haible  <bruno@clisp.org>
84345
84346         * gnulib-tool (import): Rename most ac_* variables to cached_*.
84347         Also use new variables cached_lgpl, cached_libtool.
84348
84349 2005-08-31  Bruno Haible  <bruno@clisp.org>
84350
84351         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
84352         always instantiating them.
84353
84354 2005-08-31  Bruno Haible  <bruno@clisp.org>
84355
84356         * gnulib-tool (func_import): Read the previous cached settings
84357         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
84358         earlier added by gnulib but are now dropped. Warn when a gnulib file
84359         overwrites a non-gnulib file.
84360
84361 2005-08-31  Bruno Haible  <bruno@clisp.org>
84362
84363         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
84364         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
84365         projects that don't keep autogenerated files in CVS. Put into
84366         actioncmd only the specified modules, not the transitive closure.
84367
84368 2005-08-31  Bruno Haible  <bruno@clisp.org>
84369
84370         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
84371         Create directories that shall be filled.
84372         (import): Don't look for gl_* macros in configure.ac. Recurse across
84373         all directories containing a gnulib-cache.m4 files, if meaningful.
84374
84375 2005-08-31  Bruno Haible  <bruno@clisp.org>
84376
84377         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
84378         (import): Set seen_libtool when we see gl_LIBTOOL.
84379
84380 2005-08-31  Bruno Haible  <bruno@clisp.org>
84381
84382         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
84383         declaration macro definitions from generated gnulib.m4.
84384
84385 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
84386
84387         * lib/iconvme.h: Add prototype for iconv_alloc.
84388
84389 2005-08-29  Simon Josefsson  <jas@extundo.com>
84390
84391         * lib/iconvme.c: Fix errno.
84392
84393 2005-08-29  Bruno Haible  <bruno@clisp.org>
84394
84395         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
84396         that it works when the directory contains spaces.
84397
84398 2005-08-29  Bruno Haible  <bruno@clisp.org>
84399
84400         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
84401
84402 2005-08-29  Bruno Haible  <bruno@clisp.org>
84403
84404         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
84405         Emit more advice.
84406
84407 2005-08-29  Bruno Haible  <bruno@clisp.org>
84408         and Stepan Kasal  <kasal@ucw.cz>
84409
84410         * check-module: If more parameters are given, check each of them
84411         separately; add more exceptions, as noted by Jim Meyering.
84412         (check_module): New procedure.
84413         (%exempt_header): Now contains all exceptions.
84414
84415 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
84416
84417         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
84418
84419 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84420
84421         * lib/iconvme.c: Split iconv_string into iconv_alloc.
84422
84423 2005-08-28  Bruno Haible  <bruno@clisp.org>
84424
84425         * m4/gnulib-tool.m4: New file.
84426
84427 2005-08-27  Jim Meyering  <jim@meyering.net>
84428
84429         * modules/unistd-safer (Files): Add pipe-safer.c.
84430         * modules/fcntl-safer (Files): Add creat-safer.c.
84431
84432 2005-08-27  Jim Meyering  <jim@meyering.net>
84433
84434         * m4/stdlib-safer.m4: New file.  From coreutils.
84435         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
84436         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
84437         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
84438         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
84439         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
84440
84441 2005-08-27  Jim Meyering  <jim@meyering.net>
84442
84443         * lib/fopen-safer.c: Merge minor changes from coreutils.
84444         * lib/dup-safer.c: Likewise.
84445         * lib/fd-safer.c: Likewise.
84446
84447         Merge from coreutils.
84448         * lib/stdio--.h: New file.
84449         * lib/stdlib--.h: New file.
84450         * lib/mkstemp-safer.c: New file.
84451
84452         GNU tar needs these.
84453         * lib/pipe-safer.c: New file.
84454         * lib/creat-safer.c: New file.
84455         * lib/fcntl--.h (creat): Define to creat_safer.
84456         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
84457         * lib/unistd--.h (pipe): Define to pipe_safer.
84458         * lib/unistd-safer.h: Declare pipe_safer.
84459
84460 2005-08-26  Simon Josefsson  <jas@extundo.com>
84461
84462         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
84463         Haible <bruno@clisp.org>.
84464
84465 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
84466
84467         * lib/regex_internal.h: Remove all references to
84468         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
84469         or better.
84470         (bitset_not, bitset_merge, bitset_not_merge):
84471         (bitset_mask, re_string_allocate, re_string_construct):
84472         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
84473         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
84474         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
84475         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
84476         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84477         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84478         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
84479         (re_acquire_state_context):
84480         Remove unnecessary forward decls.
84481         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
84482         Put __attribute at function definition,
84483         now that the function decl has been removed.
84484         * lib/regex_internal.c (re_string_peek_byte_case):
84485         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
84486         Likewise.
84487
84488 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
84489
84490         * m4/regex.m4: Add AC_PREREQ(2.50).
84491         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
84492
84493 2005-08-25  Simon Josefsson  <jas@extundo.com>
84494
84495         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
84496         __fsetlocking.
84497
84498 2005-08-25  Simon Josefsson  <jas@extundo.com>
84499
84500         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
84501         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
84502         GLIBC specific code.
84503
84504 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84505
84506         Make regex safe for g++.  This fixes one real bug (an "err"
84507         that should have been "*err").  g++ problem reported by
84508         Sam Steingold.
84509         * lib/regex_internal.h (re_calloc): New macro, consistent with
84510         re_malloc etc.  All callers of calloc changed to use re_calloc.
84511         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
84512         not int.  All callers changed.
84513         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
84514         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
84515         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
84516         (find_recover_state): Change "err" to "*err"; this fixes what
84517         appears to be a real bug.
84518         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
84519         versus int.
84520
84521 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84522
84523         * modules/regex (Depends-on): Add malloc, since the code
84524         assumes that !malloc(0) means failure.
84525
84526 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84527
84528         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
84529
84530         alloca modernization/simplification for regex.
84531         * lib/regex.c: Remove portability cruft for alloca.  This no longer
84532         needs to be at the start of the file, and can be moved into
84533         regex_internal.h and simplified.
84534         * lib/regex_internal.h: Include <alloca.h>.
84535         (__libc_use_alloca) [!defined _LIBC]: New macro.
84536         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
84537         now works outside glibc.
84538
84539 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84540
84541         * config/srclist.txt: Add glibc bugs 1241, 1245.
84542
84543 2005-08-25  Jim Meyering  <jim@meyering.net>
84544
84545         * lib/open-safer.c: Include <config.h>.
84546         Otherwise, we'd lose LARGEFILE support in any file using
84547         e.g. "fcntl--.h"
84548
84549 2005-08-25  Bruno Haible  <bruno@clisp.org>
84550
84551         * m4/minmax.m4: Require autoconf 2.52.
84552         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
84553         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
84554         alternatives of translit over the alphabet.
84555         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
84556
84557 2005-08-24  Simon Josefsson  <jas@extundo.com>
84558
84559         * tests/test-getpass.c: New file.
84560
84561 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84562
84563         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
84564         for GNU regex features.
84565
84566 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84567
84568         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
84569         * lib/regex.h (regerror): Likewise.
84570
84571         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
84572         requires this.  (The code never needed it.)
84573
84574         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
84575         All uses of recently-renamed identifiers changed to use the new,
84576         POSIX-compliant names.  The code will build and run just fine
84577         without these changes, but it's better to eat our own dog food
84578         and use the standard-conforming names.
84579
84580         * lib/regex.h: Fix a multitude of POSIX name space violations.
84581         These changes have an effect only for programs that define
84582         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
84583         do not change anything for programs compiled in the normal way.
84584         Also, there is no effect on the ABI.
84585
84586         (_REGEX_SOURCE): New macro.
84587         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
84588         defined and _GNU_SOURCE is not; this fixes a name space violation.
84589
84590         Rename the following macros to obey POSIX requirements.
84591         The old names are still visible as macros if _REGEX_SOURCE is defined.
84592         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
84593         RE_BACKSLASH_ESCAPE_IN_LISTS.
84594         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
84595         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
84596         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
84597         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
84598         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
84599         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
84600         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
84601         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
84602         (REG_INTERVALS): renamed from RE_INTERVALS.
84603         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
84604         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
84605         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
84606         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
84607         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
84608         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
84609         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
84610         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
84611         RE_UNMATCHED_RIGHT_PAREN_ORD.
84612         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
84613         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
84614         (REG_DEBUG): renamed from RE_DEBUG.
84615         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
84616         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
84617         unusual, since we can't clash with the POSIX REG_ICASE.
84618         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
84619         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
84620         (REG_NO_SUB): renamed from RE_NO_SUB.
84621         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
84622         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
84623         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
84624         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
84625         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
84626         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
84627         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
84628         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
84629         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
84630         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
84631         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
84632         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
84633         RE_SYNTAX_POSIX_MINIMAL_BASIC.
84634         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
84635         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
84636         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
84637         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
84638         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
84639         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
84640         (REG_FIXED): Renamed from REGS_FIXED.
84641         (REG_NREGS): Renamed from RE_NREGS.
84642
84643         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
84644         of other REG_* macros, since POSIX says the user is allowed to
84645         #undef these macros selectively.
84646
84647         (reg_errcode_t): Update comment stating what other tables need
84648         to be consistent.
84649
84650         Rename the following enum values to obey POSIX requirements.
84651         The old names are still visible as macros.
84652         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
84653         is not defined, since GNU is supposed to be a superset of POSIX as
84654         much as possible, and since we want reg_errcode_t to be a signed
84655         type for implementation consistency.
84656         (_REG_NOERROR): Renamed from REG_NOERROR.
84657         (_REG_NOMATCH): Renamed from REG_NOMATCH.
84658         (_REG_BADPAT): Renamed from REG_BADPAT.
84659         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
84660         (_REG_ECTYPE): Renamed from REG_ECTYPE.
84661         (_REG_EESCAPE): Renamed from REG_EESCAPE.
84662         (_REG_ESUBREG): Renamed from REG_ESUBREG.
84663         (_REG_EBRACK): Renamed from REG_EBRACK.
84664         (_REG_EPAREN): Renamed from REG_EPAREN.
84665         (_REG_EBRACE): Renamed from REG_EBRACE.
84666         (_REG_BADBR): Renamed from REG_BADBR.
84667         (_REG_ERANGE): Renamed from REG_ERANGE.
84668         (_REG_ESPACE): Renamed from REG_ESPACE.
84669         (_REG_BADRPT): Renamed from REG_BADRPT.
84670         (_REG_EEND): Renamed from REG_EEND.
84671         (_REG_ESIZE): Renamed from REG_ESIZE.
84672         (_REG_ERPAREN): Renamed from REG_ERPAREN.
84673         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
84674         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
84675         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
84676         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
84677
84678         (_REG_RE_NAME, _REG_RM_NAME): New macros.
84679         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
84680         changed.  But support the old name if the new one is not defined
84681         and if _REGEX_SOURCE.
84682
84683         Change the following member names in struct re_pattern_buffer.
84684         The old names are still supported if !_REGEX_SOURCE.
84685         The new names are always supported, regardless of _REGEX_SOURCE.
84686         (re_buffer): Renamed from buffer.
84687         (re_allocated): Renamed from allocated.
84688         (re_used): Renamed from used.
84689         (re_syntax): Renamed from syntax.
84690         (re_fastmap): Renamed from fastmap.
84691         (re_translate): Renamed from translate.
84692         (re_can_be_null): Renamed from can_be_null.
84693         (re_regs_allocated): Renamed from regs_allocated.
84694         (re_fastmap_accurate): Renamed from fastmap_accurate.
84695         (re_no_sub): Renamed from no_sub.
84696         (re_not_bol): Renamed from not_bol.
84697         (re_not_eol): Renamed from not_eol.
84698         (re_newline_anchor): Renamed from newline_anchor.
84699
84700         Change the following member names in struct re_registers.
84701         The old names are still supported if !_REGEX_SOURCE.
84702         The new names are always supported, regardless of _REGEX_SOURCE.
84703         (rm_num_regs): Renamed from num_regs.
84704         (rm_start): Renamed from start.
84705         (rm_end): Renamed from end.
84706
84707         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
84708         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
84709         Prepend __ to parameter names.
84710
84711         Undo yesterday's changes.
84712
84713 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84714
84715         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
84716         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
84717         lib/regex.c.
84718
84719 2005-08-24  Jim Meyering  <jim@meyering.net>
84720
84721         Sync from coreutils.
84722         * m4/fcntl-safer.m4: New file.
84723
84724         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
84725         and object files for this module.
84726
84727 2005-08-24  Jim Meyering  <jim@meyering.net>
84728
84729         Sync from coreutils.
84730         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
84731
84732 2005-08-24  Jim Meyering  <jim@meyering.net>
84733
84734         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
84735         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
84736
84737 2005-08-24  Jim Meyering  <jim@meyering.net>
84738
84739         * modules/fcntl-safer: New module.
84740         * modules/fts (Depends-on): Add fcntl-safer.
84741         * MODULES.html.sh (File descriptor based Input/Output):
84742         Add fcntl-safer.
84743
84744 2005-08-24  Bruno Haible  <bruno@clisp.org>
84745
84746         Support for unit test modules.
84747         * modules/README: Mention tests modules.
84748         * modules/TEMPLATE-TESTS: New file.
84749         * gnulib-tool: New options --extract-tests-module, --with-tests and
84750         --tests-base (unused for the moment).
84751         (testsbase, inctests): New variables.
84752         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
84753         (func_verify_module): Exclude TEMPLATE-TESTS.
84754         (func_verify_nontests_module, func_verify_tests_module): New functions.
84755         (func_get_dependencies): Add implicit dependency for tests modules.
84756         (func_get_tests_module): New function.
84757         (func_modules_transitive_closure): When --with-tests was specified,
84758         include the unit tests as well, unless explicitly avoided.
84759         (func_emit_lib_Makefile_am): Ignore the tests modules here.
84760         (func_emit_tests_Makefile_am): New function.
84761         (func_create_testdir): When --with-tests was specified, emit a
84762         tests/ directory.
84763         * MODULES.html.sh (Future developments): Update.
84764
84765 2005-08-24  Bruno Haible  <bruno@clisp.org>
84766
84767         * modules/tls-tests: New file.
84768         * tests/test-tls.c: New file, from GNU gettext.
84769
84770 2005-08-24  Bruno Haible  <bruno@clisp.org>
84771
84772         * modules/lock-tests: New file.
84773         * tests/test-lock.c: New file, from GNU gettext.
84774
84775 2005-08-24  Bruno Haible  <bruno@clisp.org>
84776
84777         * lib/lock.h: Add multiple inclusion guard.
84778         * lib/tls.h: Add multiple inclusion guard.
84779
84780 2005-08-24  Bruno Haible  <bruno@clisp.org>
84781
84782         * gnulib-tool: Add support for the --aux-dir option to
84783         --create-testdir, --create-megatestdir, --test, --megatest.
84784         (func_create_testdir, func_create_megatestdir): Optionally emit a
84785         AC_CONFIG_AUX_DIR directive.
84786         (create-testdir, create-megatestdir, test, megatest): Provide a
84787         default value for $auxdir.
84788
84789 2005-08-24  Bruno Haible  <bruno@clisp.org>
84790
84791         * gnulib-tool (import): Use compound statement instead of subshell
84792         where possible.
84793
84794 2005-08-24  Bruno Haible  <bruno@clisp.org>
84795
84796         * gnulib-tool (import): Change --aux-dir default to "build-aux".
84797
84798 2005-08-24  Bruno Haible  <bruno@clisp.org>
84799
84800         * gnulib-tool (func_version): Update.
84801
84802 2005-08-24  Bruno Haible  <bruno@clisp.org>
84803
84804         * gnulib-tool (func_import, func_create_testdir,
84805         func_create_megatestdir): Quote all autoconf macro arguments.
84806
84807 2005-08-24  Bruno Haible  <bruno@clisp.org>
84808
84809         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
84810         option --force, because --force causes the aclocal.m4 of each
84811         subdirectory to be newer than the corresponding config.h.in.
84812
84813 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84814
84815         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
84816         All contents moved to gl_REGEX.
84817         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
84818         assume that it does.
84819
84820 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84821
84822         * lib/regex.h (REG_NOSYS)
84823         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
84824         Define, since POSIX requires it as of 2001.
84825         (_REG_ENOSYS)
84826         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
84827         New private symbol, used to keep the enum signed in all cases.
84828         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
84829         Youngman in
84830         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
84831
84832         * lib/regex_internal.c (re_string_skip_chars, register_state):
84833         (calc_state_hash):
84834         Remove forward decls; no longer needed now that we use prototypes.
84835         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
84836         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
84837         (clean_state_log_if_needed): Likewise.
84838
84839 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84840
84841         * config/srclist.txt: Add glibc bugs 1231-1233.
84842
84843 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84844
84845         Fix problems reported by Sam Steingold in
84846         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
84847         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
84848         assumed that reg_errcode_t is a signed type, which is not
84849         necessarily true if _XOPEN_SOURCE is not defined.
84850         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
84851         since some compilers warn about it otherwise.
84852
84853 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84854
84855         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
84856         (init_word_char, create_initial_state, duplicate_node_closure):
84857         (fetch_token, peek_token_bracket, build_range_exp):
84858         (build_collating_symbol): Remove forward decls; no longer needed
84859         now that we use prototypes.
84860
84861         * lib/regcomp.c:
84862         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
84863         (re_compile_fastmap_iter, regcomp, regerror, regfree):
84864         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
84865         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
84866         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
84867         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
84868         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
84869         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
84870         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
84871         (build_range_exp, build_collating_symbol, parse_bracket_exp):
84872         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
84873         (build_charclass, build_charclass_op, fetch_number, create_tree):
84874         (create_token_tree, mark_opt_subexp, duplicate_tree):
84875         Use prototypes rather than old-style definitions.
84876
84877         * lib/regex_internal.c:
84878         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
84879         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
84880         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84881         (re_string_reconstruct, re_string_peek_byte_case):
84882         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
84883         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84884         (re_node_set_init_copy, re_node_set_add_intersect):
84885         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84886         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84887         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84888         (re_acquire_state, re_acquire_state_context, register_state):
84889         (create_ci_newstate, create_cd_newstate, free_state):
84890         Likewise.
84891         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
84892         re_search_2):
84893         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
84894         (re_search_internal, prune_impossible_nodes):
84895         (acquire_init_state_context, check_matching, static):
84896         (check_halt_node_context, check_halt_state_context, proceed_next_node):
84897         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
84898         (update_regs, sift_states_backward, build_sifted_states):
84899         (clean_state_log_if_needed, merge_state_array):
84900         (update_cur_sifted_state, add_epsilon_src_nodes):
84901         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
84902         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
84903         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
84904         (find_recover_state, check_subexp_matching_top, transit_state_mb):
84905         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
84906         (check_arrival, check_arrival_add_next_nodes):
84907         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84908         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84909         (check_node_accept_bytes, check_node_accept, extend_buffers):
84910         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
84911         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
84912         (sift_ctx_init):
84913         Likewise.
84914
84915         * lib/regex_internal.h:
84916         (re_string_allocate, re_string_construct, re_string_reconstruct):
84917         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
84918         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
84919         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
84920         (re_string_context_at, re_string_peek_byte_case):
84921         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
84922         is defined, since we now use prototypes always.
84923
84924         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
84925         C89 or better.  All uses removed.
84926
84927 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84928
84929         * config/srclist.txt: Add glibc bugs 1220-1227.
84930
84931 2005-08-20  Jim Meyering  <jim@meyering.net>
84932
84933         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
84934         of unused local, dfa.
84935
84936 2005-08-20  Bruno Haible  <bruno@clisp.org>
84937
84938         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
84939
84940 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84941
84942         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
84943         (re_node_set_insert_last, re_dfa_add_node):
84944         Rename local variables to avoid GCC shadowing warnings.
84945
84946 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84947
84948         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
84949         [defined lint]: Suppress bogus uninitialized-variable warnings.
84950
84951         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
84952         and let the caller return REG_ESPACE if out of space.  This
84953         removes an uninitialied-variable warning with GCC 4.0.1, and also
84954         avoids taking the address of a local variable.  All callers
84955         changed.
84956
84957 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84958
84959         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
84960         $LIBCSRC/posix/regexec.c.
84961         Add glibc bug 1217 for regcomp.c.
84962
84963 2005-08-19  Jim Meyering  <jim@meyering.net>
84964
84965         * lib/regexec.c (proceed_next_node): Redo local variables to
84966         avoid GCC shadowing warnings.
84967
84968 2005-08-18  Bruno Haible  <bruno@clisp.org>
84969
84970         * lib/strstr.c (strstr): Fix return value in multibyte case.
84971         * lib/strcasestr.c (strcasestr): Likewise.
84972
84973 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84974
84975         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
84976
84977 2005-08-17  Jim Meyering  <jim@meyering.net>
84978
84979         Make the %s format (seconds since the epoch) work for a negative
84980         number and when used with a zero-padded field width, e.g. %015s.
84981
84982         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
84983         label so that it precedes the code to set `digits'.  Otherwise,
84984         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
84985         print `00-22'.  Now, it prints `-0022', as it should.
84986
84987 2005-08-17  Bruno Haible  <bruno@clisp.org>
84988
84989         * modules/strstr (Files): Add m4/mbrtowc.m4.
84990         (Depends-on): Add mbuiter.
84991
84992 2005-08-17  Bruno Haible  <bruno@clisp.org>
84993
84994         * modules/strcasestr: New file.
84995         * MODULES.html.sh (String handling, based on ANSI C 89): Add
84996         strcasestr.
84997
84998 2005-08-17  Bruno Haible  <bruno@clisp.org>
84999
85000         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
85001
85002 2005-08-17  Bruno Haible  <bruno@clisp.org>
85003
85004         * modules/mbuiter: New file.
85005         * MODULES.html.sh (Extended multibyte and wide character utilities):
85006         Add mbuiter.
85007
85008 2005-08-17  Bruno Haible  <bruno@clisp.org>
85009
85010         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
85011         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
85012
85013 2005-08-17  Bruno Haible  <bruno@clisp.org>
85014
85015         * m4/strcasestr.m4: New file.
85016
85017 2005-08-17  Bruno Haible  <bruno@clisp.org>
85018
85019         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
85020         * lib/strstr.c: Completely rewritten, with multibyte locale support.
85021
85022 2005-08-17  Bruno Haible  <bruno@clisp.org>
85023
85024         * lib/strcasestr.h: New file.
85025         * lib/strcasestr.c: New file.
85026
85027 2005-08-17  Bruno Haible  <bruno@clisp.org>
85028
85029         * lib/strcasecmp.c: Use mbuiter.h.
85030
85031 2005-08-17  Bruno Haible  <bruno@clisp.org>
85032
85033         * lib/mbuiter.h: New file.
85034
85035 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
85036
85037         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
85038         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
85039         and gl_GETOPT are both invoked via different paths (as happens
85040         with GNU tar CVS because it uses both argp and getopt), the former
85041         wins.
85042
85043 2005-08-16  Bruno Haible  <bruno@clisp.org>
85044
85045         * modules/tls: New file.
85046         * MODULES.html.sh (Multithreading): Add tls.
85047
85048 2005-08-16  Bruno Haible  <bruno@clisp.org>
85049
85050         * modules/strnlen1: New file.
85051         * MODULES.html.sh (String handling): Add strnlen1.
85052
85053 2005-08-16  Bruno Haible  <bruno@clisp.org>
85054
85055         * modules/strcase (Files): Add m4/mbrtowc.m4.
85056         (Depends-on): Add strnlen1, mbchar.
85057
85058 2005-08-16  Bruno Haible  <bruno@clisp.org>
85059
85060         * modules/mbiter: New file.
85061         * MODULES.html.sh (Extended multibyte and wide character utilities):
85062         Add mbiter.
85063
85064 2005-08-16  Bruno Haible  <bruno@clisp.org>
85065
85066         * modules/mbfile: New file.
85067         * MODULES.html.sh (Extended multibyte and wide character utilities):
85068         Add mbfile.
85069
85070 2005-08-16  Bruno Haible  <bruno@clisp.org>
85071
85072         * modules/mbchar: New file.
85073         * MODULES.html.sh (Extended multibyte and wide character utilities):
85074         New section.
85075
85076 2005-08-16  Bruno Haible  <bruno@clisp.org>
85077
85078         * m4/tls.m4: New file, from GNU gettext.
85079
85080 2005-08-16  Bruno Haible  <bruno@clisp.org>
85081
85082         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
85083         always.
85084         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
85085
85086 2005-08-16  Bruno Haible  <bruno@clisp.org>
85087
85088         * m4/mbiter.m4: New file.
85089
85090 2005-08-16  Bruno Haible  <bruno@clisp.org>
85091
85092         * m4/mbfile.m4: New file.
85093
85094 2005-08-16  Bruno Haible  <bruno@clisp.org>
85095
85096         * m4/mbchar.m4: New file.
85097
85098 2005-08-16  Bruno Haible  <bruno@clisp.org>
85099
85100         * lib/tls.h: New file, from GNU gettext.
85101         * lib/tls.c: New file, from GNU gettext.
85102
85103 2005-08-16  Bruno Haible  <bruno@clisp.org>
85104
85105         * lib/strnlen1.h: New file.
85106         * lib/strnlen1.c: New file.
85107
85108 2005-08-16  Bruno Haible  <bruno@clisp.org>
85109
85110         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
85111         (mbi_init): Update.
85112         (mbi_avail, mbi_advance): Let the iteration end before the terminating
85113         NUL byte, not after it.
85114
85115 2005-08-16  Bruno Haible  <bruno@clisp.org>
85116
85117         * lib/strcase.h (strcasecmp): Add note in comments.
85118         * lib/strncasecmp.c: Use code from strcasecmp.c.
85119         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
85120         (strcasecmp): Work correctly in multibyte locales.
85121
85122 2005-08-16  Bruno Haible  <bruno@clisp.org>
85123
85124         * lib/mbiter.h: New file.
85125
85126 2005-08-16  Bruno Haible  <bruno@clisp.org>
85127
85128         * lib/mbfile.h: New file.
85129
85130 2005-08-16  Bruno Haible  <bruno@clisp.org>
85131
85132         * lib/mbchar.h: New file.
85133         * lib/mbchar.c: New file.
85134
85135 2005-08-16  Bruno Haible  <bruno@clisp.org>
85136
85137         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
85138         the valid ones. Makes the comparison operations transitive:
85139         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
85140         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
85141
85142 2005-08-15  Simon Josefsson  <jas@extundo.com>
85143
85144         * modules/ssize_t (License): Change to 'unlimited'.
85145
85146         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
85147
85148 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
85149
85150         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
85151         Add comments for each pending glibc patch.
85152
85153 2005-08-15  Bruno Haible  <bruno@clisp.org>
85154
85155         * lib/regex.h (__restrict_arr): Don't define to __restrict if
85156         __cplusplus is defined.
85157
85158 2005-08-14  Jim Meyering  <jim@meyering.net>
85159
85160         Sync from coreutils.
85161
85162         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
85163         Use the hash-table-based cycle-detection code not just when
85164         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
85165         Reported by James Youngman in
85166         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
85167         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
85168         FTS_TIGHT_CYCLE_CHECK.
85169         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
85170         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
85171         once again.
85172         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
85173         * lib/fts.c (fd_safer): Remove decl.
85174         Include fcntl--.h rather than unistd-safer.h
85175         (fts_safe_changedir): Don't call fd_safer; no longer needed
85176         now that we include fcntl--.h.
85177
85178 2005-08-12  Simon Josefsson  <jas@extundo.com>
85179
85180         * modules/getndelim2: Use ssize_t module.
85181         * modules/getnline: Likewise.
85182         * modules/safe-read: Likewise.
85183         * modules/xreadlink: Likewise.
85184
85185         * modules/ssize_t: New file.
85186
85187 2005-08-12  Simon Josefsson  <jas@extundo.com>
85188
85189         * m4/readline.m4: Look for termcap, curses or ncurses if required.
85190
85191 2005-08-12  Simon Josefsson  <jas@extundo.com>
85192
85193         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85194         ssize_t.
85195
85196 2005-08-12  Simon Josefsson  <jas@extundo.com>
85197
85198         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
85199         readline, getdelim and check_version.
85200         (Support for systems lacking ISO C 99: Sizes of integer types):
85201         Add size_max.
85202
85203 2005-08-12  Bruno Haible  <bruno@clisp.org>
85204
85205         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
85206
85207 2005-08-11  Simon Josefsson  <jas@extundo.com>
85208
85209         * modules/readline: New file.
85210
85211         * modules/strnlen (Files): Add strnlen.h.
85212
85213 2005-08-11  Simon Josefsson  <jas@extundo.com>
85214
85215         * m4/readline.m4: New file.
85216
85217 2005-08-11  Simon Josefsson  <jas@extundo.com>
85218
85219         * lib/readline.h, readline.c: New file.
85220
85221 2005-08-11  Simon Josefsson  <jas@extundo.com>
85222
85223         * doc/gnulib.texi (Initial import, Finishing touches): Mention
85224         gl_AVOID.
85225
85226 2005-08-11  Bruno Haible  <bruno@clisp.org>
85227
85228         * lib/strnlen.h (strnlen): Change parameter name to match comment.
85229
85230 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
85231
85232         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
85233
85234 2005-08-10  Simon Josefsson  <jas@extundo.com>
85235
85236         * tests/test-iconvme.c: New file.
85237
85238 2005-08-10  Simon Josefsson  <jas@extundo.com>
85239
85240         * m4/strnlen.m4: New file.
85241
85242         * m4/strndup.m4: Don't check for strnlen declaration, done in
85243         strnlen.m4.
85244
85245 2005-08-10  Simon Josefsson  <jas@extundo.com>
85246
85247         * lib/strndup.c: Use strnlen.h.
85248
85249         * lib/strnlen.h: New file.
85250
85251 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85252
85253         * README: Typos.
85254
85255 2005-08-02  Simon Josefsson  <jas@extundo.com>
85256
85257         * modules/readline: New file.
85258
85259 2005-08-02  Simon Josefsson  <jas@extundo.com>
85260
85261         * modules/getdelim: New file.
85262
85263         * modules/getline: Rewrite, don't use getndelim2.
85264
85265 2005-08-02  Simon Josefsson  <jas@extundo.com>
85266
85267         * m4/getline.m4: Separate out getdelim stuff into separate module.
85268
85269         * m4/getdelim.m4: New file.
85270
85271 2005-08-02  Simon Josefsson  <jas@extundo.com>
85272
85273         * lib/getline.h, getline.c: Rewrite.
85274
85275         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
85276
85277 2005-07-31  Bruno Haible  <bruno@clisp.org>
85278
85279         * lib/lock.h (gl_lock_initializer): New macro.
85280         (gl_lock_define_initialized): Use it.
85281         (gl_rwlock_initializer): New macro.
85282         (gl_rwlock_define_initialized): Use it.
85283         (gl_recursive_lock_initializer): New macro.
85284         (gl_recursive_lock_define_initialized): Use it.
85285
85286 2005-07-30  Karl Berry  <karl@gnu.org>
85287
85288         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
85289         Report from Ben Pfaff, regarding getopt.
85290
85291 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
85292
85293         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
85294         normal way.
85295         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
85296         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
85297         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
85298         (gl_GETOPT): Use the new macros.  Most of the implementation
85299         is moved to the new macros.  This is for programs like Emacs
85300         that don't want all the functionality of gl_GETOPT.
85301
85302 2005-07-26  Bruno Haible  <bruno@clisp.org>
85303
85304         * m4/lock.m4: Update from GNU gettext.
85305
85306 2005-07-26  Bruno Haible  <bruno@clisp.org>
85307
85308         * lib/lock.h: Update from GNU gettext.
85309         * lib/lock.c: Update from GNU gettext.
85310
85311 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
85312
85313         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
85314         obsolescent AC_TRY_RUN.  Include the default includes files, for
85315         'exit'.
85316
85317 2005-07-24  Bruno Haible  <bruno@clisp.org>
85318
85319         * modules/visibility: New file.
85320         * MODULES.html.sh (Misc): Add visibility.
85321
85322 2005-07-24  Bruno Haible  <bruno@clisp.org>
85323
85324         * m4/visibility.m4: New file.
85325
85326 2005-07-24  Bruno Haible  <bruno@clisp.org>
85327
85328         * doc/visibility.texi: New file.
85329
85330 2005-07-22  Bruno Haible  <bruno@clisp.org>
85331
85332         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
85333         $(ALLOCA_H), redundant through BUILT_SOURCES.
85334         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
85335         redundant through BUILT_SOURCES.
85336         * modules/byteswap (Makefile.am): Remove explicit dependency on
85337         $(BYTESWAP_H), redundant through BUILT_SOURCES.
85338         * modules/fnmatch (Makefile.am): Remove explicit dependency on
85339         $(FNMATCH_H), redundant through BUILT_SOURCES.
85340         * modules/getopt (Makefile.am): Remove explicit dependency on
85341         $(GETOPT_H), redundant through BUILT_SOURCES.
85342         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
85343         redundant through BUILT_SOURCES.
85344         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
85345         redundant through BUILT_SOURCES.
85346         * modules/stdbool (Makefile.am): Remove explicit dependency on
85347         $(STDBOOL_H), redundant through BUILT_SOURCES.
85348         * modules/stdint (Makefile.am): Remove explicit dependency on
85349         $(STDINT_H), redundant through BUILT_SOURCES.
85350         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
85351         Remove explicit dependency on $(SYSEXITS_H).
85352         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
85353
85354 2005-07-18  Simon Josefsson  <jas@extundo.com>
85355
85356         * lib/check-version.c (check_version): Accept identical versions too.
85357
85358 2005-07-18  Bruno Haible  <bruno@clisp.org>
85359
85360         * modules/lock: New file.
85361         * MODULES.html.sh (Multithreading): New section.
85362
85363 2005-07-18  Bruno Haible  <bruno@clisp.org>
85364
85365         * m4/lock.m4: New file, from GNU gettext.
85366
85367 2005-07-18  Bruno Haible  <bruno@clisp.org>
85368
85369         * lib/lock.h: New file, from GNU gettext.
85370         * lib/lock.c: New file, from GNU gettext.
85371
85372 2005-07-18  Bruno Haible  <bruno@clisp.org>
85373
85374         * lib/lock.h (gl_once_t): New type.
85375         (gl_once_define, gl_once): New macros.
85376         * lib/lock.c (fresh_once): New variable.
85377         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
85378         functions.
85379
85380 2005-07-16  Simon Josefsson  <jas@extundo.com>
85381
85382         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
85383         workaround, suggested by Bruno.
85384
85385 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85386
85387         * modules/xalloc (Depends-on): Add xalloc-die.
85388         * modules/xvasprintf (Depends-on): Add xalloc-die.
85389
85390 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85391
85392         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
85393         with a minor change.
85394
85395 2005-07-15  Bruno Haible  <bruno@clisp.org>
85396
85397         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
85398         When using lib/poll.c, define poll as rpl_poll.
85399
85400 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
85401
85402         * modules/argp (Depends-on): Remove unlocked-io.
85403
85404 2005-07-14  Derek Price  <derek@ximbiot.com>
85405
85406         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
85407         for glob symlink bug.
85408
85409 2005-07-14  Bruno Haible  <bruno@clisp.org>
85410
85411         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
85412         Instead, test for *_unlocked function declarations directly.
85413
85414 2005-07-11  Simon Josefsson  <jas@extundo.com>
85415
85416         * modules/size_max: New file.
85417
85418         * modules/xsize: Depend on size_max module for size_max.m4.
85419
85420 2005-07-11  Simon Josefsson  <jas@extundo.com>
85421
85422         * lib/size_max.h: New file.
85423
85424 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
85425
85426         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
85427         copyright symbol and the year.
85428         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
85429         (version_etc_va): Use parameterized copyright notice.
85430         Reword to conform to the current GNU coding standards.
85431
85432 2005-07-11  Karl Berry  <karl@gnu.org>
85433
85434         * doc/gnulib.texi (Quoting): new node.
85435         (Initial import): more info, from Patrice.
85436
85437 2005-07-11  Bruno Haible  <bruno@clisp.org>
85438
85439         * gnulib-tool (func_usage): Document option --avoid.
85440         (Command line options): Handle --avoid.
85441         (func_acceptable): New function.
85442         (func_modules_transitive_closure): Use it.
85443
85444 2005-07-11  Bruno Haible  <bruno@clisp.org>
85445
85446         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
85447         Reported by Jim Meyering.
85448
85449 2005-07-10  Bruno Haible  <bruno@clisp.org>
85450
85451         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
85452         Needed when size_t is smaller than 'unsigned int'.
85453         Reported by Paul Eggert.
85454
85455 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85456
85457         * modules/argp (Depends-on): Add unlocked-io
85458
85459 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85460
85461         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
85462         block of defines.
85463
85464 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
85465
85466         * config/srclist.txt: Comment out regcomp.c, since we have a porting
85467         fix now.
85468
85469 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
85470         and Paul Eggert  <eggert@cs.ucla.edu>
85471
85472         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
85473         in wint_t, not wchar_t.  Remove now-unnecessary cast.
85474
85475 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85476
85477         * modules/regex (Files): Add lib/regex_internal.c,
85478         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
85479         (Depends-on): Add extensions.
85480         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
85481
85482 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85483
85484         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
85485         pathconf.
85486         * m4/same.m4 (gl_SAME): Likewise.
85487         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
85488
85489         * m4/regex.m4: Adjust to new libc regex implementation.
85490         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
85491         all the .c and .h parts of (the new) regex.
85492         Quote the m4 stuff better.
85493         Check for RE_ICASE bug of old gnulib.
85494         Check for REG_STARTEND of recent libc.
85495         Rename local variables from jm_* to gl_*.
85496         Quote operand of "test -f".
85497         Say "recent enough" version of libc, not "version 2".
85498         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
85499         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
85500         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
85501         Remove check for btowc, isascii.
85502         Require AM_LANGINFO_CODESET.
85503
85504 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85505
85506         * lib/regex.c, regex.h: Sync from libc.
85507         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
85508         * lib/regexec.c:
85509         New files, synced from libc, except that regex_internal.h
85510         currently has a small porting fix.
85511
85512 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85513
85514         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
85515         regex_internal.c, regexec.c.
85516         Add regex_internal.h too, but as a comment, since the libc version
85517         is currently broken in gnulib mode.
85518
85519 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
85520
85521         Support programs like Emacs that use gnulib but not gettext.
85522         * MODULES.html.sh (Internationalization functions): Add gettext-h.
85523         * modules/gettext-h: New file.
85524         * modules/gettext (Files): Remove lib/gettext.h.
85525         (Depends-on): Add gettext-h.
85526         (Makefile.am): Remove lib_SOURCES.
85527         * modules/argmatch, modules/c-stack, modules/closeout:
85528         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
85529         * modules/execute, modules/file-type, modules/getaddrinfo:
85530         * modules/getopt, modules/human, modules/javacomp:
85531         * modules/javaexec, modules/mkdir-p, modules/obstack:
85532         * modules/openat, modules/pagealign_alloc, modules/pipe:
85533         * modules/quotearg, modules/regex, modules/rpmatch:
85534         * modules/unicodeio, modules/userspec, modules/version-etc:
85535         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
85536         * modules/xsetenv:
85537         Depend on gettext-h, not gettext.
85538
85539 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
85540
85541         * gnulib-tool (func_import): Add support for 'public domain' license.
85542         * modules/alloca, modules/atexit, modules/memmove:
85543         Now public domain, not GPL.
85544         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
85545         * modules/realloc, modules/strerror, modules/strtod:
85546         Now LGPL, not GPL.
85547
85548 2005-07-05  Bruno Haible  <bruno@clisp.org>
85549
85550         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
85551         autoconf CVS. Needed for mingw.
85552
85553 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85554
85555         Remove the dependency of the strftime module on the tzset module.
85556         * modules/strftime (Depends-on): Remove dependency on tzset.
85557
85558 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85559
85560         Remove the dependency of the strftime module on the tzset module.
85561         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
85562         gl_FUNC_TZSET_CLOBBER.
85563
85564 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85565
85566         Remove the dependency of the strftime module on the tzset module.
85567         * lib/strftime.c (my_strftime)
85568         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
85569         Copy the input structure, to work around some of the bug with
85570         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
85571         Solaris releases, you should also use the tzset module, but we won't
85572         require it as a dependency any more since we don't want LGPLed code
85573         to depend on GPLed code.
85574
85575 2005-07-02  Jim Meyering  <jim@meyering.net>
85576
85577         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
85578         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
85579         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
85580         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
85581
85582 2005-07-02  Jim Meyering  <jim@meyering.net>
85583
85584         * lib/backupfile.c (backup_args): Change a `0' to NULL.
85585
85586 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
85587
85588         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
85589         declares only 'struct timespec;' (!).
85590
85591 2005-07-01  Jim Meyering  <jim@meyering.net>
85592
85593         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
85594         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
85595         * lib/save-cwd.c, tempname.c:
85596         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85597         and don't include <sys/file.h>).
85598
85599 2005-06-29  Jim Meyering  <jim@meyering.net>
85600
85601         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
85602         type name.  Use the variable name instead.
85603         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
85604         Likewise.
85605
85606 2005-06-28  Simon Josefsson  <jas@extundo.com>
85607
85608         * modules/check-version (Files): Add check-version.m4.
85609
85610 2005-06-28  Simon Josefsson  <jas@extundo.com>
85611
85612         * m4/check-version.m4: New file, suggested by Jim Meyering
85613         <jim@meyering.net>.
85614
85615 2005-06-28  Simon Josefsson  <jas@extundo.com>
85616
85617         * lib/check-version.h, lib/check-version.c: New files.
85618
85619 2005-06-28  Simon Josefsson  <jas@extundo.com>
85620
85621         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
85622         collision with global variable.  Better indentation.  Don't
85623         increment buffer pointer beyond buffer end.  Based on comments
85624         from Paul Eggert <eggert@cs.ucla.edu>.
85625
85626         * lib/base64.h: Indent.
85627
85628 2005-06-28  Simon Josefsson  <jas@extundo.com>
85629
85630         * doc/gnulib.texi (Library version handling): New section.
85631
85632 2005-06-28  Jim Meyering  <jim@meyering.net>
85633
85634         * check-module (find_included_lib_files): Hard-code another
85635         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
85636         but modules/fts-lgpl (correctly) does not list those files.
85637
85638         * modules/canonicalize (Files): Add lib/pathmax.h.
85639
85640 2005-06-25  Simon Josefsson  <jas@extundo.com>
85641
85642         * modules/check-version: New file.
85643
85644 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
85645
85646         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
85647         initializer of struct addrinfo, as an indication that we don't
85648         care how many members the structure has.
85649
85650 2005-06-24  Derek Price  <derek@ximbiot.com>
85651         and Bruno Haible  <bruno@clisp.org>
85652
85653         Remove stat module & update lstat.
85654         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
85655         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85656         * m4/stat.m4: Remove this file.
85657
85658 2005-06-24  Derek Price  <derek@ximbiot.com>
85659         and Bruno Haible  <bruno@clisp.org>
85660
85661         Remove stat module & update lstat.
85662         * lib/stat.c: Remove this file...
85663         (slash_aware_lstat): ...moving this content and its support...
85664         * lib/lstat.c (rpl_lstat): ...into here.
85665         * lib/lstat.h: New file.
85666
85667 2005-06-24  Derek Price  <derek@ximbiot.com>
85668         and Bruno Haible  <bruno@clisp.org>
85669
85670         Remove stat module & update lstat.
85671         * config/srclist.txt (libc sources): Remove stat.
85672
85673 2005-06-24  Derek Price  <derek@ximbiot.com>
85674         and Bruno Haible  <bruno@clisp.org>
85675
85676         Remove stat module & update lstat.
85677         * MODULES.html.sh (stat): Remove.
85678         * MODULES.html: Regenerated.
85679         * modules/lstat (Description): Correct function name.
85680         (Files): Add "lstat.h".
85681         (Depends-on): Remove stat, add xalloc, stat-macros.
85682         * modules/stat: Remove this file.
85683         (Include): Add "lstat.h", remove <sys/stat.h>.
85684
85685 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
85686
85687         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
85688         (ranged_convert): Don't save conversion in a temporary struct.
85689         This causes a warning with GCC 4.0.0, and anyway in the typical
85690         case it's not worth the extra 100 bytes or so of code.
85691         (ranged_convert, __mktime_internal): When calling a function via a
85692         pointer P, use P () rather than (*P) (), as we now assume C89 or
85693         better.
85694
85695 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85696
85697         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
85698         "who -r" failed to give output.  Problem reported by Tim Waugh.
85699
85700         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
85701         (xcalloc): Use it to avoid needless tests.
85702         Problem reported by Jim Meyering.
85703
85704 2005-06-20  Derek Price  <derek@ximbiot.com>
85705
85706         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
85707         unnecessary for Autoconfs > 2.59c.
85708
85709 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85710
85711         * lib/argp.h (__option_is_short): Check upper limit of
85712         __key. Isprint() requires its argument to have the value
85713         of an unsigned char or EOF.
85714
85715 2005-06-16  Jim Meyering  <jim@meyering.net>
85716
85717         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
85718         when either N or S is zero.
85719
85720 2005-06-16  Derek Price  <derek@ximbiot.com>
85721
85722         * m4/bison.m4: Declare YACC & YFLAGS precious.
85723
85724 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
85725
85726         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
85727         multibyte string or pattern, fall back on unibyte matching.
85728         Problem reported by James Youngman.
85729
85730 2005-06-08  Bruno Haible  <bruno@clisp.org>
85731
85732         * modules/csharpcomp: New file.
85733         * MODULES.html.sh (C#): Add csharpcomp.
85734
85735 2005-06-08  Bruno Haible  <bruno@clisp.org>
85736
85737         * m4/csharpcomp.m4: New file, from GNU gettext.
85738
85739 2005-06-08  Bruno Haible  <bruno@clisp.org>
85740
85741         * lib/csharpcomp.h: New file, from GNU gettext.
85742         * lib/csharpcomp.c: New file, from GNU gettext.
85743         * lib/csharpcomp.sh.in: New file, from GNU gettext.
85744
85745 2005-06-08  Bruno Haible  <bruno@clisp.org>
85746
85747         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
85748         warning on mingw.
85749
85750 2005-06-07  Derek Price  <derek@ximbiot.com>
85751
85752         Sync from CVS.
85753         * lib/glob_.h: Indent nested #ifdef.
85754
85755 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85756
85757         Sync from coreutils.
85758         Use "file name" when talking about file names, instead of "filename"
85759         or "path", as per the GNU coding standards.
85760         * lib/mkdir-p.c: Renamed from makepath.c.
85761         (make_dir_parents): Renamed from make_path.  All callers changed.
85762         * lib/mkdir-p.h: Likewise.  All includers changed.
85763         * lib/filenamecat.c: Renamed from path-concat.c.
85764         (file_name_concat): Renamed from path_concat.  All callers changed.
85765         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
85766         * lib/filenamecat.h: Likewise.  All includers changed.
85767         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
85768         in comments or local variable names.
85769         * lib/basename.c: Likewise.
85770         * lib/canonicalize.c, canonicalize.h: Likewise.
85771         * lib/dirname.c, dirname.h: Likewise.
85772         * lib/euidaccess.c: Likewise.
85773         * lib/exclude.c: Likewise
85774         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
85775         * lib/fsusage.c, fsuage.h: Likewise.
85776         * lib/fts.c, fts_.h: Likewise.
85777         * lib/getcwd.c: Likewise.
85778         * lib/getloadavg.c: Likewise.
85779         * lib/mkstemp.c: Likewise.
85780         * lib/mountlist.c, mountlist.h: Likewise.
85781         * lib/openat.c, openat.h: Likewise.
85782         * lib/readlink-stub.c: Likewise.
85783         * lib/readutmp.c, readutmp.h: Likewise.
85784         * lib/rename.c: Likewise.
85785         * lib/rmdir.c: Likewise.
85786         * lib/same.c: Likewise.
85787         * lib/savedir.c: Likewise.
85788         * lib/stripslash.c: Likewise.
85789         * lib/tempname.c: Likewise.
85790         * lib/xreadlink.c: Likewise.
85791         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
85792         All uses changed.
85793         * lib/exclude.h: Likewise.
85794
85795         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
85796         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85797         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
85798         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85799         * lib/pathmax.h: Include <limits.h> unconditionally, since other
85800         files have been getting away with it for years (MORE/BSD 4.3
85801         is extinct now).
85802         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
85803         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85804
85805         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
85806         Define to 256, not 255, as per modern POSIX.
85807
85808 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85809
85810         Sync from coreutils.
85811         Use "file name" when talking about file names, instead of "filename"
85812         or "path", as per the GNU coding standards.
85813         * MODULES.html.sh: mkdir-p renamed from makepath.
85814         filenamecat renamed from path-concat.
85815         * modules/filenamecat: Renamed from modules/path-concat.
85816         (Files): filenamecat.h and filenamecat.c renamed from
85817         path-concat.h and path-concat.c.
85818         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
85819         (Include): filenamecat.h, not path-concat.h.
85820         * modules/mkdir-p: Renamed from modules/makepath.
85821         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
85822         makepath.c.
85823         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
85824         (Include): mkdir-p.h, not makepath.h.
85825
85826 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85827
85828         Sync from coreutils.
85829         * m4/mkdir-p.m4: Renamed from makepath.m4.
85830         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
85831         Rename files from makepath.c to mkdir-p.c, and from
85832         makepath.h to mkdir-p.h.
85833         * m4/filenamecat.m4: Renamed from path-concat.m4.
85834         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
85835         Rename files from path-concat.c to filenamecat.c,
85836         and from path-concat.h to filenamecat.h.
85837         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
85838         "file name" in local variables or comments.
85839         * m4/rename.m4: Likewise.
85840
85841 2005-06-01  Bruno Haible  <bruno@clisp.org>
85842
85843         * modules/csharpexec: New file.
85844         * MODULES.html.sh (C#): New section.
85845
85846 2005-06-01  Bruno Haible  <bruno@clisp.org>
85847
85848         * m4/csharp.m4: New file, from GNU gettext.
85849         * m4/csharpexec.m4: New file, from GNU gettext.
85850
85851 2005-06-01  Bruno Haible  <bruno@clisp.org>
85852
85853         * lib/csharpexec.h: New file, from GNU gettext.
85854         * lib/csharpexec.c: New file, from GNU gettext.
85855         * lib/csharpexec.sh.in: New file, from GNU gettext.
85856
85857 2005-05-31  Derek Price  <derek@ximbiot.com>
85858             Paul Eggert  <eggert@cs.ucla.edu>
85859
85860         Sync from cvs.
85861         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85862
85863 2005-05-31  Derek Price  <derek@ximbiot.com>
85864             Paul Eggert  <eggert@cs.ucla.edu>
85865
85866         Sync from cvs.
85867         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85868
85869 2005-05-29  Derek Price  <derek@ximbiot.com>
85870
85871         * config/srclist.txt (glob_.h, glob.c): Add these files.
85872
85873 2005-05-29  Derek Price  <derek@ximbiot.com>
85874
85875         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
85876         * modules/glob: New file.
85877         * modules/getlogin_r: Add link to POSIX spec in description.
85878
85879 2005-05-29  Derek Price  <derek@ximbiot.com>
85880             Paul Eggert  <eggert@cs.ucla.edu>
85881
85882         * m4/glob.m4: New file.
85883
85884 2005-05-29  Derek Price  <derek@ximbiot.com>
85885             Paul Eggert  <eggert@cs.ucla.edu>
85886
85887         * lib/glob_.h, lib/glob.c: New files.
85888
85889 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85890
85891         * modules/fts (Files): Remove m4/inttypes-pri.m4.
85892         * modules/fts-lgpl (Depends-on): Remove gettext.
85893
85894 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85895
85896         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
85897         and don't require gt_INTTYPES_PRI.
85898
85899 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85900
85901         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
85902
85903         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
85904         the configuration hassle isn't worth it.
85905         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
85906         (LONGEST_MODIFIER, PRIuMAX): Remove.
85907
85908 2005-05-27  Bruno Haible  <bruno@clisp.org>
85909
85910         * lib/getlogin_r.h: Remove second include of <stddef.h>.
85911
85912 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
85913
85914         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
85915         _POSIX_PTHREAD_SEMANTICS for Solaris.
85916
85917 2005-05-25  Derek Price  <derek@ximbiot.com>
85918
85919         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
85920
85921 2005-05-25  Derek Price  <derek@ximbiot.com>
85922             Paul Eggert  <eggert@cs.ucla.edu>
85923
85924         * modules/getlogin_r, m4/getlogin_r.m4: New files.
85925         * lib/getlogin_r.c, getlogin_r.h: New files.
85926
85927 2005-05-25  Bruno Haible  <bruno@clisp.org>
85928             Derek Price  <derek@ximbiot.com>
85929
85930         * lib/getlogin_r.h: Simplify API documentation.
85931
85932 2005-05-23  Derek Price  <derek@ximbiot.com>
85933
85934         * modules/minmax (Files): Add m4/minmax.m4.
85935         (configure.ac): Add gl_MINMAX.
85936
85937 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
85938
85939         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
85940         so that unistd-safer.h (GPL'ed code) need not be included.
85941
85942 2005-05-22  Bruno Haible  <bruno@clisp.org>
85943
85944         * m4/minmax.m4: New file.
85945         Based on a patch by Derek Price <derek@ximbiot.com>.
85946
85947 2005-05-22  Bruno Haible  <bruno@clisp.org>
85948
85949         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
85950         (INT64_MIN): Fix definition.
85951         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
85952
85953         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
85954         NEED_SIGNED_INT_TYPES.
85955
85956         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
85957         HAVE_SYSTEM_INTTYPES.
85958
85959 2005-05-22  Bruno Haible  <bruno@clisp.org>
85960
85961         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
85962         Also include <sys/param.h> if it defines MIN, MAX.
85963         Based on a patch by Derek Price <derek@ximbiot.com>.
85964
85965 2005-05-21  Jim Meyering  <jim@meyering.net>
85966
85967         * modules/fts (Files): Add m4/inttypes-pri.m4.
85968         (Depends-on): Add lstat and remove gettext.  Alphabetize.
85969
85970 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85971
85972         New fts module.
85973         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
85974         (setup_dir, free_dir): New functions.
85975         (enter_dir, leave_dir): Define trivial
85976         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
85977         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
85978         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
85979         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
85980         Move to fts-cycle.c.
85981         (fts_open): Use setup_dir.
85982         (fts_close): Use free_dir.
85983         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
85984         This adds a label and some gotos, but the alternatives were messier.
85985         Check for memory allocation failure when entering a dir.
85986         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
85987         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
85988         (FTS): New member fts_cycle, that is a union that contains the
85989         old active_dir_ht and cycle_state.  All uses changed to mention
85990         fts_cycle.ht and fts_cycle.state.
85991         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
85992         fts.c, with the following changes:
85993         (setup_dir, free_dir): New functions.
85994         (enter_dir): Now returns bool.  Return true if successful, false
85995         if memory exhausted.  All callers changed.
85996         Do not bother partly cleaning up on
85997         memory allocation failure; that is free_dir's job.
85998         However, free ad if hash_insert fails, to avoid memory leak.
85999         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
86000         fts->fts_options to see which union member to use.
86001
86002 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86003
86004         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
86005         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
86006
86007 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86008
86009         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
86010
86011 2005-05-20  Jim Meyering  <jim@meyering.net>
86012
86013         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
86014         Now a macro, to pacify GCC.
86015
86016 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86017
86018         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
86019         of -1.
86020
86021 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86022
86023         * lib/chown.c (rpl_chown): Return -1 on failure.
86024
86025 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86026
86027         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
86028         Don't check for stddef.h.
86029         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
86030         don't use its results.
86031         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
86032         since we include them unconditionally.  Don't require
86033         AM_STDBOOL_H, since stdbool is a prerequisite.
86034         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
86035         since we assume C89 or better.
86036         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
86037         as we don't use their results.
86038         Don't check for fchdir, memmove, memset, strrchr, as we use
86039         them unconditionally.
86040         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
86041         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
86042
86043 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86044
86045         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
86046         Include <stddef.h> unconditionally, since we assume C89 now.
86047         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
86048         * lib/fts.c: Include fts_.h first, to check interface.
86049         Do not include intprops.h; no longer needed.
86050         Include cycle-check.h and hash.h, since fts_.h no longer does.
86051         Remove unnecessary casts of closedir to void.
86052         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
86053         decide whether to decrement nlinks.
86054         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
86055         (FTS): Use struct hash_table * instead of Hash_table, so that
86056         we no longer need to include hash.h here.
86057
86058 2005-05-18  Jim Meyering  <jim@meyering.net>
86059
86060         * modules/dirfd (License): Change to LGPL.  Most of the code
86061         is already in the public domain.
86062
86063 2005-05-18  Jim Meyering  <jim@meyering.net>
86064
86065         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
86066         Reported by Yoann Vandoorselaere.
86067
86068 2005-05-17  Jim Meyering  <jim@meyering.net>
86069
86070         * m4/fts.m4: New file, from coreutils.
86071
86072 2005-05-17  Jim Meyering  <jim@meyering.net>
86073
86074         * lib/fts.c, lib/fts_.h: New files, from coreutils.
86075
86076 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86077
86078         Sync from coreutils.
86079         * m4/unlinkdir.m4: New file.
86080
86081 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86082
86083         Sync from coreutils.
86084         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
86085         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
86086         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
86087         White space changes only.
86088         * lib/makepath.c (make_path): Port to hosts where leading "//" is
86089         special.
86090         * lib/yesno.c: Include getline.h, not ctype.h.
86091         (yesno): Don't remove leading white space; POSIX doesn't allow it.
86092         Use getline to remove arbitrary restriction on response length.
86093
86094 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86095
86096         * config/srclist-update: Spell out "Street" in FSF postal
86097         mail address; this is the style the FSF seems to prefer.
86098
86099         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
86100         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
86101         this updates FSF postal mail address.
86102
86103         Sync from coreutils.
86104         * modules/unlinkdir: New file.
86105         * modules/yesno (Depends-on): Add getline.
86106         * MODULES.html.sh (File system functions): Add unlinkdir.
86107
86108 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86109
86110         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
86111         lib/strsep.h:
86112         Change the initial comment to refer to GPL, not LGPL.
86113         gnulib-tool will change it to LGPL as needed.
86114
86115         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
86116         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
86117         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
86118         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
86119         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
86120         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
86121         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
86122         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
86123         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
86124         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
86125         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
86126         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
86127         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
86128         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
86129         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
86130         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
86131         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
86132         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
86133         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
86134         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
86135         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
86136         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
86137         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
86138         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
86139         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
86140         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
86141         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
86142         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
86143         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
86144         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
86145         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
86146         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
86147         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
86148         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
86149         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
86150         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
86151         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
86152         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
86153         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
86154         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
86155         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
86156         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
86157         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
86158         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
86159         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
86160         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
86161         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
86162         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
86163         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
86164         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
86165         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86166         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
86167         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
86168         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
86169         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
86170         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
86171         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
86172         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
86173         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
86174         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
86175         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
86176         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
86177         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
86178         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
86179         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
86180         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
86181         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
86182         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
86183         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
86184         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
86185         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
86186         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
86187         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
86188         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
86189         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
86190         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
86191         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
86192         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
86193         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
86194         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
86195         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
86196         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
86197         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
86198         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
86199         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
86200         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
86201         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
86202         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
86203         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
86204         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
86205         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
86206         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
86207         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
86208         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
86209         lib/yesno.c, lib/yesno.h:
86210         Update FSF postal mail address.
86211
86212 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86213
86214         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
86215         tests/test-memmem.c, tests/test-stpncpy.c:
86216         Update FSF postal mail address.
86217
86218 2005-05-13  Bruno Haible  <bruno@clisp.org>
86219
86220         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
86221         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
86222         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
86223         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
86224         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
86225         Add support for 64-bit integers in the MSVC compiler.
86226
86227 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86228
86229         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
86230
86231 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
86232
86233         * gnulib-tool (func_import): Sort and uniquify recommended includes.
86234
86235 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
86236
86237         * doc/getdate.texi (General date syntax): Don't say that date
86238         date --iso-8601=ns generates acceptable dates; it doesn't yet.
86239         Problem reported by Nic Ferrier.
86240
86241 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86242
86243         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
86244         specified in ai_socktype. Fix invalid ai_protocol
86245         check. ai_protocol is usually set to 0 or depending on
86246         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
86247         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
86248         ai_socktype / ai_protocol in the returned addrinfo structure.
86249
86250 2005-05-10  Simon Josefsson  <jas@extundo.com>
86251
86252         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
86253         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86254
86255 2005-05-10  Karl Berry  <karl@gnu.org>
86256
86257         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
86258         (from http://www.gnu.org/licenses).
86259         * doc/COPYING.LIB: also rename to COPYING.LESSER.
86260         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
86261         fdl.texi suffices.
86262
86263 2005-05-10  Karl Berry  <karl@gnu.org>
86264
86265         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
86266         (COPYING.DOC): remove.
86267
86268         * config/srclist-update: new FSF address.
86269
86270 2005-05-10  Derek Price  <derek@ximbiot.com>
86271
86272         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
86273         possible.
86274
86275 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86276             Bruno Haible  <bruno@clisp.org>
86277
86278         * modules/inet_ntop: New file.
86279         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86280         inet_ntop.
86281
86282 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86283             Bruno Haible  <bruno@clisp.org>
86284
86285         * m4/inet_ntop.m4: New file.
86286
86287 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86288             Bruno Haible  <bruno@clisp.org>
86289
86290         * lib/inet_ntop.h: New file.
86291         * lib/inet_ntop.c: New file, from glibc with modifications.
86292
86293 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
86294
86295         * modules/time_r (License): Change to LGPL.
86296         * modules/extensions (License): Change to LGPL.  Actually,
86297         the license is more permissive than that, but currently gnulib-tool
86298         doesn't know how to handle more-permissive licenses.
86299
86300         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
86301         Problem reported by Dave Love.
86302
86303 2005-05-08  Jim Meyering  <jim@meyering.net>
86304
86305         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
86306         blank.
86307
86308 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86309
86310         * modules/argmatch (Depends-on): Add stdbool.
86311         * modules/backupfile (Depends-on): Likewise.
86312         * modules/chdir-long (Depends-on): Likewise.
86313         * modules/closeout (Depends-on): Likewise.
86314         * modules/cycle-check (Depends-on): Likewise.
86315         * modules/dirname (Depends-on): Likewise.
86316         * modules/fnmatch (Depends-on): Likewise.
86317         * modules/fsusage (Depends-on): Likewise.
86318         * modules/fwriteerror (Depends-on): Likewise.
86319         * modules/getcwd (Depends-on): Likewise.
86320         * modules/getloadavg (Depends-on): Likewise.
86321         * modules/hard-locale (Depends-on): Likewise.
86322         * modules/makepath (Depends-on): Likewise.
86323         * modules/mountlist (Depends-on): Likewise.
86324         * modules/nanosleep (Depends-on): Likewise.
86325         * modules/posixtm (Depends-on): Likewise.
86326         * modules/quotearg (Depends-on): Likewise.
86327         * modules/readtokens (Depends-on): Likewise.
86328         * modules/readtokens0 (Depends-on): Likewise.
86329         * modules/readutmp (Depends-on): Likewise.
86330         * modules/save-cwd (Depends-on): Likewise.
86331         * modules/strftime (Depends-on): Likewise.
86332         * modules/userspec (Depends-on): Likewise.
86333         * modules/utimecmp (Depends-on): Likewise.
86334         * modules/xgetcwd (Depends-on): Likewise.
86335         * modules/xnanosleep (Depends-on): Likewise.
86336         * modules/xstrtod (Depends-on): Likewise.
86337         * modules/yesno (Depends-on): Likewise.
86338
86339 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
86340
86341         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
86342         needless checks.
86343
86344 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86345
86346         Merge from coreutils.  Among other things,
86347         add bulletproofing for cases where stdin, stdout, or stderr are closed.
86348         * lib/fd-safer.c: New file.
86349         * lib/fcntl-safer.h, open-safer.c: Remove.
86350         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
86351         * lib/dup-safer.c: Include unistd-safer.h first.
86352         Don't include errno.h.
86353         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
86354         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
86355         * lib/file-type.c: Rely on file-type.h change.
86356         * lib/getloadavg.c: Include unistd-safer.h.
86357         (getloadavg): Use safer open.
86358         * lib/getusershell.c: Include "stdio-safer.h".
86359         (getusershell): Use safer fopen.
86360         * lib/long-options.c (long_options): Use NULL rather than 0.
86361         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
86362         'free'.
86363         * lib/modechange.c: Likewise.
86364         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
86365         (MODE_DONE): New constant.
86366         (struct mode_change): Remove 'next' member.
86367         (make_node_op_equals): New function; like the old one of the
86368         same name, except it allocates an array.
86369         (mode_compile, mode_create_from_ref): Use it.
86370         (mode_compile): Allocate result as an array, not a linked list.
86371         Parse octal string ourself, so that we catch mistakes like "+0".
86372         (mode_adjust): Arg is an array, not a linked list.
86373         * lib/modechange.c: Include stat-macros.h, xalloc.h.
86374         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
86375         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
86376         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
86377         Remove.  This is now stat-macros.h's job.
86378         (talloc): Remove.  All callers replaced by xalloc, so that
86379         our invokers don't have to worry about reporting memory failures.
86380         (make_node_op_equals): Remove.
86381         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86382         New constants.
86383         (struct mode_change): Moved here from modechange.h.
86384         (mode_append_entry): Remove.
86385         (mode_compile): Remove MASKED_OPS arg, since it encouraged
86386         apps to have incorrect behavior.  Use simpler algorithm for head
86387         and tail.  Don't futz with umask; that's now the job of mode_adjust.
86388         Detect more invalid usages rather than having somewhat-random behavior.
86389         Don't insert an "a=" action, as that leads to incorrect behavior.
86390         (mode_compile, mode_create_from_ref): Return NULL on error instead
86391         of an enum, since now there's only one way to have an error.  All
86392         callers changed.
86393         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
86394         at the correct time.  Simplify calculation of "+u" and its ilk.
86395         Don't mishandle "+X".
86396         (mode_free): Remove "register" and localize decls.
86397         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86398         (struct mode_change): Move to modechange.c; callers don't
86399         need to see this stuff.
86400         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
86401         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
86402         (mode_change, mode_adjust): Reflect the new signatures noted above.
86403         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
86404         that might redefine system include files.
86405         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
86406         (my_usleep): Use NULL rather than (void *) 0.
86407         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
86408         Use siginterrupt to specify that system calls should be interrupted.
86409         (rpl_nanosleep): Move initialization of suspended closer to call of
86410         my_usleep.
86411         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
86412         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
86413         (desirable_utmp_entry): New function.
86414         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
86415         using x2nrealloc, to simplify logic.
86416         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
86417         size calculation.  Do not assume utmp file is a regular file.
86418         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
86419         (READ_UTMP_CHECK_PIDS): New constant.
86420         * lib/save-cwd.c: Include unistd-safer.h.
86421         (save_cwd): Use fd_safer.
86422         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
86423         [!_LIBC] Include "stat-macros.h" instead.
86424         * lib/unistd-safer.h (fd_safer): New decl.
86425
86426 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86427
86428         * modules/getloadavg (Depends-on): Add unistd-safer.
86429         * modules/getusershell (Depends-on): Add stdio-safer.
86430         * modules/lstat (Depends-on): Remove xalloc.
86431         * modules/mkstemp (Depends-on): Add stat-macros.
86432         * modules/modechange (Depends-on): Remove xstrtol.
86433         Add stat-macros, xalloc.
86434         * modules/save-cwd (Depends-on): Add unistd-safer.
86435         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
86436         * modules/unistd-safer (Files): Add lib/fd-safer.c
86437         (Makefile.am): Remove lib_SOURCES.
86438
86439         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
86440         Remove fcntl-safer; unistd-safer supersedes it.
86441
86442 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86443
86444         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
86445         AC_HEADER_STAT.
86446         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
86447         (gl_PREREQ_CHOWN): Remove.
86448         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
86449         it.  Don't require AC_HEADER_STAT.
86450         (gl_PREREQ_LSTAT): Remove.
86451         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
86452         Don't require AC_HEADER_STAT.
86453         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
86454         (gl_PREREQ_RMDIR): Remove.
86455         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
86456         mention stat-macros.h or AC_HEADER_STAT, since we'll make
86457         the stat-macros module a prerequisite.
86458         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
86459         * m4/filemode.m4 (gl_FILEMODE): Likewise.
86460         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
86461         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
86462         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
86463         variable names.
86464         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
86465         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
86466         variable prefixes.
86467         * m4/fcntl-safer.m4: Remove.
86468         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
86469         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
86470         Invoke gl_PREREQ_FD_SAFER.
86471         (gl_PREREQ_FD_SAFER): New macro.
86472         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
86473         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
86474         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
86475         Remove duplicate call to AC_LIBOBJ(readutmp).
86476         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
86477
86478         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
86479         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
86480
86481 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86482
86483         * MODULES.html.sh (Misc): Add byteswap.
86484
86485 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86486
86487         * modules/getcwd (Depends-on): Add extensions.
86488         * modules/openat (Depends-on): Likewise.
86489
86490 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86491
86492         * modules/byteswap: New file.
86493
86494 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86495
86496         * m4/byteswap.m4: New file.
86497
86498 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86499
86500         * lib/byteswap_.h: New file.
86501
86502 2005-04-25  Karl Berry  <karl@gnu.org>
86503
86504         * m4/gettext.m4: Update from GNU gettext 0.14.4.
86505
86506 2005-04-25  Albert Chin  <china@thewrittenword.com>
86507
86508         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
86509         Toolkit C bug.
86510
86511 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
86512
86513         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
86514         (func_ln_if_changed): Remove forcibly for no error message
86515         in case file does not exist.
86516
86517 2005-04-19  Simon Josefsson  <jas@extundo.com>
86518
86519         * gnulib-tool (Options): Make --symlink mean --symbolic.
86520
86521 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
86522
86523         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
86524
86525 2005-04-16  Simon Josefsson  <jas@extundo.com>
86526
86527         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
86528
86529 2005-04-15  Simon Josefsson  <jas@extundo.com>
86530
86531         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
86532
86533 2005-04-15  Simon Josefsson  <jas@extundo.com>
86534
86535         * gnulib-tool: Rename --symlink to --symbolic.
86536
86537 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
86538
86539         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
86540         symbolic links to files instead of copying/moving.  Add --aux-dir,
86541         specifying directory relative --dir where auxiliary build tools
86542         are placed.
86543
86544 2005-04-14  Bruno Haible  <bruno@clisp.org>
86545
86546         * modules/allocsa (License): Change to LGPL.
86547         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86548
86549 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
86550
86551         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
86552         that "UTC +1 second" continues to work.  Problem reported
86553         by Dmitry V. Levin.
86554         (relunit_snumber): New rule.
86555         (relunit): Use it.
86556
86557 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
86558
86559         * lib/getdate.y (universal_time_zone_table): New constant.
86560         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
86561         universal_time_zone_table.
86562         (lookup_zone): Prefer universal_time_zone_table to
86563         local_time_zone_table, so that "GMT" time stamps are allowed in
86564         London during the summer.  Problem reported by Ian Abbott.
86565
86566 2005-04-12  Jim Meyering  <jim@meyering.net>
86567
86568         * lib/human.c (humblock): Set *options even when returning due to
86569         xstrtoumax conversion failure.  Thanks to a used-uninitialized
86570         warning from gcc-4.
86571
86572 2005-04-09  Jim Meyering  <jim@meyering.net>
86573
86574         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
86575         -Wuninitialized: initialize tm0.tm_year.
86576
86577 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
86578
86579         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
86580         count, since there's no maximum.  All uses changed.
86581         Add member dsts_seen.
86582         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
86583         not being INT_MAX.
86584         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
86585         Use pc_rels_seen to decide whether a date is absolute.
86586
86587         * lib/getdate.y (number): Don't overwrite year.
86588         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
86589         check.
86590
86591 2005-04-02  Simon Josefsson  <jas@extundo.com>
86592
86593         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
86594         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
86595
86596 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
86597
86598         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
86599         where no absolute path name can be longer than PATH_MAX.
86600
86601 2005-03-27  Jim Meyering  <jim@meyering.net>
86602
86603         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
86604
86605 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
86606
86607         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
86608         "one's complement" -> "ones' complement" in comment, as per Knuth.
86609         "value of type" -> "type or expression" in comment.
86610         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
86611
86612 2005-03-26  Jim Meyering  <jim@meyering.net>
86613
86614         Comment nits.
86615         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
86616         Correct typos: s/or/of/.
86617
86618 2005-03-26  Jim Meyering  <jim@meyering.net>
86619
86620         * modules/check-include-files: Move to ../ and rename to...
86621         * check-module: ...this.
86622
86623 2005-03-25  Jim Meyering  <jim@meyering.net>
86624
86625         * modules/xvasprintf (Files): Add xalloc.h.
86626
86627 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
86628
86629         * modules/gettext (Files): config/config.rpath ->
86630         build-aux/config.rpath
86631         * modules/iconv (Files): Likewise.
86632         Problem reported by Oskar Liljeblad.
86633
86634 2005-03-23  Jim Meyering  <jim@meyering.net>
86635
86636         * modules/check-include-files: New script to check for
86637         missing dependencies, multiple includes, etc.
86638
86639         * modules/c-strtold (Depends-on): Add xalloc.
86640         * modules/c-strtod (Depends-on): Add xalloc.
86641         * modules/hash (Depends-on): Add xalloc.
86642         (Files): Remove lib/xalloc.h.
86643
86644         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
86645         * modules/userspec (Files): Add lib/inttostr.h.
86646
86647 2005-03-23  Jim Meyering  <jim@meyering.net>
86648
86649         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
86650
86651 2005-03-22  Jim Meyering  <jim@meyering.net>
86652
86653         * modules/stat-macros: New module.
86654         * modules/canonicalize, modules/euidaccess, modules/file-type,
86655         * modules/filemode, modules/lchown, modules/makepath,
86656         * modules/rmdir, modules/stat: Depend on new stat-macros module
86657         rather than listing lib/stat-macros.h manually.
86658         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
86659
86660 2005-03-22  Jim Meyering  <jim@meyering.net>
86661
86662         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
86663
86664 2005-03-22  Bruno Haible  <bruno@clisp.org>
86665
86666         * config/srclist.txt: Replace target directory 'config' with
86667         'build-aux'.
86668         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
86669         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
86670         ../build-aux/.
86671
86672 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
86673
86674         * modules/chdir-long (Depends-on): Add mempcpy.
86675
86676         * modules/acl, modules/backupfile, modules/c-strtod,
86677         modules/c-strtold, modules/canon-host, modules/canonicalize,
86678         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
86679         modules/exclude, modules/exitfail, modules/file-type,
86680         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
86681         modules/getdate, modules/getline, modules/getpagesize,
86682         modules/getpass, modules/getugroups, modules/group-member,
86683         modules/hard-locale, modules/hash, modules/human, modules/idcache,
86684         modules/inttostr, modules/long-options, modules/makepath,
86685         modules/md5, modules/memcasecmp, modules/memcoll,
86686         modules/modechange, modules/mountlist, modules/path-concat,
86687         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
86688         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
86689         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
86690         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
86691         modules/strftime, modules/strndup, modules/strverscmp,
86692         modules/timespec, modules/unlocked-io, modules/userspec,
86693         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
86694         modules/yesno:
86695         Remove lib_SOURCES line from Makefile.am section, as this is now
86696         done automatically by the corresponding Autoconf macro.
86697
86698 2005-03-21  Jim Meyering  <jim@meyering.net>
86699
86700         Changes imported from coreutils.
86701
86702         * lib/cycle-check.c: Don't include xalloc.h.
86703
86704         * lib/path-concat.c: Don't include assert.h.
86705         (path_concat): Remove assertion that would have triggered
86706         for ABASE starting with more than one slash.
86707         Reported by Andreas Schwab.
86708
86709         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
86710         properly when ABASE is an absolute file name.
86711         Correct the description of this function.
86712         Include <assert.h>.
86713         Add an assertion and a test driver.
86714         This fixes a bug introduced on 2004-07-02.
86715         Andreas Schwab reported the resulting failure of cp --parents:
86716         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
86717
86718 2005-03-21  Jim Meyering  <jim@meyering.net>
86719
86720         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
86721         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
86722
86723 2005-03-21  Jim Meyering  <jim@meyering.net>
86724         and  Paul Eggert  <eggert@cs.ucla.edu>
86725
86726         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
86727         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
86728         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
86729         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
86730         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
86731         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
86732         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
86733         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
86734         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
86735         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
86736         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
86737         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
86738         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
86739         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
86740         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
86741         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
86742         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
86743         for these modules.
86744
86745 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
86746
86747         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
86748         (which shouldn't happen), generate nothing instead of returning 0
86749         immediately, so that nstrftime (NULL, ...) doesn't return 0.
86750
86751 2005-03-16  Bruno Haible  <bruno@clisp.org>
86752
86753         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
86754         HAVE_LONGLONG_64BIT.
86755
86756 2005-03-16  Bruno Haible  <bruno@clisp.org>
86757
86758         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
86759         HAVE_LONGLONG_64BIT.
86760
86761 2005-03-16  Bruno Haible  <bruno@clisp.org>
86762
86763         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
86764         HAVE_LONGLONG_64BIT.
86765
86766 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86767
86768         * lib/strftime.c (my_strftime): Prepend space to format so that we can
86769         reliably distinguish strftime failure from empty output on POSIX
86770         hosts.
86771
86772 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86773
86774         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
86775         (iconv_string): Don't guess a size-zero buffer, as that might cause
86776         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
86777         result would be 'too large', where 'too large' is (heuristically)
86778         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
86779         overflow concerns.  This will prevent some unwanted malloc failures
86780         when the inputs are very large.
86781
86782 2005-03-15  Karl Berry  <karl@gnu.org>
86783
86784         * config/srclist.txt (config.rpath): from gettext.
86785         * config/config.rpath: update.
86786
86787 2005-03-15  Bruno Haible  <bruno@clisp.org>
86788
86789         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
86790         to 'negate'.
86791
86792         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
86793         variable.
86794
86795         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
86796         results.
86797
86798 2005-03-14  Simon Josefsson  <jas@extundo.com>
86799
86800         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
86801         <fx@gnu.org>.
86802
86803 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
86804
86805         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
86806         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
86807         intprops.h.
86808         * lib/strtol.c: Likewise.
86809
86810 2005-03-14  Jim Meyering  <jim@meyering.net>
86811
86812         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
86813         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
86814         to be nonzero so that we (and caller) can detect the difference
86815         between a valid zero-length expansion and an error return, even
86816         when the underlying strftime fails before writing anything into
86817         that location.
86818
86819 2005-03-14  Bruno Haible  <bruno@clisp.org>
86820
86821         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
86822         Update from GNU gettext 0.14.3.
86823
86824 2005-03-10  Jim Meyering  <jim@meyering.net>
86825
86826         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
86827
86828 2005-03-10  Jim Meyering  <jim@meyering.net>
86829
86830         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
86831         so that this module works on systems without fchdir.
86832
86833 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
86834
86835         Factor int-properties macros into a single file, except for
86836         glibc-related files.
86837         * lib/intprops.h: New file.
86838         * lib/getloadavg.c: Include it instead of limits.h.
86839         (INT_STRLEN_BOUND): Remove.
86840         * lib/human.c: Include intprops.h.
86841         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
86842         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
86843         302/1000.
86844         * lib/inttostr.h: Include intprops.h instead of limits.h.
86845         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
86846         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
86847         for consistency with intprops.h.
86848         (time_t_is_integer, twos_complement_arithmetic): Use them.
86849         * lib/sig2str.h: Include <signal.h>, intprops.h.
86850         (INT_STRLEN_BOUND): Remove.
86851         * lib/strftime.c (TYPE_SIGNED): Remove.
86852         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
86853         * lib/strtol.c: Adjust comments to match intprops.h.
86854         * lib/userspec.c: Include intprops.h.
86855         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
86856         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
86857         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
86858         instead of rolling our own expressions.
86859         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
86860
86861         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
86862         instead of int.
86863         (my_strftime): Do not mishandle years close to INT_MAX, by doing
86864         the right thing even if adding 1900 would overflow.  Similarly
86865         for tm_mon + 1 and tm_yday + 1.
86866         Make %Y always equivalent to %C%y, and similarly for %G and %g.
86867         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
86868         (DO_SIGNED_NUMBER): New macro.
86869         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
86870
86871 2005-03-07  Bruno Haible  <bruno@clisp.org>
86872
86873         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
86874
86875 2005-03-07  Bruno Haible  <bruno@clisp.org>
86876
86877         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
86878
86879 2005-03-04  Derek R. Price  <derek@ximbiot.com>
86880
86881         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
86882         (func_import): Only replace files via --import when they have actually
86883         changed.
86884
86885 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86886
86887         * m4/mmap-anon.m4: New file.
86888         * m4/pagealign_alloc.m4: New file.
86889
86890 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86891             Bruno Haible  <bruno@clisp.org>
86892
86893         * modules/pagealign_alloc: New file.
86894         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
86895
86896 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86897             Bruno Haible  <bruno@clisp.org>
86898
86899         * lib/pagealign_alloc.h: New file.
86900         * lib/pagealign_alloc.c: New file.
86901
86902 2005-03-03  Bruno Haible  <bruno@clisp.org>
86903
86904         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
86905         Use an all-permissive copyright notice, recommended by RMS.
86906
86907 2005-03-02  Bruno Haible  <bruno@clisp.org>
86908
86909         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
86910         of AIX, the replacement has to be done only after <string.h> is
86911         included, therefore not in config.h. stpncpy.h does the replacement,
86912         and stpncpy.c uses it.
86913
86914 2005-03-02  Bruno Haible  <bruno@clisp.org>
86915
86916         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
86917         stpncpy.c uses it.
86918
86919 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86920
86921         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
86922         The workaround isn't strictly needed for POSIX conformance, and
86923         it's too much of a pain to configure and maintain.  We'll ask
86924         people to fix their kernels instead.
86925         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
86926         (NANOSLEEP_BUG_WORKAROUND): Remove.
86927         (xnanosleep): Remove the workaround.
86928
86929 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86930
86931         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
86932         Reported by Derek Price.
86933         (Include): Add "timespec.h".
86934
86935         * modules/xnanosleep (Depends-on): Remove gethrxtime.
86936
86937 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86938
86939         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
86940         to detect nanosleep bug.
86941
86942 2005-03-01  Bruno Haible  <bruno@clisp.org>
86943
86944         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
86945
86946 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
86947
86948         * modules/gethrxtime: New file.
86949         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
86950         (Depends-on): Add gethrxtime.
86951         (configure.ac): Add gl_XNANOSLEEP.
86952         (Makefile.am): Remove lib_SOURCES line.
86953
86954 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86955
86956         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
86957         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
86958
86959 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86960
86961         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
86962         * lib/timespec.h (gettime): Return void, since it always
86963         succeeds now.  All uses changed.
86964         * lib/gettime.c (gettime): Likewise.
86965         [HAVE_NANOTIME]: Prefer nanotime.
86966         Assume gettimeofday succeeds, as POSIX requires.
86967         Assime time () succeeds, since other code already does.
86968         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
86969         (timespec_subtract): Remove.
86970         (NANOSLEEP_BUG_WORKAROUND): New constant.
86971         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
86972         things considerably.  Use it only on GNU/Linux hosts, since the
86973         workaround shouldn't be needed elsewhere.
86974
86975 2005-02-24  Bruno Haible  <bruno@clisp.org>
86976
86977         * modules/gettext (Files): Add m4/glibc2.m4.
86978
86979 2005-02-24  Bruno Haible  <bruno@clisp.org>
86980
86981         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
86982         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
86983         * m4/progtest.m4:
86984         Update from GNU gettext 0.14.2.
86985         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
86986
86987 2005-02-24  Bruno Haible  <bruno@clisp.org>
86988
86989         * lib/localcharset.c: Update from GNU gettext 0.14.2.
86990         * lib/config.charset: Update from GNU gettext 0.14.2.
86991
86992 2005-02-24  Bruno Haible  <bruno@clisp.org>
86993
86994         * lib/gettext.h: Update from GNU gettext 0.14.2.
86995
86996 2005-02-23  Simon Josefsson  <jas@extundo.com>
86997
86998         * m4/iconvme.m4: New file.
86999
87000 2005-02-23  Jim Meyering  <jim@meyering.net>
87001
87002         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
87003         change.
87004         Thanks to Bruno Haible for catching it.
87005
87006 2005-02-22  Simon Josefsson  <jas@extundo.com>
87007
87008         * modules/iconvme: New file.
87009
87010         * MODULES.html.sh: Add iconvme.
87011
87012 2005-02-22  Simon Josefsson  <jas@extundo.com>
87013
87014         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
87015
87016 2005-02-22  Simon Josefsson  <jas@extundo.com>
87017
87018         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
87019
87020 2005-02-22  Jim Meyering  <jim@meyering.net>
87021
87022         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
87023         s/ifndef/ifdef/.
87024
87025 2005-02-20  Neil Conway  <neilc@samurai.com>
87026
87027         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
87028         returned by OSX/Darwin if the specified buffer is not large
87029         enough for the hostname.
87030
87031 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87032
87033         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
87034         pass it to _help, otherwise the latter coredumps trying to
87035         dereference state.root_argp.
87036
87037 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87038
87039         * modules/chdir-long (Depends-on): Add memrchr.
87040         * modules/memrchr (Files): Add lib/memrchr.h.
87041         (Include): "memrchr.h".
87042
87043 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87044
87045         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
87046
87047 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87048
87049         * lib/memrchr.h: New file.
87050         * lib/chdir-long.c: Include it.
87051         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
87052         Don't bother including stddef.h.
87053
87054 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
87055
87056         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
87057         inclusion.
87058         Include <sys/types.h>, for dev_t.
87059         (ME_DUMMY, ME_REMOTE): Move from here....
87060         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
87061         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
87062         Dmitry V. Levin.
87063         Include mountlist.h first, to test the interface.
87064
87065 2005-01-29  Bruno Haible  <bruno@clisp.org>
87066
87067         * lib/progname.c (program_name): Initialize.
87068         Needed when linking statically on MacOS X.
87069
87070 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87071
87072         Sync from coreutils.
87073         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
87074         (Depends-on): Add c-strtod.
87075         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
87076
87077 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87078
87079         Sync from coreutils.
87080         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
87081
87082         Remove files that are specific to coreutils.
87083         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
87084
87085 2005-01-28  Bruno Haible  <bruno@clisp.org>
87086
87087         * modules/javacomp: New file.
87088         * MODULES.html.sh (Java): Add javacomp.
87089
87090 2005-01-28  Bruno Haible  <bruno@clisp.org>
87091
87092         * m4/javacomp.m4: New file, from GNU gettext.
87093
87094 2005-01-28  Bruno Haible  <bruno@clisp.org>
87095
87096         * lib/javacomp.sh.in: New file, from GNU gettext.
87097         * lib/javacomp.h: New file, from GNU gettext.
87098         * lib/javacomp.c: New file, from GNU gettext.
87099
87100 2005-01-26  Simon Josefsson  <jas@extundo.com>
87101
87102         * lib/gai_strerror.c: Use GPL in header.
87103
87104 2005-01-26  Bruno Haible  <bruno@clisp.org>
87105
87106         * modules/javaexec: New file.
87107         * MODULES.html.sh (Java): Add javaexec.
87108
87109 2005-01-26  Bruno Haible  <bruno@clisp.org>
87110
87111         * m4/javaexec.m4: New file, from GNU gettext.
87112
87113 2005-01-26  Bruno Haible  <bruno@clisp.org>
87114
87115         * lib/javaexec.sh.in: New file, from GNU gettext.
87116         * lib/javaexec.h: New file, from GNU gettext.
87117         * lib/javaexec.c: New file, from GNU gettext.
87118
87119 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87120
87121         * modules/lchown (Depends-on): Remove lchown.h
87122
87123 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87124
87125         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
87126         must be defined if the header file was not found, in order
87127         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
87128
87129 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87130
87131         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
87132         initializers for struct pentry_state.
87133         (__argp_error): Check return value of __asprintf
87134         (__argp_failure): Translate error message
87135
87136         * lib/argp-parse.c: Removed braces around the expansion of N_()
87137
87138 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87139
87140         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
87141         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
87142         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
87143         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
87144         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
87145         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
87146         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
87147         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
87148         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
87149         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
87150         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
87151         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
87152         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
87153         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
87154         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
87155         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
87156         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
87157         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
87158         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
87159         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
87160         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
87161         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
87162         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
87163         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
87164         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
87165         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
87166         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
87167         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
87168         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
87169         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
87170         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
87171         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
87172         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
87173         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
87174         xstrtol.m4, xstrtoumax.m4, yesno.m4:
87175         Use an all-permissive copyright notice, recommended by RMS.
87176
87177 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
87178
87179         * modules/chdir-long (Depends-on): Remove mempcpy.
87180
87181 2005-01-21  Jim Meyering  <jim@meyering.net>
87182
87183         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
87184         same value as for Solaris 9.
87185
87186         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
87187         component length.  This included changing the parameter to be
87188         of type `char *' rather than `char const *'.
87189         * lib/chdir-long.h (chdir_long): Update prototype.
87190
87191         * lib/openat.c (fdopendir, fstatat): New functions.
87192         * lib/openat.h: Include headers required for use of DIR and struct
87193         stat.
87194         [AT_SYMLINK_NOFOLLOW]: Define.
87195         (fdopendir, fstatat): Add prototypes.
87196
87197 2005-01-21  Bruno Haible  <bruno@clisp.org>
87198
87199         * modules/classpath: New file.
87200         * MODULES.html.sh (Java): Add classpath.
87201
87202 2005-01-21  Bruno Haible  <bruno@clisp.org>
87203
87204         * lib/classpath.h: New file, from GNU gettext.
87205         * lib/classpath.c: New file, from GNU gettext.
87206
87207 2005-01-20  Simon Josefsson  <jas@extundo.com>
87208
87209         * modules/version-etc-fsf: New file.
87210
87211 2005-01-20  Simon Josefsson  <jas@extundo.com>
87212
87213         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
87214         * lib/version-etc.c: Remove version_etc_copyright.
87215         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
87216         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
87217
87218 2005-01-20  Simon Josefsson  <jas@extundo.com>
87219
87220         * lib/base64.h (isbase64): Add.
87221
87222         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
87223         using a unsigned prototype, don't inline.
87224         (base64_decode): Use it.
87225
87226 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87227
87228         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
87229         it.
87230
87231 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87232
87233         * lib/save-cwd.c (save_cwd): Remove code to support the case
87234         where fchdir is missing or flaky.
87235
87236 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87237
87238         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
87239
87240 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
87241
87242         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
87243         AC_LIBSOURCES now does this.
87244         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
87245         with new ullong_max module.
87246
87247 2005-01-19  Bruno Haible  <bruno@clisp.org>
87248
87249         * modules/sh-quote: New file.
87250         * MODULES.html.sh (Executing programs): Add sh-quote.
87251
87252 2005-01-19  Bruno Haible  <bruno@clisp.org>
87253
87254         * lib/sh-quote.h: New file, from GNU gettext.
87255         * lib/sh-quote.c: New file, from GNU gettext.
87256
87257 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87258
87259         Merge from coreutils.
87260         * m4/ullong_max.m4: New file.
87261         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
87262         (gl_MACROS): Assume localeconv exists.
87263
87264 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87265
87266         Merge changes from coreutils, as described below in several
87267         changelogs dated today.
87268
87269         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
87270         (O_DIRECTORY): Remove; not needed here, since "." must be
87271         a directory.  All uses removed.
87272         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
87273         universal on Suns, and we also need to test for IRIX.
87274         Revamp code to use 'if' rather than '#if'.
87275         Avoid unnecessary comparison of cwd->desc to 0.
87276
87277         * lib/utimens.c (futimens): Robustify the previous patch, by checking
87278         for known valid error numbers rather than observed invalid ones.
87279
87280 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87281
87282         * modules/ullong_max: New file.
87283
87284         * modules/chdir-long, modules/openat: New files.
87285         * modules/save-cwd (Depends-on): Depend on chdir-long.
87286         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
87287
87288 2005-01-18  Jim Meyering  <jim@meyering.net>
87289
87290         Merge from coreutils.
87291         * m4/chdir-long.m4, m4/openat.m4: New files.
87292         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
87293         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
87294         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
87295         is sane and DOES follow symlinks.  Besides, testing 20 different
87296         systems found no broken chown implementations.
87297         Prompted by a change in rsync's copy of this macro.
87298         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
87299
87300         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
87301
87302         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
87303         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
87304         NULL-means-set-to-current-time semantics.
87305         Remove temporary file immediately, rather than waiting
87306         for configure's at-exit trap code to do it.
87307
87308 2005-01-18  Jim Meyering  <jim@meyering.net>
87309
87310         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87311
87312         * lib/utimens.c (futimens): Account for the fact that futimes
87313         can also fail with errno == ENOSYS or errno == ENOENT.
87314         Patch from Dmitry V. Levin.
87315
87316         Change the name of the robust chdir function from chdir to chdir_long.
87317         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
87318         (restore_cwd): Use chdir_long, not chdir.
87319         * lib/chdir-long.c: Renamed from chdir.c.
87320         * lib/chdir-long.h: Renamed from chdir.h.
87321         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
87322         Hurd.
87323
87324 2005-01-18  Bruno Haible  <bruno@clisp.org>
87325
87326         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
87327         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
87328         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
87329         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
87330         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
87331         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
87332         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
87333         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
87334         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
87335         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
87336         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
87337         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
87338         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
87339         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
87340         Use an all-permissive copyright notice, recommended by RMS.
87341
87342 2005-01-18  Bob Proulx  <bob@proulx.com>
87343
87344         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
87345         simplify offsetof() macro construct to avoid compile failure with
87346         native HP-UX 11.0 ANSI C compiler.
87347
87348 2005-01-17  Bruno Haible  <bruno@clisp.org>
87349
87350         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
87351         redundant because stpncpy.m4 takes care of it.
87352
87353 2005-01-17  Bruno Haible  <bruno@clisp.org>
87354
87355         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
87356
87357 2005-01-17  Bruno Haible  <bruno@clisp.org>
87358
87359         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
87360         used.
87361
87362 2005-01-17  Bruno Haible  <bruno@clisp.org>
87363
87364         * lib/fwriteerror.h (fwriteerror): Change specification to include
87365         fclose.
87366         * lib/fwriteerror.c: Include <stdbool.h>.
87367         (fwriteerror): At the end, close the file stream. Record whether
87368         stdout was already closed.
87369
87370 2005-01-17  Bruno Haible  <bruno@clisp.org>
87371
87372         * lib/execute.c (environ): Declare if needed.
87373         * lib/pipe.c (environ): Likewise.
87374         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
87375
87376 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87377
87378         * modules/argp: Depend on vsnprintf
87379
87380 2005-01-10  Jim Meyering  <jim@meyering.net>
87381
87382         * modules/closeout (Depends-on): Add atexit.
87383
87384 2005-01-06  Bruno Haible  <bruno@clisp.org>
87385
87386         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
87387
87388 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
87389
87390         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
87391         definitions to be after all include files, to avoid collisions.
87392         Problem reported by Bob Proulx.
87393
87394 2005-01-04  Jim Meyering  <jim@meyering.net>
87395
87396         Changes imported from coreutils.
87397         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
87398         as the mkstemp template, use a temporary directory and an
87399         8.3-friendly template to avoid trouble on systems like DJGPP.
87400         Reported by Juan M. Guerrero via Stepan Kasal.
87401         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
87402         close. Remove the temporary directory right away, rather than waiting
87403         for configure's at-exit trap code to do it.
87404         Suggestion from Stepan Kasal.
87405
87406 2005-01-01  Simon Josefsson  <jas@extundo.com>
87407
87408         * gnulib-tool: Print #include directives when --import'ing.
87409
87410 2004-12-28  Simon Josefsson  <jas@extundo.com>
87411
87412         * tests/test-base64.c: Include required header files.  Remove
87413         unused variables.
87414
87415 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87416
87417         * modules/error (Depends-on): Remove gettext.
87418
87419 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87420
87421         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
87422         not needed.  This removes a dependency on the gettext module.
87423         [defined _LIBC]: Do not include <libintl.h>; not needed.
87424
87425 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87426
87427         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
87428         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
87429
87430 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87431
87432         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
87433         HAVE_DECL_STRTOLD.
87434
87435 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87436
87437         * modules/getdate (Depends-on): Remove alloca-opt.
87438
87439 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87440
87441         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
87442
87443 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87444
87445         * lib/argp-parse.c: Include <stddef.h>.
87446         (alignof, alignto): New macros.
87447         (parser_init): Don't assume that void * is aligned sufficiently
87448         for struct option.
87449
87450         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
87451         need to extend the stack.
87452         (YYINITDEPTH): New macro, so that the initial stack isn't overly
87453         large.
87454
87455 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87456
87457         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
87458
87459 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87460
87461         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
87462         (2004-10-24) change.  Apparently this was a false alarm.
87463
87464         * modules/getdate: Depend on alloca-opt, not alloca.
87465
87466 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87467
87468         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
87469         Remove now-obsolete comment about AIX.
87470         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
87471         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
87472         (YYMAXDEPTH): New macro.
87473
87474 2004-12-18  Simon Josefsson  <jas@extundo.com>
87475
87476         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
87477
87478 2004-12-18  Bruno Haible  <bruno@clisp.org>
87479
87480         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
87481
87482 2004-12-18  Bruno Haible  <bruno@clisp.org>
87483
87484         * lib/fatal-signal.c (fatal_signals): Make non-const.
87485         (init_fatal_signals): New function.
87486         (uninstall_handlers, install_handlers): Ignore signals that were set to
87487         SIG_IGN.
87488         (at_fatal_signal): Call init_fatal_signals.
87489         (init_fatal_signal_set): Likewise. Ignore signals that were set to
87490         SIG_IGN.
87491         Reported by Paul Eggert.
87492
87493 2004-12-18  Bruno Haible  <bruno@clisp.org>
87494
87495         * doc/alloca.texi: New file.
87496         * doc/alloca-opt.texi: New file.
87497
87498 2004-12-17  Jim Meyering  <jim@meyering.net>
87499
87500         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
87501         Otherwise, install-sh could exit with improper exit status when
87502         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
87503
87504 2004-12-16  Simon Josefsson  <jas@extundo.com>
87505
87506         * tests/test-base64.c: Add license.
87507
87508 2004-12-15  Stepan Kasal  <address@hidden>
87509
87510         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
87511
87512 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
87513
87514         * modules/getcwd (Files): Add m4/d-ino.m4.
87515         Suggested by Mark D. Baushke.
87516
87517 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87518
87519         * lib/getdate.y (textint): New member "negative".
87520         (time_zone_hhmm): New function.
87521         Expect 14 shift-reduce conflicts, not 13.
87522         (o_colon_minutes): New rule.
87523         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
87524         (yylex): Set the "negative" member of signed numbers.
87525
87526 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87527
87528         * doc/getdate.texi (Time of day items, Time zone items):
87529         Describe new formats +00:00, UTC+00:00.
87530
87531 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
87532
87533         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
87534         spurious "-l"s.  Problem reported by Stepan Kasal.
87535
87536 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
87537
87538         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
87539         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
87540
87541 2004-12-04  Simon Josefsson  <jas@extundo.com>
87542
87543         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
87544         Vandoorselaere <yoann@prelude-ids.org>.
87545
87546 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87547
87548         Changes imported from coreutils.
87549         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
87550         exist.
87551         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
87552
87553 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87554
87555         Changes imported from coreutils.
87556         * lib/hard-locale.c: Assume <locale.h> exists.
87557         Include "strdup.h".
87558         (GLIBC_VERSION): New macro.
87559         (hard_locale): Assume setlocale exists.
87560         Rewrite to avoid #ifdef.
87561         Use strdup rather than malloc + strcpy.
87562         * lib/human.c: Assume <locale.h> exists.
87563         (human_readable): Assume localeconv exists.
87564
87565 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87566
87567         * modules/hard-locale (Depends-on): Add strdup.
87568
87569 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
87570
87571         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
87572         convert T2, not T.  (Imported from libc.)
87573
87574 2004-11-30  Simon Josefsson  <jas@extundo.com>
87575
87576         * modules/restrict (License): Change to LGPL.
87577
87578 2004-11-30  Simon Josefsson  <jas@extundo.com>
87579
87580         * m4/restrict.m4: Add copyright and copying conditions.
87581
87582 2004-11-30  Simon Josefsson  <jas@extundo.com>
87583
87584         * m4/base64.m4: New file.
87585
87586 2004-11-30  Simon Josefsson  <jas@extundo.com>
87587
87588         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
87589         base64.
87590
87591         * tests/test-base64.c: New file.
87592
87593         * modules/base64: New file.
87594
87595 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87596
87597         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
87598         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
87599
87600         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
87601
87602 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87603
87604         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
87605         (__getcwd.c): Don't restore errno; glibc doesn't.
87606         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
87607         first, falling back to our code only if its results look suspicious.
87608         Ensure that the resulting buffer is only as large as necessary.
87609
87610         * lib/readutmp.c: Include readutmp.h first.
87611         Include <errno.h>, since readutmp.h no longer does that.
87612         * lib/readutmp.h: Don't include <errno.h>,
87613         <sys/param.h>, <time.h>; not needed to establish interface.
87614         (errno): Remove decl.
87615         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
87616         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
87617         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
87618
87619 2004-11-28  Simon Josefsson  <jas@extundo.com>
87620
87621         * lib/base64.h, base64.c: New file.
87622
87623 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
87624
87625         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
87626
87627 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
87628
87629         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
87630         (Depends-on): Remove pathmax, same.  Add mempcpy.
87631         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
87632         (Makefile.am): Append getcwd.h to lib_SOURCES.
87633         (Include): Add getcwd.h.
87634         (Maintainer): Change from Jim Meyering to "all, glibc",
87635         since getdate now uses intended-for-glibc code.
87636         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
87637         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
87638
87639 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87640
87641         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
87642         HP's ANSI C compiler.
87643         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
87644         Declaring int functions causes warnings on some modern systems and
87645         shouldn't be needed to compile on ancient ones.
87646         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
87647         defined.
87648
87649         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
87650         with the following changes.
87651         (__set_errno): Parenthesize properly.
87652         Include <stdbool.h>.
87653         (MIN, MAX, MATCHING_INO): New macros.
87654         (__getcwd): Define with prototype, not K&R form.
87655         Use heuristics to allocate default buffer on stack if possible.
87656         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
87657         behavior, and to avoid the PATH_MAX limit when computing
87658         ../../../../...
87659         Use MATCHING_INO to compare inode number to file.
87660         Check for arithmetic overflow in size calculations.
87661         Fix bug in reallocation of dot array that caused getcwd to fail
87662         on directories nested deeper than 75.
87663         Be more careful about saving errno on error.
87664         Do not use realloc; use only free+malloc, as this is a bit
87665         more flexible and avoids a needless copy operation.
87666         Do not inspect st_dev and st_ino for symbolic links; POSIX
87667         doesn't specify the latter.
87668         Check for closedir errors.
87669         Avoid needless casts.
87670         Use "#ifdef weak_alias" around weak_alias, to be like other
87671         glibc code.
87672         The following changes to getcwd.c have effect only when used in
87673         gnulib; they have no effect inside glibc proper.
87674         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
87675         as alloca isn't used.
87676         (alloca, __alloca): Likewise.
87677         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
87678         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87679         unconditionally, as gnulib assumes C89 or better.
87680         Do not include <sys/param.h>.
87681         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
87682         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
87683         better.
87684         (NULL) [!defined NULL]: Remove; we assume C89 or better.
87685         Include <dirent.h> in a way that is compatible with modern Autoconf.
87686         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
87687         New macros, if not already defined.
87688         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
87689         Use "_LIBC", not "defined _LIBC", for consistency.
87690         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
87691         a mempcpy module.
87692         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
87693         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
87694         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
87695         credit only to Jim Meyering and adjust the copyright dates.
87696         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
87697         <stdlib.h>, <unistd.h>, "pathmax.h".
87698         Instead, include "xgetcwd.h" (first) and "getcwd.h".
87699         (INITIAL_BUFFER_SIZE): Remove.
87700         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
87701
87702 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87703
87704         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
87705         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
87706         Use the _ONCE methods, for efficiency.
87707         Check for fcntl.h.  In test program, include <errno.h>
87708         and <fcntl.h> if available.  Remove old K&R cruft from
87709         test program.  Check for common errors in GNU/Linux,
87710         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
87711         don't do AC_LIBOBJ, as that's getcwd.m4's job.
87712         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
87713         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
87714         name accordingly.
87715         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
87716         accommodate new getcwd.c.
87717         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
87718         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
87719         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
87720         that's all we need now.
87721
87722 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87723
87724         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
87725         argp-parse.c depends on getopt internals, that means we should
87726         always use our getopt, to be on the safe side.
87727         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
87728         order not to spoil the result of an eventual previous invocation
87729         of gl_GETOPT_SUBSTITUTE.
87730
87731 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87732
87733         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
87734         redefinition warnings. To avoid them, include the defines
87735         in `#if !defined __need_getopt ... #endif'. The only place
87736         where __getopt_argv_const is used is in definitions
87737         of getopt_long and getopt_long_only below, which are as well
87738         protected by `#ifndef __need_getopt'.
87739         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
87740         __need_getopt after including <stdio.h> and <unistd.h> These
87741         headers might have defined it.
87742
87743 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87744
87745         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
87746
87747 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87748
87749         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
87750         (futimens): New function, which uses futimes if available.
87751         (futimens, utimens): Support timespec==NULL, with same semantics
87752         as utime and utimens.
87753         * lib/utimens.h (futimens): New decl.
87754
87755 2004-11-23  Jim Meyering  <jim@meyering.net>
87756
87757         * lib/getopt_.h: Remove trailing blanks.
87758
87759 2004-11-23  Jim Meyering  <jim@meyering.net>
87760
87761         * lib/__fpending.c: Add comment.
87762
87763 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
87764
87765         * modules/canonicalize (Depends-on): Add xreadlink.
87766         Problem reported by James Youngman.
87767
87768 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
87769
87770         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
87771         New macros.
87772         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
87773         optopt): Use them instead of invoking ## directly; otherwise, the
87774         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
87775
87776 2004-11-19  Bruno Haible  <bruno@clisp.org>
87777
87778         * lib/strtok_r.c: Move comments from here...
87779         * lib/strtok_r.h: ... to here.
87780
87781 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87782
87783         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
87784         implementations that mishandle size_t overflow.
87785
87786 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87787
87788         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
87789         might fail.  Problem reported by Yoann Vandoorselaere.
87790         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
87791         implementations that mishandle size_t overflow.
87792
87793 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87794
87795         * modules/canon-host (Depends-on): Add strdup.
87796
87797 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87798
87799         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
87800
87801 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87802
87803         * lib/canon-host.c: Include "strdup.h".
87804         (canon_host): Use getaddrinfo if available, so that IPv6 works.
87805         Use strdup instead of malloc/strcpy to duplicate strings.
87806
87807         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
87808         (human_space_before_unit): New constant.
87809         * lib/human.c (human_readable): Support it.
87810
87811         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
87812         (xgetcwd): Set errno correctly when failing.
87813         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
87814         the failure is actually due to a PATH_MAX problem.
87815
87816         Further getopt changes to make it more likely that glibc will
87817         buy the changes back.
87818         * lib/getopt.c (POSIXLY_CORRECT): New constant.
87819         (getopt): Use it, so to preserve glibc semantic
87820         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
87821         when compiling for libc.
87822         * lib/getopt_.h (__getopt_argv_const): Bring it back.
87823         (getopt_long, getopt_long_only): Use it.
87824
87825         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87826         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
87827         (getopt): Argv is now char * const *, as per standard.
87828         (_getopt_internal_r, _getopt_internal): Argv is now char **,
87829         not char *__getopt_argv_const *.
87830         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87831         _getopt_long_only_r): Likewise.
87832         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
87833         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87834         _getopt_long_r, _getopt_long_only_r): Likewise.
87835         * lib/getopt_.h (__getopt_argv_const): Remove.
87836         (getopt): Argv is now char * const *, as per standard.
87837
87838         * lib/getdate.y (tORDINAL): New token.
87839         (day, relunit): Allow it for relative times.
87840         (relative_time_table): Use tORDINAL for ordinals.
87841
87842 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87843
87844         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
87845         Document that "second" isn't allowed as an ordinal number.
87846
87847 2004-11-16  Jim Meyering  <jim@meyering.net>
87848
87849         * modules/closeout (Depends-on): Add fpending.
87850
87851 2004-11-15  Jim Meyering  <jim@meyering.net>
87852
87853         * lib/closeout.c: Include "__fpending.h" once again.
87854         Include <stdbool.h>.
87855         (close_stdout): Don't fail just because stdout was closed initially,
87856         since some programs don't write to stdout in the normal course of
87857         operation (other than --version and --help), and we don't want this
87858         function to make e.g. `touch file >&-' fail.
87859         But do fail if it was closed and someone has tried to write to it.
87860         E.g., `printf foo >&-' must fail.
87861
87862 2004-11-13  Jim Meyering  <jim@meyering.net>
87863
87864         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
87865
87866 2004-11-12  Simon Josefsson  <jas@extundo.com>
87867
87868         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
87869         small doc fix is still pending.
87870
87871 2004-11-11  Simon Josefsson  <jas@extundo.com>
87872
87873         * modules/strtok_r: New file.
87874
87875         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87876         strtok_r.
87877
87878 2004-11-11  Simon Josefsson  <jas@extundo.com>
87879
87880         * m4/strtok_r.m4: New file.
87881
87882         * m4/getopt.m4: Replace opterr.
87883
87884 2004-11-11  Simon Josefsson  <jas@extundo.com>
87885
87886         * lib/strtok_r.h, strtok_r.c: New file.
87887
87888 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87889
87890         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
87891         of replacing opterr, getopt, etc.  This should handle the
87892         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
87893
87894 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87895
87896         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
87897         we can stop lying to compilers about the constness of argv when we
87898         are compiled outside glibc.
87899         (getopt, getopt_long, getopt_long_only): Use it.
87900         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87901         _getopt_internal, getopt): Likewise.
87902         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87903         _getopt_long_only_r): Likewise.
87904         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87905         _getopt_long_r, _getopt_long_only_r): Likewise.
87906
87907         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
87908         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
87909         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
87910         the other external symbols.
87911         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
87912         declaration, since the above renaming now works around collisions.
87913
87914 2004-11-11  Jim Meyering  <jim@meyering.net>
87915
87916         * lib/linebreak.c: Remove trailing blanks.
87917         * lib/alloca_.h: Likewise.
87918         * lib/acosl.c: Likewise.
87919         * lib/euidaccess.c: Likewise.
87920         * lib/allocsa.h: Likewise.
87921
87922 2004-11-10  Simon Josefsson  <jas@extundo.com>
87923
87924         * m4/getaddrinfo.m4: New file.
87925
87926 2004-11-10  Simon Josefsson  <jas@extundo.com>
87927
87928         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
87929
87930 2004-11-10  Simon Josefsson  <jas@extundo.com>
87931
87932         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87933         getaddrinfo.
87934
87935         * modules/getaddrinfo: New file.
87936
87937 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87938
87939         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
87940
87941 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87942
87943         * lib/mktime.c (SHR): New macro, which is a portable
87944         substitute for >> that should work even on Crays.
87945         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
87946         Problem reported by Mark D. Baushke in
87947         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
87948         * lib/getdate.y (SHR): Likewise.
87949         (tm_diff): Use it.
87950         * lib/strftime.c (SHR): Likewise.
87951         (tm_diff): Use it.
87952         * lib/quotearg.c (struct quoting_options): Use unsigned int for
87953         quote_these_too, so that right shifts are well defined.  All uses
87954         changed.
87955
87956 2004-11-10  Jim Meyering  <jim@meyering.net>
87957
87958         Ensure that no close failure goes unreported.
87959         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
87960         return early when it seems there's nothing to flush.
87961         Don't include __fpending.h.
87962
87963 2004-11-10  Jim Meyering  <jim@meyering.net>
87964
87965         * modules/closeout (Depends-on): Remove fpending.
87966
87967 2004-11-10  Jim Meyering  <jim@meyering.net>
87968
87969         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
87970
87971 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87972
87973         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
87974         gl_FUNC_STRFTIME.
87975         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
87976         and AC_REQUIRE when possible, to avoid duplicate checks.
87977         Check for <wchar.h>.
87978
87979 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87980
87981         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
87982
87983 2004-11-09  Bruno Haible  <bruno@clisp.org>
87984
87985         * m4/sockpfaf.m4: New file.
87986
87987 2004-11-05  Bruno Haible  <bruno@clisp.org>
87988
87989         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
87990         Reported by Mark D. Baushke <mdb@cvshome.org>.
87991
87992 2004-11-04  Bruno Haible  <bruno@clisp.org>
87993
87994         2004-09-11  Bruno Haible  <bruno@clisp.org>
87995                 * allocsa.valgrind: New file.
87996         2004-02-06  Bruno Haible  <bruno@clisp.org>
87997                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
87998                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
87999                 Reported by Christopher Seip <chris.seip@hp.com>.
88000
88001 2004-11-04  Bruno Haible  <bruno@clisp.org>
88002
88003         * modules/allocsa (Files): Add lib/allocsa.valgrind.
88004         (Makefile.am): Distribute it.
88005
88006 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
88007
88008         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
88009         with errno == ERANGE if the buffer is too small.
88010         Problem reported by Mark D. Baushke.
88011
88012 2004-11-03  Albert Chin  <china@thewrittenword.com>
88013             Paul Eggert  <eggert@cs.ucla.edu>
88014
88015         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
88016         equivalent, substitute $ac_type for equivalent type rather than
88017         blindly using uint32_t *always* which won't work if uint32_t is not
88018         available.  Define _UINT32_T to work around typedef of uint32_t if
88019         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
88020         2.5.1.
88021
88022 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88023
88024         * m4/jm-macros.m4: Sync from coreutils.
88025         (gl_MACROS): Check for mbrlen, for pathchk.
88026         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
88027
88028 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88029
88030         * lib/xreadlink.c (MAXSIZE): New macro.
88031         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
88032         size does not exceed MAXSIZE.  Avoid cast.
88033         As suggested by Mark D. Baushke in
88034         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
88035         if readlink fails with buffer size just under MAXSIZE, try again
88036         with MAXSIZE.
88037
88038 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88039
88040         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
88041
88042 2004-11-02  Derek R. Price  <derek@ximbiot.com>
88043         and  Paul Eggert  <eggert@cs.ucla.edu>
88044
88045         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
88046         (get_date): Overparenthesize to avoid GCC warning.
88047
88048 2004-11-02  Bruno Haible  <bruno@clisp.org>
88049
88050         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
88051         returns void.
88052
88053 2004-11-02  Bruno Haible  <bruno@clisp.org>
88054
88055         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
88056         function returns void.
88057
88058 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88059
88060         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
88061         fflush_unlocked, flockfile, funlockfile, funlockfile,
88062         fputs_unlocked, putc_unlocked.
88063
88064 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88065
88066         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88067         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
88068         already declared.
88069
88070 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88071
88072         * modules/getdate (Files): Add doc/getdate.texi.
88073         (Depends-on): Add setenv, xalloc.
88074
88075 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88076
88077         * lib/getdate.y: Add support for TZ="foo" within a date string.
88078         Fix some bugs near time_t boundaries.  Reject dates with
88079         out-of-range components, e.g., "Sept 31".
88080         Include <stdlib.h>, "setenv.h", "xalloc.h".
88081         (ISDIGIT_LOCALE): Remove; unused.
88082         Note that the TZ and time functions used here are not reentrant.
88083         (mktime_ok, get_tz): New functions.
88084         (TZBUFSIZE): New constant.
88085         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
88086         This requires that we sometimes generate our own TZ="XXX..." setting.
88087
88088 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88089
88090         * doc/getdate.texi: New file, from coreutils with modifications for
88091         the new TZ parsing.
88092
88093 2004-10-27  Derek R. Price  <derek@ximbiot.com>
88094
88095         * lib/mktime.c (not_equal_tm): Remove redundant check.
88096
88097 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88098
88099         * modules/regex (lib_SOURCES): Add regex.c.
88100         Reported by James Youngman in
88101         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
88102
88103 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88104
88105         * lib/getdate.y: Use Bison 1.875 features, and some minor
88106         code cleanups.  This change does not affect semantics.
88107         Don't include <stdlib.h>; no longer needed.
88108         Don't include unlocked-io.h; only the "#if TEST" code uses
88109         stdio, and performance isn't crucial there.
88110         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
88111         Bison 1.875 features as described below.
88112         All uses of "PC." replaced by "pc->".
88113         (YYSTYPE): Add a forward declaration.
88114         (yylex, yyerror): Use full prototypes in forward decls.
88115         Use "%pure-parser" rather than obsolescent "%pure_parser".
88116         Use %parse-param and %lex-param instead of obsolescent
88117         YYPARSE_PARAM and YYLEX_PARAM.
88118         (meridian_table, month_and_day_table, time_units_table,
88119         relative_time_table, time_zone_table, military_table,
88120         lookup_zone, lookup_word, get_date):
88121         Use NULL instead of 0 where appropriate.
88122         (to_hour): Avoid abort (), to avoid a dependency on
88123         stdlib.h.
88124         (yyerror, yylex): Now accepts parser_control * arg.
88125         (main) [TEST]: Use '\0' rather than 0 for char.
88126
88127 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88128
88129         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
88130
88131 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88132
88133         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
88134         It's now the caller's responsibility to handle the case where
88135         !HAVE_GETPAGESIZE && !defined getpagesize.
88136
88137         * lib/mktime.c (leapyear): Arg is long int, not int.
88138
88139 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
88140
88141         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
88142
88143 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
88144
88145         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
88146         missing.  Problem reported by James Youngman.
88147
88148 2004-10-16  Simon Josefsson  <jas@extundo.com>
88149
88150         * gnulib-tool: Fix comments.  Fix parse problem.
88151         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
88152
88153 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
88154
88155         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
88156         implementation of getopt_long.  Problem reported by Alexander Taler in:
88157         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
88158
88159 2004-10-15  Bruno Haible  <bruno@clisp.org>
88160
88161         * gnulib-tool: Untabify. Initialize supplied_libname.
88162         (func_usage): More homogenous output.
88163         (func_modules_transitive_closure, func_modules_to_filelist,
88164         func_emit_lib_Makefile_am): New functions.
88165         (func_import): New function, extracted from big case statement. Use
88166         func_get_license, func_modules_transitive_closure,
88167         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
88168         opt_lgpl. Don't use test -a, as it's not portable.
88169         (func_create_testdir): Use func_modules_transitive_closure,
88170         func_modules_to_filelist, func_emit_lib_Makefile_am.
88171
88172 2004-10-15  Bruno Haible  <bruno@clisp.org>
88173
88174         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
88175
88176 2004-10-15  Bruno Haible  <bruno@clisp.org>
88177
88178         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
88179         the portions belonging to each module.
88180         Suggested by Derek Robert Price <derek@ximbiot.com>.
88181
88182 2004-10-12  Simon Josefsson  <jas@extundo.com>
88183
88184         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88185         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
88186         to real functions.
88187
88188 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88189
88190         * modules/vsnprintf: New file.
88191
88192 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88193
88194         * m4/vsnprintf.m4: New file.
88195
88196 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88197
88198         * lib/vsnprintf.h: New file.
88199         * lib/vsnprintf.c: New file.
88200
88201 2004-10-11  Bruno Haible  <bruno@clisp.org>
88202
88203         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
88204         vsnprintf.
88205
88206 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
88207
88208         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
88209
88210 2004-10-07  Bruno Haible  <bruno@clisp.org>
88211
88212         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
88213         fits into the provided buffer.
88214
88215 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
88216
88217         * lib/diacrit.c, diacrit.h: Add GPL notice.
88218
88219         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
88220         notice.
88221         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
88222         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
88223         This avoids a potential constant-folding bug.
88224
88225 2004-10-05  Bruno Haible  <bruno@clisp.org>
88226
88227         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
88228         for the declaration of strsep.
88229
88230 2004-10-05  Bruno Haible  <bruno@clisp.org>
88231
88232         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
88233
88234 2004-10-04  Simon Josefsson  <jas@extundo.com>
88235
88236         * modules/memmem: New file.
88237         * tests/test-memmem.c: New file.
88238         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
88239
88240 2004-10-04  Simon Josefsson  <jas@extundo.com>
88241
88242         * m4/memmem.m4: New file.
88243
88244 2004-10-04  Simon Josefsson  <jas@extundo.com>
88245
88246         * lib/memmem.h: New file.
88247         * lib/memmem.c: New file, taken from glibc.
88248
88249 2004-10-04  Simon Josefsson  <jas@extundo.com>
88250
88251         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
88252         '#ifdef USE_UNLOCKED_IO'.
88253
88254 2004-10-04  Simon Josefsson  <jas@extundo.com>
88255
88256         * config/srclist.txt: Add memmem from glibc.
88257
88258 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88259
88260         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
88261
88262         * modules/argmatch, modules/argp, modules/closeout, modules/error,
88263         modules/exclude, modules/getdate, modules/getline,
88264         modules/getndelim2, modules/getpass, modules/getpass-gnu,
88265         modules/getusershell, modules/linebuffer, modules/md5,
88266         modules/mountlist, modules/posixtm, modules/readtokens,
88267         modules/readutmp, modules/regex, modules/sha1,
88268         modules/version-etc, modules/yesno:
88269         Remove dependency on unlocked-io.
88270
88271 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88272
88273         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
88274
88275         * m4/unlocked-io.m4: Add copyright notice.
88276         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
88277
88278 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88279
88280         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
88281         * lib/xmalloc.c (xmemdup): Likewise.
88282         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
88283         XFREE): Remove these long-obsolescent macros.
88284         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
88285         * lib/xstrdup.c: Remove.
88286
88287         * lib/regex.c (re_comp): Cast gettext return value to char *,
88288         Problem reported by Martin Neitzel via Mark D. Baushke.
88289
88290 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88291
88292         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
88293         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
88294         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
88295         regex.c, sha1.c, version-etc.c, yesno.c:
88296         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
88297         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
88298         the includer's responsibility.
88299
88300         Sync from coreutils.
88301
88302         * lib/modechange.c (mode_compile): Don't decrement a pointer that
88303         points to the start of a string, as the C Standard says the
88304         resulting behavior is undefined.
88305
88306         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
88307         simple -> simple_backups, numbered_existing ->
88308         numbered_existing_backups, numbered -> numbered_backups
88309         to avoid shadowing problems.  All uses changed.
88310         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
88311         * lib/backupfile.c (check_extension, numbered_backup):
88312         Rename locals to avoid shadowing 'basename'.
88313         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
88314         once.
88315
88316         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
88317         * lib/.cvsignore: Add getopt.h.
88318
88319 2004-10-04  Bruno Haible  <bruno@clisp.org>
88320
88321         * modules/README: New file.
88322         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
88323         not a module.
88324
88325 2004-10-02  Jim Meyering  <jim@meyering.net>
88326
88327         * lib/dirfd.h, getpagesize.h: Add copyright notice.
88328
88329 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88330
88331         * modules/strsep: New file.
88332
88333 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88334
88335         * m4/strsep.m4: New file.
88336
88337 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88338
88339         * lib/strsep.h: New file.
88340         * lib/strsep.c: New file.
88341
88342 2004-10-01  Simon Josefsson  <jas@extundo.com>
88343
88344         * lib/snprintf.c (snprintf): Handle size==0.
88345
88346 2004-10-01  Simon Josefsson  <jas@extundo.com>
88347             Bruno Haible  <bruno@clisp.org>
88348
88349         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
88350         (snprintf): Declare 'args'.
88351
88352 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
88353
88354         * lib/snprintf.c: Remove comments as to why each header is needed.
88355
88356 2004-10-01  Bruno Haible  <bruno@clisp.org>
88357
88358         * MODULES.html.sh: Add strsep.
88359
88360 2004-09-30  Simon Josefsson  <jas@extundo.com>
88361
88362         * modules/snprintf: New file.
88363
88364 2004-09-30  Simon Josefsson  <jas@extundo.com>
88365
88366         * m4/snprintf.m4: New file.
88367
88368 2004-09-30  Simon Josefsson  <jas@extundo.com>
88369
88370         * lib/snprintf.h, lib/snprintf.c: New files.
88371
88372 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88373
88374         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
88375         (hol_entry_help): Never translate an empty string.
88376         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
88377         * lib/argp.h (OPTION_NO_TRANS): New option.
88378
88379 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88380
88381         * modules/argp (Maintainer): Replace Simon Josefsson
88382         by Sergey Poznyakoff.
88383
88384 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88385
88386         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
88387         changes merged back into glibc.
88388
88389 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88390
88391         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
88392
88393 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
88394
88395         * lib/xvasprintf.c: Include xalloc.h.
88396         (xvasprintf): Use xalloc_die, not xmalloc_die.
88397
88398 2004-09-29  Bruno Haible  <bruno@clisp.org>
88399
88400         * modules/alloca-opt: New file, derived from modules/alloca.
88401         * modules/allocsa: Depend on alloca-opt instead of alloca.
88402         * modules/setenv: Likewise.
88403         * modules/vasnprintf: Likewise.
88404         * MODULES.html.sh: Add alloca-opt.
88405
88406 2004-09-28  Simon Josefsson  <jas@extundo.com>
88407
88408         * gnulib-tool: New parameter --lgpl, to asseert that modules are
88409         LGPL, and to replace license template from GPL to LGPL.
88410
88411 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88412
88413         * modules/dummy: Change license to LGPL.
88414
88415 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88416
88417         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
88418
88419 2004-09-24  Simon Josefsson  <jas@extundo.com>
88420
88421         * modules/minmax (License): Change from GPL to LGPL.
88422
88423 2004-09-23  Simon Josefsson  <jas@extundo.com>
88424
88425         * gnulib-tool (--import): Typo.
88426
88427 2004-09-23  Simon Josefsson  <jas@extundo.com>
88428
88429         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
88430
88431 2004-09-22  Bruno Haible  <bruno@clisp.org>
88432
88433         * modules/*: Add 'License' field.
88434         * gnulib-tool: Accept --extract-license option.
88435         (func_get_license): New function.
88436
88437 2004-09-21  Bruno Haible  <bruno@clisp.org>
88438
88439         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
88440         Reported by Simon Josefsson.
88441
88442 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88443
88444         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
88445         gl_AC_TYPE_LONG_LONG.
88446
88447 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88448
88449         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
88450
88451 2004-09-18  Simon Josefsson  <jas@extundo.com>
88452         and  Paul Eggert  <eggert@cs.ucla.edu>
88453
88454         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
88455         calls with autoreconf.  Define GL_LIB.
88456
88457 2004-09-14  Karl Berry  <karl@gnu.org>
88458
88459         * config/srclist.txt: unsync setenv.c, sigh.
88460
88461 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88462
88463         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
88464         Problem reported by Bruno Haible in:
88465         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
88466
88467 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88468
88469         * config/srclist.txt: Comment out argp-pvh.c.
88470
88471 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
88472
88473         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
88474         in case some system header has #define'd it.  Problem reported by
88475         Soeren D. Schulze in
88476         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
88477
88478 2004-09-09  Karl Berry  <karl@gnu.org>
88479
88480         * regex.[ch]: delete from the root.  These were supposed to be
88481                 synced with emacs cvs, but this has not happened for about
88482                 a year, and anyway nothing else uses emacs regex.[ch].
88483                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
88484                 lib/regex[.ch] is untouched.
88485
88486 2004-09-09  Bruno Haible  <bruno@clisp.org>
88487
88488         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
88489
88490 2004-09-09  Bruno Haible  <bruno@clisp.org>
88491
88492         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
88493         modifications.
88494         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
88495
88496 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88497
88498         * modules/xvasprintf: New file.
88499         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
88500
88501 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88502
88503         * lib/xvasprintf.h: New file.
88504         * lib/xvasprintf.c: New file.
88505         * lib/xasprintf.c: New file.
88506
88507 2004-09-08  Bruno Haible  <bruno@clisp.org>
88508
88509         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
88510
88511 2004-09-08  Bruno Haible  <bruno@clisp.org>
88512
88513         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
88514         length is > INT_MAX.
88515         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
88516         more.
88517
88518 2004-09-08  Bruno Haible  <bruno@clisp.org>
88519
88520         * lib/stdint_.h: New file, taken from GNU clisp.
88521
88522 2004-09-08  Bruno Haible  <bruno@clisp.org>
88523             Oskar Liljeblad  <oskar@osk.mine.nu>
88524
88525         * modules/stdint: New file.
88526         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
88527
88528 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88529
88530         Import from coreutils.
88531         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
88532         strings on unbounded length.  alloca's performance benefits aren't
88533         that important here.
88534         (V_STRDUP): Remove.
88535         (parse_with_separator): New function, with most of the internals
88536         of the old parse_user_spec.  Allow user to omit both user and group,
88537         for compatibility with FreeBSD.
88538         Clone only the user name, not the entire spec.
88539         Do not set *uid, *gid unless entirely successful.
88540         Avoid memory leak in some failing cases.
88541         Fix regression for USER.GROUP reported by Dmitry V. Levin in
88542         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
88543         (parse_user_spec): Rewrite to use parse_with_separator.
88544
88545 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88546
88547         * modules/userspec: Don't depend on alloca.
88548
88549 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88550
88551         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
88552
88553 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
88554
88555         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
88556         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
88557         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
88558
88559 2004-08-16  Simon Josefsson  <jas@extundo.com>
88560
88561         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
88562         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
88563         Add --dry-run for --import.
88564         Let user provided command line parameters override configure.ac
88565         settings.
88566
88567 2004-08-12  Simon Josefsson  <jas@extundo.com>
88568
88569         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
88570         as discussed with Paul Eggert in threads rooted at
88571         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
88572         and
88573         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
88574         Before, the test was empty, and relied on ELIDE_CODE in source
88575         code.)
88576         (gl_PREREQ_GETOPT): New macro.
88577         (gl_GETOPT): Use them.
88578
88579 2004-08-12  Simon Josefsson  <jas@extundo.com>
88580
88581         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
88582         * lib/getopt_.h: Renamed from getopt.h.
88583
88584 2004-08-12  Simon Josefsson  <jas@extundo.com>
88585
88586         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
88587         Change default library name from libfoo to libgnu.
88588         Now, if you have a configure.ac that says:
88589                 gl_SOURCE_BASE(gl)
88590                 gl_M4_BASE(gl/m4)
88591                 gl_MODULES(error getopt etcetera)
88592                 gl_INIT
88593         you can import all you need by running:
88594                 ../gnulib/gnulib-tool --import
88595
88596         * modules/getopt (Files): Rename getopt.h to getopt_.h.
88597         (Makefile.am): Rewrite, use logic from argz.
88598         (Include): Use <getopt.h> instead of "getopt.h".
88599
88600 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88601
88602         * modules/argp (Files): Add m4/unlocked-io.m4.
88603         (Depends-on): Add extensions.
88604
88605 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88606
88607         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
88608         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
88609         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
88610         Check for program_invocation_name, program_invocation_short_name,
88611         flockfile, funlockfile, features.h, _getopt_long_only_r.
88612
88613 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88614
88615         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
88616         its complicated substitute.
88617         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
88618         and program_invocation_name.
88619         (__argp_basename) [!_LIBC]: Remove; the only use was
88620         replaced by its body.
88621         (__argp_short_program_name): Change condition from
88622         !defined __argp_short_program_name to
88623         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
88624         to match argp-namefrob.h.
88625         (__argp_failure): Don't assume strerror_r returns char *.
88626         * lib/argp-parse.c (N_): Define unconditionally.
88627         (argp_default_options): Fill out initializers with 0 to avoid
88628         gcc warnings.
88629
88630 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88631
88632         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
88633         getopt1.c.
88634
88635 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88636
88637         Merge from coreutils.
88638
88639         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
88640
88641         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
88642         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
88643
88644 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88645
88646         Merge from coreutils.
88647
88648         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
88649         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
88650         for Reliant Unix 5.43.
88651
88652         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
88653         (union fooround): Use uintmax_t, not long int.
88654         The rest is a merge from libc:
88655         [defined _LIBC]: Include <shlib-compat.h>.
88656         (_obstack) [defined _LIBC]: Remove after 2.3.4.
88657
88658         * lib/settime.c (settime): Recode to avoid warning with
88659         Sun Forte C 6U2.
88660
88661         * lib/strverscmp.c: Convert to UTF-8.
88662
88663 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88664
88665         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
88666         m4/uintmax_t.m4.
88667
88668 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88669
88670         * modules/xalloc-die: New file.
88671         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
88672
88673         * modules/md5 (Files): Add m4/uint32_t.m4.
88674         * modules/sha1: Renamed from modules/sha.
88675         (Files):
88676         Rename lib/sha.h to lib/sha1.h.
88677         Rename lib/sha.c to lib/sha1.c.
88678         Rename m4/sha.m4 to m4/sha1.m4.
88679         (lib_SOURCES): Likewise.
88680         (configure.ac): Rename gl_SHA to gl_SHA1.
88681         (Include): sha.h -> sha1.h.
88682
88683 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88684
88685         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
88686         * m4/sha1.m4: Renamed from sha.m4.
88687         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
88688
88689 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88690
88691         * lib/obstack.h (obstack_empty_p):
88692         Don't assume that chunk->contents is suitably aligned.
88693         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
88694         Likewise. Problem reported by Benno in
88695         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
88696
88697         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
88698         readable.  This could be improved further but it'd take some work.
88699
88700 2004-08-08  Simon Josefsson  <jas@extundo.com>
88701
88702         * modules/xgethostname (Depends-on): Remove exit and error (not
88703         used).
88704
88705         * modules/getpass-gnu: Add getpass.h.
88706         (Depends-on): Add stdbool.
88707         * modules/getpass: Add getpass.h.
88708
88709 2004-08-08  Simon Josefsson  <jas@extundo.com>
88710
88711         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
88712         Check getpass declaration.
88713
88714 2004-08-08  Simon Josefsson  <jas@extundo.com>
88715
88716         * lib/xgethostname.c: Don't include error.h (not used).
88717
88718         * lib/getpass.h: Add.
88719         * lib/getpass.c: Include getpass.h first.
88720
88721 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
88722
88723         * lib/xalloc-die.c: New file.
88724         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
88725         All uses removed.
88726         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
88727         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
88728         xalloc-die.c.
88729         (_, N_, xalloc_die): Move to xalloc-die.c.
88730         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
88731         so that we needn't mess with xalloc_msg_memory_exhausted.
88732
88733         * lib/sha1.h: Renamed from sha.h.
88734         (SHA1_H): Renamed from _SHA_H.
88735         (sha1_ctx): Renamed from sha_ctx.
88736         (sha1_init_ctx): Renamed from sha_init_ctx.
88737         (sha1_process_block): Renamed from sha_process_block.
88738         (sha1_process_bytes): Renamed from sha_process_bytes.
88739         (sha1_finish_ctx): Renamed from sha_finish_ctx.
88740         (sha1_read_ctx): Renamed from sha_read_ctx.
88741         (sha1_stream): Renamed from sha_stream.
88742         (sha1_buffer): Renamed from sha_buffer.
88743         * lib/sha1.c: Likewise; renamed from sha.c.
88744         Do not include <sys/types.h>.
88745         Include <stddef.h> rather than <stdlib.h>.
88746
88747 2004-08-08  Bruno Haible  <bruno@clisp.org>
88748
88749         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
88750         FILESYSTEM_PREFIX_LEN.
88751         * lib/progreloc.c: Likewise.
88752         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
88753
88754 2004-08-06  Simon Josefsson  <jas@extundo.com>
88755
88756         * modules/progname (Depends-on): Don't depend on stdbool.
88757
88758 2004-08-06  Simon Josefsson  <jas@extundo.com>
88759
88760         * modules/getsubopt: New file.
88761         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88762         getsubopt.
88763
88764 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88765
88766         More merge from coreutils.
88767
88768         * m4/utimens.m4, m4/utimecmp.m4: New files.
88769         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
88770         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
88771         prereq.m4, sha.m4: Import changes from coreutils.
88772
88773 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88774
88775         More merge from coreutils.
88776         * modules/raise, modules/readtokens0, modules/utimens:
88777         * modules/utimecmp, module/xnanosleep: New files.
88778         * modules/strftime: Add lib/strftime.h.
88779         Change include from <time.h> to "strftime.h".
88780         * modules/yesno: Add lib/yesno.h.
88781         * modules/backupfile: Remove lib/addext.c.
88782         * modules/euidaccess: Add stat-macros.h.
88783         * modules/canonicalize, modules/euidaccess,
88784         modules/filemode, modules/lchown, modules/makepath,
88785         modules/rmdir, modules/stat: Likewise.
88786
88787 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88788
88789         Merge from tar.
88790         * lib/argp-help.c (make_hol, hol_append): Don't assume that
88791         SIZE_MAX is a valid preprocessor constant.
88792         (__argp_basename): Change from "#ifndef _LIBC"
88793         to "#ifndef __argp_short_program_name", so that
88794         we don't compile these functions for tar.
88795
88796         More merges from coreutils.
88797         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
88798         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
88799         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
88800         * lib/addext.c: Remove; no longer needed.
88801         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
88802         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
88803         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
88804         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
88805         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
88806         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
88807         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
88808         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
88809         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
88810         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88811         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
88812         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
88813         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
88814         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
88815         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
88816         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
88817         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
88818         Import changes from coreutils.
88819
88820 2004-08-05  Simon Josefsson  <jas@extundo.com>
88821
88822         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
88823
88824 2004-08-05  Simon Josefsson  <jas@extundo.com>
88825
88826         * m4/getsubopt.m4: New file.
88827
88828 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88829
88830         Merge from coreutils.
88831
88832         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
88833         * m4/getcwd-path-max.m4: New files.
88834
88835         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
88836         FILESYSTEM_PREFIX_LEN ->
88837         FILE_SYSTEM_PREFIX_LEN.
88838         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
88839         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
88840         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
88841         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
88842
88843         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
88844         prerequisite modules now handle the DOS stuff.
88845         Don't check for unistd.h.
88846
88847 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88848
88849         Merge from coreutils.
88850
88851         * lib/.gdb-history: Remove; this doesn't belong here.
88852
88853         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
88854         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
88855         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
88856         * lib/getcwd.c: New files.
88857
88858         * lib/dirname.h: Include <stdbool.h>.
88859         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
88860         for consistency with POSIX terminology.  All uses changed.
88861         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
88862         (strip_trailing_slashes): Use bool for booleans.
88863         * lib/stripslash.c (strip_trailing_slashes): Likewise.
88864
88865         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
88866         sometimes returns a positive errno value even when it succeeds.
88867         (print_errno_message) [!LIBC]: Fall back on strerror if
88868         __strerror_r fails.
88869
88870         * lib/path-concat.c (mempcpy): Don't define if a system header defines
88871         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
88872         (longest_relative_suffix): New function.
88873         (path_concat): Use it.  Assume first argument is not NULL.
88874         Port to DOS.  Omit redundant separators.
88875         Report an error instead of returning NULL.
88876         Use mempcpy instead of memcpy.
88877         (xpath_concat): Remove: not declared or used.
88878
88879         * lib/same.h: Include <stdbool.h>
88880         (same_name): Return bool, not int.
88881         * lib/same.c (same_name): Likewise.
88882         (errno): Don't declare; we assume C89 or better now.
88883
88884         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
88885         if not already defined.
88886
88887         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
88888         * lib/dup-safer.c (errno): Likewise.
88889
88890 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88891
88892         Merge from coreutils.
88893         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
88894         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
88895         * modules/path-concat: Don't depend on strdup.
88896
88897 2004-08-03  Simon Josefsson  <jas@extundo.com>
88898
88899         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
88900         * lib/progname.h: Don't include stdbool.h.
88901
88902 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88903
88904         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
88905         * MODULES.html.sh (func_all_modules): Remove fatal.
88906
88907 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88908
88909         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
88910
88911 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88912
88913         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
88914         working.
88915
88916 2004-08-02  Simon Josefsson  <jas@extundo.com>
88917
88918         * lib/getsubopt.h: New file, with comments from Bruno Haible.
88919         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
88920         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
88921
88922 2004-08-01  Simon Josefsson  <jas@extundo.com>
88923
88924         * lib/xgetdomainname.c: Include stdlib.h, for free().
88925
88926 2004-07-19  Bruno Haible  <bruno@clisp.org>
88927
88928         * MODULES.html.sh (func_all_modules): Add dummy.
88929
88930 2004-07-16  Simon Josefsson  <jas@extundo.com>
88931
88932         * modules/dummy: New file.
88933
88934 2004-07-16  Simon Josefsson  <jas@extundo.com>
88935
88936         * lib/dummy.c: New file.
88937
88938 2004-07-16  Bruno Haible  <bruno@clisp.org>
88939
88940         * lib/backupfile.h: Add extern "C" for C++.
88941         * lib/closeout.h: Likewise.
88942         * lib/copy-file.h: Likewise.
88943         * lib/findprog.h: Likewise.
88944         * lib/full-write.h: Likewise.
88945         * lib/pathname.h: Likewise.
88946         * lib/progname.h: Likewise.
88947         * lib/stpcpy.h: Likewise.
88948         * lib/stpncpy.h: Likewise.
88949         * lib/strcase.h: Likewise.
88950         * lib/strstr.h: Likewise.
88951         * lib/xalloc.h: Likewise.
88952
88953         * lib/mbswidth.h: Add extern "C" for C++.
88954         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
88955
88956 2004-07-13  Robert Millan  <robertmh@gnu.org>
88957
88958         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
88959
88960 2004-07-09  Simon Josefsson  <jas@extundo.com>
88961
88962         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
88963         failed without this.)
88964
88965 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88966
88967         * modules/chown (Files): Add lib/fchown-stub.c, since
88968         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
88969
88970 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88971
88972         * lib/fchown-stub.c: New file.
88973
88974 2004-06-24  Jim Meyering  <jim@meyering.net>
88975
88976         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
88977
88978 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88979
88980         * modules/argz: Omit "#include".
88981
88982         * MODULES.html.sh (func_all_modules): Add calloc, to match
88983         2004-06-01 addition of calloc module.
88984
88985 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88986
88987         * m4/argz.m4: New file, which is autoupdated from libtool.
88988
88989 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88990
88991         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
88992         libtool.
88993
88994 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88995
88996         * config/srclist-update: Don't insist on "USA." before the
88997         close-comment, as libtool omits the period and puts the */ on a
88998         separate line.
88999         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
89000         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
89001
89002 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
89003
89004         * modules/argz: New file.
89005         * MODULES.html.sh (func_all_modules): Add argz.
89006
89007 2004-06-12  Jim Meyering  <jim@meyering.net>
89008         and  Paul Eggert  <eggert@cs.ucla.edu>
89009
89010         * modules/hash (Files): Add lib/xalloc.h.
89011         * modules/pipe (Depends-on): Add wait-process.
89012         * modules/stat (Depends-on): Add xalloc.
89013         * modules/userspec (Files): Add lib/userspec.h.
89014         * modules/xstrto
89015
89016         Upgrade from gettext-0.13.
89017         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
89018         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
89019         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
89020
89021 2004-06-10  Jim Meyering  <jim@meyering.net>
89022
89023         * lib/calloc.c: New file.
89024
89025 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
89026
89027         * lib/getdate.y (yylex): Allow space between sign and number.
89028         Problem reported by Dan Jacobson.
89029
89030 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89031
89032         Merge from coreutils CVS.
89033
89034         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
89035         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
89036         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
89037         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
89038         xstrtol.m4: Fix copyright date and/or serial number.
89039
89040         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
89041         See if we need an fchown replacement.
89042         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
89043         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
89044         and use the replacement function if we detect either defect.
89045
89046         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
89047         gl_UTIMECMP.
89048
89049 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89050         and  Jim Meyering  <jim@meyering.net>
89051
89052         Merge from coreutils CVS.
89053
89054         * lib/stat-macros.h: New file, with contents from file-type.h
89055         and coreutils' system.h.
89056         * lib/file-type.c: Include "stat-macros.h".
89057         * lib/file-type.h (file_type): Move all macro definitions to new file,
89058         stat-macros.h.
89059
89060         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
89061         Wrap old code with this conditional.
89062         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
89063         function that does not dereference symlinks.
89064         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
89065
89066         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
89067         dependency problems.
89068         (xreadlink): Accept new arg SIZE, for efficiency.
89069         All decls and uses changed.
89070         * lib/xreadlink.h: Include <stddef.h>, for size_t.
89071
89072         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
89073         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
89074
89075         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
89076         sysexits.h.
89077
89078 2004-06-01  Jim Meyering  <jim@meyering.net>
89079
89080         * m4/calloc.m4: New file.
89081
89082 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
89083
89084         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
89085         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
89086         Also, fix a typo in a diagnostic.
89087
89088 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89089
89090         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
89091         or AC_FUNC_REALLOC.
89092
89093 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89094
89095         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
89096         macros to be defined.
89097         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
89098         the allocator returns NULL because the requested size is zero.
89099
89100 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
89101
89102         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
89103         var.  Add comment explaining why libc still defines it.  This
89104         merges the following patch from glibc:
89105         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
89106
89107 2004-05-20  Andreas Schwab  <schwab@suse.de>
89108
89109         * m4/free.m4: Replace free if it not known to work, not the other
89110         way round.
89111
89112 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
89113
89114         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
89115         present in glibc since revision 1.1 of this file.
89116         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
89117         obstack_alignment_mask, obstack_alloc, obstack_base,
89118         obstack_blank, obstack_blank_fast, obstack_chunk_size,
89119         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
89120         obstack_grow0, obstack_init, obstack_int_grow,
89121         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
89122         obstack_next_free, obstack_object_size, obstack_ptr_grow,
89123         obstack_ptr_grow_fast, obstack_room): Remove declarations of
89124         nonexistent functions.
89125
89126 2004-05-18  Karl Berry  <karl@gnu.org>
89127
89128         * config/srclist.txt: break link for vasnprintf.c.
89129
89130 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89131
89132         Port obstack to the AS/400, where pointers are 16 bytes wide and
89133         you cannot cast an integer to a valid pointer.  This patch is
89134         currently waiting to be integrated into glibc; see
89135         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
89136
89137         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
89138         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
89139         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
89140         (struct obstack): temp member is now a union of a pointer and
89141         an integer, instead of an integer.  All integer uses changed.
89142         This does not affect the physical layout of struct obstack,
89143         except on hosts (like the AS/400) where the size or alignment of
89144         void * is greater than that of ptrdiff_t.
89145         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
89146         __STDC__)]: Store temporary in pointer member of union, not
89147         integer member.
89148         * lib/obstack.c: Include <stddef.h>, for offsetof.
89149         (struct fooalign): Remove; it doesn't need a name.
89150         (union fooround): Change double to long double, and add void *.
89151         (DEFAULT_ALIGNMENT): Use offsetof to compute.
89152         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
89153         not a macro.  Hence the values are always int; so remove all
89154         casts-to-int in uses.
89155
89156 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89157
89158         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
89159         we can get this patch merged into glibc.
89160
89161 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89162             Paul Eggert  <eggert@cs.ucla.edu>
89163
89164         * m4/argp: Depend on alloca.
89165
89166 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89167             Paul Eggert  <eggert@cs.ucla.edu>
89168
89169         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
89170         freecoding.
89171
89172 2004-05-17  Bruno Haible  <bruno@clisp.org>
89173
89174         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
89175         precision that consists of a '.' followed by an empty digit string.
89176         Patch by Tor Lillqvist <tml@iki.fi>.
89177
89178 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89179
89180         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
89181         for backward compatibility with older code.  We need our own
89182         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
89183         it under some other name, and our alloca.h will define it.
89184
89185 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89186             Derek Price  <derek@ximbiot.com>
89187
89188         * lib/alloca.c: Include <alloca.h>, to get our interface.
89189         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
89190         include <alloca.h> first.  Use C89 prototype for alloca; this
89191         requires including <stddef.h> for size_t.  Use extern "C" if C++.
89192         Use #elif for simplicity, since we can assume C89 now.
89193         Don't try to source the system alloca.h since it will not be found
89194         and to prevent recursively including its replacement.
89195         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
89196         * lib/regex.c: Likewise.
89197
89198 2004-05-16  Derek Price  <derek@ximbiot.com>
89199             Paul Eggert  <eggert@cs.ucla.edu>
89200
89201         getline cleanup.  This changes the getndelim2 API: both order of
89202         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
89203         no delimiter).
89204
89205         * lib/getline.c: Don't include stddef.h or stdio.h, since our
89206         interface does that.
89207         (getline): Always use getdelim, so that we don't have two
89208         copies of this code.
89209         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
89210         if available.
89211         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
89212         (GETNDELIM2_MAXIMUM): New macro.
89213         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
89214         instead of the old practice of delim2==0.  All callers changed.
89215         Return -1 on overflow, instead of returning junk.
89216         Do not set *linesize unless allocation succeeds.
89217         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
89218         that we include sys/types.h.
89219         * lib/getnline.h: Likewise.
89220         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
89221         (getndelim2): Reorder arguments.
89222         * lib/getnline.c (getnline, getndelim):
89223         Don't discard the NMAX argument.
89224         (getnline): Invoke getndelim, to avoid code duplication.
89225         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
89226         of (size_t) -1 by callers of the getnline family.
89227
89228 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89229
89230         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
89231         Check for gettimeofday.
89232         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
89233         Check for settimeofday, stime.
89234
89235 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89236
89237         * lib/nanosleep.c (suspended): Change its type from int to
89238         sig_atomic_t volatile.
89239         (first_call): Make it private to rpl_nanosleep, and have it
89240         be zero initially as that's a bit faster.
89241         (my_usleep): Round up fractional times instead of truncating them,
89242         as this is the usual meaning for 'sleep'.
89243
89244         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
89245         doesn't work.
89246         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
89247         (ENOSYS): Define if not defined.
89248         (settime): Fall back on stime if it exists and settimeofday fails.
89249         But don't bother with fallbacks if a method fails with errno == EPERM.
89250
89251 2004-05-11  Jim Meyering  <jim@meyering.net>
89252
89253         Prior to this change, the save_cwd caller required read access to the
89254         current directory on most systems (ones with the fchdir function).
89255
89256         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
89257         fails, try write-only, and finally, resort to using xgetcwd.
89258
89259 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
89260
89261         * lib/obstack.c, obstack.h: Import changes from libc.
89262
89263 2004-04-28  Bruno Haible  <bruno@clisp.org>
89264
89265         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
89266         also implicitly appends .exe to executables.
89267         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
89268         accepts Windows pathnames.
89269         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89270         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89271         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89272         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89273         Reported by Derek Robert Price <derek@ximbiot.com>.
89274
89275 2004-04-21  Karl Berry  <karl@gnu.org>
89276
89277         * config/srclist.txt (localcharset.c): break sync.
89278
89279 2004-04-20  Paul Eggert  <eggert@twinsun.com>
89280
89281         * m4/host-os.m4: Add a copyright notice.
89282
89283 2004-04-20  Jim Meyering  <jim@meyering.net>
89284
89285         Change UTILS_ to gl_ in AC_DEFINE'd names.
89286         Change utils_- and jm_-prefixed variables, too.
89287         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
89288         UTILS_FUNC_MKDIR_TRAILING_SLASH.
89289         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
89290
89291         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
89292         Don't emit trailing blanks.
89293         Also rename jm_-prefixed variables to have gl_ prefix.
89294
89295         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
89296         Also rename jm_-prefixed variables to have gl_ prefix.
89297
89298         * m4/jm-macros.m4: Reflect the renamings.
89299         * m4/prereq.m4: Likewise.
89300
89301 2004-04-20  Jim Meyering  <jim@meyering.net>
89302
89303         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
89304         memory.
89305
89306 2004-04-20  Jim Meyering  <jim@meyering.net>
89307             Bruno Haible  <bruno@clisp.org>
89308
89309         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
89310         memory when realloc fails.
89311
89312 2004-04-19  Jim Meyering  <jim@meyering.net>
89313
89314         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
89315         now that readutmp.c may call `free (0)'.
89316
89317 2004-04-19  Bruno Haible  <bruno@clisp.org>
89318
89319         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
89320         * m4/inttypes_h.m4: Likewise.
89321         * m4/stdint_h.m4: Likewise.
89322         * m4/intmax_t.m4: Likewise.
89323         * m4/uintmax_t.m4: Likewise.
89324
89325 2004-04-18  Jim Meyering  <jim@meyering.net>
89326
89327         * m4/prereq.m4: Don't forbid jm_ prefix.
89328
89329         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
89330         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
89331         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
89332         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
89333         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
89334         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
89335         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
89336         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
89337         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
89338         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
89339         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
89340         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
89341         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
89342         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
89343         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
89344         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
89345         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
89346         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
89347         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
89348
89349 2004-04-18  Jim Meyering  <jim@meyering.net>
89350
89351         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
89352         failure, don't leak memory and do call END_UTMP_ENT.
89353
89354 2004-04-16  Jim Meyering  <jim@meyering.net>
89355
89356         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
89357         coreutils' stat program.
89358         (gl_PREREQ): Don't require jm_PREREQ_STAT.
89359
89360 2004-04-11  Paul Eggert  <eggert@twinsun.com>
89361
89362         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
89363         C89.
89364         (CHAR_BIT): Remove, since we assume C89.
89365         Include <stdint.h> if available, as per current Autoconf CVS advice.
89366
89367 2004-03-31  Jim Meyering  <jim@meyering.net>
89368
89369         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
89370         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
89371         * m4/xalloc.m4: Likewise.
89372
89373 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89374
89375         Merge from coreutils.
89376
89377         * m4/inttostr.m4: New file.
89378         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
89379         Require AM_STDBOOL_H and gl_TIMESPEC instead.
89380         Require gl_CLOCK_TIME.
89381         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
89382
89383 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89384
89385         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
89386         not bool, to be more consistent with Unix conventions.
89387         Suggested by Bruno Haible.
89388
89389         Merge from coreutils.
89390
89391         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
89392         * lib/umaxtostr.c: New files.
89393
89394         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
89395         the usual <time.h> dance.
89396         (get_date): Change signature to support fractional time stamps.
89397         All callers changed.
89398         * lib/getdate.y: Include "getdate.h" first, as we can now
89399         assume C89 and don't need to worry about 'const'.
89400         Similarly, include "unlocked-io.h" near start, not in middle.
89401         Include <limits.h>.
89402         (textint.value): Use long int rather than int.
89403         (textint.digits): Use size_t rather than int.
89404         (BILLION, LOG10_BILLION): New constants.
89405         (parser_control): New member rel_ns.  Members day_ordinal,
89406         time_zone, month, day, hour, minutes, rel_year, rel_month,
89407         rel_day, rel_hour, rel_minutes, rel_seconds
89408         are now long int, not int.  Member seconds is now struct timespec,
89409         not int.  New member timespec_seen.  Members dates_seen, days_seen,
89410         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
89411         not int.
89412         (%union.intval): Now long int, not int.
89413         New member timespec.
89414         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
89415         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
89416         (spec): Now is a timespec or an item list.
89417         (timespec, items): New nonterminals.
89418         (time, rel, relunit, number, get_date):
89419         Add support for fractional seconds.
89420         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
89421         (gmtime, localtime, mktime): Remove decls; not needed with C89.
89422         (to_hour): First arg is now long int, not int.
89423         (to_year): Returns long int, not int.
89424         Don't treat year -70 like 70.
89425         (tm_diff): Returns long int, not int.
89426         (lookup_word): Use bool instead of int when appropriate.
89427         (yylex): Use size_t for count, not int.
89428         Detect overflow when parsing large integer constants.
89429         Add support for fractions.
89430         (get_date): Make pointers 'const' if possible.
89431         Use more-portable code to detect integer overflow.
89432         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
89433         Don't use ctime; it's not reliable if the year has >4 digits.
89434
89435         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
89436         This is for compatibility with BSD.
89437
89438         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
89439         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
89440         From coreutils' system.h.
89441
89442         * lib/userspec.c: Don't include "posixver.h".
89443         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
89444         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
89445         compatible extension.  Simplify code by removing a boolean int
89446         that was always nonzero if a string was nonnull.
89447
89448 2004-03-30  Jim Meyering  <jim@meyering.net>
89449
89450         Merge from coreutils.
89451
89452         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
89453         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
89454         on some systems one must include <grp.h> before it.
89455         Reported by Christian Krackowizer.
89456
89457 2004-03-30  Jim Meyering  <jim@meyering.net>
89458
89459         Merge from coreutils.
89460
89461         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
89462
89463         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
89464         an empty input stream.
89465
89466         * lib/readtokens.c: Include <stdbool.h>.
89467         (readtoken): Use `size_t' rather than int/long.
89468         All callers adjusted.
89469         Use `bool' rather than `int' where appropriate.
89470         Use memset rather than an explicit loop.
89471         Use x2nrealloc rather than xrealloc.
89472         Allow the use of `\0' as a delimiter.
89473         (readtokens): Likewise.
89474         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
89475
89476 2004-03-30  Jim Meyering  <jim@meyering.net>
89477
89478         * m4/realloc.m4: Remove file, since now it does no more than
89479         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
89480         the `configure.ac' section of module/realloc.
89481         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
89482
89483 2004-03-30  Bruno Haible  <bruno@clisp.org>
89484
89485         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
89486         nonnull.
89487
89488 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89489
89490         Merge changes to getloadavg.c from coreutils and Emacs.
89491
89492         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
89493         Define to an expression, not to the empty string.
89494         Include cloexec.h and xalloc.h.
89495         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
89496         Use set_cloexec_flag rather than rolling our own.
89497         * lib/cloexec.c, lib/cloexec.h: New files.
89498
89499 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89500
89501         * m4/cloexec.m4: New file.
89502
89503 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89504
89505         * lib/getopt.h: Sync with libc CVS.
89506
89507 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89508             Bruno Haible  <bruno@clisp.org>
89509
89510         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
89511         mbswidth.
89512
89513 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89514             Bruno Haible  <bruno@clisp.org>
89515
89516         * lib/mbswidth.h: Include <wchar.h> only if
89517         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
89518         <wchar.h>.
89519         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
89520
89521 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89522
89523         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
89524         Sync with libc CVS.
89525         * lib/getopt_int.h: New file, also synced from libc.
89526
89527 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89528
89529         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
89530         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
89531         Bring back getopt.c, getopt.h, getopt1.c.
89532
89533 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89534
89535         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
89536         All uses changed.  Check for sa_sigaction member; this fixes
89537         a bug first reported by Jason Andrade in
89538         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89539
89540 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89541
89542         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
89543         '#if' expressions.  Unlike the code it replaces, it does not
89544         depend on (defined _SC_PAGESIZE).  However, it does depend on
89545         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
89546         first reported by Jason Andrade in
89547         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89548
89549 2004-02-25  Simon Josefsson  <jas@extundo.com>
89550
89551         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
89552
89553 2004-02-25  Simon Josefsson  <jas@extundo.com>
89554
89555         * lib/strdup.h: New file.
89556         * lib/strdup.c: Include it.
89557         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
89558         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
89559
89560 2004-02-23  Karl Berry  <karl@gnu.org>
89561
89562         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
89563         (from fencepost.gnu.org:/gd/gnuorg).
89564
89565 2004-02-23  Karl Berry  <karl@gnu.org>
89566
89567         * config/srclistvars.sh (GNUORG) [karl]: redefine.
89568         * config/srclist.txt: add maintain/standards documents.
89569
89570 2004-02-18  Bruno Haible  <bruno@clisp.org>
89571
89572         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
89573         Reported by Derek Robert Price <derek@ximbiot.com>.
89574
89575 2004-02-16  Karl Berry  <karl@gnu.org>
89576
89577         * config/mkinstalldirs, install-sh: update from automake.
89578
89579 2004-02-06  Karl Berry  <karl@gnu.org>
89580
89581         * m4/po.m4: update from gettext 0.14.1.
89582
89583 2004-02-06  Karl Berry  <karl@gnu.org>
89584
89585         * lib/config.charset: update from gettext 0.14.1.
89586
89587 2004-02-05  Paul Eggert  <eggert@twinsun.com>
89588
89589         Add comments and code, prompted by suggestions from Bruno Haible
89590         for sh-quote.
89591         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
89592         describing the enum quoting_style values.
89593         * lib/quotearg.c (quotearg_alloc): New function.
89594         (quotearg_buffer_restyled): Treat lone { and } as special.
89595         Treat = as special.  Work around bug with older shells
89596         that "see" a '\' that is really the 2nd byte of a multibyte char.
89597         Quote empty string with shell_quoting_style.
89598
89599 2004-02-03  Bruno Haible  <bruno@clisp.org>
89600
89601         * m4/pipe.m4: New file, from GNU gettext.
89602
89603 2004-02-03  Bruno Haible  <bruno@clisp.org>
89604
89605         * lib/pipe.h: New file, from GNU gettext.
89606         * lib/pipe.c: New file, from GNU gettext.
89607
89608 2004-01-27  Bruno Haible  <bruno@clisp.org>
89609
89610         * m4/execute.m4: New file, from GNU gettext.
89611
89612 2004-01-27  Bruno Haible  <bruno@clisp.org>
89613
89614         * lib/execute.h: New file, from GNU gettext.
89615         * lib/execute.c: New file, from GNU gettext.
89616         * lib/w32spawn.h: New file, from GNU gettext.
89617
89618 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89619
89620         Merge from diffutils.
89621
89622         * lib/file-type.c (file_type): Add typed memory objects.
89623         * lib/file-type.h (S_TYPEISTMO): New macro.
89624
89625         * lib/c-stack.h (c_stack_action): Remove argv argument.
89626         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
89627         (die): Don't calculate message unless segv_action returns.
89628         (get_stack_location, min_address_from_argv, max_address_from_argv,
89629         volatile stack_base, volatile_stack_size): Remove.
89630         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
89631         that every segmentation violation is a stack overflow.  (Ouch!)
89632         See Debian bug 136249 (still outstanding) for more info about why
89633         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
89634
89635 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89636
89637         Exit-status fix from coreutils.
89638
89639         Use exit_failure consistently in place of EXIT_FAILURE,
89640         so that program exit statuses are consistent on failure.
89641
89642         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
89643         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
89644         * lib/argmatch.h: Comment fix to match the above.
89645         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
89646         Now a macro referring to exit_failure, instead of a separate
89647         variable.  Include "exitfail.h" to get it.
89648         * lib/xstrtol.h: Include "exitfail.h".
89649         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
89650
89651         * lib/long-options.c (parse_long_options): Use prototype
89652         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
89653         for clarity.
89654
89655 2004-01-21  Jim Meyering  <jim@meyering.net>
89656
89657         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
89658         so as not to conflict with a different-sized __mktime_internal
89659         function in GNU libc.
89660         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
89661         Problem building statically-linked `ls' reported by Michael Brunnbauer.
89662
89663 2004-01-20  Karl Berry  <karl@gnu.org>
89664
89665         * config/config.guess: update from config.
89666
89667         * config/srclistvars.sh: GNUWWWLICENSES for karl.
89668
89669 2004-01-20  Bruno Haible  <bruno@clisp.org>
89670
89671         Safer stack allocation.
89672         * lib/setenv.c: Include allocsa.h.
89673         (alloca): Remove fallback definition.
89674         (freea): Remove macro.
89675         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
89676         instead of freea.
89677
89678 2004-01-20  Bruno Haible  <bruno@clisp.org>
89679
89680         * m4/eealloc.m4: New file, from GNU gettext.
89681
89682 2004-01-20  Bruno Haible  <bruno@clisp.org>
89683
89684         * m4/allocsa.m4: New file, from GNU gettext.
89685
89686 2004-01-20  Bruno Haible  <bruno@clisp.org>
89687
89688         * lib/xallocsa.h: New file, from GNU gettext.
89689         * lib/xallocsa.c: New file, from GNU gettext.
89690
89691 2004-01-20  Bruno Haible  <bruno@clisp.org>
89692
89693         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
89694
89695 2004-01-20  Bruno Haible  <bruno@clisp.org>
89696
89697         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
89698         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
89699         specially.
89700
89701 2004-01-20  Bruno Haible  <bruno@clisp.org>
89702
89703         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
89704         patch.
89705
89706 2004-01-20  Bruno Haible  <bruno@clisp.org>
89707
89708         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
89709
89710 2004-01-20  Bruno Haible  <bruno@clisp.org>
89711
89712         * lib/eealloc.h: New file.
89713
89714 2004-01-20  Bruno Haible  <bruno@clisp.org>
89715
89716         * lib/binary-io.h: Avoid warnings on Cygwin.
89717
89718 2004-01-20  Bruno Haible  <bruno@clisp.org>
89719
89720         * lib/allocsa.h: New file, from GNU gettext.
89721         * lib/allocsa.c: New file, from GNU gettext.
89722
89723 2004-01-18  Karl Berry  <karl@gnu.org>
89724
89725         * doc/gpl.texi, doc/lgpl.texi: new files.
89726
89727 2004-01-18  Karl Berry  <karl@gnu.org>
89728
89729         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
89730         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
89731
89732 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89733
89734         Merge from coreutils.
89735
89736         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
89737         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
89738         (gl_DEFAULT_POSIX2_VERSION): Move
89739         the documentation from 'configure' into 'config.hin',
89740         so that 'configure --help' isn't burdened by it and
89741         we don't have to worry about its formatting there.
89742         Reword the documentation so that it's more succinct
89743         and can be run together into a single paragraph.
89744         * m4/same.m4 (gl_SAME): Check for pathconf.
89745
89746 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89747
89748         Merge from coreutils.
89749
89750         * lib/posixver.c: Include posixver.h.
89751
89752         * lib/same.c: Include <stdbool.h>, <limits.h>.
89753         (_POSIX_NAME_MAX): Define if not defined.
89754         (MIN): New macro.
89755         (same_name): If file names are silently truncated, report
89756         that the file names are the same if they are the same after
89757         the silent truncation.
89758
89759         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
89760         conversion function.
89761         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
89762         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
89763         longer needed.
89764
89765 2004-01-15  Jim Meyering  <jim@meyering.net>
89766
89767         Merge from coreutils.
89768
89769         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
89770         if no library is required.
89771         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
89772         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
89773         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
89774         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
89775         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
89776         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
89777         value, $ac_cv_search_crypt, if it's "none required".
89778         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
89779         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
89780         not gl_FUNC_GETLOADAVG.
89781         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
89782         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
89783
89784 2004-01-15  Jim Meyering  <jim@meyering.net>
89785
89786         Merge from coreutils.
89787
89788         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
89789         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
89790         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
89791
89792         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
89793         optional configure-time default.
89794
89795         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89796
89797         * lib/xreadlink.c (xreadlink): Correct outdated comment.
89798
89799 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
89800
89801         Merge from coreutils.
89802
89803         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
89804         value, $ac_cv_search_nanosleep, if it's "none required".
89805
89806 2004-01-14  Paul Eggert  <eggert@twinsun.com>
89807
89808         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
89809         with like-named macro in fnmatch.c.
89810         (EXT): Use an internal constant instead.
89811
89812         Merge fnmatch patches from glibc.
89813         * lib/fnmatch.c (mbsinit): Remove define.
89814         Add libc_hidden_ver (__fnmatch, fnmatch).
89815         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
89816         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
89817
89818 2004-01-14  Karl Berry  <karl@gnu.org>
89819
89820         * config/install-sh: update from automake.
89821
89822 2004-01-13  Karl Berry  <karl@gnu.org>
89823
89824         * config/install-sh: update from automake.
89825
89826 2004-01-09  Karl Berry  <karl@gnu.org>
89827
89828         * config/install-sh: update from automake.
89829
89830 2004-01-05  Karl Berry  <karl@gnu.org>
89831
89832         * config/config.{sub,guess}: update from config.
89833
89834 2003-12-31  Karl Berry  <karl@gnu.org>
89835
89836         * config/depcomp: update from automake.
89837
89838 2003-12-14  Karl Berry  <karl@gnu.org>
89839
89840         * lib/config.charset: update from gettext-runtime.
89841
89842 2003-12-03  Paul Eggert  <eggert@twinsun.com>
89843
89844         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
89845         Bug reported by Alfred M. Szmidt.
89846
89847 2003-12-03  Bruno Haible  <bruno@clisp.org>
89848
89849         * m4/gettext.m4: Upgrade from gettext-0.13.
89850         * m4/po.m4: Upgrade from gettext-0.13.
89851         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
89852         * m4/intmax.m4: New file, from gettext-0.13.
89853         * m4/printf-posix.m4: New file, from gettext-0.13.
89854
89855 2003-11-29  Karl Berry  <karl@gnu.org>
89856
89857         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
89858
89859 2003-11-25  Paul Eggert  <eggert@twinsun.com>
89860             Bruno Haible  <bruno@clisp.org>
89861
89862         * lib/printf-parse.h: Don't include sys/types.h.
89863         (ARG_NONE): New macro.
89864         (char_directive): Change type of *arg_index fields to size_t.
89865         * lib/printf-parse.c: Don't include sys/types.h.
89866         (SSIZE_MAX): Remove macro.
89867         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
89868         Remove unnecessary overflow check.
89869         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
89870         fields.
89871
89872 2003-11-25  Bruno Haible  <bruno@clisp.org>
89873
89874         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
89875
89876 2003-11-25  Bruno Haible  <bruno@clisp.org>
89877
89878         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
89879         gt_TYPE_SSIZE_T.
89880
89881 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89882
89883         * modules/alloca: Remove dependency on xalloc.
89884
89885 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89886
89887         * lib/alloca.c: Remove dependency on xalloc module.
89888         (xalloc_die): Remove.
89889         (memory_full) [!defined emacs]: New macro.
89890         [!defined emacs]: Don't include xalloc.h.
89891         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
89892         address arithmetic overflows.  Change datatypes a bit to avoid
89893         unnecessary casts.
89894
89895 2003-11-22  Jim Meyering  <jim@meyering.net>
89896
89897         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
89898         s/size/size_t/.
89899
89900 2003-11-21  Karl Berry  <karl@gnu.org>
89901
89902         * config/config.{sub,guess}: update from config.
89903
89904 2003-11-18  Karl Berry  <karl@gnu.org>
89905
89906         * config/config.{sub,guess}: update from config.
89907
89908         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
89909
89910 2003-11-17  Paul Eggert  <eggert@twinsun.com>
89911
89912         * README: Mention that S+T cannot overflow if S is the size of
89913         an existing object and T is sufficiently small.
89914
89915 2003-11-17  Jim Meyering  <jim@meyering.net>
89916
89917         On systems without utime and without a utimes function capable of
89918         dealing with a NULL struct utimbuf* argument, this utime replacement
89919         could -- in unusual circumstances -- leak a file descriptor.
89920         * lib/utime.c: Include <unistd.h> and <errno.h>.
89921         (utime_null): Be sure to close `fd' and to preserve errno.
89922         Reported by Geoff Collyer via Arnold Robbins.
89923
89924 2003-11-17  Bruno Haible  <bruno@clisp.org>
89925
89926         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
89927         (Depends-on): Add xsize.
89928
89929 2003-11-17  Bruno Haible  <bruno@clisp.org>
89930
89931         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
89932
89933 2003-11-17  Bruno Haible  <bruno@clisp.org>
89934
89935         * lib/vasnprintf.c (alloca): Remove fallback definition.
89936         (freea): Remove definition.
89937         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
89938         Reported by Paul Eggert.
89939
89940 2003-11-16  Paul Eggert  <eggert@twinsun.com>
89941             Bruno Haible  <bruno@clisp.org>
89942
89943         Protect against address arithmetic overflow.
89944         * lib/printf-args.h: Include stddef.h.
89945         (arguments): Change type of field 'count' to size_t.
89946         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
89947         'unsigned int' where appropriate.
89948         * lib/printf-parse.h: Include sys/types.h.
89949         (char_directive): Change type of *arg_index fields to ssize_t.
89950         (char_directives): Change type of fields 'count', max_*_length to
89951         size_t.
89952         * lib/printf-parse.c: Include sys/types.h and xsize.h.
89953         (SSIZE_MAX): Define fallback value.
89954         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
89955         instead of 'int' where appropriate. Check a_allocated, d_allocated
89956         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
89957         * lib/vasnprintf.c: Include xsize.h.
89958         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
89959         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
89960         overflow. Avoid wraparound when converting a width or precision from
89961         decimal to binary.
89962
89963 2003-11-16  Bruno Haible  <bruno@clisp.org>
89964
89965         Update from GNU gettext.
89966         * lib/printf-parse.c: Generalize to it can be compiled for wide
89967         strings.
89968         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
89969         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
89970         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
89971         SNPRINTF): New macros.
89972         Don't include <alloca.h> if the file is used inside libintl.
89973         (local_wcslen): New function, for Solaris 2.5.1.
89974         (VASNPRINTF): Use it instead of wcslen.
89975
89976 2003-11-16  Bruno Haible  <bruno@clisp.org>
89977
89978         * lib/xsize.h (xmax): New function.
89979         (xsum, xsum3, xsum4): Declare as "pure" functions.
89980
89981 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89982
89983         * modules/xalloc (Files): Undo latest change, since xalloc.h
89984         no longer needs SIZE_MAX or PTRDIFF_MAX.
89985
89986 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89987
89988         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
89989         gl_PTRDIFF_MAX.
89990
89991 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89992
89993         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
89994         "return", to pacify some unknown compiler.  Problem reported
89995         by Joerg Schilling.
89996
89997 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89998
89999         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
90000         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
90001         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
90002         heuristic is just as accurate as far as we know, and it removes a
90003         dependency on size_max.m4 and ptrdiff_max.m4.
90004
90005 2003-11-11  Bruno Haible  <bruno@clisp.org>
90006
90007         * modules/xsize (Files): Add m4/size_max.m4.
90008         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
90009
90010 2003-11-11  Bruno Haible  <bruno@clisp.org>
90011
90012         * m4/size_max.m4: New file.
90013         * m4/ptrdiff_max.m4: New file.
90014         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
90015         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
90016         (gl_XALLOC): Invoke it.
90017
90018 2003-11-11  Bruno Haible  <bruno@clisp.org>
90019
90020         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
90021         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
90022         defined.
90023
90024 2003-11-10  Paul Eggert  <eggert@twinsun.com>
90025
90026         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
90027         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
90028         rejected some allocations of exactly SIZE_MAX - 2 bytes.
90029         From Bruno Haible.
90030         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
90031         not (size_t) -1, since it's defined here.
90032
90033 2003-11-09  Karl Berry  <karl@gnu.org>
90034
90035         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
90036
90037 2003-11-06  Paul Eggert  <eggert@twinsun.com>
90038
90039         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
90040         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
90041         Reject sizes of exactly SIZE_MAX bytes.
90042         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
90043         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
90044
90045 2003-11-05  Bruno Haible  <bruno@clisp.org>
90046
90047         * lib/xsize.h: Include limits.h, to avoid a possible collision with
90048         SIZE_MAX defined in <limits.h> on Solaris.
90049
90050 2003-11-04  Jim Meyering  <jim@meyering.net>
90051
90052         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
90053         variable names, rather than @VAR@.
90054         * modules/poll: Likewise.
90055
90056 2003-11-04  Bruno Haible  <bruno@clisp.org>
90057
90058         * modules/xsize: New file.
90059         * modules/linebreak: Depend on xsize.
90060         * MODULES.html.sh (func_all_modules): Add xsize.
90061
90062 2003-11-04  Bruno Haible  <bruno@clisp.org>
90063
90064         * m4/xsize.m4: New file.
90065
90066 2003-11-04  Bruno Haible  <bruno@clisp.org>
90067
90068         * lib/xsize.h: New file.
90069         * lib/linebreak.c: Include xsize.h.
90070         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
90071         argument for overflow.
90072         Suggested by Paul Eggert.
90073
90074 2003-11-03  Karl Berry  <karl@gnu.org>
90075
90076         * config/config.{guess,sub}: update from config.
90077
90078 2003-11-03  Jim Meyering  <jim@meyering.net>
90079
90080         * modules/userspec (lib_SOURCES): Add userspec.h.
90081         (Include): Add "userspec.h".
90082         Improve description.
90083
90084 2003-11-03  Jim Meyering  <jim@meyering.net>
90085
90086         * lib/userspec.c: Include "userspec.h".
90087         * lib/userspec.h: New file.
90088
90089 2003-11-03  Bruno Haible  <bruno@clisp.org>
90090
90091         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
90092
90093 2003-11-03  Bruno Haible  <bruno@clisp.org>
90094
90095         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
90096         available, to avoid (extremely rare) race condition.
90097         Suggested by Paul Eggert.
90098
90099 2003-11-02  Karl Berry  <karl@gnu.org>
90100
90101         * config/srclist.txt (vasprintf.c): sync broken, sigh.
90102
90103 2003-10-31  Paul Eggert  <eggert@twinsun.com>
90104
90105         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
90106         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
90107         (read_filesystem_list): Set and use me_type_malloced.
90108         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
90109         whatever the type happens to be), for brevity and consistency.
90110         Check for size calculation overflow on Alphas running OSF/1.
90111
90112 2003-10-31  Jim Meyering  <jim@meyering.net>
90113
90114         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
90115
90116         * lib/linebuffer.c: Include <string.h> for declaration of memset.
90117
90118 2003-10-30  Paul Eggert  <eggert@twinsun.com>
90119             Bruno Haible  <bruno@clisp.org>
90120
90121         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
90122         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
90123
90124 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
90125
90126         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
90127         netbsd*-gnu*.  Suggested by Robert Millan.
90128
90129 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90130
90131         * modules/group-member: Depend on stdbool.
90132
90133 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90134
90135         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
90136
90137 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90138
90139         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
90140         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
90141         after the 'gnu' in these cases.  This fixes some bugs in the
90142         previous change, and is based on suggestions by Robert Millan.
90143
90144 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90145
90146         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
90147         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
90148         no longer needed.
90149         * lib/quotearg.c (quotearg_n_options): Use it.
90150         * lib/group-member.c: Include <stdbool.h>.
90151         (free_group_info): Arg is now const *; don't free arg.
90152         (get_group_info): Now returns bool and accepts struct group_info *,
90153         rather than returning a malloc'ed struct group_info *.
90154         All uses changed.  Check for overflow in internal size calculation.
90155
90156         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
90157         rather than xmalloc/xrealloc.
90158         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
90159         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
90160         conformance bug: the old code used a pointer after freeing the
90161         storage that it addressed.
90162         * lib/hash.c (hash_initialize): Simplify the code by using
90163         xalloc_oversized rather than doing it by hand.
90164         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
90165         the buffer preserved.  Use free and xmalloc instead.
90166         * lib/quotearg.c (quotearg_n_options): Likewise.
90167         Use a simpler test for size overflow.  Don't use xalloc_oversized
90168         because unsigned int might be wider than size_t (!); this suggests
90169         that we should switch from unsigned int to size_t for slot numbers.
90170
90171 2003-10-28  Paul Eggert  <eggert@twinsun.com>
90172
90173         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
90174         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
90175         NetBSD kernels.  Requested by Richard Stallman.
90176
90177 2003-10-27  Paul Eggert  <eggert@twinsun.com>
90178
90179         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
90180         to allocate the returned structure.  Do not allocate a subarray,
90181         as x2nrealloc will do that.
90182         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
90183         instead of xnrealloc.
90184         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
90185
90186 2003-10-27  Bruno Haible  <bruno@clisp.org>
90187
90188         * lib/stdbool_.h: Better support for BeOS.
90189
90190 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90191
90192         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
90193         now uses inline.
90194
90195 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90196
90197         * lib/xalloc.h (xalloc_oversized): New static inline function, for
90198         callers that want to do their own size-overflow checking.  Include
90199         <stdbool.h>, since xalloc_oversized returns bool.
90200         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
90201         to use xalloc_oversized.
90202
90203         Add two functions x2realloc, x2nrealloc, for programs that grow
90204         arrays dynamically by doubling their sizes.
90205         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
90206         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
90207         New functions.
90208
90209         Port to C99 semantics for 'inline' of external functions.
90210         Bug reported by Bruno Haible.
90211         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
90212         with the old contents of xnmalloc.
90213         (xnmalloc, xmalloc): Use it.
90214         (xnrealloc_inline): New static inline function,
90215         with the old contents of xnrealloc.
90216         (xnrealloc, xrealloc): Use it.
90217
90218         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
90219         that.
90220
90221 2003-10-26  Karl Berry  <karl@gnu.org>
90222
90223         * config/srclist.txt (COPYING.DOC): no longer available from
90224         /gd/gnuorg; don't know where the ultimate source is.
90225
90226 2003-10-25  Paul Eggert  <eggert@twinsun.com>
90227
90228         Fix several address-calculation bugs in the hash modules,
90229         plus some minor code cleanup.
90230
90231         * lib/hash.h: Include <stdbool.h>, for bool.
90232         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
90233         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
90234         hash_get_n_entries, hash_get_max_bucket_length,
90235         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
90236         hash_rehash): Use size_t rather than unsigned.
90237         * lib/hash.c (struct hash_table, hash_get_n_buckets,
90238         hash_get_n_buckets_used, hash_get_n_entries,
90239         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
90240         hash_get_entries, hash_do_for_each, hash_string, is_prime,
90241         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
90242         Likewise.
90243         (SIZE_MAX): Define if not defined.
90244         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
90245         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
90246         hash_print):
90247         Use const * when possible.
90248         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
90249         (check_tuning): Fix bug: if tuning parameters were very close to
90250         0 or 1, rounding errors could have caused subscript violations.
90251         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
90252         (hash_initialize): Add 'fail:' label
90253         to free table and return NULL, and use it to simplify code.
90254         Use calloc rather than clearing the storage ourself.
90255         (hash_initialize, hash_rehash): Check for arithmetic overflow in
90256         buffer size calculations.
90257         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
90258         Include <stddef.h>, for size_t.
90259         * lib/hash-pjw.c (hash_pjw): Likewise.
90260         Switch to method described by Bruno Haible.
90261         Include <limits.h>, for CHAR_BIT.
90262         (SIZE_BITS): New macro.
90263
90264 2003-10-23  Paul Eggert  <eggert@twinsun.com>
90265
90266         * m4/getline.m4 (AM_FUNC_GETLINE):
90267         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
90268         hosts.  Problem reported by Derek Robert Price in
90269         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
90270         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
90271         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
90272
90273 2003-10-21  Paul Eggert  <eggert@twinsun.com>
90274
90275         * lib/getndelim2.c (getndelim2): When size calculation overflows,
90276         ceiling the allocation at NMAX bytes rather than silently
90277         discarding input bytes before NMAX is reached.  This makes
90278         a difference only if NMAX exceeds SIZE_MAX / 2.
90279
90280         * lib/obstack.c: Merge from glibc.
90281         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
90282         Add libc_hidden_def (_obstack_newchunk).
90283         (_obstack_free) [! defined _LIBC]: Remove.
90284         [defined _LIBC]: Make a strong alias from obstack_free, rather than
90285         a clone of the function body.
90286         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
90287         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
90288
90289         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
90290         glibc.
90291         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
90292         arg to memcpy.
90293
90294         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
90295         (obstack_ptr_grow_fast, obstack_int_grow_fast):
90296         Don't use lvalue casts, as GCC plans to remove support for them
90297         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
90298         was also present in the non-GCC version, indicating that this
90299         code had always been buggy and had never been widely used.
90300         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
90301         Use the fast variant of each macro, rather than copying the
90302         definiens of the fast variant; that way, we'll be more likely to
90303         catch future bugs in the fast variants.
90304
90305 2003-10-20  Bruno Haible  <bruno@clisp.org>
90306
90307         * modules/wait-process: New file.
90308         * MODULES.html.sh (func_all_modules): Add wait-process.
90309
90310 2003-10-20  Bruno Haible  <bruno@clisp.org>
90311
90312         * m4/wait-process.m4: New file.
90313
90314 2003-10-20  Bruno Haible  <bruno@clisp.org>
90315
90316         * lib/wait-process.h: New file, from GNU gettext.
90317         * lib/wait-process.c: New file, from GNU gettext.
90318
90319 2003-10-19  Jim Meyering  <jim@meyering.net>
90320
90321         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
90322         HPUX 10.20.
90323
90324 2003-10-18  Karl Berry  <karl@gnu.org>
90325
90326         * config/config.guess: update from config.
90327
90328 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90329
90330         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
90331         (getgroups): First arg is int, not size_t.
90332         Don't let 'free' mangle errno.
90333
90334 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90335
90336         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
90337
90338 2003-10-16  Karl Berry  <karl@gnu.org>
90339
90340         * config/config.{guess,sub}: update from config.
90341
90342 2003-10-16  Jim Meyering  <jim@meyering.net>
90343
90344         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
90345         memcpy.
90346
90347 2003-10-15  Paul Eggert  <eggert@twinsun.com>
90348
90349         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
90350         (SIZE_MAX): Remove.
90351         (new_exclude, add_exclude_file): Initial size no longer needs to
90352         be a power of 2.
90353         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
90354         our own address arithmetic overflow checking.
90355
90356         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
90357         (fnmatch): Do not alloca more than 2000 wide characters;
90358         instead, use malloc for large buffers.
90359         Check for address arithmetic overflow, and return -1
90360         with errno set to ENOMEM in that case.
90361         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
90362         (NEW_PATTERN): Do not alloca more than 8000 bytes;
90363         instead, return -1.  Check for address arithmetic overflow.
90364
90365 2003-10-14  Paul Eggert  <eggert@twinsun.com>
90366
90367         Handle invalid suffixes and overflow independently, so that
90368         callers can treat them independently as needed.  Fix some bugs in
90369         suffix handling, e.g., "100k@" was not diagnosed as an invalid
90370         suffix for a human-readable blocksize.  The major caller-visible
90371         change is the addition of a new
90372         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
90373         that both overflow and suffix chars were found.
90374
90375         * lib/human.c (humblock): Don't check separately for invalid suffix
90376         char; that is xstrtoumax's job (now that its bug is fixed).
90377         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
90378         INTMAX_MAX]: New macros.
90379         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
90380         TYPE_MAXIMUM): New macros.
90381         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
90382         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
90383         if overflow occurs, as it's what __strtol does and it's more useful
90384         in practice.
90385         (__xstrtol): If __strtol reports some error other than ERANGE,
90386         reflect it to the caller as LONGINT_INVALID.  If it reports
90387         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
90388         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
90389         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
90390         value.
90391         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
90392         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
90393         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
90394         [defined UINTMAX_MAX]: New macros.
90395
90396 2003-10-14  Bruno Haible  <bruno@clisp.org>
90397
90398         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
90399
90400 2003-10-14  Bruno Haible  <bruno@clisp.org>
90401
90402         * m4/sig_atomic_t: New file, from GNU gettext.
90403         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
90404
90405 2003-10-14  Bruno Haible  <bruno@clisp.org>
90406
90407         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
90408         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
90409         Also use volatile where needed.
90410
90411 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90412
90413         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
90414         Change maintainer from Bruno Haible to 'all'.
90415
90416 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90417
90418         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
90419
90420 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90421
90422         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
90423         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
90424         and define in terms of the other primitives.
90425         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
90426         (SIZE_MAX): Define if not already defined.
90427         (array_size_overflow): New function.
90428         (xalloc_die): Abort instead of exiting if 'error' returns.
90429         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
90430         (xmalloc, xrealloc): Use them.
90431         (xcalloc): Check for address arithmetic overflow.
90432         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
90433         a bit faster than strcpy.
90434
90435 2003-10-10  Simon Josefsson  <jas@extundo.com>
90436
90437         * modules/argp (Depends-on): Add restrict and strcase.
90438
90439 2003-10-10  Simon Josefsson  <jas@extundo.com>
90440
90441         * m4/argp.m4: Add AC_C_INLINE.
90442
90443 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90444
90445         Merge getpass from libc, plus a few fixes.
90446
90447         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
90448         Include <stdbool.h>.
90449         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
90450         __fsetlocking to empty.
90451         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
90452         do include <bits/libc-lock.h>.
90453         Do not include <fcntl.h>; not needed.
90454         [_LIBC]: Include <wchar.h>.
90455         (NOTCANCEL_MODE): New macro.
90456         (flockfile, funlockfile) [_LIBC]: New macros.
90457         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
90458         [!_LIBC]: New macros.
90459         (call_fclose): New function.
90460         (getpass): Use it.  Save tty stream separately; this simplifies the
90461         code and makes it more reliable if stdin happens to equal stdout.
90462         Invoke __fsetlocking on tty.
90463         Handle thread cancellation if needed.
90464         Namespace cleanup (use __tcgetattr, __getline).
90465         Use bool for Booleans.
90466         [USE_IN_LIBIO]: Handle wide streams.
90467         [!_LIBC]: Unconditionally do the fseek, since we don't know what
90468         stream might go where.
90469
90470         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
90471         doesn't have to include <stdio.h> before us.
90472         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
90473         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
90474         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
90475         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
90476         if not declared, so that we can use getpass.c code from libc without
90477         rewriting it.
90478         (flockfile, ftrylockfile, funlockfile): New macros.
90479
90480 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90481
90482         * modules/getpass: Depend on stdbool.
90483
90484 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90485
90486         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
90487
90488 2003-10-07  Karl Berry  <karl@gnu.org>
90489
90490         * config/config.{guess,sub}: update from config.
90491
90492 2003-10-06  Jim Meyering  <jim@meyering.net>
90493             Bruno Haible  <bruno@clisp.org>
90494
90495         This lets translators provide better translations for the
90496         "Written by ..." part of --version output.
90497         * lib/version-etc.h: Include stdarg.h.
90498         (version_etc_copyright): Declare as readonly.
90499         (version_etc): Make this function variadic with a NULL-terminated list
90500         of author name strings.
90501         (version_etc_va): New declaration.
90502         * lib/version-etc.c: Include stdarg.h, stdlib.h.
90503         (version_etc_copyright): Declare as readonly.
90504         (version_etc_va): New function. Provide a different translatable string
90505         for each possible number of authors < 10. Abbreviate when there are 10
90506         authors or more.
90507         (version_etc): Make this function variadic. Call version_etc_va.
90508         Suggestion from Gary V. Vaughan.
90509
90510         * lib/long-options.h (parse_long_options): Change prototype: the
90511         authors string is moved to the end and becomes variadic.
90512         * lib/long-options.c: Include stdarg.h.
90513         (parse_long_options): Make this function variadic, too.
90514         Call version_etc_va, not version_etc.
90515
90516 2003-10-06  Bruno Haible  <bruno@clisp.org>
90517
90518         * modules/version-etc-2: Remove file.
90519         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
90520
90521 2003-10-06  Bruno Haible  <bruno@clisp.org>
90522
90523         * modules/fatal-signal: New file.
90524         * MODULES.html.sh (func_all_modules): Add fatal-signal.
90525
90526 2003-10-06  Bruno Haible  <bruno@clisp.org>
90527
90528         * m4/fatal-signal.m4: New file.
90529         * m4/signalblocking.m4: New file, from GNU gettext.
90530
90531 2003-10-06  Bruno Haible  <bruno@clisp.org>
90532
90533         * lib/version-etc-2.h: Remove file.
90534         * lib/version-etc-2.c: Remove file.
90535
90536 2003-10-06  Bruno Haible  <bruno@clisp.org>
90537
90538         * lib/fatal-signal.h: New file, from GNU gettext.
90539         * lib/fatal-signal.c: New file, from GNU gettext.
90540
90541 2003-10-05  Paul Eggert  <eggert@twinsun.com>
90542
90543         * README: Rework advice for preventing empty .o files.
90544         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
90545         not <sys/types.h>.
90546
90547 2003-10-04  Karl Berry  <karl@gnu.org>
90548
90549         * lib/argp*: update from libc.
90550
90551 2003-10-04  Karl Berry  <karl@gnu.org>
90552
90553         * config/config.{guess,sub}: update from config.
90554
90555 2003-10-02  Bruno Haible  <bruno@clisp.org>
90556
90557         * modules/lchown (Include): Add lchown.h.
90558         * modules/time_r (Include): Use "..." syntax.
90559         * modules/xgetdomainname (Include): Add xgetdomainname.h.
90560
90561 2003-10-01  Simon Josefsson  <jas@extundo.com>
90562
90563         * MODULES.html.sh (func_all_modules): Move gethostname from section
90564         'based on' to section 'lacking' POSIX:2001.
90565
90566 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
90567
90568         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
90569         to output mode on the same stream.
90570
90571 2003-09-29  Paul Eggert  <eggert@twinsun.com>
90572
90573         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
90574         Fix arg typo in previous patch.
90575
90576 2003-09-28  Jim Meyering  <jim@meyering.net>
90577
90578         * lib/error.c: Correct cpp indentation.
90579
90580 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90581
90582         * modules/free: New file.
90583
90584 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90585
90586         * m4/free.m4: New file.
90587
90588 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90589
90590         * lib/minmax.h (MIN, MAX)
90591         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
90592         Omit the special code that used __typeof__, since we worry that
90593         it could be more trouble than it's worth.  See:
90594         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
90595         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
90596
90597         * lib/free.c: New file.
90598
90599 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
90600
90601         Trivial fixes to Makefile.am parts of module listings.
90602         * modules/strstr: Append strstr.h to lib_SOURCES.
90603         * modules/strcase: Likewise, for strcase.h.
90604
90605 2003-09-27  Karl Berry  <karl@gnu.org>
90606
90607         * config/mkinstalldirs: update from automake.
90608
90609 2003-09-26  Paul Eggert  <eggert@twinsun.com>
90610
90611         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
90612         (error_tail): Do not loop, reallocating temporary buffer, since
90613         the output cannot contain more wide characters than the input
90614         contains bytes, the size must be big enough already.  This avoids
90615         one potential size overflow calculation.  Check for size overflow
90616         when calculating temporary buffer size.  Free temporary buffer
90617         when done, if it was allocated with malloc; this plugs a memory
90618         leak.  Remove casts from void * to pointers, that are no longer
90619         needed now that we're assuming C89 or better.
90620
90621         Merge error changes from glibc.
90622
90623         * lib/error.c, error.h: Update copyright notice header to match glibc.
90624         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
90625         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
90626         Disable cancellation while printing error.
90627         * lib/error.h: Prepend __ to parameter names.
90628
90629 2003-09-26  Jim Meyering  <jim@meyering.net>
90630
90631         * lib/error.c (error_tail): Move some declarations
90632         into inner scope where the local variables are used.
90633
90634 2003-09-26  Bruno Haible  <bruno@clisp.org>
90635
90636         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
90637         stpncpy().
90638         Don't define stpncpy through config.h; it's now done through stpncpy.h.
90639
90640 2003-09-26  Bruno Haible  <bruno@clisp.org>
90641
90642         * lib/stpncpy.h (gnu_stpncpy): New declaration.
90643         (stpncpy): Define as alias for gnu_stpncpy.
90644         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
90645
90646 2003-09-25  Simon Josefsson  <jas@extundo.com>
90647
90648         * lib/xgetdomainname.h: New file.
90649         * lib/xgetdomainname.c: New file.
90650
90651 2003-09-25  Simon Josefsson  <jas@extundo.com>
90652             Bruno Haible  <bruno@clisp.org>
90653
90654         * modules/getdomainname: New file.
90655         * modules/xgetdomainname: New file.
90656         * MODULES.html.sh (func_all_modules): Add getdomainname,
90657         xgetdomainname.
90658
90659 2003-09-25  Simon Josefsson  <jas@extundo.com>
90660             Bruno Haible  <bruno@clisp.org>
90661
90662         * m4/getdomainname.m4: New file.
90663
90664 2003-09-25  Simon Josefsson  <jas@extundo.com>
90665             Bruno Haible  <bruno@clisp.org>
90666
90667         * lib/getdomainname.h: New file.
90668         * lib/getdomainname.c: New file.
90669
90670 2003-09-25  Karl Berry  <karl@gnu.org>
90671
90672         * lib/argp-fmtstream.c, argp-help.c: update from libc.
90673
90674 2003-09-25  Karl Berry  <karl@gnu.org>
90675
90676         * config/install-sh: update from automake.
90677
90678 2003-09-25  Bruno Haible  <bruno@clisp.org>
90679
90680         * modules/version-etc-2: New file, from modules/version-etc with
90681         modifications.
90682         * MODULES.html.sh (func_all_modules): Add version-etc-2.
90683
90684 2003-09-25  Bruno Haible  <bruno@clisp.org>
90685
90686         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
90687         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
90688
90689 2003-09-24  Simon Josefsson  <jas@extundo.com>
90690
90691         * modules/xgethostname: Add xgethostname.h.
90692
90693 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90694
90695         * lib/linebuffer.c (freebuffer): Don't free the argument, just
90696         the buffer associated with the argument.  Bug reported by
90697         Simon Josefsson.
90698
90699 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90700
90701         * README: Document assumptions that 'int' is at least 32 bits
90702         wide, that integer arithmetic is 2's complement without overflow,
90703         that there are no holes in integer values, that adding sizes of
90704         two nonoverlapping objects can't overflow, and that all-bits-zero
90705         yields scalar zero.  Fix spelling and capitalization typos.
90706
90707 2003-09-19  Karl Berry  <karl@gnu.org>
90708
90709         * lib/argp.h: update from libc.
90710
90711 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90712
90713         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
90714         to avoid spurious warnings like "AC_RUN_IFELSE was called before
90715         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
90716
90717 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90718
90719         * gnulib-tool: Use "test -h", not "test -L", for portability
90720         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
90721         (tags_regexp): Remove, since \| doesn't conform to POSIX.
90722         (sed_extract_prog): Issue s commands one-by-one, rather than
90723         using \| in one s command.
90724
90725 2003-09-16  Paul Eggert  <eggert@twinsun.com>
90726
90727         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
90728         input error, instead of returning NULL the next time we are called
90729         (and therefore losing track of errno).
90730
90731 2003-09-16  Bruno Haible  <bruno@clisp.org>
90732
90733         * gnulib-tool (func_create_testdir): Warn about duplicated
90734         dependencies.
90735
90736 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90737
90738         * modules/argmatch, modules/fatal, modules/obstack,
90739         modules/xalloc, modules/xgethostname: Sort dependencies by
90740         importance, not alphabetically.
90741
90742 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90743
90744         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
90745         fails, so that the caller gets the proper errno.
90746
90747         * lib/readutmp.c (read_utmp): Likewise.
90748         Check for fstat error.  Close stream and free storage
90749         when failing.
90750
90751 2003-09-14  Karl Berry  <karl@gnu.org>
90752
90753         * config/srclist.txt (strdup.c): disable for c89 changes.
90754
90755 2003-09-14  Jim Meyering  <jim@meyering.net>
90756
90757         * lib/getloadavg.c: Correct cpp indentation.
90758         * lib/strdup.c: Likewise.
90759         * lib/vasnprintf.c: Likewise.
90760
90761 2003-09-14  Bruno Haible  <bruno@clisp.org>
90762
90763         * modules/fwriteerror: New file.
90764         * MODULES.html.sh (func_all_modules): Add fwriteerror.
90765
90766 2003-09-14  Bruno Haible  <bruno@clisp.org>
90767
90768         * lib/fwriteerror.h: New file.
90769         * lib/fwriteerror.c: New file.
90770
90771 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90772
90773         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
90774         modules/xgethostname, modules/xalloc: Depend on exit.
90775
90776 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90777
90778         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
90779
90780         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
90781         and AC_MINIX, too, so that their extensions are available.
90782
90783         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
90784         This macro has been superseded by gl_BACKUPFILE.
90785
90786         More patches to assume C89 or better.
90787
90788         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
90789
90790         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
90791         unconditionally.
90792         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
90793         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
90794         Include <string.h>, <stdlib.h> unconditionally.
90795         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
90796         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
90797         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
90798         headers or for string.h.
90799         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
90800         or strtoul.
90801
90802         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
90803         headers.
90804         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
90805         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90806         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
90807         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
90808         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90809         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
90810         memcpy, memset.
90811         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
90812         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
90813         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
90814         strtol.
90815         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
90816         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
90817         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
90818         strtoul.
90819
90820 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90821
90822         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
90823         * lib/obstack.c [!defined _LIBC]: Likewise.
90824         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
90825         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
90826         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
90827
90828         More changes to assume C89 or better.
90829
90830         * lib/error.c (error_tail): Assume vprintf.
90831
90832         * lib/argmatch.c (getenv): Remove decl.
90833         * lib/progreloc.c (get_full_program_name): Define via prototype.
90834         * lib/setenv.c (clearenv): Likewise.
90835         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
90836         needed.
90837         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
90838         (malloc, memcpy): Remove decls.
90839         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
90840         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
90841         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90842         (memcpy): Remove macro.
90843         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
90844         (__P): Remove.  All uses removed.
90845         (PTR): Remove.  All uses changed to void *.
90846         (CHAR_BIT, NULL): Remove.
90847         (spaces, zeros, memset_space, memset_zero)
90848         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
90849         Remove.
90850         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
90851         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
90852         Define with prototype.
90853         Remove now-unnecessary prototype decl.
90854         (extra_args_spec): Assume ANSI C.  All uses changed.
90855         (extra_args_spec_iso): Remove.
90856         (my_strftime, emacs_strftimeu): Define via prototype.
90857         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
90858         unconditionally.
90859         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
90860         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
90861         (strtoul, strtol): Remove decls.
90862         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
90863         LONG_MAX): Remove.
90864         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90865         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
90866         (LOCALE_PARAM_PROTO): New macro.
90867         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
90868         (INTERNAL (strtol), strtol): Define with a prototype.
90869         (PARAMS): Remove.  All uses removed.
90870         * lib/tempname.c: Include <string.h> unconditionally.
90871         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
90872         * lib/xgethostname.c (main): Define with a prototype.
90873         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
90874         Include <stdlib.h> unconditionally.
90875         (calloc, malloc, realloc, free): Remove decls.
90876         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
90877         Include <stdlib.h> unconditionally.  Sort include file names.
90878         (strtod): Remove.
90879         (xstrtod): Define with a prototype.
90880         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
90881         (strtol, strtoul): Remove decls.
90882
90883 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90884
90885         More patches to assume C89 or better.
90886         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
90887         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
90888         string.h, memchr, STDC_HEADERS.
90889
90890 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90891
90892         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
90893         Include <stdlib.h>, <string.h> unconditionally.
90894         Remove now-unnecessary cast to char *.
90895         * lib/strnlen.c: Include <string.h> unconditionally.
90896         * lib/yesno.c (yesno): Define with a prototype.
90897
90898 2003-09-11  Bruno Haible  <bruno@clisp.org>
90899
90900         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
90901
90902 2003-09-10  Jim Meyering  <jim@meyering.net>
90903
90904         * lib/error.c: Correct indentation of cpp directives.
90905
90906 2003-09-10  Bruno Haible  <bruno@clisp.org>
90907
90908         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
90909         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
90910         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
90911         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
90912         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
90913         <stdlib.h> and <string.h> checks.
90914         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
90915         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
90916
90917 2003-09-10  Bruno Haible  <bruno@clisp.org>
90918
90919         * lib/strcspn.c: Include <string.h> unconditionally.
90920         * lib/strpbrk.c: Include <string.h> unconditionally.
90921         * lib/strstr.c: Include <string.h> unconditionally.
90922         * lib/unicodeio.c: Include <string.h> unconditionally.
90923         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
90924         * lib/unsetenv.c: Likewise.
90925         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
90926         * lib/yesno.c: Include <stdlib.h> unconditionally.
90927         (rpmatch): Add prototype.
90928
90929 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90930
90931         More patches to assume C89 or better.
90932         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
90933         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
90934         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
90935         or for string.h.
90936         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
90937         stdlib.h.
90938         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
90939         C headers.
90940         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
90941         string.h.
90942         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
90943         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
90944         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
90945         or for string.h.
90946         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
90947         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
90948         C headers.
90949         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
90950         memcpy.
90951         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
90952         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
90953         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
90954         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
90955         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
90956         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
90957         string.h, free.
90958         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
90959         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
90960         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
90961         C headers, or for string.h.
90962         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
90963         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
90964         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
90965         headers, memory.h, stdlib.h, string.h, strings.h.
90966         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
90967         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
90968         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
90969         strchr.
90970         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
90971         headers, memory.h, string.h.
90972         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
90973         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
90974         free.
90975         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
90976         headers.
90977         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
90978         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
90979         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
90980         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
90981         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
90982
90983 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90984
90985         More K&R removal.
90986
90987         * lib/acosl.c (main): Use a prototype.
90988         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
90989         tanl.c: Likewise.
90990
90991         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
90992
90993         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
90994         (getopt, etopt_long, getopt_long_only, _getopt_internal)
90995         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
90996         with a prototype.
90997         * lib/getopt.c (const): Remove macro.
90998         Include <string.h> unconditionally.
90999         (my_index): Remove; all uses changed to strchr.
91000         (strlen): Remove decl.
91001         (exchange): Remove forward decl; no longer needed.
91002         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
91003         Define with prototype.
91004         * lib/getopt1.c (const): Remove macro.
91005         (getopt_long, getopt_long_only, main): Define with prototype.
91006
91007         * lib/getugroups.c: Include <string.h> unconditionally.
91008
91009         * lib/getusershell.c: Include <stdlib.h> unconditionally.
91010         (getusershell, setusershell, endusershell, readname, main):
91011         Define with prototypes.
91012
91013         * lib/group-member.c: Include group-member.h first.
91014         Include <stdlib.h> unconditionally.
91015
91016         * lib/hard-locale.c: Include hard-locale.h first.
91017         Include <stdlib.h>, <string.h> unconditionally.
91018
91019         * lib/hash.c (free, malloc): Remove decls.
91020         Include <stdlib.h> unconditionally.
91021
91022         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
91023         (getenv): Do not declare.
91024
91025         * lib/idcache.c: Include <string.h> unconditionally.
91026
91027         * lib/long-options.c: Include long-options.h first, to test interface.
91028         Include <stdlib.h> unconditionally.
91029
91030         * lib/makepath.c: Include makepath.h first, to test interface.
91031         Include <stdlib.h> and <string.h> unconditionally.
91032
91033         * lib/linebuffer.c: Include <stdlib.h>.
91034         (free): Remove decl.
91035
91036         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
91037         stddef.h. rpl_malloc returns void *, not char *.
91038         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
91039         prototype.
91040
91041         * lib/md5.h: Include <limits.h> unconditionally.
91042         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
91043         (__P): Remove; all uses removed.
91044         * lib/md5.c: Include "md5.h" first.
91045         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
91046         md5_buffer, md5_process_bytes, md5_process_block):
91047         Define with prototypes.
91048         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
91049         * lib/sha.c: Include "sha.h" first.
91050         Include <stdlib.h>, <string.h> unconditionally.
91051
91052         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
91053         * lib/memcmp.c (__ptr_t): Likewise.
91054         * lib/memrchr.c (__ptr_t): Likewise.
91055         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
91056         Include <string.h> unconditionally.
91057         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
91058         * lib/memchr.c: Include <stdlib.h> unconditionally.
91059         * lib/memchr.c (LONG_MAX): Remove.
91060         * lib/memrchr.c (LONG_MAX): Likewise.
91061         * lib/memchr.c (__memchr): Define via a prototype.
91062         * lib/memrchr.c (__memrchr): Likewise.
91063         * lib/memcmp.c (__P): Remove, and remove all uses.
91064         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
91065         Remove forward decls; no longer needed.
91066         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
91067         Use types required by C89 in prototype.
91068
91069         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
91070         * lib/savedir.c: Likewise.
91071         * lib/mkdir.c (free): Remove decl.
91072         * lib/rmdir.c (rmdir): Define with a prototype.
91073         * lib/savedir.c: Include savedir.h first, to test interface.
91074
91075         * lib/mktime.c (STDC_HEADERS): Remove.
91076         Include <stdlib.h>, <string.h> unconditionally.
91077
91078         * lib/modechange.c: Include <stdlib.h> unconditionally.
91079         (malloc): Remove decl.
91080
91081         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
91082         (free): Remove decl.
91083
91084         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
91085         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
91086         (This type really should be intptr_t, but that's a C99ism.)
91087         (_obstack_memcpy): Remove: all uses changed to memcpy.
91088         Include <string.h> unconditionally.
91089         (struct obstack): Assume __STDC__ for types of members
91090         chunkfun, freefun, extra_arg.
91091         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
91092         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
91093         obstack_begin, obstack_specify_allocation,
91094         obstack_specify_allocation_with_arg, obstack_chunkfun,
91095         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
91096         Remove unprototyped decls and the macros that use them.
91097         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
91098         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
91099         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
91100         (defined __STDC__ && __STDC__)]:
91101         Remove nonprototyped code.
91102         Include <stdlib.h> unconditionally.
91103         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
91104         _obstack_allocated_p, _obstack_free, obstack_free,
91105         _obstack_memory_used, print_and_abort):
91106         Define using prototypes.
91107         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
91108         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
91109         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
91110         obstack_next_free, obstack_object_size, obstack_room) [0]:
91111         Remove unused, unprototyped code.
91112
91113         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
91114
91115         * lib/physmem.c (physmem_total, physmem_available, main): Define
91116         with prototypes.
91117
91118         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
91119         (main): Define with a prototype.
91120
91121         * lib/posixver.c (getenv): Remove decl.
91122
91123         * lib/putenv.c (malloc): Returns void *, not char *.
91124         Include <string.h> unconditionally.
91125         (strchr, memcpy, NULL): Do not define.
91126
91127         * lib/readtokens.c: Include readtokens.h first, to test interface.
91128         Include <stdlib.h>, <string.h> unconditionally.
91129         (init_tokenbuffer): Define with a prototype.
91130
91131         * lib/regex.c (PARAMS): Remove.  All uses removed.
91132         All uses of _RE_ARGS removed, too.
91133         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
91134         unconditionally.
91135         (bzero): Assume memset exists.
91136         (memcmp, memcpy, NULL): Remove.
91137         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
91138         char, or assignments to local vars of type signed char.
91139         (init_syntax_once, PREFIX(extract_number_and_incr),
91140         PREFIX(print_partial_compiled_pattern),
91141         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
91142         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
91143         PREFIX(regex_grow_registers), PREFIX(regex_compile),
91144         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
91145         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
91146         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
91147         wcs_compile_range, byte_compile_range, truncate_wchar,
91148         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
91149         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
91150         count_mbs_length, wcs_re_match_2_internal,
91151         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
91152         PREFIX(alt_match_null_string_p),
91153         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
91154         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
91155         regfree, PREFIX(extract_number)): Define with prototype.  Remove
91156         now-unnecessary declaration, if any.
91157         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
91158         regcomp, regexec):
91159         Remove now-unnecessary casts among pointer types.
91160         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
91161
91162         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
91163         (free): Remove decl.
91164
91165         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
91166
91167         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
91168         (free): Remove decl.
91169
91170         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
91171         * lib/xgetcwd.c: Likewise.
91172
91173         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
91174         (free): Remove decl.
91175
91176         * lib/strchrnul.c (strchrnul): Define with a prototype.
91177         Fix bug: c_in was not converted to char before searching.
91178
91179         The following changes are not K&R related:
91180
91181         * lib/group-member.h: Include <sys/types.h>, so that this file is
91182         self-contained.
91183         * lib/makepath.h: Likewise.
91184
91185         * lib/getusershell.c (readname, default_index, line_size, readname):
91186         Use size_t, not int, for sizes.
91187         (readname): If the size overflows, report an error instead of
91188         looping forever.
91189
91190 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91191
91192         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
91193         libc.
91194
91195 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91196
91197         * README: New section: portability guidelines.
91198
91199 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91200
91201         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
91202         C89 spec.
91203
91204 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91205
91206         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
91207
91208 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91209
91210         Assume C89 or better; remove K&R cruft.
91211         A few of these changes were first proposed by Derek Robert Price
91212         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
91213
91214         * lib/addext.c: Include <string.h> unconditionally.
91215         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
91216         Don't declare getenv or malloc.
91217
91218         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
91219         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
91220         (NULL): Remove.
91221         (find_stack_direction, alloca): Use prototypes.
91222
91223         * lib/atexit.c (atexit): Define using a prototype.
91224
91225         * lib/basename.c, dirname.c, stripslash.c:
91226         Include <string.h> unconditionally.
91227
91228         * lib/bcopy.c: Include <stddef.h>.
91229         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
91230
91231         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
91232
91233         * lib/error.h (error, error_at_line, error_print_progname)
91234         [! (defined (__STDC__) && __STDC__)]: Remove decls.
91235         * lib/error.c: Include error.h first, to check interface.
91236         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91237         (VA_START): Remove; all uses changeed to va_start.
91238         (exit, strerror): Remove decls.
91239         (error_print_progname): Prototype uncondionally.
91240         Don't include <errno.h>; no longer needed.
91241         (private_strerror): Remove.
91242         (error_tail): Always define.
91243         (error, error_at_line): Assume C89 or better; always use prototypes.
91244         * lib/fatal.c: Include "fatal.h" first, to test interface.
91245         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91246         (VA_START): Remove; all uses changed to va_start.
91247         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
91248         this case.
91249         (exit): Remove decl.
91250         (fatal): Prototype unconditionally.  Assume va_start works.
91251         Abort at end, to pacify gcc.
91252
91253         * lib/euidaccess.c (main): Define with a prototype.
91254
91255         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
91256
91257         * lib/exitfail.c: Include <stdlib.h> unconditionally.
91258
91259         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
91260         prototypes.
91261         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
91262         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
91263         (getenv): Remove decl.
91264         (fnmatch): Define using a prototype.
91265         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
91266         (FCT): Define using a prototype.
91267
91268         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
91269
91270         * lib/gethostname.c: Include <stddef.h>.
91271         (gethostname): Define with prototype.  Length is size_t, not int.
91272
91273 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91274
91275         Assume C89 or better; remove K&R cruft.
91276         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
91277         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
91278         string.h, getenv, malloc.
91279         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
91280         headers.
91281         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
91282         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
91283         do not check for strerror.
91284         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
91285         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
91286         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
91287         do not check for doprnt or vprintf.
91288         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
91289         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
91290
91291 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91292
91293         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
91294         getversion.c should have been removed then, but was accidentally
91295         preserved.
91296
91297         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
91298         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
91299
91300 2003-09-08  Karl Berry  <karl@gnu.org>
91301
91302         * config/config.sub, config.guess, srclistvars.sh: update from savannah
91303                 config, forget about prep.
91304
91305         * config/depcomp, missing: update from automake.
91306
91307 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91308
91309         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
91310         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91311
91312 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91313
91314         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
91315         copy_tm_result.  Bug reported by Simon Josefsson in
91316         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91317
91318 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91319
91320         * m4/time_r.m4: New file.
91321         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
91322         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
91323         is. Check for timegm declaration.
91324         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
91325         Do not check for gmtime_r.
91326         Replace mktime if __mktime_internal does not exist and if mktime
91327         hasn't been replaced already.
91328
91329 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91330
91331         * lib/time_r.c, lib/time_r.h: New files.
91332
91333         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
91334         __localtime_r.
91335         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
91336         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
91337
91338         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
91339         __gmtime_r.
91340         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
91341         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
91342         Include <time_r.h>.
91343
91344         * lib/timegm.c: Switch to glibc implementation, with the following
91345         changes:
91346         [defined HAVE_CONFIG_H]: Include <config.h>.
91347         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
91348         (__mktime_internal) [!defined _LIBC]: New decl.
91349         (__gmtime_r) [!defined _LIBC]: New macro and function.
91350         (timegm): Use a prototype, since gnulib assumes C89.
91351         Do not bother declaring tmp to be const, as it's not really usefu.
91352         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
91353         (timegm): Declare only if HAVE_DECL_TIMEGM.
91354
91355 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91356
91357         * MODULES.html.sh (func_all_modules): Add time_r.
91358         * modules/time_r: New file.
91359         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
91360         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
91361
91362 2003-09-03  Paul Eggert  <eggert@twinsun.com>
91363
91364         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
91365         Bug reported by Lute Kamstra in
91366         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
91367
91368         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
91369         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
91370         course with correspondingly smaller numbers for tomorrow and
91371         yesterday.  From Tadayoshi Funaba.  Originally installed into
91372         sh-utils on 1999-08-07, but the patch got lost (I guess during the
91373         coreutils merge?).
91374
91375 2003-08-31  Simon Josefsson  <jas@extundo.com>
91376
91377         * modules/timegm: New file.
91378         * MODULES.html.sh (func_all_modules): Add timegm.
91379
91380 2003-08-31  Simon Josefsson  <jas@extundo.com>
91381
91382         * m4/timegm.m4: New file.
91383
91384 2003-08-31  Simon Josefsson  <jas@extundo.com>
91385
91386         * lib/timegm.h: New file.
91387         * lib/timegm.c: New file.  Based on
91388         wget-1.8.2/src/http.c:mktime_from_utc.
91389
91390 2003-08-31  Karl Berry  <karl@gnu.org>
91391
91392         * lib/argp.h: update from libc.
91393
91394 2003-08-28  Bruno Haible  <bruno@clisp.org>
91395
91396         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
91397         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
91398         followed by '#define fnmatch fnmatch_posix' gives an error.
91399
91400 2003-08-28  Bruno Haible  <bruno@clisp.org>
91401
91402         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
91403         warning on QNX, which defines O_BINARY to 000000.
91404
91405 2003-08-27  Jim Meyering  <jim@meyering.net>
91406
91407         * m4/mkstemp.m4: Require that the system mkstemp be able to create
91408         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
91409         would fail after 32.  Reported by Danny Levinson.  Details here:
91410         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
91411
91412 2003-08-24  Bruno Haible  <bruno@clisp.org>
91413
91414         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
91415         MSVC7 <stdio.h> is included later.
91416
91417 2003-08-22  Simon Josefsson  <jas@extundo.com>
91418
91419         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
91420
91421 2003-08-20  Karl Berry  <karl@gnu.org>
91422
91423         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
91424
91425 2003-08-20  Bruno Haible  <bruno@clisp.org>
91426
91427         * modules/progname: New file.
91428         * MODULES.html.sh (func_all_modules): Add progname.
91429
91430 2003-08-20  Bruno Haible  <bruno@clisp.org>
91431
91432         * lib/progname.h: New file, from GNU gettext.
91433         * lib/progname.c: New file, from GNU gettext.
91434         * lib/progreloc.c: New file, from GNU gettext.
91435
91436 2003-08-19  Jim Meyering  <jim@meyering.net>
91437
91438         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
91439         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
91440
91441 2003-08-19  Bruno Haible  <bruno@clisp.org>
91442
91443         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
91444         more.
91445
91446 2003-08-19  Bruno Haible  <bruno@clisp.org>
91447
91448         * lib/xstrdup.c: Assume <string.h> exists.
91449
91450 2003-08-18  Paul Eggert  <eggert@twinsun.com>
91451
91452         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
91453         in makefile rules.
91454
91455 2003-08-18  Jim Meyering  <jim@meyering.net>
91456
91457         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
91458         * m4/lib-ld.m4: Likewise.
91459
91460 2003-08-18  Jim Meyering  <jim@meyering.net>
91461
91462         * lib/setenv.h: Indent nested cpp directive.
91463         * lib/vasnprintf.c: Remove trailing blanks.
91464
91465 2003-08-17  Simon Josefsson  <jas@extundo.com>
91466
91467         * modules/xstrndup: New file.
91468         * MODULES.html.sh (func_all_modules): Add xstrndup.
91469
91470 2003-08-17  Simon Josefsson  <jas@extundo.com>
91471
91472         * modules/argp: Fix autoconf macro name. Add more dependencies.
91473
91474 2003-08-17  Simon Josefsson  <jas@extundo.com>
91475
91476         * m4/xstrndup.m4: New file.
91477
91478 2003-08-17  Simon Josefsson  <jas@extundo.com>
91479
91480         * m4/argp.m4: New file.
91481
91482 2003-08-17  Simon Josefsson  <jas@extundo.com>
91483             Bruno Haible  <bruno@clisp.org>
91484
91485         * lib/xstrndup.h: New file.
91486         * lib/xstrndup.c: New file.
91487
91488 2003-08-17  Bruno Haible  <bruno@clisp.org>
91489
91490         * modules/strndup (Files, Include): Add lib/strndup.h.
91491
91492 2003-08-17  Bruno Haible  <bruno@clisp.org>
91493
91494         * modules/euidaccess (Files): Add lib/euidaccess.h.
91495
91496 2003-08-17  Bruno Haible  <bruno@clisp.org>
91497
91498         * lib/strndup.h: New file.
91499
91500 2003-08-17  Bruno Haible  <bruno@clisp.org>
91501
91502         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
91503         like AC_GNU_SOURCE.
91504         * modules/extensions (configure.ac): Comment out the invocation of
91505         gl_USE_SYSTEM_EXTENSIONS.
91506
91507 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91508
91509         Merges from coreutils, etc.
91510         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
91511         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
91512         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
91513         fixing a typo.
91514         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
91515         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
91516
91517 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91518
91519         Document merge from coreutils.
91520         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
91521         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
91522         * modules/utime: Add m4/utimes-null.m4.
91523
91524 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91525
91526         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
91527         space, undoing this 2003-08-12 change:
91528         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91529
91530 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91531
91532         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
91533         strtoul.c from libc, undoing this 2003-08-12 change:
91534         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91535
91536 2003-08-16  Jim Meyering  <jim@meyering.net>
91537
91538         Merges from coreutils.
91539         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
91540         prefix.  Adjust cache variables similarly.  Create 500 rather than
91541         just 300 files, to exercise bug on Darwin6.5, too.
91542         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
91543         $missing_dir.
91544         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
91545         AM_SYS_POSIX_TERMIOS.
91546         Reported by mkc@mathdogs.com.
91547         Also change use of $am_cv_sys_posix_termios
91548         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
91549         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
91550         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
91551         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
91552         in /proc/mounts until it finds one with matching device number.  This
91553         is unnecessary when the FILE argument *is* a mount point.  No stat call
91554         is necessary in that case.  So, disable the statvfs-testing code on
91555         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
91556         as RedHat bug# 84846.
91557         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91558         to 1MB, so as not to render systems with no stack size limit (e.g.,
91559         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91560         Include <unistd.h>.  On some systems,
91561         it is required for the definition of _SC_PAGESIZE.
91562
91563 2003-08-16  Jim Meyering  <jim@meyering.net>
91564
91565         Merge from coreutils.
91566         * lib/xstrtoimax.c: #else #if -> #elif.
91567         * lib/xstrtoumax.c: Likewise.
91568
91569 2003-08-16  Jim Meyering  <jim@meyering.net>
91570
91571         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
91572         * m4/utimes.m4: Removed.
91573         * m4/utimes-null.m4: Renamed from utimes.m4.
91574
91575         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91576         to 1MB, so as not to render systems with no stack size limit (e.g.,
91577         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91578         Include <unistd.h>.  On some systems,
91579         it is required for the definition of _SC_PAGESIZE.
91580
91581 2003-08-16  Jim Meyering  <jim@meyering.net>
91582         and Paul Eggert  <eggert@cs.ucla.edu>
91583
91584         Merges from coreutils, etc.
91585
91586         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
91587         using the latest version from cvs.  This avoids problems with #line
91588         directives using a vendor (Sun) compiler.
91589         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
91590         Don't set GETGROUPS_LIB here; now it's
91591         done via getgroups.m4's wrapper function.
91592         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
91593         rather than just in sh-util/configure.in, so that the
91594         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
91595         same.
91596         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
91597         AC_FUNC_GETLOADAVG where to find getloadavg.c.
91598         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
91599         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
91600         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
91601         Remove code that is now done by the newly-required macros.
91602         Append $(EXEEXT) to DF_PROG.
91603         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
91604         Do not invoke or require the following here,
91605         since prereq.m4 or some gnulib .m4 now does this for us:
91606         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
91607         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
91608         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
91609         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
91610         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
91611         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
91612         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
91613         AC_FUNC_OBSTACK.
91614         Do not replace the following functions, as this is now the job
91615         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
91616         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
91617         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
91618         atexit getpass, strdup, getpagesize.
91619         Replace 'raise'.
91620         Do not check for the following functions, as this is now the job
91621         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
91622         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
91623         setregid.
91624         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
91625         Check for sys/sysctl.h.
91626         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
91627         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
91628         of checking for ssize_t ourselves.
91629
91630         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
91631         Require every macro that gnulib/modules/* suggests for us.
91632         (jm_PREREQ_ADDEXT): New macro.
91633         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
91634         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
91635
91636         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
91637         (gl_PHYSMEM): Use it.
91638         Also check for `table' function.
91639         Check for new headers and functions.
91640         Add check for sys/sysmp.h.
91641         With suggestions from Kaveh Ghazi.
91642         Ignore headers that are present but cannot be compiled.  This
91643         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
91644         C 5.4.
91645
91646 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91647
91648         Document merge from coreutils.
91649         * modules/userspec: Depend on posixver.
91650         * modules/strftime: Depend on tzset.
91651
91652 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91653
91654         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
91655         rather than tab, after '#' in shell-script copyright notices.
91656         Suggested by Bruno Haible.
91657
91658 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91659
91660         * config/srclist-update: Use three spaces, rather than tab, after '#'
91661         in shell-script copyright notices.  Suggested by Bruno Haible.
91662         Remove unnecessary parenthesization in regular expression.
91663
91664 2003-08-15  Jim Meyering  <jim@meyering.net>
91665
91666         Merge from coreutils.
91667         * lib/xgethostname.c: Include <stdlib.h>.
91668         (xghostname): Don't exit for anything other than memory-related
91669         failure; just return NULL.
91670         * lib/userspec.c: Include "posixver.h".
91671         (parse_user_spec): Accept `.' as a separator only
91672         in pre-POSIX-200112 mode.
91673         * lib/strtoimax.c: Use #elif rather than #else #if.
91674         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
91675         Remove function, now that we can rely on a working tzset function.
91676         [!_LIBC]: Ensure that the required autoconf test has been run.
91677         [!defined _NL_CURRENT && HAVE_STRFTIME]:
91678         Use underlying_strftime for %r.
91679         * lib/sha.c: Merge in some clean-up and optimization changes from
91680         glibc.
91681         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
91682         Ensure that it is a multiple of 64.
91683         Rearrange loop exit tests so as to avoid performing an
91684         additional fread after encountering an error or EOF.
91685         * lib/realloc.c: Update copyright date.
91686
91687 2003-08-15  Jim Meyering  <jim@meyering.net>
91688         and Paul Eggert  <eggert@twinsun.com>
91689
91690         Merge from coreutils.
91691         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
91692         member but strut utmpx does not.  Needed for AIX 4.3.3.
91693         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
91694
91695 2003-08-15  Jim Meyering  <jim@meyering.net>
91696         and Paul Eggert  <eggert@cs.ucla.edu>
91697
91698         Merges from coreutils, etc.
91699         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
91700         Require gl_FUNC_TZSET_CLOBBER.
91701         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
91702         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
91703         members.
91704
91705 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91706
91707         Help the merge from coreutils.
91708         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
91709         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
91710         * m4/tzset.m4: Use it too.
91711
91712 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91713
91714         * modules/tzset: New file.
91715
91716 2003-08-14  Jim Meyering  <jim@meyering.net>
91717
91718         Merges from coreutils.
91719         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
91720         variable names, rather than @FNMATCH_H@.
91721         * modules/alloca: Likewise for $(ALLOCA_H).
91722
91723         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
91724         the three copies of the literal target, `fnmatch.h'.
91725         * modules/alloca (alloca.h): Likewise.
91726
91727 2003-08-14  Jim Meyering  <jim@meyering.net>
91728
91729         Merge from coreutils.
91730         * m4/tzset.m4: New file.
91731         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
91732         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
91733         otherwise, AIX 5.1 systems would end up using the latter.
91734         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
91735         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
91736         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
91737         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
91738
91739 2003-08-14  Jim Meyering  <jim@meyering.net>
91740
91741         Merge from coreutils.
91742         * lib/obstack.h: Whitespace changes.
91743         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
91744         and xcalloc return values.
91745         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
91746         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
91747         hang on OSF/1 5.1 for DIR on both local and remote file systems.
91748         Reported by (and fix confirmed by) Nelson H. F. Beebe.
91749         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91750         error from mntctl.
91751         Use mntctl's return value to drive the entry-processing loop, since
91752         we can't rely on the value of the vmt_length member in the last
91753         entry.  On some systems doing so could result in exhausting
91754         virtual memory.  Based in part on a patch from Mike Jetzer.
91755
91756 2003-08-14  Jim Meyering  <jim@meyering.net>
91757         and Paul Eggert  <eggert@twinsun.com>
91758
91759         Merges from coreutils, plus other fixes.
91760         * lib/physmem.c: Merge in portability changes from gcc/libiberty
91761         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
91762         for credits and details.  Thanks to Kaveh Ghazi for helping
91763         to keep these files in sync.
91764         (ARRAY_SIZE): Define it.
91765         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
91766         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
91767         (memcasecmp): Don't assume size_t fits in unsigned int.
91768         Remove casts and duplicate code.
91769         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
91770         (memcpy): Remove definition.
91771         Merge in some clean-up and optimization changes from glibc.
91772         [BLOCKSIZE]: Move definition to top of file.
91773         Ensure that it is a multiple of 64.
91774         Rearrange loop exit tests so as to avoid performing an
91775         additional fread after encountering an error or EOF.
91776         * lib/md5.h (md5_uintptr): Define.
91777         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
91778         return to the initial working directory.  Preserve errno
91779         for caller.
91780         * lib/idcache.c: Include "xalloc.h".
91781         (xmalloc, xrealloc): Remove decls.
91782         (getuser): Remove casts no longer required in C89.
91783         * lib/human.c: Include stdio.h, for sprintf.
91784         * lib/group-member.c: Include "xalloc.h".
91785         (xmalloc, xrealloc): Remove decls.
91786         (get_group_info): Remove casts no longer required in C89.
91787         * lib/getusershell.c (readname): Remove casts no longer required in
91788         C89.
91789         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
91790         * lib/getline.c: Whitespace fix, from coreutils.
91791
91792 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91793
91794         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
91795         Check for isascii.
91796
91797         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91798         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91799         Undo previous (whitespace-only) change.
91800
91801 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91802
91803         * lib/exclude.c: Include <ctype.h>
91804         (IN_CTYPE_DOMAIN): New macro.
91805         (is_space): New fn.
91806         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
91807         and empty lines.
91808
91809         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91810         Undo previous (whitespace-only) change.
91811
91812 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91813
91814         * config/srclist-update: Change update back to the old behavior,
91815         leaving whitespace alone.  Use one 'sed' command rather than a
91816         pipeline.
91817         (fixlicense): Now a variable, not a function.
91818         (remove_trailing_blanks): Remove.
91819         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
91820         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91821         Undo previous (whitespace-only) change.
91822
91823 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91824
91825         Merge from coreutils.
91826         * modules/euidaccess: Add lib_SOURCES, include for new
91827         file euidaccess.h
91828
91829 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91830
91831         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91832         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91833         Normalize leading white space and remove trailing white space.
91834
91835         Merge from coreutils
91836         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
91837
91838         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
91839         0.12.1.  These files are now being upgraded automatically by
91840         ../config/srclist-update.
91841
91842 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91843
91844         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91845         Normalize leading white space and remove trailing white space.
91846         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
91847         notice, as per ../config/srclist-update.
91848
91849         Merge from coreutils.
91850         * lib/euidaccess.h: New file.
91851         * lib/euidaccess.c: Include it.
91852         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
91853         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
91854         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
91855
91856 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91857
91858         * config/srclist-update: Add copyright notice.
91859         (remove_id_lines, remove_trailing_blanks): New constants.
91860         (fixfile): Use them to normalize spacing a bit in copied files.
91861         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91862         Normalize leading white space and remove trailing white space.
91863
91864         * config/texinfo.tex: Sync with texinfo.
91865
91866         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
91867         strtoul.c from libc, to merge coreutils whitespace changes.
91868
91869         * config/srclist.txt: Get the following m4 files from gettext:
91870         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
91871         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
91872         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
91873         wint_t.m4.
91874
91875 2003-08-12  Karl Berry  <karl@gnu.org>
91876
91877         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
91878         been made.
91879
91880 2003-08-11  Paul Eggert  <eggert@twinsun.com>
91881
91882         * modules/gnu-source, m4/gnu-source.m4:
91883         Remove; we're assuming Autoconf 2.54 or later now.
91884         Suggested by Bruno Haible.
91885         * MODULES.html.sh (func_all_modules): Remove gnu-source.
91886
91887 2003-08-11  Bruno Haible  <bruno@clisp.org>
91888
91889         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
91890
91891 2003-08-11  Bruno Haible  <bruno@clisp.org>
91892
91893         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
91894         (vasnprintf): Use it instead of wcslen.
91895
91896 2003-08-11  Bruno Haible  <bruno@clisp.org>
91897
91898         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
91899         value to ensure that _Bool promotes to int. Use #define for _Bool when
91900         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
91901
91902 2003-08-10  Karl Berry  <karl@gnu.org>
91903
91904         * lib/regex.h: update from libc (whitespace fix).
91905
91906 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91907
91908         Merge some files from coreutils.  These changes were
91909         originally made by Jim Meyering.
91910         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
91911         many older Unixes require this.
91912         * lib/alloca.c (alloca): Remove cast to argument of free;
91913         no longer needed in C89.
91914         * lib/alloca_.h, regex.h: Fix white space to match
91915         what GNU indent does.
91916
91917 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91918
91919         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
91920         apparently Emacs's Unicode mode got confused before my 2003-08-05
91921         checkin.
91922
91923 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91924
91925         * m4/extensions.m4: New file.
91926         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
91927         Require gl_USE_SYSTEM_EXTENSIONS.
91928         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
91929         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
91930
91931 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91932
91933         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
91934         * modules/extensions, modules/gnu-source: New files.
91935         * modules/timespec, modules/unlocked-io: Depend on extensions.
91936
91937 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91938
91939         * modules/restrict: New file.
91940         * MODULES.html.sh (func_all_modules): Add restrict.
91941         * modules/regex: Depend on restrict.
91942
91943 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91944
91945         * m4/restrict.m4: New file.
91946         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
91947
91948 2003-08-07  Bruno Haible  <bruno@clisp.org>
91949
91950         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
91951         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
91952
91953 2003-08-07  Bruno Haible  <bruno@clisp.org>
91954
91955         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
91956         makes the module 'getndelim2' compatible with the module 'getline'.
91957
91958 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91959
91960         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
91961         byte with "\201" to avoid glitches when editing that source file
91962         with multi-gnome-terminal.
91963
91964 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91965
91966         * lib/bumpalloc.h: Remove.
91967
91968 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91969
91970         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
91971         * modules/bumpalloc: Remove.
91972
91973 2003-08-04  Paul Eggert  <eggert@twinsun.com>
91974
91975         * lib/getloadavg.c: Change copyright notice and spacing to conform to
91976         GNU coding style.
91977
91978         Merge from coreutils.
91979         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
91980         1. From glibc.
91981         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
91982         from Karl Berry, implemented by Jim Meyering.
91983         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
91984         from Dmitry V. Levin.
91985         Remove anachronistic cast of xrealloc.
91986         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
91987         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
91988         type. Otherwise, it wouldn't compile with at least /bin/cc on
91989         ymp-cray-unicos9.0.2.X.
91990         Combine two mostly-identical uses of alloca into one.
91991         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
91992
91993 2003-08-04  Dave Love  <d.love@dl.ac.uk>
91994
91995         [From Emacs.]
91996
91997         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
91998         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
91999         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
92000         obsolete NLIST_NAME_UNION.
92001         [__GNU__]: Undef BSD and FSCALE.
92002         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
92003
92004 2003-08-03  Paul Eggert  <eggert@twinsun.com>
92005
92006         * lib/stdbool_.h (_Bool): Make it signed char, instead of
92007         an enum type, so that it's guaranteed to promote to int.  See:
92008         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
92009
92010 2003-08-03  Karl Berry  <karl@gnu.org>
92011
92012         * config/depcomp: update from automake.
92013
92014 2003-07-31  Paul Eggert  <eggert@twinsun.com>
92015
92016         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
92017         (strerror): Don't assume that a printable int fits in 14 bytes.
92018
92019 2003-07-31  Bruno Haible  <bruno@clisp.org>
92020
92021         * modules/getpass-gnu: New file.
92022         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
92023
92024 2003-07-31  Bruno Haible  <bruno@clisp.org>
92025
92026         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
92027
92028 2003-07-24  Karl Berry  <karl@gnu.org>
92029
92030         * config/missing: update from automake.
92031
92032 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
92033             Bruno Haible  <bruno@clisp.org>
92034
92035         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
92036         * lib/getline.c (getline, getdelim): Likewise.
92037         Remove _GNU_SOURCE define; now it's defined in config.h through
92038         m4/getline.m4.
92039
92040 2003-07-23  Karl Berry  <karl@gnu.org>
92041
92042         * config/config.sub: update from prep.
92043
92044 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92045
92046         * modules/xalloc (Depends-on): Add exitfail.
92047         * modules/xmemcoll: Likewise.
92048
92049 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92050
92051         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
92052         over-parenthesization in macros.
92053
92054         Sync with coreutils.
92055
92056         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
92057         required by C99.
92058
92059         Use `exit_failure' for xalloc and xmemcoll instead of their own
92060         private exit-failure variables.
92061         * lib/xalloc.h (xalloc_exit_failure): Remove.
92062         * lib/xmalloc.c: Likewise.  Include exitfail.h.
92063         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
92064         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
92065         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
92066         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
92067
92068 2003-07-20  Jim Meyering  <jim@meyering.net>
92069
92070         * modules/closeout (Depends-on): Add exitfail.
92071         Suggestion from Bruno Haible.
92072
92073 2003-07-19  Karl Berry  <karl@gnu.org>
92074
92075         * config/config.sub: update from prep.
92076
92077 2003-07-18  Paul Eggert  <eggert@twinsun.com>
92078
92079         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
92080         Remove.
92081         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
92082         to test that it can stand by itself.  Include "exitfail.h".
92083         Clients should set exit_failure instead.
92084         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
92085
92086 2003-07-18  Bruno Haible  <bruno@clisp.org>
92087
92088         * modules/getndelim2: New file.
92089         * modules/getline: Share files with module getndelim2.
92090         * modules/getnline: Depend on getndelim2 instead of sharing files with
92091         it. Add getnline.c to lib_SOURCES.
92092         * MODULES.html.sh (func_all_modules): Add getndelim2.
92093
92094 2003-07-18  Bruno Haible  <bruno@clisp.org>
92095
92096         * m4/getndelim2.m4: New file.
92097         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
92098         invoke gl_PREREQ_GETNDELIM2.
92099         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
92100         gl_PREREQ_GETNDELIM2.
92101         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
92102         gl_GETNDELIM2.
92103
92104 2003-07-18  Bruno Haible  <bruno@clisp.org>
92105
92106         * lib/getndelim2.h: New file.
92107         * lib/getndelim2.c: Make into a module of its own. Include config.h,
92108         getndelim2.h.
92109         (getndelim2): Make non-static. Change return type to ssize_t.
92110         * lib/getline.h: Change argument names.
92111         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
92112         * lib/getnline.c: Include getndelim2.h.
92113
92114 2003-07-18  Andreas Schwab  <schwab@suse.de>
92115
92116         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
92117
92118 2003-07-17  Karl Berry  <karl@gnu.org>
92119
92120         * config/config.sub: update from prep.
92121
92122 2003-07-17  Bruno Haible  <bruno@clisp.org>
92123
92124         * modules/getnline: New file.
92125         * modules/getline: Add lib/getndelim2.c to source file list.
92126         * MODULES.html.sh (func_all_modules): Add getnline.
92127
92128 2003-07-17  Bruno Haible  <bruno@clisp.org>
92129
92130         * m4/getnline.m4: New file.
92131
92132 2003-07-17  Bruno Haible  <bruno@clisp.org>
92133
92134         * m4/Makefile.am.in: Remove file.
92135         * m4/Makefile.am: Remove file.
92136         * m4/Makefile.in: Remove file.
92137
92138 2003-07-17  Bruno Haible  <bruno@clisp.org>
92139
92140         * lib/getnline.h: New file.
92141         * lib/getnline.c: New file.
92142         * lib/getndelim2.c: New file, extracted from getline.c.
92143         (getndelim2): Renamed from getdelim2, with added nmax argument.
92144         * lib/getline.c: Include getndelim2.c.
92145         (getdelim2): Moved out to getndelim2.c.
92146         (getline, getdelim): Update.
92147
92148 2003-07-17  Bruno Haible  <bruno@clisp.org>
92149
92150         * lib/Makefile.am: Remove file.
92151         * lib/Makefile.in: Remove file.
92152
92153 2003-07-17  Bruno Haible  <bruno@clisp.org>
92154
92155         * configure.in: Remove file.
92156         * Makefile.in: Remove file.
92157
92158 2003-07-17  Bruno Haible  <bruno@clisp.org>
92159
92160         * MODULES.html.sh: Put the </BODY> right before </HTML>.
92161
92162 2003-07-16  Karl Berry  <karl@gnu.org>
92163
92164         * config/srclist-update: was running fixlicense twice, which caused
92165                 texinfo.tex to be nullified for some reason.  Simplify,
92166                 $gplsrc is no longer needed as far as I can see?
92167
92168 2003-07-16  Jim Meyering  <jim@meyering.net>
92169
92170         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
92171
92172 2003-07-15  Paul Eggert  <eggert@twinsun.com>
92173
92174         * config/srclist.txt: Get the following files from gettext-runtime/intl
92175         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
92176         ref-del.sin.  From Bruno Haible.
92177         * config/srclist-update (fixfile): Change grep pattern again, since the
92178         previous fix didn't work (there was another trailing $).  Use
92179         '[$]' to escape the $s.
92180
92181 2003-07-15  Karl Berry  <karl@gnu.org>
92182
92183         * lib/vasnprintf.c: update from gettext.
92184
92185 2003-07-15  Karl Berry  <karl@gnu.org>
92186
92187         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
92188         gets expanded when surrounded by '$'.
92189
92190 2003-07-15  Jim Meyering  <jim@meyering.net>
92191
92192         * modules/save-cwd: Don't depend on error.  From Derek Price.
92193
92194 2003-07-15  Jim Meyering  <jim@meyering.net>
92195
92196         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
92197
92198 2003-07-14  Simon Josefsson  <jas@extundo.com>
92199
92200         * modules/mempcpy: New file.
92201         * MODULES.html.sh (func_all_modules): Add mempcpy.
92202
92203 2003-07-14  Simon Josefsson  <jas@extundo.com>
92204
92205         * m4/mempcpy.m4: New file.
92206
92207 2003-07-14  Simon Josefsson  <jas@extundo.com>
92208
92209         * lib/mempcpy.h: New file.
92210         * lib/mempcpy.c: New file.
92211
92212 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92213
92214         * modules/getdate, modules/posixtm: Depend on mktime.
92215
92216 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92217
92218         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
92219         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
92220         unicodeio.c, unicodeio.h, unlocked-io.h:
92221         Switch from LGPL to GPL.
92222
92223 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92224
92225         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
92226         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
92227         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
92228         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
92229         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
92230         updated automatically by ../config/srclist-update.  This changes
92231         their license from LPGL to GPL.
92232
92233 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92234
92235         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
92236         assumed to refer to the root of the most recent stable gettext version.
92237         * config/srclistvars.sh: Add defaults for eggert.
92238         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
92239         Match "This program" as well as "The program".  This is needed
92240         for gettext.
92241
92242 2003-07-14  Jim Meyering  <jim@meyering.net>
92243
92244         Don't emit diagnostics.  Let callers do that.
92245         * lib/save-cwd.c: Don't include "error.h".
92246         (save_cwd): Don't call error.  Ensure that errno is valid
92247         when returning nonzero.
92248
92249         * lib/save-cwd.h (restore_cwd): Update prototype.
92250         * lib/save-cwd.c (restore_cwd): Remove two parameters.
92251         Simplify.  Don't call error upon failure.  Let callers do that.
92252         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
92253         when auditing is enabled.  But don't bother updating the #if.
92254
92255 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
92256
92257         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
92258         it breaks C++ compilation.
92259         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
92260
92261 2003-07-10  Simon Josefsson  <jas@extundo.com>
92262
92263         * modules/strchrnul (Makefile.am): Add strchrnul.h.
92264
92265 2003-07-10  Jim Meyering  <jim@meyering.net>
92266
92267         * m4/clock_time.m4: Remove trailing blank.
92268         * m4/intmax_t.m4: Likewise.
92269
92270 2003-07-10  Jim Meyering  <jim@meyering.net>
92271
92272         * lib/vasnprintf.c: Remove trailing blanks.
92273         Make cpp indentation consistent.
92274
92275 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92276
92277         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
92278         posixver.c, strftime.c, strnlen.c, strverscmp.c:
92279         Switch from LGPL to GPL.
92280
92281 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92282
92283         * config/srclist.txt: Sort sublists.  Add
92284         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
92285         that differ from gnulib for one reason or another; we'd like this list
92286         to be smaller but for now let's document what we have.
92287
92288 2003-07-08  Paul Eggert  <eggert@twinsun.com>
92289
92290         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
92291         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
92292         and sweeter "eval x=$x".
92293         * config/srclist.txt: Get lib/argp* from glibc.
92294
92295 2003-07-07  Paul Eggert  <eggert@twinsun.com>
92296
92297         * lib/mktime.c: Fix some boundary cases and remove need for floating
92298         point.
92299
92300         Issue a compile-time diagnostic if time_t is floating point, or if
92301         two's complement arithmetic is not in effect, or if arithmetic
92302         right shift does not propagate the sign.  These assumptions were
92303         all in the original code but they weren't checked.
92304
92305         (TIME_T_MIDPOINT, verify): New macros.
92306         (__isleap): Remove; it has integer overflow problems.
92307         (leapyear): New function, without those problems.
92308         (ydhms_tm_diff): Remove; splitting into two parts.
92309         (ydhms_diff): New function, containing the arithmetic part of
92310         the old ydhms_tm_diff function.  Issue a compile-time
92311         diagnostic if we are not using C99 integer division.
92312         Avoid casts when possible.
92313         (guess_time_tm): New function, containing the checking part of
92314         the old ydhms_tm_diff function.  Return the new value, rather than
92315         the difference between it and the old.  Accept a new argument T
92316         so that *T specifies the old value.  Check for overflow in the result.
92317
92318         (__mktime_internal): Use a time_t offset, not a long int offset.
92319         This undoes the 2003-06-04 change, which is no longer needed now
92320         that we have better overflow checking.
92321         (localtime_offset): Likewise.
92322
92323         (__mktime_internal): Avoid harmful overflow on hosts where time_t
92324         and long are 64-bit but int is only 32-bit.
92325         (ydhms_diff): Use long int to store year1 and yday1.
92326         Issue a compile-time diagnostic if long int is not wide enough.
92327
92328         (__mktime_internal): Use long int to store adjusted year and yday.
92329         Use plain C rather than preprocessor commands, if that doesn't
92330         affect efficiency.
92331         Check for overflow (and try to repair) after each probe
92332         rather than checking only at the very end.  This avoids some bugs
92333         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
92334         does not equal GMT offset at maximum time).
92335         Use integer to check for overflow rather than floating point; this
92336         is more portable to non-IEEE hosts, and is a tad faster.
92337         When we detect that we are oscillating between two values,
92338         don't check whether tm_isdst has the requested value, since
92339         we already know the answer.  When tm_isdst has the wrong value,
92340         use a different heuristic to find the right one, based on the
92341         extreme values actually observed in practice in tz2003a,
92342         rather than the (overly optimistic) "previous 3 calendar quarters".
92343
92344         (not_equal_tm, print_tm, check_result): Use "const T" rather than
92345         "T const" to accommodate glibc style.
92346         (check_result): Use less-confusing report format.  "long" -> "long int.
92347         (main): Likewise.
92348         Don't loop if the iteration overflows time_t.
92349         Allow a negative step in the iteration.
92350
92351 2003-07-06  Karl Berry  <karl@gnu.org>
92352
92353         * config/depcomp: update from automake.
92354         * config/config.sub: update from prep.
92355
92356 2003-07-03  Karl Berry  <karl@gnu.org>
92357
92358         * config/config.guess: update from prep.
92359
92360 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92361
92362         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
92363         xreadlink.c now includes it unconditionally.
92364
92365 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92366
92367         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
92368         having it depend on HAVE_SYS_TYPES_H.
92369
92370 2003-07-01  Bruno Haible  <bruno@clisp.org>
92371
92372         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
92373         <sys/types.h> should be sufficient.
92374         Reported by Paul Eggert.
92375
92376 2003-06-26  Karl Berry  <karl@gnu.org>
92377
92378         * config/depcomp: update from automake.
92379
92380 2003-06-26  Bruno Haible  <bruno@clisp.org>
92381
92382         * modules/human: Depend on module stdbool.
92383
92384 2003-06-25  Bruno Haible  <bruno@clisp.org>
92385
92386         * modules/readlink: New file.
92387         * modules/xreadlink: Depend on it.
92388         * MODULES.html.sh (func_all_modules): Add readlink.
92389
92390 2003-06-25  Bruno Haible  <bruno@clisp.org>
92391
92392         * m4/readlink.m4: New file.
92393
92394 2003-06-25  Bruno Haible  <bruno@clisp.org>
92395
92396         * lib/readlink.c: New file.
92397
92398 2003-06-22  Karl Berry  <karl@gnu.org>
92399
92400         * config/srclist.txt: update mkinstalldirs from automake.
92401         * config/mkinstalldirs: update.
92402
92403 2003-06-22  Bruno Haible  <bruno@clisp.org>
92404
92405         Portability to mingw32.
92406         * m4/ssize_t.m4: New file, from GNU gettext.
92407         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
92408         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
92409
92410 2003-06-22  Bruno Haible  <bruno@clisp.org>
92411
92412         * modules/safe-read: Add m4/ssize_t.m4.
92413         * modules/xreadlink: Add m4/ssize_t.m4.
92414
92415 2003-06-20  Bruno Haible  <bruno@clisp.org>
92416
92417         Assume C89, so PARAMS isn't needed.
92418         * lib/unicodeio.h (PARAMS): Remove.
92419         * lib/unicodeio.c: Don't use PARAMS.
92420
92421 2003-06-18  Karl Berry  <karl@gnu.org>
92422
92423         * config/config.{guess,sub}: update from prep.
92424
92425 2003-06-18  Jim Meyering  <jim@meyering.net>
92426
92427         Merge changes from coreutils.
92428         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
92429         Remove explicit declarations of xmalloc and realloc.
92430         Include xalloc.h.
92431         (read_utmp): Remove anachronistic cast of xmalloc.
92432
92433 2003-06-17  Paul Eggert  <eggert@twinsun.com>
92434
92435         Assume C89, so PARAMS isn't needed.
92436         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
92437         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
92438         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
92439         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
92440         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
92441         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
92442         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
92443         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
92444         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
92445         lib/xstrtod.h, lib/xstrtol.h: Likewise.
92446         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
92447         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
92448         no longer needed. Anyway, config.h should always be included before any
92449         other file.
92450
92451 2003-06-11  Simon Josefsson  <jas@extundo.com>
92452
92453         * modules/sysexits: New file.
92454         * MODULES.html.sh (func_all_modules): Add sysexits.
92455
92456 2003-06-11  Simon Josefsson  <jas@extundo.com>
92457
92458         * lib/sysexit_.h: New file.
92459
92460 2003-06-11  Derek Price  <derek@ximbiot.com>
92461
92462         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
92463         necessary.
92464
92465 2003-06-11  Bruno Haible  <bruno@clisp.org>
92466
92467         * m4/sysexits.m4: New file.
92468
92469 2003-06-10  Simon Josefsson  <jas@extundo.com>
92470
92471         * lib/argp.h: New file, from glibc.
92472         * lib/argp-ba.c: New file, from glibc.
92473         * lib/argp-eexst.c: New file, from glibc.
92474         * lib/argp-fmtstream.c: New file, from glibc.
92475         * lib/argp-fmtstream.h: New file, from glibc.
92476         * lib/argp-fs-xinl.c: New file, from glibc.
92477         * lib/argp-help.c: New file, from glibc.
92478         * lib/argp-namefrob.h: New file, from glibc.
92479         * lib/argp-parse.c: New file, from glibc.
92480         * lib/argp-pv.c: New file, from glibc.
92481         * lib/argp-pvh.c: New file, from glibc.
92482         * lib/argp-xinl.c: New file, from glibc.
92483
92484 2003-06-10  Simon Josefsson  <jas@extundo.com>
92485
92486         * modules/strchrnul: New file.
92487
92488 2003-06-10  Simon Josefsson  <jas@extundo.com>
92489
92490         * modules/argp: New file.
92491
92492 2003-06-10  Simon Josefsson  <jas@extundo.com>
92493
92494         * m4/strchrnul.m4: New file.
92495
92496 2003-06-10  Simon Josefsson  <jas@extundo.com>
92497
92498         * lib/strchrnul.h: New file.
92499         * lib/strchrnul.c: New file.
92500
92501 2003-06-10  Bruno Haible  <bruno@clisp.org>
92502
92503         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
92504
92505 2003-06-07  Karl Berry  <karl@gnu.org>
92506
92507         * config/config.{guess,sub}: update from prep.
92508
92509 2003-06-07  Jim Meyering  <jim@meyering.net>
92510
92511         * modules/strtod: Use $(...) notation, not @...@ for
92512         AC_REPLACE'd variables.
92513         * modules/localcharset: Likewise.
92514
92515 2003-06-07  Jim Meyering  <jim@meyering.net>
92516
92517         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
92518         in place of my name in the copyright comment.
92519         Remove definition and uses of __P.
92520
92521         From coreutils.
92522         * lib/stat.c: Don't declare xmalloc explicitly.
92523         Instead, include "xalloc.h".
92524         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
92525         xrealloc, and xcalloc return values.
92526         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
92527         Improve comment.
92528         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
92529
92530 2003-06-07  Bruno Haible  <bruno@clisp.org>
92531
92532         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
92533         avoid AC_CONFIG_LINKS.
92534         * modules/fnmatch (Makefile.am): Use explicit creation rule for
92535         fnmatch.h, to avoid AC_CONFIG_LINKS.
92536         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
92537
92538 2003-06-07  Bruno Haible  <bruno@clisp.org>
92539
92540         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
92541         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
92542         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92543         directory.
92544         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
92545         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92546         directory.
92547
92548 2003-06-06  Jim Meyering  <jim@meyering.net>
92549
92550         Merge from coreutils.
92551         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
92552         Consolidate declarations and initializations of *_base* locals.
92553
92554         Merge from coreutils.
92555         This avoids a core dump on systems without GNU putenv,
92556         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
92557         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
92558         (unsetenv): New static function, from GNU libc.
92559         (rpl_putenv): Use it.
92560
92561         * lib/modechange.c: Remove trailing blanks.
92562
92563         Merge from coreutils.
92564         * lib/fsusage.c: Remove declaration of statfs.
92565         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
92566
92567         * lib/posixtm.c: Include <stdbool.h> unconditionally.
92568
92569 2003-06-06  Jim Meyering  <jim@meyering.net>
92570
92571         * lib/stdbool_.h: Renamed from stdbool.h.in.
92572
92573 2003-06-06  Jim Meyering  <jim@meyering.net>
92574             Bruno Haible  <bruno@clisp.org>
92575
92576         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
92577         Adjust Makefile.am snippet not to redirect directly to target.
92578         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
92579
92580 2003-06-05  Paul Eggert  <eggert@twinsun.com>
92581
92582         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
92583         mismatch, look in future quarters as well as past.  This fixes a
92584         bug when processing fall-backwards gaps immediately after a long
92585         period of daylight-saving time.
92586
92587         * lib/mktime.c: Assume freestanding C89 or better.
92588         (HAVE_LIMITS_H): Remove.  Assume it's 1.
92589         (__P): Remove; not used.
92590         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
92591         (mktime, not_equal_tm, print_tm, check_result,
92592         main): Use prototypes.  Use const * where appropriate.
92593         (main): Fix typo in testing code that uncovered by above changes.
92594         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
92595
92596 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92597
92598         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
92599         locale.h, localeconv.  This merges changes from coreutils.
92600
92601         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
92602         It can be removed after the next Autoconf is released.
92603         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
92604         needed.
92605
92606 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92607
92608         * lib/mktime.c: Fix Debian bug 177940
92609         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
92610         (localtime_offset): Now long int, not time_t, because we want it
92611         to be guaranteed to be signed.  All uses changed.
92612         (__mktime_internal): If overflow would occur when adding offset,
92613         don't add it.
92614
92615         Merge 'human' changes from coreutils.  Rewrite to support
92616         locale-specific notations like thousands separators.
92617         * lib/human.c: Simplify authorship notice.
92618         Include human.h immediately after config.h.
92619         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
92620         <limits.h>: Do not include, since human.h does.
92621         (SIZE_MAX, UINTMAX_MAX): New macros.
92622         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
92623         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
92624         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
92625         (power_letter): Renamed from suffixes.
92626         (generate_suffix_backwards): Remove.
92627         (adjust_value): Now takes int style (because of human.h changes)
92628         and long double value (for greater precision on some platforms).
92629         (group_number): New function.
92630         (human_readable): Use it.  Use integer options, not enum.
92631         Put the options before the sizes in the arg list.
92632         Support all the new options.
92633         The old human_readable function has been removed;
92634         use inttostr.h instead.
92635         (human_readable, default_block_size, humblock):
92636         Use uintmax_t, not int, for block sizes.
92637         (human_readable_inexact, block_size_types): Remove.
92638         (block_size_opts): New constant.
92639         (human_options): Renamed from human_block_size, with new signature
92640         that allows block sizes up to UINTMAX_MAX.  All callers changed.
92641         * lib/human.h: Add copyright and authorship notice.
92642         Include <limits.h> and <stdbool.h> unconditionally.
92643         (PARAMS): Remove.  All uses removed.
92644         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
92645         (enum human_inexact_style): Remove tag; now a nameless enum.
92646         (human_floor, human_ceiling, human_round_to_even): Now have
92647         values 2, 0, 1 rather than -1, 1, 0.
92648         (human_group_digits, human_suppress_point_zero, human_autoscale,
92649         human_base_1024, human_SI, human_B): New constants.
92650         (human_readable_inexact, human_block_size): Remove.
92651         (human_readable): Size args are now uintmax_t, not int.
92652         (human_options): New decl.
92653
92654         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
92655         unnecessary now that we assume C89 or better.  This change
92656         imported from coreutils.
92657
92658         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92659         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
92660         in the 2003-05-30 sync from glibc.
92661
92662         .h files should stand alone, but we shouldn't include <sys/types.h>
92663         if we can get away with just <stddef.h>.
92664
92665         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
92666         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
92667         rather than <sys/types.h>, as we merely need size_t.
92668         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
92669         to get size_t.
92670         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
92671         Include <stdio.h>, to get FILE.
92672         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
92673         memcasecmp.h has included <stddef.h> and all we need is size_t.
92674         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
92675         our interface, instead of including <sys/types.h>
92676
92677 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92678
92679         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
92680         now, as glibc mktime is buggy on non-glibc systems.
92681
92682 2003-06-03  Karl Berry  <karl@gnu.org>
92683
92684         * config/config.sub: update from prep.
92685
92686 2003-06-02  Paul Eggert  <eggert@twinsun.com>
92687
92688         [from coreutils]
92689         Fix some minor time-related bugs with POSIX time arguments.
92690         Some valid time stamps were being rejected (notably -1, and
92691         time stamps before 1900 on 64-bit hosts).  And some invalid
92692         time stamps were being accepted, e.g. September 31.
92693
92694         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
92695         that we can return (time_t) -1 successfully.
92696         * lib/posixtm.c: Likewise.
92697         [HAVE_STDBOOL_H]: Include <stdbool.h>.
92698         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
92699         (t): Remove static var.
92700         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
92701         of static var.  All uses changed.
92702         (year): Do not reject years before 1900; they can occur with
92703         64-bit time_t.
92704         (posix_time_parse): Do not check for out-of-range components;
92705         that is now the caller's responsibility, since our checks were
92706         only approximations.
92707         (posixtime): Use mktime to check for out-of-range components,
92708         since it knows them exactly.
92709         If mktime returns (time_t) -1, check whether an error actually occurred
92710         by invoking localtime on -1.
92711         (main) [TEST_POSIXTIME]: Check for input data errors, and report
92712         posixtime failures better.
92713         Improve the test data (in comments only).
92714
92715 2003-06-02  Karl Berry  <karl@gnu.org>
92716
92717         * config/mkinstalldirs (version): new variable.
92718         (--version): new option.
92719         (usage): improve message.
92720
92721 2003-05-30  Karl Berry  <karl@gnu.org>
92722
92723         * lib/mktime.c: update from libc.
92724
92725 2003-05-30  Bruno Haible  <bruno@clisp.org>
92726
92727         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
92728         * config/config.rpath: Upgrade to gettext-0.12.1.
92729
92730 2003-05-30  Bruno Haible  <bruno@clisp.org>
92731
92732         * m4/gettext.m4: Upgrade to gettext-0.12.1.
92733         * m4/nls.m4: New file, from gettext-0.12.1.
92734         * m4/po.m4: New file, from gettext-0.12.1.
92735         * m4/progtest.m4: Upgrade to gettext-0.12.1.
92736
92737 2003-05-30  Bruno Haible  <bruno@clisp.org>
92738
92739         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
92740         * lib/localcharset.h: Likewise.
92741         * lib/localcharset.c: Likewise.
92742
92743 2003-05-29  Karl Berry  <karl@gnu.org>
92744
92745         * config/config.rpath: update from gettext.
92746
92747 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92748
92749         Assume the headers required for C89 freestanding compilers.
92750         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
92751         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
92752         * m4/human.m4 (gl_HUMAN): Likewise.
92753         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
92754         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
92755         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92756         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
92757         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92758         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
92759
92760 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92761
92762         Assume the headers required for C89 freestanding compilers.
92763         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
92764         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
92765         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
92766         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
92767         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
92768         define, since <limits.h> is guaranteed to do that.
92769         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
92770         * lib/exclude.c: Include <stdbool.h> unconditionally.
92771         * lib/tempname.c: Include <stddef.h> unconditionally.
92772         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
92773         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
92774         <stddef.h> does that.
92775         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
92776         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
92777         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
92778         needed.
92779         * lib/xstrtol.c: Likewise.
92780         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
92781         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
92782
92783         * lib/addext.c (addext): Use assignment rather than cast, to avoid
92784         warnings on some platforms.
92785
92786         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92787         arbitrarily.
92788
92789 2003-05-26  Jim Meyering  <jim@meyering.net>
92790
92791         Merge in a change from coreutils:
92792         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
92793         that is guaranteed to be `no'.  Use `no_such_member' to indicate
92794         that condition, rather than `-1' which is slightly misleading.
92795         Change the name of the cache variable to have the gl_ prefix.
92796         Prompted by a patch from Richard Dawe for DJGPP.
92797
92798 2003-05-24  Karl Berry  <karl@gnu.org>
92799
92800         * config/config.guess: update from prep.
92801
92802 2003-05-22  Karl Berry  <karl@gnu.org>
92803
92804         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
92805
92806 2003-05-20  Karl Berry  <karl@gnu.org>
92807
92808         * config/config.guess: update from prep.
92809
92810 2003-05-18  Karl Berry  <karl@gnu.org>
92811
92812         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
92813         might actually be set by the user.
92814
92815         * config/depcomp, install-sh, mdate-sh: update from automake.
92816
92817 2003-05-17  Bruno Haible  <bruno@clisp.org>
92818
92819         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
92820         invalid expansion for AC_EGREP_CPP.
92821         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
92822         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
92823         Suggested by Akim Demaille <akim@epita.fr> in
92824         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
92825
92826 2003-05-12  Jim Meyering  <jim@meyering.net>
92827
92828         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
92829         the space-padded-by-default conversion specifiers, %e, %k, %l.
92830
92831 2003-05-12  Bruno Haible  <bruno@clisp.org>
92832
92833         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
92834         the string is longer than 4 KB.
92835
92836 2003-05-11  Karl Berry  <karl@gnu.org>
92837
92838         * config/config.{guess,sub}: update from prep.
92839
92840 2003-05-09  Bruno Haible  <bruno@clisp.org>
92841
92842         * modules/error: Add m4/strerror_r.m4 to file list.
92843
92844 2003-05-03  Bruno Haible  <bruno@clisp.org>
92845
92846         Upgrade to Unicode-4.0.
92847         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
92848         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
92849         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
92850         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
92851         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
92852         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
92853         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
92854         Change width of U+E0100..U+E01EF from 1 to 0.
92855
92856 2003-04-25  Jim Meyering  <jim@meyering.net>
92857
92858         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
92859         of type size_t, not int.
92860
92861 2003-04-25  Bruno Haible  <bruno@clisp.org>
92862
92863         * lib/copy-file.c: Include <stddef.h>, for size_t.
92864
92865 2003-04-21  Paul Eggert  <eggert@twinsun.com>
92866
92867         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
92868         code which expansion is under static control.  Patch imported from
92869         Akim Demaille's patch to Bison; see
92870         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
92871
92872 2003-04-14  Bruno Haible  <bruno@clisp.org>
92873
92874         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
92875
92876 2003-04-11  Jim Meyering  <jim@meyering.net>
92877
92878         Merge changes from Coreutils.
92879
92880         2003-03-22  Jim Meyering  <jim@meyering.net>
92881
92882         * lib/strftime.c (widen): Cast alloca return value to proper type.
92883
92884         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
92885
92886         From GNU libc.
92887         * lib/strftime.c (my_strftime): Handle very large width
92888         specifications for numeric values correctly.  Improve checks for
92889         overflow.
92890
92891         2003-01-19  Jim Meyering  <jim@meyering.net>
92892
92893         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
92894         definitions.
92895         (nl_get_alt_digit) [! defined my_strftime]: Define.
92896         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
92897         _nl_get_alt_digit and _nl_get_walt_digit.
92898
92899         * lib/strftime.c (my_strftime): Merge in locale-related changes from
92900         libc. These changes have no effect outside of _LIBC.
92901
92902 2003-04-10  Bruno Haible  <bruno@clisp.org>
92903
92904         * modules/findprog: New file.
92905         * MODULES.html.sh (func_all_modules): Add it.
92906
92907 2003-04-10  Bruno Haible  <bruno@clisp.org>
92908
92909         * m4/findprog.m4: New file.
92910         * m4/eaccess.m4: New file.
92911
92912 2003-04-10  Bruno Haible  <bruno@clisp.org>
92913
92914         * lib/findprog.h: New file, from GNU gettext.
92915         * lib/findprog.c: New file, from GNU gettext.
92916
92917 2003-04-05  Jim Meyering  <jim@meyering.net>
92918
92919         Merge changes from Coreutils.
92920
92921         * lib/exclude.h (PARAMS): Remove definition and uses.
92922         * lib/exclude.c: Remove uses of `PARAMS'.
92923
92924         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
92925         Add test-cases for DOS filenames. Declare program_name.
92926         (main): Set up program_name.  Patch by Rich Dawe.
92927
92928         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92929         error from mntctl.
92930         Use mntctl's return value to drive the entry-processing loop, since
92931         we can't rely on the value of the vmt_length member in the last
92932         entry.  On some systems doing so could result in exhausting
92933         virtual memory.  Based in part on a patch from Mike Jetzer.
92934
92935 2003-04-04  Bruno Haible  <bruno@clisp.org>
92936
92937         * modules/linebreak: New file.
92938         * MODULES.html.sh (func_all_modules): Add it.
92939
92940 2003-04-04  Bruno Haible  <bruno@clisp.org>
92941
92942         * m4/linebreak.m4: New file.
92943
92944 2003-04-04  Bruno Haible  <bruno@clisp.org>
92945
92946         * lib/linebreak.h: New file, from GNU gettext.
92947         * lib/linebreak.c: New file, from GNU gettext with slight
92948         modifications.
92949         * lib/lbrkprop.h: New file, from GNU gettext.
92950
92951 2003-04-03  Bruno Haible  <bruno@clisp.org>
92952
92953         * modules/utf8-ucs4: New file.
92954         * modules/utf16-ucs4: New file.
92955         * modules/ucs4-utf8: New file.
92956         * modules/ucs4-utf16: New file.
92957         * MODULES.html.sh (func_all_modules): Add them.
92958
92959 2003-04-03  Bruno Haible  <bruno@clisp.org>
92960
92961         * m4/utf-ucs4.m4: New file.
92962         * m4/ucs4-utf.m4: New file.
92963
92964 2003-04-03  Bruno Haible  <bruno@clisp.org>
92965
92966         * lib/utf8-ucs4.h: New file, from GNU gettext.
92967         * lib/utf16-ucs4.h: New file, from GNU gettext.
92968         * lib/ucs4-utf8.h: New file, from GNU gettext.
92969         * lib/ucs4-utf16.h: New file, from GNU gettext.
92970
92971 2003-04-02  Bruno Haible  <bruno@clisp.org>
92972
92973         * modules/binary-io: New file.
92974         * MODULES.html.sh (func_all_modules): Add it.
92975
92976 2003-04-02  Bruno Haible  <bruno@clisp.org>
92977
92978         * lib/binary-io.h: New file, from GNU gettext.
92979
92980 2003-04-01  Bruno Haible  <bruno@clisp.org>
92981
92982         * modules/pathname: New file.
92983         * MODULES.html.sh (func_all_modules): Add it.
92984
92985 2003-04-01  Bruno Haible  <bruno@clisp.org>
92986
92987         * lib/pathname.h: New file, from GNU gettext.
92988         * lib/concatpath.c: New file, from GNU gettext.
92989
92990 2003-03-30  Bruno Haible  <bruno@clisp.org>
92991
92992         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
92993
92994 2003-03-30  Bruno Haible  <bruno@clisp.org>
92995
92996         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
92997         function chown() doesn't exist.
92998
92999 2003-03-28  Bruno Haible  <bruno@clisp.org>
93000
93001         * modules/copy-file: New file.
93002         * MODULES.html.sh (func_all_modules): Add it.
93003
93004 2003-03-28  Bruno Haible  <bruno@clisp.org>
93005
93006         * m4/copy-file.m4: New file.
93007
93008 2003-03-28  Bruno Haible  <bruno@clisp.org>
93009
93010         * lib/copy-file.h: New file, from GNU gettext.
93011         * lib/copy-file.c: New file, from GNU gettext.
93012
93013 2003-03-18  Jim Meyering  <jim@meyering.net>
93014
93015         * lib/quote.c (quote_n): Fix typo in comment.
93016
93017 2003-03-18  Bruno Haible  <bruno@clisp.org>
93018
93019         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
93020         checking.
93021         * m4/onceonly_2_57.m4: Likewise.
93022
93023 2003-03-17  Bruno Haible  <bruno@clisp.org>
93024
93025         * m4/onceonly.m4: Require autoconf 2.54 or newer.
93026         (m4_quote): Remove macro.
93027         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
93028
93029 2003-03-14  Jim Meyering  <jim@meyering.net>
93030
93031         Merge changes from Coreutils.
93032         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
93033         to be const, in order to avoid warnings.
93034         (obstack_room): Likewise.
93035         (obstack_empty_p): Likewise.
93036
93037 2003-03-14  Bruno Haible  <bruno@clisp.org>
93038
93039         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
93040         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
93041
93042 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93043
93044         Merge changes from Bison.
93045         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
93046         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
93047         when compiling Bison 1.875's `bitset bset = obstack_alloc
93048         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
93049         * lib/hash.c: Include <stdbool.h> unconditionally.
93050
93051 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93052
93053         * m4/onceonly.m4 (m4_quote): New macro.
93054         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
93055         Quote AC_FOREACH variable-expansions properly.
93056
93057 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93058
93059         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
93060
93061 2003-03-09  Paul Eggert  <eggert@twinsun.com>
93062
93063         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
93064         Reported by Bruce Becker; see:
93065         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
93066
93067 2003-03-03  Paul Eggert  <eggert@twinsun.com>
93068             Bruno Haible  <bruno@clisp.org>
93069
93070         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
93071         Reported by John Hughes, see
93072         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
93073
93074 2003-02-20  Bruno Haible  <bruno@clisp.org>
93075
93076         * MODULES.html.sh (func_all_modules): Add poll.
93077
93078 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93079
93080         * modules/poll: New file.
93081
93082 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93083
93084         * lib/poll_.h: New file.
93085         * lib/poll.c: New file.
93086
93087 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93088
93089         * m4/poll.m4: New file.
93090
93091 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93092
93093         * modules/mathl: New file.
93094
93095 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93096
93097         * lib/mathl.h: New file.
93098         * lib/acosl.c: New file.
93099         * lib/asinl.c: New file.
93100         * lib/atanl.c: New file.
93101         * lib/ceill.c: New file.
93102         * lib/cosl.c: New file.
93103         * lib/expl.c: New file.
93104         * lib/floorl.c: New file.
93105         * lib/frexpl.c: New file.
93106         * lib/ldexpl.c: New file.
93107         * lib/logl.c: New file.
93108         * lib/sincosl.c: New file.
93109         * lib/sinl.c: New file.
93110         * lib/sqrtl.c: New file.
93111         * lib/tanl.c: New file.
93112         * lib/trigl.c: New file.
93113         * lib/trigl.h: New file.
93114
93115 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93116
93117         * m4/mathl.m4: New file.
93118
93119 2003-02-18  Bruno Haible  <bruno@clisp.org>
93120
93121         * MODULES.html.sh (func_all_modules): Add mathl.
93122
93123 2003-02-17  Bruno Haible  <bruno@clisp.org>
93124
93125         * modules/mkdtemp: New module.
93126         * MODULES.html.sh (func_all_modules): Add it.
93127
93128 2003-02-17  Bruno Haible  <bruno@clisp.org>
93129
93130         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
93131
93132 2003-02-17  Bruno Haible  <bruno@clisp.org>
93133
93134         * lib/mkdtemp.h: New file, from GNU gettext.
93135         * lib/mkdtemp.c: New file, from GNU gettext.
93136
93137 2003-02-02  Jim Meyering  <jim@meyering.net>
93138
93139         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
93140         e.g. glibc-2.2.93.
93141
93142 2003-01-31  Bruno Haible  <bruno@clisp.org>
93143
93144         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
93145         'rpl_rename'.
93146         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
93147         'rpl_strnlen'.
93148         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
93149         'rpl_strtod'.
93150         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
93151         'rpl_utime'.
93152
93153 2003-01-31  Bruno Haible  <bruno@clisp.org>
93154
93155         * lib/rename.c: #undef rename before defining rpl_rename.
93156         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
93157
93158 2003-01-30  Bruno Haible  <bruno@clisp.org>
93159
93160         * modules/vasnprintf, modules/vasprintf: New modules.
93161         * MODULES.html.sh (func_all_modules): Add them.
93162
93163 2003-01-30  Bruno Haible  <bruno@clisp.org>
93164
93165         * m4/signed.m4: New file, from GNU gettext.
93166         * m4/longdouble.m4: New file, from GNU gettext.
93167         * m4/wchar_t.m4: New file, from GNU gettext.
93168         * m4/wint_t.m4: New file, from GNU gettext.
93169         * m4/vasnprintf.m4: New file.
93170         * m4/vasprintf.m4: New file.
93171
93172 2003-01-30  Bruno Haible  <bruno@clisp.org>
93173
93174         * lib/printf-args.h: New file, from GNU gettext.
93175         * lib/printf-args.c: New file, from GNU gettext.
93176         * lib/printf-parse.h: New file, from GNU gettext.
93177         * lib/printf-parse.c: New file, from GNU gettext.
93178         * lib/vasnprintf.h: New file, from GNU gettext.
93179         * lib/vasnprintf.c: New file, from GNU gettext.
93180         * lib/asnprintf.c: New file, from GNU gettext.
93181         * lib/vasprintf.h: New file, from GNU gettext with modifications.
93182         * lib/vasprintf.c: New file, from GNU gettext.
93183         * lib/asprintf.c: New file, from GNU gettext.
93184
93185 2003-01-29  Bruno Haible  <bruno@clisp.org>
93186
93187         * modules/stpncpy: New module.
93188         * MODULES.html.sh (func_all_modules): Add it.
93189
93190 2003-01-29  Bruno Haible  <bruno@clisp.org>
93191
93192         * m4/stpncpy.m4: New file.
93193
93194 2003-01-29  Bruno Haible  <bruno@clisp.org>
93195
93196         * lib/stpncpy.h: New file, from GNU gettext with modifications.
93197         * lib/stpncpy.c: New file, from GNU gettext with modifications.
93198
93199 2003-01-28  Bruno Haible  <bruno@clisp.org>
93200
93201         * modules/c-ctype: New module.
93202         * MODULES.html.sh (func_all_modules): Add it.
93203
93204 2003-01-28  Bruno Haible  <bruno@clisp.org>
93205
93206         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
93207         Paul Eggert.
93208         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
93209         Paul Eggert.
93210
93211 2003-01-27  Bruno Haible  <bruno@clisp.org>
93212
93213         * modules/xsetenv: New module.
93214         * MODULES.html.sh (func_all_modules): Add it.
93215
93216 2003-01-27  Bruno Haible  <bruno@clisp.org>
93217
93218         * lib/xsetenv.h: New file, from GNU gettext.
93219         * lib/xsetenv.c: New file, from GNU gettext.
93220
93221 2003-01-23  Jim Meyering  <jim@meyering.net>
93222
93223         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
93224         from working on systems without dirfd (at least Irix and OSF1/Tru64).
93225
93226 2003-01-23  Bruno Haible  <bruno@clisp.org>
93227
93228         * modules/minmax: New module.
93229         * MODULES.html.sh (func_all_modules): Add it.
93230
93231 2003-01-23  Bruno Haible  <bruno@clisp.org>
93232
93233         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
93234         Eggert.
93235
93236 2003-01-22  Bruno Haible  <bruno@clisp.org>
93237
93238         * modules/exit: New module.
93239         * MODULES.html.sh (func_all_modules): Add it.
93240
93241 2003-01-22  Bruno Haible  <bruno@clisp.org>
93242
93243         * lib/exit.h: New file, from GNU gettext.
93244
93245 2003-01-19  Bruno Haible  <bruno@clisp.org>
93246
93247         * gnulib-tool: Recognize option --extract-maintainer.
93248         (func_get_maintainer): New function.
93249         * modules/*: Add Maintainer entry.
93250
93251 2003-01-16  Jim Meyering  <jim@meyering.net>
93252
93253         * m4/regex.m4: The `regex' struct is both input and output.
93254         Initialize it before each use.  Patch by Tim Waugh.
93255
93256 2003-01-16  Bruno Haible  <bruno@clisp.org>
93257
93258         * MODULES.html.sh: Add a table of contents. Add the module name as
93259         leftmost column. Add hyperlinks.
93260
93261 2003-01-15  Bruno Haible  <bruno@clisp.org>
93262
93263         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
93264
93265 2003-01-15  Bruno Haible  <bruno@clisp.org>
93266
93267         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
93268         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
93269         suffix.
93270
93271 2003-01-15  Bruno Haible  <bruno@clisp.org>
93272
93273         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
93274
93275 2003-01-15  Bruno Haible  <bruno@clisp.org>
93276
93277         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
93278         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
93279
93280 2003-01-14  Jim Meyering  <jim@meyering.net>
93281
93282         * lib/same.c (same_name): Tweak a comment.
93283
93284 2003-01-14  Bruno Haible  <bruno@clisp.org>
93285
93286         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
93287         when a string comparison is sufficient.
93288
93289 2003-01-14  Bruno Haible  <bruno@clisp.org>
93290
93291         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
93292         'unsigned int'.
93293
93294 2003-01-14  Bruno Haible  <bruno@clisp.org>
93295
93296         * lib/hash-pjw.c: Add comment about low quality of this function.
93297
93298 2003-01-13  Bruno Haible  <bruno@clisp.org>
93299
93300         * modules/stpcpy: Distribute lib/stpcpy.h.
93301         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
93302
93303 2003-01-13  Bruno Haible  <bruno@clisp.org>
93304
93305         * modules/*: Add a description.
93306         * modules/strpbrk: Fix Makefile.am snippet.
93307         * modules/strtoimax: Fix dependencies.
93308         * modules/strtoumax: Likewise.
93309
93310 2003-01-13  Bruno Haible  <bruno@clisp.org>
93311
93312         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
93313         * modules/alloca (Makefile.am): All object files depend on alloca.h.
93314         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
93315
93316 2003-01-13  Bruno Haible  <bruno@clisp.org>
93317
93318         * gnulib-tool (func_create_testdir): Store config/* files in the main
93319         directory.
93320         * config.rpath: Move to ...
93321         * config/config.rpath: ... here.
93322         * modules/gettext: Contains config/config.rpath, not config.rpath.
93323         * modules/iconv: Likewise.
93324
93325 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93326
93327         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93328         to avoid collisions with libcurses and libreadline.
93329
93330         * m4/getstr.m4: Remove.
93331         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
93332
93333 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93334
93335         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93336         to avoid collisions with libcurses and libreadline.
93337
93338         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
93339         * lib/getstr.h, getstr.c: Remove.
93340         * lib/getline.c: Include "getline.h", to check interface.
93341         Move body of old getstr.c here: this defines MIN_CHUNK and
93342         declares getdelim2, which is renamed from getstr.
93343         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
93344
93345         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
93346         All uses changed.
93347         * lib/linebuffer.h: Likewise.
93348         (readline): Remove backward-compatibility macro.
93349
93350 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93351
93352         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93353         to avoid collisions with libcurses and libreadline.
93354         * getstr: Remove.
93355         * MODULES.html.sh: Remove getstr.
93356         * modules/getline: Depend on unlocked-io, not getstr.
93357
93358 2003-01-12  Jim Meyering  <jim@meyering.net>
93359
93360         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
93361
93362 2003-01-10  Bruno Haible  <bruno@clisp.org>
93363
93364         * modules/alloca: Change Makefile.am requirements. Simplify Include
93365         requirements. Add lib/alloca_.h to file list.
93366
93367 2003-01-10  Bruno Haible  <bruno@clisp.org>
93368
93369         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
93370
93371 2003-01-10  Bruno Haible  <bruno@clisp.org>
93372
93373         * lib/alloca_.h: New file.
93374         * lib/getdate.y: Unconditionally include alloca.h.
93375         * lib/makepath.c: Likewise.
93376         * lib/setenv.c: Likewise.
93377         * lib/userspec.c: Likewise.
93378
93379 2003-01-09  Karl Berry  <karl@gnu.org>
93380
93381         * MODULES.html.sh: include `dirname $0` in PATH, to find
93382         gnulib-tool.
93383
93384 2003-01-09  Bruno Haible  <bruno@clisp.org>
93385
93386         * modules/stdbool: Change configure.ac, Makefile.am requirements.
93387         Simplify Include requirements. Add lib/stdbool.h.in to file list.
93388
93389 2003-01-09  Bruno Haible  <bruno@clisp.org>
93390
93391         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
93392
93393 2003-01-09  Bruno Haible  <bruno@clisp.org>
93394
93395         * lib/stdbool.h.in: New file.
93396
93397 2003-01-09  Bruno Haible  <bruno@clisp.org>
93398
93399         * gnulib-tool (func_all_modules): Ignore files ending in ~.
93400         * MODULES.html.sh: Likewise.
93401
93402 2003-01-08  Jim Meyering  <jim@meyering.net>
93403
93404         * lib/full-write.c: Undefine and define-away `const' after inclusion
93405         of errno.h, not before.  Suggestion from Bruno Haible.
93406
93407 2003-01-08  Bruno Haible  <bruno@clisp.org>
93408
93409         * modules/full-read: Depend on full-write.
93410
93411 2003-01-08  Bruno Haible  <bruno@clisp.org>
93412
93413         * lib/safe-read.c: Include specification header first, to ensure its
93414         selfcontainedness.
93415         * lib/full-write.c: Likewise.
93416
93417 2003-01-07  Jim Meyering  <jim@meyering.net>
93418
93419         * lib/full-write.c: Rework so that it may serve to define full_read,
93420         too.
93421         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
93422
93423 2003-01-07  Bruno Haible  <bruno@clisp.org>
93424
93425         * lib/strtoimax.c: Include <stdint.h> as an alternative to
93426         <inttypes.h>.
93427         * lib/xstrtol.h: Likewise.
93428         * lib/xstrtoimax.c: Likewise.
93429         * lib/xstrtoumax.c: Likewise.
93430         * lib/human.h: Likewise.
93431
93432         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
93433         on systems that have <inttypes.h> but not <stdint.h>.
93434
93435 2003-01-07  Bruno Haible  <bruno@clisp.org>
93436
93437         * MODULES.html.sh: Add copyright notice.
93438         (missed_files): Omit CVS directory entries.
93439         (func_module): Make it work with sed-3.02.
93440         * MODULES.txt: Remove file.
93441
93442 2003-01-06  Jim Meyering  <jim@meyering.net>
93443
93444         * lib/version-etc.c: Update year in translatable copyright string.
93445
93446 2003-01-03  Karl Berry  <karl@gnu.org>
93447
93448         * config/config.{guess,sub}: update from prep.
93449
93450 2003-01-02  Karl Berry  <karl@gnu.org>
93451
93452         * doc/COPYING.DOC: belatedly updated to 1.2.
93453
93454 2003-01-01  Karl Berry  <karl@gnu.org>
93455
93456         * gnulib-tool (func_verify_module): report module name $module in
93457         error message, not $1.
93458         * gnulib-tool (create-testdir): don't complain if destdir couldn't
93459         be created, only if it doesn't exist.
93460         * gnulib-tool (last_checkin_date): don't expand the $Date here.
93461
93462 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93463
93464         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
93465
93466 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93467
93468         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
93469         memcmp if strcoll doesn't work.
93470
93471 2002-12-31  Bruno Haible  <bruno@clisp.org>
93472
93473         * lib/utime.c (utime_null): No need to call ftruncate if the file was
93474         nonempty.
93475
93476 2002-12-31  Bruno Haible  <bruno@clisp.org>
93477
93478         * lib/memcoll.c (STRCOLL): New macro.
93479         (memcoll): Use it.
93480
93481 2002-12-31  Bruno Haible  <bruno@clisp.org>
93482
93483         * lib/localcharset.h: New file.
93484         * lib/localcharset.c: Include it.
93485         * lib/unicodeio.c: Likewise.
93486
93487 2002-12-31  Bruno Haible  <bruno@clisp.org>
93488
93489         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
93490         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
93491
93492 2002-12-31  Bruno Haible  <bruno@clisp.org>
93493
93494         * lib/getline.h: Include <stddef.h>, for size_t.
93495
93496         * lib/unicodeio.h: Include <stddef.h>, for size_t.
93497         * lib/unicodeio.c: Don't include <stddef.h>.
93498
93499 2002-12-31  Bruno Haible  <bruno@clisp.org>
93500
93501         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
93502         HAVE_TM_ZONE.
93503
93504 2002-12-24  Karl Berry  <karl@gnu.org>
93505
93506         * config/config.guess: update from prep.
93507
93508 2002-12-24  Bruno Haible  <bruno@clisp.org>
93509
93510         General infrasructure.
93511         * m4/README: Rewritten.
93512         * m4/onceonly.m4: New file.
93513         * m4/onceonly_2_57.m4: New file.
93514
93515         Module atexit.
93516         * m4/atexit.m4: New file.
93517
93518         Module strtod.
93519         * m4/strtod.m4: New file.
93520
93521         Module strtol.
93522         * m4/strtol.m4: New file.
93523
93524         Module strtoul.
93525         * m4/strtoul.m4: New file.
93526
93527         Module memchr.
93528         * m4/memchr.m4: New file.
93529
93530         Module memcmp.
93531         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
93532         (jm_FUNC_MEMCMP): Invoke it.
93533
93534         Module memcpy.
93535         * m4/memcpy.m4: New file.
93536
93537         Module memmove.
93538         * m4/memmove.m4: New file.
93539
93540         Module memset.
93541         * m4/memset.m4: New file.
93542
93543         Module strcspn.
93544         * m4/strcspn.m4: New file.
93545
93546         Module strpbrk.
93547         * m4/strpbrk.m4: New file.
93548
93549         Module strstr.
93550         * m4/strstr.m4: New file.
93551
93552         Module strerror.
93553         * m4/strerror.m4: New file.
93554
93555         Module mktime.
93556         * m4/mktime.m4: Renamed from jm-mktime.m4.
93557         (gl_PREREQ_MKTIME): New macro.
93558         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
93559
93560         Module malloc.
93561         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
93562         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
93563         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
93564
93565         Module realloc.
93566         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
93567         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
93568         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
93569
93570         Module strftime.
93571         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
93572         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
93573         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
93574         gl_TM_GMTOFF.
93575         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
93576
93577         Module xalloc.
93578         * m4/xalloc.m4: New file.
93579
93580         Module alloca.
93581         * m4/alloca.m4: New file.
93582
93583         Module putenv.
93584         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
93585         (jm_FUNC_PUTENV): Invoke it.
93586
93587         Module setenv.
93588         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
93589         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
93590         when invoked twice.
93591         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
93592         gt_FUNC_SETENV.
93593
93594         Module memrchr.
93595         * m4/memrchr.m4: New file.
93596
93597         Module stpcpy.
93598         * m4/stpcpy.m4: New file.
93599
93600         Module strcase.
93601         * m4/strcase.m4: New file.
93602
93603         Module strdup.
93604         * m4/strdup.m4: New file.
93605
93606         Module strnlen.
93607         * m4/strnlen.m4: New file.
93608
93609         Module strndup.
93610         * m4/strndup.m4: New file.
93611
93612         Module xstrtod.
93613         * m4/xstrtod.m4: New file.
93614
93615         Module xstrtol.
93616         * m4/xstrtol.m4: New file.
93617
93618         Module getdate.
93619         * m4/getdate.m4: New file.
93620
93621         Module unlocked-io.
93622         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
93623         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
93624         * m4/jm-glibc-io.m4n: Remove file.
93625
93626         Module long-options.
93627         * m4/long-options.m4: New file.
93628
93629         Module md5.
93630         * m4/md5.m4: New file.
93631
93632         Module sha.
93633         * m4/sha.m4: New file.
93634
93635         Module getstr.
93636         * m4/getstr.m4: New file.
93637
93638         Module getline.
93639         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
93640         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
93641         <sys/types.h>, for size_t. Use the function name gnu_getline, not
93642         simply getline. Infoke gl_PREREQ_GETLINE.
93643
93644         Module obstack.
93645         * m4/obstack.m4: New file.
93646
93647         Module hash.
93648         * m4/hash.m4: New file.
93649
93650         Module readtokens.
93651         * m4/readtokens.m4: New file.
93652
93653         Module strverscmp.
93654         * m4/strverscmp.m4: New file.
93655
93656         Module stdbool.
93657         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
93658         OSF/1.
93659
93660         Module strtoll.
93661         * m4/strtoll.m4: New file.
93662
93663         Module strtoull.
93664         * m4/strtoull.m4: New file.
93665
93666         Module strtoimax.
93667         * m4/strtoimax.m4: New file.
93668
93669         Module strtoumax.
93670         * m4/strtoumax.m4: New file.
93671
93672         Module xstrtoimax.
93673         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
93674         jm_AC_PREREQ_XSTRTOIMAX.
93675         Moved the strtol prerequisites to strtol.m4.
93676         Moved the strtoll prerequisites to strtoll.m4.
93677         Moved the strtoimax prerequisites to strtoimax.m4.
93678
93679         Module xstrtoumax.
93680         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
93681         jm_AC_PREREQ_XSTRTOUMAX.
93682         Moved the strtoul prerequisites to strtoul.m4.
93683         Moved the strtoull prerequisites to strtoull.m4.
93684         Moved the strtoumax prerequisites to strtoumax.m4.
93685
93686         Module chown.
93687         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
93688         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
93689
93690         Module dup2.
93691         * m4/dup2.m4: New file.
93692
93693         Module ftruncate.
93694         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
93695         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
93696
93697         Module getgroups.
93698         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
93699         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
93700
93701         Module gettimeofday.
93702         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
93703         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
93704         gl_PREREQ_GETTIMEOFDAY.
93705
93706         Module mkdir.
93707         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
93708         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
93709
93710         Module mkstemp.
93711         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
93712         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
93713         jm_AC_TYPE_UINTMAX_T.
93714         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
93715
93716         Module stat.
93717         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
93718         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
93719
93720         Module lstat.
93721         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
93722         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
93723
93724         Module timespec.
93725         * m4/timespec.m4 (gl_TIMESPEC): New macro.
93726         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
93727         * m4/st_mtim.m4: Indentation.
93728
93729         Module nanosleep.
93730         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
93731         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
93732         gl_PREREQ_NANOSLEEP.
93733
93734         Module regex.
93735         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
93736         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
93737         (gl_REGEX): New macro.
93738
93739         Module rename.
93740         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
93741         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
93742
93743         Module rmdir.
93744         * m4/rmdir.m4: New file.
93745
93746         Module utime.
93747         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
93748         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
93749         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
93750
93751         Module dirname.
93752         * m4/dirname.m4: New file.
93753
93754         Module getopt.
93755         * m4/getopt.m4: New file.
93756
93757         Module unistd-safer.
93758         * m4/unistd-safer.m4: New file.
93759
93760         Module fnmatch.
93761         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
93762         declaration.
93763         (gl_PREREQ_FNMATCH_EXTRA): New macro.
93764         (gl_FUNC_FNMATCH_POSIX): New macro.
93765         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
93766         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
93767         simply fnmatch.
93768
93769         Module exclude.
93770         * m4/exclude.m4: New file.
93771
93772         Module human.
93773         * m4/human.m4: New file.
93774
93775         Module acl.
93776         * m4/acl.m4: Nop.
93777
93778         Module backupfile.
93779         * m4/backupfile.m4: New file.
93780         * m4/d-ino.m4: Indentation.
93781
93782         Module fsusage.
93783         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
93784         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
93785         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
93786
93787         Module dirfd.
93788         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
93789         requirements.
93790
93791         Module euidaccess.
93792         * m4/euidaccess.m4: New file.
93793
93794         Module file-type.
93795         * m4/file-type.m4: New file.
93796
93797         Module fileblocks.
93798         * m4/fileblocks.m4: New file.
93799
93800         Module filemode.
93801         * m4/filemode.m4: New file.
93802
93803         Module isdir.
93804         * m4/isdir.m4: New file.
93805
93806         Module lchown.
93807         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
93808         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
93809
93810         Module makepath.
93811         * m4/makepath.m4: New file.
93812
93813         Module modechange.
93814         * m4/modechange.m4: New file.
93815
93816         Module mountlist.
93817         * m4/mountlist.m4: New file.
93818         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
93819         Indentation.
93820
93821         Module path-concat.
93822         * m4/path-concat.m4: New file.
93823
93824         Module pathmax.
93825         * m4/pathmax.m4: New file.
93826
93827         Module same.
93828         * m4/same.m4: New file.
93829
93830         Module save-cwd.
93831         * m4/save-cwd.m4: New file.
93832
93833         Module savedir.
93834         * m4/savedir.m4: New file.
93835
93836         Module xgetcwd.
93837         * m4/xgetcwd.m4: New file.
93838         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
93839
93840         Module xreadlink.
93841         * m4/xreadlink.m4: New file.
93842
93843         Module safe-read.
93844         * m4/safe-read.m4: New file.
93845
93846         Module safe-write.
93847         * m4/safe-write.m4: New file.
93848
93849         Module closeout.
93850         * m4/closeout.m4: New file.
93851
93852         Module stdio-safer.
93853         * m4/stdio-safer.m4: New file.
93854
93855         Module getpass.
93856         * m4/getpass.m4: New file.
93857
93858         Module getugroups.
93859         * m4/getugroups.m4: New file.
93860
93861         Module group-member.
93862         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
93863         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
93864
93865         Module idcache.
93866         * m4/idcache.m4: New file.
93867
93868         Module userspec.
93869         * m4/userspec.m4: New file.
93870
93871         Module gettime.
93872         * m4/clock_time.m4: New file.
93873         * m4/gettime.m4: New file.
93874
93875         Module settime.
93876         * m4/settime.m4: New file.
93877
93878         Module posixtm.
93879         * m4/posixtm.m4: New file.
93880
93881         Module gethostname.
93882         * m4/gethostname.m4: New file.
93883
93884         Module canon-host.
93885         * m4/canon-host.m4: New file.
93886
93887         Module gettext.
93888         * m4/codeset.m4: New file, from gettext-0.11.5.
93889         * m4/gettext.m4: New file, from gettext-0.11.5.
93890         * m4/glibc21.m4: New file, from gettext-0.11.5.
93891         * m4/iconv.m4: New file, from gettext-0.11.5.
93892         * m4/intdiv0.m4: New file, from gettext-0.11.5.
93893         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
93894         * m4/inttypes.m4: New file, from gettext-0.11.5.
93895         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
93896         * m4/isc-posix.m4: New file, from gettext-0.11.5.
93897         * m4/lcmessage.m4: New file, from gettext-0.11.5.
93898         * m4/lib-ld.m4: New file, from gettext-0.11.5.
93899         * m4/lib-link.m4: New file, from gettext-0.11.5.
93900         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
93901         * m4/progtest.m4: New file, from gettext-0.11.5.
93902         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
93903         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
93904         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
93905
93906         Module localcharset.
93907         * m4/localcharset.m4: New file.
93908
93909         Module hard-locale.
93910         * m4/hard-locale.m4: New file.
93911
93912         Module mbswidth.
93913         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
93914         onceonly macros.
93915         * m4/mbrtowc.m4: Add comment.
93916
93917         Module memcasecmp.
93918         * m4/memcasecmp.m4: New file.
93919
93920         Module memcoll.
93921         * m4/memcoll.m4: New file.
93922
93923         Module unicodeio.
93924         * m4/unicodeio.m4: New file.
93925
93926         Module rpmatch.
93927         * m4/rpmatch.m4: New file.
93928
93929         Module yesno.
93930         * m4/yesno.m4: New file.
93931
93932         Module exitfail.
93933         * m4/exitfail.m4: New file.
93934
93935         Module c-stack.
93936         * m4/c-stack.m4 (gl_C_STACK): New macro.
93937         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
93938
93939         Module error.
93940         * m4/error.m4 (gl_ERROR): New macro.
93941         (jm_PREREQ_ERROR): Use onceonly macros.
93942
93943         Module fatal.
93944         * m4/fatal.m4: New file.
93945
93946         Module getloadavg.
93947         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
93948         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
93949
93950         Module getpagesize.
93951         * m4/getpagesize.m4: New file.
93952
93953         Module getusershell.
93954         * m4/getusershell.m4: New file.
93955
93956         Module physmem.
93957         * m4/physmem.m4: New file.
93958
93959         Module posixver.
93960         * m4/posixver.m4: New file.
93961
93962         Module quotearg.
93963         * m4/quotearg.m4: New file.
93964
93965         Module quote.
93966         * m4/quote.m4: New file.
93967
93968         Module readutmp.
93969         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
93970
93971         Module sig2str.
93972         * m4/sig2str.m4: New file.
93973
93974         Other.
93975         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
93976         ulonglong.m4.
93977         * m4/intmax_t.m4: New file.
93978         * m4/d-type.m4: Indentation.
93979         * m4/jm-macros.m4: Update.
93980         * m4/prereq.m4 (jm_PREREQ): Update.
93981         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
93982         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
93983         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
93984         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
93985         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
93986         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
93987         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
93988         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
93989         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
93990         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
93991         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
93992         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
93993         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
93994         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
93995         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
93996         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
93997         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
93998         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
93999         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
94000
94001 2002-12-24  Bruno Haible  <bruno@clisp.org>
94002
94003         * MODULES.txt: Update according to m4/ changes.
94004
94005         Module gettext.
94006         * config.rpath: New file, from gettext-0.11.5.
94007
94008         * modules/*: New module descriptions.
94009         * gnulib-tool: New file.
94010         * MODULES.html.sh: New file.
94011
94012 2002-12-21  Karl Berry  <karl@gnu.org>
94013
94014         * doc/fdl.texi: update to version 1.2.
94015
94016 2002-12-19  Karl Berry  <karl@gnu.org>
94017
94018         * config/config.guess: update from prep.
94019
94020 2002-12-18  Bruno Haible  <bruno@clisp.org>
94021
94022         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
94023         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
94024
94025 2002-12-17  Bruno Haible  <bruno@clisp.org>
94026
94027         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
94028         stdlib.h, string.h.
94029
94030 2002-12-17  Bruno Haible  <bruno@clisp.org>
94031
94032         * lib/canon-host.c (strdup): Remove unused declaration.
94033
94034         * lib/fsusage.c: Include full_read.h.
94035         (get_fs_usage): Use full_read instead of safe_read.
94036
94037         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
94038
94039 2002-12-12  Karl Berry  <karl@gnu.org>
94040
94041         * config/config.guess: update from prep.
94042
94043 2002-12-11  Bruno Haible  <bruno@clisp.org>
94044
94045         * m4/setenv.m4: New file, from gettext-0.11.5.
94046
94047 2002-12-11  Bruno Haible  <bruno@clisp.org>
94048
94049         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
94050         not unsetenv().
94051         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
94052         modifications:
94053
94054         2002-12-11  Bruno Haible  <bruno@clisp.org>
94055
94056                 * setenv.c (alloca): Fall back to malloc.
94057                 (freea): New macro.
94058                 (setenv): Use freea() to free memory allocated with alloca().
94059
94060         2002-11-13  Bruno Haible  <bruno@clisp.org>
94061
94062                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
94063                 function declarations.
94064                 * unsetenv.c (unsetenv): Likewise.
94065
94066         2002-03-04  Bruno Haible  <bruno@clisp.org>
94067
94068                 Portability to AIX 4.3.3.
94069                 * unsetenv.c: New file, extracted from setenv.c.
94070                 * setenv.c: Move the unsetenv() function to unsetenv.c.
94071
94072         2001-12-20  Bruno Haible  <bruno@clisp.org>
94073
94074                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
94075                 use malloc instead. For SunOS 4.
94076
94077         2001-12-11  Bruno Haible  <bruno@clisp.org>
94078
94079                 * setenv.c: Declare alloca.
94080                 (compar_fn_t): New typedef.
94081                 (KNOWN_VALUE, STORE_VALUE): Use it.
94082
94083         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
94084         setenv.h.
94085
94086 2002-12-10  Paul Eggert  <eggert@twinsun.com>
94087
94088         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
94089         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
94090         Choose values that are less likely to collide with system fnmatch
94091         options.
94092         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
94093         defined (e.g., a pure POSIX system).
94094         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
94095         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
94096
94097 2002-12-06  Paul Eggert  <eggert@twinsun.com>
94098
94099         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
94100         a pain in practice to deal with generated m4 files.  This change
94101         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
94102
94103         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
94104         and jm-glibc-io.m4, as they are no longer a special case.
94105         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
94106         kludge and the auto-generation stuff.  Check only whether the
94107         functions are declared, not whether they exist, since older hosts
94108         that don't declare the functions can't use the optimization anyway.
94109
94110 2002-12-06  Jim Meyering  <jim@meyering.net>
94111
94112         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
94113
94114         Merge in changes from libc's misc/error.c, in preparation
94115         for the merge of gnulib's changes back into libc.
94116
94117         * lib/error.c (_): Define only if not already defined.
94118         Move definition to follow all #include directives.
94119         Include unlocked-io.h only if !_LIBC.
94120         [_LIBC]: Include <libio/libioP.h>.
94121         [USE_IN_LIBIO]: Include <libio/iolibio.h>
94122         (fflush): Tweak definition to use INTUSE.
94123         (putc): Define.
94124
94125 2002-12-05  Paul Eggert  <eggert@twinsun.com>
94126
94127         * lib/alloca.c [defined emacs]: Include "lisp.h".
94128         (xalloc_die) [defined emacs]: New macro.
94129         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
94130         [! defined emacs]: Include <xalloc.h>.
94131         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
94132         (pointer): Typedef to POINTER_TYPE *.
94133         (malloc): Remove decl; we now always use xmalloc.
94134         (alloca): Use old-style definition, since Emacs needs this.
94135         Check for arithmetic overflow when computing combined size.
94136
94137 2002-12-04  Paul Eggert  <eggert@twinsun.com>
94138
94139         Do not generate unlocked-io.h automatically, since it's easier to
94140         maintain it by hand.
94141
94142         * lib/unlocked-io.h: New file, from GNU diffutils,
94143         but with proper copyright notice and attribution.
94144         * lib/gen-uio: Remove.
94145         * lib/Makefile.am: Add copyright notice.
94146         (libfetish_a_SOURCES): Add unlocked-io.h.
94147         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
94148         (DISTCLEANFILES, io_functions): Remove macros.
94149         (EXTRA_DIST): Remove gen_uio.
94150         (unlocked-io.h): Remove rule.
94151
94152 2002-12-04  Jim Meyering  <jim@meyering.net>
94153
94154         Reflect the fact that stat.c and lstat.c are no longer generated.
94155         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
94156         (DISTCLEANFILES): Likewise.
94157         (EXTRA_DIST): Likewise.
94158         (all_local): Don't depend on stat.c or lstat.c.
94159         (stat.c, lstat.c): Remove rules.
94160         (EXTRA_DIST): Remove xstat.in.
94161
94162         * lib/xstat.in: Remove file.  Contents moved into stat.c.
94163         * lib/stat.c: New file.  Contents mostly from xstat.in.
94164         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
94165         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
94166
94167         * lib/safe-read.c: Rework so that it may serve to define safe_write,
94168         too.
94169         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
94170
94171 2002-12-03  Jim Meyering  <jim@meyering.net>
94172
94173         * lib/safe-read.c, safe-write.c: Change variable names and comments,
94174         but not semantics, to minimize the differences between these two files.
94175         (safe_read): Change comment to mention SAFE_READ_ERROR.
94176
94177         * lib/safe-read.c (IS_EINTR): Define.
94178         (safe_read): Use IS_EINTR in place of in-function cpp directives.
94179
94180 2002-12-02  Jim Meyering  <jim@meyering.net>
94181
94182         * lib/safe-read.c (EINTR): Define.
94183         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94184         (INT_MAX): Provide fallback.
94185         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
94186
94187         * lib/safe-read.h (SAFE_READ_ERROR): Define.
94188
94189 2002-12-02  Bruno Haible  <bruno@clisp.org>
94190
94191         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
94192         Define, taken from safe-read.c.
94193         (INT_MAX): Provide fallback.
94194         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
94195         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
94196
94197         * lib/safe-read.c (EINTR): Remove definition.
94198         (safe_read): Don't use EINTR if it is absent.
94199
94200 2002-12-01  Jim Meyering  <jim@meyering.net>
94201
94202         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
94203         zero.
94204         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
94205
94206 2002-11-27  Paul Eggert  <eggert@twinsun.com>
94207
94208         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
94209         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
94210         with `if (! (value < limit)) abort ();', for readability.
94211
94212 2002-11-26  Karl Berry  <karl@gnu.org>
94213
94214         * lib/strdup.c: copy from libc again, with jim's ok.
94215         * lib/.cppi-disable: re-add strdup.c
94216
94217 2002-11-25  Karl Berry  <karl@gnu.org>
94218
94219         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
94220         instead of "strtol.c".
94221
94222 2002-11-25  Karl Berry  <karl@gnu.org>
94223
94224         * config/install-sh: update from automake for variable quoting, $0 in
94225         error msgs, etc.
94226
94227         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
94228         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
94229         entry.
94230
94231 2002-11-25  Jim Meyering  <jim@meyering.net>
94232
94233         * lib/mktime.c: Sync from libc, now that it has the latest fix.
94234
94235 2002-11-24  Karl Berry  <karl@gnu.org>
94236
94237         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
94238         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
94239
94240 2002-11-24  Jim Meyering  <jim@meyering.net>
94241
94242         Update from coreutils:
94243
94244         * lib/mktime.c: Merge in changes from libc.
94245
94246         Avoid a link-time failure on some Linux systems.
94247         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
94248         (otherwise).
94249         (__mon_yday): Declare with the STATIC attribute.
94250         (__mktime_internal): Likewise.
94251         Based on a report from Greg Schafer.
94252
94253 2002-11-23  Jim Meyering  <jim@meyering.net>
94254
94255         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
94256         Use `unsigned', not `int', as type of index.
94257
94258         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
94259
94260         * lib/fsusage.c: Remove unneeded parentheses around operands of
94261         `defined'.
94262
94263 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94264
94265         * lib/quotearg.h: Allow multiple inclusion by surrounding with
94266         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
94267         so that we can be included first.
94268         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
94269         * lib/quotearg.c: Include quotearg.h immediately after config.h.
94270         No need to include stddef.h or sys/types.h any more.
94271         Surround local include files with "", not "<>".
94272         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
94273         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
94274         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
94275         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
94276         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
94277         (ISPRINT): Remove; no longer needed now that we assume C89.
94278
94279         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
94280         Preserve errno.
94281
94282         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
94283         quotearg_char): Use SIZE_MAX rather than
94284         (size_t) -1 when we are talking about "infinity".
94285
94286         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
94287
94288 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94289
94290         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
94291         hint that one should use `if (! x) abort ();' rather than `assert
94292         (x);', and anyway it's one less thing to worry about configuring.
94293         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
94294         hash_rehash, hash_insert): Use abort rather than assert.
94295
94296 2002-11-22  Bruno Haible  <bruno@clisp.org>
94297
94298         * lib/safe-read.h: Assume C89. Add comments.
94299         (safe_read): Change return type to size_t.
94300         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
94301         byte counts > SSIZE_MAX correctly.
94302         * lib/safe-write.h: New file.
94303         * lib/safe-write.c: New file.
94304         * lib/full-read.h: New file.
94305         * lib/full-read.c: New file.
94306         * lib/full-write.h: Assume C89. Add comments.
94307         * lib/full-write.c: Include safe-write.h.
94308         (full_write): Rewritten to use safe_write.
94309         Suggested by Jim Meyering and Paul Eggert.
94310
94311 2002-11-21  Jim Meyering  <jim@meyering.net>
94312
94313         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
94314
94315         Merge in changes from the coreutils.
94316
94317         2002-09-25  Paul Eggert  <eggert@twinsun.com>
94318         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
94319         <stdint.h>.
94320         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
94321         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
94322         int.  Work more efficiently if X is the same width as uintmax_t.
94323         Do not compare X to -1, to avoid bogus compiler warning.
94324         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
94325         Don't assume that f_frsize and f_bsize are the same type.
94326
94327         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
94328         warning on FreeBSD.
94329
94330         * lib/makepath.c (make_path): Restore umask *before* creating the final
94331         component.
94332         (make_path): Minor reformatting.
94333
94334         * lib/xmalloc.c: Adjust to work with new autoconf macros,
94335         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
94336         HAVE_MALLOC/HAVE_REALLOC.
94337
94338         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
94339         dummy ones.  At least on GNU/Linux systems, `auto' means something
94340         else.
94341         From Michael Stone.
94342
94343 2002-11-21  Bruno Haible  <bruno@clisp.org>
94344
94345         Remove case insensitive option matching.
94346         * lib/argmatch.h (argcasematch): Remove declaration.
94347         (ARGCASEMATCH): Remove macro.
94348         (__xargmatch_internal): Remove case_sensitive argument.
94349         (XARGMATCH): Update.
94350         (XARGCASEMATCH): Remove macro.
94351         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
94352         case_sensitive argument.
94353         (argcasematch): Remove function.
94354         (__xargmatch_internal): Remove case_sensitive argument.
94355         (main): Use XARGMATCH instead of XARGCASEMATCH.
94356
94357         * lib/xmalloc.c: Change compile-time error message. Add comment about
94358         required autoconf version.
94359
94360 2002-11-20  Paul Eggert  <eggert@twinsun.com>
94361
94362         Merge argmatch cleanups from Bison.  Assume C89.
94363
94364         * lib/argmatch.c: Include config.h here, not in argmatch.h.
94365         Include stdlib.h, for EXIT_FAILURE.
94366         Always include <string.h>, since we assume C89.
94367         (EXIT_FAILURE): Remove pre-C89 bug workaround.
94368         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
94369         Include <stddef.h> instead, since it's all we need for size_t.
94370         (PARAMS): Remove.  All uses removed.
94371         (ARRAY_CARDINALITY): Do not bother to #undef.
94372         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
94373         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94374         Remove unnecessary parentheses.
94375         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94376         Insert necessary parentheses.
94377         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
94378         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
94379
94380 2002-11-19  Bruno Haible  <bruno@clisp.org>
94381
94382         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
94383         * lib/mbswidth.h: Include <stddef.h>, for size_t.
94384
94385         * lib/mbswidth.h (PARAMS): Remove macro.
94386         (mbswidth, mbsnwidth): Use ANSI C function declarations.
94387         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
94388
94389         * lib/gcd.h (PARAMS): Remove macro.
94390         (gcd): Use ANSI C function declarations.
94391         * lib/gcd.c (gcd): Likewise.
94392
94393 2002-11-15  Bruno Haible  <bruno@clisp.org>
94394
94395         * lib/strcspn.c: Include <stddef.h>.
94396         (strcspn): Use ANSI C function declaration. Change return type to
94397         size_t. Use NULL.
94398         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
94399         (strpbrk): Use NULL.
94400         * lib/strpbrk.h (PARAMS): Remove macro.
94401         (strpbrk): Use ANSI C function declaration.
94402         * lib/strstr.c: Don't include <sys/types.h>.
94403         * lib/strstr.h (PARAMS): Remove macro.
94404         (strstr): Use ANSI C function declarations.
94405
94406 2002-11-14  Karl Berry  <karl@gnu.org>
94407
94408         * config/mkinstalldirs: `do' on separate line, instead of
94409         `for var; do'.
94410
94411 2002-11-06  Bruno Haible  <bruno@clisp.org>
94412
94413         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
94414         * lib/gcd.c (gcd): Likewise.
94415
94416 2002-11-05  Bruno Haible  <bruno@clisp.org>
94417
94418         * lib/gcd.h: New file, from gettext-0.11.5.
94419         * lib/gcd.c: New file, from gettext-0.11.5.
94420
94421 2002-11-05  Bruno Haible  <bruno@clisp.org>
94422
94423         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94424         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94425         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94426         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94427
94428         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
94429         <libintl.h>.
94430         * lib/makepath.c: Include gettext.h instead of <locale.h> and
94431         <libintl.h>.
94432
94433         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
94434         * lib/human.c: Include gettext.h instead of <libintl.h>.
94435         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
94436         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
94437         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
94438         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
94439         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
94440         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
94441         (textdomain): Remove definition.
94442         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
94443
94444         * lib/long-options.c: Remove include of <libintl.h> and definition of
94445         _.
94446         * lib/same.c: Remove include of <libintl.h> and definition of _.
94447
94448 2002-11-04  Owen Taylor  <otaylor@redhat.com>
94449
94450         * lib/config.charset: A few additions for Solaris.
94451
94452 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94453
94454         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
94455         * lib/localcharset.c (locale_charset): Declare as extern "C".
94456
94457 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94458
94459         * lib/config.charset: msdos in uk_UA uses CP1125.
94460
94461 2002-11-04  Bruno Haible  <bruno@clisp.org>
94462
94463         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
94464         * lib/strcase.h: New file, from GNU gettext-0.11.5.
94465         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
94466         * lib/strstr.h: New file, from GNU gettext-0.11.5.
94467         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
94468
94469 2002-11-04  Bruno Haible  <bruno@clisp.org>
94470
94471         * lib/localcharset.c (locale_charset): Don't return an empty string.
94472
94473 2002-11-04  Bruno Haible  <bruno@clisp.org>
94474
94475         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
94476         aliases.
94477
94478 2002-11-04  Bruno Haible  <bruno@clisp.org>
94479
94480         * lib/config.charset: Update for newest glibc. Add canonical names
94481         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
94482
94483 2002-11-04  Bruno Haible  <bruno@clisp.org>
94484
94485         * lib/config.charset: Add support for NetBSD.
94486
94487 2002-11-04  Bruno Haible  <bruno@clisp.org>
94488
94489         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
94490
94491 2002-11-01  Bruno Haible  <bruno@clisp.org>
94492
94493         * configure.in: Add AC_CONFIG_AUX_DIR call.
94494         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
94495         test/Makefile.
94496         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
94497
94498 2002-09-28  Karl Berry  <karl@gnu.org>
94499
94500         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
94501         installed automake until the next release, since changes have been
94502         made.
94503
94504 2002-09-25  Karl Berry  <karl@gnu.org>
94505
94506         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
94507         * lib/getopt*: copy from libc/posix.
94508         * lib/gettext.h: copy from gettext.
94509         * lib/.cppi-disable: add strdup.c, gettext.h.
94510
94511 2002-09-25  Karl Berry  <karl@gnu.org>
94512
94513         * config/srclist.txt: enable gettext.h check.
94514         * config/config.{guess,sub}: update from prep.
94515         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
94516                 from automake 1.6.3.
94517         See srclist*.
94518
94519 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
94520
94521         * regex.c (PATFETCH): Remove the translating fetch.
94522         (PATFETCH_RAW): Rename to PATFETCH.
94523         (set_image_of_range): New fun.
94524         (SET_RANGE_TABLE_WORK_AREA): Use it.
94525         (regex_compile): Don't translate the pattern chars so eagerly.
94526         Only do it when inserting an `exactn' bytecode or when handling
94527         a char-range.
94528         (mutually_exclusive_p): Avoid empty statement.
94529
94530 2002-07-06  Jim Meyering  <meyering@lucent.com>
94531
94532         * m4/README: Don't mention Makefile.am.in.
94533         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
94534
94535 2002-07-01  Jim Meyering  <meyering@lucent.com>
94536
94537         * lib/c-stack.c: Include sys/time.h.
94538         From Volker Borchert.
94539
94540 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94541
94542         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
94543
94544 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94545
94546         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
94547         New macro.  Use it uniformly instead of
94548         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
94549         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
94550         reported by Vin Shelton.
94551
94552 2002-06-22  Paul Eggert  <eggert@twinsun.com>
94553
94554         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
94555         Do not assume SA_SIGINFO behavior.
94556         Bug reported by Jim Meyering on NetBSD 1.5.2.
94557
94558 2002-06-22  Jim Meyering  <meyering@lucent.com>
94559
94560         * m4/c-stack.m4: New file, from diffutils-2.8.2.
94561         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
94562
94563         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
94564         now that configure.ac uses AC_GNU_SOURCE.
94565         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
94566         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
94567
94568         Update to latest tools.  Suggestions from Paul Eggert.
94569         * m4/stdbool.m4: New file, from diffutils-2.8.2.
94570         * m4/gnu-source.m4: Update from diffutils-2.8.2.
94571         * m4/fnmatch.m4: Likewise.
94572         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
94573         to AC_HEADER_STDBOOL
94574
94575 2002-06-22  Jim Meyering  <meyering@lucent.com>
94576
94577         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
94578         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
94579
94580 2002-06-22  Jim Meyering  <meyering@lucent.com>
94581
94582         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
94583
94584         * lib/exitfail.c, exitfail.h: Likewise.
94585         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
94586
94587         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
94588         of fnmatch.h.
94589         (EXTRA_DIST): Add fnmatch_loop.c.
94590         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
94591
94592         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
94593         * lib/fnmatch.c: Update from diffutils-2.8.2.
94594         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
94595         * lib/fnmatch.h: Remove file.
94596
94597 2002-06-21  Jim Meyering  <meyering@lucent.com>
94598
94599         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
94600         * m4/mbrtowc.m4: Likewise.
94601
94602         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
94603         * m4/mbswidth.m4: Reflect name change:
94604         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
94605         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94606
94607         * m4/lib-link.m4: Update from gettext-0.11.2.
94608         * m4/gettext.m4: Likewise.
94609
94610         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
94611         From Alfred M. Szmidt.
94612
94613 2002-06-18  Paul Eggert  <eggert@twinsun.com>
94614
94615         * lib/file-type.h: Report an error if neither S_ISREG nor
94616         S_IFREG is defined, instead of using a test specific to glibc
94617         2.2.  This should be safe, since POSIX requires S_ISREG and
94618         Unix Version 7 had S_IFREG.  We don't need to check for
94619         <sys/types.h> since we don't use any symbols that it defines.
94620
94621 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
94622
94623         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
94624         $@-t, so that each temporary file name is unique and valid in the first
94625         8 characters, for operation under DOS.
94626
94627 2002-06-15  Paul Eggert  <eggert@twinsun.com>
94628
94629         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
94630
94631 2002-06-15  Jim Meyering  <meyering@lucent.com>
94632
94633         Work even with DJGPP 2.03, which lacks support for symlinks.
94634         From Richard Dawe.
94635         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
94636         is defined.
94637         * lib/lchown.c (S_ISLNK): Likewise.
94638
94639 2002-06-15  Jim Meyering  <meyering@lucent.com>
94640
94641         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
94642         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
94643         have been included before this file.
94644
94645 2002-06-14  Jim Meyering  <meyering@lucent.com>
94646
94647         * lib/file-type.h: Use the version from diffutils-2.8.2.
94648         * lib/file-type.c: Likewise.
94649
94650 2002-06-07  Jim Meyering  <meyering@lucent.com>
94651
94652         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
94653         They're needed at least for NetBSD 1.5.2.
94654         ($statxfs_includes): Include those same headers.
94655         ($statxfs_includes): Include sys/vfs.h if available.
94656         ($statxfs_includes): Likewise for sys/statvfs.h.
94657         Check for the following members in both structs statfs and statvfs:
94658         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
94659
94660 2002-06-01  Jim Meyering  <meyering@lucent.com>
94661
94662         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
94663         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
94664
94665 2002-05-28  Jim Meyering  <meyering@lucent.com>
94666
94667         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
94668         Reported by Volker Borchert.
94669
94670 2002-05-27  Jim Meyering  <meyering@lucent.com>
94671
94672         Fix a problem seen only on nonconforming systems whereby ls.c's
94673         use of localtime, and then of gettimeofday would cause trouble:
94674         the localtime call used to initialize rpl_gettimeofday's save
94675         mechanism would clobber ls's current local time information so
94676         that in any long listing the first file would always be listed
94677         with date 1970-01-01.  Analysis by Volker Borchert.
94678
94679         * lib/gettimeofday.c (localtime): Undefine.
94680         (rpl_localtime): New function.
94681
94682 2002-05-27  Jim Meyering  <meyering@lucent.com>
94683
94684         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
94685         localtime.
94686
94687         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
94688         use the replacement function; it wouldn't resolve at link time.
94689         Reported by Volker Borchert.
94690
94691 2002-05-22  Jim Meyering  <meyering@lucent.com>
94692
94693         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
94694         file-type.h.
94695         * lib/file-type.h: New file.
94696         * lib/file-type.c (file_type): New file/function.  Extracted from
94697         diffutils.
94698
94699 2002-04-30  Jim Meyering  <meyering@lucent.com>
94700
94701         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
94702
94703 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94704
94705         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
94706
94707 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94708
94709         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
94710         Do not check for alloca.h (no longer used) or stdbool.h (was never
94711         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
94712
94713 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94714
94715         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
94716
94717 2002-04-29  Jim Meyering  <meyering@lucent.com>
94718
94719         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
94720         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
94721         Use AC_FUNC_STRNLEN here instead.
94722
94723         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
94724         With autoconf-2.53a, it's part of AC_PROG_CC.
94725
94726 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94727
94728         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
94729         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
94730
94731 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94732
94733         * lib/sig2str.h, lib/sig2str.c: New files.
94734         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
94735
94736 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94737
94738         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
94739         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
94740         of 127, since 64 is the largest conceivable number for ancient
94741         nonstandard hosts.
94742         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
94743
94744 2002-04-28  Jim Meyering  <meyering@lucent.com>
94745
94746         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
94747
94748 2002-04-24  Jim Meyering  <meyering@lucent.com>
94749
94750         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
94751         (jm_PREREQ): Use it.
94752
94753         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
94754         mach/mach.h fcntl.h.
94755         Check for this function: setlocale.
94756
94757 2002-04-24  Jim Meyering  <meyering@lucent.com>
94758
94759         * lib/gettext.h: New file, from Gettext.
94760         * lib/Makefile.am (INCLUDES): Remove -I../intl.
94761         (libfetish_a_SOURCES): Add gettext.h.
94762
94763 2002-04-16  Jim Meyering  <meyering@lucent.com>
94764
94765         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
94766         ut_pid, ut_id, ut_exit.
94767
94768 2002-04-16  Jim Meyering  <meyering@lucent.com>
94769
94770         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
94771         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
94772         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
94773
94774 2002-04-12  Jim Meyering  <meyering@lucent.com>
94775
94776         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
94777         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
94778         existence of the getmntinfo function.  Needed for Darwin 5.3.
94779
94780         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
94781         This is necessary at least on Darwin 5.3.
94782
94783         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
94784         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
94785         strnlen.o in the library, and that makes some versions of ranlib
94786         object.
94787
94788 2002-04-12  Jim Meyering  <meyering@lucent.com>
94789
94790         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
94791
94792 2002-04-09  Jim Meyering  <meyering@lucent.com>
94793
94794         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
94795         to be more precise.  Rather than saying we're checking whether the
94796         function `works', say what we're testing.
94797         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
94798         Reported by Bruno Haible.
94799
94800 2002-03-10  Jim Meyering  <meyering@lucent.com>
94801
94802         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
94803         Suggestion from Santiago Vila.
94804
94805 2002-03-08  Jim Meyering  <meyering@lucent.com>
94806
94807         * lib/rename.c: Mention that this wrapper is needed also on
94808         mips-dec-ultrix4.4 systems.
94809
94810 2002-03-02  Jim Meyering  <meyering@lucent.com>
94811
94812         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
94813         not HAVE_CLOCK_SETTIME.
94814
94815 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94816
94817         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
94818         Check for clock_settime.
94819
94820 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94821
94822         * lib/nanosleep.h: Rename to....
94823         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
94824
94825         * lib/gettime.c: New file.
94826         * lib/settime.c: New file.
94827         * lib/stime.c: Remove.
94828
94829         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
94830         timespec.h.  Remove nanosleep.h.
94831
94832 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94833
94834         * m4/acl.m4: New file.
94835         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
94836         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
94837
94838 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94839
94840         * lib/acl.c, lib/acl.h: New files.
94841         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
94842
94843 2002-02-24  Jim Meyering  <meyering@lucent.com>
94844
94845         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
94846         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
94847         cause trouble.  Reported by Nelson Beebe.
94848
94849 2002-02-23  Paul Eggert  <eggert@twinsun.com>
94850
94851         * lib/path-concat.c (xpath_concat): Reorder code to pacify
94852         compilers that don't know that xalloc_die never returns.
94853
94854 2002-02-20  Jim Meyering  <meyering@lucent.com>
94855
94856         * lib/getdate.c: Regenerate using bison-1.33.
94857
94858 2002-02-17  Jim Meyering  <meyering@lucent.com>
94859
94860         * config/config.guess (main): Don't use `head -1'; it's no longer
94861         portable. Use `sed 1q' instead.
94862
94863 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
94864
94865         * m4/codeset.m4: Upgrade to gettext-0.11.
94866         * m4/gettext.m4: Upgrade to gettext-0.11.
94867         * m4/glibc21.m4: Upgrade to gettext-0.11.
94868         * m4/iconv.m4: Upgrade to gettext-0.11.
94869         * m4/isc-posix.m4: Upgrade to gettext-0.11.
94870         * m4/lcmessage.m4: Upgrade to gettext-0.11.
94871         * m4/lib-ld.m4: New file, from gettext-0.11.
94872         * m4/lib-link.m4: New file, from gettext-0.11.
94873         * m4/lib-prefix.m4: New file, from gettext-0.11.
94874         * m4/progtest.m4: Upgrade to gettext-0.11.
94875
94876 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94877
94878         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
94879         (jm_PREREQ): Use it.
94880
94881 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94882
94883         * lib/posixver.c, lib/posixver.h: New files.
94884         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94885
94886 2002-02-02  Paul Eggert  <eggert@twinsun.com>
94887             Bruno Haible  <bruno@clisp.org>
94888
94889         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
94890         (fwrite_success_callback): New declaration.
94891         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
94892         print_unicode_char. Call failure callback instead of error.
94893         (fwrite_success_callback): New function.
94894         (exit_failure_callback): New function.
94895         (fallback_failure_callback): New function.
94896         (print_unicode_char): Call unicode_to_mb.
94897
94898 2002-01-26  Jim Meyering  <meyering@lucent.com>
94899
94900         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
94901         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
94902
94903 2002-01-26  Jim Meyering  <meyering@lucent.com>
94904
94905         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
94906
94907 2002-01-22  Paul Eggert  <eggert@twinsun.com>
94908
94909         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
94910
94911 2002-01-22  Jim Meyering  <meyering@lucent.com>
94912
94913         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
94914         Otherwise, some versions of automake would omit the rule that makes
94915         Makefile from Makefile.in.
94916
94917 2002-01-21  Paul Eggert  <eggert@twinsun.com>
94918
94919         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
94920         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94921         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
94922         (memcoll): Set errno to zero if there is no error.
94923
94924         * lib/quotearg.c (quotearg_buffer_restyled):
94925         Fix bug with quoting buffers containing NUL when backslashing escapes.
94926         This bug was exposed by the other changes in this patch.
94927         (quotearg_n_options): New arg ARGSIZE.
94928         All callers changed.
94929         (quoting_options_from_style): New function.
94930         (quotearg_n_style): Use it.
94931         (quotearg_n_style_mem): New function.
94932
94933         * lib/quotearg.h (quotearg_n_style_mem): New function.
94934
94935 2002-01-19  Jim Meyering  <meyering@lucent.com>
94936
94937         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
94938         Remove useless quotes: DF_PROG="df".
94939         * m4/strnlen.m4: New file.
94940
94941 2002-01-16  Paul Eggert  <eggert@twinsun.com>
94942
94943         * lib/backupfile.c (ISDIGIT): Comment fix.
94944         * lib/getdate.y (ISDIGIT): Likewise.
94945         * lib/posixtm.c (ISDIGIT, year): Likewise.
94946         * lib/strverscmp.c (ISDIGIT): Likewise.
94947         * lib/userspec.c (ISDIGIT): Likewise.
94948
94949 2002-01-16  Jim Meyering  <meyering@lucent.com>
94950
94951         * lib/getdate.y: Add three semicolons, each just before a closing
94952         brace. Bison (as of version 1.31) no longer papers over that mistake.
94953
94954 2002-01-05  Jim Meyering  <meyering@lucent.com>
94955
94956         * lib/version-etc.c (version_etc_copyright): Update copyright year.
94957
94958 2001-12-19  Paul Eggert  <eggert@twinsun.com>
94959
94960         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
94961         not silently exit merely because the output buffer happens to
94962         have nothing pending.
94963
94964 2001-12-18  Paul Eggert  <eggert@twinsun.com>
94965
94966         See the big note in ../ChangeLog.
94967         * lib/human.c (suffixes): Prefer K to k for 1024.
94968         (generate_suffix_backwards): New function.
94969         (human_readable_inexact): Use it.
94970         * lib/xstrtol.c (__xstrtol): If there is no number but there
94971         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
94972         Accept 'K' as well as 'k'.
94973
94974 2001-12-15  Jim Meyering  <meyering@lucent.com>
94975
94976         * lib/regex.h (__restrict_arr): Update from libc.
94977
94978         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
94979         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
94980         (STREQ): Define.
94981
94982 2001-12-14  Jim Meyering  <meyering@lucent.com>
94983
94984         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
94985         Suggestion from Bruno Haible.
94986
94987 2001-12-10  Jim Meyering  <meyering@lucent.com>
94988
94989         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
94990         xrealloc, Instead, include "xalloc.h".
94991         (initbuffer): Don't cast xmalloc return value to char*.
94992         (readline): Reword comment.
94993         Don't cast xrealloc return value to char*
94994         Return NULL, not 0.
94995
94996 2001-12-09  Jim Meyering  <meyering@lucent.com>
94997
94998         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
94999         about `signed and unsigned type in conditional expression'.
95000         * lib/posixtm.c (posix_time_parse): Likewise.
95001
95002         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
95003
95004         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
95005         to avoid a pedantic warning.
95006
95007         * lib/getstr.c: Don't include assert.h.
95008         (getstr): Remove warning-evoking assertions.
95009         Return -1 if offset parameter is out of bounds.
95010         Change the type of a local from int to size_t.
95011
95012         * lib/strftime.c (my_strftime_localtime_r): Include this function
95013         definition in the `#if ! HAVE_TM_GMTOFF' block.
95014
95015         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
95016         Include xalloc.h instead.
95017
95018 2001-12-02  Jim Meyering  <meyering@lucent.com>
95019
95020         * lib/tempname.c: Don't declare getenv, thus reverting the change of
95021         2001-11-18.  It's no longer necessary, now that stdlib.h is always
95022         included.
95023
95024         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
95025         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
95026
95027 2001-11-30  Akim Demaille  <akim@epita.fr>
95028
95029         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
95030         before being defined.
95031
95032 2001-11-27  Paul Eggert  <eggert@twinsun.com>
95033
95034         * lib/quotearg.h (quotearg_n, quotearg_n_style):
95035         First arg is int, not unsigned.
95036         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
95037         (SIZE_MAX, UINT_MAX): New macros.
95038         (quotearg_n_options): Abort if N is negative.
95039         Avoid overflow check on hosts where size_t is 64 bits and int
95040         is 32 bits, as overflow is impossible there.
95041         Fix off-by-one typo that caused unnecessary reallocation.
95042
95043 2001-11-27  Jim Meyering  <meyering@lucent.com>
95044
95045         * lib/tempname.c: Merge with version from libc.
95046         * lib/regex.c: Likewise.
95047
95048         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
95049         systems for which STDC_HEADERS is 0, it was not included, resulting in
95050         a warning about an integer-to-pointer conversion problem with getenv.
95051         Reported by Volker Borchert.
95052
95053 2001-11-26  Jim Meyering  <meyering@lucent.com>
95054
95055         * lib/gtod.h: Remove file.
95056         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
95057         * lib/gettimeofday.c: Don't include gtod.h.
95058         (GTOD_init): Remove function.
95059         (rpl_gettimeofday): Do its job here instead, rather than aborting.
95060         Suggestion from Volker Borchert.
95061
95062 2001-11-23  Jim Meyering  <meyering@lucent.com>
95063
95064         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
95065         it.
95066         * lib/hash.c (struct hash_table): Define it here instead.
95067
95068 2001-11-22  Jim Meyering  <meyering@lucent.com>
95069
95070         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
95071
95072 2001-11-20  Jim Meyering  <meyering@lucent.com>
95073
95074         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
95075         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
95076
95077 2001-11-19  Jim Meyering  <meyering@lucent.com>
95078
95079         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
95080         directory.  Use "conftestXXXXXX" as the template.
95081         Suggestion from Paul Eggert.
95082
95083         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
95084         immediately, so the test doesn't mistakenly hit the max-open-files
95085         limit.
95086
95087 2001-11-18  Paul Eggert  <eggert@twinsun.com>
95088
95089         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
95090         (TEMPORARIES): New macro.
95091         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
95092         removes an artificial limitation (e.g. HP-UX 10.20, where
95093         TMP_MAX is 17576).
95094
95095 2001-11-18  Jim Meyering  <meyering@lucent.com>
95096
95097         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
95098
95099 2001-11-18  Jim Meyering  <meyering@lucent.com>
95100
95101         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
95102         on SunOS 4.
95103
95104         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
95105         files will be created before anything else.
95106
95107 2001-11-17  Paul Eggert  <eggert@twinsun.com>
95108
95109         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
95110         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
95111
95112 2001-11-17  Jim Meyering  <meyering@lucent.com>
95113
95114         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
95115         Prompted by a report from Bob Proulx.
95116
95117         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
95118         Instead, require UTILS_FUNC_MKSTEMP.
95119
95120 2001-11-17  Jim Meyering  <meyering@lucent.com>
95121
95122         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
95123         Now, that's done as part of AC_FUNC_STRTOD.
95124
95125 2001-11-17  Jim Meyering  <meyering@lucent.com>
95126
95127         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
95128         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
95129         rather than group writable.  Patch by Juan F. Codagnone.
95130
95131         * lib/readtokens.c: Remove explicit declarations of xmalloc and
95132         xrealloc, Instead, include "xalloc.h".
95133
95134         * lib/mountlist.c: Include unlocked-io.h after all system headers.
95135         Remove explicit declarations of xmalloc, xrealloc,
95136         and xstrdup.  Instead, include "xalloc.h".
95137
95138         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
95139         unlocked-io.h.
95140         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
95141         Likewise.
95142         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
95143
95144         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
95145         Reported by Padraig Brady.
95146
95147         * lib/mkstemp.c: #undef mkstemp.
95148         Include config.h.
95149         (rpl_mkstemp): Rename from mkstemp.
95150         Protoize.
95151
95152 2001-11-16  Jim Meyering  <meyering@lucent.com>
95153
95154         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
95155         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
95156         determine the amount of total physical memory, use pstat_getstatic.
95157         HPUX-11 doesn't define _SC_PHYS_PAGES.
95158         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
95159         If sysconf couldn't be used to determine the amount of available
95160         physical memory, use both pstat_getstatic and pstat_getdynamic.
95161         Based on a patch from Bob Proulx.
95162
95163 2001-11-10  Jim Meyering  <meyering@lucent.com>
95164
95165         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
95166         (jm_PREREQ): Use it.
95167
95168 2001-11-09  Jim Meyering  <meyering@lucent.com>
95169
95170         * m4/jm-macros.m4: Require autoconf-2.52f.
95171         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
95172         Use these AC_-prefixed names, not the AM_-prefixed ones.
95173
95174         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
95175
95176 2001-11-05  Jim Meyering  <meyering@lucent.com>
95177
95178         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
95179
95180 2001-11-04  Jim Meyering  <meyering@lucent.com>
95181
95182         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
95183         $DEFS.
95184
95185 2001-11-03  Jim Meyering  <meyering@lucent.com>
95186
95187         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
95188         of AC_DEFUN.
95189
95190         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
95191         know the name of the variable in the macro definition.
95192
95193 2001-11-03  Jim Meyering  <meyering@lucent.com>
95194
95195         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
95196         in argmatch_to_argument call.
95197
95198         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
95199         argument.
95200
95201         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
95202         e.g., a fault due to an attempt to free a NULL pointer.
95203
95204 2001-11-01  Jim Meyering  <meyering@lucent.com>
95205
95206         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
95207         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
95208
95209 2001-11-01  Jim Meyering  <meyering@lucent.com>
95210
95211         * lib/dirfd.c, lib/dirfd.h: New files.
95212         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
95213
95214         * lib/hash.c (hash_print) [TESTING]: Clean up.
95215
95216 2001-10-22  Paul Eggert  <eggert@twinsun.com>
95217
95218         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
95219         to avoid a warning if -Wall.
95220
95221 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
95222
95223         * README: New file
95224         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
95225         (per RMS's instructions, this is now the canonical source)
95226         * lgpl/, gpl/: New directories.
95227
95228 2001-10-21  Paul Eggert  <eggert@twinsun.com>
95229
95230         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
95231
95232 2001-10-21  Jim Meyering  <meyering@lucent.com>
95233
95234         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
95235         this code would end up calling gettext even in packages built
95236         with --disable-nls.
95237         * lib/getopt.c (_): Likewise.
95238         * lib/regex.c (_): Likewise.
95239
95240 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95241
95242         * m4/error.m4 (jm_PREREQ_ERROR):
95243         Do not invoke AC_CHECK_FUNCS with strerror_r, as
95244         AC_FUNC_STRERROR_R does that.
95245         Check for strerror declaration.
95246
95247         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
95248         are supposed to have them these days.
95249         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
95250         Merge changes from latest Autoconf CVS.
95251         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
95252         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
95253         POSIX decided to standardize on the int flavor of strerror_r.
95254
95255 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95256
95257         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
95258         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
95259         Use strerror_r that is only a macro, even if it is not a function.
95260         (strerror): Check for HAVE_DECL_STRERROR before declaring.
95261         (private_strerror): Use prototypes, not old-style function definition.
95262         (print_errno_message): New function.
95263         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
95264         char*-flavored one.
95265         (error_tail, error, error_at_line): Use it.
95266
95267 2001-10-11  Jim Meyering  <meyering@lucent.com>
95268
95269         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
95270         and quote_n (1, ... to avoid clobbering a buffer.
95271
95272 2001-10-05  Jim Meyering  <meyering@lucent.com>
95273
95274         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
95275         hash-pjw.h.
95276         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
95277         * lib/hash-pjw.h: New file.
95278
95279 2001-09-30  Jim Meyering  <meyering@lucent.com>
95280
95281         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
95282         `struct fsstat' has the `f_fstypename' member.
95283         Use that to define FS_TYPE, which is now used to make
95284         the getfsstat link test tighter.
95285
95286 2001-09-30  Jim Meyering  <meyering@lucent.com>
95287
95288         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
95289         Include <sys/ucred.h>, for Apple Darwin.
95290         Include sys/mount.h and sys/fs_types.h only if available.
95291         (FS_TYPE): Define.
95292         (read_filesystem_list): Use FS_TYPE.
95293
95294 2001-09-29  Paul Eggert  <eggert@twinsun.com>
95295
95296         * lib/exclude.c (excluded_filename): 0 -> false, since it's
95297         a boolean context.
95298
95299 2001-09-29  Jim Meyering  <meyering@lucent.com>
95300
95301         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95302         [one-argument getmntent function]): Include stdio.h before mntent.h.
95303         SunOS 4.1.x needs it for the declaration of `FILE'.
95304         Patch by Volker Borchert.
95305
95306         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95307         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
95308         sys/fs_types.h, and make the link-test for getfsstat guard #include
95309         directives with appropriate #if HAVE_*_H tests so that we can
95310         detect getfsstat on Apple Darwin1.3.7 systems.
95311         Reported by Nelson Beebe.
95312         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
95313
95314 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95315
95316         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95317         #defines strtoimax.  Also treat the other strto* functions
95318         like strtoimax.
95319
95320         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95321         Check for strtoul and strtoumax,
95322         as those declarations are made even in the signed case.
95323         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
95324         Likewise, for strtol and strtoimax.
95325
95326 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95327
95328         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95329         #defines strtoimax.  Also treat the other strto* functions
95330         like strtoimax.
95331
95332         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
95333         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
95334         (strtoimax, strtoumax): Do not declare if already defined as a macro.
95335
95336 2001-09-26  Jim Meyering  <meyering@lucent.com>
95337
95338         Most macros in unlocked-io.h had the wrong number of arguments.
95339         * lib/gen-uio: New script.
95340         (USE_UNLOCKED_IO): Define to 1 if not already defined.
95341         * lib/unlocked-io.hin: Remove file.
95342         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
95343         rather than trying to embed it here.
95344         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
95345         Reported by Padraig Brady.
95346
95347 2001-09-25  Volker Borchert  <bt@teknon.de>
95348
95349         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
95350         `result'.
95351
95352 2001-09-24  Jim Meyering  <meyering@lucent.com>
95353
95354         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
95355
95356 2001-09-23  Jim Meyering  <meyering@lucent.com>
95357
95358         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
95359         instead of the mere test for existence of mntent.h.  The latter
95360         would get a false-positive on AIX 3.4 systems.
95361         In the outer getmntent if-block, don't die if neither of the getmntent
95362         tests succeeds.  Instead, just fall through and continue with the
95363         remaining tests.
95364
95365 2001-09-23  Jim Meyering  <meyering@lucent.com>
95366
95367         * lib/mountlist.c: Remove useless parentheses in #if directives.
95368         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
95369         the deprecated MOUNTED symbol is no longer defined in mntent.h.
95370
95371 2001-09-22  Jim Meyering  <meyering@lucent.com>
95372
95373         * m4/gettext.m4: New file.  From gettext.
95374         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
95375         * m4/progtest.m4: Likewise
95376         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
95377         * m4/glibc21.m4: Likewise.
95378
95379         * m4/libintl.m4: Remove.  No longer used.
95380
95381 2001-09-22  Jim Meyering  <meyering@lucent.com>
95382
95383         * lib/localcharset.c: Update from latest gettext.
95384         * lib/config.charset: Likewise.
95385
95386 2001-09-20  Jim Meyering  <meyering@lucent.com>
95387
95388         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
95389         strtoimax.
95390         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
95391         strtoumax.
95392
95393 2001-09-20  Jim Meyering  <meyering@lucent.com>
95394
95395         * lib/xstrtol.c (strtoimax): Guard declaration with
95396         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
95397         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
95398         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
95399         (strtoumax): Likewise, for completeness (it wasn't necessary).
95400
95401 2001-09-17  Paul Eggert  <eggert@twinsun.com>
95402
95403         * lib/strtoimax.c (HAVE_LONG_LONG):
95404         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
95405         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
95406         to work around bug in IBM C compiler.
95407
95408 2001-09-17  Jim Meyering  <meyering@lucent.com>
95409
95410         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
95411         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
95412         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
95413         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
95414         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
95415         whenever the right hand side need not be expanded by the shell.
95416
95417 2001-09-16  Paul Eggert  <eggert@twinsun.com>
95418
95419         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
95420         library.  It's not correct, as some older glibcs are buggy.
95421         fnmatch wasn't fixed until glibc 2.2.
95422
95423         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
95424         special shell magic here.
95425
95426 2001-09-16  Jim Meyering  <meyering@lucent.com>
95427
95428         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
95429         * m4/jm-macros.m4: Require it.
95430
95431 2001-09-16  Jim Meyering  <meyering@lucent.com>
95432
95433         * lib/mkdir.c: New file.
95434
95435 2001-09-15  Jim Meyering  <meyering@lucent.com>
95436
95437         * m4/jm-macros.m4: Check for help2man.
95438
95439 2001-09-11  Jim Meyering  <meyering@lucent.com>
95440
95441         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
95442         The body, by Paul Eggert, was moved here from configure.in.
95443         * m4/jm-macros.m4: Require UTILS_HOST_OS.
95444
95445 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95446
95447         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
95448         (jm_PREREQ): Use it.
95449
95450 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95451
95452         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
95453         Use ssize_t, not int, to store result of readlink.
95454         Check for ssize_t overflow as well as size_t overflow,
95455         as POSIX says the result of readlink is implementation-defined
95456         when ssize_t overflows.
95457         Remove unnecessary cast to char*.
95458         Use free+malloc instead of realloc, as the storage doesn't need
95459         to be preserved and it's clearer and can be more efficient that way.
95460         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
95461         * lib/xreadlink.h (xreadlink): Update prototype.
95462
95463 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95464
95465         * lib/xgetcwd.c: Revert some of the previous change; intead,
95466         fix the HAVE_GETCWD_NULL code to behave more like the
95467         !HAVE_GETCWD_NULL code used to.
95468
95469         Include "xalloc.h".
95470         (xgetcwd): Do not return NULL when memory is exhausted; instead,
95471         invoke xalloc_die.
95472
95473 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95474
95475         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
95476         sys/param.h, as pathmax.h includes them.
95477
95478 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95479
95480         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
95481         (jm_PREREQ_XGETCWD): New macro.
95482
95483         * m4/getcwd.m4: New file.
95484
95485 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95486
95487         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
95488         like the HAVE_GETCWD_NULL code.
95489         Include pathmax.h if not HAVE_GETCWD.
95490         Do not include xalloc.h.
95491         (INITIAL_BUFFER_SIZE): New symbol.
95492         Do not use xmalloc / xrealloc, since the caller is responsible for
95493         handling errors.  Preserve errno around `free' during failure.
95494         Do not overrun buffer when using getwd.
95495
95496 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95497
95498         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
95499         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
95500         getcwd (NULL, 0).
95501
95502 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95503
95504         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
95505         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
95506         spotted by Jim Meyering.
95507
95508 2001-09-03  Jim Meyering  <meyering@lucent.com>
95509
95510         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
95511         failure.
95512
95513 2001-09-02  Jim Meyering  <meyering@lucent.com>
95514
95515         * lib/error.c: Update from GNU libc.
95516
95517 2001-09-01  Jim Meyering  <meyering@lucent.com>
95518
95519         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
95520         Used by df.
95521
95522 2001-09-01  Jim Meyering  <meyering@lucent.com>
95523
95524         * lib/xreadlink.c: New file.
95525         * lib/xreadlink.h: New file.
95526         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
95527         xreadlink.h.
95528
95529         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
95530         doesn't conflict with sparc Solaris 7's definition in
95531         /usr/include/sys/int_types.h.
95532
95533         * lib/exclude.c: Use `""', not `<>' to #include non-system header
95534         files.
95535         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
95536         and strncasecmp as r-values.  Unixware didn't have declarations.
95537
95538 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95539
95540         * lib/xstrtol.h: Add copyright notice.
95541         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
95542         LONGINT_INVALID_SUFFIX_CHAR.
95543
95544 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95545
95546         * lib/xstrtol.c (strtoimax): New decl.
95547
95548 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95549
95550         * lib/xgetcwd.c: Don't include pathmax.h.
95551         Include stdlib.h and unistd.h if available.
95552         Include xalloc.h.
95553         (xmalloc, xstrdup, free): Remove decls.
95554         (xgetcwd): Don't assume sizes fit in unsigned.
95555         Check for overflow when computing sizes.
95556         Simplify reallocation code.
95557
95558 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95559
95560         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
95561         a directory's st_size can have an arbitrary value, so the old
95562         usage could waste an arbitrary amount of memory.  All uses
95563         changed.
95564         * lib/savedir.h: Update prototype.
95565
95566 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95567
95568         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
95569
95570         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
95571         old strtoimax.c.
95572
95573         Also, make the following further changes to make this file's
95574         configuration more similar to that of strtol.c:
95575         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
95576         (strtoumax, uintmax_t, strtoull, strtol): Remove.
95577         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
95578         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
95579         changed to signed values.
95580
95581         And make the following changes as well:
95582         Fix copyright notice, as 1999 was missing.
95583         (verify): New macro.
95584         (strtoimax): Check sizes at compile-time, not run-time.
95585         Prefer strtol to strtoll if both work.
95586         (main): Remove; it was not that useful and was a pain to maintain.
95587
95588         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
95589
95590 2001-08-31  Jim Meyering  <meyering@lucent.com>
95591
95592         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
95593         Use an initial, malloc'd, buffer of length 128 rather than
95594         a statically allocated one of length 1024.
95595
95596 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95597
95598         Simplify code, partly by assuming autoconf 2.52 semantics.
95599
95600         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
95601
95602         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
95603         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
95604         All uses removed.
95605         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
95606         Move AC_REQUIRE to next-to-top level, to avoid confusion.
95607         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
95608         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
95609         jm_AC_HEADER_INTTYPES_H.
95610         * m4/jm-macros.m4 (jm_MACROS): Likewise.
95611
95612         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
95613
95614         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95615         Quote first arg of AC_DEFUN.
95616         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
95617         since they are needed to parse the include file even if we need
95618         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
95619         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
95620         but with opposite signedness.
95621
95622 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95623
95624         Merge 'exclude' changes from tar 1.13.22.
95625         This fixes one or two unlikely storage allocation overflow bugs,
95626         but doesn't change user-visible behavior otherwise.
95627
95628 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95629
95630         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
95631         (jm_PREREQ_EXCLUDE): New macro.
95632
95633 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95634
95635         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
95636         tm to be declared.
95637
95638 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95639
95640         * lib/hash.c: Remove '2001' from copyright notice.
95641
95642 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95643
95644         * lib/full-write.h: New file.
95645         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
95646         * lib/full-write.c: Correct credits, as cccp.c no longer
95647         exists and anyway it was so heavily changed from the old cccp
95648         code as to be unrecognizable.  Include full-write.h.
95649         (full_write): Return size_t, with short writes meaning failure.
95650         All callers changed.  This fixes a bug with large buffers
95651         on 64-bit hosts.
95652         * lib/utime.c: Include full-write.h.
95653
95654 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95655
95656         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
95657         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
95658         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
95659         Include if available.
95660         (<xalloc.h>): Include
95661         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
95662         (verify): New macro.  Use it to verify that EXCLUDE macros do not
95663         collide with FNM macros.
95664         (struct patopts): New struct.
95665         (struct exclude): Use it, as exclude patterns now come with options.
95666         (new_exclude): Support above changes.
95667         (new_exclude, add_exclude_file):
95668         Initial size must now be a power of two to simplify overflow checking.
95669         (free_exclude, fnmatch_no_wildcards): New function.
95670         (excluded_filename): No longer requires options arg, as the options
95671         are determined by add_exclude.  Now returns bool, not int.
95672         (excluded_filename, add_exclude):
95673         Add support for the fancy new exclusion options.
95674         (add_exclude, add_exclude_file): Now takes int options arg.
95675         Check for arithmetic overflow when computing sizes.
95676         (add_exclude_file): xrealloc might modify errno, so don't
95677         realloc until after errno might be used.
95678
95679         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
95680         New macros.
95681         (free_exclude): New decl.
95682         (add_exclude, add_exclude_file): Now takes int options arg.
95683         (excluded_filename): No longer requires options arg, as the options
95684         are determined by add_exclude.  Now returns bool, not int.
95685
95686 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95687
95688         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
95689
95690 2001-08-27  Jim Meyering  <meyering@lucent.com>
95691
95692         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
95693
95694         * lib/version-etc.c (N_): Remove definition.
95695         Revert most of last change.
95696         Instead, simply don't mark the `Copyright...' string for translation.
95697         Based on advice from Paul Eggert.
95698
95699         * lib/strtoxmax.c: Tweak comment.
95700
95701 2001-08-26  Jim Meyering  <meyering@lucent.com>
95702
95703         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
95704
95705         * m4/xstrtoimax.m4: New file.
95706         * m4/xstrtoumax.m4: Add comments explaining why we
95707         AC_REPLACE_FUNCS(strtol).
95708
95709 2001-08-26  Jim Meyering  <meyering@lucent.com>
95710
95711         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
95712         of copyright with `%s' so translators don't get an untranslated
95713         message in 2002.
95714         (COPYRIGHT_YEAR): Define.
95715         (version_etc): Use fprintf rather than fputs.
95716         Suggestion from Ulrich Drepper.
95717
95718         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
95719
95720         * lib/strtoll.c: New file, from GNU libc.
95721         * lib/xstrtoimax.c: New file.
95722
95723         * lib/xstrtol.h: Add xstrtoimax.
95724         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
95725         * lib/strtoimax.c: New file.  Likewise, but first define
95726         STRTOUXMAX_SIGNED.
95727
95728         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
95729         ...
95730         * lib/strtoxmax.c: ... then renamed to this.
95731
95732 2001-08-18  Paul Eggert  <eggert@twinsun.com>
95733
95734         * m4/inttypes.m4: Add AC_PREREQ(2.13).
95735         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
95736         (jm_AC_TYPE_INTMAX_T): New macro.
95737         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
95738
95739         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
95740
95741         * m4/longlong.m4: Renamed from ulonglong.m4.
95742         * m4/inttypes.m4: Renamed from inttypes_h.m4.
95743         * m4/uintmax_t.m4: Removed.
95744
95745 2001-08-13  Paul Eggert  <eggert@twinsun.com>
95746
95747         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
95748         Port to Solaris 8, where 'sed' requires a space after the 'r'
95749         command, and where sh dislikes "$/".  Clean up the spacing a bit.
95750         Redirect output to $tmp just once.
95751
95752 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
95753
95754         * lib/addext.c (<errno.h>): Include.
95755         (errno): Declare if not defined.
95756         (addext): Work correctly when pathconf returns -1 and leaves
95757         errno alone because there is no limit.  Also, work even if
95758         pathconf returns a value greater than SIZE_MAX.
95759
95760 2001-08-12  Jim Meyering  <meyering@lucent.com>
95761
95762         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
95763         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
95764         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
95765         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
95766         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
95767         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
95768         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
95769         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
95770         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
95771         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
95772         utime.m4, utimes.m4, xstrtoumax.m4:
95773         Quote the first argument in each use of AC_DEFUN.
95774
95775 2001-08-12  Jim Meyering  <meyering@lucent.com>
95776
95777         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
95778         Simply `return getcwd (NULL, 0);'.
95779         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
95780         Use 1300 as initial value for length, not PATH_MAX.
95781
95782         * lib/pathmax.h: Clean up cpp syntax.
95783
95784 2001-08-12  Jim Meyering  <meyering@lucent.com>
95785
95786         * lib/gettimeofday.c: New file.
95787         * lib/gtod.h: New file.
95788         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
95789
95790 2001-08-05  Jim Meyering  <meyering@lucent.com>
95791
95792         * m4/jm-macros.m4: Require autoconf-2.52.
95793
95794 2001-08-04  Jim Meyering  <meyering@lucent.com>
95795
95796         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
95797         stmt, to get in sync with glibc.
95798
95799 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95800
95801         The following changes are from gettext 0.10.39 as maintained by
95802         Bruno Haible.
95803
95804         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
95805         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
95806         with inverted sense.  All uses changed.
95807
95808         * lib/mbswidth.c: Don't include <limits.h>.
95809         Include <stdlib.h> and <string.h> unconditionally.
95810         (iswcntrl, mbsinit, ISCNTRL): New macros.
95811         (mbsnwidth): Use K&R style function declarations.
95812         Don't bother checking for MB_LEN_MAX == 1, since the compiler
95813         can optimize it when MB_CUR_MAX == 1.
95814         The width of control characters is zero, not 1.
95815
95816 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95817
95818         The following changes are from gettext 0.10.39 as maintained by
95819         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
95820
95821         * m4/codeset.m4: Upgrade to serial AM1.
95822         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
95823         all uses changed.  Quote first arg of AC_DEFUN.
95824         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
95825
95826         * m4/iconv.m4: Upgrade to serial AM2.
95827         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
95828         Add --with-libconv-prefix.
95829         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
95830         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
95831         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
95832         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
95833         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
95834
95835         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
95836         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
95837         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
95838         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
95839         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
95840         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
95841         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
95842         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
95843         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
95844
95845         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
95846         string.h any more.
95847
95848         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
95849         not the default value.
95850
95851         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
95852         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
95853         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
95854         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
95855         Also check for iswcntrl, used for wcwidth fallback.
95856         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
95857         to Autoconf 2.13.
95858
95859 2001-08-03  Jim Meyering  <meyering@lucent.com>
95860
95861         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
95862         as it was in the original.  Reported by Paul Eggert.
95863
95864 2001-07-16  Jim Meyering  <meyering@lucent.com>
95865
95866         * m4/gettimeofday.m4: New file.
95867         Prompted by a report from Bernhard Baehr.
95868
95869 2001-07-15  Jim Meyering  <meyering@lucent.com>
95870
95871         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
95872         stuff. Now it's in ../Makefile.cfg.
95873
95874 2001-07-15  Jim Meyering  <meyering@lucent.com>
95875
95876         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
95877         (BUILT_SOURCES): Add unlocked-io.h.
95878         (io_functions): Define.
95879         (unlocked-io.h): New rule.
95880         (DISTCLEANFILES): Add unlocked-io.h.
95881         (all-local): Depend on unlocked-io.h, to ensure it is created.
95882
95883         * lib/unlocked-io.hin: New file
95884
95885         * lib/regex.c: Update from glibc.
95886
95887 2001-07-05  Jim Meyering  <meyering@lucent.com>
95888
95889         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
95890         recommendation.
95891         (libfetish_a_SOURCES): Put all .h files here instead.
95892         Remove a thus-exposed (better checks in automake) duplicate and
95893         two unnecessary .h files.
95894
95895 2001-07-04  Jim Meyering  <meyering@lucent.com>
95896
95897         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
95898         that generates jm-glibc-io.m4 so that it doesn't trigger any make
95899         distcheck failure.
95900
95901 2001-07-02  Jim Meyering  <meyering@lucent.com>
95902
95903         The following changes were prompted by suggestions from Bruno Haible.
95904
95905         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
95906         is now generated.
95907         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
95908         definition of EXTRA_DIST.
95909         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
95910         ensure that the generated file is created/updated whenever the list
95911         of $(unlocked_functions) is changed.
95912         (jm-glibc-io.m4): New rule.
95913         (unlocked-io.h): New rule -- currently unused.
95914
95915 2001-06-24  Jim Meyering  <meyering@lucent.com>
95916
95917         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
95918         unmatched right bracket, rather than kludging it with an extra,
95919         falsely-matching quote in a comment.  Patch by Akim Demaille.
95920
95921 2001-06-11  Jim Meyering  <meyering@lucent.com>
95922
95923         * lib/regex.c: Update from GNU libc.
95924
95925 2001-05-27  Jim Meyering  <meyering@lucent.com>
95926
95927         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
95928         Check for ut_type in struct utmp.
95929
95930 2001-05-27  Jim Meyering  <meyering@lucent.com>
95931
95932         * lib/readutmp.h (UT_TYPE): Define.
95933
95934 2001-05-24  Jim Meyering  <meyering@lucent.com>
95935
95936         * lib/argmatch.c: Include "quote.h".
95937         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
95938         quote function.  Reported by Göran Uddeborg.
95939
95940 2001-05-22  Jim Meyering  <meyering@lucent.com>
95941
95942         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
95943         now that we use the package-supplied version unconditionally.
95944         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
95945
95946 2001-05-21  Jim Meyering  <meyering@lucent.com>
95947
95948         * m4/regex.m4: Change a couple backticks to single quotes to avoid
95949         shell syntax errors.
95950
95951 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95952
95953         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
95954
95955 2001-05-20  Paul Eggert  <eggert@twinsun.com>
95956
95957         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
95958         Don't bother to check library strftime, since
95959         we'll be using our own my_strftime function anyway.
95960         Define my_strftime instead of strftime.
95961
95962 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
95963
95964         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
95965         which is not yet declared.
95966
95967 2001-05-15  Jim Meyering  <meyering@lucent.com>
95968
95969         * m4/regex.m4: Use proper quoting so brackets appear in the test
95970         program.
95971         Reported by, and with help from, Bruno Haible.
95972
95973 2001-05-13  Jim Meyering  <meyering@lucent.com>
95974
95975         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
95976         undefined.
95977
95978 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95979
95980         dirname code cleanup.  base_name now behaves more compatibly
95981         with POSIX basename when given file names that have trailing
95982         slashes, and similarly for dir_name.  Add new primitives
95983         base_len and dir_len.  Put the directory-name-related decls
95984         into dirname.h.
95985
95986         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
95987         * lib/backupfile.c (base_name): Likewise.
95988         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
95989         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
95990         * lib/makepath.c (strip_trailing_slashes): Likewise.
95991         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
95992         ISSLASH): Likewise.
95993         * lib/rename.c (strip_trailing_slashes): Likewise.
95994         * lib/same.c (base_name): Likewise.
95995         * lib/stripslash.c (ISSLASH): Likewise.
95996
95997         * lib/addext.c: Include <dirname.h> after size_t is defined.
95998         * lib/backupfile.c: Likewise.
95999
96000         * lib/addext.c (addext): Use base_len to trim redundant
96001         trailing slashes instead of doing it ourselves.
96002         But do not trim the last slash if it is not redundant.
96003
96004         * lib/backupfile.c (find_backup_file_name,
96005         max_backup_version): Use base_len instead of rolling it ourselves.
96006         Handle the case of "" and (on DOS) "C:" correctly.
96007
96008         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
96009         needed. Include <string.h>, <dirname.h>.
96010         (base_name): Allow file names ending in slashes, other than names
96011         that are all slashes.  In this case, return the basename followed
96012         by the slashes.  This is more general, and can be used in places
96013         where the original base_name purposely had an assertion failure.
96014         (base_len): New function.
96015
96016         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
96017         Do not include <assert.h>; no longer needed.
96018         Include xalloc.h.
96019         (memrchr): Remove decl.
96020         (dir_name_r): Remove.
96021         (dir_len): Renamed from dirlen.  All callers changed.
96022         Rewrite in terms of base_name, for simplicity and consistency.
96023         (dir_name): Never return NULL.  All callers changed.
96024         Do not include <stdlib.h> in test program; no longer needed.
96025         return 0; is fine for test program.
96026
96027         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
96028         New macros.
96029         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
96030
96031         * lib/path-concat.c (path_concat): Use base_len to compute
96032         base length, not strlen; this means we cannot rely on memcpy
96033         to null-terminate.
96034
96035         * lib/same.c (STREQ): Remove.
96036         (same_name): Handle the case where the basename ends in trailing '/'.
96037
96038         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
96039         a slash was stripped.  Do not strip the last slash after a
96040         file system prefix.
96041
96042 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96043
96044         * lib/Makefile.am (libfetish_a_SOURCES):
96045         Add strftime.c, since we now compile it on all hosts.
96046
96047         * lib/strftime.c (my_strftime):
96048         Define to nstrftime if emacs, but only if my_strftime is not defined.
96049         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
96050         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
96051         Add one more extra argument: a nanoseconds value.
96052         All uses changed.
96053         (ns): New macro.
96054         (my_strftime function): Add %N format.
96055         (emacs_strftimeu): Renamed from emacs_strftime,
96056         with extra ut argument.
96057
96058 2001-05-09  Paul Eggert  <eggert@twinsun.com>
96059
96060         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
96061
96062 2001-04-21  Jim Meyering  <meyering@lucent.com>
96063
96064         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
96065         doesn't interfere.
96066
96067 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96068
96069         * m4/ftruncate.m4: Check for chsize.
96070         Link with ftruncate.o unconditionally if ftruncate is missing.
96071         This was required when cross-compiling to i586-mingw32msvc.
96072
96073 2001-04-08  Jim Meyering  <meyering@lucent.com>
96074
96075         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
96076         recomputed; that's necessary when the offset spans a DST transition.
96077         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
96078
96079 2001-04-02  Jim Meyering  <meyering@lucent.com>
96080
96081         * lib/regex.h, regex.c: Update from GNU libc.
96082
96083 2001-03-24  Jim Meyering  <meyering@lucent.com>
96084
96085         * m4/jm-macros.m4: Require autoconf-2.49d.
96086
96087 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
96088
96089         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
96090
96091 2001-03-19  Paul Eggert  <eggert@twinsun.com>
96092
96093         * lib/version-etc.c (version_etc_copyright): Update to 2001.
96094
96095 2001-03-17  Jim Meyering  <meyering@lucent.com>
96096
96097         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
96098         now that the version in autoconf is equivalent.
96099         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
96100
96101         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
96102         Suggestion from Akim Demaille.
96103
96104         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
96105         (jm_PREREQ_TEMPNAME): New function.
96106
96107 2001-03-16  Paul Eggert  <eggert@twinsun.com>
96108
96109         * lib/tempname.c (uint64_t): Define to uintmax_t if
96110         not defined, and if UINT64_MAX is not defined.
96111         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
96112         Reported by John David Anglin.
96113
96114 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
96115
96116         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
96117         resolve alias if codeset is empty.
96118         * lib/config.charset (BeOS): Use wildcard syntax.
96119
96120 2001-03-13  Jim Meyering  <meyering@lucent.com>
96121
96122         * lib/path-concat.c (path_concat)
96123         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
96124         concatenating e.g., `C:' and `foo'.
96125         From Bruno Haible.
96126
96127 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96128
96129         * lib/localcharset.c (locale_charset): Don't use
96130         setlocale(LC_CTYPE,NULL). Don't return NULL.
96131         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
96132
96133 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96134
96135         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
96136         support for DOS/DJGPP.
96137
96138 2001-03-01  Paul Eggert  <eggert@twinsun.com>
96139
96140         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
96141         lacks mkstemp.  Compile our own tempname.c if we compile our own
96142         mkstemp.c, as mkstemp relies on tempname.
96143
96144 2001-03-01  Jim Meyering  <meyering@lucent.com>
96145
96146         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
96147         AH_VERBATIM really does output its argument verbatim.
96148
96149 2001-02-28  Paul Eggert  <eggert@twinsun.com>
96150
96151         * lib/Makefile.am (libfetish_a_SOURCES):
96152         Add dup-safer.c, fopen-safer.c.
96153         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
96154
96155         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
96156         * lib/unistd-safer.h: New files.
96157
96158 2001-02-25  Paul Eggert  <eggert@twinsun.com>
96159
96160         The mkstemp replacement is taken from glibc 2.2.2, with some
96161         portability fixes for use outside glibc, as follows:
96162
96163         * lib/tempname.c (struct_stat64): New macro.
96164         (direxists, __gen_tempname): Use it.
96165         This avoids a portability problem with Solaris 8.
96166
96167         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
96168         (<stddef.h>, <stdint.h>, <string.h>):
96169         Include only if STDC_HEADERS || _LIBC.
96170         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
96171         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
96172         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
96173         (__set_errno): Define this macro if <errno.h> doesn't.
96174         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
96175         Define these macros if <stdio.h> doesn't.
96176         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
96177         Define these macros if <sys/stat.h>
96178         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
96179         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
96180         __xstat64): Define if not _LIBC.
96181         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
96182         (__gen_tempname): Invoke gettimeofday only if
96183         HAVE_GETTIMEOFDAY || _LIBC;
96184         otherwise, fall back on plain "time".
96185         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
96186
96187         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
96188
96189         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
96190
96191 2001-02-18  Paul Eggert  <eggert@twinsun.com>
96192
96193         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
96194
96195 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96196
96197         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
96198         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
96199         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
96200         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96201
96202 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96203
96204         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
96205         Remove workaround macros for hosts that have mbrtowc but not
96206         mbstate_t, as we now insist on proper declarations for both
96207         before using mbrtowc.
96208
96209 2001-02-17  Jim Meyering  <meyering@lucent.com>
96210
96211         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
96212         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
96213         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
96214         UnixWare 7.1.1.
96215
96216         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
96217         rather than AC_CACHE_VAL.
96218
96219 2001-02-17  Jim Meyering  <meyering@lucent.com>
96220
96221         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
96222         around included file name.
96223
96224         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
96225
96226         * lib/strftime.c: Update from GNU libc (the only changes were to
96227         comments).
96228
96229 2001-02-17  Jim Meyering  <meyering@lucent.com>
96230
96231         * lib/regex.c: Update from libc.
96232
96233 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
96234
96235         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
96236         clash.
96237
96238 2001-02-16  Paul Eggert  <eggert@twinsun.com>
96239
96240         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
96241         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
96242         Reported by Mark Hounschell via Paul Eggert.
96243
96244 2001-02-07  Jim Meyering  <meyering@lucent.com>
96245
96246         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
96247
96248 2001-02-05  Jim Meyering  <meyering@lucent.com>
96249
96250         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
96251         it includes the patch required for `large file' support with at least
96252         HP-UX's 10.20 /bin/cc.
96253
96254 2001-02-03  Jim Meyering  <meyering@lucent.com>
96255
96256         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
96257         AS_IF, now that it works once again (mysteriously).
96258         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96259
96260 2001-01-30  Jim Meyering  <meyering@lucent.com>
96261
96262         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
96263         * m4/chown.m4: Rename conftestchown to conftest.chown.
96264         * m4/rename.m4: s/conftestdir/conftest.d1/ and
96265         s/conftestdir2/conftest.d2/.
96266         * m4/utimes.m4: s/conftestdata/conftest.data/
96267         Inspired by Pavel Roskin's change in autoconf.
96268
96269 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
96270
96271         * lib/config.charset: Update for FreeBSD 4.2.
96272
96273 2001-01-27  Jim Meyering  <meyering@lucent.com>
96274
96275         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
96276         a use of AS_IF.
96277         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96278
96279 2001-01-26  Jim Meyering  <meyering@lucent.com>
96280
96281         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
96282         quotearg.c includes it.
96283
96284 2001-01-26  Jim Meyering  <meyering@lucent.com>
96285
96286         * lib/quotearg.c: Include stddef.h.
96287         * lib/quote.c: Include stddef.h.
96288         Reported by Axel Kittenberger.
96289
96290         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
96291         line in double quotes so that it evokes a better diagnostic.
96292         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
96293         Reported by Axel Kittenberger.
96294
96295 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
96296
96297         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
96298         as if it was a `charset'.
96299
96300 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96301
96302         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
96303         has const.
96304
96305 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96306
96307         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
96308         to avoid a warning.  Add back 'const' to inptr.
96309
96310 2001-01-20  Jim Meyering  <meyering@lucent.com>
96311
96312         Be sure that headers are checked before used in code compiled
96313         for the type checks.
96314         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
96315         In place of that, invoke jm_CHECK_ALL_TYPES.
96316         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
96317         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
96318         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
96319         The check for ssize_t was mistakenly run before the test for unistd.h.
96320
96321         The configure-time check for stdbool.h was missing.
96322         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
96323         (jm_PREREQ_HASH): New function.
96324
96325 2001-01-17  Jim Meyering  <meyering@lucent.com>
96326
96327         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
96328         for autoconf-2.49c.
96329         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
96330
96331 2001-01-16  Jim Meyering  <meyering@lucent.com>
96332
96333         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
96334         From Bruno Haible.
96335
96336 2001-01-14  Jim Meyering  <meyering@lucent.com>
96337
96338         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
96339         foo and bar.  Create conftestdir/ in the script, not in the C code.
96340         Remove directories in the script, not in the C code.
96341         Remove conftestdir{,2} before trying to create the directory.
96342         Make the entire configure script fail if the mkdir fails.
96343
96344 2001-01-14  Jim Meyering  <meyering@lucent.com>
96345
96346         * lib/rename.c: New file.  From Volker Borchert.
96347         Include stdlib.h, string.h or strings.h, and xalloc.h.
96348         Use strip_trailing_slashes rather than open-coding it.
96349
96350 2001-01-03  Paul Eggert  <eggert@twinsun.com>
96351
96352         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
96353
96354 2001-01-03  Jim Meyering  <meyering@lucent.com>
96355
96356         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
96357         of local `inptr' to avoid warning with some system declarations of
96358         iconv.
96359
96360 2001-01-02  Volker Borchert  <bt@teknon.de>
96361
96362         * m4/rename.m4: New file.
96363         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
96364
96365 2001-01-01  Jim Meyering  <meyering@lucent.com>
96366
96367         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
96368         even on systems with utmpx.h.  It's necessary for the declaration of
96369         utmp's ut_user member.  Reported by Andreas Jaeger.
96370
96371         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
96372         available. They are required for the declarations of getgrgid and
96373         getpwuid resp.
96374         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
96375         Reported by Andreas Jaeger.
96376
96377 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
96378
96379         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
96380         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
96381         so `make install' also works in VPATH builds.
96382
96383 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
96384
96385         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
96386         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
96387         can be used in subdirectories.
96388
96389 2000-12-29  Paul Eggert  <eggert@twinsun.com>
96390
96391         * lib/modechange.c: Do not assume that mode_t uses the
96392         traditional octal encoding.  E.g. "chmod 1 FOO" should set
96393         the other-execute bit of FOO even if S_IXOTH != 1.
96394
96395         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
96396         WOTH, XOTH, ALLM): New macros.
96397         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
96398          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
96399         Use them.
96400         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
96401         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
96402         (mode_compile):
96403         No need to use uintmax_t; unsigned long is long enough.
96404         Don't bother to get suffix since we don't use it.
96405
96406 2000-12-26  Jim Meyering  <meyering@lucent.com>
96407
96408         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
96409         better with autoheader.
96410
96411 2000-12-24  Jim Meyering  <meyering@lucent.com>
96412
96413         * lib/hash.c (is_prime): Return explicit boolean values.
96414         (hash_get_first): Return NULL to appease Irix5.6's 89.
96415         Reported by Nelson Beebe.
96416
96417 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
96418
96419         * lib/localcharset.c (locale_charset): Add support for Win32.
96420
96421 2000-12-18  Paul Eggert  <eggert@twinsun.com>
96422
96423         * lib/physmem.h, lib/physmem.c: New files.
96424
96425         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
96426         (noinst_HEADERS): Add physmem.h.
96427
96428         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
96429         't' for compatibility with Solaris 8 sort.
96430
96431 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
96432
96433         * lib/config.charset: Add support for BeOS.
96434
96435 2000-12-17  Jim Meyering  <meyering@lucent.com>
96436
96437         * m4/dos.m4 (jm_AC_DOS): New file and macro.
96438         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
96439
96440 2000-12-16  Jim Meyering  <meyering@lucent.com>
96441
96442         This bug had a serious impact on chown: `chown N:M FILE' (for integer
96443         N and M) would have treated it like `chown N:N FILE'.
96444
96445         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
96446
96447 2000-12-16  Jim Meyering  <meyering@lucent.com>
96448
96449         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
96450         SHELLS_FILE to a file name that's useful on djgpp systems.
96451         Include stdlib.h.
96452         (ADDITIONAL_DEFAULT_SHELLS): Define.
96453         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
96454         Based mostly on a patch from Prashant TR.
96455
96456 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
96457
96458         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
96459         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
96460         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
96461
96462 2000-12-08  Andreas Schwab  <schwab@suse.de>
96463
96464         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
96465         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
96466
96467 2000-12-07  Jim Meyering  <meyering@lucent.com>
96468
96469         * lib/stripslash.c (ISSLASH): Define.
96470         (strip_trailing_slashes): Use ISSLASH rather than comparing against
96471         `/'.
96472         From Prashant TR.
96473
96474         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
96475         (dir_name_r): Declare this function as static.
96476         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
96477         manifest itself on a name containing a mix of slashes and
96478         backslashes.
96479         Make this function work with names starting with a DOS-style
96480         drive letter and colon prefix.
96481         (dir_name): Append `.' if necessary.
96482         Based mostly on patches from Prashant TR and Eli Zaretskii.
96483
96484         * lib/dirname.h (dir_name_r): Remove prototype.
96485
96486 2000-12-06  Paul Eggert  <eggert@twinsun.com>
96487
96488         * m4/off_t-format.m4: Remove this file.
96489         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
96490
96491 2000-12-06  Jim Meyering  <meyering@lucent.com>
96492
96493         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
96494         replacement strtoull, we may well need the replacement strtoul, too.
96495         Check for declarations of strtoul and strtoull.
96496         Check for strtol.  Mainly as a cue to cause automake to include
96497         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
96498         Check for limits.h -- strtol.c needs it.
96499
96500 2000-12-05  Jim Meyering  <meyering@lucent.com>
96501
96502         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
96503
96504 2000-12-04  Jim Meyering  <meyering@lucent.com>
96505
96506         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
96507         Also include memory.h, stdlib.h, unistd.h if appropriate.
96508         Reported by Andreas Jaeger (conflicting declaration of malloc).
96509
96510 2000-12-02  Jim Meyering  <meyering@lucent.com>
96511
96512         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
96513         * m4/jm-macros.m4 (jm_MACROS): require it.
96514
96515 2000-12-02  Jim Meyering  <meyering@lucent.com>
96516
96517         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
96518
96519 2000-12-01  Paul Eggert  <eggert@twinsun.com>
96520
96521         * lib/memrchr.c: Include <config.h> before any system include file.
96522
96523 2000-11-30  Jim Meyering  <meyering@lucent.com>
96524
96525         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
96526
96527 2000-11-30  Jim Meyering  <meyering@lucent.com>
96528
96529         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
96530
96531 2000-11-29  Paul Eggert  <eggert@twinsun.com>
96532
96533         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
96534
96535 2000-11-26  Jim Meyering  <meyering@lucent.com>
96536
96537         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
96538
96539 2000-11-22  Paul Eggert  <eggert@twinsun.com>
96540
96541         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
96542         size of (size_t) -1; it's not portable.
96543
96544 2000-11-17  Jim Meyering  <meyering@lucent.com>
96545
96546         * lib/strstr.c: Update from GNU libc.
96547
96548 2000-11-17  Akim Demaille  <akim@epita.fr>
96549
96550         * lib/obstack.h: Formatting changes.
96551         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
96552         prevent type checking.
96553         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
96554         cast the value to (void *): assigning a `foo *' to a `void *'
96555         variable is valid.
96556         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
96557
96558 2000-11-16  Jim Meyering  <meyering@lucent.com>
96559
96560         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
96561
96562 2000-11-11  Jim Meyering  <meyering@lucent.com>
96563
96564         * lib/error.c: Add a couple #includes, merging from GNU libc version.
96565
96566 2000-11-10  Jim Meyering  <meyering@lucent.com>
96567
96568         * lib/obstack.h: Update from GNU libc.
96569         * lib/obstack.c: Likewise.
96570
96571 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
96572
96573         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
96574
96575 2000-11-06  Paul Eggert  <eggert@twinsun.com>
96576
96577         * lib/getusershell.c (setusershell): Use rewind rather than
96578         fseek/fseeko, to avoid configuration hassles with fseeko.
96579         Don't bother opening SHELLS_FILE if shellstream is NULL;
96580         it's not necessary.
96581
96582 2000-11-05  Jim Meyering  <meyering@lucent.com>
96583
96584         * lib/makepath.h (make_dir): Declare.
96585         * lib/makepath.c (make_dir): Remove `static' attribute.
96586         Tweak a comment.
96587
96588 2000-11-04  Jim Meyering  <meyering@lucent.com>
96589
96590         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
96591
96592 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
96593
96594         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
96595         last one in a bucket, advance to the next bucket.
96596
96597 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
96598
96599         * lib/fnmatch.c: Do not comment out all the code if we are using
96600         the GNU C library, because in some cases we are replacing buggy
96601         code in the GNU C library itself.
96602
96603 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
96604
96605         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
96606         (regex_compile): Catch bogus \(\1\).
96607
96608 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96609
96610         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
96611         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
96612         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
96613
96614 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96615
96616         * lib/error.h, getline.h, modechange.h:
96617         Remove "2000" from Copyright line, as the file hasn't been
96618         changed this year other than in the copyright notice.
96619
96620         * lib/xalloc.h: Add "2000" to Copyright line, as this file
96621         was changed this year.
96622
96623 2000-10-29  Jim Meyering  <meyering@lucent.com>
96624
96625         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
96626         renaming.
96627         * m4/ls-mntd-fs.m4: Likewise
96628
96629 2000-10-29  Jim Meyering  <meyering@lucent.com>
96630
96631         * lib/xstat.in: Fix grammar in comment.
96632
96633 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
96634
96635         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
96636         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
96637         doesn't define __restrict_arr.
96638
96639 2000-10-28  Jim Meyering  <meyering@lucent.com>
96640
96641         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
96642         (jm_PREREQ_MEMCHR): New function.
96643
96644 2000-10-28  Jim Meyering  <meyering@lucent.com>
96645
96646         * lib/memchr.c: Update from libc.
96647         Adjust for portability:
96648         [HAVE_STDLIB_H]: Include stdlib.h.
96649         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
96650         Undef __memchr, too.
96651         [!weak_alias]: Define __memchr to memchr.
96652
96653         * lib/regex.c: Update from libc.
96654         * lib/regex.h: Likewise.
96655         * lib/getopt1.c: Likewise.
96656         * lib/memcmp.c: Likewise.
96657
96658         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
96659         Avoid using fseek, when possible -- it's broken by design.
96660         Patch by Ulrich Drepper.
96661
96662 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
96663
96664         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
96665         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
96666         Giving in to popular pressure to shut up the compiler with casts.
96667
96668 2000-10-26  Jim Meyering  <meyering@lucent.com>
96669
96670         * lib/strftime.c: Update from libc.
96671
96672 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
96673
96674         * regex.c: More `unsigned char' -> `re_char' changes.
96675         Also change several `int' into `re_wchar_t'.
96676         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
96677         (PUSH_FAILURE_POINTER): Don't cast any more.
96678         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
96679         We want GCC to complain, since this piece of code makes
96680         re_match non-reentrant, which *should* be fixed.
96681         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
96682         (EXTEND_BUFFER): Use RETALLOC.
96683         (SET_LIST_BIT): Don't cast.
96684         (re_wchar_t): New type.
96685         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
96686         that those two functions will always properly return.
96687         (IMMEDIATE_QUIT_CHECK): Cast to void.
96688         (analyse_first): Use recursion rather than an explicit stack.
96689         (re_compile_fastmap): Can't fail anymore.
96690         (re_search_2): Don't check re_compile_fastmap for failure.
96691         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
96692         Now also sets the new value (passed in a new argument).
96693         (re_match_2_internal): Use it.
96694         Also, use a new var `reg' of type size_t when looping through regs
96695         rather than reuse the inappropriate `mcnt'.
96696
96697 2000-10-25  Jim Meyering  <meyering@lucent.com>
96698
96699         * lib/obstack.c: Update from libc.
96700
96701 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
96702
96703         * regex.c (regex_compile): Change the way of handling a range from
96704         a char less than 256 to a char not less than 256.
96705
96706 2000-10-24  Andrew Innes  <andrewi@gnu.org>
96707
96708         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
96709         NT-Emacs only.
96710         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
96711         so that re_search functions only quit when callers expect them to.
96712
96713 2000-10-23  Jim Meyering  <meyering@lucent.com>
96714
96715         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
96716         wrong.  That set_locale call must not have any side effects.
96717         From Paul Eggert.
96718
96719 2000-10-22  Jim Meyering  <meyering@lucent.com>
96720
96721         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
96722         [CYCLIC]: Remove now-unused definition.
96723
96724         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
96725         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
96726         Suggestion from Ulrich Drepper.
96727
96728 2000-10-21  Jim Meyering  <meyering@lucent.com>
96729
96730         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
96731         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
96732         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
96733
96734 2000-10-21  Jim Meyering  <meyering@lucent.com>
96735
96736         * lib/dirname.c (memrchr): Declare if necessary.
96737         (dir_name): Remove the restriction that there be no
96738         trailing slashes.  Now, this code skips past them, effectively
96739         ignoring them.
96740         [TEST_DIRNAME] (main): New unit tests.
96741
96742         * lib/memrchr.c: New file from GNU libc.
96743         Undef __memrchr, too.
96744         [!weak_alias]: Define __memrchr to memrchr.
96745         Guard weak_alias use with `#ifdef weak_alias'.
96746
96747 2000-10-21  Jim Meyering  <meyering@lucent.com>
96748
96749         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
96750         (dir_name): Use dir_name_r.
96751         * lib/dirname.h (dir_name_r): Declare it.
96752
96753 2000-10-17  Jim Meyering  <meyering@lucent.com>
96754
96755         * lib/quote.h (PARAMS): Define and use.
96756         Reported by Akim Demaille.
96757
96758         * lib/getopt.c: Update from libc.
96759
96760 2000-10-16  Jim Meyering  <meyering@lucent.com>
96761
96762         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
96763         setlocale.
96764         From Jan Fedak.
96765
96766 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
96767
96768         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
96769
96770 2000-09-25  Jim Meyering  <meyering@lucent.com>
96771
96772         * lib/md5.h (rol): Define (from GnuPG).
96773
96774         * lib/sha.c: Give credit (GnuPG) where due.
96775         (M): Use rol rather than open-coding it.
96776         Add a FIXME comment.
96777
96778 2000-09-21  Jim Meyering  <meyering@lucent.com>
96779
96780         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
96781         Reported by Michael Stone.
96782
96783 2000-09-20  Jim Meyering  <meyering@lucent.com>
96784
96785         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
96786         (noinst_HEADERS): Add sha.h.
96787         Based on code from Scott G. Miller and from GnuPG.
96788
96789 2000-09-18  Jim Meyering  <meyering@lucent.com>
96790
96791         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
96792         LIBS. Otherwise, everyone ends up linking with -lelf for some
96793         configurations.
96794         Reported by Mike Stone.
96795
96796 2000-09-15  Jim Meyering  <meyering@lucent.com>
96797
96798         * lib/regex.c: Update from libc.
96799
96800 2000-09-10  Jim Meyering  <meyering@lucent.com>
96801
96802         * lib/getopt.c (_getopt_internal): Update from glibc.
96803
96804 2000-09-09  Jim Meyering  <meyering@lucent.com>
96805
96806         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
96807         think it should be used as a general replacement for isascii.
96808         * lib/fnmatch.c: Likewise.
96809         * lib/mbswidth.c: Likewise
96810         * lib/regex.c: Likewise.
96811
96812         Don't use atoi.
96813         * lib/userspec.c: Include sys/param.h and limits.h.
96814         Include xstrtol.h.
96815         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96816         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
96817         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
96818         UID, GID.  Check range.
96819
96820 2000-09-06  Jim Meyering  <meyering@lucent.com>
96821
96822         * lib/getopt.c (_getopt_internal): Update from glibc.
96823
96824 2000-08-30  Jim Meyering  <meyering@lucent.com>
96825
96826         * lib/strftime.c: Merge in changes from GNU libc.
96827
96828 2000-08-26  Jim Meyering  <meyering@lucent.com>
96829
96830         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
96831         * m4/fpending.m4: New file.
96832
96833 2000-08-26  Jim Meyering  <meyering@lucent.com>
96834
96835         * lib/closeout.c: Include "__fpending.h".
96836         (close_stdout_status): Return right away if there's nothing to flush.
96837
96838         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
96839         * lib/__fpending.c: New file.
96840         * lib/__fpending.h: New file.
96841
96842 2000-08-20  Jim Meyering  <meyering@lucent.com>
96843
96844         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
96845         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
96846         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
96847
96848 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
96849
96850         Improve fileutils installation on systems where running
96851         programs (like install) can't be unlinked.
96852         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
96853         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
96854
96855 2000-08-07  Paul Eggert  <eggert@twinsun.com>
96856
96857         Standardize on "memory exhausted" instead of "Memory exhausted"
96858         or "virtual memory exhausted".
96859         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
96860         "virtual memory exhausted".
96861         * lib/same.c (same_name): Invoke xalloc_die instead of printing
96862         our own message.
96863         * lib/userspec.c (parse_user_spec): Likewise.
96864         * lib/bumpalloc.h: comment fix
96865         * lib/same.c, userspec.c: Include xalloc.h.
96866
96867         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
96868         not char *const and pointing to a constant array.
96869         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
96870         (xrealloc): Comment fix.
96871
96872         * lib/userspec.c (parse_user_spec):
96873         Don't translate a message until just before returning,
96874         to avoid unnecessary translation.
96875
96876 2000-08-07  Jim Meyering  <meyering@lucent.com>
96877
96878         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
96879         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
96880         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
96881         getgroups.c, gethostname.c, getopt.h, group-member.c,
96882         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
96883         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
96884         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
96885         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
96886         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
96887         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
96888         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
96889         yesno.c: Back out Copyright date changes for each file with no change
96890         this year.  This eases coordination with other programs using the same
96891         source code modules.  From Paul Eggert.
96892
96893 2000-08-06  Paul Eggert  <eggert@twinsun.com>
96894
96895         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
96896         not char, for compatibility with glibc 2.1.3 strftime.c.
96897
96898 2000-08-03  Greg McGary  <greg@mcgary.org>
96899
96900         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
96901         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
96902         (EXTEND_BUFFER): Use them.
96903
96904 2000-08-01  Jim Meyering  <meyering@lucent.com>
96905
96906         * lib/dirname.c (ISSLASH): Define.
96907         (BACKSLASH_IS_PATH_SEPARATOR): Define.
96908         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
96909         both `\' and `/' may be use as path separators.
96910         Based on a patch from Prashant TR.
96911
96912 2000-07-31  Paul Eggert  <eggert@twinsun.com>
96913
96914         * lib/quotearg.c (quotearg_n_options): Don't make the initial
96915         slot vector a constant, since it might get modified.
96916
96917 2000-07-31  Jim Meyering  <meyering@lucent.com>
96918
96919         * lib/xmalloc.c: Use `virtual memory exhausted', not
96920         `Memory exhausted'.
96921         * lib/obstack.c (print_and_abort): Likewise.
96922
96923 2000-07-30  Paul Eggert  <eggert@twinsun.com>
96924
96925         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
96926         buffer, so that the caller can always quote one small
96927         component of a "memory exhausted" message in slot 0.
96928         From a suggestion by Jim Meyering.
96929
96930 2000-07-30  Jim Meyering  <meyering@lucent.com>
96931
96932         * lib/makepath.c (make_path): Quote the other instance, too.
96933
96934         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
96935         (STATIC_BUF_SIZE): Define.
96936         (quotearg_n_options): Use only statically allocated storage when
96937         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
96938         than STATIC_BUF_SIZE.
96939
96940 2000-07-29  Jim Meyering  <meyering@lucent.com>
96941
96942         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
96943         * lib/dirname.c (dir_name): Likewise.
96944
96945         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
96946         `/'.
96947
96948         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
96949         (dir_name): Assert that there are no trailing slashes.
96950
96951 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
96952
96953         * lib/mbswidth.h (mbswidth): Add a flags argument.
96954         (mbswidth): New declaration.
96955         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
96956         * lib/mbswidth.c (mbswidth): Add a flags argument.
96957         (mbsnwidth): New function.
96958
96959 2000-07-24  Jim Meyering  <meyering@lucent.com>
96960
96961         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
96962
96963 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96964
96965         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
96966
96967 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96968
96969         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
96970         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
96971         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
96972         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
96973         invoke multibyte primitives.
96974
96975 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96976
96977         * lib/quotearg.c:
96978         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
96979         so that mbstate_t is always defined.
96980
96981         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
96982         be 1 in at least one GCC installation, and this configuration
96983         error is likely to be common.  Ignoring MB_LEN_MAX hurts
96984         performance on hosts that have mbrtowc but have only unibyte
96985         locales, but I assume these hosts are rare.
96986
96987 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96988
96989         * lib/mbswidth.c (_XOPEN_SOURCE):
96990         Don't define; this causes problems on Solaris 7.
96991         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
96992
96993 2000-07-23  Jim Meyering  <meyering@lucent.com>
96994
96995         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
96996         too: getgrgid, getpwuid, getuid.
96997
96998 2000-07-23  Jim Meyering  <meyering@lucent.com>
96999
97000         * lib/basename.c (base_name): Add an assertion.
97001
97002 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
97003
97004         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
97005         shadow its mbsinit function.
97006
97007 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97008
97009         * lib/mbswidth.h: New file.
97010         * lib/mbswidth.c: New file.
97011         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
97012         (noinst_HEADERS): Add mbswidth.h.
97013
97014 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97015
97016         * lib/config.charset: Add support for FreeBSD. Improve support for
97017         HP-UX and IRIX 6.
97018
97019 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
97020
97021         * m4/mbswidth.m4: New file.
97022         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
97023
97024 2000-07-15  Jim Meyering  <meyering@lucent.com>
97025
97026         * lib/makepath.c: Include quote.h.
97027         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
97028         corresponding argument in a `quote (...)' call.
97029         Give better diagnostics.
97030
97031         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
97032         (noinst_HEADERS): Add quote.h.
97033
97034         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
97035         from tar's src/misc.c.
97036         * lib/quote.h: New file.  Prototypes for same.
97037
97038 2000-07-14  Paul Eggert  <eggert@twinsun.com>
97039
97040         From a suggestion by Bruno Haible.
97041         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
97042         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
97043         to decide whether to define the BeOS workaround macro;
97044         this adjusts to the change to AC_MBSTATE_T.
97045
97046 2000-07-14  Jim Meyering  <meyering@lucent.com>
97047
97048         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
97049         jm_AC_TYPE_UINTMAX_T.
97050
97051 2000-07-13  Paul Eggert  <eggert@twinsun.com>
97052
97053         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
97054
97055         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
97056         quotearg_buffer_restyled): Add support for
97057         clocale_quoting_style.  Undo previous change to
97058         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
97059         and "{RIGHT QUOTATION MARK}" msgids.
97060
97061 2000-07-10  Paul Eggert  <eggert@twinsun.com>
97062
97063         From a suggestion by Bruno Haible.
97064         * m4/mbstate_t.m4 (AC_MBSTATE_T):
97065         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
97066         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
97067         and mbstate_t, to a single-part test that simply defines mbstate_t.
97068         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
97069         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
97070
97071 2000-07-10  Jim Meyering  <meyering@lucent.com>
97072
97073         * m4/strerror_r.m4: Mirror the correction made in autoconf.
97074
97075         * m4/gnu-source.m4: Output to confdefs.h directly.
97076         Suggestion from Akim Demaille.
97077
97078 2000-07-09  Paul Eggert  <eggert@twinsun.com>
97079
97080         The old behavior of quoting `like this' doesn't look good with
97081         newer, ISO-style fonts.  See:
97082         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
97083
97084         Instead, quote "like this" by default.  Let the translator
97085         tailor the locale-specific quoting behavior by providing
97086         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
97087
97088         * lib/quotearg.c (N_): New macro.
97089         (gettext_default): New function.
97090         (quotearg_buffer_restyled): Use
97091         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
97092         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
97093
97094 2000-07-09  Jim Meyering  <meyering@lucent.com>
97095
97096         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
97097         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
97098
97099         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
97100         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
97101
97102 2000-07-09  Jim Meyering  <meyering@lucent.com>
97103
97104         * lib/Most files: Update copyright dates to include 2000.
97105
97106 2000-07-08  Jim Meyering  <meyering@lucent.com>
97107
97108         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
97109         if not defined.
97110         (xgethostname): Remove now-unnecessary #ifdef.
97111         Move declaration of `err' into loop where it's used.
97112
97113 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97114         and Bruno Haible  <haible@clisp.cons.org>
97115
97116         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
97117         only if the test for an object-type mbstate_t fails.  This
97118         prevents us from mistakenly reporting that mbstate_t is a
97119         system object type after we "#define mbstate_t int" to work
97120         around its lack.
97121
97122 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97123         and Bruno Haible  <haible@clisp.cons.org>
97124
97125         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
97126
97127 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97128
97129         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
97130         to strerror_r.
97131         Include <ctype.h> for use of isalpha.
97132
97133 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97134
97135         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
97136         by allocating a larger buffer. Test the gethostname return value for
97137         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
97138         returns an error and ENAMETOOLONG isn't defined.
97139
97140 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97141
97142         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
97143         dimension.
97144
97145 2000-07-04  Jim Meyering  <meyering@lucent.com>
97146
97147         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
97148         of the deprecated AC_CHECKING.
97149
97150 2000-07-04  Jim Meyering  <meyering@lucent.com>
97151
97152         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
97153         Reported by Bruno Haible.
97154
97155 2000-07-04  Jim Meyering  <meyering@lucent.com>
97156
97157         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
97158         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
97159         lacks mbrtowc.
97160
97161 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97162
97163         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
97164         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
97165
97166 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97167         and Bruno Haible  <haible@clisp.cons.org>
97168
97169         * lib/quotearg.c (mbrtowc):
97170         Assign to *pwc, and return 1 only if result is nonzero.
97171         (iswprint): Use ISPRINT when substituting our own mbrtowc.
97172
97173 2000-07-03  Jim Meyering  <meyering@lucent.com>
97174
97175         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
97176
97177 2000-07-03  Jim Meyering  <meyering@lucent.com>
97178
97179         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
97180         This is necessary to get a definition of e.g., UTMP_FILE on
97181         HP-UX 10.20.
97182         From Bob Proulx.
97183
97184 2000-07-02  Jim Meyering  <meyering@lucent.com>
97185
97186         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
97187
97188         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
97189         AC_LIBOBJ(function_name).
97190         * m4/chown.m4: Likewise.
97191         * m4/fnmatch.m4: Likewise.
97192         * m4/ftruncate.m4: Likewise.
97193         * m4/getgroups.m4: Likewise.
97194         * m4/getline.m4: Likewise.
97195         * m4/group-member.m4: Likewise.
97196         * m4/jm-macros.m4: Likewise.
97197         * m4/lstat.m4: Likewise.
97198         * m4/malloc.m4: Likewise.
97199         * m4/memcmp.m4: Likewise.
97200         * m4/nanosleep.m4: Likewise.
97201         * m4/putenv.m4: Likewise.
97202         * m4/realloc.m4: Likewise.
97203         * m4/regex.m4: Likewise.
97204         * m4/stat.m4: Likewise.
97205         * m4/strftime.m4: Likewise.
97206
97207 2000-07-02  Jim Meyering  <meyering@lucent.com>
97208
97209         * lib/quotearg.c (mbstate_t): Don't define here.
97210
97211 2000-07-02  Jim Meyering  <meyering@lucent.com>
97212
97213         * lib/nanosleep.c (SIGCONT): Define if not already defined.
97214
97215 2000-07-01  Jim Meyering  <meyering@lucent.com>
97216
97217         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
97218
97219 2000-07-01  Jim Meyering  <meyering@lucent.com>
97220
97221         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
97222         problem.
97223
97224 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97225
97226         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
97227         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
97228
97229 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97230
97231         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
97232         per change in ../m4/ls-mntd-fs.m4.
97233         (read_filesystem_list): Ignore symbolic links.
97234
97235 2000-06-29  Jim Meyering  <meyering@lucent.com>
97236
97237         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
97238         for declaration of strcmp.
97239
97240         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
97241
97242         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
97243         Avoid warning by casting result to `char *' to remove `const'.
97244
97245 2000-06-28  Jim Meyering  <meyering@lucent.com>
97246
97247         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
97248         included by quotearg.c, for which we perform this test.  From
97249         Bruno Haible.
97250
97251 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97252
97253         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
97254         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
97255         <utmpx.h> exists, put readutmp.o into LIBOBJS.
97256
97257 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97258
97259         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
97260
97261 2000-06-26  Paul Eggert  <eggert@twinsun.com>
97262
97263         savedir now sets errno on failure and invokes xmalloc to get memory.
97264         Fix a couple of other minor bugs while we're at it.
97265
97266         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
97267         (NAMLEN): Remove macro.
97268         (malloc, realloc): Remove decls.
97269         (stpcpy): Likewise.
97270         ("xalloc.h"): Include.
97271         (NAME_SIZE_DEFAULT): New macro.
97272         (savedir): Use xmalloc / xrealloc to allocate memory.
97273         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
97274         Skip "" directory entries.
97275         Use strlen to calculate directory entry length, since the old method
97276         is rarely used these days and isn't worth supporting.
97277         Don't use a pointer after freeing it.
97278         Check for integer overflow when calculating allocation size.
97279         Use memcpy to copy entries, instead of stpcpy.
97280         Set errno properly when returning NULL.
97281         Check for readdir error.
97282
97283 2000-06-26  Jim Meyering  <meyering@lucent.com>
97284
97285         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
97286
97287 2000-06-25  Jim Meyering  <meyering@lucent.com>
97288
97289         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
97290         Linux header bug when _XOPEN_SOURCE is defined to 500.
97291
97292 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97293
97294         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
97295         deficiency.
97296
97297 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97298
97299         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
97300         Include xalloc.h.
97301         Don't include <stdlib.h>.  Don't declare malloc, realloc.
97302
97303 2000-06-24  Jim Meyering  <meyering@lucent.com>
97304
97305         * m4/strerror_r.m4: Revive this file -- to try out an experimental
97306         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
97307         for which strerror does return char*, but which lacks a conveniently
97308         accessible declaration of the function.  If the compile-test says
97309         strerror_r doesn't work, then resort to a `run'-test that works on
97310         BeOS and segfaults on DEC Unix.
97311
97312 2000-06-24  Jim Meyering  <meyering@lucent.com>
97313
97314         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
97315
97316 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97317
97318         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
97319         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
97320
97321 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97322
97323         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
97324         (mbrtowc, mbstate_t): Define substitutes if
97325         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
97326         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
97327         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
97328
97329 2000-06-23  Jim Meyering  <meyering@lucent.com>
97330
97331         * m4/afs.m4: Add missing AC_MSG_RESULT.
97332         Reported by Bruno Haible.
97333
97334         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
97335         Suggestion from Bruno Haible.
97336
97337 2000-06-23  Jim Meyering  <meyering@lucent.com>
97338
97339         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
97340
97341 2000-06-21  Jim Meyering  <meyering@lucent.com>
97342
97343         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
97344
97345 2000-06-21  Jim Meyering  <meyering@lucent.com>
97346
97347         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
97348         (noinst_HEADERS): Add getstr.h.
97349
97350         * lib/getline.c (getstr): Move into a separate file.
97351         * lib/getstr.c (getstr): New file, extracted from getline.c, with
97352         the following changes: new parameter, delim2; both delim[12]
97353         parameters have type `int', not `char'.  The latter would lose
97354         with 8-bit delimiters.
97355         * lib/getstr.h: New file.
97356
97357 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97358
97359         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
97360         than 1024, return a memory chunk of least possible size, instead
97361         of size PATH_MAX + 2. In the loop, increment the size proportionally.
97362         Use free/xmalloc instead of xrealloc to avoid copying for very long
97363         paths.
97364
97365 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97366
97367         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
97368         the empty string.
97369
97370 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97371
97372         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
97373         address, not strdup.  Include <stdlib.h> and don't declare free().
97374
97375 2000-06-19  Jim Meyering  <meyering@lucent.com>
97376
97377         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
97378
97379 2000-06-18  Jim Meyering  <meyering@lucent.com>
97380
97381         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
97382
97383         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
97384         `checking whether...' message to be consistent with that of the
97385         lstat test.
97386
97387 2000-06-18  Jim Meyering  <meyering@lucent.com>
97388
97389         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
97390         Besides, these days every porting target provides a mkdir function.
97391
97392         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
97393         needed. (this snippet comes from src/system.h).
97394
97395 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
97396
97397         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
97398
97399 2000-06-15  Paul Eggert  <eggert@twinsun.com>
97400
97401         * lib/human.c (adjust_value): New function.
97402         (human_readable_inexact): Apply rounding style even when
97403         printing approximate values.
97404
97405 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97406
97407         * lib/human.c (human_readable_inexact): Allow an input block
97408         size that is not a multiple of the output block size, and vice versa.
97409         Reported by Piergiorgio Sartor.
97410
97411 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97412
97413         * lib/getdate.y (get_date): Apply relative times after time
97414         zone indicator, not before.  Reported by Todd A. Jacobs.
97415
97416 2000-06-13  Jim Meyering  <meyering@lucent.com>
97417
97418         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
97419
97420         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
97421
97422 2000-06-12  Paul Eggert  <eggert@twinsun.com>
97423
97424         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
97425
97426 2000-06-12  Jim Meyering  <meyering@lucent.com>
97427
97428         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
97429         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
97430         optional argument.
97431         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
97432         the optional argument, `lib'.
97433
97434 2000-06-08  Jim Meyering  <meyering@lucent.com>
97435
97436         * m4/largefile.m4: Remove file (now that it's part of autoconf).
97437
97438 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97439
97440         Rewrite largefile configuration so that we don't need to run
97441         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
97442         AC_CANONICAL_HOST in configure.in -- jmm]
97443
97444         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
97445         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
97446         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
97447         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
97448         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
97449         All uses changed.
97450         Instead of inspecting the output of getconf, try to compile the
97451         test program without and with the macro definition.
97452         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
97453         for getconf.  Instead, check for the needed flags by compiling
97454         test programs.
97455
97456 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97457
97458         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
97459
97460 2000-06-04  Jim Meyering  <meyering@lucent.com>
97461
97462         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
97463         SunOS 4.1.4 for which gid_t is an unsigned type.
97464
97465 2000-06-03  Jim Meyering  <meyering@lucent.com>
97466
97467         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
97468         now that autoconf requires that.
97469
97470         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
97471         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
97472         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
97473
97474 2000-06-03  Jim Meyering  <meyering@lucent.com>
97475
97476         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
97477
97478 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97479
97480         * m4/glibc21.m4: New file.
97481         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
97482
97483 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97484
97485         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
97486         newer, don't install charset.alias.
97487         * lib/config.charset: Change the Linux/glibc rules so they become empty
97488         on glibc-2.1 or newer.
97489
97490 2000-06-02  Jim Meyering  <meyering@lucent.com>
97491
97492         * lib/mountlist.c: Back out last change.  Instead, do this...
97493         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
97494         me_dummy member using the same `ignore'-testing code.
97495         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
97496         fs_type strings.
97497         From Mark D. Roth.
97498
97499 2000-05-29  Jim Meyering  <meyering@lucent.com>
97500
97501         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
97502         mounts with the `ignore' attribute.  Based on a patch from
97503         Mark D. Roth.
97504
97505 2000-05-28  Jim Meyering  <meyering@lucent.com>
97506
97507         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
97508         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97509         * m4/stat.m4: Likewise.
97510         * m4/lstat.m4: Likewise.
97511         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
97512
97513         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
97514         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
97515
97516 2000-05-26  Jim Meyering  <meyering@lucent.com>
97517
97518         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
97519
97520 2000-05-24  Jim Meyering  <meyering@lucent.com>
97521
97522         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
97523         autoconf requires that.
97524         * m4/lib-check.m4: Likewise.
97525         * m4/jm-macros.m4: Likewise.
97526         * m4/strftime.m4: Likewise.
97527
97528         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
97529         AC_CHECK_DECLS, now that autoconf requires that.
97530
97531 2000-05-22  Jim Meyering  <meyering@lucent.com>
97532
97533         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97534         * m4/lstat.m4: Likewise.
97535
97536 2000-05-22  Jim Meyering  <meyering@lucent.com>
97537
97538         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
97539
97540 2000-05-20  Jim Meyering  <meyering@lucent.com>
97541
97542         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
97543         (jm_PREREQ): Use it.
97544
97545 2000-05-18  Jim Meyering  <meyering@lucent.com>
97546
97547         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
97548         back, too, since it may have been modified by allocate_entry.
97549         (hash_delete): Rewrite to use neither the assignment operator
97550         nor the comma operator in an if-expression.
97551
97552 2000-05-15  Paul Eggert  <eggert@twinsun.com>
97553
97554         * lib/closeout.c:
97555         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
97556         Remove; no longer needed.
97557         "quotearg.h": Add include.
97558         (file_name): Do not bother to explicitly initialize to NULL; it's less
97559         efficient on some hosts.
97560         (close_stdout_status): Remove test as to whether stdout was already
97561         closed; it breaks for the case "echo x | sort >&-".
97562         Quote file name colons.
97563         Do not assume that _("write error") lacks format strings.
97564
97565 2000-05-15  Jim Meyering  <meyering@lucent.com>
97566
97567         * lib/version-etc.c (version_etc_copyright): Update the copyright
97568         string used in all --version output.
97569
97570 2000-05-14  Jim Meyering  <meyering@lucent.com>
97571
97572         * lib/closeout.c (close_stdout_set_file_name): New function.
97573         (close_stdout_status): Use new file-scoped global.
97574         Return right away if fstat says the stdout file descriptor is invalid.
97575         * lib/closeout.h (close_stdout_set_file_name): Declare.
97576
97577 2000-05-10  Jim Meyering  <meyering@lucent.com>
97578
97579         * lib/closeout.c [default_exit_status]: New file-scoped variable.
97580         (close_stdout_set_status): New function.
97581         * lib/closeout.h (close_stdout_set_status): Declare.
97582
97583 2000-05-09  Jim Meyering  <meyering@lucent.com>
97584
97585         * m4/gettext.m4: Rename this...
97586         * m4/libintl.m4: ...to this.
97587
97588 2000-05-08  Jim Meyering  <meyering@lucent.com>
97589
97590         * lib/long-options.c: Don't include closeout.h.
97591         (parse_long_options): Don't call close_stdout for --version.
97592
97593 2000-05-06  Paul Eggert  <eggert@twinsun.com>
97594
97595         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
97596         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
97597         2.1.3 bug.  This avoids a clash when files like regex.c define
97598         _GNU_SOURCE.
97599
97600 2000-05-06  Jim Meyering  <meyering@lucent.com>
97601
97602         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
97603         (AC_REPLACE_FUNCS): Add strnlen.
97604
97605         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
97606         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
97607
97608         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
97609         AC_SEARCH_LIBS call for nanosleep.
97610         (LIB_NANOSLEEP): Set and AC_SUBST.
97611
97612 2000-05-06  Jim Meyering  <meyering@lucent.com>
97613
97614         * lib/strnlen.c: Undefine __strnlen and strnlen.
97615         [!weak_alias]: Define __strnlen to strnlen.
97616
97617         * lib/atexit.c: New file, from libiberty.
97618
97619 2000-05-06  Jim Meyering  <meyering@lucent.com>
97620
97621         * lib/closeout.c (close_stdout_status): Also check for errors on the
97622         stderr stream.
97623
97624 2000-05-05  Jim Meyering  <meyering@lucent.com>
97625
97626         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
97627         AC_SEARCH_LIBS call for clock_gettime.
97628         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
97629
97630         * m4/search-libs.m4: Update from autoconf.
97631
97632         su doesn't work on Solaris 2.6.
97633         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
97634         <shadow.h>.  Reported by Dragos Harabor.
97635
97636 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
97637
97638         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
97639         memcpy instead of xmalloc, xrealloc, path_concat.
97640         (locale_charset): Treat empty environment variables as absent.
97641         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
97642
97643 2000-05-04  Jim Meyering  <meyering@lucent.com>
97644
97645         * lib/getopt.c: Update from glibc.
97646         * lib/obstack.c: Likewise.
97647         * lib/obstack.h: Likewise.
97648         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
97649         file
97650
97651         * lib/regex.h: Likewise.
97652         * lib/strndup.c: Likewise.
97653         * lib/strnlen.c: New file, from glibc.
97654
97655 2000-05-03  Jim Meyering  <meyering@lucent.com>
97656
97657         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
97658
97659 2000-05-02  Paul Eggert  <eggert@twinsun.com>
97660
97661         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
97662         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
97663         compile-time test, rather than inspecting host and OS, to
97664         decide whether to define _LARGEFILE_SOURCE.
97665
97666 2000-05-01  Jim Meyering  <meyering@lucent.com>
97667
97668         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
97669
97670         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
97671         Based on a patch from Bruno Haible.
97672
97673 2000-05-01  Jim Meyering  <meyering@lucent.com>
97674
97675         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
97676
97677 2000-04-29  Jim Meyering  <meyering@lucent.com>
97678
97679         * lib/path-concat.c: Declare strdup only if it's not defined.
97680         * lib/canon-host.c: Likewise.
97681
97682 2000-04-28  Jim Meyering  <meyering@lucent.com>
97683
97684         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
97685         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
97686         is included first, then limits.h is included by locale.h by libintl.h.
97687         From John David Anglin.
97688
97689 2000-04-25  Jim Meyering  <meyering@lucent.com>
97690
97691         * lib/makepath.c (S_IRWXUGO): Define.
97692         (make_path): Always perform explicit chmod if MODE specifies any
97693         of the `special' permission bits.  Prompted by a bug report against
97694         install from Mate Wierdl and Joost van Baal.
97695
97696 2000-04-18  Jim Meyering  <meyering@lucent.com>
97697
97698         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
97699         (jm_PREREQ): Use it.
97700
97701 2000-04-18  Jim Meyering  <meyering@lucent.com>
97702
97703         * lib/README: New file.
97704
97705         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
97706         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
97707
97708 2000-04-17  Jim Meyering  <meyering@lucent.com>
97709
97710         Get it right :-)
97711         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
97712         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
97713         Suggestion from Akim Demaille.
97714
97715 2000-04-17  Jim Meyering  <meyering@lucent.com>
97716
97717         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
97718         the definition of it to rpl_strftime also defined-away the system's
97719         declaration.
97720
97721 2000-04-15  Jim Meyering  <meyering@lucent.com>
97722
97723         Use `C' to denote so-called `contiguous' files, the same way
97724         that tar does.
97725         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
97726         (ftypelet): Use S_ISCTG.
97727         From Michael Deutschmann.
97728
97729 2000-04-14  Jim Meyering  <meyering@lucent.com>
97730
97731         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
97732         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
97733         clobbered.
97734
97735 2000-04-14  Jim Meyering  <meyering@lucent.com>
97736
97737         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
97738
97739 2000-04-13  Jim Meyering  <meyering@lucent.com>
97740
97741         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
97742         AH_VERBATIM to insert required #ifndef into config.h.in.
97743         Suggestion from Akim Demaille.
97744
97745 2000-04-12  Jim Meyering  <meyering@lucent.com>
97746
97747         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
97748         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
97749         Christian Krackowizer.
97750
97751         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
97752         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
97753         (AC_SYS_LARGEFILE): Require.
97754         (AM_C_PROTOTYPES): Require.
97755
97756 2000-04-08  Jim Meyering  <meyering@lucent.com>
97757
97758         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
97759         names don't conflict.  Reported by Eli Zaretskii.
97760
97761 2000-04-07  Jim Meyering  <meyering@lucent.com>
97762
97763         * lib/putenv.c: Move inclusion of errno.h so it follows that of
97764         sys/types.h, to work around system header problems on AIX 3.2.5.
97765         From Bruno Haible.
97766
97767 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
97768
97769         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
97770         bug.  Deal with the different error behavior of Irix iconv.
97771
97772 2000-04-05  Paul Eggert  <eggert@twinsun.com>
97773
97774         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
97775         IRIX if the installer said otherwise.
97776
97777 2000-04-05  Jim Meyering  <meyering@lucent.com>
97778
97779         Portability tweaks required for ultrix4.3.
97780         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
97781         (jm_CHECK_DECLS): Add getutent to the list of functions.
97782         (_jm_DECL_HEADERS): Add utmpx.h.
97783         From John David Anglin.
97784
97785         * m4/strftime.m4: Back out the 2000-04-02 change.
97786         Instead of that change, simply undefine putenv in the test program.
97787
97788 2000-04-05  Jim Meyering  <meyering@lucent.com>
97789
97790         Portability tweaks required for ultrix4.3.
97791         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
97792         getutent.
97793         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
97794         * lib/canon-host.c: Declare strdup.
97795         * lib/path-concat.c: Likewise.
97796         From John David Anglin.
97797
97798 2000-04-04  Jim Meyering  <meyering@lucent.com>
97799
97800         Be more DOS 8.3-friendly.
97801         * lib/ref-add.sin: Renamed from ref-add.sed.in.
97802         * lib/ref-del.sin: Renamed from ref-del.sed.in.
97803         * lib/Makefile.am: Reflect renaming.
97804         Reported by Eli Zaretskii.
97805
97806         Use a temporary file name that won't clash with `charset.alias'
97807         in the DOS 8.3 name space.
97808         * lib/Makefile.am (charset_tmp): Define.
97809         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
97810         (uninstall-local): Likewise.
97811         Reported by Eli Zaretskii.
97812
97813 2000-04-03  Jim Meyering  <meyering@lucent.com>
97814
97815         * m4/gettext.m4: Fix typo in comment.
97816
97817         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
97818         textutils/configure.in).  Suggestion from Paul Eggert.
97819         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
97820
97821 2000-04-02  Paul Eggert  <eggert@twinsun.com>
97822
97823         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
97824         variable in the shell rather than using putenv, which isn't
97825         portable.  This avoids the configure-time inter-test dependency
97826         on the potentially-renamed putenv function.
97827
97828 2000-03-30  Paul Eggert  <eggert@twinsun.com>
97829
97830         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
97831         before checking struct stat.st_blksize, so that
97832         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
97833
97834 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97835
97836         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
97837         since strftime.c uses HAVE_STRFTIME to decide whether to use
97838         the underlying strftime.
97839
97840 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97841
97842         * lib/time/strftime.c (my_strftime): Make sure we call the system
97843         strftime, not ourselves, when invoking the underlying strftime.
97844
97845 2000-03-24  Jim Meyering  <meyering@lucent.com>
97846
97847         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
97848         (charset_alias): Define.
97849         (install-exec-local): Factor out common code.
97850         (uninstall-local): Split lines longer than 80.
97851         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
97852         (SUFFIXES): Define.
97853         (.sed.in.sed): New rule.  Don't redirect directly to $@.
97854         (CLEANFILES): Add ref-add.sed and ref-del.sed.
97855
97856 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
97857
97858         * lib/config.charset: Output a line containing "Packages using this
97859         file".
97860         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
97861         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
97862         ref-del.sed): New rules.
97863
97864 2000-03-17  Jim Meyering  <meyering@lucent.com>
97865
97866         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
97867         Otherwise, include <strings.h>
97868
97869 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
97870
97871         * lib/unicodeio.c (utf8_wctomb): New function.
97872         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
97873         format instead of in UCS-4 with platform dependent endianness.
97874
97875 2000-03-10  Jim Meyering  <meyering@lucent.com>
97876
97877         * m4/lib-check.m4: Look for getspnam in -lgen, too.
97878         From Marco Franzen.
97879
97880 2000-03-07  Paul Eggert  <eggert@twinsun.com>
97881
97882         * lib/savedir.c (savedir): Work even if directory size is
97883         negative; this can happen with some screwy NFS configurations.
97884
97885 2000-03-06  Jim Meyering  <meyering@lucent.com>
97886
97887         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
97888         if it's NULL (because we ran out of memory).  From Bruno Haible.
97889
97890 2000-03-05  Jim Meyering  <meyering@lucent.com>
97891
97892         * lib/localcharset.c ("path-concat.h"): Include.
97893         (get_charset_aliases): Use path_concat instead of ANSI string
97894         concatenation.
97895
97896         * lib/unicodeio.h (PARAMS): Define.
97897         Use it to guard prototype.
97898
97899 2000-03-04  Jim Meyering  <meyering@lucent.com>
97900
97901         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
97902         for lib/localcharset.c.
97903
97904 2000-03-04  Jim Meyering  <meyering@lucent.com>
97905
97906         * lib/Makefile.am (install-exec-local): Create $(libdir) before
97907         installing into it.
97908         (uninstall-local): Uncomment this rule so `make distcheck' works
97909         once again.
97910
97911         * lib/unicodeio.c (<errno.h>): Include it.
97912         (errno): Declare if not defined.
97913
97914         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
97915
97916         * lib/config.charset: New version, incorporating remarks from a linux
97917         i18n mailing list.  From Bruno Haible.
97918
97919 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
97920
97921         * m4/codeset.m4: New file.
97922         * m4/iconv.m4: New file.
97923         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
97924
97925 2000-03-03  Jim Meyering  <meyering@lucent.com>
97926
97927         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
97928
97929 2000-03-02  Jim Meyering  <meyering@lucent.com>
97930
97931         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
97932         the messages come out on separate lines.
97933
97934         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
97935         rather than jm_CHECK_DECLARATIONS.
97936         * m4/decl.m4: Remove now-unused file.
97937
97938         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
97939         geteuid.
97940
97941 2000-03-02  Jim Meyering  <meyering@lucent.com>
97942
97943         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
97944
97945 2000-03-01  Jim Meyering  <meyering@lucent.com>
97946
97947         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
97948         * lib/unicodeio.c: Likewise.
97949
97950 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
97951
97952         * lib/config.charset: New file.
97953         * lib/localcharset.c: New file.
97954         * lib/unicodeio.h, lib/unicodeio.c: New files.
97955         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
97956         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
97957         (noinst_HEADERS): Add unicodeio.h.
97958         (all-local, install-exec-local, charset.alias): New targets.
97959
97960 2000-02-28  Paul Eggert  <eggert@twinsun.com>
97961
97962         * lib/quotearg.c (ALERT_CHAR): New macro.
97963         (quotearg_buffer_restyled): Use it.
97964
97965 2000-02-27  Jim Meyering  <meyering@lucent.com>
97966
97967         * m4/check-decl.m4: Add getenv to the list.
97968
97969 2000-02-27  Jim Meyering  <meyering@lucent.com>
97970
97971         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
97972         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
97973
97974         * lib/backupfile.c: Guard inclusion of stdlib.h with
97975         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
97976         Declare malloc if needed.
97977
97978         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
97979         `#ifndef HAVE_DECL..'
97980         now that autoconf always defines the HAVE_DECL_ symbols.
97981         * lib/human.c: Likewise.
97982         * lib/same.c: Likewise.
97983         * lib/strtoumax.c: Likewise.
97984
97985         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
97986         declaration check was not run.
97987         * lib/hash.c: Likewise.
97988         * lib/human.c: Likewise.
97989         * lib/same.c: Likewise.
97990         * lib/strtoumax.c: Likewise.
97991
97992         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
97993         `.', then first look up the entire `.'-containing string as a login
97994         name.
97995
97996 2000-02-23  Jim Meyering  <meyering@lucent.com>
97997
97998         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
97999         in place of my hack.
98000
98001 2000-02-18  Paul Eggert  <eggert@twinsun.com>
98002
98003         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
98004         (textint): New typedef.
98005         (parser_control): Member year changed from int to textint.
98006         All uses changed.
98007         (YYSTYPE): Removed; replaced by %union with int and textint members.
98008         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
98009         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
98010         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
98011         (tSNUMBER, tUNUMBER): Now of type <textintval>.
98012         (date, number, to_year): Use width of number in digits, not its value,
98013         to determine whether it's a 2-digit year, or a 2-digit time.
98014         (yylex): Store number of digits of numeric tokens.
98015         Reported by John Kendall.
98016
98017         (parser_control): Changed from struct parser_control to typedef (for
98018         consistency).  All uses changed.
98019
98020         (tID): Removed; not used.
98021         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
98022
98023 2000-02-14  Paul Eggert  <eggert@twinsun.com>
98024
98025         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
98026         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
98027
98028 2000-02-12  Jim Meyering  <meyering@lucent.com>
98029
98030         * lib/userspec.c (ISDIGIT): Define it.
98031         (isdigit): Remove definition.
98032         (is_number): Use ISDIGIT, not isdigit.
98033         <libintl.h>: Include.
98034         (_ and N_): Define.
98035         (parse_user_spec): Mark translatable strings.
98036
98037 2000-02-10  Jim Meyering  <meyering@lucent.com>
98038
98039         With these changes, nanosleep.[ch] are finally enough like the other
98040         lib/* replacement files to compile on a few more losing systems.
98041
98042         * lib/nanosleep.h: Don't include config.h.
98043         Remove prototype from declaration of nanosleep.
98044         (PARAMS): Remove now-unneeded definition.
98045         * lib/nanosleep.c: #undef nanosleep.
98046         (rpl_nanosleep): Rename from nanosleep.
98047
98048 2000-02-10  Jim Meyering  <meyering@lucent.com>
98049
98050         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
98051         gnu_nanosleep to rpl_nanosleep.
98052
98053 2000-02-09  Jim Meyering  <meyering@lucent.com>
98054
98055         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
98056         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
98057
98058 2000-02-08  Akim Demaille  <akim@epita.fr>
98059
98060         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
98061         `[' and `]' and remove uses of `changequote'.
98062         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
98063         (AC_SYS_LARGEFILE): Likewise.
98064         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
98065         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
98066         of changequote.
98067         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
98068         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
98069         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
98070         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
98071
98072 2000-02-05  Jim Meyering  <meyering@lucent.com>
98073
98074         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
98075         Remove explicit use of AC_HEADER_TIME.  It is required by
98076         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
98077         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
98078         in autoconf whereby the expansion of the latter ended up preceding
98079         the expansion of its prerequisite, AC_HEADER_TIME.
98080         Reported by Volker Borchert.
98081
98082 2000-02-03  Jim Meyering  <meyering@lucent.com>
98083
98084         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
98085
98086 2000-02-03  Jim Meyering  <meyering@lucent.com>
98087
98088         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
98089         rather than with `#if HAVE_UTMPNAME'.
98090
98091 2000-02-02  Jim Meyering  <meyering@lucent.com>
98092
98093         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
98094         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
98095         Reported by Eli Zaretskii.
98096
98097 2000-02-01  Jim Meyering  <meyering@lucent.com>
98098
98099         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
98100
98101 2000-01-31  Jim Meyering  <meyering@lucent.com>
98102
98103         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
98104         functions.  Add the time.h and sys/time.h headers along with the
98105         AC_REQUIRE'ment of AC_HEADER_TIME.
98106
98107 2000-01-31  Jim Meyering  <meyering@lucent.com>
98108
98109         * lib/nanosleep.h (nanosleep): Guard declaration with
98110         `#if ! HAVE_DECL_NANOSLEEP'.
98111         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
98112         the declaration in that vendor's sys/timers.h.
98113         Reported by Christian Krackowizer.
98114
98115         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
98116         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
98117         (ISPRINT): Likewise.
98118         Reported by Tom Tromey.
98119
98120 2000-01-30  Jim Meyering  <meyering@lucent.com>
98121
98122         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
98123
98124         * m4/prereq.m4 (utmp_includes): Define.
98125         Check for ut_user and ut_name members in both struct utmpx
98126         and struct utmp.
98127
98128 2000-01-30  Jim Meyering  <meyering@lucent.com>
98129
98130         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
98131         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
98132         header files where only utmpx.ut_user is declared.
98133
98134         * lib/readutmp.h (UT_USER): Define.
98135
98136 2000-01-29  Jim Meyering  <meyering@lucent.com>
98137
98138         * m4/lib-check.m4: New file containing library-related checks from
98139         fileutils and sh-utils (textutils had none).
98140
98141 2000-01-28  Jim Meyering  <meyering@lucent.com>
98142
98143         * m4/perl.m4: Change format of warning message to look more like that
98144         from the missing script.  Suggestion from François Pinard.
98145
98146 2000-01-25  Jim Meyering  <meyering@lucent.com>
98147
98148         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
98149         well as time.h in the compile check.
98150         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
98151         Fix typo in cross-compiling case: s/yes/no/.
98152
98153 2000-01-23  Jim Meyering  <meyering@lucent.com>
98154
98155         * m4/jm-macros.m4: Move df-related tests here from
98156         fileutils/configure.in
98157
98158         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
98159         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
98160
98161         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
98162         s/space/ac_fsusage_space/.
98163         (jm_FILE_SYSTEM_USAGE): Take two parameters.
98164
98165         * m4/ftruncate.m4: New file (derived from part of
98166         fileutils/configure.in).
98167         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
98168         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
98169
98170         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
98171         AC_SUBST these here, rather than just in sh-util/configure.in, so
98172         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
98173         all the same.
98174         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
98175         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
98176         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
98177         (AC_SUBST(POW_LIBM)): Likewise.
98178         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
98179
98180 2000-01-23  Jim Meyering  <meyering@lucent.com>
98181
98182         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
98183         obstack.c.
98184
98185 2000-01-22  Jim Meyering  <meyering@lucent.com>
98186
98187         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
98188
98189         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
98190
98191         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
98192         configure.in
98193         (AC_CHECK_HEADERS): Likewise for sh-utils.
98194         (AC_CHECK_HEADERS): Likewise for textutils.
98195         Merge the three lists of headers.
98196
98197         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
98198         from fileutils' configure.in.
98199
98200         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
98201         code. Moved tests into their own function (_jm_DECL_HEADERS) in
98202         check-decl.m4.
98203
98204         * m4/check-decl.m4: Use #if rather than #ifdef.
98205         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
98206         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
98207         (_jm_DECL_HEADERS): Define new function.
98208         (jm_CHECK_DECLARATIONS): Require it.
98209
98210 2000-01-22  Jim Meyering  <meyering@lucent.com>
98211
98212         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
98213         [! HAVE_DECL_STRTOULL]: Declare strtoull.
98214         Required for some AIX systems.  Reported by Christian Krackowizer.
98215         [TESTING] (main): New function.
98216
98217         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
98218         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
98219         letters.
98220
98221         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
98222         iswprint.
98223
98224         * lib/strverscmp.c (ISDIGIT): Define.
98225         (strverscmp): Use ISDIGIT, not isdigit.
98226
98227 2000-01-19  Jim Meyering  <meyering@lucent.com>
98228
98229         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
98230         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
98231         defines `struct timespec' in <sys/time.h>
98232
98233         * m4/c-bs-a.m4: Remove uses of changequote altogether.
98234         Thanks to Akim for explaining.
98235
98236 2000-01-17  Paul Eggert  <eggert@twinsun.com>
98237
98238         * lib/nanosleep.c (nanosleep):
98239         Don't use SA_INTERRUPT to decide whether to call sigaction, as
98240         POSIX.1 doesn't require SA_INTERRUPT and some systems
98241         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
98242         it's been part of POSIX.1 since day 1 (in 1988).
98243
98244 2000-01-17  Jim Meyering  <meyering@lucent.com>
98245
98246         * lib/interlock: Remove unused file.  Reported by François Pinard.
98247
98248 2000-01-16  Paul Eggert  <eggert@twinsun.com>
98249
98250         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
98251         alert, backslash, formfeed, and vertical tab unnecessarily in
98252         shell quoting style.
98253
98254 2000-01-16  Jim Meyering  <meyering@lucent.com>
98255
98256         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
98257         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
98258         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
98259         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
98260
98261 2000-01-16  Jim Meyering  <meyering@lucent.com>
98262
98263         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
98264         because the latter didn't work.
98265
98266 2000-01-15  Jim Meyering  <meyering@lucent.com>
98267
98268         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
98269         (AC_REPLACE_FUNCS): Add memcpy and memset.
98270         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
98271         Add strpbrk.
98272         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
98273
98274 2000-01-12  Jim Meyering  <meyering@lucent.com>
98275
98276         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
98277         (jm_PREREQ): Use it.
98278         (jm_PREREQ_READUTMP): New macro.
98279         (jm_PREREQ): Use it.
98280
98281 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98282
98283         Quote multibyte characters correctly.
98284         * m4/c-bs-a.m4: New file.
98285         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
98286         (jm_PREREQ): Use it.
98287
98288 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98289
98290         * m4/uintmax_t.m4: Port to autoconf 2.13.
98291
98292 2000-01-08  Jim Meyering  <meyering@ascend.com>
98293
98294         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
98295         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
98296
98297 2000-01-04  Jim Meyering  <meyering@ascend.com>
98298
98299         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
98300         jm_STRUCT_DIRENT_D_TYPE.
98301         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
98302         jm_STRUCT_DIRENT_D_INO.
98303         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
98304         jm_STRUCT_UTIMBUF.
98305         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
98306         renamings.
98307         * m4/utime.m4: Likewise.
98308
98309         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
98310         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
98311
98312 2000-01-03  Paul Eggert  <eggert@twinsun.com>
98313
98314         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
98315         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
98316
98317 2000-01-02  Jim Meyering  <meyering@ascend.com>
98318
98319         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
98320         remember if this is necessary.
98321
98322 1999-12-26  Jim Meyering  <meyering@ascend.com>
98323
98324         * m4/jm-macros.m4: Use it here.
98325         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
98326
98327 1999-12-23  Jim Meyering  <meyering@ascend.com>
98328
98329         * m4/jm-macros.m4: Check for clock_gettime (moved from
98330         fileutils/configure.in)
98331         Check for gettimeofday.
98332
98333 1999-12-20  Jim Meyering  <meyering@ascend.com>
98334
98335         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
98336         autoconf-2.14a-1999-12-20.
98337
98338 1999-12-19  Jim Meyering  <meyering@ascend.com>
98339
98340         * m4/lstat-slash.m4: New file.
98341         * m4/jm-macros.m4: Use the new macro:
98342         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98343
98344 1999-12-07  Jim Meyering  <meyering@ascend.com>
98345
98346         * m4/perl.m4: Require that File::Compare be available, too.
98347         Too many systems seem to lack it.
98348
98349         * m4/strftime.m4: Add checks for most of the cpp macros tested in
98350         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
98351
98352 1999-11-18  Paul Eggert  <eggert@twinsun.com>
98353
98354         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
98355         problem with the QNX 4.25 shell, which doesn't propagate exit
98356         status of failed commands inside shell assignments.
98357
98358 1999-11-17  Jim Meyering  <meyering@ascend.com>
98359
98360         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
98361
98362 1999-11-07  Jim Meyering  <meyering@ascend.com>
98363
98364         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
98365
98366 1999-11-06  Jim Meyering  <meyering@ascend.com>
98367
98368         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
98369         * m4/jm-macros.m4 (jm_MACROS): Use it here.
98370
98371 1999-11-05  Jim Meyering  <meyering@ascend.com>
98372
98373         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
98374         configure.in of textutils, fileutils, and sh-utils into this one
98375         (shared between those packages) file.
98376         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
98377         AC_STRUCT_ST_BLKSIZE.
98378
98379 1999-11-03  Jim Meyering  <meyering@ascend.com>
98380
98381         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
98382         of AC_CHECK_TYPE checks includes unistd.h.
98383         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
98384         Suggestion from Akim Demaille.
98385
98386 1999-10-30  Jim Meyering  <meyering@ascend.com>
98387
98388         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
98389         m4-quoted string.
98390         * m4/ls-mntd-fs.m4: Likewise.
98391         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
98392         * m4/jm-winsz1.m4: Likewise.
98393
98394         * m4/const.m4: Remove file, since the fix made it into the experimental
98395         version of autoconf.
98396         * m4/mktime.m4: Likewise.
98397
98398         * m4/check-type.m4: Remove file, now that the latest version of
98399         AC_CHECK_TYPE takes a third arg to specify additional #includes.
98400
98401         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
98402         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
98403         AC_CHECK_TYPE.
98404
98405 1999-10-04  Jim Meyering  <meyering@ascend.com>
98406
98407         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
98408
98409 1999-09-22  Paul Eggert  <eggert@twinsun.com>
98410
98411         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
98412         2.95.1 bug with HP-UX 10.20.
98413
98414 1999-09-17  Jim Meyering  <meyering@ascend.com>
98415
98416         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
98417         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
98418         due to missing strdup (against sh-utils-2.0).
98419
98420 1999-08-29  Jim Meyering  <meyering@ascend.com>
98421
98422         * m4/jm-macros.m4: Require jm_BISON.
98423         * m4/bison.m4: New file.
98424
98425 1999-08-17  Paul Eggert  <eggert@twinsun.com>
98426
98427         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
98428         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
98429
98430 1999-08-05  Jim Meyering  <meyering@ascend.com>
98431
98432         * m4/getline.m4: Rename test file from conftestdata to conftest.data
98433         to avoid conflicts with `conftest' on 8+3 filesystems.
98434         Suggestion from Eli Zaretskii.
98435
98436 1999-08-04  Jim Meyering  <meyering@ascend.com>
98437
98438         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
98439         fileutils and sh-utils (textutils's getline test was inadequate).
98440         (AM_FUNC_GETLINE): Run this test.
98441         (AC_CHECK_FUNCS): Check for getdelim.
98442         Reported by Bob Proulx.
98443
98444 1999-08-02  Jim Meyering  <meyering@ascend.com>
98445
98446         * m4/jm-macros.m4: Add a comment.
98447
98448 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98449
98450         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
98451         <inttypes.h> defines strtoumax as a macro (and not as a
98452         function).
98453
98454 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98455
98456         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
98457         that we can shift, multiply and divide unsigned long long
98458         values; Ultrix cc can't do it.
98459
98460 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98461
98462         * m4/mktime.m4: New file, which is a preview of what should appear
98463         in the next public autoconf release.
98464
98465 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98466
98467         * m4/lfs.m4: Remove this file.
98468         * m4/largefile.m4: New file.  It contains the old contents of
98469         lfs.m4, except that all names with prefix AC_LFS have been
98470         changed to use the prefix AC_SYS_LARGEFILE instead, to be
98471         compatible with future autoconf versions.  Also, some minor m4
98472         quoting problems have been fixed.
98473
98474 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98475
98476         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
98477         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
98478         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
98479         and simplify the shell code.
98480
98481 1999-08-01  Jim Meyering  <meyering@ascend.com>
98482
98483         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
98484         m4.
98485
98486 1999-07-20  Jim Meyering  <meyering@ascend.com>
98487
98488         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
98489
98490 1999-07-15  Jim Meyering  <meyering@ascend.com>
98491
98492         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
98493
98494 1999-05-22  Jim Meyering  <meyering@ascend.com>
98495
98496         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
98497
98498 1999-05-20  Jim Meyering  <meyering@ascend.com>
98499
98500         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
98501         Add a colon after each `then' in case $4 is empty.
98502
98503 1999-05-16  Jim Meyering  <meyering@ascend.com>
98504
98505         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
98506
98507 1999-05-10  Jim Meyering  <meyering@ascend.com>
98508
98509         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
98510
98511         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
98512         AC_FUNC_MKTIME.
98513
98514 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
98515
98516         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
98517
98518 1999-05-04  Paul Eggert  <eggert@twinsun.com>
98519
98520         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
98521         not CPPFLAGS, so that linking works correctly in IRIX.
98522
98523 1999-04-30  Paul Eggert  <eggert@twinsun.com>
98524
98525         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
98526
98527 1999-04-20  Paul Eggert  <eggert@twinsun.com>
98528
98529         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
98530         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
98531         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
98532         jm_AC_TYPE_UNSIGNED_LONG_LONG.
98533         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
98534
98535         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
98536
98537 1999-04-20  Jim Meyering  <meyering@ascend.com>
98538
98539         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
98540         AC_REPLACE xstroull if necessary.  From Paul Eggert.
98541         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
98542
98543 1999-04-18  Jim Meyering  <meyering@ascend.com>
98544
98545         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
98546         * m4/jm-macros.m4: Use it.
98547
98548 1999-04-06  Jim Meyering  <meyering@ascend.com>
98549
98550         * m4/strftime.m4: Remove test for %f.
98551
98552 1999-03-29  Jim Meyering  <meyering@ascend.com>
98553
98554         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
98555         superset of the AC_TYPE_* checks in the textutils, fileutils,
98556         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
98557         AC_TYPE_PID_T.
98558
98559 1999-03-28  Jim Meyering  <meyering@ascend.com>
98560
98561         * m4/jm-macros.m4: Define GNU_PACKAGE here.
98562         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
98563         replaced e.g., in the *.sh files of the sh-utils.
98564
98565 1999-03-20  Jim Meyering  <meyering@ascend.com>
98566
98567         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
98568         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
98569         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
98570
98571 1999-03-19  Jim Meyering  <meyering@ascend.com>
98572
98573         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
98574
98575 1999-03-12  Jim Meyering  <meyering@ascend.com>
98576
98577         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
98578
98579 1999-03-07  Jim Meyering  <meyering@ascend.com>
98580
98581         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
98582         declared.
98583
98584 1999-02-17  Jim Meyering  <meyering@ascend.com>
98585
98586         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
98587         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
98588
98589 1999-02-07  Jim Meyering  <meyering@ascend.com>
98590
98591         * m4/group-member.m4: New file -- extracted from sh-utils'
98592         configure.in.
98593
98594         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
98595         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
98596
98597 1999-02-06  Jim Meyering  <meyering@ascend.com>
98598
98599         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
98600         * m4/fnmatch.m4: Likewise.
98601         * m4/getgroups.m4: Likewise.
98602         * m4/lstat.m4: Likewise.
98603         * m4/malloc.m4: Likewise.
98604         * m4/putenv.m4: Likewise.
98605         * m4/realloc.m4: Likewise.
98606         * m4/regex.m4: Likewise.
98607         * m4/stat.m4: Likewise.
98608         * m4/strftime.m4: Likewise.
98609         Suggestion from Alain Magloire.
98610
98611         * m4/chown.m4: Use `.$ac_objext', not `.o'.
98612         * m4/fnmatch.m4: Likewise.
98613         * m4/getgroups.m4: Likewise.
98614         * m4/getline.m4: Likewise.
98615         * m4/lstat.m4: Likewise.
98616         * m4/malloc.m4: Likewise.
98617         * m4/memcmp.m4: Likewise.
98618         * m4/putenv.m4: Likewise.
98619         * m4/realloc.m4: Likewise.
98620         * m4/regex.m4: Likewise.
98621         * m4/stat.m4: Likewise.
98622         * m4/strftime.m4: Likewise.
98623         Suggestion from Alain Magloire.
98624
98625         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
98626         an argument.
98627
98628         * m4/regex.m4: Add a run-time Test for proper operation of
98629         re_compile_pattern.
98630
98631 1999-01-31  Jim Meyering  <meyering@ascend.com>
98632
98633         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
98634
98635 1999-01-30  Jim Meyering  <meyering@ascend.com>
98636
98637         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
98638
98639         * m4/jm-mktime.m4: Make this a wrapper around the official
98640         AM_FUNC_MKTIME rather than my private copy, now that the official one
98641         is up to date.
98642         * m4/mktime.m4: Remove file.
98643
98644         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
98645         * m4/uptime.m4: Likewise.
98646         * m4/uintmax_t.m4: Likewise.
98647
98648 1999-01-28  Jim Meyering  <meyering@ascend.com>
98649
98650         * m4/jm-macros.m4: Use jm_AFS.
98651         * m4/afs.m4: New file (from fileutils' configure.in).
98652
98653         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
98654         * m4/chown.m4: Likewise.
98655         * m4/d-ino.m4: Likewise.
98656         * m4/d-type.m4: Likewise.
98657         * m4/fnmatch.m4: Likewise.
98658         * m4/getgroups.m4: Likewise.
98659         * m4/gettext.m4: Likewise.
98660         * m4/jm-mktime.m4: Likewise.
98661         * m4/jm-winsz2.m4: Likewise.
98662         * m4/lcmessage.m4: Likewise.
98663         * m4/ls-mntd-fs.m4: Likewise.
98664         * m4/malloc.m4: Likewise.
98665         * m4/memcmp.m4: Likewise.
98666         * m4/putenv.m4: Likewise.
98667         * m4/realloc.m4: Likewise.
98668         * m4/st_mtim.m4: Likewise.
98669         * m4/strftime.m4: Likewise.
98670
98671 1999-01-16  Jim Meyering  <meyering@ascend.com>
98672
98673         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
98674         (ARGMATCH_DIE_DECL): Define.
98675
98676 1999-01-12  Jim Meyering  <meyering@ascend.com>
98677
98678         * m4/Makefile.am.in: Rewrite to avoid using fmt.
98679         Reported by Lars Hecking.
98680
98681 1999-01-10  Jim Meyering  <meyering@ascend.com>
98682
98683         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
98684         gross kludge.
98685         * m4/inttypes_h.m4: Likewise.
98686         * m4/lstat.m4: Likewise.
98687         * m4/malloc.m4: Likewise.
98688         * m4/readdir.m4: Likewise.
98689         * m4/realloc.m4: Likewise.
98690         * m4/st_dm_mode.m4: Likewise.
98691         * m4/stat.m4: Likewise.
98692         * m4/utimbuf.m4: Likewise.
98693         * m4/utimes.m4: Likewise.
98694
98695         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
98696         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
98697         comments in config.h.in are meaningful.
98698
98699         * m4/jm-macros.m4: Require autoconf-2.13 here.
98700
98701         * m4/regex.m4: By default, don't use the included regex.c on systems
98702         with glibc 2.  Suggestion from Uli Drepper.
98703
98704 1999-01-02  Jim Meyering  <meyering@ascend.com>
98705
98706         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
98707
98708 1998-12-18  Jim Meyering  <meyering@ascend.com>
98709
98710         * m4/Makefile.am.in (Makefile.am): Simplify rule.
98711         Based on a suggestion from Lars Hecking.
98712
98713 1998-11-16  Paul Eggert  <eggert@twinsun.com>
98714
98715         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
98716
98717 1998-11-16  Jim Meyering  <meyering@ascend.com>
98718
98719         * m4/lfs.m4: Double-quote the `uname...` expression.
98720
98721 1998-11-14  Jim Meyering  <meyering@ascend.com>
98722
98723         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
98724         * m4/stat.m4: Likewise.
98725
98726 1998-11-03  Jim Meyering  <meyering@ascend.com>
98727
98728         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
98729         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
98730
98731 1998-10-18  Jim Meyering  <meyering@ascend.com>
98732
98733         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
98734
98735 1998-10-17  Jim Meyering  <meyering@ascend.com>
98736
98737         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
98738         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
98739         calls for those previously hard-coded headers.  Instead, take a new
98740         parameter.
98741         (jm_CHECK_DECLARATIONS): Reflect interface change.
98742         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
98743         (jm_CHECK_DECL_LOCALTIME_R): New macro.
98744
98745         * m4/mktime.m4: Test for spring-forward gap before long-running test.
98746
98747 1998-10-14  Jim Meyering  <meyering@ascend.com>
98748
98749         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
98750         instead of "TZ=America/Vancouver".  From Paul Eggert.
98751
98752 1998-10-11  Jim Meyering  <meyering@ascend.com>
98753
98754         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
98755         This adds a test for a recently added compatibility fix for mktime.c.
98756         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
98757
98758 1998-09-27  Jim Meyering  <meyering@ascend.com>
98759
98760         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
98761
98762         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
98763         ../configure.in, including a change from Gordon Matzigkeit to allow
98764         cross-compiling for the Hurd.
98765
98766         * m4/glibc.m4: New file/macro to test for the GNU C Library
98767         versions 1 and 2.  From Gordon Matzigkeit.
98768         Indent.
98769
98770 1998-09-21  Jim Meyering  <meyering@ascend.com>
98771
98772         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
98773
98774 1998-08-18  Paul Eggert  <eggert@twinsun.com>
98775
98776         Port nanosecond-resolution times to UnixWare 2.1.2 and
98777         pedantic Solaris 2.6.
98778
98779         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
98780         AC_STRUCT_ST_MTIM.
98781         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
98782         Generate name of ns member, instead of just 1 or undef.
98783         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
98784
98785 1998-08-15  Jim Meyering  <meyering@ascend.com>
98786
98787         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
98788         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
98789         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
98790         instead of jm_TYPE_SSIZE_T.
98791
98792 1998-08-12  Jim Meyering  <meyering@ascend.com>
98793
98794         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
98795
98796 1998-08-02  Jim Meyering  <meyering@ascend.com>
98797
98798         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
98799         in acconfig.h manually.
98800
98801 1998-07-31  Paul Eggert  <eggert@twinsun.com>
98802
98803         * m4/st_mtim.m4: New file.
98804
98805 1998-07-28  Jim Meyering  <meyering@ascend.com>
98806
98807         * m4/utimes.m4: Undef stat.
98808
98809 1998-07-25  Jim Meyering  <meyering@ascend.com>
98810
98811         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
98812         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
98813
98814 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
98815
98816         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
98817         uid and gid actually remain unchanged.
98818
98819 1998-07-07  Jim Meyering  <meyering@ascend.com>
98820
98821         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
98822
98823 1998-07-04  Jim Meyering  <meyering@ascend.com>
98824
98825         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
98826         to prove that this macro can be used in packages without regex.c.
98827
98828 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
98829
98830         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
98831         is to be used.
98832
98833 1998-07-03  Jim Meyering  <meyering@ascend.com>
98834
98835         * m4/gettext.m4: Add -lintl if it's found to be necessary.
98836
98837         * m4/gettext.m4: New file -- from gettext-0.10.35.
98838         * m4/lcmessage.m4: Likewise.
98839         * m4/progtest.m4: Likewise.
98840
98841         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
98842         * m4/jm-macros.m4: Require the new macro.
98843
98844 1998-06-29  Jim Meyering  <meyering@ascend.com>
98845
98846         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
98847         for the definition of NGROUPS (used in a system header included
98848         by sys/mount.h).
98849
98850 1998-06-28  Jim Meyering  <meyering@ascend.com>
98851
98852         * m4/ls-mntd-fs.m4: New file.
98853         * m4/fstypename.m4: New file.
98854
98855         * m4/jm-macros.m4: Require the new macro.
98856         * m4/jm-glibc-io.m4: New file.
98857
98858 1998-05-19  Jim Meyering  <meyering@ascend.com>
98859
98860         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
98861         * m4/lchown.m4: New file.
98862
98863         * m4/Makefile.am.in: New file.
98864         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
98865
98866 1998-05-14  Jim Meyering  <meyering@ascend.com>
98867
98868         * m4/Makefile.am (EXTRA_DIST): Add them.
98869         * m4/jm-macros.m4: New file.
98870         * m4/utimbuf.m4: New file.
98871
98872 1998-05-12  Jim Meyering  <meyering@ascend.com>
98873
98874         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
98875
98876 1998-05-11  Jim Meyering  <meyering@ascend.com>
98877
98878         * m4/isc-posix.m4: New file.
98879
98880 1998-05-10  Jim Meyering  <meyering@ascend.com>
98881
98882         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
98883
98884 1998-05-09  Jim Meyering  <meyering@ascend.com>
98885
98886         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
98887         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
98888         with automake.
98889
98890         * m4/ssize_t.m4: New file.
98891         * m4/mktime.m4: Remove file -- the new automake has this now.
98892
98893 1998-04-26  Jim Meyering  <meyering@ascend.com>
98894
98895         * m4/assert.m4: New file.
98896         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
98897
98898 1998-04-05  Jim Meyering  <meyering@ascend.com>
98899
98900         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
98901         (jm_PREREQ): Use it here.
98902
98903 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
98904
98905         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
98906         in acconfig.h.
98907
98908 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
98909
98910         * m4/prereq.m4: New file.
98911         * m4/error.m4: New file.
98912         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
98913
98914 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
98915
98916         * m4/getline.m4: Don't set am_cv_func_working_getline before the
98917         cache-check for the same variable -- that defeated the purpose of
98918         the test; the test program was never run.  This was a problem only
98919         on systems with losing getline functions -- HP-UX 10.20 is one.
98920         Reported by Bjorn Helgaas.
98921
98922 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
98923
98924         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
98925
98926 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
98927
98928         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
98929
98930         * m4/const.m4: New file.  Use an initializer in this declaration
98931         typedef int charset[2]; const charset x;
98932         Reported by Bob Glickstein.
98933
98934 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
98935
98936         * m4/chown.m4: Fix reversed types on -1 args to chown.
98937         From Kaveh Ghazi.
98938
98939 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
98940
98941         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
98942         Add lseek and memchr.
98943
98944         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
98945         T.E.Dickey <dickey@clark.net> said that some older preprocessors
98946         have a 20-character limit on names.
98947
98948 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
98949
98950         * m4/inttypes_h.m4: New file.
98951         * m4/uintmax_t.m4: New file.
98952         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
98953
98954
98955         -----
98956
98957         Local Variables:
98958         coding: utf-8
98959         End:
98960
98961         Copyright (C) 1997-2013 Free Software Foundation, Inc.
98962
98963         Copying and distribution of this file, with or without
98964         modification, are permitted provided the copyright notice
98965         and this notice are preserved.